@4sh/ui-kit 0.7.0 → 0.9.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 +12 -11
- package/README.md +12 -11
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +3 -3
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +7 -5
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +4 -4
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +3 -3
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +6 -6
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +4 -4
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +8 -6
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +211 -27
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +18 -5
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +11 -9
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +7 -7
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +282 -0
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +8 -6
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +7 -5
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +215 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +8 -6
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +12 -7
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +13 -13
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +10 -10
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +10 -10
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +45 -26
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +629 -0
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +16 -16
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +4 -4
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +4 -4
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +4 -4
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +370 -0
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +7 -5
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +7 -5
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +14 -12
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -22
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +25 -21
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +298 -0
- package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +7 -5
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +34 -34
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
- package/mcp/data/text-search-docs.json +741 -71
- package/mcp/data/ui-config.json +25927 -11496
- package/mcp/package.json +1 -1
- package/package.json +21 -1
- package/styles/base/_ripple.scss +53 -0
- package/styles/component-vars.scss +1426 -687
- package/styles/index.scss +1 -0
- package/styles/settings/_ui-config.scss +54 -2
- package/styles/utils/_mixins.scss +32 -30
- package/styles/utils/_overlay.scss +1 -1
- package/styles.css +1 -1
- package/types/4sh-ui-kit-actions-ui-button.d.ts +3 -1
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +3 -1
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +59 -2
- package/types/4sh-ui-kit-forms-ui-field.d.ts +13 -1
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +3 -1
- package/types/4sh-ui-kit-forms-ui-knob.d.ts +93 -0
- package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +3 -1
- package/types/4sh-ui-kit-forms-ui-select.d.ts +3 -1
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +114 -0
- package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +3 -1
- package/types/4sh-ui-kit-forms.d.ts +5 -1
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +4 -4
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +256 -0
- package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +201 -0
- package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +3 -1
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +3 -1
- package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +3 -1
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +3 -1
- package/types/4sh-ui-kit-ripple.d.ts +156 -0
- package/types/4sh-ui-kit-table-ui-paginator.d.ts +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-informative-ui-tag.mjs","sources":["../../../projects/ui-kit/informative/ui-tag/src/lib/ui-tag.ts","../../../projects/ui-kit/informative/ui-tag/src/lib/ui-tag.html","../../../projects/ui-kit/informative/ui-tag/src/public-api.ts","../../../projects/ui-kit/informative/ui-tag/src/4sh-ui-kit-informative-ui-tag.ts"],"sourcesContent":["import { booleanAttribute, Component, computed, effect, input, isDevMode } from '@angular/core';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\nexport type TagSize = 'default' | 'small';\n\n/**\n * ui-tag — informative label / status pill.\n *\n * design system: `level` × `subLevel` (informative color families) instead of a\n * flat `severity`, an optional icon on each side, and a pill/square shape.\n *\n * Fully token-driven (like `ui-badge`) — the color families are the built-in\n * customization surface; no per-component CSS hooks.\n */\n@Component({\n selector: 'ui-tag',\n imports: [UiIcon],\n templateUrl: './ui-tag.html',\n styleUrl: './ui-tag.scss',\n})\nexport class UiTag {\n /** Text content of the tag. */\n label = input<string>();\n /** Color family. */\n level = input<UiFeedbackLevel>('default');\n /** Intensity: high (solid) or low (subtle). */\n subLevel = input<UiSubLevel>('high');\n /** Size. */\n size = input<TagSize>('default');\n /** FontAwesome name of the leading icon (optional). */\n iconLeft = input<string>();\n /** FontAwesome name of the trailing icon (optional). */\n iconRight = input<string>();\n /** Pill shape when true (default); rounded-rectangle when false. */\n rounded = input(true, { transform: booleanAttribute });\n /** Accessible name (recommended when the tag has no textual label). */\n ariaLabel = input<string>();\n\n constructor() {\n // A11y safeguard: an icon-only tag needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.ariaLabel()) {\n console.warn('[ui-tag] Tag has no text: provide `label` or `ariaLabel`.');\n }\n });\n }\n }\n\n /** @ignore There is a textual label. */\n protected readonly hasLabel = computed(() => !!this.label()?.length);\n\n /** @ignore At least one icon and no label. */\n protected readonly isIconOnly = computed(\n () => (!!this.iconLeft() || !!this.iconRight()) && !this.hasLabel(),\n );\n\n /** @ignore Icon size derived from the tag size. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-tag', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (!this.rounded()) c.push('_square');\n return c.join(' ');\n });\n}\n","<span [class]=\"classes()\" [attr.role]=\"ariaLabel() ? 'img' : null\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (iconLeft(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasLabel()) {\n <span class=\"ui-tag-label\">{{ label() }}</span>\n }\n @if (iconRight(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n</span>\n","/*\n * Public API Surface of ui-kit/ui-tag\n */\n\nexport * from './lib/ui-tag';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAMA;;;;;;;;AAQG;MAOU,KAAK,CAAA;AAkBhB,IAAA,WAAA,GAAA;;AAhBA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAEvB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,SAAS;kFAAC;;QAEzC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,MAAM;qFAAC;;QAEpC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAU,SAAS;iFAAC;;AAEhC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;;AAE1B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;QAE3B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,IAAI,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAEtD,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAcR,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,MAAM;qFAAC;;QAGjD,IAAA,CAAA,UAAU,GAAG,QAAQ,CACtC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,QA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/ui-tag/src/lib/ui-tag.html","../../../projects/ui-kit/informative/ui-tag/src/public-api.ts","../../../projects/ui-kit/informative/ui-tag/src/4sh-ui-kit-informative-ui-tag.ts"],"sourcesContent":["import { booleanAttribute, Component, computed, effect, input, isDevMode } from '@angular/core';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\nexport type TagSize = 'default' | 'small';\n\n/**\n * ui-tag — informative label / status pill.\n *\n * design system: `level` × `subLevel` (informative color families) instead of a\n * flat `severity`, an optional icon on each side, and a pill/square shape.\n *\n * Fully token-driven (like `ui-badge`) — the color families are the built-in\n * customization surface; no per-component CSS hooks.\n */\n@Component({\n selector: 'ui-tag',\n imports: [UiIcon],\n templateUrl: './ui-tag.html',\n styleUrl: './ui-tag.scss',\n})\nexport class UiTag {\n /** Text content of the tag. */\n label = input<string>();\n /** Color family. */\n level = input<UiFeedbackLevel>('default');\n /** Intensity: high (solid) or low (subtle). */\n subLevel = input<UiSubLevel>('high');\n /** Size. */\n size = input<TagSize>('default');\n /** FontAwesome name of the leading icon (optional). */\n iconLeft = input<string>();\n /** FontAwesome name of the trailing icon (optional). */\n iconRight = input<string>();\n /** Pill shape when true (default); rounded-rectangle when false. */\n rounded = input(true, { transform: booleanAttribute });\n /** Accessible name (recommended when the tag has no textual label). */\n ariaLabel = input<string>();\n\n constructor() {\n // A11y safeguard: an icon-only tag needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.ariaLabel()) {\n console.warn('[ui-tag] Tag has no text: provide `label` or `ariaLabel`.');\n }\n });\n }\n }\n\n /** @ignore There is a textual label. */\n protected readonly hasLabel = computed(() => !!this.label()?.length);\n\n /** @ignore At least one icon and no label. */\n protected readonly isIconOnly = computed(\n () => (!!this.iconLeft() || !!this.iconRight()) && !this.hasLabel(),\n );\n\n /** @ignore Icon size derived from the tag size. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-tag', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (!this.rounded()) c.push('_square');\n return c.join(' ');\n });\n}\n","<span [class]=\"classes()\" [attr.role]=\"ariaLabel() ? 'img' : null\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (iconLeft(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasLabel()) {\n <span class=\"ui-tag-label\">{{ label() }}</span>\n }\n @if (iconRight(); as name) {\n <ui-icon class=\"ui-tag-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n</span>\n","/*\n * Public API Surface of ui-kit/ui-tag\n */\n\nexport * from './lib/ui-tag';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAMA;;;;;;;;AAQG;MAOU,KAAK,CAAA;AAkBhB,IAAA,WAAA,GAAA;;AAhBA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAEvB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,SAAS;kFAAC;;QAEzC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,MAAM;qFAAC;;QAEpC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAU,SAAS;iFAAC;;AAEhC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;;AAE1B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;QAE3B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,IAAI,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAEtD,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAcR,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE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AA,EAAA,EAAA,QAAA,ECrBlB,mbAWA,EAAA,MAAA,EAAA,CAAA,yjHAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDMY,MAAM,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIL,KAAK,EAAA,UAAA,EAAA,CAAA;kBANjB,SAAS;+BACE,QAAQ,EAAA,OAAA,EACT,CAAC,MAAM,CAAC,EAAA,QAAA,EAAA,mbAAA,EAAA,MAAA,EAAA,CAAA,yjHAAA,CAAA,EAAA;;;AEjBnB;;AAEG;;ACFH;;AAEG;;"}
|
|
@@ -107,16 +107,16 @@ class UiToast {
|
|
|
107
107
|
onClose(event) {
|
|
108
108
|
this.closed.emit(event);
|
|
109
109
|
}
|
|
110
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
111
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
110
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiToast, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
111
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiToast, isStandalone: true, selector: "ui-toast", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, subLevel: { classPropertyName: "subLevel", publicName: "subLevel", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "style.display": "'inline-flex'", "style.maxWidth": "'100%'" } }, ngImport: i0, template: "<div [class]=\"classes()\" [attr.role]=\"role()\" [attr.aria-live]=\"ariaLive()\" aria-atomic=\"true\">\n @if (iconName(); as name) {\n <span class=\"ui-toast-icon\">\n <ui-icon [name]=\"name\" size=\"md\" />\n </span>\n }\n\n <div class=\"ui-toast-content\">\n @if (title(); as t) {\n <span class=\"ui-toast-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-toast-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-toast-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose($event)\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n</div>\n", styles: [".ui-toast{display:inline-flex;align-items:flex-start;gap:var(--units-sm);box-sizing:border-box;width:auto;max-width:100%;padding:var(--units-sm) var(--units-md);border:var(--stroke-default) solid transparent;border-radius:var(--radius-default);background-color:var(--ui-toast-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-toast-color, var(--informative-defaulthigh-content-default));box-shadow:var(--shadow-default-md);font-family:var(--ui-toast-font-family, var(--fontfamily-base))}.ui-toast._expanded{display:flex;width:100%}.ui-toast-icon{flex:0 0 auto;display:flex;align-items:center;padding-top:var(--units-2xs);line-height:0}.ui-toast-content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:var(--units-2xs);padding-right:var(--units-sm)}.ui-toast-title{font-family:var(--ui-toast-title-font-family, var(--fontfamily-title));font-weight:var(--ui-toast-title-weight, var(--weight-bold));font-size:var(--size-typography-title-sm);line-height:1.3;overflow-wrap:break-word}.ui-toast-text{font-weight:var(--ui-toast-text-weight, var(--weight-light));font-size:var(--size-typography-text-md);line-height:1.3;overflow-wrap:break-word}.ui-toast-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;opacity:.7;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-toast-close:hover{opacity:1}.ui-toast-close:focus-visible{outline:var(--ui-toast-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid currentColor;outline-offset:.125rem;opacity:1}@media(prefers-reduced-motion:reduce){.ui-toast-close{transition-duration:.01ms}}:root[data-motion=off] .ui-toast-close{transition-duration:.01ms}.ui-toast._default._high{background-color:var(--ui-toast-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-toast-color, var(--informative-defaulthigh-content-default));border-color:var(--ui-toast-stroke, var(--informative-defaulthigh-stroke-default))}.ui-toast._default._low{background-color:var(--ui-toast-surface, var(--informative-defaultlow-surface-default));color:var(--ui-toast-color, var(--informative-defaultlow-content-default));border-color:var(--ui-toast-stroke, var(--informative-defaultlow-stroke-default))}.ui-toast._highlight._high{background-color:var(--ui-toast-surface, var(--informative-highlighthigh-surface-default));color:var(--ui-toast-color, var(--informative-highlighthigh-content-default));border-color:var(--ui-toast-stroke, var(--informative-highlighthigh-stroke-default))}.ui-toast._highlight._low{background-color:var(--ui-toast-surface, var(--informative-highlightlow-surface-default));color:var(--ui-toast-color, var(--informative-highlightlow-content-default));border-color:var(--ui-toast-stroke, var(--informative-highlightlow-stroke-default))}.ui-toast._success._high{background-color:var(--ui-toast-surface, var(--informative-successhigh-surface-default));color:var(--ui-toast-color, var(--informative-successhigh-content-default));border-color:var(--ui-toast-stroke, var(--informative-successhigh-stroke-default))}.ui-toast._success._low{background-color:var(--ui-toast-surface, var(--informative-successlow-surface-default));color:var(--ui-toast-color, var(--informative-successlow-content-default));border-color:var(--ui-toast-stroke, var(--informative-successlow-stroke-default))}.ui-toast._warning._high{background-color:var(--ui-toast-surface, var(--informative-warninghigh-surface-default));color:var(--ui-toast-color, var(--informative-warninghigh-content-default));border-color:var(--ui-toast-stroke, var(--informative-warninghigh-stroke-default))}.ui-toast._warning._low{background-color:var(--ui-toast-surface, var(--informative-warninglow-surface-default));color:var(--ui-toast-color, var(--informative-warninglow-content-default));border-color:var(--ui-toast-stroke, var(--informative-warninglow-stroke-default))}.ui-toast._error._high{background-color:var(--ui-toast-surface, var(--informative-errorhigh-surface-default));color:var(--ui-toast-color, var(--informative-errorhigh-content-default));border-color:var(--ui-toast-stroke, var(--informative-errorhigh-stroke-default))}.ui-toast._error._low{background-color:var(--ui-toast-surface, var(--informative-errorlow-surface-default));color:var(--ui-toast-color, var(--informative-errorlow-content-default));border-color:var(--ui-toast-stroke, var(--informative-errorlow-stroke-default))}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
112
112
|
}
|
|
113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiToast, decorators: [{
|
|
114
114
|
type: Component,
|
|
115
115
|
args: [{ selector: 'ui-toast', imports: [UiIcon], host: {
|
|
116
116
|
// Hug content by default; the container makes it fill the region in banner mode.
|
|
117
117
|
'[style.display]': "'inline-flex'",
|
|
118
118
|
'[style.maxWidth]': "'100%'",
|
|
119
|
-
}, template: "<div [class]=\"classes()\" [attr.role]=\"role()\" [attr.aria-live]=\"ariaLive()\" aria-atomic=\"true\">\n @if (iconName(); as name) {\n <span class=\"ui-toast-icon\">\n <ui-icon [name]=\"name\" size=\"md\" />\n </span>\n }\n\n <div class=\"ui-toast-content\">\n @if (title(); as t) {\n <span class=\"ui-toast-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-toast-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-toast-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose($event)\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n</div>\n", styles: [".ui-toast{display:inline-flex;align-items:flex-start;gap:var(--units-sm);box-sizing:border-box;width:auto;max-width:100%;padding:var(--units-sm) var(--units-md);border:var(--stroke-default) solid transparent;border-radius:var(--radius-default);background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);box-shadow:var(--shadow-default-md);font-family:var(--fontfamily-base)}.ui-toast._expanded{display:flex;width:100%}.ui-toast-icon{flex:0 0 auto;display:flex;align-items:center;padding-top:var(--units-2xs);line-height:0}.ui-toast-content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:var(--units-2xs);padding-right:var(--units-sm)}.ui-toast-title{font-family:var(--fontfamily-title);font-weight:var(--weight-bold);font-size:var(--size-typography-title-sm);line-height:1.3;overflow-wrap:break-word}.ui-toast-text{font-weight:var(--weight-light);font-size:var(--size-typography-text-md);line-height:1.3;overflow-wrap:break-word}.ui-toast-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;opacity:.7;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-toast-close:hover{opacity:1}.ui-toast-close:focus-visible{outline:var(--ui-toast-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid currentColor;outline-offset:.125rem;opacity:1}@media(prefers-reduced-motion:reduce){.ui-toast-close{transition-duration:.01ms}}:root[data-motion=off] .ui-toast-close{transition-duration:.01ms}.ui-toast._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-toast._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-toast._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-toast._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-toast._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-toast._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-toast._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-toast._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-toast._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-toast._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"] }]
|
|
119
|
+
}, template: "<div [class]=\"classes()\" [attr.role]=\"role()\" [attr.aria-live]=\"ariaLive()\" aria-atomic=\"true\">\n @if (iconName(); as name) {\n <span class=\"ui-toast-icon\">\n <ui-icon [name]=\"name\" size=\"md\" />\n </span>\n }\n\n <div class=\"ui-toast-content\">\n @if (title(); as t) {\n <span class=\"ui-toast-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-toast-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-toast-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose($event)\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n</div>\n", styles: [".ui-toast{display:inline-flex;align-items:flex-start;gap:var(--units-sm);box-sizing:border-box;width:auto;max-width:100%;padding:var(--units-sm) var(--units-md);border:var(--stroke-default) solid transparent;border-radius:var(--radius-default);background-color:var(--ui-toast-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-toast-color, var(--informative-defaulthigh-content-default));box-shadow:var(--shadow-default-md);font-family:var(--ui-toast-font-family, var(--fontfamily-base))}.ui-toast._expanded{display:flex;width:100%}.ui-toast-icon{flex:0 0 auto;display:flex;align-items:center;padding-top:var(--units-2xs);line-height:0}.ui-toast-content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:var(--units-2xs);padding-right:var(--units-sm)}.ui-toast-title{font-family:var(--ui-toast-title-font-family, var(--fontfamily-title));font-weight:var(--ui-toast-title-weight, var(--weight-bold));font-size:var(--size-typography-title-sm);line-height:1.3;overflow-wrap:break-word}.ui-toast-text{font-weight:var(--ui-toast-text-weight, var(--weight-light));font-size:var(--size-typography-text-md);line-height:1.3;overflow-wrap:break-word}.ui-toast-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;opacity:.7;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-toast-close:hover{opacity:1}.ui-toast-close:focus-visible{outline:var(--ui-toast-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) solid currentColor;outline-offset:.125rem;opacity:1}@media(prefers-reduced-motion:reduce){.ui-toast-close{transition-duration:.01ms}}:root[data-motion=off] .ui-toast-close{transition-duration:.01ms}.ui-toast._default._high{background-color:var(--ui-toast-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-toast-color, var(--informative-defaulthigh-content-default));border-color:var(--ui-toast-stroke, var(--informative-defaulthigh-stroke-default))}.ui-toast._default._low{background-color:var(--ui-toast-surface, var(--informative-defaultlow-surface-default));color:var(--ui-toast-color, var(--informative-defaultlow-content-default));border-color:var(--ui-toast-stroke, var(--informative-defaultlow-stroke-default))}.ui-toast._highlight._high{background-color:var(--ui-toast-surface, var(--informative-highlighthigh-surface-default));color:var(--ui-toast-color, var(--informative-highlighthigh-content-default));border-color:var(--ui-toast-stroke, var(--informative-highlighthigh-stroke-default))}.ui-toast._highlight._low{background-color:var(--ui-toast-surface, var(--informative-highlightlow-surface-default));color:var(--ui-toast-color, var(--informative-highlightlow-content-default));border-color:var(--ui-toast-stroke, var(--informative-highlightlow-stroke-default))}.ui-toast._success._high{background-color:var(--ui-toast-surface, var(--informative-successhigh-surface-default));color:var(--ui-toast-color, var(--informative-successhigh-content-default));border-color:var(--ui-toast-stroke, var(--informative-successhigh-stroke-default))}.ui-toast._success._low{background-color:var(--ui-toast-surface, var(--informative-successlow-surface-default));color:var(--ui-toast-color, var(--informative-successlow-content-default));border-color:var(--ui-toast-stroke, var(--informative-successlow-stroke-default))}.ui-toast._warning._high{background-color:var(--ui-toast-surface, var(--informative-warninghigh-surface-default));color:var(--ui-toast-color, var(--informative-warninghigh-content-default));border-color:var(--ui-toast-stroke, var(--informative-warninghigh-stroke-default))}.ui-toast._warning._low{background-color:var(--ui-toast-surface, var(--informative-warninglow-surface-default));color:var(--ui-toast-color, var(--informative-warninglow-content-default));border-color:var(--ui-toast-stroke, var(--informative-warninglow-stroke-default))}.ui-toast._error._high{background-color:var(--ui-toast-surface, var(--informative-errorhigh-surface-default));color:var(--ui-toast-color, var(--informative-errorhigh-content-default));border-color:var(--ui-toast-stroke, var(--informative-errorhigh-stroke-default))}.ui-toast._error._low{background-color:var(--ui-toast-surface, var(--informative-errorlow-surface-default));color:var(--ui-toast-color, var(--informative-errorlow-content-default));border-color:var(--ui-toast-stroke, var(--informative-errorlow-stroke-default))}\n"] }]
|
|
120
120
|
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], subLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "subLevel", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], closeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeIcon", required: false }] }], closeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeAriaLabel", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
121
121
|
|
|
122
122
|
/** Process-wide counter guaranteeing unique auto-generated toast ids. */
|
|
@@ -175,10 +175,10 @@ class UiToastService {
|
|
|
175
175
|
remove(id) {
|
|
176
176
|
this._messages.update((list) => list.filter((m) => m.id !== id));
|
|
177
177
|
}
|
|
178
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
179
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.
|
|
178
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
179
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiToastService, providedIn: 'root' }); }
|
|
180
180
|
}
|
|
181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiToastService, decorators: [{
|
|
182
182
|
type: Injectable,
|
|
183
183
|
args: [{ providedIn: 'root' }]
|
|
184
184
|
}] });
|
|
@@ -404,10 +404,10 @@ class UiToastContainer {
|
|
|
404
404
|
closeFn(message) {
|
|
405
405
|
return () => this.dismiss(message);
|
|
406
406
|
}
|
|
407
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
408
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
407
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiToastContainer, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
408
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiToastContainer, isStandalone: true, selector: "ui-toast-container", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, life: { classPropertyName: "life", publicName: "life", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, motionDisabled: { classPropertyName: "motionDisabled", publicName: "motionDisabled", isSignal: true, isRequired: false, transformFunction: null }, contained: { classPropertyName: "contained", publicName: "contained", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, stackVisibleLimit: { classPropertyName: "stackVisibleLimit", publicName: "stackVisibleLimit", isSignal: true, isRequired: false, transformFunction: null }, stackGap: { classPropertyName: "stackGap", publicName: "stackGap", isSignal: true, isRequired: false, transformFunction: null }, preventDuplicates: { classPropertyName: "preventDuplicates", publicName: "preventDuplicates", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"regionClass()\" [style.z-index]=\"zIndex()\" [style.gap.px]=\"stackGap() ?? null\">\n @for (item of items(); track item.id) {\n <div\n class=\"ui-toast-region-item\"\n [uiMotion]=\"motionPreset()\"\n [motionDisabled]=\"motionDisabled()\"\n #m=\"uiMotion\"\n [animate.enter]=\"m.enter()\"\n [animate.leave]=\"m.leave()\"\n (mouseenter)=\"pause(item.id)\"\n (mouseleave)=\"resume(item.id)\"\n (focusin)=\"pause(item.id)\"\n (focusout)=\"resume(item.id)\"\n >\n <ui-toast\n [level]=\"item.level ?? 'default'\"\n [subLevel]=\"item.subLevel ?? 'high'\"\n [title]=\"template() ? undefined : item.title\"\n [text]=\"template() ? undefined : item.text\"\n [icon]=\"item.icon ?? true\"\n [closable]=\"item.closable ?? true\"\n [expanded]=\"expanded()\"\n [styleClass]=\"item.styleClass\"\n (closed)=\"dismiss(item)\"\n >\n @if (template(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: item, closeFn: closeFn(item) }\"\n />\n }\n </ui-toast>\n </div>\n }\n</div>\n", styles: [".ui-toast-region{position:fixed;z-index:var(--ui-toast-z-index, 1100);display:flex;flex-direction:column;gap:var(--ui-toast-stack-gap, var(--units-sm));width:min(var(--ui-toast-width, 22.5rem),100vw - var(--ui-toast-edge-gap, var(--units-lg)) * 2);pointer-events:none}.ui-toast-region._contained{position:absolute}.ui-toast-region._expanded{width:min(var(--ui-toast-width-expanded, 30rem),100vw - var(--ui-toast-edge-gap, var(--units-lg)) * 2)}.ui-toast-region._expanded .ui-toast-region-item>ui-toast{flex:1 1 auto}.ui-toast-region._reverse{flex-direction:column-reverse}.ui-toast-region-item{display:flex;pointer-events:auto}.ui-toast-region._top-left .ui-toast-region-item,.ui-toast-region._bottom-left .ui-toast-region-item{justify-content:flex-start}.ui-toast-region._top-right .ui-toast-region-item,.ui-toast-region._bottom-right .ui-toast-region-item{justify-content:flex-end}.ui-toast-region._top-center .ui-toast-region-item,.ui-toast-region._bottom-center .ui-toast-region-item,.ui-toast-region._center .ui-toast-region-item{justify-content:center}.ui-toast-region._top-left{top:var(--ui-toast-edge-gap, var(--units-lg));left:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._top-right{top:var(--ui-toast-edge-gap, var(--units-lg));right:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._top-center{top:var(--ui-toast-edge-gap, var(--units-lg));left:50%;transform:translate(-50%)}.ui-toast-region._bottom-left{bottom:var(--ui-toast-edge-gap, var(--units-lg));left:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._bottom-right{bottom:var(--ui-toast-edge-gap, var(--units-lg));right:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._bottom-center{bottom:var(--ui-toast-edge-gap, var(--units-lg));left:50%;transform:translate(-50%)}.ui-toast-region._center{top:50%;left:50%;transform:translate(-50%,-50%)}\n"], dependencies: [{ kind: "component", type: UiToast, selector: "ui-toast", inputs: ["title", "text", "level", "subLevel", "icon", "closable", "closeIcon", "closeAriaLabel", "expanded", "styleClass"], outputs: ["closed"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
409
409
|
}
|
|
410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiToastContainer, decorators: [{
|
|
411
411
|
type: Component,
|
|
412
412
|
args: [{ selector: 'ui-toast-container', imports: [UiToast, UiMotion, NgTemplateOutlet], template: "<div [class]=\"regionClass()\" [style.z-index]=\"zIndex()\" [style.gap.px]=\"stackGap() ?? null\">\n @for (item of items(); track item.id) {\n <div\n class=\"ui-toast-region-item\"\n [uiMotion]=\"motionPreset()\"\n [motionDisabled]=\"motionDisabled()\"\n #m=\"uiMotion\"\n [animate.enter]=\"m.enter()\"\n [animate.leave]=\"m.leave()\"\n (mouseenter)=\"pause(item.id)\"\n (mouseleave)=\"resume(item.id)\"\n (focusin)=\"pause(item.id)\"\n (focusout)=\"resume(item.id)\"\n >\n <ui-toast\n [level]=\"item.level ?? 'default'\"\n [subLevel]=\"item.subLevel ?? 'high'\"\n [title]=\"template() ? undefined : item.title\"\n [text]=\"template() ? undefined : item.text\"\n [icon]=\"item.icon ?? true\"\n [closable]=\"item.closable ?? true\"\n [expanded]=\"expanded()\"\n [styleClass]=\"item.styleClass\"\n (closed)=\"dismiss(item)\"\n >\n @if (template(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: item, closeFn: closeFn(item) }\"\n />\n }\n </ui-toast>\n </div>\n }\n</div>\n", styles: [".ui-toast-region{position:fixed;z-index:var(--ui-toast-z-index, 1100);display:flex;flex-direction:column;gap:var(--ui-toast-stack-gap, var(--units-sm));width:min(var(--ui-toast-width, 22.5rem),100vw - var(--ui-toast-edge-gap, var(--units-lg)) * 2);pointer-events:none}.ui-toast-region._contained{position:absolute}.ui-toast-region._expanded{width:min(var(--ui-toast-width-expanded, 30rem),100vw - var(--ui-toast-edge-gap, var(--units-lg)) * 2)}.ui-toast-region._expanded .ui-toast-region-item>ui-toast{flex:1 1 auto}.ui-toast-region._reverse{flex-direction:column-reverse}.ui-toast-region-item{display:flex;pointer-events:auto}.ui-toast-region._top-left .ui-toast-region-item,.ui-toast-region._bottom-left .ui-toast-region-item{justify-content:flex-start}.ui-toast-region._top-right .ui-toast-region-item,.ui-toast-region._bottom-right .ui-toast-region-item{justify-content:flex-end}.ui-toast-region._top-center .ui-toast-region-item,.ui-toast-region._bottom-center .ui-toast-region-item,.ui-toast-region._center .ui-toast-region-item{justify-content:center}.ui-toast-region._top-left{top:var(--ui-toast-edge-gap, var(--units-lg));left:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._top-right{top:var(--ui-toast-edge-gap, var(--units-lg));right:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._top-center{top:var(--ui-toast-edge-gap, var(--units-lg));left:50%;transform:translate(-50%)}.ui-toast-region._bottom-left{bottom:var(--ui-toast-edge-gap, var(--units-lg));left:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._bottom-right{bottom:var(--ui-toast-edge-gap, var(--units-lg));right:var(--ui-toast-edge-gap, var(--units-lg))}.ui-toast-region._bottom-center{bottom:var(--ui-toast-edge-gap, var(--units-lg));left:50%;transform:translate(-50%)}.ui-toast-region._center{top:50%;left:50%;transform:translate(-50%,-50%)}\n"] }]
|
|
413
413
|
}], ctorParameters: () => [], propDecorators: { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], life: [{ type: i0.Input, args: [{ isSignal: true, alias: "life", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], motionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionDisabled", required: false }] }], contained: [{ type: i0.Input, args: [{ isSignal: true, alias: "contained", required: false }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], stackVisibleLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "stackVisibleLimit", required: false }] }], stackGap: [{ type: i0.Input, args: [{ isSignal: true, alias: "stackGap", required: false }] }], preventDuplicates: [{ type: i0.Input, args: [{ isSignal: true, alias: "preventDuplicates", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-informative-ui-toast.mjs","sources":["../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.types.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.html","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.service.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast-container.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast-container.html","../../../projects/ui-kit/informative/ui-toast/src/public-api.ts","../../../projects/ui-kit/informative/ui-toast/src/4sh-ui-kit-informative-ui-toast.ts"],"sourcesContent":["import { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\n/** Unique identifier of a toast message (auto-generated when omitted). */\nexport type UiToastId = string | number;\n\n/**\n * Where a {@link UiToastContainer} pins its stack in the viewport.\n */\nexport type UiToastPosition =\n | 'top-left'\n | 'top-center'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'bottom-right'\n | 'center';\n\n/** All positions, in declaration order (handy for stories/docs). */\nexport const UI_TOAST_POSITIONS: readonly UiToastPosition[] = [\n 'top-left',\n 'top-center',\n 'top-right',\n 'bottom-left',\n 'bottom-center',\n 'bottom-right',\n 'center',\n];\n\n/**\n * A single toast message pushed through the {@link UiToastService}.\n *\n * Only `title`/`text` are typically needed; everything else has a sensible\n * default resolved by the container.\n * remapped to this design system's semantic `level` / `subLevel` vocabulary.\n */\nexport interface UiToastMessage {\n /** Unique id. Auto-generated by the service when omitted. */\n id?: UiToastId;\n /** Routes the message to the container(s) sharing the same `key`. */\n key?: string;\n /** Semantic level (drives colours + default icon). */\n level?: UiFeedbackLevel;\n /** Hierarchical intensity (`high` = solid, `low` = subtle). */\n subLevel?: UiSubLevel;\n /** Bold heading line. */\n title?: string;\n /** Supporting body line. */\n text?: string;\n /**\n * Leading icon: a FontAwesome name to override the level default, `false`\n * to hide it, or omit / `true` for the level's default icon.\n */\n icon?: string | boolean;\n /** Show the dismiss button (default `true`). */\n closable?: boolean;\n /** Never auto-dismiss — the user must close it (default `false`). */\n sticky?: boolean;\n /** Auto-dismiss delay in ms. Falls back to the container `life`. */\n life?: number;\n /** Arbitrary payload forwarded to a custom `template` (custom / action toasts). */\n data?: unknown;\n /** Extra class(es) applied to the toast card for one-off styling. */\n styleClass?: string;\n}\n\n/** Context object handed to a container's custom content `template`. */\nexport interface UiToastTemplateContext {\n /** The message being rendered. */\n $implicit: UiToastMessage;\n /** Dismisses this toast (same as clicking the close button). */\n closeFn: () => void;\n}\n\n/** Default leading icon per semantic level (FontAwesome names, from the Figma source). */\nexport const UI_TOAST_DEFAULT_ICONS: Record<UiFeedbackLevel, string> = {\n default: 'info-circle',\n highlight: 'info-circle',\n success: 'check',\n warning: 'warning',\n error: 'times',\n};\n","import { booleanAttribute, Component, computed, input, output } from '@angular/core';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\nimport { UI_TOAST_DEFAULT_ICONS } from './ui-toast.types';\n\n/**\n * ui-toast — presentational notification card.\n *\n * Headless & fully token-driven (the `informative` category): surface, content\n * and stroke all come from `--informative-{level}{sub}-*`. It renders the Figma\n * anatomy (leading icon · title/text · dismiss button) and projects `<ng-content>`\n * in the content region for custom bodies or action buttons.\n *\n * Usually rendered for you by {@link UiToastContainer} from a {@link UiToastService}\n * message, but it is a plain standalone card — drop `<ui-toast>` anywhere.\n *\n * @example\n * ```html\n * <ui-toast level=\"success\" title=\"Enregistré\" text=\"Profil mis à jour.\" (closed)=\"…\" />\n * ```\n */\n@Component({\n selector: 'ui-toast',\n imports: [UiIcon],\n templateUrl: './ui-toast.html',\n styleUrl: './ui-toast.scss',\n host: {\n // Hug content by default; the container makes it fill the region in banner mode.\n '[style.display]': \"'inline-flex'\",\n '[style.maxWidth]': \"'100%'\",\n },\n})\nexport class UiToast {\n /** Bold heading line. */\n title = input<string>();\n /** Supporting body line. */\n text = input<string>();\n /** Semantic level — colours + default icon. */\n level = input<UiFeedbackLevel>('default');\n /** Hierarchical intensity (`high` = solid, `low` = subtle). */\n subLevel = input<UiSubLevel>('high');\n /**\n * Leading icon: a FontAwesome name to override the level default, `false`\n * to hide it, or `true` (default) for the level's default icon.\n */\n icon = input<string | boolean>(true);\n /** Show the dismiss button (default `true`). */\n closable = input(true, { transform: booleanAttribute });\n /** FontAwesome name of the dismiss icon. */\n closeIcon = input<string>('times-circle');\n /** Accessible label of the dismiss button. */\n closeAriaLabel = input<string>('Fermer');\n /** Stretch the card to fill its region width (banner-style). */\n expanded = input(false, { transform: booleanAttribute });\n /** Extra class(es) merged onto the card root. */\n styleClass = input<string>();\n\n /** Emitted when the user clicks the dismiss button. */\n closed = output<MouseEvent>();\n\n /** @ignore Resolved leading icon name (null when hidden). */\n protected readonly iconName = computed<string | null>(() => {\n const icon = this.icon();\n if (icon === false) return null;\n if (typeof icon === 'string') return icon;\n return UI_TOAST_DEFAULT_ICONS[this.level()];\n });\n\n /** @ignore ARIA role — assertive alert for error/warning, polite status otherwise\n * (mirrors ui-alert, so a standalone ui-toast self-announces without the container). */\n protected readonly role = computed(() =>\n this.level() === 'error' || this.level() === 'warning' ? 'alert' : 'status',\n );\n\n /** @ignore */\n protected readonly ariaLive = computed(() =>\n this.level() === 'error' || this.level() === 'warning' ? 'assertive' : 'polite',\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-toast', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.expanded()) c.push('_expanded');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n\n /** @ignore */\n protected onClose(event: MouseEvent): void {\n this.closed.emit(event);\n }\n}\n","<div [class]=\"classes()\" [attr.role]=\"role()\" [attr.aria-live]=\"ariaLive()\" aria-atomic=\"true\">\n @if (iconName(); as name) {\n <span class=\"ui-toast-icon\">\n <ui-icon [name]=\"name\" size=\"md\" />\n </span>\n }\n\n <div class=\"ui-toast-content\">\n @if (title(); as t) {\n <span class=\"ui-toast-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-toast-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-toast-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose($event)\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n</div>\n","import { computed, Injectable, signal } from '@angular/core';\nimport { UiToastId, UiToastMessage } from './ui-toast.types';\n\n/** Process-wide counter guaranteeing unique auto-generated toast ids. */\nlet nextId = 0;\n\n/**\n * ui-toast service — programmatic entry point to push and clear toasts.\n *\n * Signal-based store:\n * `add`/`addAll` append messages, `clear`/`remove` drop them. One or more\n * {@link UiToastContainer} instances read this store reactively and render the\n * slice that matches their `key`. Provided in root, so a single injection is\n * shared across the app.\n *\n * @example\n * ```ts\n * private readonly toast = inject(UiToastService);\n * this.toast.add({ level: 'success', title: 'Enregistré', text: 'Profil mis à jour.' });\n * ```\n */\n@Injectable({ providedIn: 'root' })\nexport class UiToastService {\n /** @ignore Backing store of live messages. */\n private readonly _messages = signal<UiToastMessage[]>([]);\n\n /** Live messages, in insertion order (read-only). */\n readonly messages = this._messages.asReadonly();\n\n /** Total number of live messages across every key. */\n readonly count = computed(() => this._messages().length);\n\n /**\n * Push a single message. Returns its (possibly generated) id so the caller\n * can dismiss it later (e.g. resolving a \"loading\" toast into a result).\n */\n add(message: UiToastMessage): UiToastId {\n const id = message.id ?? `ui-toast-${nextId++}`;\n this._messages.update((list) => [...list, { ...message, id }]);\n return id;\n }\n\n /** Push several messages at once. Returns their ids, in order. */\n addAll(messages: UiToastMessage[]): UiToastId[] {\n return messages.map((message) => this.add(message));\n }\n\n /**\n * Remove messages. With no argument, clears everything; with a `key`, clears\n * only the messages routed to that key.\n */\n clear(key?: string): void {\n if (key == null) {\n this._messages.set([]);\n return;\n }\n this._messages.update((list) => list.filter((m) => m.key !== key));\n }\n\n /** Remove a single message by id (no-op if it is already gone). */\n remove(id: UiToastId): void {\n this._messages.update((list) => list.filter((m) => m.id !== id));\n }\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n Component,\n computed,\n DestroyRef,\n effect,\n inject,\n input,\n numberAttribute,\n PLATFORM_ID,\n TemplateRef,\n} from '@angular/core';\nimport { UiMotion, UiMotionPreset } from '@4sh/ui-kit/motion';\nimport { UiToast } from './ui-toast';\nimport { UiToastService } from './ui-toast.service';\nimport { UiToastId, UiToastMessage, UiToastPosition } from './ui-toast.types';\n\n/** Enter/leave motion preset that best fits each anchor edge. */\nconst MOTION_BY_POSITION: Record<UiToastPosition, UiMotionPreset> = {\n 'top-left': 'slide-down',\n 'top-center': 'slide-down',\n 'top-right': 'slide-down',\n 'bottom-left': 'slide-up',\n 'bottom-center': 'slide-up',\n 'bottom-right': 'slide-up',\n center: 'zoom',\n};\n\n/** Base stacking level — mirrors `$toast-z-index` in the SCSS. */\nconst TOAST_BASE_Z_INDEX = 1100;\n\n/** Process-wide sequence so `autoZIndex` layers later stacks above earlier ones. */\nlet zIndexSeq = 0;\n\n/**\n * ui-toast-container — the viewport-pinned stack that renders {@link UiToastService}\n * messages as {@link UiToast} cards.\n *\n * Drop one near the app root (e.g. in `app.html`). It reads the service store\n * reactively, shows the slice matching its `key`, animates insert/remove through\n * the shared motion system (`animate.enter` / `animate.leave`), and auto-dismisses\n * non-sticky toasts after `life` ms — pausing the countdown while hovered.\n *\n * Positioning is `fixed` by default (relative to the viewport); set `contained`\n * to switch to `absolute` so the stack stays inside the nearest positioned\n * ancestor (used by the Storybook demos).\n *\n * @example\n * ```html\n * <ui-toast-container position=\"top-right\" [life]=\"4000\" />\n * ```\n */\n@Component({\n selector: 'ui-toast-container',\n imports: [UiToast, UiMotion, NgTemplateOutlet],\n templateUrl: './ui-toast-container.html',\n styleUrl: './ui-toast-container.scss',\n})\nexport class UiToastContainer {\n /** Only render messages whose `key` matches (omit to render key-less messages). */\n key = input<string>();\n /** Where the stack is pinned in the viewport. */\n position = input<UiToastPosition>('top-right');\n /** Default auto-dismiss delay (ms) for non-sticky toasts. Per-message `life` wins. */\n life = input(4000, { transform: numberAttribute });\n /** Render toasts as full-width banners (fill the region width). */\n expanded = input(false, { transform: booleanAttribute });\n /** Motion preset override. Defaults to a per-position choice. */\n motion = input<UiMotionPreset>();\n /** Disable enter/leave animation for this stack. */\n motionDisabled = input(false, { transform: booleanAttribute });\n /** Use `position: absolute` (scoped to a positioned ancestor) instead of `fixed`. */\n contained = input(false, { transform: booleanAttribute });\n /**\n * Custom content template rendered inside each card in place of `title`/`text`.\n * Context: `{ $implicit: message, closeFn }`.\n */\n template = input<TemplateRef<unknown>>();\n /** Extra class(es) merged onto the region root. */\n styleClass = input<string>();\n /** Show only the N most recent toasts; older ones wait their turn (`0` = no limit). */\n stackVisibleLimit = input(0, { transform: numberAttribute });\n /** Gap between stacked cards in px (overrides the `--units-sm` token default). */\n stackGap = input<number>();\n /** Skip a new toast whose content (level + title + text) matches a live one. */\n preventDuplicates = input(false, { transform: booleanAttribute });\n /** Automatically layer this stack above earlier ones (later container wins). */\n autoZIndex = input(true, { transform: booleanAttribute });\n /** Floor z-index for the stack (added to the auto value, or used as-is when `autoZIndex=false`). */\n baseZIndex = input(0, { transform: numberAttribute });\n\n /** @ignore */\n private readonly service = inject(UiToastService);\n /** @ignore Per-instance layering rank for `autoZIndex`. */\n private readonly zSeq = ++zIndexSeq;\n /** @ignore */\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n /** @ignore All live messages routed to this container (drives timers/dedup). */\n private readonly keyed = computed(() =>\n this.service.messages().filter((m) => m.key === this.key()),\n );\n\n /** @ignore Rendered slice — the most recent `stackVisibleLimit` toasts. */\n protected readonly items = computed(() => {\n const all = this.keyed();\n const limit = this.stackVisibleLimit();\n return limit > 0 ? all.slice(-limit) : all;\n });\n\n /** @ignore Effective stacking level. */\n protected readonly zIndex = computed(() => {\n const base = this.baseZIndex();\n if (this.autoZIndex()) return TOAST_BASE_Z_INDEX + base + this.zSeq;\n return base > 0 ? base : TOAST_BASE_Z_INDEX;\n });\n\n /** @ignore Resolved enter/leave preset. */\n protected readonly motionPreset = computed<UiMotionPreset>(\n () => this.motion() ?? MOTION_BY_POSITION[this.position()],\n );\n\n /** @ignore */\n protected readonly regionClass = computed(() => {\n const c = ['ui-toast-region', `_${this.position()}`];\n if (this.contained()) c.push('_contained');\n if (this.expanded()) c.push('_expanded');\n // Anchor at the bottom edge → newest toast nearest the edge (column-reverse in SCSS).\n if (this.position().startsWith('bottom')) c.push('_reverse');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n\n // --- Life timers (auto-dismiss, hover-pausable) ----------------------\n\n /** @ignore Active timeout handles, keyed by message id. */\n private readonly timers = new Map<UiToastId, ReturnType<typeof setTimeout>>();\n /** @ignore Remaining ms per message (survives hover pause). */\n private readonly remaining = new Map<UiToastId, number>();\n /** @ignore Wall-clock start of the running countdown, per message. */\n private readonly startedAt = new Map<UiToastId, number>();\n\n constructor() {\n // Reconcile dedup + life timers whenever this container's message set changes.\n effect(() => {\n const keyed = this.keyed();\n\n // preventDuplicates: drop later toasts whose content matches an earlier one.\n if (this.preventDuplicates()) {\n const seen = new Set<string>();\n const dupes: UiToastId[] = [];\n for (const m of keyed) {\n const sig = `${m.level ?? 'default'}|${m.title ?? ''}|${m.text ?? ''}`;\n if (seen.has(sig)) dupes.push(m.id!);\n else seen.add(sig);\n }\n if (dupes.length) {\n // Store mutation re-runs this effect on the deduplicated set.\n dupes.forEach((id) => this.service.remove(id));\n return;\n }\n }\n\n const liveIds = new Set(keyed.map((m) => m.id));\n\n // Drop timer bookkeeping for messages that are gone.\n for (const id of [...this.timers.keys()]) {\n if (!liveIds.has(id)) this.forget(id);\n }\n for (const id of [...this.remaining.keys()]) {\n if (!liveIds.has(id)) this.remaining.delete(id);\n }\n\n if (!this.isBrowser) return;\n\n // Arm a countdown for each new, non-sticky message (even ones beyond the\n // visible limit, so a queued toast still expires on schedule).\n for (const message of keyed) {\n const id = message.id!;\n if (message.sticky) continue;\n if (this.timers.has(id) || this.remaining.has(id)) continue;\n const life = message.life ?? this.life();\n if (life > 0) this.arm(id, life);\n }\n });\n\n inject(DestroyRef).onDestroy(() => {\n for (const id of [...this.timers.keys()]) this.forget(id);\n });\n }\n\n /** @ignore Start (or restart) a countdown of `ms` for a message. */\n private arm(id: UiToastId, ms: number): void {\n this.remaining.set(id, ms);\n this.startedAt.set(id, Date.now());\n this.timers.set(\n id,\n setTimeout(() => {\n this.timers.delete(id);\n this.service.remove(id);\n }, ms),\n );\n }\n\n /** @ignore Cancel and drop all timer bookkeeping for a message. */\n private forget(id: UiToastId): void {\n const handle = this.timers.get(id);\n if (handle) clearTimeout(handle);\n this.timers.delete(id);\n this.startedAt.delete(id);\n }\n\n /** @ignore Pause the countdown on hover/focus (banks the remaining time). */\n protected pause(id: UiToastId | undefined): void {\n if (id == null) return;\n const handle = this.timers.get(id);\n if (!handle) return;\n clearTimeout(handle);\n this.timers.delete(id);\n const banked = this.remaining.get(id) ?? 0;\n const elapsed = Date.now() - (this.startedAt.get(id) ?? Date.now());\n this.remaining.set(id, Math.max(banked - elapsed, 0));\n }\n\n /** @ignore Resume a paused countdown when the pointer/focus leaves. */\n protected resume(id: UiToastId | undefined): void {\n if (id == null || !this.isBrowser) return;\n if (this.timers.has(id)) return;\n const left = this.remaining.get(id);\n if (left == null || left <= 0) return;\n this.arm(id, left);\n }\n\n /** @ignore Dismiss a toast (close button or a custom template's `closeFn`). */\n protected dismiss(message: UiToastMessage): void {\n if (message.id != null) this.service.remove(message.id);\n }\n\n /** @ignore Template-context factory: a bound close handler for one message. */\n protected closeFn(message: UiToastMessage): () => void {\n return () => this.dismiss(message);\n }\n}\n","<div [class]=\"regionClass()\" [style.z-index]=\"zIndex()\" [style.gap.px]=\"stackGap() ?? null\">\n @for (item of items(); track item.id) {\n <div\n class=\"ui-toast-region-item\"\n [uiMotion]=\"motionPreset()\"\n [motionDisabled]=\"motionDisabled()\"\n #m=\"uiMotion\"\n [animate.enter]=\"m.enter()\"\n [animate.leave]=\"m.leave()\"\n (mouseenter)=\"pause(item.id)\"\n (mouseleave)=\"resume(item.id)\"\n (focusin)=\"pause(item.id)\"\n (focusout)=\"resume(item.id)\"\n >\n <ui-toast\n [level]=\"item.level ?? 'default'\"\n [subLevel]=\"item.subLevel ?? 'high'\"\n [title]=\"template() ? undefined : item.title\"\n [text]=\"template() ? undefined : item.text\"\n [icon]=\"item.icon ?? true\"\n [closable]=\"item.closable ?? true\"\n [expanded]=\"expanded()\"\n [styleClass]=\"item.styleClass\"\n (closed)=\"dismiss(item)\"\n >\n @if (template(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: item, closeFn: closeFn(item) }\"\n />\n }\n </ui-toast>\n </div>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-toast\n */\n\nexport * from './lib/ui-toast-container';\nexport * from './lib/ui-toast.service';\nexport * from './lib/ui-toast';\nexport * from './lib/ui-toast.types';\n","/**\n * Generated bundle index. Do not edit.\n */\n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B,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,WACrB,CAAC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAAA,+pCAAA,EAAA,MAAA,EAAA,CAAA,i0DAAA,CAAA,EAAA;;;AExDhD;;AAEG;;ACFH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-informative-ui-toast.mjs","sources":["../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.types.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.html","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.service.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast-container.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast-container.html","../../../projects/ui-kit/informative/ui-toast/src/public-api.ts","../../../projects/ui-kit/informative/ui-toast/src/4sh-ui-kit-informative-ui-toast.ts"],"sourcesContent":["import { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\n/** Unique identifier of a toast message (auto-generated when omitted). */\nexport type UiToastId = string | number;\n\n/**\n * Where a {@link UiToastContainer} pins its stack in the viewport.\n */\nexport type UiToastPosition =\n | 'top-left'\n | 'top-center'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'bottom-right'\n | 'center';\n\n/** All positions, in declaration order (handy for stories/docs). */\nexport const UI_TOAST_POSITIONS: readonly UiToastPosition[] = [\n 'top-left',\n 'top-center',\n 'top-right',\n 'bottom-left',\n 'bottom-center',\n 'bottom-right',\n 'center',\n];\n\n/**\n * A single toast message pushed through the {@link UiToastService}.\n *\n * Only `title`/`text` are typically needed; everything else has a sensible\n * default resolved by the container.\n * remapped to this design system's semantic `level` / `subLevel` vocabulary.\n */\nexport interface UiToastMessage {\n /** Unique id. Auto-generated by the service when omitted. */\n id?: UiToastId;\n /** Routes the message to the container(s) sharing the same `key`. */\n key?: string;\n /** Semantic level (drives colours + default icon). */\n level?: UiFeedbackLevel;\n /** Hierarchical intensity (`high` = solid, `low` = subtle). */\n subLevel?: UiSubLevel;\n /** Bold heading line. */\n title?: string;\n /** Supporting body line. */\n text?: string;\n /**\n * Leading icon: a FontAwesome name to override the level default, `false`\n * to hide it, or omit / `true` for the level's default icon.\n */\n icon?: string | boolean;\n /** Show the dismiss button (default `true`). */\n closable?: boolean;\n /** Never auto-dismiss — the user must close it (default `false`). */\n sticky?: boolean;\n /** Auto-dismiss delay in ms. Falls back to the container `life`. */\n life?: number;\n /** Arbitrary payload forwarded to a custom `template` (custom / action toasts). */\n data?: unknown;\n /** Extra class(es) applied to the toast card for one-off styling. */\n styleClass?: string;\n}\n\n/** Context object handed to a container's custom content `template`. */\nexport interface UiToastTemplateContext {\n /** The message being rendered. */\n $implicit: UiToastMessage;\n /** Dismisses this toast (same as clicking the close button). */\n closeFn: () => void;\n}\n\n/** Default leading icon per semantic level (FontAwesome names, from the Figma source). */\nexport const UI_TOAST_DEFAULT_ICONS: Record<UiFeedbackLevel, string> = {\n default: 'info-circle',\n highlight: 'info-circle',\n success: 'check',\n warning: 'warning',\n error: 'times',\n};\n","import { booleanAttribute, Component, computed, input, output } from '@angular/core';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\nimport { UI_TOAST_DEFAULT_ICONS } from './ui-toast.types';\n\n/**\n * ui-toast — presentational notification card.\n *\n * Headless & fully token-driven (the `informative` category): surface, content\n * and stroke all come from `--informative-{level}{sub}-*`. It renders the Figma\n * anatomy (leading icon · title/text · dismiss button) and projects `<ng-content>`\n * in the content region for custom bodies or action buttons.\n *\n * Usually rendered for you by {@link UiToastContainer} from a {@link UiToastService}\n * message, but it is a plain standalone card — drop `<ui-toast>` anywhere.\n *\n * @example\n * ```html\n * <ui-toast level=\"success\" title=\"Enregistré\" text=\"Profil mis à jour.\" (closed)=\"…\" />\n * ```\n */\n@Component({\n selector: 'ui-toast',\n imports: [UiIcon],\n templateUrl: './ui-toast.html',\n styleUrl: './ui-toast.scss',\n host: {\n // Hug content by default; the container makes it fill the region in banner mode.\n '[style.display]': \"'inline-flex'\",\n '[style.maxWidth]': \"'100%'\",\n },\n})\nexport class UiToast {\n /** Bold heading line. */\n title = input<string>();\n /** Supporting body line. */\n text = input<string>();\n /** Semantic level — colours + default icon. */\n level = input<UiFeedbackLevel>('default');\n /** Hierarchical intensity (`high` = solid, `low` = subtle). */\n subLevel = input<UiSubLevel>('high');\n /**\n * Leading icon: a FontAwesome name to override the level default, `false`\n * to hide it, or `true` (default) for the level's default icon.\n */\n icon = input<string | boolean>(true);\n /** Show the dismiss button (default `true`). */\n closable = input(true, { transform: booleanAttribute });\n /** FontAwesome name of the dismiss icon. */\n closeIcon = input<string>('times-circle');\n /** Accessible label of the dismiss button. */\n closeAriaLabel = input<string>('Fermer');\n /** Stretch the card to fill its region width (banner-style). */\n expanded = input(false, { transform: booleanAttribute });\n /** Extra class(es) merged onto the card root. */\n styleClass = input<string>();\n\n /** Emitted when the user clicks the dismiss button. */\n closed = output<MouseEvent>();\n\n /** @ignore Resolved leading icon name (null when hidden). */\n protected readonly iconName = computed<string | null>(() => {\n const icon = this.icon();\n if (icon === false) return null;\n if (typeof icon === 'string') return icon;\n return UI_TOAST_DEFAULT_ICONS[this.level()];\n });\n\n /** @ignore ARIA role — assertive alert for error/warning, polite status otherwise\n * (mirrors ui-alert, so a standalone ui-toast self-announces without the container). */\n protected readonly role = computed(() =>\n this.level() === 'error' || this.level() === 'warning' ? 'alert' : 'status',\n );\n\n /** @ignore */\n protected readonly ariaLive = computed(() =>\n this.level() === 'error' || this.level() === 'warning' ? 'assertive' : 'polite',\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-toast', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.expanded()) c.push('_expanded');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n\n /** @ignore */\n protected onClose(event: MouseEvent): void {\n this.closed.emit(event);\n }\n}\n","<div [class]=\"classes()\" [attr.role]=\"role()\" [attr.aria-live]=\"ariaLive()\" aria-atomic=\"true\">\n @if (iconName(); as name) {\n <span class=\"ui-toast-icon\">\n <ui-icon [name]=\"name\" size=\"md\" />\n </span>\n }\n\n <div class=\"ui-toast-content\">\n @if (title(); as t) {\n <span class=\"ui-toast-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-toast-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-toast-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose($event)\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n</div>\n","import { computed, Injectable, signal } from '@angular/core';\nimport { UiToastId, UiToastMessage } from './ui-toast.types';\n\n/** Process-wide counter guaranteeing unique auto-generated toast ids. */\nlet nextId = 0;\n\n/**\n * ui-toast service — programmatic entry point to push and clear toasts.\n *\n * Signal-based store:\n * `add`/`addAll` append messages, `clear`/`remove` drop them. One or more\n * {@link UiToastContainer} instances read this store reactively and render the\n * slice that matches their `key`. Provided in root, so a single injection is\n * shared across the app.\n *\n * @example\n * ```ts\n * private readonly toast = inject(UiToastService);\n * this.toast.add({ level: 'success', title: 'Enregistré', text: 'Profil mis à jour.' });\n * ```\n */\n@Injectable({ providedIn: 'root' })\nexport class UiToastService {\n /** @ignore Backing store of live messages. */\n private readonly _messages = signal<UiToastMessage[]>([]);\n\n /** Live messages, in insertion order (read-only). */\n readonly messages = this._messages.asReadonly();\n\n /** Total number of live messages across every key. */\n readonly count = computed(() => this._messages().length);\n\n /**\n * Push a single message. Returns its (possibly generated) id so the caller\n * can dismiss it later (e.g. resolving a \"loading\" toast into a result).\n */\n add(message: UiToastMessage): UiToastId {\n const id = message.id ?? `ui-toast-${nextId++}`;\n this._messages.update((list) => [...list, { ...message, id }]);\n return id;\n }\n\n /** Push several messages at once. Returns their ids, in order. */\n addAll(messages: UiToastMessage[]): UiToastId[] {\n return messages.map((message) => this.add(message));\n }\n\n /**\n * Remove messages. With no argument, clears everything; with a `key`, clears\n * only the messages routed to that key.\n */\n clear(key?: string): void {\n if (key == null) {\n this._messages.set([]);\n return;\n }\n this._messages.update((list) => list.filter((m) => m.key !== key));\n }\n\n /** Remove a single message by id (no-op if it is already gone). */\n remove(id: UiToastId): void {\n this._messages.update((list) => list.filter((m) => m.id !== id));\n }\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n Component,\n computed,\n DestroyRef,\n effect,\n inject,\n input,\n numberAttribute,\n PLATFORM_ID,\n TemplateRef,\n} from '@angular/core';\nimport { UiMotion, UiMotionPreset } from '@4sh/ui-kit/motion';\nimport { UiToast } from './ui-toast';\nimport { UiToastService } from './ui-toast.service';\nimport { UiToastId, UiToastMessage, UiToastPosition } from './ui-toast.types';\n\n/** Enter/leave motion preset that best fits each anchor edge. */\nconst MOTION_BY_POSITION: Record<UiToastPosition, UiMotionPreset> = {\n 'top-left': 'slide-down',\n 'top-center': 'slide-down',\n 'top-right': 'slide-down',\n 'bottom-left': 'slide-up',\n 'bottom-center': 'slide-up',\n 'bottom-right': 'slide-up',\n center: 'zoom',\n};\n\n/** Base stacking level — mirrors `$toast-z-index` in the SCSS. */\nconst TOAST_BASE_Z_INDEX = 1100;\n\n/** Process-wide sequence so `autoZIndex` layers later stacks above earlier ones. */\nlet zIndexSeq = 0;\n\n/**\n * ui-toast-container — the viewport-pinned stack that renders {@link UiToastService}\n * messages as {@link UiToast} cards.\n *\n * Drop one near the app root (e.g. in `app.html`). It reads the service store\n * reactively, shows the slice matching its `key`, animates insert/remove through\n * the shared motion system (`animate.enter` / `animate.leave`), and auto-dismisses\n * non-sticky toasts after `life` ms — pausing the countdown while hovered.\n *\n * Positioning is `fixed` by default (relative to the viewport); set `contained`\n * to switch to `absolute` so the stack stays inside the nearest positioned\n * ancestor (used by the Storybook demos).\n *\n * @example\n * ```html\n * <ui-toast-container position=\"top-right\" [life]=\"4000\" />\n * ```\n */\n@Component({\n selector: 'ui-toast-container',\n imports: [UiToast, UiMotion, NgTemplateOutlet],\n templateUrl: './ui-toast-container.html',\n styleUrl: './ui-toast-container.scss',\n})\nexport class UiToastContainer {\n /** Only render messages whose `key` matches (omit to render key-less messages). */\n key = input<string>();\n /** Where the stack is pinned in the viewport. */\n position = input<UiToastPosition>('top-right');\n /** Default auto-dismiss delay (ms) for non-sticky toasts. Per-message `life` wins. */\n life = input(4000, { transform: numberAttribute });\n /** Render toasts as full-width banners (fill the region width). */\n expanded = input(false, { transform: booleanAttribute });\n /** Motion preset override. Defaults to a per-position choice. */\n motion = input<UiMotionPreset>();\n /** Disable enter/leave animation for this stack. */\n motionDisabled = input(false, { transform: booleanAttribute });\n /** Use `position: absolute` (scoped to a positioned ancestor) instead of `fixed`. */\n contained = input(false, { transform: booleanAttribute });\n /**\n * Custom content template rendered inside each card in place of `title`/`text`.\n * Context: `{ $implicit: message, closeFn }`.\n */\n template = input<TemplateRef<unknown>>();\n /** Extra class(es) merged onto the region root. */\n styleClass = input<string>();\n /** Show only the N most recent toasts; older ones wait their turn (`0` = no limit). */\n stackVisibleLimit = input(0, { transform: numberAttribute });\n /** Gap between stacked cards in px (overrides the `--units-sm` token default). */\n stackGap = input<number>();\n /** Skip a new toast whose content (level + title + text) matches a live one. */\n preventDuplicates = input(false, { transform: booleanAttribute });\n /** Automatically layer this stack above earlier ones (later container wins). */\n autoZIndex = input(true, { transform: booleanAttribute });\n /** Floor z-index for the stack (added to the auto value, or used as-is when `autoZIndex=false`). */\n baseZIndex = input(0, { transform: numberAttribute });\n\n /** @ignore */\n private readonly service = inject(UiToastService);\n /** @ignore Per-instance layering rank for `autoZIndex`. */\n private readonly zSeq = ++zIndexSeq;\n /** @ignore */\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n /** @ignore All live messages routed to this container (drives timers/dedup). */\n private readonly keyed = computed(() =>\n this.service.messages().filter((m) => m.key === this.key()),\n );\n\n /** @ignore Rendered slice — the most recent `stackVisibleLimit` toasts. */\n protected readonly items = computed(() => {\n const all = this.keyed();\n const limit = this.stackVisibleLimit();\n return limit > 0 ? all.slice(-limit) : all;\n });\n\n /** @ignore Effective stacking level. */\n protected readonly zIndex = computed(() => {\n const base = this.baseZIndex();\n if (this.autoZIndex()) return TOAST_BASE_Z_INDEX + base + this.zSeq;\n return base > 0 ? base : TOAST_BASE_Z_INDEX;\n });\n\n /** @ignore Resolved enter/leave preset. */\n protected readonly motionPreset = computed<UiMotionPreset>(\n () => this.motion() ?? MOTION_BY_POSITION[this.position()],\n );\n\n /** @ignore */\n protected readonly regionClass = computed(() => {\n const c = ['ui-toast-region', `_${this.position()}`];\n if (this.contained()) c.push('_contained');\n if (this.expanded()) c.push('_expanded');\n // Anchor at the bottom edge → newest toast nearest the edge (column-reverse in SCSS).\n if (this.position().startsWith('bottom')) c.push('_reverse');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n\n // --- Life timers (auto-dismiss, hover-pausable) ----------------------\n\n /** @ignore Active timeout handles, keyed by message id. */\n private readonly timers = new Map<UiToastId, ReturnType<typeof setTimeout>>();\n /** @ignore Remaining ms per message (survives hover pause). */\n private readonly remaining = new Map<UiToastId, number>();\n /** @ignore Wall-clock start of the running countdown, per message. */\n private readonly startedAt = new Map<UiToastId, number>();\n\n constructor() {\n // Reconcile dedup + life timers whenever this container's message set changes.\n effect(() => {\n const keyed = this.keyed();\n\n // preventDuplicates: drop later toasts whose content matches an earlier one.\n if (this.preventDuplicates()) {\n const seen = new Set<string>();\n const dupes: UiToastId[] = [];\n for (const m of keyed) {\n const sig = `${m.level ?? 'default'}|${m.title ?? ''}|${m.text ?? ''}`;\n if (seen.has(sig)) dupes.push(m.id!);\n else seen.add(sig);\n }\n if (dupes.length) {\n // Store mutation re-runs this effect on the deduplicated set.\n dupes.forEach((id) => this.service.remove(id));\n return;\n }\n }\n\n const liveIds = new Set(keyed.map((m) => m.id));\n\n // Drop timer bookkeeping for messages that are gone.\n for (const id of [...this.timers.keys()]) {\n if (!liveIds.has(id)) this.forget(id);\n }\n for (const id of [...this.remaining.keys()]) {\n if (!liveIds.has(id)) this.remaining.delete(id);\n }\n\n if (!this.isBrowser) return;\n\n // Arm a countdown for each new, non-sticky message (even ones beyond the\n // visible limit, so a queued toast still expires on schedule).\n for (const message of keyed) {\n const id = message.id!;\n if (message.sticky) continue;\n if (this.timers.has(id) || this.remaining.has(id)) continue;\n const life = message.life ?? this.life();\n if (life > 0) this.arm(id, life);\n }\n });\n\n inject(DestroyRef).onDestroy(() => {\n for (const id of [...this.timers.keys()]) this.forget(id);\n });\n }\n\n /** @ignore Start (or restart) a countdown of `ms` for a message. */\n private arm(id: UiToastId, ms: number): void {\n this.remaining.set(id, ms);\n this.startedAt.set(id, Date.now());\n this.timers.set(\n id,\n setTimeout(() => {\n this.timers.delete(id);\n this.service.remove(id);\n }, ms),\n );\n }\n\n /** @ignore Cancel and drop all timer bookkeeping for a message. */\n private forget(id: UiToastId): void {\n const handle = this.timers.get(id);\n if (handle) clearTimeout(handle);\n this.timers.delete(id);\n this.startedAt.delete(id);\n }\n\n /** @ignore Pause the countdown on hover/focus (banks the remaining time). */\n protected pause(id: UiToastId | undefined): void {\n if (id == null) return;\n const handle = this.timers.get(id);\n if (!handle) return;\n clearTimeout(handle);\n this.timers.delete(id);\n const banked = this.remaining.get(id) ?? 0;\n const elapsed = Date.now() - (this.startedAt.get(id) ?? Date.now());\n this.remaining.set(id, Math.max(banked - elapsed, 0));\n }\n\n /** @ignore Resume a paused countdown when the pointer/focus leaves. */\n protected resume(id: UiToastId | undefined): void {\n if (id == null || !this.isBrowser) return;\n if (this.timers.has(id)) return;\n const left = this.remaining.get(id);\n if (left == null || left <= 0) return;\n this.arm(id, left);\n }\n\n /** @ignore Dismiss a toast (close button or a custom template's `closeFn`). */\n protected dismiss(message: UiToastMessage): void {\n if (message.id != null) this.service.remove(message.id);\n }\n\n /** @ignore Template-context factory: a bound close handler for one message. */\n protected closeFn(message: UiToastMessage): () => void {\n return () => this.dismiss(message);\n }\n}\n","<div [class]=\"regionClass()\" [style.z-index]=\"zIndex()\" [style.gap.px]=\"stackGap() ?? null\">\n @for (item of items(); track item.id) {\n <div\n class=\"ui-toast-region-item\"\n [uiMotion]=\"motionPreset()\"\n [motionDisabled]=\"motionDisabled()\"\n #m=\"uiMotion\"\n [animate.enter]=\"m.enter()\"\n [animate.leave]=\"m.leave()\"\n (mouseenter)=\"pause(item.id)\"\n (mouseleave)=\"resume(item.id)\"\n (focusin)=\"pause(item.id)\"\n (focusout)=\"resume(item.id)\"\n >\n <ui-toast\n [level]=\"item.level ?? 'default'\"\n [subLevel]=\"item.subLevel ?? 'high'\"\n [title]=\"template() ? undefined : item.title\"\n [text]=\"template() ? undefined : item.text\"\n [icon]=\"item.icon ?? true\"\n [closable]=\"item.closable ?? true\"\n [expanded]=\"expanded()\"\n [styleClass]=\"item.styleClass\"\n (closed)=\"dismiss(item)\"\n >\n @if (template(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: item, closeFn: closeFn(item) }\"\n />\n }\n </ui-toast>\n </div>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-toast\n */\n\nexport * from './lib/ui-toast-container';\nexport * from './lib/ui-toast.service';\nexport * from './lib/ui-toast';\nexport * from './lib/ui-toast.types';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAiBA;AACO,MAAM,kBAAkB,GAA+B;IAC5D,UAAU;IACV,YAAY;IACZ,WAAW;IACX,aAAa;IACb,eAAe;IACf,cAAc;IACd,QAAQ;;AAgDV;AACO,MAAM,sBAAsB,GAAoC;AACrE,IAAA,OAAO,EAAE,aAAa;AACt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ExDhD;;AAEG;;ACFH;;AAEG;;"}
|
|
@@ -55,16 +55,18 @@ class UiTooltipPanel {
|
|
|
55
55
|
}, /* @ts-ignore */
|
|
56
56
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
57
57
|
}
|
|
58
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
59
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.
|
|
58
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiTooltipPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
59
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiTooltipPanel, isStandalone: true, selector: "ui-tooltip", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, templateContext: { classPropertyName: "templateContext", publicName: "templateContext", isSignal: true, isRequired: false, transformFunction: null }, escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, tooltipId: { classPropertyName: "tooltipId", publicName: "tooltipId", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFI\u00C9E : mode `escape=false` (opt-in). Ce n'est PAS un contournement \u2014 la liaison passe par l'assainisseur d'Angular, aucun bypass n'est lev\u00E9. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n", styles: [".ui-tooltip{position:relative;display:inline-block;box-sizing:border-box;max-width:var(--ui-tooltip-max-width, 16rem);padding:var(--ui-tooltip-padding-y, var(--units-sm)) var(--ui-tooltip-padding-x, var(--units-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));border-radius:var(--ui-tooltip-radius, var(--radius-default));background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-tooltip-color, var(--informative-defaulthigh-content-default));box-shadow:var(--shadow-default-md);font-family:var(--ui-tooltip-font-family, var(--fontfamily-base));font-weight:var(--ui-tooltip-weight, var(--weight-regular));font-size:var(--ui-tooltip-font-size, var(--size-typography-text-md));line-height:1.4;overflow-wrap:break-word;--ui-motion-duration: var(--transition-fast);--ui-motion-easing: var(--transition-easeout);opacity:0;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),translate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-tooltip._top{translate:0 4px}.ui-tooltip._bottom{translate:0 -4px}.ui-tooltip._left{translate:4px 0}.ui-tooltip._right{translate:-4px 0}.ui-tooltip._visible{opacity:1;translate:0 0}.ui-tooltip._interactive{pointer-events:auto}@media(prefers-reduced-motion:reduce){.ui-tooltip{transition-duration:.01ms;translate:none}}:root[data-motion=off] .ui-tooltip{transition-duration:.01ms;translate:none}.ui-tooltip-text{display:block}.ui-tooltip-arrow{position:absolute;width:var(--ui-tooltip-arrow-size, .5rem);height:var(--ui-tooltip-arrow-size, .5rem);background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));rotate:45deg}.ui-tooltip._top .ui-tooltip-arrow{bottom:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-tooltip._bottom .ui-tooltip-arrow{top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-tooltip._left .ui-tooltip-arrow{right:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-tooltip._right .ui-tooltip-arrow{left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
60
60
|
}
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiTooltipPanel, decorators: [{
|
|
62
62
|
type: Component,
|
|
63
|
-
args: [{ selector: 'ui-tooltip', imports: [NgTemplateOutlet], encapsulation: ViewEncapsulation.Emulated, template: "<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFI\u00C9E : mode `escape=false` (opt-in). Ce n'est PAS un contournement \u2014 la liaison passe par l'assainisseur d'Angular, aucun bypass n'est lev\u00E9. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n", styles: [".ui-tooltip{position:relative;display:inline-block;box-sizing:border-box;max-width:var(--ui-tooltip-max-width, 16rem);padding:var(--ui-tooltip-padding-y, var(--units-sm)) var(--ui-tooltip-padding-x, var(--units-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--informative-defaulthigh-stroke-default);border-radius:var(--ui-tooltip-radius, var(--radius-default));background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);box-shadow:var(--shadow-default-md);font-family:var(--fontfamily-base);font-weight:var(--weight-regular);font-size:var(--ui-tooltip-font-size, var(--size-typography-text-md));line-height:1.4;overflow-wrap:break-word;--ui-motion-duration: var(--transition-fast);--ui-motion-easing: var(--transition-easeout);opacity:0;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),translate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-tooltip._top{translate:0 4px}.ui-tooltip._bottom{translate:0 -4px}.ui-tooltip._left{translate:4px 0}.ui-tooltip._right{translate:-4px 0}.ui-tooltip._visible{opacity:1;translate:0 0}.ui-tooltip._interactive{pointer-events:auto}@media(prefers-reduced-motion:reduce){.ui-tooltip{transition-duration:.01ms;translate:none}}:root[data-motion=off] .ui-tooltip{transition-duration:.01ms;translate:none}.ui-tooltip-text{display:block}.ui-tooltip-arrow{position:absolute;width:var(--ui-tooltip-arrow-size, .5rem);height:var(--ui-tooltip-arrow-size, .5rem);background-color:var(--informative-defaulthigh-surface-default);border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--informative-defaulthigh-stroke-default);rotate:45deg}.ui-tooltip._top .ui-tooltip-arrow{bottom:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-tooltip._bottom .ui-tooltip-arrow{top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-tooltip._left .ui-tooltip-arrow{right:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-tooltip._right .ui-tooltip-arrow{left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"] }]
|
|
63
|
+
args: [{ selector: 'ui-tooltip', imports: [NgTemplateOutlet], encapsulation: ViewEncapsulation.Emulated, template: "<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFI\u00C9E : mode `escape=false` (opt-in). Ce n'est PAS un contournement \u2014 la liaison passe par l'assainisseur d'Angular, aucun bypass n'est lev\u00E9. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n", styles: [".ui-tooltip{position:relative;display:inline-block;box-sizing:border-box;max-width:var(--ui-tooltip-max-width, 16rem);padding:var(--ui-tooltip-padding-y, var(--units-sm)) var(--ui-tooltip-padding-x, var(--units-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));border-radius:var(--ui-tooltip-radius, var(--radius-default));background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-tooltip-color, var(--informative-defaulthigh-content-default));box-shadow:var(--shadow-default-md);font-family:var(--ui-tooltip-font-family, var(--fontfamily-base));font-weight:var(--ui-tooltip-weight, var(--weight-regular));font-size:var(--ui-tooltip-font-size, var(--size-typography-text-md));line-height:1.4;overflow-wrap:break-word;--ui-motion-duration: var(--transition-fast);--ui-motion-easing: var(--transition-easeout);opacity:0;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),translate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-tooltip._top{translate:0 4px}.ui-tooltip._bottom{translate:0 -4px}.ui-tooltip._left{translate:4px 0}.ui-tooltip._right{translate:-4px 0}.ui-tooltip._visible{opacity:1;translate:0 0}.ui-tooltip._interactive{pointer-events:auto}@media(prefers-reduced-motion:reduce){.ui-tooltip{transition-duration:.01ms;translate:none}}:root[data-motion=off] .ui-tooltip{transition-duration:.01ms;translate:none}.ui-tooltip-text{display:block}.ui-tooltip-arrow{position:absolute;width:var(--ui-tooltip-arrow-size, .5rem);height:var(--ui-tooltip-arrow-size, .5rem);background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));rotate:45deg}.ui-tooltip._top .ui-tooltip-arrow{bottom:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-tooltip._bottom .ui-tooltip-arrow{top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-tooltip._left .ui-tooltip-arrow{right:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-tooltip._right .ui-tooltip-arrow{left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"] }]
|
|
64
64
|
}], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }], templateContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateContext", required: false }] }], escape: [{ type: i0.Input, args: [{ isSignal: true, alias: "escape", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], tooltipId: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipId", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }] } });
|
|
65
65
|
|
|
66
66
|
/** Gap (px) left between the trigger and the tooltip for the arrow — mirrors `$tooltip-arrow-size` in the SCSS. */
|
|
67
67
|
const ARROW_GAP = 8;
|
|
68
|
+
/** Floor applied to `hideDelay` when the panel is interactive. */
|
|
69
|
+
const INTERACTIVE_HIDE_DELAY = 120;
|
|
68
70
|
/** Process-wide counter for unique tooltip ids (aria-describedby wiring). */
|
|
69
71
|
let nextId = 0;
|
|
70
72
|
/**
|
|
@@ -202,8 +204,16 @@ class UiTooltip {
|
|
|
202
204
|
}
|
|
203
205
|
if (evt === 'focus' || evt === 'both') {
|
|
204
206
|
// focusin/focusout bubble → also works when the host wraps the focusable element.
|
|
205
|
-
this.disposers.push(this.renderer.listen(host, 'focusin', () => this.activate()), this.renderer.listen(host, 'focusout', () =>
|
|
207
|
+
this.disposers.push(this.renderer.listen(host, 'focusin', () => this.activate()), this.renderer.listen(host, 'focusout', (event) => {
|
|
208
|
+
if (this.movedIntoPanel(event.relatedTarget))
|
|
209
|
+
return;
|
|
210
|
+
this.deactivate();
|
|
211
|
+
}));
|
|
206
212
|
}
|
|
213
|
+
this.disposers.push(this.renderer.listen('document', 'keydown.escape', () => {
|
|
214
|
+
if (this.hideOnEscape() && this.overlayRef?.hasAttached())
|
|
215
|
+
this.remove();
|
|
216
|
+
}));
|
|
207
217
|
}
|
|
208
218
|
// --- Activation lifecycle -------------------------------------------
|
|
209
219
|
/** @ignore */
|
|
@@ -227,9 +237,11 @@ class UiTooltip {
|
|
|
227
237
|
/** @ignore */
|
|
228
238
|
deactivate() {
|
|
229
239
|
this.clearShowTimer();
|
|
230
|
-
|
|
240
|
+
this.clearHideTimer();
|
|
241
|
+
const delay = this.autoHide()
|
|
242
|
+
? this.hideDelay()
|
|
243
|
+
: Math.max(this.hideDelay(), INTERACTIVE_HIDE_DELAY);
|
|
231
244
|
if (delay > 0) {
|
|
232
|
-
this.clearHideTimer();
|
|
233
245
|
this.hideTimer = setTimeout(() => this.remove(), delay);
|
|
234
246
|
}
|
|
235
247
|
else {
|
|
@@ -249,14 +261,10 @@ class UiTooltip {
|
|
|
249
261
|
this.renderer.setAttribute(this.el.nativeElement, 'aria-describedby', this.tooltipId);
|
|
250
262
|
// Let hover pass through unless the tooltip is interactive (autoHide=false).
|
|
251
263
|
overlayRef.overlayElement.style.pointerEvents = this.autoHide() ? 'none' : 'auto';
|
|
252
|
-
if (!this.autoHide())
|
|
253
|
-
this.bindPanelHover(overlayRef);
|
|
254
264
|
}
|
|
255
265
|
// Trigger the fade-in on the next frame so the transition runs.
|
|
256
266
|
requestAnimationFrame(() => this.panelRef?.setInput('visible', true));
|
|
257
267
|
this.armLifeTimer();
|
|
258
|
-
if (this.hideOnEscape())
|
|
259
|
-
this.bindEscape();
|
|
260
268
|
this.tooltipShow.emit();
|
|
261
269
|
}
|
|
262
270
|
/** @ignore */
|
|
@@ -293,6 +301,7 @@ class UiTooltip {
|
|
|
293
301
|
panelClass: 'ui-tooltip-overlay',
|
|
294
302
|
hasBackdrop: false,
|
|
295
303
|
});
|
|
304
|
+
this.bindPanelEvents(this.overlayRef);
|
|
296
305
|
return this.overlayRef;
|
|
297
306
|
}
|
|
298
307
|
/** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */
|
|
@@ -383,20 +392,30 @@ class UiTooltip {
|
|
|
383
392
|
return el.offsetWidth < el.scrollWidth || el.offsetHeight < el.scrollHeight;
|
|
384
393
|
}
|
|
385
394
|
// --- Interactive / dismiss listeners --------------------------------
|
|
386
|
-
/** @ignore Keep the tooltip open while the pointer is over it (autoHide=false). */
|
|
387
|
-
|
|
395
|
+
/** @ignore Keep the tooltip open while the pointer or the focus is over it (autoHide=false). */
|
|
396
|
+
bindPanelEvents(overlayRef) {
|
|
388
397
|
const panel = overlayRef.overlayElement;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
398
|
+
this.disposers.push(this.renderer.listen(panel, 'mouseenter', () => {
|
|
399
|
+
if (!this.autoHide())
|
|
400
|
+
this.clearHideTimer();
|
|
401
|
+
}), this.renderer.listen(panel, 'mouseleave', () => {
|
|
402
|
+
if (!this.autoHide())
|
|
403
|
+
this.deactivate();
|
|
404
|
+
}), this.renderer.listen(panel, 'focusin', () => {
|
|
405
|
+
if (!this.autoHide())
|
|
406
|
+
this.clearHideTimer();
|
|
407
|
+
}), this.renderer.listen(panel, 'focusout', (event) => {
|
|
408
|
+
if (this.autoHide() || panel.contains(event.relatedTarget))
|
|
409
|
+
return;
|
|
396
410
|
this.deactivate();
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
411
|
+
}));
|
|
412
|
+
}
|
|
413
|
+
/** @ignore The focus moved into an interactive panel rather than away from it. */
|
|
414
|
+
movedIntoPanel(target) {
|
|
415
|
+
if (this.autoHide() || !target)
|
|
416
|
+
return false;
|
|
417
|
+
const panel = this.overlayRef?.overlayElement;
|
|
418
|
+
return !!panel && panel.contains(target);
|
|
400
419
|
}
|
|
401
420
|
// --- Timers ----------------------------------------------------------
|
|
402
421
|
/** @ignore */
|
|
@@ -438,10 +457,10 @@ class UiTooltip {
|
|
|
438
457
|
this.overlayRef = null;
|
|
439
458
|
this.panelRef = null;
|
|
440
459
|
}
|
|
441
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.
|
|
442
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.
|
|
460
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
461
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.5", type: UiTooltip, isStandalone: true, selector: "[uiTooltip]", inputs: { content: { classPropertyName: "content", publicName: "uiTooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, fitContent: { classPropertyName: "fitContent", publicName: "fitContent", isSignal: true, isRequired: false, transformFunction: null }, tooltipEvent: { classPropertyName: "tooltipEvent", publicName: "tooltipEvent", isSignal: true, isRequired: false, transformFunction: null }, tooltipDisabled: { classPropertyName: "tooltipDisabled", publicName: "tooltipDisabled", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "hideDelay", isSignal: true, isRequired: false, transformFunction: null }, escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: true, isRequired: false, transformFunction: null }, autoHide: { classPropertyName: "autoHide", publicName: "autoHide", isSignal: true, isRequired: false, transformFunction: null }, hideOnEscape: { classPropertyName: "hideOnEscape", publicName: "hideOnEscape", isSignal: true, isRequired: false, transformFunction: null }, life: { classPropertyName: "life", publicName: "life", isSignal: true, isRequired: false, transformFunction: null }, showOnEllipsis: { classPropertyName: "showOnEllipsis", publicName: "showOnEllipsis", isSignal: true, isRequired: false, transformFunction: null }, positionTop: { classPropertyName: "positionTop", publicName: "positionTop", isSignal: true, isRequired: false, transformFunction: null }, positionLeft: { classPropertyName: "positionLeft", publicName: "positionLeft", isSignal: true, isRequired: false, transformFunction: null }, tooltipContext: { classPropertyName: "tooltipContext", publicName: "tooltipContext", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { tooltipShow: "tooltipShow", tooltipHide: "tooltipHide" }, exportAs: ["uiTooltip"], ngImport: i0 }); }
|
|
443
462
|
}
|
|
444
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.
|
|
463
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiTooltip, decorators: [{
|
|
445
464
|
type: Directive,
|
|
446
465
|
args: [{
|
|
447
466
|
selector: '[uiTooltip]',
|