Skip to content

toast: стилизация, сторисы, обёртки#41

Open
khaliulin wants to merge 8 commits intofeature/styles-debugfrom
messages.toast
Open

toast: стилизация, сторисы, обёртки#41
khaliulin wants to merge 8 commits intofeature/styles-debugfrom
messages.toast

Conversation

@khaliulin
Copy link
Copy Markdown

No description provided.

import { StoryObj } from '@storybook/angular';
import { Toast } from 'primeng/toast';
import { Button } from 'primeng/button';
import { MessageService, SharedModule } from 'primeng/api';
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.

нужно как и с диалогом скрыть реализацию через наш сервис, что бы сторисы ничего не знали о primeng

Copy link
Copy Markdown
Author

@khaliulin khaliulin Apr 20, 2026

Choose a reason for hiding this comment

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

@AxyIX Создан UiToastService как обёртка над MessageService (аналогично UiDialogService). ToastComponent больше не предоставляет scoped MessageService.

e04c0f2

selector: 'app-toast-position',
standalone: true,
imports: [Toast, Button, SharedModule],
providers: [MessageService],
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

@khaliulin khaliulin Apr 20, 2026

Choose a reason for hiding this comment

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

@AxyIX Все example-компоненты переведены на ToastComponent (ui-toast) и UiToastService — прямые импорты Toast, MessageService, SharedModule из primeng убраны.

0f944e8


\`\`\`typescript
import { ToastComponent } from '@cdek-it/angular-ui-kit';
import { MessageService } from 'primeng/api';
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

@khaliulin khaliulin Apr 20, 2026

Choose a reason for hiding this comment

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

@AxyIX Документация в toast.stories.ts обновлена — указывает на UiToastService вместо MessageService.

9dae52d

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

Все toast example-компоненты переведены на ui-toast и UiToastService —
прямые импорты Toast, MessageService, SharedModule из primeng убраны.
Документация в toast.stories.ts теперь указывает на UiToastService
вместо MessageService из primeng.
@khaliulin khaliulin force-pushed the messages.toast branch 2 times, most recently from 20757f0 to 9dae52d Compare April 20, 2026 02:59
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