Skip to content

confirm-dialog: стилизация, сторисы, обёртки#33

Merged
AxyIX merged 314 commits into
overlay.dialogfrom
overlay.confirmdialog
May 30, 2026
Merged

confirm-dialog: стилизация, сторисы, обёртки#33
AxyIX merged 314 commits into
overlay.dialogfrom
overlay.confirmdialog

Conversation

@khaliulin
Copy link
Copy Markdown
Contributor

No description provided.

imports: [ConfirmDialog, Button, PrimeTemplate],
template: `
<p-confirmDialog [key]="key" [styleClass]="computedClass" appendTo="body">
<ng-template pTemplate="headless" let-message let-onAccept="onAccept" let-onReject="onReject">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

мы не планируем кастомизаций этого диалога?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AxyIX дополнил 1627b92

selector: 'app-confirm-dialog-default',
standalone: true,
imports: [ConfirmDialogComponent, Button],
providers: [ConfirmationService],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

у нас должен быть свой сервис для работа с этим комонентом. под капотом он может использовать праймовский сервис.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AxyIX изменил 0480f7a

<ng-template pTemplate="headless" let-message let-onAccept="onAccept" let-onReject="onReject">
<div class="p-dialog-header">
<div class="p-dialog-title">
<i [class]="message.icon + ' p-icon'"></i>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

думаю праймовский класс иконки не нужен

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AxyIX фикс 8020a49

<i [class]="message.icon"></i>
<span>{{ message.header }}</span>
</div>
<button
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

кнопки должны быть наши, иначе всё сломается если прайм выпилим из под капота.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AxyIX фикс cea2739

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тоже не совсем верно. надо нашей кнопке задать другой селектор (cdek-button например), и использовать тогда в шаблоне . тогда не нужно будет навешивать все эти классы.

selector: 'app-confirm-dialog-default',
standalone: true,
imports: [ConfirmDialogComponent, Button],
providers: [ConfirmationService, ConfirmDialogService],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут также - при использовании нашего компонента/сервиса мы не должны ничего знать про прайм. нужно что бы всё взаимодействие шло через наш сервис, а уже наш сервис может работать с сервисом прайма.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AxyIX фикс 1311700

export type ConfirmDialogSize = 'sm' | 'default' | 'lg' | 'xlg';
export type ConfirmDialogSeverity = 'success' | 'info' | 'warn' | 'help' | 'danger' | 'default';

@Component({
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image может только у меня такой косяк, но перепроверь на всякий

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AxyIX фикс ca483e1

AxyIX and others added 16 commits April 19, 2026 03:16
Аналогично UiDialogService — сервис скрывает primeng от потребителей.
ToastComponent: убран scoped MessageService, добавлен проброс pt.
…место primeng

Все toast example-компоненты переведены на ui-toast и UiToastService —
прямые импорты Toast, MessageService, SharedModule из primeng убраны.
Документация в toast.stories.ts теперь указывает на UiToastService
вместо MessageService из primeng.
AxyIX and others added 29 commits May 22, 2026 14:29
toast: стилизация, сторисы, обёртки
# Conflicts:
#	src/lib/providers/prime-preset/tokens/components/data-table.ts
#	src/prime-preset/map-tokens.ts
galleria: стилизация
… context.$implicit не совпадает с новым item, принудительно

   обновляем context
патч прототипа в preview.ts
carousel: стилизация, сторисы, обёртки
data-table: стилизация, сторисы, обёртки
# Conflicts:
#	src/lib/providers/prime-preset/tokens/components/stepper.ts
#	src/lib/providers/prime-preset/tokens/components/tabs.ts
stepper: стилизация, сторисы, обёртки
# Conflicts:
#	src/lib/providers/prime-preset/tokens/components/accordion.ts
accordion: стилизация, сторисы, обёртки
# Conflicts:
#	.gitignore
#	src/lib/providers/prime-preset/tokens/components/confirm-dialog.ts
#	src/prime-preset/map-tokens.ts
@AxyIX AxyIX merged commit 11aa27a into overlay.dialog May 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants