Skip to content

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

Open
khaliulin wants to merge 6 commits intooverlay.dialogfrom
overlay.confirmdialog
Open

confirm-dialog: стилизация, сторисы, обёртки#33
khaliulin wants to merge 6 commits intooverlay.dialogfrom
overlay.confirmdialog

Conversation

@khaliulin
Copy link
Copy Markdown

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
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
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
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.

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

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.

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

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.

2 participants