@4sh/ui-kit 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.fr.md +10 -8
- package/README.md +10 -8
- package/collection.json +20 -0
- package/fesm2022/{4sh-ui-kit-ui-button-split.mjs → 4sh-ui-kit-actions-ui-button-split.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-button.mjs → 4sh-ui-kit-actions-ui-button.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-link.mjs → 4sh-ui-kit-actions-ui-link.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-icon.mjs → 4sh-ui-kit-base-ui-icon.mjs} +4 -4
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-image.mjs → 4sh-ui-kit-base-ui-image.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-autocomplete.mjs → 4sh-ui-kit-forms-ui-autocomplete.mjs} +8 -8
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-checkbox.mjs → 4sh-ui-kit-forms-ui-checkbox.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-datepicker.mjs → 4sh-ui-kit-forms-ui-datepicker.mjs} +15 -9
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-field.mjs → 4sh-ui-kit-forms-ui-field.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-file-upload.mjs → 4sh-ui-kit-forms-ui-file-upload.mjs} +11 -11
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-input-group.mjs → 4sh-ui-kit-forms-ui-input-group.mjs} +7 -7
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-input-mask.mjs → 4sh-ui-kit-forms-ui-input-mask.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-input-number.mjs → 4sh-ui-kit-forms-ui-input-number.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-input-otp.mjs → 4sh-ui-kit-forms-ui-input-otp.mjs} +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-input-tags.mjs → 4sh-ui-kit-forms-ui-input-tags.mjs} +7 -7
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-input.mjs → 4sh-ui-kit-forms-ui-input.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-label.mjs → 4sh-ui-kit-forms-ui-label.mjs} +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-nudger.mjs → 4sh-ui-kit-forms-ui-nudger.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-radio.mjs → 4sh-ui-kit-forms-ui-radio.mjs} +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-rating.mjs → 4sh-ui-kit-forms-ui-rating.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-segment-control.mjs → 4sh-ui-kit-forms-ui-segment-control.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-select.mjs → 4sh-ui-kit-forms-ui-select.mjs} +7 -7
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-slider.mjs → 4sh-ui-kit-forms-ui-slider.mjs} +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-textarea.mjs → 4sh-ui-kit-forms-ui-textarea.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-toggle.mjs → 4sh-ui-kit-forms-ui-toggle.mjs} +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms.mjs +28 -11
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/{4sh-ui-kit-ui-accordion.mjs → 4sh-ui-kit-informative-ui-accordion.mjs} +15 -15
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-alert.mjs → 4sh-ui-kit-informative-ui-alert.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-avatar-group.mjs → 4sh-ui-kit-informative-ui-avatar-group.mjs} +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-avatar.mjs → 4sh-ui-kit-informative-ui-avatar.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-badge.mjs → 4sh-ui-kit-informative-ui-badge.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-chip.mjs → 4sh-ui-kit-informative-ui-chip.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-empty-state.mjs → 4sh-ui-kit-informative-ui-empty-state.mjs} +11 -11
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-helper.mjs → 4sh-ui-kit-informative-ui-helper.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-progress-bar.mjs → 4sh-ui-kit-informative-ui-progress-bar.mjs} +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-read-only.mjs → 4sh-ui-kit-informative-ui-read-only.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-separator.mjs → 4sh-ui-kit-informative-ui-separator.mjs} +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-skeleton.mjs → 4sh-ui-kit-informative-ui-skeleton.mjs} +4 -4
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-spinner.mjs → 4sh-ui-kit-informative-ui-spinner.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-tag.mjs → 4sh-ui-kit-informative-ui-tag.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-toast.mjs → 4sh-ui-kit-informative-ui-toast.mjs} +11 -11
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-tooltip.mjs → 4sh-ui-kit-informative-ui-tooltip.mjs} +7 -7
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-card.mjs → 4sh-ui-kit-layout-ui-card.mjs} +16 -16
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-drawer.mjs → 4sh-ui-kit-layout-ui-drawer.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-modal.mjs → 4sh-ui-kit-layout-ui-modal.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-popover.mjs → 4sh-ui-kit-layout-ui-popover.mjs} +4 -4
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
- package/fesm2022/{4sh-ui-kit-ui-breadcrumb.mjs → 4sh-ui-kit-navigation-ui-breadcrumb.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-context-menu.mjs → 4sh-ui-kit-navigation-ui-context-menu.mjs} +5 -5
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-menu.mjs → 4sh-ui-kit-navigation-ui-menu.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-sidebar.mjs → 4sh-ui-kit-navigation-ui-sidebar.mjs} +13 -13
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-stepper.mjs → 4sh-ui-kit-navigation-ui-stepper.mjs} +20 -20
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-tabs.mjs → 4sh-ui-kit-navigation-ui-tabs.mjs} +26 -20
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-paginator.mjs → 4sh-ui-kit-table-ui-paginator.mjs} +6 -6
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -0
- package/fesm2022/{4sh-ui-kit-ui-table.mjs → 4sh-ui-kit-table-ui-table.mjs} +40 -40
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
- package/fesm2022/4sh-ui-kit.mjs +1 -1
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/package.json +179 -175
- package/schematics/index.cjs +76 -0
- package/schematics/schema-add.json +19 -0
- package/schematics/schema-ng-add.json +13 -0
- package/schematics/schema-update.json +13 -0
- package/types/{4sh-ui-kit-ui-button-split.d.ts → 4sh-ui-kit-actions-ui-button-split.d.ts} +2 -2
- package/types/{4sh-ui-kit-ui-autocomplete.d.ts → 4sh-ui-kit-forms-ui-autocomplete.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-file-upload.d.ts → 4sh-ui-kit-forms-ui-file-upload.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-input-mask.d.ts → 4sh-ui-kit-forms-ui-input-mask.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-input-tags.d.ts → 4sh-ui-kit-forms-ui-input-tags.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-input.d.ts → 4sh-ui-kit-forms-ui-input.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-nudger.d.ts → 4sh-ui-kit-forms-ui-nudger.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-rating.d.ts → 4sh-ui-kit-forms-ui-rating.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-select.d.ts → 4sh-ui-kit-forms-ui-select.d.ts} +1 -1
- package/types/4sh-ui-kit-forms.d.ts +2 -1
- package/types/{4sh-ui-kit-ui-avatar.d.ts → 4sh-ui-kit-informative-ui-avatar.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-badge.d.ts → 4sh-ui-kit-informative-ui-badge.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-chip.d.ts → 4sh-ui-kit-informative-ui-chip.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-empty-state.d.ts → 4sh-ui-kit-informative-ui-empty-state.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-spinner.d.ts → 4sh-ui-kit-informative-ui-spinner.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-tag.d.ts → 4sh-ui-kit-informative-ui-tag.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-context-menu.d.ts → 4sh-ui-kit-navigation-ui-context-menu.d.ts} +1 -1
- package/types/{4sh-ui-kit-ui-tabs.d.ts → 4sh-ui-kit-navigation-ui-tabs.d.ts} +5 -1
- package/types/{4sh-ui-kit-ui-table.d.ts → 4sh-ui-kit-table-ui-table.d.ts} +1 -1
- package/fesm2022/4sh-ui-kit-ui-accordion.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-alert.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-avatar.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-badge.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-button-split.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-button.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-card.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-checkbox.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-chip.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-context-menu.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-datepicker.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-drawer.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-empty-state.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-field.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-file-upload.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-helper.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-icon.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-image.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-input-group.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-input-mask.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-input-number.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-input-otp.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-input-tags.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-input.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-label.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-link.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-menu.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-modal.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-nudger.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-paginator.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-popover.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-radio.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-rating.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-read-only.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-segment-control.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-select.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-separator.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-sidebar.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-skeleton.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-slider.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-spinner.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-stepper.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-table.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-tabs.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-tag.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-textarea.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-toast.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-toggle.mjs.map +0 -1
- package/fesm2022/4sh-ui-kit-ui-tooltip.mjs.map +0 -1
- /package/types/{4sh-ui-kit-ui-button.d.ts → 4sh-ui-kit-actions-ui-button.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-link.d.ts → 4sh-ui-kit-actions-ui-link.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-icon.d.ts → 4sh-ui-kit-base-ui-icon.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-image.d.ts → 4sh-ui-kit-base-ui-image.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-checkbox.d.ts → 4sh-ui-kit-forms-ui-checkbox.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-datepicker.d.ts → 4sh-ui-kit-forms-ui-datepicker.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-field.d.ts → 4sh-ui-kit-forms-ui-field.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-input-group.d.ts → 4sh-ui-kit-forms-ui-input-group.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-input-number.d.ts → 4sh-ui-kit-forms-ui-input-number.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-input-otp.d.ts → 4sh-ui-kit-forms-ui-input-otp.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-label.d.ts → 4sh-ui-kit-forms-ui-label.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-radio.d.ts → 4sh-ui-kit-forms-ui-radio.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-segment-control.d.ts → 4sh-ui-kit-forms-ui-segment-control.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-slider.d.ts → 4sh-ui-kit-forms-ui-slider.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-textarea.d.ts → 4sh-ui-kit-forms-ui-textarea.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-toggle.d.ts → 4sh-ui-kit-forms-ui-toggle.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-accordion.d.ts → 4sh-ui-kit-informative-ui-accordion.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-alert.d.ts → 4sh-ui-kit-informative-ui-alert.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-avatar-group.d.ts → 4sh-ui-kit-informative-ui-avatar-group.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-helper.d.ts → 4sh-ui-kit-informative-ui-helper.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-progress-bar.d.ts → 4sh-ui-kit-informative-ui-progress-bar.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-read-only.d.ts → 4sh-ui-kit-informative-ui-read-only.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-separator.d.ts → 4sh-ui-kit-informative-ui-separator.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-skeleton.d.ts → 4sh-ui-kit-informative-ui-skeleton.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-toast.d.ts → 4sh-ui-kit-informative-ui-toast.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-tooltip.d.ts → 4sh-ui-kit-informative-ui-tooltip.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-card.d.ts → 4sh-ui-kit-layout-ui-card.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-drawer.d.ts → 4sh-ui-kit-layout-ui-drawer.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-modal.d.ts → 4sh-ui-kit-layout-ui-modal.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-popover.d.ts → 4sh-ui-kit-layout-ui-popover.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-breadcrumb.d.ts → 4sh-ui-kit-navigation-ui-breadcrumb.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-menu.d.ts → 4sh-ui-kit-navigation-ui-menu.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-sidebar.d.ts → 4sh-ui-kit-navigation-ui-sidebar.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-stepper.d.ts → 4sh-ui-kit-navigation-ui-stepper.d.ts} +0 -0
- /package/types/{4sh-ui-kit-ui-paginator.d.ts → 4sh-ui-kit-table-ui-paginator.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Directive, input, booleanAttribute, inject, viewChild, computed, Component, model, output, contentChildren } from '@angular/core';
|
|
3
|
-
import { UiIcon } from '@4sh/ui-kit/ui-icon';
|
|
4
|
-
import { UiSeparator } from '@4sh/ui-kit/ui-separator';
|
|
3
|
+
import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
|
|
4
|
+
import { UiSeparator } from '@4sh/ui-kit/informative/ui-separator';
|
|
5
5
|
|
|
6
6
|
/** Process-wide counter for unique header/content ids (aria wiring). */
|
|
7
7
|
let nextUid = 0;
|
|
@@ -16,10 +16,10 @@ let nextUid = 0;
|
|
|
16
16
|
* </ui-accordion-panel>
|
|
17
17
|
*/
|
|
18
18
|
class UiAccordionHeader {
|
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
20
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAccordionHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
20
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: UiAccordionHeader, isStandalone: true, selector: "[uiAccordionHeader], ui-accordion-header", ngImport: i0 }); }
|
|
21
21
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAccordionHeader, decorators: [{
|
|
23
23
|
type: Directive,
|
|
24
24
|
args: [{ selector: '[uiAccordionHeader], ui-accordion-header' }]
|
|
25
25
|
}] });
|
|
@@ -28,10 +28,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
28
28
|
* so this is only needed to disambiguate. Kept for symmetry with the header slot.
|
|
29
29
|
*/
|
|
30
30
|
class UiAccordionContent {
|
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
32
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAccordionContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
32
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: UiAccordionContent, isStandalone: true, selector: "[uiAccordionContent], ui-accordion-content", ngImport: i0 }); }
|
|
33
33
|
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAccordionContent, decorators: [{
|
|
35
35
|
type: Directive,
|
|
36
36
|
args: [{ selector: '[uiAccordionContent], ui-accordion-content' }]
|
|
37
37
|
}] });
|
|
@@ -102,10 +102,10 @@ class UiAccordionPanel {
|
|
|
102
102
|
this.accordion.open(this.value(), event);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
106
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
105
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAccordionPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
106
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiAccordionPanel, isStandalone: true, selector: "ui-accordion-panel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class._active": "active()", "class._disabled": "disabled()" }, classAttribute: "ui-accordion-panel" }, viewQueries: [{ propertyName: "headerButton", first: true, predicate: ["headerBtn"], descendants: true, isSignal: true }], ngImport: i0, template: "<button\n #headerBtn\n type=\"button\"\n class=\"ui-accordion-header\"\n [id]=\"headerId\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"active()\"\n [attr.aria-controls]=\"contentId\"\n (click)=\"toggle($event)\"\n (focus)=\"onFocus($event)\"\n>\n <span class=\"ui-accordion-header-slot\">\n @if (header(); as h) {\n {{ h }}\n } @else {\n <ng-content select=\"[uiAccordionHeader], ui-accordion-header\" />\n }\n </span>\n\n @if (showControl()) {\n <span class=\"ui-accordion-header-control\" aria-hidden=\"true\">\n <ui-icon [name]=\"icon()\" size=\"default\" />\n </span>\n }\n</button>\n\n@if (showSeparator()) {\n <ui-separator class=\"ui-accordion-separator\" size=\"small\" />\n}\n\n<div\n class=\"ui-accordion-content\"\n [class._open]=\"active()\"\n [class._no-motion]=\"!accordion.motion()\"\n role=\"region\"\n [id]=\"contentId\"\n [attr.aria-labelledby]=\"headerId\"\n [attr.inert]=\"active() ? null : ''\"\n>\n <div class=\"ui-accordion-content-inner\">\n <div class=\"ui-accordion-content-body\">\n <ng-content />\n </div>\n </div>\n</div>\n", styles: [":host{display:block;width:100%}.ui-accordion-header{display:flex;align-items:center;justify-content:space-between;gap:var(--units-md);width:100%;margin:0;padding:var(--units-sm) 0;border:0;border-radius:var(--radius-sm);background:none;color:var(--informative-defaultlow-content-default);font-family:var(--fontfamily-base);text-align:left;cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-accordion-header:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--navigation-high-stroke-focused)}.ui-accordion-header:disabled{cursor:not-allowed}.ui-accordion-header-slot{flex:1 1 auto;min-width:0;font-weight:var(--weight-bold);font-size:var(--size-typography-text-xl);line-height:1.2}.ui-accordion-header-control{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:2.5rem;height:2.5rem;border-radius:var(--radius-default);background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-accordion-header:hover:not(:disabled) .ui-accordion-header-control{background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-accordion-header:active:not(:disabled) .ui-accordion-header-control{background-color:var(--navigation-high-surface-pressed);color:var(--navigation-high-content-pressed)}.ui-accordion-header:focus-visible .ui-accordion-header-control{background-color:var(--navigation-high-surface-focused);color:var(--navigation-high-content-focused);box-shadow:inset 0 0 0 var(--stroke-default) var(--navigation-high-stroke-focused)}.ui-accordion-separator{width:100%}.ui-accordion-content{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-accordion-content._open{grid-template-rows:1fr;opacity:1}.ui-accordion-content._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-accordion-content{transition-duration:.01ms}}:root[data-motion=off] .ui-accordion-content{transition-duration:.01ms}.ui-accordion-content-inner{overflow:hidden;min-height:0}.ui-accordion-content-body{padding-block:var(--units-default);color:var(--informative-defaultlow-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);line-height:1.5}:host._disabled .ui-accordion-header{color:var(--navigation-high-content-disabled)}:host._disabled .ui-accordion-header-control{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiSeparator, selector: "ui-separator", inputs: ["label", "orientation", "variant", "size", "labelAlign", "ariaLabel"] }] }); }
|
|
107
107
|
}
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAccordionPanel, decorators: [{
|
|
109
109
|
type: Component,
|
|
110
110
|
args: [{ selector: 'ui-accordion-panel', imports: [UiIcon, UiSeparator], host: {
|
|
111
111
|
class: 'ui-accordion-panel',
|
|
@@ -221,10 +221,10 @@ class UiAccordion {
|
|
|
221
221
|
}
|
|
222
222
|
items[next].focus();
|
|
223
223
|
}
|
|
224
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
225
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.
|
|
224
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAccordion, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
225
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.1", type: UiAccordion, isStandalone: true, selector: "ui-accordion", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null }, expandIcon: { classPropertyName: "expandIcon", publicName: "expandIcon", isSignal: true, isRequired: false, transformFunction: null }, collapseIcon: { classPropertyName: "collapseIcon", publicName: "collapseIcon", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", opened: "opened", closed: "closed" }, host: { listeners: { "keydown": "onKeydown($event)" }, classAttribute: "ui-accordion" }, queries: [{ propertyName: "panels", predicate: UiAccordionPanel, isSignal: true }], ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:flex;flex-direction:column;width:100%}\n"] }); }
|
|
226
226
|
}
|
|
227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAccordion, decorators: [{
|
|
228
228
|
type: Component,
|
|
229
229
|
args: [{ selector: 'ui-accordion', template: '<ng-content />', host: {
|
|
230
230
|
class: 'ui-accordion',
|
|
@@ -241,4 +241,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
241
241
|
*/
|
|
242
242
|
|
|
243
243
|
export { UiAccordion, UiAccordionContent, UiAccordionHeader, UiAccordionPanel };
|
|
244
|
-
//# sourceMappingURL=4sh-ui-kit-ui-accordion.mjs.map
|
|
244
|
+
//# sourceMappingURL=4sh-ui-kit-informative-ui-accordion.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-informative-ui-accordion.mjs","sources":["../../../projects/ui-kit/informative/ui-accordion/src/lib/ui-accordion.ts","../../../projects/ui-kit/informative/ui-accordion/src/lib/ui-accordion-panel.html","../../../projects/ui-kit/informative/ui-accordion/src/public-api.ts","../../../projects/ui-kit/informative/ui-accordion/src/4sh-ui-kit-informative-ui-accordion.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n contentChildren,\n Directive,\n ElementRef,\n inject,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { UiSeparator } from '@4sh/ui-kit/informative/ui-separator';\n\n/** Identifier of a panel within an accordion (its `value`). */\nexport type UiAccordionValue = string | number;\n/** Active value(s): a single value (single mode) or an array (multiple mode). */\nexport type UiAccordionActiveValue =\n | UiAccordionValue\n | UiAccordionValue[]\n | null\n | undefined;\n\n/** Payload of the accordion open/close outputs. */\nexport interface UiAccordionChangeEvent {\n /** Value of the panel that opened or closed. */\n value: UiAccordionValue;\n /** Originating DOM event (click / keyboard / focus). */\n originalEvent: Event;\n}\n\n/** Process-wide counter for unique header/content ids (aria wiring). */\nlet nextUid = 0;\n\n/**\n * Header slot marker — apply it (attribute or element form) on the content that\n * should sit in a panel's header. Optional: the `header` string input is a\n * shorthand for a plain-text title.\n *\n * <ui-accordion-panel value=\"0\">\n * <span uiAccordionHeader>Rich <b>title</b></span>\n * Body content (default slot)…\n * </ui-accordion-panel>\n */\n@Directive({ selector: '[uiAccordionHeader], ui-accordion-header' })\nexport class UiAccordionHeader {}\n\n/**\n * Content slot marker (optional) — the panel body is the **default** projection,\n * so this is only needed to disambiguate. Kept for symmetry with the header slot.\n */\n@Directive({ selector: '[uiAccordionContent], ui-accordion-content' })\nexport class UiAccordionContent {}\n\n/**\n * ui-accordion-panel — a single collapsible section of a {@link UiAccordion}.\n *\n * The whole header is a native `<button>` (WAI-ARIA accordion pattern): clicking\n * anywhere on it toggles the panel; the chevron is a decorative affordance styled\n * as the Figma control. The body region stays in the DOM but is `inert` and\n * height-collapsed when closed (form state preserved, hidden from AT).\n *\n * Declared before {@link UiAccordion} so the container's content query can\n * reference it without a temporal-dead-zone error at class-definition time.\n */\n@Component({\n selector: 'ui-accordion-panel',\n templateUrl: './ui-accordion-panel.html',\n styleUrl: './ui-accordion-panel.scss',\n imports: [UiIcon, UiSeparator],\n host: {\n class: 'ui-accordion-panel',\n '[class._active]': 'active()',\n '[class._disabled]': 'disabled()',\n },\n})\nexport class UiAccordionPanel {\n /** Unique identifier of the panel (matched against the accordion `value`). */\n value = input.required<UiAccordionValue>();\n /** Plain-text header shorthand (use the `uiAccordionHeader` slot for rich content). */\n header = input<string>();\n /** Disable the panel (not toggleable, skipped by keyboard navigation). */\n disabled = input(false, { transform: booleanAttribute });\n /** Per-panel override for the header divider (falls back to the group default). */\n separator = input<boolean | undefined>(undefined);\n /** Per-panel override for the chevron control (falls back to the group default). */\n control = input<boolean | undefined>(undefined);\n\n /** @ignore Parent accordion (owns the open state + group defaults). */\n protected readonly accordion = inject(UiAccordion);\n\n /** @ignore */\n readonly headerButton = viewChild.required<ElementRef<HTMLButtonElement>>('headerBtn');\n\n /** @ignore */\n private readonly uid = ++nextUid;\n /** @ignore */\n protected readonly headerId = `ui-accordion-header-${this.uid}`;\n /** @ignore */\n protected readonly contentId = `ui-accordion-content-${this.uid}`;\n\n /** @ignore */\n protected readonly active = computed(() => this.accordion.isActive(this.value()));\n /** @ignore */\n protected readonly icon = computed(() =>\n this.active() ? this.accordion.collapseIcon() : this.accordion.expandIcon(),\n );\n /** @ignore */\n protected readonly showSeparator = computed(() => this.separator() ?? this.accordion.separator());\n /** @ignore */\n protected readonly showControl = computed(() => this.control() ?? this.accordion.control());\n\n /** Move focus to this panel's header. */\n focus(): void {\n this.headerButton().nativeElement.focus();\n }\n\n /** @ignore */\n protected toggle(event: Event): void {\n if (this.disabled()) return;\n this.accordion.toggle(this.value(), event);\n }\n\n /** @ignore */\n protected onFocus(event: FocusEvent): void {\n if (this.accordion.selectOnFocus() && !this.disabled()) {\n this.accordion.open(this.value(), event);\n }\n }\n}\n\n/**\n * ui-accordion — container grouping a set of collapsible {@link UiAccordionPanel}s.\n *\n * Headless (composition API inspired by PrimeNG `p-accordion`): it owns the open\n * state (`value` two-way model, `single` or `multiple`), roving-focus keyboard\n * navigation across headers (Up/Down/Home/End), and the group-level defaults\n * (`separator`, `control`, expand/collapse icons, `motion`).\n *\n * @example\n * ```html\n * <ui-accordion [(value)]=\"open\" [multiple]=\"true\">\n * <ui-accordion-panel value=\"a\" header=\"Section A\">Contenu A…</ui-accordion-panel>\n * <ui-accordion-panel value=\"b\" header=\"Section B\">Contenu B…</ui-accordion-panel>\n * </ui-accordion>\n * ```\n */\n@Component({\n selector: 'ui-accordion',\n template: '<ng-content />',\n styleUrl: './ui-accordion.scss',\n host: {\n class: 'ui-accordion',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class UiAccordion {\n /** Active panel value(s). Single mode: one value; `multiple`: an array. */\n value = model<UiAccordionActiveValue>();\n /** Allow several panels open at once (value becomes an array). */\n multiple = input(false, { transform: booleanAttribute });\n /** Open a panel as soon as its header receives focus. */\n selectOnFocus = input(false, { transform: booleanAttribute });\n /** Group default: render the divider under each header. Overridable per panel. */\n separator = input(true, { transform: booleanAttribute });\n /** Group default: render the chevron control on each header. Overridable per panel. */\n control = input(true, { transform: booleanAttribute });\n /** Icon shown on a collapsed panel. */\n expandIcon = input<string>('chevron-down');\n /** Icon shown on an expanded panel. */\n collapseIcon = input<string>('chevron-up');\n /** Animate the expand/collapse transition (honours reduced-motion regardless). */\n motion = input(true, { transform: booleanAttribute });\n\n /** Fired when a panel is expanded. */\n opened = output<UiAccordionChangeEvent>();\n /** Fired when a panel is collapsed. */\n closed = output<UiAccordionChangeEvent>();\n\n /** @ignore Projected panels (for keyboard roving focus). */\n private readonly panels = contentChildren(UiAccordionPanel);\n\n /** @ignore Whether the given panel value is currently active. */\n isActive(value: UiAccordionValue): boolean {\n const v = this.value();\n if (this.multiple()) return Array.isArray(v) && v.includes(value);\n return v === value;\n }\n\n /** @ignore Toggle a panel (single mode allows closing the active one). */\n toggle(value: UiAccordionValue, event: Event): void {\n const wasActive = this.isActive(value);\n this.setActive(value, !wasActive);\n (wasActive ? this.closed : this.opened).emit({ value, originalEvent: event });\n }\n\n /** @ignore Open a panel if it is not already open (used by `selectOnFocus`). */\n open(value: UiAccordionValue, event: Event): void {\n if (this.isActive(value)) return;\n this.setActive(value, true);\n this.opened.emit({ value, originalEvent: event });\n }\n\n /** @ignore */\n private setActive(value: UiAccordionValue, on: boolean): void {\n if (this.multiple()) {\n const current = Array.isArray(this.value()) ? [...(this.value() as UiAccordionValue[])] : [];\n const index = current.indexOf(value);\n if (on && index === -1) current.push(value);\n else if (!on && index !== -1) current.splice(index, 1);\n this.value.set(current);\n } else {\n this.value.set(on ? value : undefined);\n }\n }\n\n /** @ignore Roving focus across enabled headers (WAI-ARIA accordion pattern). */\n protected onKeydown(event: KeyboardEvent): void {\n if (!['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) return;\n const items = this.panels().filter((p) => !p.disabled());\n if (!items.length) return;\n const current = items.findIndex((p) => p.headerButton().nativeElement === document.activeElement);\n if (current === -1) return; // focus is not on a header — let the event through.\n\n event.preventDefault();\n let next = current;\n switch (event.key) {\n case 'ArrowDown': next = (current + 1) % items.length; break;\n case 'ArrowUp': next = (current - 1 + items.length) % items.length; break;\n case 'Home': next = 0; break;\n case 'End': next = items.length - 1; break;\n }\n items[next].focus();\n }\n}\n","<button\n #headerBtn\n type=\"button\"\n class=\"ui-accordion-header\"\n [id]=\"headerId\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"active()\"\n [attr.aria-controls]=\"contentId\"\n (click)=\"toggle($event)\"\n (focus)=\"onFocus($event)\"\n>\n <span class=\"ui-accordion-header-slot\">\n @if (header(); as h) {\n {{ h }}\n } @else {\n <ng-content select=\"[uiAccordionHeader], ui-accordion-header\" />\n }\n </span>\n\n @if (showControl()) {\n <span class=\"ui-accordion-header-control\" aria-hidden=\"true\">\n <ui-icon [name]=\"icon()\" size=\"default\" />\n </span>\n }\n</button>\n\n@if (showSeparator()) {\n <ui-separator class=\"ui-accordion-separator\" size=\"small\" />\n}\n\n<div\n class=\"ui-accordion-content\"\n [class._open]=\"active()\"\n [class._no-motion]=\"!accordion.motion()\"\n role=\"region\"\n [id]=\"contentId\"\n [attr.aria-labelledby]=\"headerId\"\n [attr.inert]=\"active() ? null : ''\"\n>\n <div class=\"ui-accordion-content-inner\">\n <div class=\"ui-accordion-content-body\">\n <ng-content />\n </div>\n </div>\n</div>\n","/*\n * Public API Surface of ui-kit/ui-accordion\n */\n\nexport * from './lib/ui-accordion';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport *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/BhD,gBAAgB,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,wDAAA,CAAA,EAAA,CAAA,CAAA;;2FAOf,WAAW,EAAA,UAAA,EAAA,CAAA;kBATvB,SAAS;+BACE,cAAc,EAAA,QAAA,EACd,gBAAgB,EAAA,IAAA,EAEpB;AACJ,wBAAA,KAAK,EAAE,cAAc;AACrB,wBAAA,WAAW,EAAE,mBAAmB;AACjC,qBAAA,EAAA,MAAA,EAAA,CAAA,wDAAA,CAAA,EAAA;w/BA0ByC,gBAAgB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEtL5D;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { inject, DestroyRef, input, booleanAttribute, numberAttribute, output, signal, computed, afterNextRender, Component } from '@angular/core';
|
|
3
|
-
import { UiIcon } from '@4sh/ui-kit/ui-icon';
|
|
3
|
+
import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Default leading icon per semantic level (FontAwesome names, from the Figma
|
|
@@ -137,10 +137,10 @@ class UiAlert {
|
|
|
137
137
|
this.dismissed.set(true);
|
|
138
138
|
this.closed.emit();
|
|
139
139
|
}
|
|
140
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
141
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
140
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAlert, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
141
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiAlert, isStandalone: true, selector: "ui-alert", 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 }, size: { classPropertyName: "size", publicName: "size", 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 }, life: { classPropertyName: "life", publicName: "life", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "style.display": "dismissed() ? 'none' : 'block'", "style.width": "'100%'" } }, ngImport: i0, template: "@if (!dismissed()) {\n <div\n [class]=\"classes()\"\n role=\"alert\"\n aria-atomic=\"true\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @if (iconName(); as name) {\n <span class=\"ui-alert-icon\">\n <ui-icon [name]=\"name\" [size]=\"iconSize()\" />\n </span>\n }\n\n <div class=\"ui-alert-content\">\n @if (title(); as t) {\n <span class=\"ui-alert-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-alert-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-alert-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose()\"\n >\n <ui-icon [name]=\"closeIcon()\" [size]=\"closeIconSize()\" />\n </button>\n }\n </div>\n}\n", styles: [".ui-alert{display:flex;align-items:flex-start;gap:var(--units-sm);box-sizing:border-box;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);font-family:var(--fontfamily-base);min-height:3.5rem}.ui-alert .ui-alert-title{font-size:var(--size-typography-title-sm)}.ui-alert .ui-alert-text{font-size:var(--size-typography-text-md)}.ui-alert-icon{flex:0 0 auto;display:flex;align-items:center;padding-top:var(--units-2xs);line-height:0}.ui-alert-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-alert-title{font-family:var(--fontfamily-title);font-weight:var(--weight-bold);line-height:1.3;overflow-wrap:break-word}.ui-alert-text{font-weight:var(--weight-light);line-height:1.3;overflow-wrap:break-word}.ui-alert-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-alert-close:hover{opacity:1}.ui-alert-close:focus-visible{outline:var(--units-2xs) solid currentColor;outline-offset:.125rem;opacity:1}@media(prefers-reduced-motion:reduce){.ui-alert-close{transition-duration:.01ms}}:root[data-motion=off] .ui-alert-close{transition-duration:.01ms}.ui-alert._large{min-height:4.125rem}.ui-alert._large .ui-alert-title{font-size:var(--size-typography-title-md)}.ui-alert._large .ui-alert-text{font-size:var(--size-typography-text-lg)}.ui-alert._title-only{min-height:auto;align-items:center}.ui-alert._title-only .ui-alert-icon{padding-top:0}.ui-alert._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-alert._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-alert._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-alert._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-alert._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-alert._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-alert._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-alert._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-alert._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-alert._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
142
142
|
}
|
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAlert, decorators: [{
|
|
144
144
|
type: Component,
|
|
145
145
|
args: [{ selector: 'ui-alert', imports: [UiIcon], host: {
|
|
146
146
|
'[style.display]': "dismissed() ? 'none' : 'block'",
|
|
@@ -157,4 +157,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
157
157
|
*/
|
|
158
158
|
|
|
159
159
|
export { UI_ALERT_DEFAULT_ICONS, UiAlert };
|
|
160
|
-
//# sourceMappingURL=4sh-ui-kit-ui-alert.mjs.map
|
|
160
|
+
//# sourceMappingURL=4sh-ui-kit-informative-ui-alert.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-informative-ui-alert.mjs","sources":["../../../projects/ui-kit/informative/ui-alert/src/lib/ui-alert.types.ts","../../../projects/ui-kit/informative/ui-alert/src/lib/ui-alert.ts","../../../projects/ui-kit/informative/ui-alert/src/lib/ui-alert.html","../../../projects/ui-kit/informative/ui-alert/src/public-api.ts","../../../projects/ui-kit/informative/ui-alert/src/4sh-ui-kit-informative-ui-alert.ts"],"sourcesContent":["import { UiFeedbackLevel } from '@4sh/ui-kit/types';\n\n/** Rendered scale of an alert. `default` = base, `large` = comfortable. */\nexport type UiAlertSize = 'default' | 'large';\n\n/**\n * Default leading icon per semantic level (FontAwesome names, from the Figma\n * source). Overridable per instance through the `icon` input.\n */\nexport const UI_ALERT_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 {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n DestroyRef,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\nimport { UI_ALERT_DEFAULT_ICONS, UiAlertSize } from './ui-alert.types';\n\n/**\n * ui-alert — inline message for informational, success, warning or error feedback.\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 * The root carries `role=\"alert\"` (implicit `aria-live=\"assertive\"` +\n * `aria-atomic=\"true\"`), so screen readers announce it as soon as it appears —\n * ideal for form validation summaries or transient status banners. Set `life`\n * to auto-dismiss after a delay; the alert hides itself and emits `closed`.\n *\n * Unlike {@link UiToast} (a floating, service-driven notification), `ui-alert`\n * is a plain inline block — drop it in the page flow, a form, or a `@for` loop.\n *\n * @example\n * ```html\n * <ui-alert level=\"error\" title=\"Erreur\" text=\"Le formulaire est invalide.\" />\n * <ui-alert level=\"success\" text=\"Enregistré.\" [life]=\"4000\" (closed)=\"onClose()\" />\n * ```\n */\n@Component({\n selector: 'ui-alert',\n imports: [UiIcon],\n templateUrl: './ui-alert.html',\n styleUrl: './ui-alert.scss',\n host: {\n '[style.display]': \"dismissed() ? 'none' : 'block'\",\n '[style.width]': \"'100%'\",\n },\n})\nexport class UiAlert {\n private readonly destroyRef = inject(DestroyRef);\n\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 /** Rendered scale (`default` | `large`). */\n size = input<UiAlertSize>('default');\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 /** Auto-dismiss delay in ms. `0` (default) never auto-dismisses. */\n life = input(0, { transform: numberAttribute });\n /** Accessible label of the alert region (screen readers). */\n ariaLabel = input<string>();\n /** id of the element labelling the alert region. */\n ariaLabelledBy = input<string>();\n /** Extra class(es) merged onto the alert root. */\n styleClass = input<string>();\n\n /** Emitted when the alert is dismissed (close button or `life` expiry). */\n closed = output<void>();\n\n /** @ignore Hidden after a dismiss so the close button works standalone. */\n protected readonly dismissed = signal(false);\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_ALERT_DEFAULT_ICONS[this.level()];\n });\n\n /** @ignore Leading icon size follows the alert size (Figma). */\n protected readonly iconSize = computed(() => (this.size() === 'large' ? 'default' : 'md'));\n\n /** @ignore Dismiss icon size follows the alert size (Figma). */\n protected readonly closeIconSize = computed(() => (this.size() === 'large' ? 'md' : 'sm'));\n\n /** @ignore Alert has only a title (no text, no projected content). */\n protected readonly isTitleOnly = computed(() => !!this.title() && !this.text());\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-alert', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isTitleOnly()) c.push('_title-only');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n\n constructor() {\n // Auto-dismiss timer (browser only). setTimeout — not rAF — so it still\n // fires in a throttled/background tab. Cleared if destroyed first.\n afterNextRender(() => {\n const life = this.life();\n if (life > 0) {\n const id = setTimeout(() => this.dismiss(), life);\n this.destroyRef.onDestroy(() => clearTimeout(id));\n }\n });\n }\n\n /** @ignore */\n protected onClose(): void {\n this.dismiss();\n }\n\n /** @ignore Hide the alert and notify the parent. */\n private dismiss(): void {\n if (this.dismissed()) return;\n this.dismissed.set(true);\n this.closed.emit();\n }\n}\n","@if (!dismissed()) {\n <div\n [class]=\"classes()\"\n role=\"alert\"\n aria-atomic=\"true\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n >\n @if (iconName(); as name) {\n <span class=\"ui-alert-icon\">\n <ui-icon [name]=\"name\" [size]=\"iconSize()\" />\n </span>\n }\n\n <div class=\"ui-alert-content\">\n @if (title(); as t) {\n <span class=\"ui-alert-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-alert-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-alert-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose()\"\n >\n <ui-icon [name]=\"closeIcon()\" [size]=\"closeIconSize()\" />\n </button>\n }\n </div>\n}\n","/*\n * Public API Surface of ui-kit/ui-alert\n */\n\nexport * from './lib/ui-alert';\nexport * from './lib/ui-alert.types';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAKA;;;AAGG;AACI,MAAM,sBAAsB,GAAoC;AACrE,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,SAAS,EAAE,aAAa;AACxB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,OAAO;;;ACEhB;;;;;;;;;;;;;;;;;;;;;AAqBG;MAWU,OAAO,CAAA;AAkElB,IAAA,WAAA,GAAA;AAjEiB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;AAGhD,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;QAEtB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,SAAS;kFAAC;;QAEzC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,MAAM;qFAAC;;QAEpC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAc,SAAS;iFAAC;AACpC;;;AAGG;QACH,IAAA,CAAA,IAAI,GAAG,KAAK,CAAmB,IAAI;iFAAC;;QAEpC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAEvD,IAAA,CA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FAQL,OAAO,EAAA,UAAA,EAAA,CAAA;kBAVnB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,OAAA,EACX,CAAC,MAAM,CAAC,EAAA,IAAA,EAGX;AACJ,wBAAA,iBAAiB,EAAE,gCAAgC;AACnD,wBAAA,eAAe,EAAE,QAAQ;AAC1B,qBAAA,EAAA,QAAA,EAAA,44BAAA,EAAA,MAAA,EAAA,CAAA,m2HAAA,CAAA,EAAA;;;AE9CH;;AAEG;;ACFH;;AAEG;;;;"}
|
package/fesm2022/{4sh-ui-kit-ui-avatar-group.mjs → 4sh-ui-kit-informative-ui-avatar-group.mjs}
RENAMED
|
@@ -11,10 +11,10 @@ import { ViewEncapsulation, Component } from '@angular/core';
|
|
|
11
11
|
* `ui-avatar` host elements; all styling stays namespaced under `.ui-avatar-group`.
|
|
12
12
|
*/
|
|
13
13
|
class UiAvatarGroup {
|
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
15
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAvatarGroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.1", type: UiAvatarGroup, isStandalone: true, selector: "ui-avatar-group", host: { attributes: { "role": "group" }, classAttribute: "ui-avatar-group" }, ngImport: i0, template: '<ng-content />', isInline: true, styles: [".ui-avatar-group{--_overlap: var(--units-md);display:inline-flex;align-items:center}.ui-avatar-group ui-avatar{display:inline-flex;position:relative}.ui-avatar-group ui-avatar:not(:first-child){margin-left:calc(-1 * var(--_overlap))}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
16
16
|
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAvatarGroup, decorators: [{
|
|
18
18
|
type: Component,
|
|
19
19
|
args: [{ selector: 'ui-avatar-group', template: '<ng-content />', encapsulation: ViewEncapsulation.None, host: {
|
|
20
20
|
class: 'ui-avatar-group',
|
|
@@ -31,4 +31,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
export { UiAvatarGroup };
|
|
34
|
-
//# sourceMappingURL=4sh-ui-kit-ui-avatar-group.mjs.map
|
|
34
|
+
//# sourceMappingURL=4sh-ui-kit-informative-ui-avatar-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-informative-ui-avatar-group.mjs","sources":["../../../projects/ui-kit/informative/ui-avatar-group/src/lib/ui-avatar-group.ts","../../../projects/ui-kit/informative/ui-avatar-group/src/public-api.ts","../../../projects/ui-kit/informative/ui-avatar-group/src/4sh-ui-kit-informative-ui-avatar-group.ts"],"sourcesContent":["import { Component, ViewEncapsulation } from '@angular/core';\n\n/**\n * ui-avatar-group — stacks a set of `ui-avatar` instances with a slight overlap.\n *\n * Headless layout helper: it only arranges its projected children. Overflow\n * (\"+N\") is expressed by projecting a trailing label avatar, not computed here.\n *\n * Uses `ViewEncapsulation.None` so the overlap rule can reach the projected\n * `ui-avatar` host elements; all styling stays namespaced under `.ui-avatar-group`.\n */\n@Component({\n selector: 'ui-avatar-group',\n template: '<ng-content />',\n styleUrl: './ui-avatar-group.scss',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'ui-avatar-group',\n role: 'group',\n },\n})\nexport class UiAvatarGroup {}\n","/*\n * Public API Surface of ui-kit/ui-avatar-group\n */\n\nexport * from './lib/ui-avatar-group';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAEA;;;;;;;;AAQG;MAWU,aAAa,CAAA;8GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAb,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,aAAa,yJARd,gBAAgB,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,6OAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAQf,aAAa,EAAA,UAAA,EAAA,CAAA;kBAVzB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,YACjB,gBAAgB,EAAA,aAAA,EAEX,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B;AACJ,wBAAA,KAAK,EAAE,iBAAiB;AACxB,wBAAA,IAAI,EAAE,OAAO;AACd,qBAAA,EAAA,MAAA,EAAA,CAAA,6OAAA,CAAA,EAAA;;;ACnBH;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, output, signal, computed, effect, isDevMode, Component } from '@angular/core';
|
|
3
|
-
import { UiIcon } from '@4sh/ui-kit/ui-icon';
|
|
3
|
+
import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* ui-avatar — represents a user or entity with an image, initials or an icon.
|
|
@@ -102,10 +102,10 @@ class UiAvatar {
|
|
|
102
102
|
this.imageFailed.set(true);
|
|
103
103
|
this.imageError.emit(event);
|
|
104
104
|
}
|
|
105
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
106
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
105
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAvatar, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
106
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiAvatar, isStandalone: true, selector: "ui-avatar", inputs: { image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { imageError: "imageError" }, ngImport: i0, template: "<span\n [class]=\"classes()\"\n [attr.role]=\"mode() === 'image' ? null : accessibleName() ? 'img' : null\"\n [attr.aria-label]=\"mode() === 'image' ? null : accessibleName()\"\n [attr.aria-hidden]=\"isDecorative() ? 'true' : null\"\n>\n @switch (mode()) {\n @case ('image') {\n <img\n class=\"ui-avatar-image\"\n [src]=\"image()\"\n [attr.alt]=\"alt() ?? ariaLabel() ?? ''\"\n (error)=\"onImageError($event)\"\n />\n }\n @case ('label') {\n <span class=\"ui-avatar-label\" aria-hidden=\"true\">{{ label() }}</span>\n }\n @default {\n <ui-icon class=\"ui-avatar-icon\" [name]=\"icon()\" [size]=\"iconSize()\" />\n }\n }\n\n <span class=\"ui-avatar-badge\">\n <ng-content select=\"[avatarBadge]\" />\n </span>\n</span>\n", styles: [".ui-avatar{--_radius: var(--radius-full);position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;border:var(--stroke-default) solid var(--global-border-default);border-radius:var(--_radius);background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);font-family:var(--fontfamily-title);font-weight:var(--weight-bold);line-height:1;-webkit-user-select:none;user-select:none;width:3.5rem;height:3.5rem;font-size:var(--size-typography-title-default)}.ui-avatar._square{--_radius: var(--radius-md)}.ui-avatar-image{width:100%;height:100%;border-radius:inherit;object-fit:cover}.ui-avatar-label{display:inline-block}.ui-avatar-icon{line-height:0}.ui-avatar-badge{position:absolute;top:0;right:0;display:inline-flex;transform:translate(25%,-25%);z-index:1}.ui-avatar._tiny{width:2.125rem;height:2.125rem;font-size:var(--size-typography-title-sm)}.ui-avatar._small{width:2.625rem;height:2.625rem;font-size:var(--size-typography-title-md)}.ui-avatar._large{width:4rem;height:4rem;font-size:var(--size-typography-title-xl)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
107
107
|
}
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAvatar, decorators: [{
|
|
109
109
|
type: Component,
|
|
110
110
|
args: [{ selector: 'ui-avatar', imports: [UiIcon], template: "<span\n [class]=\"classes()\"\n [attr.role]=\"mode() === 'image' ? null : accessibleName() ? 'img' : null\"\n [attr.aria-label]=\"mode() === 'image' ? null : accessibleName()\"\n [attr.aria-hidden]=\"isDecorative() ? 'true' : null\"\n>\n @switch (mode()) {\n @case ('image') {\n <img\n class=\"ui-avatar-image\"\n [src]=\"image()\"\n [attr.alt]=\"alt() ?? ariaLabel() ?? ''\"\n (error)=\"onImageError($event)\"\n />\n }\n @case ('label') {\n <span class=\"ui-avatar-label\" aria-hidden=\"true\">{{ label() }}</span>\n }\n @default {\n <ui-icon class=\"ui-avatar-icon\" [name]=\"icon()\" [size]=\"iconSize()\" />\n }\n }\n\n <span class=\"ui-avatar-badge\">\n <ng-content select=\"[avatarBadge]\" />\n </span>\n</span>\n", styles: [".ui-avatar{--_radius: var(--radius-full);position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;border:var(--stroke-default) solid var(--global-border-default);border-radius:var(--_radius);background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);font-family:var(--fontfamily-title);font-weight:var(--weight-bold);line-height:1;-webkit-user-select:none;user-select:none;width:3.5rem;height:3.5rem;font-size:var(--size-typography-title-default)}.ui-avatar._square{--_radius: var(--radius-md)}.ui-avatar-image{width:100%;height:100%;border-radius:inherit;object-fit:cover}.ui-avatar-label{display:inline-block}.ui-avatar-icon{line-height:0}.ui-avatar-badge{position:absolute;top:0;right:0;display:inline-flex;transform:translate(25%,-25%);z-index:1}.ui-avatar._tiny{width:2.125rem;height:2.125rem;font-size:var(--size-typography-title-sm)}.ui-avatar._small{width:2.625rem;height:2.625rem;font-size:var(--size-typography-title-md)}.ui-avatar._large{width:4rem;height:4rem;font-size:var(--size-typography-title-xl)}\n"] }]
|
|
111
111
|
}], ctorParameters: () => [], propDecorators: { image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], imageError: [{ type: i0.Output, args: ["imageError"] }] } });
|
|
@@ -119,4 +119,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
121
|
export { UiAvatar };
|
|
122
|
-
//# sourceMappingURL=4sh-ui-kit-ui-avatar.mjs.map
|
|
122
|
+
//# sourceMappingURL=4sh-ui-kit-informative-ui-avatar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-informative-ui-avatar.mjs","sources":["../../../projects/ui-kit/informative/ui-avatar/src/lib/ui-avatar.ts","../../../projects/ui-kit/informative/ui-avatar/src/lib/ui-avatar.html","../../../projects/ui-kit/informative/ui-avatar/src/public-api.ts","../../../projects/ui-kit/informative/ui-avatar/src/4sh-ui-kit-informative-ui-avatar.ts"],"sourcesContent":["import { Component, computed, effect, input, isDevMode, output, signal } from '@angular/core';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\n\nexport type AvatarSize = 'tiny' | 'small' | 'default' | 'large';\nexport type AvatarShape = 'circle' | 'square';\n\n/** Rendering mode resolved from the provided inputs. */\nexport type AvatarMode = 'image' | 'label' | 'icon';\n\n/**\n * ui-avatar — represents a user or entity with an image, initials or an icon.\n *\n * The visual mode is inferred from the inputs (image > label > icon), mirroring the\n * Figma `Type` variant without a redundant prop. A projected `[avatarBadge]` slot\n * overlays a status indicator (typically a `ui-badge`) on the top-right corner.\n *\n * Accessible: exposes an accessible name via `alt` (image) or `ariaLabel`; a bare icon\n * avatar with no name is treated as decorative (aria-hidden).\n */\n@Component({\n selector: 'ui-avatar',\n imports: [UiIcon],\n templateUrl: './ui-avatar.html',\n styleUrl: './ui-avatar.scss',\n})\nexport class UiAvatar {\n /** Image source (image mode). Highest priority. */\n image = input<string>();\n /** Alternative text for the image (accessible name in image mode). */\n alt = input<string>();\n /** Short text / initials (label mode). Used when no image is set. */\n label = input<string>();\n /** FontAwesome icon name (icon mode). Fallback when neither image nor label is set. */\n icon = input<string>('user');\n /** Avatar size. */\n size = input<AvatarSize>('default');\n /** Avatar shape. */\n shape = input<AvatarShape>('circle');\n /** Explicit accessible name (recommended for image and icon modes). */\n ariaLabel = input<string>();\n\n /** Emitted when the image fails to load (the avatar then falls back to label/icon). */\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: an image avatar should carry an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.mode() === 'image' && !this.alt() && !this.ariaLabel()) {\n console.warn(\n '[ui-avatar] Image avatar has no accessible name: provide `alt` (or `ariaLabel`).',\n );\n }\n });\n }\n }\n\n /** @ignore Rendering mode resolved from the inputs (image > label > icon). */\n protected readonly mode = computed<AvatarMode>(() => {\n if (this.image() && !this.imageFailed()) return 'image';\n if (this.label()) return 'label';\n return 'icon';\n });\n\n /** @ignore Icon size mapped from the avatar size. */\n protected readonly iconSize = computed<UiIconSize>(() => {\n switch (this.size()) {\n case 'small':\n return 'md';\n case 'large':\n return 'lg';\n default:\n return 'default';\n }\n });\n\n /** @ignore Accessible name for the label/icon modes (image mode uses `alt`). */\n protected readonly accessibleName = computed<string | null>(() => {\n if (this.ariaLabel()) return this.ariaLabel()!;\n if (this.mode() === 'label') return this.label() ?? null;\n return null;\n });\n\n /** @ignore Icon avatar with no accessible name → purely decorative. */\n protected readonly isDecorative = computed(\n () => this.mode() === 'icon' && !this.accessibleName(),\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-avatar', `_${this.mode()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.shape() !== 'circle') c.push(`_${this.shape()}`);\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","<span\n [class]=\"classes()\"\n [attr.role]=\"mode() === 'image' ? null : accessibleName() ? 'img' : null\"\n [attr.aria-label]=\"mode() === 'image' ? null : accessibleName()\"\n [attr.aria-hidden]=\"isDecorative() ? 'true' : null\"\n>\n @switch (mode()) {\n @case ('image') {\n <img\n class=\"ui-avatar-image\"\n [src]=\"image()\"\n [attr.alt]=\"alt() ?? ariaLabel() ?? ''\"\n (error)=\"onImageError($event)\"\n />\n }\n @case ('label') {\n <span class=\"ui-avatar-label\" aria-hidden=\"true\">{{ label() }}</span>\n }\n @default {\n <ui-icon class=\"ui-avatar-icon\" [name]=\"icon()\" [size]=\"iconSize()\" />\n }\n }\n\n <span class=\"ui-avatar-badge\">\n <ng-content select=\"[avatarBadge]\" />\n </span>\n</span>\n","/*\n * Public API Surface of ui-kit/ui-avatar\n */\n\nexport * from './lib/ui-avatar';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AASA;;;;;;;;;AASG;MAOU,QAAQ,CAAA;AAsBnB,IAAA,WAAA,GAAA;;AApBA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK;2FAAU;;AAErB,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAEvB,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,MAAM;iFAAC;;QAE5B,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,SAAS;iFAAC;;QAEnC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAc,QAAQ;kFAAC;;AAEpC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;QAG3B,IAAA,CAAA,UAAU,GAAG,MAAM,EAAS;;QAGX,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,KAAK;wFAAC;;AAsBzB,QAAA,IAAA,CAAA,IAAI,GAAG,QAAQ,CAAa,MAAK;YAClD,IAAI,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;AAAE,gBAAA,OAAO,OAAO;Y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;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, computed, isDevMode, effect, Component } from '@angular/core';
|
|
3
|
-
import { UiIcon } from '@4sh/ui-kit/ui-icon';
|
|
3
|
+
import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* ui-badge — small status / count indicator.
|
|
@@ -75,10 +75,10 @@ class UiBadge {
|
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
79
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
78
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiBadge, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
79
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiBadge, isStandalone: true, selector: "ui-badge", inputs: { value: { classPropertyName: "value", publicName: "value", 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 }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span [class]=\"classes()\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (icon(); as name) {\n <ui-icon class=\"ui-badge-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasText()) {\n <span class=\"ui-badge-label\">{{ value() }}</span>\n }\n</span>\n", styles: [".ui-badge{display:inline-flex;align-items:center;justify-content:center;gap:var(--units-xs);box-sizing:border-box;border:var(--stroke-sm) solid transparent;border-radius:var(--radius-full);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);line-height:1;white-space:nowrap;height:1.75rem;min-width:1.75rem;padding:0 var(--units-md);font-size:var(--size-typography-text-default)}.ui-badge-icon{line-height:0}.ui-badge-label{display:inline-block}.ui-badge._small{height:1.375rem;min-width:1.375rem;padding:0 var(--units-md);font-size:var(--size-typography-text-md)}.ui-badge._large{height:2rem;min-width:2rem;padding:0 var(--units-lg);font-size:var(--size-typography-text-lg)}.ui-badge._single{padding:0}.ui-badge._dot{width:.625rem;height:.625rem;min-width:0;padding:0}.ui-badge._small._dot{width:.5rem;height:.5rem;min-width:0;padding:0}.ui-badge._large._dot{width:.75rem;height:.75rem;min-width:0;padding:0}.ui-badge._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-badge._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-badge._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-badge._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-badge._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-badge._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-badge._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-badge._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-badge._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-badge._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
80
80
|
}
|
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiBadge, decorators: [{
|
|
82
82
|
type: Component,
|
|
83
83
|
args: [{ selector: 'ui-badge', imports: [UiIcon], template: "<span [class]=\"classes()\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (icon(); as name) {\n <ui-icon class=\"ui-badge-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasText()) {\n <span class=\"ui-badge-label\">{{ value() }}</span>\n }\n</span>\n", styles: [".ui-badge{display:inline-flex;align-items:center;justify-content:center;gap:var(--units-xs);box-sizing:border-box;border:var(--stroke-sm) solid transparent;border-radius:var(--radius-full);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);line-height:1;white-space:nowrap;height:1.75rem;min-width:1.75rem;padding:0 var(--units-md);font-size:var(--size-typography-text-default)}.ui-badge-icon{line-height:0}.ui-badge-label{display:inline-block}.ui-badge._small{height:1.375rem;min-width:1.375rem;padding:0 var(--units-md);font-size:var(--size-typography-text-md)}.ui-badge._large{height:2rem;min-width:2rem;padding:0 var(--units-lg);font-size:var(--size-typography-text-lg)}.ui-badge._single{padding:0}.ui-badge._dot{width:.625rem;height:.625rem;min-width:0;padding:0}.ui-badge._small._dot{width:.5rem;height:.5rem;min-width:0;padding:0}.ui-badge._large._dot{width:.75rem;height:.75rem;min-width:0;padding:0}.ui-badge._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-badge._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-badge._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-badge._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-badge._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-badge._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-badge._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-badge._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-badge._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-badge._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"] }]
|
|
84
84
|
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], subLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "subLevel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
@@ -92,4 +92,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
92
92
|
*/
|
|
93
93
|
|
|
94
94
|
export { UiBadge };
|
|
95
|
-
//# sourceMappingURL=4sh-ui-kit-ui-badge.mjs.map
|
|
95
|
+
//# sourceMappingURL=4sh-ui-kit-informative-ui-badge.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-informative-ui-badge.mjs","sources":["../../../projects/ui-kit/informative/ui-badge/src/lib/ui-badge.ts","../../../projects/ui-kit/informative/ui-badge/src/lib/ui-badge.html","../../../projects/ui-kit/informative/ui-badge/src/public-api.ts","../../../projects/ui-kit/informative/ui-badge/src/4sh-ui-kit-informative-ui-badge.ts"],"sourcesContent":["import { 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 BadgeSize = 'default' | 'small' | 'large';\n\n/**\n * ui-badge — small status / count indicator.\n */\n@Component({\n selector: 'ui-badge',\n imports: [UiIcon],\n templateUrl: './ui-badge.html',\n styleUrl: './ui-badge.scss',\n})\nexport class UiBadge {\n value = input<string | number>();\n level = input<UiFeedbackLevel>('default');\n subLevel = input<UiSubLevel>('high');\n size = input<BadgeSize>('default');\n icon = input<string>();\n ariaLabel = input<string>();\n\n constructor() {\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.ariaLabel()) {\n console.warn('[ui-badge] Icon-only badge has no accessible name: provide `ariaLabel`.');\n }\n });\n }\n }\n\n /** @ignore There is text here */\n protected readonly hasText = computed(() => {\n const v = this.value();\n return v !== undefined && v !== null && String(v).length > 0;\n });\n\n /** @ignore There is an icon. */\n protected readonly hasIcon = computed(() => !!this.icon());\n\n /** @ignore Icon only (no text). */\n protected readonly isIconOnly = computed(() => this.hasIcon() && !this.hasText());\n\n /** @ignore Dot: no text and no icon. */\n protected readonly isDot = computed(() => !this.hasIcon() && !this.hasText());\n\n /**\n * @ignore Single glyph: a lone icon, or a single character (counter \"1\", symbol \"★\").\n */\n protected readonly isSingle = computed(() => {\n if (this.hasIcon()) return !this.hasText();\n return Array.from(String(this.value() ?? '').trim()).length === 1;\n });\n\n /** @ignore Bullet: Neither text nor icon. */\n protected readonly iconSize = computed<UiIconSize>(() => {\n switch (this.size()) {\n case 'small':\n return 'sm';\n case 'large':\n return 'lg';\n default:\n return 'md';\n }\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-badge', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isDot()) c.push('_dot');\n else if (this.isSingle()) c.push('_single');\n return c.join(' ');\n });\n}\n","<span [class]=\"classes()\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (icon(); as name) {\n <ui-icon class=\"ui-badge-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasText()) {\n <span class=\"ui-badge-label\">{{ value() }}</span>\n }\n</span>\n","/*\n * Public API Surface of ui-kit/ui-badge\n */\n\nexport * from './lib/ui-badge';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAMA;;AAEG;MAOU,OAAO,CAAA;AAQlB,IAAA,WAAA,GAAA;AAPA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAmB;QAChC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,SAAS;kFAAC;QACzC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,MAAM;qFAAC;QACpC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAY,SAAS;iFAAC;AAClC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;AACtB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAaR,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAC,MAAK;AACzC,YAAA,MAAM,CA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AAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECfpB,qRAQA,EAAA,MAAA,EAAA,CAAA,q2FAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDGY,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,OAAO,EAAA,UAAA,EAAA,CAAA;kBANnB,SAAS;+BACE,UAAU,EAAA,OAAA,EACX,CAAC,MAAM,CAAC,EAAA,QAAA,EAAA,qRAAA,EAAA,MAAA,EAAA,CAAA,q2FAAA,CAAA,EAAA;;;AEXnB;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, booleanAttribute, model, output, signal, computed, effect, isDevMode, Component } from '@angular/core';
|
|
3
3
|
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
-
import { UiIcon } from '@4sh/ui-kit/ui-icon';
|
|
4
|
+
import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* ui-chip — compact, interactive entity token.
|
|
@@ -185,10 +185,10 @@ class UiChip {
|
|
|
185
185
|
this.selected.set(!this.selected());
|
|
186
186
|
this.chipClick.emit(event);
|
|
187
187
|
}
|
|
188
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
189
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiChip, isStandalone: true, selector: "ui-chip", inputs: { label: { classPropertyName: "label", publicName: "label", 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 }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: true, isRequired: false, transformFunction: null }, removeIcon: { classPropertyName: "removeIcon", publicName: "removeIcon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, selectedIcon: { classPropertyName: "selectedIcon", publicName: "selectedIcon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, removeAriaLabel: { classPropertyName: "removeAriaLabel", publicName: "removeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, removeTabindex: { classPropertyName: "removeTabindex", publicName: "removeTabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange", remove: "remove", chipClick: "chipClick", imageError: "imageError" }, ngImport: i0, template: "@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.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", styles: [".ui-chip{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;border:var(--stroke-sm) solid transparent;border-radius:var(--radius-full);font-family:var(--fontfamily-base);font-weight:var(--weight-regular);line-height:1;white-space:nowrap;height:2rem;min-width:2rem;gap:var(--units-xs);padding:0 var(--units-sm);font-size:var(--size-typography-text-default)}.ui-chip .ui-chip-image{width:1.5rem;height:1.5rem}.ui-chip-icon{line-height:0;flex:none}.ui-chip-image{flex:none;margin-inline-start:calc(-1 * var(--units-2xs));border-radius:var(--radius-full);object-fit:cover}.ui-chip-label{display:inline-flex;align-items:center;height:100%;overflow:hidden;text-overflow:ellipsis}.ui-chip-remove{flex:none;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:var(--units-2xs);border:0;border-radius:var(--radius-full);background:transparent;color:inherit;line-height:0;cursor:pointer;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-chip-remove:disabled{cursor:not-allowed}.ui-chip._removable{padding-inline-end:var(--units-2xs)!important}.ui-chip._selectable{appearance:none;cursor:pointer;text-align:center;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),border-color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-chip._selectable:disabled{cursor:not-allowed}.ui-chip._square{border-radius:var(--radius-sm)}.ui-chip._square .ui-chip-image{border-radius:var(--radius-xs)}.ui-chip._disabled{cursor:not-allowed}.ui-chip._small{height:1.5rem;min-width:1.5rem;gap:var(--units-2xs);padding:0 var(--units-sm);font-size:var(--size-typography-text-md)}.ui-chip._small .ui-chip-image{width:1.125rem;height:1.125rem}.ui-chip._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-chip._default._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color:var(--informative-defaulthigh-content-hover)}.ui-chip._default._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-defaulthigh-content-default)}.ui-chip._default._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color:var(--informative-defaulthigh-content-hover)}.ui-chip._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-chip._default._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-defaultlow-surface-hover);color:var(--informative-defaultlow-content-hover)}.ui-chip._default._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-defaultlow-content-default)}.ui-chip._default._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-defaultlow-surface-hover);color:var(--informative-defaultlow-content-hover)}.ui-chip._default._selected{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-chip._default._selected._selectable:hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color:var(--informative-defaulthigh-content-hover)}.ui-chip._default._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-defaulthigh-surface-default)}.ui-chip._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-chip._highlight._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color:var(--informative-highlighthigh-content-hover)}.ui-chip._highlight._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-highlighthigh-content-default)}.ui-chip._highlight._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color:var(--informative-highlighthigh-content-hover)}.ui-chip._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-chip._highlight._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-highlightlow-surface-hover);color:var(--informative-highlightlow-content-hover)}.ui-chip._highlight._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-highlightlow-content-default)}.ui-chip._highlight._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-highlightlow-surface-hover);color:var(--informative-highlightlow-content-hover)}.ui-chip._highlight._selected{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-chip._highlight._selected._selectable:hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color:var(--informative-highlighthigh-content-hover)}.ui-chip._highlight._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-highlighthigh-surface-default)}.ui-chip._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-chip._success._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color:var(--informative-successhigh-content-hover)}.ui-chip._success._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-successhigh-content-default)}.ui-chip._success._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color:var(--informative-successhigh-content-hover)}.ui-chip._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-chip._success._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-successlow-surface-hover);color:var(--informative-successlow-content-hover)}.ui-chip._success._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-successlow-content-default)}.ui-chip._success._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-successlow-surface-hover);color:var(--informative-successlow-content-hover)}.ui-chip._success._selected{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-chip._success._selected._selectable:hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color:var(--informative-successhigh-content-hover)}.ui-chip._success._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-successhigh-surface-default)}.ui-chip._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-chip._warning._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color:var(--informative-warninghigh-content-hover)}.ui-chip._warning._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-warninghigh-content-default)}.ui-chip._warning._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color:var(--informative-warninghigh-content-hover)}.ui-chip._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-chip._warning._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-warninglow-surface-hover);color:var(--informative-warninglow-content-hover)}.ui-chip._warning._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-warninglow-content-default)}.ui-chip._warning._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-warninglow-surface-hover);color:var(--informative-warninglow-content-hover)}.ui-chip._warning._selected{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-chip._warning._selected._selectable:hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color:var(--informative-warninghigh-content-hover)}.ui-chip._warning._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-warninghigh-surface-default)}.ui-chip._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-chip._error._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color:var(--informative-errorhigh-content-hover)}.ui-chip._error._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-errorhigh-content-default)}.ui-chip._error._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color:var(--informative-errorhigh-content-hover)}.ui-chip._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}.ui-chip._error._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-errorlow-surface-hover);color:var(--informative-errorlow-content-hover)}.ui-chip._error._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-errorlow-content-default)}.ui-chip._error._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-errorlow-surface-hover);color:var(--informative-errorlow-content-hover)}.ui-chip._error._selected{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-chip._error._selected._selectable:hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color:var(--informative-errorhigh-content-hover)}.ui-chip._error._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-errorhigh-surface-default)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
188
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiChip, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
189
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiChip, isStandalone: true, selector: "ui-chip", inputs: { label: { classPropertyName: "label", publicName: "label", 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 }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: true, isRequired: false, transformFunction: null }, removeIcon: { classPropertyName: "removeIcon", publicName: "removeIcon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, selectedIcon: { classPropertyName: "selectedIcon", publicName: "selectedIcon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, removeAriaLabel: { classPropertyName: "removeAriaLabel", publicName: "removeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, removeTabindex: { classPropertyName: "removeTabindex", publicName: "removeTabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange", remove: "remove", chipClick: "chipClick", imageError: "imageError" }, ngImport: i0, template: "@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.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", styles: [".ui-chip{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;border:var(--stroke-sm) solid transparent;border-radius:var(--radius-full);font-family:var(--fontfamily-base);font-weight:var(--weight-regular);line-height:1;white-space:nowrap;height:2rem;min-width:2rem;gap:var(--units-xs);padding:0 var(--units-sm);font-size:var(--size-typography-text-default)}.ui-chip .ui-chip-image{width:1.5rem;height:1.5rem}.ui-chip-icon{line-height:0;flex:none}.ui-chip-image{flex:none;margin-inline-start:calc(-1 * var(--units-2xs));border-radius:var(--radius-full);object-fit:cover}.ui-chip-label{display:inline-flex;align-items:center;height:100%;overflow:hidden;text-overflow:ellipsis}.ui-chip-remove{flex:none;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:var(--units-2xs);border:0;border-radius:var(--radius-full);background:transparent;color:inherit;line-height:0;cursor:pointer;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-chip-remove:disabled{cursor:not-allowed}.ui-chip._removable{padding-inline-end:var(--units-2xs)!important}.ui-chip._selectable{appearance:none;cursor:pointer;text-align:center;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),border-color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-chip._selectable:disabled{cursor:not-allowed}.ui-chip._square{border-radius:var(--radius-sm)}.ui-chip._square .ui-chip-image{border-radius:var(--radius-xs)}.ui-chip._disabled{cursor:not-allowed}.ui-chip._small{height:1.5rem;min-width:1.5rem;gap:var(--units-2xs);padding:0 var(--units-sm);font-size:var(--size-typography-text-md)}.ui-chip._small .ui-chip-image{width:1.125rem;height:1.125rem}.ui-chip._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-chip._default._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color:var(--informative-defaulthigh-content-hover)}.ui-chip._default._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-defaulthigh-content-default)}.ui-chip._default._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color:var(--informative-defaulthigh-content-hover)}.ui-chip._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-chip._default._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-defaultlow-surface-hover);color:var(--informative-defaultlow-content-hover)}.ui-chip._default._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-defaultlow-content-default)}.ui-chip._default._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-defaultlow-surface-hover);color:var(--informative-defaultlow-content-hover)}.ui-chip._default._selected{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-chip._default._selected._selectable:hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color:var(--informative-defaulthigh-content-hover)}.ui-chip._default._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-defaulthigh-surface-default)}.ui-chip._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-chip._highlight._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color:var(--informative-highlighthigh-content-hover)}.ui-chip._highlight._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-highlighthigh-content-default)}.ui-chip._highlight._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color:var(--informative-highlighthigh-content-hover)}.ui-chip._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-chip._highlight._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-highlightlow-surface-hover);color:var(--informative-highlightlow-content-hover)}.ui-chip._highlight._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-highlightlow-content-default)}.ui-chip._highlight._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-highlightlow-surface-hover);color:var(--informative-highlightlow-content-hover)}.ui-chip._highlight._selected{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-chip._highlight._selected._selectable:hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color:var(--informative-highlighthigh-content-hover)}.ui-chip._highlight._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-highlighthigh-surface-default)}.ui-chip._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-chip._success._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color:var(--informative-successhigh-content-hover)}.ui-chip._success._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-successhigh-content-default)}.ui-chip._success._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color:var(--informative-successhigh-content-hover)}.ui-chip._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-chip._success._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-successlow-surface-hover);color:var(--informative-successlow-content-hover)}.ui-chip._success._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-successlow-content-default)}.ui-chip._success._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-successlow-surface-hover);color:var(--informative-successlow-content-hover)}.ui-chip._success._selected{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-chip._success._selected._selectable:hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color:var(--informative-successhigh-content-hover)}.ui-chip._success._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-successhigh-surface-default)}.ui-chip._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-chip._warning._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color:var(--informative-warninghigh-content-hover)}.ui-chip._warning._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-warninghigh-content-default)}.ui-chip._warning._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color:var(--informative-warninghigh-content-hover)}.ui-chip._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-chip._warning._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-warninglow-surface-hover);color:var(--informative-warninglow-content-hover)}.ui-chip._warning._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-warninglow-content-default)}.ui-chip._warning._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-warninglow-surface-hover);color:var(--informative-warninglow-content-hover)}.ui-chip._warning._selected{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-chip._warning._selected._selectable:hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color:var(--informative-warninghigh-content-hover)}.ui-chip._warning._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-warninghigh-surface-default)}.ui-chip._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-chip._error._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color:var(--informative-errorhigh-content-hover)}.ui-chip._error._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-errorhigh-content-default)}.ui-chip._error._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color:var(--informative-errorhigh-content-hover)}.ui-chip._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}.ui-chip._error._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-errorlow-surface-hover);color:var(--informative-errorlow-content-hover)}.ui-chip._error._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-errorlow-content-default)}.ui-chip._error._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-errorlow-surface-hover);color:var(--informative-errorlow-content-hover)}.ui-chip._error._selected{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-chip._error._selected._selectable:hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color:var(--informative-errorhigh-content-hover)}.ui-chip._error._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-errorhigh-surface-default)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
190
190
|
}
|
|
191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiChip, decorators: [{
|
|
192
192
|
type: Component,
|
|
193
193
|
args: [{ selector: 'ui-chip', imports: [UiIcon, NgTemplateOutlet], template: "@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.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", styles: [".ui-chip{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;border:var(--stroke-sm) solid transparent;border-radius:var(--radius-full);font-family:var(--fontfamily-base);font-weight:var(--weight-regular);line-height:1;white-space:nowrap;height:2rem;min-width:2rem;gap:var(--units-xs);padding:0 var(--units-sm);font-size:var(--size-typography-text-default)}.ui-chip .ui-chip-image{width:1.5rem;height:1.5rem}.ui-chip-icon{line-height:0;flex:none}.ui-chip-image{flex:none;margin-inline-start:calc(-1 * var(--units-2xs));border-radius:var(--radius-full);object-fit:cover}.ui-chip-label{display:inline-flex;align-items:center;height:100%;overflow:hidden;text-overflow:ellipsis}.ui-chip-remove{flex:none;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:var(--units-2xs);border:0;border-radius:var(--radius-full);background:transparent;color:inherit;line-height:0;cursor:pointer;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-chip-remove:disabled{cursor:not-allowed}.ui-chip._removable{padding-inline-end:var(--units-2xs)!important}.ui-chip._selectable{appearance:none;cursor:pointer;text-align:center;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),border-color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-chip._selectable:disabled{cursor:not-allowed}.ui-chip._square{border-radius:var(--radius-sm)}.ui-chip._square .ui-chip-image{border-radius:var(--radius-xs)}.ui-chip._disabled{cursor:not-allowed}.ui-chip._small{height:1.5rem;min-width:1.5rem;gap:var(--units-2xs);padding:0 var(--units-sm);font-size:var(--size-typography-text-md)}.ui-chip._small .ui-chip-image{width:1.125rem;height:1.125rem}.ui-chip._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-chip._default._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color:var(--informative-defaulthigh-content-hover)}.ui-chip._default._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-defaulthigh-content-default)}.ui-chip._default._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color:var(--informative-defaulthigh-content-hover)}.ui-chip._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-chip._default._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-defaultlow-surface-hover);color:var(--informative-defaultlow-content-hover)}.ui-chip._default._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-defaultlow-content-default)}.ui-chip._default._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-defaultlow-surface-hover);color:var(--informative-defaultlow-content-hover)}.ui-chip._default._selected{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-chip._default._selected._selectable:hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color:var(--informative-defaulthigh-content-hover)}.ui-chip._default._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-defaulthigh-surface-default)}.ui-chip._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-chip._highlight._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color:var(--informative-highlighthigh-content-hover)}.ui-chip._highlight._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-highlighthigh-content-default)}.ui-chip._highlight._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color:var(--informative-highlighthigh-content-hover)}.ui-chip._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-chip._highlight._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-highlightlow-surface-hover);color:var(--informative-highlightlow-content-hover)}.ui-chip._highlight._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-highlightlow-content-default)}.ui-chip._highlight._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-highlightlow-surface-hover);color:var(--informative-highlightlow-content-hover)}.ui-chip._highlight._selected{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-chip._highlight._selected._selectable:hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color:var(--informative-highlighthigh-content-hover)}.ui-chip._highlight._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-highlighthigh-surface-default)}.ui-chip._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-chip._success._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color:var(--informative-successhigh-content-hover)}.ui-chip._success._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-successhigh-content-default)}.ui-chip._success._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color:var(--informative-successhigh-content-hover)}.ui-chip._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-chip._success._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-successlow-surface-hover);color:var(--informative-successlow-content-hover)}.ui-chip._success._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-successlow-content-default)}.ui-chip._success._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-successlow-surface-hover);color:var(--informative-successlow-content-hover)}.ui-chip._success._selected{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-chip._success._selected._selectable:hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color:var(--informative-successhigh-content-hover)}.ui-chip._success._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-successhigh-surface-default)}.ui-chip._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-chip._warning._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color:var(--informative-warninghigh-content-hover)}.ui-chip._warning._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-warninghigh-content-default)}.ui-chip._warning._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color:var(--informative-warninghigh-content-hover)}.ui-chip._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-chip._warning._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-warninglow-surface-hover);color:var(--informative-warninglow-content-hover)}.ui-chip._warning._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-warninglow-content-default)}.ui-chip._warning._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-warninglow-surface-hover);color:var(--informative-warninglow-content-hover)}.ui-chip._warning._selected{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-chip._warning._selected._selectable:hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color:var(--informative-warninghigh-content-hover)}.ui-chip._warning._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-warninghigh-surface-default)}.ui-chip._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-chip._error._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color:var(--informative-errorhigh-content-hover)}.ui-chip._error._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-errorhigh-content-default)}.ui-chip._error._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color:var(--informative-errorhigh-content-hover)}.ui-chip._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}.ui-chip._error._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-errorlow-surface-hover);color:var(--informative-errorlow-content-hover)}.ui-chip._error._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-errorlow-content-default)}.ui-chip._error._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-errorlow-surface-hover);color:var(--informative-errorlow-content-hover)}.ui-chip._error._selected{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-chip._error._selected._selectable:hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color:var(--informative-errorhigh-content-hover)}.ui-chip._error._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--informative-errorhigh-surface-default)}\n"] }]
|
|
194
194
|
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], subLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "subLevel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], removable: [{ type: i0.Input, args: [{ isSignal: true, alias: "removable", required: false }] }], removeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeIcon", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }], selectedIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIcon", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], removeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeAriaLabel", required: false }] }], removeTabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeTabindex", required: false }] }], remove: [{ type: i0.Output, args: ["remove"] }], chipClick: [{ type: i0.Output, args: ["chipClick"] }], imageError: [{ type: i0.Output, args: ["imageError"] }] } });
|
|
@@ -202,4 +202,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
202
202
|
*/
|
|
203
203
|
|
|
204
204
|
export { UiChip };
|
|
205
|
-
//# sourceMappingURL=4sh-ui-kit-ui-chip.mjs.map
|
|
205
|
+
//# sourceMappingURL=4sh-ui-kit-informative-ui-chip.mjs.map
|