@4sh/ui-kit 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.fr.md +18 -10
- package/README.md +18 -10
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -953
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2039
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -130
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -246
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -291
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -194
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -131
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +723 -596
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
- package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-types.mjs +0 -12
- package/fesm2022/4sh-ui-kit.mjs +3 -15
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/mcp/data/component-api.json +313 -2
- package/mcp/data/text-search-docs.json +177 -17
- package/mcp/data/ui-config.json +378 -1
- package/mcp/index.js +8190 -2876
- package/mcp/package.json +1 -1
- package/package.json +5 -1
- package/styles/component-vars.scss +22 -1
- package/styles/utils/_mixins.scss +11 -0
- package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
- package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
- package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
- package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
- package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
- package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +577 -367
- package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
- package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
- package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
- package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
- package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -57
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -93
- package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -100
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
- package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -116
- package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
- package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
- package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
- package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
- package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
- package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
- package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
- package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
- package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -54
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
- package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
- package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
- package/types/4sh-ui-kit-forms.d.ts +291 -186
- package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
- package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
- package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
- package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
- package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
- package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
- package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
- package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
- package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
- package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
- package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
- package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
- package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
- package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
- package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
- package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
- package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
- package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
- package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
- package/types/4sh-ui-kit-motion.d.ts +117 -67
- package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
- package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
- package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
- package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
- package/types/4sh-ui-kit-overlay.d.ts +6 -6
- package/types/4sh-ui-kit-ripple.d.ts +99 -74
- package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
- package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
- package/types/4sh-ui-kit-theming.d.ts +27 -29
- package/types/4sh-ui-kit-types.d.ts +6 -5
- package/types/4sh-ui-kit.d.ts +4 -3
- package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-informative-ui-chip.mjs","sources":["../../../projects/ui-kit/informative/ui-chip/src/lib/ui-chip.ts","../../../projects/ui-kit/informative/ui-chip/src/lib/ui-chip.html","../../../projects/ui-kit/informative/ui-chip/src/public-api.ts","../../../projects/ui-kit/informative/ui-chip/src/4sh-ui-kit-informative-ui-chip.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n input,\n isDevMode,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\nexport type ChipSize = 'default' | 'small';\n\n/**\n * ui-chip — compact, interactive entity token.\n *\n * A close relative of `ui-tag`, but interactive: it can carry a leading icon or\n * image (avatar-like), an optional remove action, and arbitrary projected content.\n * Typical uses: selected values in a multi-select, filter/entity chips, keyword lists.\n *\n * Categorised by `level` × `subLevel` (informative color families) and fully\n * token-driven. Interactive states (hover/focus on the remove action) are handled in\n * CSS via the same `informative.*` tokens — never through Angular props.\n *\n * Accessible: `label` is exposed as the default `aria-label` (overridable via\n * `ariaLabel` / `ariaLabelledBy`); the remove action is a native `<button>`, focusable\n * with Tab and removable with Enter/Space (native) plus Backspace/Delete.\n */\n@Component({\n selector: 'ui-chip',\n imports: [UiIcon, NgTemplateOutlet],\n templateUrl: './ui-chip.html',\n styleUrl: './ui-chip.scss',\n})\nexport class UiChip {\n /** Text content of the chip. */\n label = input<string>();\n /** Color family. */\n level = input<UiFeedbackLevel>('default');\n /** Intensity: high (solid) or low (subtle). Chips default to the discreet `low`. */\n subLevel = input<UiSubLevel>('low');\n /** Size. */\n size = input<ChipSize>('default');\n /** FontAwesome name of the leading icon (ignored when `image` is set). */\n icon = input<string>();\n /** Leading image source (avatar-like). Takes priority over `icon`. */\n image = input<string>();\n /** Alternative text for the image (leave empty for a decorative image next to a label). */\n alt = input<string>();\n /** Pill shape when true (default); rounded-rectangle when false. */\n rounded = input(true, { transform: booleanAttribute });\n /** Displays a remove action at the end of the chip. */\n removable = input(false, { transform: booleanAttribute });\n /** FontAwesome name of the remove icon. */\n removeIcon = input<string>('xmark');\n /** Disables the chip (the remove action / selection becomes non-interactive). */\n disabled = input(false, { transform: booleanAttribute });\n /**\n * Turns the whole chip into a selectable toggle (choice/filter chip). The root\n * becomes a native `<button aria-pressed>`; clicking toggles `selected`.\n * Mutually exclusive with `removable` (nesting interactive elements is invalid).\n */\n selectable = input(false, { transform: booleanAttribute });\n /** Two-way selection state (only meaningful when `selectable`). */\n selected = model(false);\n /** FontAwesome name shown in the leading slot while selected (selectable mode). */\n selectedIcon = input<string>('check');\n /** Explicit accessible name (overrides the `label` default). */\n ariaLabel = input<string>();\n /** Id of the element labelling the chip (overrides `ariaLabel`/`label`). */\n ariaLabelledBy = input<string>();\n /** Accessible name of the remove action. */\n removeAriaLabel = input<string>('Supprimer');\n /**\n * `tabindex` of the remove action. Leave unset for the natural tab order;\n * set `-1` when the chip lives inside a roving-focus container (e.g.\n * `ui-input-tags`) so the button is not a separate tab stop.\n */\n removeTabindex = input<number>();\n\n /** Emitted when the chip is removed (click or keyboard on the remove action). */\n remove = output<Event>();\n /** Emitted when a selectable chip is toggled (click or keyboard on the chip). */\n chipClick = output<Event>();\n /** Emitted when the image fails to load (the chip then falls back to icon/label). */\n imageError = output<Event>();\n\n /** @ignore Set once the current image source failed to load. */\n private readonly imageFailed = signal(false);\n\n constructor() {\n // Reset the load-error flag whenever the source changes.\n effect(() => {\n this.image();\n this.imageFailed.set(false);\n });\n\n // A11y safeguard: a chip with only a visual (icon/image) needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isVisualOnly() && !this.accessibleName()) {\n console.warn(\n '[ui-chip] Chip has no text: provide `label`, `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n\n // `selectable` and `removable` can't coexist (nested interactive elements).\n effect(() => {\n if (this.selectable() && this.removable()) {\n console.warn(\n '[ui-chip] `selectable` and `removable` are mutually exclusive: the remove action is ignored.',\n );\n }\n });\n }\n }\n\n /** @ignore There is a textual label. */\n protected readonly hasLabel = computed(() => !!this.label()?.length);\n\n /** @ignore The leading image is shown (source set and not failed). */\n protected readonly showImage = computed(() => !!this.image() && !this.imageFailed());\n\n /** @ignore Selectable + selected: the leading slot shows the selected icon. */\n protected readonly showSelectedIcon = computed(\n () => this.selectable() && this.selected() && !!this.selectedIcon(),\n );\n\n /** @ignore The leading image is shown (not overridden by the selected icon). */\n protected readonly showLeadingImage = computed(\n () => !this.showSelectedIcon() && this.showImage(),\n );\n\n /** @ignore The leading font icon is shown (no image / selected icon taking its place). */\n protected readonly showIcon = computed(() => !this.showImage() && !!this.icon());\n\n /** @ignore The leading font icon is shown (not overridden by the selected icon). */\n protected readonly showLeadingIcon = computed(() => !this.showSelectedIcon() && this.showIcon());\n\n /** @ignore The remove action is rendered (never inside a selectable button). */\n protected readonly showRemove = computed(() => this.removable() && !this.selectable());\n\n /** @ignore A visual (icon/image) with no textual label. */\n protected readonly isVisualOnly = computed(\n () => (this.showImage() || this.showIcon()) && !this.hasLabel(),\n );\n\n /** @ignore Resolved accessible name from the explicit label / ariaLabel. */\n protected readonly accessibleName = computed<string | null>(\n () => this.ariaLabel() ?? this.label() ?? null,\n );\n\n /** @ignore Root `aria-label`: explicit name, suppressed when `ariaLabelledBy` wins. */\n protected readonly rootAriaLabel = computed<string | null>(() =>\n this.ariaLabelledBy() ? null : this.accessibleName(),\n );\n\n /** @ignore Leading icon size derived from the chip size. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n\n /** @ignore Remove icon is compact regardless of chip size. */\n protected readonly removeIconSize: UiIconSize = 'sm';\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-chip', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (!this.rounded()) c.push('_square');\n if (this.showRemove()) c.push('_removable');\n if (this.disabled()) c.push('_disabled');\n if (this.selectable()) c.push('_selectable');\n if (this.selectable() && this.selected()) c.push('_selected');\n return c.join(' ');\n });\n\n /** @ignore */\n protected onImageError(event: Event): void {\n this.imageFailed.set(true);\n this.imageError.emit(event);\n }\n\n /** @ignore */\n protected onRemove(event: Event): void {\n if (this.disabled()) return;\n this.remove.emit(event);\n }\n\n /** @ignore Backspace/Delete on the remove button also removes (Enter/Space are native). */\n protected onRemoveKeydown(event: KeyboardEvent): void {\n if (event.key === 'Backspace' || event.key === 'Delete') {\n event.preventDefault();\n this.onRemove(event);\n }\n }\n\n /** @ignore Toggle the selection (selectable mode). Enter/Space fire this via native click. */\n protected onToggle(event: Event): void {\n if (this.disabled()) return;\n this.selected.set(!this.selected());\n this.chipClick.emit(event);\n }\n}\n","@if (selectable()) {\n <button\n type=\"button\"\n [class]=\"classes()\"\n [disabled]=\"disabled()\"\n [attr.aria-pressed]=\"selected()\"\n [attr.aria-label]=\"rootAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n (click)=\"onToggle($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </button>\n} @else {\n <span\n [class]=\"classes()\"\n [attr.role]=\"rootAriaLabel() || ariaLabelledBy() ? (showRemove() ? 'group' : 'img') : null\"\n [attr.aria-label]=\"rootAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </span>\n}\n\n<ng-template #inner>\n @if (showSelectedIcon()) {\n <ui-icon class=\"ui-chip-icon\" [name]=\"selectedIcon()!\" [size]=\"iconSize()\" />\n } @else if (showLeadingImage()) {\n <img\n class=\"ui-chip-image\"\n [src]=\"image()\"\n [attr.alt]=\"alt() ?? ''\"\n (error)=\"onImageError($event)\"\n />\n } @else if (showLeadingIcon()) {\n <ui-icon class=\"ui-chip-icon\" [name]=\"icon()!\" [size]=\"iconSize()\" />\n }\n\n @if (hasLabel()) {\n <span class=\"ui-chip-label\">{{ label() }}</span>\n }\n\n <!-- Custom / templated content -->\n <ng-content />\n\n @if (showRemove()) {\n <button\n type=\"button\"\n class=\"ui-chip-remove\"\n [disabled]=\"disabled()\"\n [attr.tabindex]=\"removeTabindex()\"\n [attr.aria-label]=\"removeAriaLabel()\"\n (click)=\"onRemove($event)\"\n (keydown)=\"onRemoveKeydown($event)\"\n >\n <ui-icon [name]=\"removeIcon()\" [size]=\"removeIconSize\" />\n </button>\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-chip\n */\n\nexport * from './lib/ui-chip';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAiBA;;;;;;;;;;;;;;AAcG;MAOU,MAAM,CAAA;AAwDjB,IAAA,WAAA,GAAA;;AAtDA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAEvB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,SAAS;kFAAC;;QAEzC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,KAAK;qFAAC;;QAEnC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAW,SAAS;iFAAC;;AAEjC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK;2FAAU;;QAErB,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,IAAI,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAEtD,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAEzD,IAAA,CAAA,UAAU,GAAG,KAAK,CAAS,OAAO;uFAAC;;QAEnC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACxD;;;;AAIG;QACH,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;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ECtCnB,8oDA0DA,EAAA,MAAA,EAAA,CAAA,8riBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDxBY,MAAM,2HAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIvB,MAAM,EAAA,UAAA,EAAA,CAAA;kBANlB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,EAAA,OAAA,EACV,CAAC,MAAM,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAAA,8oDAAA,EAAA,MAAA,EAAA,CAAA,8riBAAA,CAAA,EAAA;;;AElCrC;;AAEG;;ACFH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-informative-ui-chip.mjs","names":[],"sources":["../../../projects/ui-kit/informative/ui-chip/src/lib/ui-chip.ts","../../../projects/ui-kit/informative/ui-chip/src/lib/ui-chip.html"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n input,\n isDevMode,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\nexport type ChipSize = 'default' | 'small';\n\n/**\n * ui-chip — compact, interactive entity token.\n *\n * A close relative of `ui-tag`, but interactive: it can carry a leading icon or\n * image (avatar-like), an optional remove action, and arbitrary projected content.\n * Typical uses: selected values in a multi-select, filter/entity chips, keyword lists.\n *\n * Categorised by `level` × `subLevel` (informative color families) and fully\n * token-driven. Interactive states (hover/focus on the remove action) are handled in\n * CSS via the same `informative.*` tokens — never through Angular props.\n *\n * Accessible: `label` is exposed as the default `aria-label` (overridable via\n * `ariaLabel` / `ariaLabelledBy`); the remove action is a native `<button>`, focusable\n * with Tab and removable with Enter/Space (native) plus Backspace/Delete.\n */\n@Component({\n selector: 'ui-chip',\n imports: [UiIcon, NgTemplateOutlet],\n templateUrl: './ui-chip.html',\n styleUrl: './ui-chip.scss',\n})\nexport class UiChip {\n /** Text content of the chip. */\n label = input<string>();\n /** Color family. */\n level = input<UiFeedbackLevel>('default');\n /** Intensity: high (solid) or low (subtle). Chips default to the discreet `low`. */\n subLevel = input<UiSubLevel>('low');\n /** Size. */\n size = input<ChipSize>('default');\n /** FontAwesome name of the leading icon (ignored when `image` is set). */\n icon = input<string>();\n /** Leading image source (avatar-like). Takes priority over `icon`. */\n image = input<string>();\n /** Alternative text for the image (leave empty for a decorative image next to a label). */\n alt = input<string>();\n /** Pill shape when true (default); rounded-rectangle when false. */\n rounded = input(true, { transform: booleanAttribute });\n /** Displays a remove action at the end of the chip. */\n removable = input(false, { transform: booleanAttribute });\n /** FontAwesome name of the remove icon. */\n removeIcon = input<string>('xmark');\n /** Disables the chip (the remove action / selection becomes non-interactive). */\n disabled = input(false, { transform: booleanAttribute });\n /**\n * Turns the whole chip into a selectable toggle (choice/filter chip). The root\n * becomes a native `<button aria-pressed>`; clicking toggles `selected`.\n * Mutually exclusive with `removable` (nesting interactive elements is invalid).\n */\n selectable = input(false, { transform: booleanAttribute });\n /** Two-way selection state (only meaningful when `selectable`). */\n selected = model(false);\n /** FontAwesome name shown in the leading slot while selected (selectable mode). */\n selectedIcon = input<string>('check');\n /** Explicit accessible name (overrides the `label` default). */\n ariaLabel = input<string>();\n /** Id of the element labelling the chip (overrides `ariaLabel`/`label`). */\n ariaLabelledBy = input<string>();\n /** Accessible name of the remove action. */\n removeAriaLabel = input<string>('Supprimer');\n /**\n * `tabindex` of the remove action. Leave unset for the natural tab order;\n * set `-1` when the chip lives inside a roving-focus container (e.g.\n * `ui-input-tags`) so the button is not a separate tab stop.\n */\n removeTabindex = input<number>();\n\n /** Emitted when the chip is removed (click or keyboard on the remove action). */\n remove = output<Event>();\n /** Emitted when a selectable chip is toggled (click or keyboard on the chip). */\n chipClick = output<Event>();\n /** Emitted when the image fails to load (the chip then falls back to icon/label). */\n imageError = output<Event>();\n\n /** @ignore Set once the current image source failed to load. */\n private readonly imageFailed = signal(false);\n\n constructor() {\n // Reset the load-error flag whenever the source changes.\n effect(() => {\n this.image();\n this.imageFailed.set(false);\n });\n\n // A11y safeguard: a chip with only a visual (icon/image) needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isVisualOnly() && !this.accessibleName()) {\n console.warn(\n '[ui-chip] Chip has no text: provide `label`, `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n\n // `selectable` and `removable` can't coexist (nested interactive elements).\n effect(() => {\n if (this.selectable() && this.removable()) {\n console.warn(\n '[ui-chip] `selectable` and `removable` are mutually exclusive: the remove action is ignored.',\n );\n }\n });\n }\n }\n\n /** @ignore There is a textual label. */\n protected readonly hasLabel = computed(() => !!this.label()?.length);\n\n /** @ignore The leading image is shown (source set and not failed). */\n protected readonly showImage = computed(() => !!this.image() && !this.imageFailed());\n\n /** @ignore Selectable + selected: the leading slot shows the selected icon. */\n protected readonly showSelectedIcon = computed(\n () => this.selectable() && this.selected() && !!this.selectedIcon(),\n );\n\n /** @ignore The leading image is shown (not overridden by the selected icon). */\n protected readonly showLeadingImage = computed(\n () => !this.showSelectedIcon() && this.showImage(),\n );\n\n /** @ignore The leading font icon is shown (no image / selected icon taking its place). */\n protected readonly showIcon = computed(() => !this.showImage() && !!this.icon());\n\n /** @ignore The leading font icon is shown (not overridden by the selected icon). */\n protected readonly showLeadingIcon = computed(() => !this.showSelectedIcon() && this.showIcon());\n\n /** @ignore The remove action is rendered (never inside a selectable button). */\n protected readonly showRemove = computed(() => this.removable() && !this.selectable());\n\n /** @ignore A visual (icon/image) with no textual label. */\n protected readonly isVisualOnly = computed(\n () => (this.showImage() || this.showIcon()) && !this.hasLabel(),\n );\n\n /** @ignore Resolved accessible name from the explicit label / ariaLabel. */\n protected readonly accessibleName = computed<string | null>(\n () => this.ariaLabel() ?? this.label() ?? null,\n );\n\n /** @ignore Root `aria-label`: explicit name, suppressed when `ariaLabelledBy` wins. */\n protected readonly rootAriaLabel = computed<string | null>(() =>\n this.ariaLabelledBy() ? null : this.accessibleName(),\n );\n\n /** @ignore Leading icon size derived from the chip size. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n\n /** @ignore Remove icon is compact regardless of chip size. */\n protected readonly removeIconSize: UiIconSize = 'sm';\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-chip', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (!this.rounded()) c.push('_square');\n if (this.showRemove()) c.push('_removable');\n if (this.disabled()) c.push('_disabled');\n if (this.selectable()) c.push('_selectable');\n if (this.selectable() && this.selected()) c.push('_selected');\n return c.join(' ');\n });\n\n /** @ignore */\n protected onImageError(event: Event): void {\n this.imageFailed.set(true);\n this.imageError.emit(event);\n }\n\n /** @ignore */\n protected onRemove(event: Event): void {\n if (this.disabled()) return;\n this.remove.emit(event);\n }\n\n /** @ignore Backspace/Delete on the remove button also removes (Enter/Space are native). */\n protected onRemoveKeydown(event: KeyboardEvent): void {\n if (event.key === 'Backspace' || event.key === 'Delete') {\n event.preventDefault();\n this.onRemove(event);\n }\n }\n\n /** @ignore Toggle the selection (selectable mode). Enter/Space fire this via native click. */\n protected onToggle(event: Event): void {\n if (this.disabled()) return;\n this.selected.set(!this.selected());\n this.chipClick.emit(event);\n }\n}\n","@if (selectable()) {\n <button\n type=\"button\"\n [class]=\"classes()\"\n [disabled]=\"disabled()\"\n [attr.aria-pressed]=\"selected()\"\n [attr.aria-label]=\"rootAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n (click)=\"onToggle($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </button>\n} @else {\n <span\n [class]=\"classes()\"\n [attr.role]=\"rootAriaLabel() || ariaLabelledBy() ? (showRemove() ? 'group' : 'img') : null\"\n [attr.aria-label]=\"rootAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </span>\n}\n\n<ng-template #inner>\n @if (showSelectedIcon()) {\n <ui-icon class=\"ui-chip-icon\" [name]=\"selectedIcon()!\" [size]=\"iconSize()\" />\n } @else if (showLeadingImage()) {\n <img\n class=\"ui-chip-image\"\n [src]=\"image()\"\n [attr.alt]=\"alt() ?? ''\"\n (error)=\"onImageError($event)\"\n />\n } @else if (showLeadingIcon()) {\n <ui-icon class=\"ui-chip-icon\" [name]=\"icon()!\" [size]=\"iconSize()\" />\n }\n\n @if (hasLabel()) {\n <span class=\"ui-chip-label\">{{ label() }}</span>\n }\n\n <!-- Custom / templated content -->\n <ng-content />\n\n @if (showRemove()) {\n <button\n type=\"button\"\n class=\"ui-chip-remove\"\n [disabled]=\"disabled()\"\n [attr.tabindex]=\"removeTabindex()\"\n [attr.aria-label]=\"removeAriaLabel()\"\n (click)=\"onRemove($event)\"\n (keydown)=\"onRemoveKeydown($event)\"\n >\n <ui-icon [name]=\"removeIcon()\" [size]=\"removeIconSize\" />\n </button>\n }\n</ng-template>\n"],"mappings":";;;;AAsCA,IAAa,SAAb,MAAa,OAAM;CAwDjB,cAAA;EAtDA,KAAA,QAAQ,MAAe,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEvB,KAAA,QAAQ,MAAuB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEzC,KAAA,WAAW,MAAkB,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EAEnC,KAAA,OAAO,MAAgB,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAEjC,K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
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, Directive, afterNextRender, booleanAttribute, computed, contentChild, input, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { UiIcon } from "@4sh/ui-kit/base/ui-icon";
|
|
4
|
+
var UiEmptyStateMedia = class UiEmptyStateMedia {
|
|
5
|
+
static {
|
|
6
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
7
|
+
minVersion: "12.0.0",
|
|
8
|
+
version: "22.3.0",
|
|
9
|
+
ngImport: i0,
|
|
10
|
+
type: UiEmptyStateMedia,
|
|
11
|
+
deps: [],
|
|
12
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
static {
|
|
16
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
17
|
+
minVersion: "14.0.0",
|
|
18
|
+
version: "22.3.0",
|
|
19
|
+
type: UiEmptyStateMedia,
|
|
20
|
+
isStandalone: true,
|
|
21
|
+
selector: "[uiEmptyStateMedia], ui-empty-state-media",
|
|
22
|
+
ngImport: i0
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
27
|
+
minVersion: "12.0.0",
|
|
28
|
+
version: "22.3.0",
|
|
29
|
+
ngImport: i0,
|
|
30
|
+
type: UiEmptyStateMedia,
|
|
31
|
+
decorators: [{
|
|
32
|
+
type: Directive,
|
|
33
|
+
args: [{ selector: "[uiEmptyStateMedia], ui-empty-state-media" }]
|
|
34
|
+
}]
|
|
35
|
+
});
|
|
36
|
+
var UiEmptyStateActions = class UiEmptyStateActions {
|
|
37
|
+
static {
|
|
38
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
39
|
+
minVersion: "12.0.0",
|
|
40
|
+
version: "22.3.0",
|
|
41
|
+
ngImport: i0,
|
|
42
|
+
type: UiEmptyStateActions,
|
|
43
|
+
deps: [],
|
|
44
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
static {
|
|
48
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
49
|
+
minVersion: "14.0.0",
|
|
50
|
+
version: "22.3.0",
|
|
51
|
+
type: UiEmptyStateActions,
|
|
52
|
+
isStandalone: true,
|
|
53
|
+
selector: "[uiEmptyStateActions], ui-empty-state-actions",
|
|
54
|
+
ngImport: i0
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
59
|
+
minVersion: "12.0.0",
|
|
60
|
+
version: "22.3.0",
|
|
61
|
+
ngImport: i0,
|
|
62
|
+
type: UiEmptyStateActions,
|
|
63
|
+
decorators: [{
|
|
64
|
+
type: Directive,
|
|
65
|
+
args: [{ selector: "[uiEmptyStateActions], ui-empty-state-actions" }]
|
|
66
|
+
}]
|
|
67
|
+
});
|
|
68
|
+
var UiEmptyState = class UiEmptyState {
|
|
69
|
+
constructor() {
|
|
70
|
+
this.title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
|
|
71
|
+
this.description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
72
|
+
this.icon = input(...ngDevMode ? [void 0, { debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
73
|
+
this.iconType = input("solid", ...ngDevMode ? [{ debugName: "iconType" }] : /* istanbul ignore next */ []);
|
|
74
|
+
this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
75
|
+
this.showMedia = input(true, {
|
|
76
|
+
...ngDevMode ? { debugName: "showMedia" } : /* istanbul ignore next */ {},
|
|
77
|
+
transform: booleanAttribute
|
|
78
|
+
});
|
|
79
|
+
this.ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
80
|
+
this.ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
81
|
+
this.mediaSlot = contentChild(UiEmptyStateMedia, ...ngDevMode ? [{ debugName: "mediaSlot" }] : /* istanbul ignore next */ []);
|
|
82
|
+
this.actionsSlot = contentChild(UiEmptyStateActions, ...ngDevMode ? [{ debugName: "actionsSlot" }] : /* istanbul ignore next */ []);
|
|
83
|
+
this.bodyWrap = viewChild("bodyWrap", ...ngDevMode ? [{ debugName: "bodyWrap" }] : /* istanbul ignore next */ []);
|
|
84
|
+
this.hasProjectedBody = signal(false, ...ngDevMode ? [{ debugName: "hasProjectedBody" }] : /* istanbul ignore next */ []);
|
|
85
|
+
this.hasIcon = computed(() => !!this.icon(), ...ngDevMode ? [{ debugName: "hasIcon" }] : /* istanbul ignore next */ []);
|
|
86
|
+
this.hasMedia = computed(() => !!this.mediaSlot(), ...ngDevMode ? [{ debugName: "hasMedia" }] : /* istanbul ignore next */ []);
|
|
87
|
+
this.showVisual = computed(() => this.showMedia() && (this.hasMedia() || this.hasIcon()), ...ngDevMode ? [{ debugName: "showVisual" }] : /* istanbul ignore next */ []);
|
|
88
|
+
this.hasTitle = computed(() => !!this.title(), ...ngDevMode ? [{ debugName: "hasTitle" }] : /* istanbul ignore next */ []);
|
|
89
|
+
this.hasDescription = computed(() => !!this.description(), ...ngDevMode ? [{ debugName: "hasDescription" }] : /* istanbul ignore next */ []);
|
|
90
|
+
this.hasBody = computed(() => this.hasProjectedBody(), ...ngDevMode ? [{ debugName: "hasBody" }] : /* istanbul ignore next */ []);
|
|
91
|
+
this.hasText = computed(() => this.hasTitle() || this.hasDescription() || this.hasBody(), ...ngDevMode ? [{ debugName: "hasText" }] : /* istanbul ignore next */ []);
|
|
92
|
+
this.hasActions = computed(() => !!this.actionsSlot(), ...ngDevMode ? [{ debugName: "hasActions" }] : /* istanbul ignore next */ []);
|
|
93
|
+
this.role = computed(() => this.ariaLabel() || this.ariaLabelledBy() ? "region" : null, ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
|
|
94
|
+
this.classes = computed(() => {
|
|
95
|
+
const c = ["ui-empty-state"];
|
|
96
|
+
if (this.size() !== "default") c.push(`_${this.size()}`);
|
|
97
|
+
return c.join(" ");
|
|
98
|
+
}, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
99
|
+
afterNextRender(() => {
|
|
100
|
+
const el = this.bodyWrap()?.nativeElement;
|
|
101
|
+
const has = !!el && Array.from(el.childNodes).some((n) => n.nodeType === Node.ELEMENT_NODE || n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim());
|
|
102
|
+
this.hasProjectedBody.set(has);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
static {
|
|
106
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
107
|
+
minVersion: "12.0.0",
|
|
108
|
+
version: "22.3.0",
|
|
109
|
+
ngImport: i0,
|
|
110
|
+
type: UiEmptyState,
|
|
111
|
+
deps: [],
|
|
112
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
static {
|
|
116
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
117
|
+
minVersion: "17.0.0",
|
|
118
|
+
version: "22.3.0",
|
|
119
|
+
type: UiEmptyState,
|
|
120
|
+
isStandalone: true,
|
|
121
|
+
selector: "ui-empty-state",
|
|
122
|
+
inputs: {
|
|
123
|
+
title: {
|
|
124
|
+
classPropertyName: "title",
|
|
125
|
+
publicName: "title",
|
|
126
|
+
isSignal: true,
|
|
127
|
+
isRequired: false,
|
|
128
|
+
transformFunction: null
|
|
129
|
+
},
|
|
130
|
+
description: {
|
|
131
|
+
classPropertyName: "description",
|
|
132
|
+
publicName: "description",
|
|
133
|
+
isSignal: true,
|
|
134
|
+
isRequired: false,
|
|
135
|
+
transformFunction: null
|
|
136
|
+
},
|
|
137
|
+
icon: {
|
|
138
|
+
classPropertyName: "icon",
|
|
139
|
+
publicName: "icon",
|
|
140
|
+
isSignal: true,
|
|
141
|
+
isRequired: false,
|
|
142
|
+
transformFunction: null
|
|
143
|
+
},
|
|
144
|
+
iconType: {
|
|
145
|
+
classPropertyName: "iconType",
|
|
146
|
+
publicName: "iconType",
|
|
147
|
+
isSignal: true,
|
|
148
|
+
isRequired: false,
|
|
149
|
+
transformFunction: null
|
|
150
|
+
},
|
|
151
|
+
size: {
|
|
152
|
+
classPropertyName: "size",
|
|
153
|
+
publicName: "size",
|
|
154
|
+
isSignal: true,
|
|
155
|
+
isRequired: false,
|
|
156
|
+
transformFunction: null
|
|
157
|
+
},
|
|
158
|
+
showMedia: {
|
|
159
|
+
classPropertyName: "showMedia",
|
|
160
|
+
publicName: "showMedia",
|
|
161
|
+
isSignal: true,
|
|
162
|
+
isRequired: false,
|
|
163
|
+
transformFunction: null
|
|
164
|
+
},
|
|
165
|
+
ariaLabel: {
|
|
166
|
+
classPropertyName: "ariaLabel",
|
|
167
|
+
publicName: "ariaLabel",
|
|
168
|
+
isSignal: true,
|
|
169
|
+
isRequired: false,
|
|
170
|
+
transformFunction: null
|
|
171
|
+
},
|
|
172
|
+
ariaLabelledBy: {
|
|
173
|
+
classPropertyName: "ariaLabelledBy",
|
|
174
|
+
publicName: "ariaLabelledBy",
|
|
175
|
+
isSignal: true,
|
|
176
|
+
isRequired: false,
|
|
177
|
+
transformFunction: null
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
queries: [{
|
|
181
|
+
propertyName: "mediaSlot",
|
|
182
|
+
first: true,
|
|
183
|
+
predicate: UiEmptyStateMedia,
|
|
184
|
+
descendants: true,
|
|
185
|
+
isSignal: true
|
|
186
|
+
}, {
|
|
187
|
+
propertyName: "actionsSlot",
|
|
188
|
+
first: true,
|
|
189
|
+
predicate: UiEmptyStateActions,
|
|
190
|
+
descendants: true,
|
|
191
|
+
isSignal: true
|
|
192
|
+
}],
|
|
193
|
+
viewQueries: [{
|
|
194
|
+
propertyName: "bodyWrap",
|
|
195
|
+
first: true,
|
|
196
|
+
predicate: ["bodyWrap"],
|
|
197
|
+
descendants: true,
|
|
198
|
+
isSignal: true
|
|
199
|
+
}],
|
|
200
|
+
ngImport: i0,
|
|
201
|
+
template: "<div\n [class]=\"classes()\"\n [attr.role]=\"role()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n>\n @if (showVisual()) {\n <div class=\"ui-empty-state-media\">\n @if (hasMedia()) {\n <ng-content select=\"[uiEmptyStateMedia], ui-empty-state-media\" />\n } @else {\n <ui-icon [name]=\"icon()!\" [type]=\"iconType()\" size=\"xl\" />\n }\n </div>\n }\n\n <!-- Always mounted so the default slot can be detected; hidden when the whole\n text region is empty (no title, no description, no projected body). -->\n <div class=\"ui-empty-state-text\" [class._empty]=\"!hasText()\">\n @if (hasTitle()) {\n <p class=\"ui-empty-state-title\">{{ title() }}</p>\n }\n @if (hasDescription()) {\n <p class=\"ui-empty-state-description\">{{ description() }}</p>\n }\n <div class=\"ui-empty-state-body\" #bodyWrap [class._empty]=\"!hasBody()\">\n <ng-content />\n </div>\n </div>\n\n @if (hasActions()) {\n <div class=\"ui-empty-state-actions\">\n <ng-content select=\"[uiEmptyStateActions], ui-empty-state-actions\" />\n </div>\n }\n</div>\n",
|
|
202
|
+
styles: [":host{display:block}.ui-empty-state{--_media-color: var(--ui-empty-state-media-color, var(--global-text-muted));display:flex;flex-direction:column;align-items:center;text-align:center;font-family:var(--ui-empty-state-font-family, var(--fontfamily-base));--_media-size: var(--ui-empty-state-media-size, var(--units-4xl));gap:var(--ui-empty-state-gap, var(--units-lg))}.ui-empty-state .ui-empty-state-title{font-size:var(--ui-empty-state-title-font-size, var(--size-typography-title-default))}.ui-empty-state .ui-empty-state-description{font-size:var(--ui-empty-state-desc-font-size, var(--size-typography-text-default))}.ui-empty-state-media{display:flex;align-items:center;justify-content:center;max-width:100%;color:var(--_media-color);--ui-icon-size: var(--_media-size)}.ui-empty-state-text{display:flex;flex-direction:column;gap:var(--ui-empty-state-text-gap, var(--units-xs));max-width:var(--ui-empty-state-max-width, 40ch)}.ui-empty-state-text._empty{display:none}.ui-empty-state-title{margin:0;font-family:var(--ui-empty-state-title-font-family, var(--fontfamily-title));font-weight:var(--ui-empty-state-title-weight, var(--weight-bold));line-height:1.2;color:var(--ui-empty-state-title-color, var(--global-text-default))}.ui-empty-state-description{margin:0;font-weight:var(--ui-empty-state-description-weight, var(--weight-regular));line-height:1.5;color:var(--ui-empty-state-description-color, var(--global-text-muted))}.ui-empty-state-body._empty{display:none}.ui-empty-state-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--ui-empty-state-actions-gap, var(--units-sm))}.ui-empty-state._small{--_media-size: var(--ui-empty-state-media-size-small, var(--units-2xl));gap:var(--ui-empty-state-gap-small, var(--units-default))}.ui-empty-state._small .ui-empty-state-title{font-size:var(--ui-empty-state-title-font-size-small, var(--size-typography-title-md))}.ui-empty-state._small .ui-empty-state-description{font-size:var(--ui-empty-state-desc-font-size-small, var(--size-typography-text-md))}\n"],
|
|
203
|
+
dependencies: [{
|
|
204
|
+
kind: "component",
|
|
205
|
+
type: UiIcon,
|
|
206
|
+
selector: "ui-icon",
|
|
207
|
+
inputs: [
|
|
208
|
+
"name",
|
|
209
|
+
"size",
|
|
210
|
+
"type",
|
|
211
|
+
"family",
|
|
212
|
+
"decorative",
|
|
213
|
+
"ariaLabel"
|
|
214
|
+
]
|
|
215
|
+
}]
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
220
|
+
minVersion: "12.0.0",
|
|
221
|
+
version: "22.3.0",
|
|
222
|
+
ngImport: i0,
|
|
223
|
+
type: UiEmptyState,
|
|
224
|
+
decorators: [{
|
|
225
|
+
type: Component,
|
|
226
|
+
args: [{
|
|
227
|
+
selector: "ui-empty-state",
|
|
228
|
+
imports: [UiIcon],
|
|
229
|
+
template: "<div\n [class]=\"classes()\"\n [attr.role]=\"role()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n>\n @if (showVisual()) {\n <div class=\"ui-empty-state-media\">\n @if (hasMedia()) {\n <ng-content select=\"[uiEmptyStateMedia], ui-empty-state-media\" />\n } @else {\n <ui-icon [name]=\"icon()!\" [type]=\"iconType()\" size=\"xl\" />\n }\n </div>\n }\n\n <!-- Always mounted so the default slot can be detected; hidden when the whole\n text region is empty (no title, no description, no projected body). -->\n <div class=\"ui-empty-state-text\" [class._empty]=\"!hasText()\">\n @if (hasTitle()) {\n <p class=\"ui-empty-state-title\">{{ title() }}</p>\n }\n @if (hasDescription()) {\n <p class=\"ui-empty-state-description\">{{ description() }}</p>\n }\n <div class=\"ui-empty-state-body\" #bodyWrap [class._empty]=\"!hasBody()\">\n <ng-content />\n </div>\n </div>\n\n @if (hasActions()) {\n <div class=\"ui-empty-state-actions\">\n <ng-content select=\"[uiEmptyStateActions], ui-empty-state-actions\" />\n </div>\n }\n</div>\n",
|
|
230
|
+
styles: [":host{display:block}.ui-empty-state{--_media-color: var(--ui-empty-state-media-color, var(--global-text-muted));display:flex;flex-direction:column;align-items:center;text-align:center;font-family:var(--ui-empty-state-font-family, var(--fontfamily-base));--_media-size: var(--ui-empty-state-media-size, var(--units-4xl));gap:var(--ui-empty-state-gap, var(--units-lg))}.ui-empty-state .ui-empty-state-title{font-size:var(--ui-empty-state-title-font-size, var(--size-typography-title-default))}.ui-empty-state .ui-empty-state-description{font-size:var(--ui-empty-state-desc-font-size, var(--size-typography-text-default))}.ui-empty-state-media{display:flex;align-items:center;justify-content:center;max-width:100%;color:var(--_media-color);--ui-icon-size: var(--_media-size)}.ui-empty-state-text{display:flex;flex-direction:column;gap:var(--ui-empty-state-text-gap, var(--units-xs));max-width:var(--ui-empty-state-max-width, 40ch)}.ui-empty-state-text._empty{display:none}.ui-empty-state-title{margin:0;font-family:var(--ui-empty-state-title-font-family, var(--fontfamily-title));font-weight:var(--ui-empty-state-title-weight, var(--weight-bold));line-height:1.2;color:var(--ui-empty-state-title-color, var(--global-text-default))}.ui-empty-state-description{margin:0;font-weight:var(--ui-empty-state-description-weight, var(--weight-regular));line-height:1.5;color:var(--ui-empty-state-description-color, var(--global-text-muted))}.ui-empty-state-body._empty{display:none}.ui-empty-state-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--ui-empty-state-actions-gap, var(--units-sm))}.ui-empty-state._small{--_media-size: var(--ui-empty-state-media-size-small, var(--units-2xl));gap:var(--ui-empty-state-gap-small, var(--units-default))}.ui-empty-state._small .ui-empty-state-title{font-size:var(--ui-empty-state-title-font-size-small, var(--size-typography-title-md))}.ui-empty-state._small .ui-empty-state-description{font-size:var(--ui-empty-state-desc-font-size-small, var(--size-typography-text-md))}\n"]
|
|
231
|
+
}]
|
|
232
|
+
}],
|
|
233
|
+
ctorParameters: () => [],
|
|
234
|
+
propDecorators: {
|
|
235
|
+
title: [{
|
|
236
|
+
type: i0.Input,
|
|
237
|
+
args: [{
|
|
238
|
+
isSignal: true,
|
|
239
|
+
alias: "title",
|
|
240
|
+
required: false
|
|
241
|
+
}]
|
|
242
|
+
}],
|
|
243
|
+
description: [{
|
|
244
|
+
type: i0.Input,
|
|
245
|
+
args: [{
|
|
246
|
+
isSignal: true,
|
|
247
|
+
alias: "description",
|
|
248
|
+
required: false
|
|
249
|
+
}]
|
|
250
|
+
}],
|
|
251
|
+
icon: [{
|
|
252
|
+
type: i0.Input,
|
|
253
|
+
args: [{
|
|
254
|
+
isSignal: true,
|
|
255
|
+
alias: "icon",
|
|
256
|
+
required: false
|
|
257
|
+
}]
|
|
258
|
+
}],
|
|
259
|
+
iconType: [{
|
|
260
|
+
type: i0.Input,
|
|
261
|
+
args: [{
|
|
262
|
+
isSignal: true,
|
|
263
|
+
alias: "iconType",
|
|
264
|
+
required: false
|
|
265
|
+
}]
|
|
266
|
+
}],
|
|
267
|
+
size: [{
|
|
268
|
+
type: i0.Input,
|
|
269
|
+
args: [{
|
|
270
|
+
isSignal: true,
|
|
271
|
+
alias: "size",
|
|
272
|
+
required: false
|
|
273
|
+
}]
|
|
274
|
+
}],
|
|
275
|
+
showMedia: [{
|
|
276
|
+
type: i0.Input,
|
|
277
|
+
args: [{
|
|
278
|
+
isSignal: true,
|
|
279
|
+
alias: "showMedia",
|
|
280
|
+
required: false
|
|
281
|
+
}]
|
|
282
|
+
}],
|
|
283
|
+
ariaLabel: [{
|
|
284
|
+
type: i0.Input,
|
|
285
|
+
args: [{
|
|
286
|
+
isSignal: true,
|
|
287
|
+
alias: "ariaLabel",
|
|
288
|
+
required: false
|
|
289
|
+
}]
|
|
290
|
+
}],
|
|
291
|
+
ariaLabelledBy: [{
|
|
292
|
+
type: i0.Input,
|
|
293
|
+
args: [{
|
|
294
|
+
isSignal: true,
|
|
295
|
+
alias: "ariaLabelledBy",
|
|
296
|
+
required: false
|
|
297
|
+
}]
|
|
298
|
+
}],
|
|
299
|
+
mediaSlot: [{
|
|
300
|
+
type: i0.ContentChild,
|
|
301
|
+
args: [i0.forwardRef(() => UiEmptyStateMedia), { isSignal: true }]
|
|
302
|
+
}],
|
|
303
|
+
actionsSlot: [{
|
|
304
|
+
type: i0.ContentChild,
|
|
305
|
+
args: [i0.forwardRef(() => UiEmptyStateActions), { isSignal: true }]
|
|
306
|
+
}],
|
|
307
|
+
bodyWrap: [{
|
|
308
|
+
type: i0.ViewChild,
|
|
309
|
+
args: ["bodyWrap", { isSignal: true }]
|
|
310
|
+
}]
|
|
311
|
+
}
|
|
312
|
+
});
|
|
147
313
|
export { UiEmptyState, UiEmptyStateActions, UiEmptyStateMedia };
|
|
148
|
-
|
|
314
|
+
|
|
315
|
+
//# sourceMappingURL=4sh-ui-kit-informative-ui-empty-state.mjs.map
|