@4sh/ui-kit 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.fr.md +10 -10
- package/README.md +10 -10
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -1000
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2048
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -138
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -199
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -137
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +721 -638
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
- package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-types.mjs +0 -12
- package/fesm2022/4sh-ui-kit.mjs +3 -15
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/mcp/data/component-api.json +299 -2
- package/mcp/data/text-search-docs.json +149 -9
- package/mcp/data/ui-config.json +378 -1
- package/mcp/index.js +8190 -2876
- package/mcp/package.json +1 -1
- package/package.json +5 -1
- package/styles/component-vars.scss +22 -1
- package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
- package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
- package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
- package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
- package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
- package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +573 -376
- package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
- package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
- package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
- package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
- package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -59
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
- package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
- package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
- package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
- package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
- package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
- package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
- package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
- package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
- package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
- package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
- package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -56
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
- package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
- package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
- package/types/4sh-ui-kit-forms.d.ts +275 -194
- package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
- package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
- package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
- package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
- package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
- package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
- package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
- package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
- package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
- package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
- package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
- package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
- package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
- package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
- package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
- package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
- package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
- package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
- package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
- package/types/4sh-ui-kit-motion.d.ts +117 -67
- package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
- package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
- package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
- package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
- package/types/4sh-ui-kit-overlay.d.ts +6 -6
- package/types/4sh-ui-kit-ripple.d.ts +99 -74
- package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
- package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
- package/types/4sh-ui-kit-theming.d.ts +27 -29
- package/types/4sh-ui-kit-types.d.ts +6 -5
- package/types/4sh-ui-kit.d.ts +4 -3
- package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { TemplateRef } from "@angular/core";
|
|
6
|
+
import { UiMotionPreset } from "@4sh/ui-kit/motion";
|
|
7
|
+
import { UiFeedbackLevel, UiSubLevel } from "@4sh/ui-kit/types";
|
|
6
8
|
/** Unique identifier of a toast message (auto-generated when omitted). */
|
|
7
|
-
type UiToastId = string | number;
|
|
9
|
+
export type UiToastId = string | number;
|
|
8
10
|
/**
|
|
9
11
|
* Where a {@link UiToastContainer} pins its stack in the viewport.
|
|
10
12
|
*/
|
|
11
|
-
type UiToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center';
|
|
13
|
+
export type UiToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center';
|
|
12
14
|
/** All positions, in declaration order (handy for stories/docs). */
|
|
13
|
-
declare const UI_TOAST_POSITIONS: readonly UiToastPosition[];
|
|
15
|
+
export declare const UI_TOAST_POSITIONS: readonly UiToastPosition[];
|
|
14
16
|
/**
|
|
15
17
|
* A single toast message pushed through the {@link UiToastService}.
|
|
16
18
|
*
|
|
@@ -18,45 +20,44 @@ declare const UI_TOAST_POSITIONS: readonly UiToastPosition[];
|
|
|
18
20
|
* default resolved by the container.
|
|
19
21
|
* remapped to this design system's semantic `level` / `subLevel` vocabulary.
|
|
20
22
|
*/
|
|
21
|
-
interface UiToastMessage {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
23
|
+
export interface UiToastMessage {
|
|
24
|
+
/** Unique id. Auto-generated by the service when omitted. */
|
|
25
|
+
id?: UiToastId;
|
|
26
|
+
/** Routes the message to the container(s) sharing the same `key`. */
|
|
27
|
+
key?: string;
|
|
28
|
+
/** Semantic level (drives colours + default icon). */
|
|
29
|
+
level?: UiFeedbackLevel;
|
|
30
|
+
/** Hierarchical intensity (`high` = solid, `low` = subtle). */
|
|
31
|
+
subLevel?: UiSubLevel;
|
|
32
|
+
/** Bold heading line. */
|
|
33
|
+
title?: string;
|
|
34
|
+
/** Supporting body line. */
|
|
35
|
+
text?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Leading icon: a FontAwesome name to override the level default, `false`
|
|
38
|
+
* to hide it, or omit / `true` for the level's default icon.
|
|
39
|
+
*/
|
|
40
|
+
icon?: string | boolean;
|
|
41
|
+
/** Show the dismiss button (default `true`). */
|
|
42
|
+
closable?: boolean;
|
|
43
|
+
/** Never auto-dismiss — the user must close it (default `false`). */
|
|
44
|
+
sticky?: boolean;
|
|
45
|
+
/** Auto-dismiss delay in ms. Falls back to the container `life`. */
|
|
46
|
+
life?: number;
|
|
47
|
+
/** Arbitrary payload forwarded to a custom `template` (custom / action toasts). */
|
|
48
|
+
data?: unknown;
|
|
49
|
+
/** Extra class(es) applied to the toast card for one-off styling. */
|
|
50
|
+
styleClass?: string;
|
|
49
51
|
}
|
|
50
52
|
/** Context object handed to a container's custom content `template`. */
|
|
51
|
-
interface UiToastTemplateContext {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
export interface UiToastTemplateContext {
|
|
54
|
+
/** The message being rendered. */
|
|
55
|
+
$implicit: UiToastMessage;
|
|
56
|
+
/** Dismisses this toast (same as clicking the close button). */
|
|
57
|
+
closeFn: () => void;
|
|
56
58
|
}
|
|
57
59
|
/** Default leading icon per semantic level (FontAwesome names, from the Figma source). */
|
|
58
|
-
declare const UI_TOAST_DEFAULT_ICONS: Record<UiFeedbackLevel, string>;
|
|
59
|
-
|
|
60
|
+
export declare const UI_TOAST_DEFAULT_ICONS: Record<UiFeedbackLevel, string>;
|
|
60
61
|
/**
|
|
61
62
|
* ui-toast-container — the viewport-pinned stack that renders {@link UiToastService}
|
|
62
63
|
* messages as {@link UiToast} cards.
|
|
@@ -75,77 +76,147 @@ declare const UI_TOAST_DEFAULT_ICONS: Record<UiFeedbackLevel, string>;
|
|
|
75
76
|
* <ui-toast-container position="top-right" [life]="4000" />
|
|
76
77
|
* ```
|
|
77
78
|
*/
|
|
78
|
-
declare class UiToastContainer {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
79
|
+
export declare class UiToastContainer {
|
|
80
|
+
/** Only render messages whose `key` matches (omit to render key-less messages). */
|
|
81
|
+
key: import("@angular/core").InputSignal<string | undefined>;
|
|
82
|
+
/** Where the stack is pinned in the viewport. */
|
|
83
|
+
position: import("@angular/core").InputSignal<UiToastPosition>;
|
|
84
|
+
/** Default auto-dismiss delay (ms) for non-sticky toasts. Per-message `life` wins. */
|
|
85
|
+
life: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
86
|
+
/** Render toasts as full-width banners (fill the region width). */
|
|
87
|
+
expanded: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
88
|
+
/** Motion preset override. Defaults to a per-position choice. */
|
|
89
|
+
motion: import("@angular/core").InputSignal<UiMotionPreset | undefined>;
|
|
90
|
+
/** Disable enter/leave animation for this stack. */
|
|
91
|
+
motionDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
92
|
+
/** Use `position: absolute` (scoped to a positioned ancestor) instead of `fixed`. */
|
|
93
|
+
contained: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
94
|
+
/**
|
|
95
|
+
* Custom content template rendered inside each card in place of `title`/`text`.
|
|
96
|
+
* Context: `{ $implicit: message, closeFn }`.
|
|
97
|
+
*/
|
|
98
|
+
template: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
|
|
99
|
+
/** Extra class(es) merged onto the region root. */
|
|
100
|
+
styleClass: import("@angular/core").InputSignal<string | undefined>;
|
|
101
|
+
/** Show only the N most recent toasts; older ones wait their turn (`0` = no limit). */
|
|
102
|
+
stackVisibleLimit: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
103
|
+
/** Gap between stacked cards in px (overrides the `--units-sm` token default). */
|
|
104
|
+
stackGap: import("@angular/core").InputSignal<number | undefined>;
|
|
105
|
+
/** Skip a new toast whose content (level + title + text) matches a live one. */
|
|
106
|
+
preventDuplicates: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
107
|
+
/** Automatically layer this stack above earlier ones (later container wins). */
|
|
108
|
+
autoZIndex: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
109
|
+
/** Floor z-index for the stack (added to the auto value, or used as-is when `autoZIndex=false`). */
|
|
110
|
+
baseZIndex: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
111
|
+
/** @ignore */
|
|
112
|
+
private readonly service;
|
|
113
|
+
/** @ignore Per-instance layering rank for `autoZIndex`. */
|
|
114
|
+
private readonly zSeq;
|
|
115
|
+
/** @ignore */
|
|
116
|
+
private readonly isBrowser;
|
|
117
|
+
/** @ignore All live messages routed to this container (drives timers/dedup). */
|
|
118
|
+
private readonly keyed;
|
|
119
|
+
/** @ignore Rendered slice — the most recent `stackVisibleLimit` toasts. */
|
|
120
|
+
protected readonly items: import("@angular/core").Signal<UiToastMessage[]>;
|
|
121
|
+
/** @ignore Effective stacking level. */
|
|
122
|
+
protected readonly zIndex: import("@angular/core").Signal<number>;
|
|
123
|
+
/** @ignore Resolved enter/leave preset. */
|
|
124
|
+
protected readonly motionPreset: import("@angular/core").Signal<UiMotionPreset>;
|
|
125
|
+
/** @ignore */
|
|
126
|
+
protected readonly regionClass: import("@angular/core").Signal<string>;
|
|
127
|
+
/** @ignore Active timeout handles, keyed by message id. */
|
|
128
|
+
private readonly timers;
|
|
129
|
+
/** @ignore Remaining ms per message (survives hover pause). */
|
|
130
|
+
private readonly remaining;
|
|
131
|
+
/** @ignore Wall-clock start of the running countdown, per message. */
|
|
132
|
+
private readonly startedAt;
|
|
133
|
+
constructor();
|
|
134
|
+
/** @ignore Start (or restart) a countdown of `ms` for a message. */
|
|
135
|
+
private arm;
|
|
136
|
+
/** @ignore Cancel and drop all timer bookkeeping for a message. */
|
|
137
|
+
private forget;
|
|
138
|
+
/** @ignore Pause the countdown on hover/focus (banks the remaining time). */
|
|
139
|
+
protected pause(id: UiToastId | undefined): void;
|
|
140
|
+
/** @ignore Resume a paused countdown when the pointer/focus leaves. */
|
|
141
|
+
protected resume(id: UiToastId | undefined): void;
|
|
142
|
+
/** @ignore Dismiss a toast (close button or a custom template's `closeFn`). */
|
|
143
|
+
protected dismiss(message: UiToastMessage): void;
|
|
144
|
+
/** @ignore Template-context factory: a bound close handler for one message. */
|
|
145
|
+
protected closeFn(message: UiToastMessage): () => void;
|
|
146
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiToastContainer, never>;
|
|
147
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiToastContainer, "ui-toast-container", never, {
|
|
148
|
+
"key": {
|
|
149
|
+
"alias": "key";
|
|
150
|
+
"required": false;
|
|
151
|
+
"isSignal": true;
|
|
152
|
+
};
|
|
153
|
+
"position": {
|
|
154
|
+
"alias": "position";
|
|
155
|
+
"required": false;
|
|
156
|
+
"isSignal": true;
|
|
157
|
+
};
|
|
158
|
+
"life": {
|
|
159
|
+
"alias": "life";
|
|
160
|
+
"required": false;
|
|
161
|
+
"isSignal": true;
|
|
162
|
+
};
|
|
163
|
+
"expanded": {
|
|
164
|
+
"alias": "expanded";
|
|
165
|
+
"required": false;
|
|
166
|
+
"isSignal": true;
|
|
167
|
+
};
|
|
168
|
+
"motion": {
|
|
169
|
+
"alias": "motion";
|
|
170
|
+
"required": false;
|
|
171
|
+
"isSignal": true;
|
|
172
|
+
};
|
|
173
|
+
"motionDisabled": {
|
|
174
|
+
"alias": "motionDisabled";
|
|
175
|
+
"required": false;
|
|
176
|
+
"isSignal": true;
|
|
177
|
+
};
|
|
178
|
+
"contained": {
|
|
179
|
+
"alias": "contained";
|
|
180
|
+
"required": false;
|
|
181
|
+
"isSignal": true;
|
|
182
|
+
};
|
|
183
|
+
"template": {
|
|
184
|
+
"alias": "template";
|
|
185
|
+
"required": false;
|
|
186
|
+
"isSignal": true;
|
|
187
|
+
};
|
|
188
|
+
"styleClass": {
|
|
189
|
+
"alias": "styleClass";
|
|
190
|
+
"required": false;
|
|
191
|
+
"isSignal": true;
|
|
192
|
+
};
|
|
193
|
+
"stackVisibleLimit": {
|
|
194
|
+
"alias": "stackVisibleLimit";
|
|
195
|
+
"required": false;
|
|
196
|
+
"isSignal": true;
|
|
197
|
+
};
|
|
198
|
+
"stackGap": {
|
|
199
|
+
"alias": "stackGap";
|
|
200
|
+
"required": false;
|
|
201
|
+
"isSignal": true;
|
|
202
|
+
};
|
|
203
|
+
"preventDuplicates": {
|
|
204
|
+
"alias": "preventDuplicates";
|
|
205
|
+
"required": false;
|
|
206
|
+
"isSignal": true;
|
|
207
|
+
};
|
|
208
|
+
"autoZIndex": {
|
|
209
|
+
"alias": "autoZIndex";
|
|
210
|
+
"required": false;
|
|
211
|
+
"isSignal": true;
|
|
212
|
+
};
|
|
213
|
+
"baseZIndex": {
|
|
214
|
+
"alias": "baseZIndex";
|
|
215
|
+
"required": false;
|
|
216
|
+
"isSignal": true;
|
|
217
|
+
};
|
|
218
|
+
}, {}, never, never, true, never>;
|
|
147
219
|
}
|
|
148
|
-
|
|
149
220
|
/**
|
|
150
221
|
* ui-toast service — programmatic entry point to push and clear toasts.
|
|
151
222
|
*
|
|
@@ -161,31 +232,30 @@ declare class UiToastContainer {
|
|
|
161
232
|
* this.toast.add({ level: 'success', title: 'Enregistré', text: 'Profil mis à jour.' });
|
|
162
233
|
* ```
|
|
163
234
|
*/
|
|
164
|
-
declare class UiToastService {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
235
|
+
export declare class UiToastService {
|
|
236
|
+
/** @ignore Backing store of live messages. */
|
|
237
|
+
private readonly _messages;
|
|
238
|
+
/** Live messages, in insertion order (read-only). */
|
|
239
|
+
readonly messages: import("@angular/core").Signal<UiToastMessage[]>;
|
|
240
|
+
/** Total number of live messages across every key. */
|
|
241
|
+
readonly count: import("@angular/core").Signal<number>;
|
|
242
|
+
/**
|
|
243
|
+
* Push a single message. Returns its (possibly generated) id so the caller
|
|
244
|
+
* can dismiss it later (e.g. resolving a "loading" toast into a result).
|
|
245
|
+
*/
|
|
246
|
+
add(message: UiToastMessage): UiToastId;
|
|
247
|
+
/** Push several messages at once. Returns their ids, in order. */
|
|
248
|
+
addAll(messages: UiToastMessage[]): UiToastId[];
|
|
249
|
+
/**
|
|
250
|
+
* Remove messages. With no argument, clears everything; with a `key`, clears
|
|
251
|
+
* only the messages routed to that key.
|
|
252
|
+
*/
|
|
253
|
+
clear(key?: string): void;
|
|
254
|
+
/** Remove a single message by id (no-op if it is already gone). */
|
|
255
|
+
remove(id: UiToastId): void;
|
|
256
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiToastService, never>;
|
|
257
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
187
258
|
}
|
|
188
|
-
|
|
189
259
|
/**
|
|
190
260
|
* ui-toast — presentational notification card.
|
|
191
261
|
*
|
|
@@ -202,46 +272,96 @@ declare class UiToastService {
|
|
|
202
272
|
* <ui-toast level="success" title="Enregistré" text="Profil mis à jour." (closed)="…" />
|
|
203
273
|
* ```
|
|
204
274
|
*/
|
|
205
|
-
declare class UiToast {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
275
|
+
export declare class UiToast {
|
|
276
|
+
/** Bold heading line. */
|
|
277
|
+
title: import("@angular/core").InputSignal<string | undefined>;
|
|
278
|
+
/** Supporting body line. */
|
|
279
|
+
text: import("@angular/core").InputSignal<string | undefined>;
|
|
280
|
+
/** Semantic level — colours + default icon. */
|
|
281
|
+
level: import("@angular/core").InputSignal<UiFeedbackLevel>;
|
|
282
|
+
/** Hierarchical intensity (`high` = solid, `low` = subtle). */
|
|
283
|
+
subLevel: import("@angular/core").InputSignal<UiSubLevel>;
|
|
284
|
+
/**
|
|
285
|
+
* Leading icon: a FontAwesome name to override the level default, `false`
|
|
286
|
+
* to hide it, or `true` (default) for the level's default icon.
|
|
287
|
+
*/
|
|
288
|
+
icon: import("@angular/core").InputSignal<string | boolean>;
|
|
289
|
+
/** Show the dismiss button (default `true`). */
|
|
290
|
+
closable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
291
|
+
/** FontAwesome name of the dismiss icon. */
|
|
292
|
+
closeIcon: import("@angular/core").InputSignal<string>;
|
|
293
|
+
/** Accessible label of the dismiss button. */
|
|
294
|
+
closeAriaLabel: import("@angular/core").InputSignal<string>;
|
|
295
|
+
/** Stretch the card to fill its region width (banner-style). */
|
|
296
|
+
expanded: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
297
|
+
/** Extra class(es) merged onto the card root. */
|
|
298
|
+
styleClass: import("@angular/core").InputSignal<string | undefined>;
|
|
299
|
+
/** Emitted when the user clicks the dismiss button. */
|
|
300
|
+
closed: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
301
|
+
/** @ignore Resolved leading icon name (null when hidden). */
|
|
302
|
+
protected readonly iconName: import("@angular/core").Signal<string | null>;
|
|
303
|
+
/** @ignore ARIA role — assertive alert for error/warning, polite status otherwise
|
|
304
|
+
* (mirrors ui-alert, so a standalone ui-toast self-announces without the container). */
|
|
305
|
+
protected readonly role: import("@angular/core").Signal<"alert" | "status">;
|
|
306
|
+
/** @ignore */
|
|
307
|
+
protected readonly ariaLive: import("@angular/core").Signal<"assertive" | "polite">;
|
|
308
|
+
/** @ignore */
|
|
309
|
+
protected readonly classes: import("@angular/core").Signal<string>;
|
|
310
|
+
/** @ignore */
|
|
311
|
+
protected onClose(event: MouseEvent): void;
|
|
312
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiToast, never>;
|
|
313
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiToast, "ui-toast", never, {
|
|
314
|
+
"title": {
|
|
315
|
+
"alias": "title";
|
|
316
|
+
"required": false;
|
|
317
|
+
"isSignal": true;
|
|
318
|
+
};
|
|
319
|
+
"text": {
|
|
320
|
+
"alias": "text";
|
|
321
|
+
"required": false;
|
|
322
|
+
"isSignal": true;
|
|
323
|
+
};
|
|
324
|
+
"level": {
|
|
325
|
+
"alias": "level";
|
|
326
|
+
"required": false;
|
|
327
|
+
"isSignal": true;
|
|
328
|
+
};
|
|
329
|
+
"subLevel": {
|
|
330
|
+
"alias": "subLevel";
|
|
331
|
+
"required": false;
|
|
332
|
+
"isSignal": true;
|
|
333
|
+
};
|
|
334
|
+
"icon": {
|
|
335
|
+
"alias": "icon";
|
|
336
|
+
"required": false;
|
|
337
|
+
"isSignal": true;
|
|
338
|
+
};
|
|
339
|
+
"closable": {
|
|
340
|
+
"alias": "closable";
|
|
341
|
+
"required": false;
|
|
342
|
+
"isSignal": true;
|
|
343
|
+
};
|
|
344
|
+
"closeIcon": {
|
|
345
|
+
"alias": "closeIcon";
|
|
346
|
+
"required": false;
|
|
347
|
+
"isSignal": true;
|
|
348
|
+
};
|
|
349
|
+
"closeAriaLabel": {
|
|
350
|
+
"alias": "closeAriaLabel";
|
|
351
|
+
"required": false;
|
|
352
|
+
"isSignal": true;
|
|
353
|
+
};
|
|
354
|
+
"expanded": {
|
|
355
|
+
"alias": "expanded";
|
|
356
|
+
"required": false;
|
|
357
|
+
"isSignal": true;
|
|
358
|
+
};
|
|
359
|
+
"styleClass": {
|
|
360
|
+
"alias": "styleClass";
|
|
361
|
+
"required": false;
|
|
362
|
+
"isSignal": true;
|
|
363
|
+
};
|
|
364
|
+
}, {
|
|
365
|
+
"closed": "closed";
|
|
366
|
+
}, never, ["*"], true, never>;
|
|
367
|
+
}
|