@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-forms-ui-input-number.mjs","sources":["../../../projects/ui-kit/forms/ui-input-number/src/lib/ui-input-number.ts","../../../projects/ui-kit/forms/ui-input-number/src/lib/ui-input-number.html","../../../projects/ui-kit/forms/ui-input-number/src/public-api.ts","../../../projects/ui-kit/forms/ui-input-number/src/4sh-ui-kit-forms-ui-input-number.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n ElementRef,\n forwardRef,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFormField } from '@4sh/ui-kit/forms';\nimport { UiField } from '@4sh/ui-kit/forms/ui-field';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\n/**\n * ui-input-number — headless numeric field (`ui-field` shell).\n *\n * Model value = `number | null`. Lenient input: the text is **not** reformatted\n * while typing (no caret jump) — the field shows an editable form on focus, and\n * the **rich format** (thousands grouping, currency, decimals via\n * `Intl.NumberFormat`) is applied **on blur**. `min`/`max`/`step`, ± spinner,\n * ↑/↓ arrow keys, clamp on blur.\n *\n * Formatting is driven by `locale`/`currency`/`useGrouping`/`*FractionDigits`;\n * for a very specific case, override the protected `format()` method.\n */\n@Component({\n selector: 'ui-input-number',\n imports: [UiField, UiIcon],\n templateUrl: './ui-input-number.html',\n styleUrl: './ui-input-number.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputNumber), multi: true },\n ],\n})\nexport class UiInputNumber extends BaseFormField<number | null> {\n /** Native placeholder. */\n placeholder = input<string>();\n /** Minimum value (clamp on blur + disables \"−\" at the bound). */\n min = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Maximum value (clamp on blur + disables \"+\" at the bound). */\n max = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Increment step (spinner + arrow keys). */\n step = input<number, unknown>(1, { transform: numberAttribute });\n /** Allow decimals. */\n allowDecimals = input(true, { transform: booleanAttribute });\n /** Suffix unit (e.g. \"kg\"). Ignored when `currency` is set. */\n unit = input<string>();\n /** Show the ± spinner. */\n showButtons = input(true, { transform: booleanAttribute });\n /** Accessible label of the increment spinner button. */\n incrementAriaLabel = input<string>('Augmenter');\n /** Accessible label of the decrement spinner button. */\n decrementAriaLabel = input<string>('Diminuer');\n\n // --- Formatting (Intl.NumberFormat) --------------------------------\n /** BCP-47 locale (e.g. `fr-FR`). Defaults to the browser locale. */\n locale = input<string>();\n /** ISO currency code (e.g. `EUR`) → currency formatting on blur. */\n currency = input<string>();\n /** Thousands separators on blur. */\n useGrouping = input(true, { transform: booleanAttribute });\n /** Minimum fraction digits shown on blur. */\n minFractionDigits = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Maximum fraction digits shown on blur. */\n maxFractionDigits = input<number, unknown>(undefined, { transform: numberAttribute });\n\n /** Emitted on each numeric value change. */\n valueChange = output<number | null>();\n /** Emitted when the input receives focus. */\n inputFocus = output<FocusEvent>();\n /** Emitted when the input loses focus. */\n inputBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly inputEl = viewChild.required<ElementRef<HTMLInputElement>>('inputEl');\n /** @ignore Raw displayed text (independent from the model while typing). */\n protected readonly text = signal('');\n\n /** @ignore Suffix unit, ignored when `currency` is set (the formatted value already carries it). */\n protected readonly displayUnit = computed(() => (this.currency() ? null : (this.unit() ?? null)));\n\n /** @ignore */\n protected readonly unitSmall = computed(() => this.size() === 'small');\n /** @ignore Bounds reached (disable the spinner buttons). */\n protected readonly atMax = computed(() => {\n const v = this.modelValue();\n const max = this.max();\n return v != null && max != null && v >= max;\n });\n protected readonly atMin = computed(() => {\n const v = this.modelValue();\n const min = this.min();\n return v != null && min != null && v <= min;\n });\n\n /** @ignore Group/decimal separators of the current locale. */\n private readonly separators = computed(() => {\n const parts = new Intl.NumberFormat(this.locale()).formatToParts(11111.1);\n return {\n group: parts.find((p) => p.type === 'group')?.value ?? '',\n decimal: parts.find((p) => p.type === 'decimal')?.value ?? '.',\n };\n });\n\n override writeValue(value: number | null): void {\n this.modelValue.set(value ?? undefined);\n this.text.set(value === null || value === undefined ? '' : this.format(value));\n }\n\n /** Focuses the input. */\n focus(options?: FocusOptions): void {\n this.inputEl().nativeElement.focus(options);\n }\n\n /** @ignore Focus: switch to an editable form (no grouping/currency). */\n protected onFocus(event: FocusEvent): void {\n const v = this.modelValue();\n if (v != null) this.text.set(this.editable(v));\n this.inputFocus.emit(event);\n }\n\n /** @ignore Input: parse without reformatting the text (caret preserved). */\n protected onInput(): void {\n const raw = this.inputEl().nativeElement.value;\n this.text.set(raw);\n this.commit(this.parse(raw), { reformat: false });\n }\n\n /** @ignore Blur: clamp + rich reformatting. */\n protected onBlur(event: FocusEvent): void {\n this.commit(this.clamp(this.modelValue() ?? null), { reformat: true });\n this.emitTouch();\n this.inputBlur.emit(event);\n }\n\n /** @ignore ↑/↓ arrow keys. */\n protected onKeydown(event: KeyboardEvent): void {\n if (event.key === 'ArrowUp') {\n event.preventDefault();\n this.stepBy(1);\n } else if (event.key === 'ArrowDown') {\n event.preventDefault();\n this.stepBy(-1);\n }\n }\n\n /** @ignore ± spinner. */\n protected stepBy(direction: 1 | -1): void {\n if (this.isDisabled() || this.readonly()) return;\n const base = this.modelValue() ?? 0;\n const next = this.clamp(base + direction * this.step());\n this.commit(next, { reformat: !this.isFocused() });\n if (this.isFocused()) this.text.set(next === null ? '' : this.editable(next));\n this.inputEl().nativeElement.focus();\n }\n\n /** @ignore Does the input currently have focus? */\n private isFocused(): boolean {\n return typeof document !== 'undefined' && document.activeElement === this.inputEl().nativeElement;\n }\n\n /** @ignore Update model + emit; reformat the text when requested. */\n private commit(value: number | null, opts: { reformat: boolean }): void {\n this.modelValue.set(value ?? undefined);\n if (opts.reformat) this.text.set(value === null ? '' : this.format(value));\n this.emitChange(value);\n this.valueChange.emit(value);\n }\n\n /** @ignore Parse a lenient (locale-aware) input → number or null. */\n private parse(raw: string): number | null {\n const { group, decimal } = this.separators();\n let s = raw.trim();\n if (group) s = s.split(group).join('');\n s = s\n .replace(/\\s/g, '') // spaces (incl. U+202F/U+00A0 grouping separators)\n .replace(decimal, '.')\n .replace(/[^0-9.-]/g, ''); // strip currency/symbols\n if (s === '' || s === '-' || s === '.' || s === '-.') return null;\n const n = Number(s);\n if (Number.isNaN(n)) return null;\n return this.allowDecimals() ? n : Math.trunc(n);\n }\n\n /** @ignore Clamp the value into [min, max]. */\n private clamp(value: number | null): number | null {\n if (value === null) return null;\n const min = this.min();\n const max = this.max();\n let v = value;\n if (min != null && v < min) v = min;\n if (max != null && v > max) v = max;\n return v;\n }\n\n /** @ignore Editable form on focus: locale decimals, no grouping or currency. */\n private editable(value: number): string {\n return new Intl.NumberFormat(this.locale(), {\n useGrouping: false,\n maximumFractionDigits: 20,\n }).format(value);\n }\n\n /**\n * Display formatting on blur (overridable). Defaults to `Intl.NumberFormat`\n * with `locale`/`currency`/`useGrouping`/`*FractionDigits`.\n */\n protected format(value: number): string {\n const options: Intl.NumberFormatOptions = { useGrouping: this.useGrouping() };\n if (this.currency()) {\n options.style = 'currency';\n options.currency = this.currency();\n }\n if (this.minFractionDigits() != null) options.minimumFractionDigits = this.minFractionDigits();\n if (this.maxFractionDigits() != null) options.maximumFractionDigits = this.maxFractionDigits();\n return new Intl.NumberFormat(this.locale(), options).format(value);\n }\n}\n","<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n>\n <input\n #inputEl\n class=\"ui-input-number-native\"\n [class._small]=\"size() === 'small'\"\n type=\"text\"\n inputmode=\"decimal\"\n [id]=\"resolvedId()\"\n [value]=\"text()\"\n [placeholder]=\"placeholder() ?? ''\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n role=\"spinbutton\"\n [attr.aria-valuenow]=\"modelValue() ?? null\"\n [attr.aria-valuemin]=\"min() ?? null\"\n [attr.aria-valuemax]=\"max() ?? null\"\n (input)=\"onInput()\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (displayUnit(); as u) {\n <span uiFieldSuffix class=\"ui-input-number-unit\" [class._small]=\"unitSmall()\" [class._disabled]=\"isDisabled()\">{{ u }}</span>\n }\n\n @if (showButtons()) {\n <span uiFieldSuffix class=\"ui-input-number-spinner\">\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"incrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMax()\"\n (click)=\"stepBy(1)\"\n >\n <ui-icon name=\"angle-up\" size=\"sm\" />\n </button>\n <button\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"decrementAriaLabel()\"\n [disabled]=\"isDisabled() || readonly() || atMin()\"\n (click)=\"stepBy(-1)\"\n >\n <ui-icon name=\"angle-down\" size=\"sm\" />\n </button>\n </span>\n }\n</ui-field>\n","/*\n * Public API Surface of ui-kit/ui-input-number\n */\n\nexport * from './lib/ui-input-number';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAiBA;;;;;;;;;;;AAWG;AAUG,MAAO,aAAc,SAAQ,aAA4B,CAAA;AAT/D,IAAA,WAAA,GAAA;;;AAWE,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAAU;;QAE7B,IAAA,CAAA,GAAG,GAAG,KAAK,CAAkB,SAAS,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;QAEvE,IAAA,CAAA,GAAG,GAAG,KAAK,CAAkB,SAAS,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;QAEvE,IAAA,CAAA,IAAI,GAAG,KAAK,CAAkB,CAAC,4EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;QAEhE,IAAA,CAAA,aAAa,GAAG,KAAK,CAAC,IAAI,qFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAE5D,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;QAEtB,IAAA,CAAA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,EAAA,IAAA,EDnCY,OAAO,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,KAAA,EAAA,UAAA,EAAA,MAAA,EAAA,OAAA,EAAA,UAAA,EAAA,UAAA,EAAA,WAAA,EAAA,YAAA,EAAA,SAAA,EAAA,WAAA,EAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,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;;2FAOd,aAAa,EAAA,UAAA,EAAA,CAAA;kBATzB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,WAClB,CAAC,OAAO,EAAE,MAAM,CAAC,EAAA,SAAA,EAGf;AACT,wBAAA,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,mBAAmB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE;AAC1F,qBAAA,EAAA,QAAA,EAAA,skEAAA,EAAA,MAAA,EAAA,CAAA,mmEAAA,CAAA,EAAA;gnDA0C2E,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE9EvF;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -255,10 +255,10 @@ class UiInputOtp extends BaseFieldControl {
|
|
|
255
255
|
sanitize(value) {
|
|
256
256
|
return this.integerOnly() ? value.replace(/\D/g, '') : value;
|
|
257
257
|
}
|
|
258
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
259
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
258
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiInputOtp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
259
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiInputOtp, isStandalone: true, selector: "ui-input-otp", inputs: { length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: false, transformFunction: null }, integerOnly: { classPropertyName: "integerOnly", publicName: "integerOnly", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, charAriaLabel: { classPropertyName: "charAriaLabel", publicName: "charAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", completed: "completed" }, host: { attributes: { "role": "group" }, listeners: { "focusout": "onFocusOut($event)" }, properties: { "class._small": "size() === 'small'", "class._large": "size() === 'large'", "class._disabled": "isDisabled()", "class._readonly": "readonly()", "class._invalid": "isInvalid()", "attr.aria-label": "ariaLabel() || null", "attr.aria-labelledby": "ariaLabelledBy() || null", "attr.aria-invalid": "isInvalid() ? 'true' : null", "attr.aria-disabled": "isDisabled() ? 'true' : null" }, classAttribute: "ui-input-otp" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputOtp), multi: true }], queries: [{ propertyName: "inputTemplate", first: true, predicate: ["input"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@for (cell of cells(); track cell.index) {\n @if (inputTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell.value,\n value: cell.value,\n index: cell.index,\n events: cellEvents(cell.index),\n tabindex: tabindexFor(cell.index),\n }\"\n />\n } @else {\n <input\n class=\"ui-input-otp-cell\"\n [id]=\"cell.id\"\n [type]=\"inputType()\"\n [value]=\"cell.value\"\n maxlength=\"1\"\n autocomplete=\"one-time-code\"\n [attr.inputmode]=\"inputMode()\"\n [attr.name]=\"name() ? name() + '-' + cell.index : null\"\n [attr.tabindex]=\"tabindexFor(cell.index)\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-label]=\"(ariaLabel() || charAriaLabel()) + ' ' + (cell.index + 1)\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (input)=\"onInput($event, cell.index)\"\n (keydown)=\"onKeydown($event, cell.index)\"\n (focus)=\"onFocus($event, cell.index)\"\n (paste)=\"onPaste($event, cell.index)\"\n />\n }\n}\n", styles: [":host{display:inline-flex;align-items:center;gap:var(--units-sm);font-family:var(--fontfamily-base)}:host .ui-input-otp-cell{inline-size:var(--size-components-default);block-size:var(--size-components-default);font-size:var(--size-typography-text-default)}:host._small .ui-input-otp-cell{inline-size:var(--size-components-sm);block-size:var(--size-components-sm);font-size:var(--size-typography-text-md)}:host._large .ui-input-otp-cell{inline-size:var(--size-components-xl);block-size:var(--size-components-xl);font-size:var(--size-typography-text-lg)}.ui-input-otp-cell{--_stroke: var(--form-high-stroke-default);--_stroke-hover: var(--form-high-stroke-hover);--_stroke-focus: var(--form-high-stroke-focused);box-sizing:border-box;min-inline-size:0;margin:0;padding:0;border:var(--stroke-default) solid var(--_stroke);border-radius:var(--radius-sm);background-color:var(--form-high-surface-default);color:var(--form-high-content-default);font-family:inherit;font-weight:var(--weight-bold);text-align:center;caret-color:var(--form-high-content-default);transition:background-color var(--transition-default) var(--transition-easeinout),border-color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-input-otp-cell:hover:not(:disabled):not(:focus){border-color:var(--_stroke-hover)}.ui-input-otp-cell:focus,.ui-input-otp-cell:focus-visible{outline:none;border-color:var(--_stroke-focus);box-shadow:0 0 0 var(--units-2xs) rgb(from var(--_stroke-focus) r g b/50%)}.ui-input-otp-cell:disabled{border-color:var(--form-high-stroke-disabled);background-color:var(--form-high-surface-disabled);color:var(--form-high-content-disabled);cursor:not-allowed}:host._readonly .ui-input-otp-cell{cursor:default}:host._invalid .ui-input-otp-cell{--_stroke: var(--form-error-stroke-default);--_stroke-hover: var(--form-error-stroke-hover);--_stroke-focus: var(--form-error-stroke-focused)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
260
260
|
}
|
|
261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiInputOtp, decorators: [{
|
|
262
262
|
type: Component,
|
|
263
263
|
args: [{ selector: 'ui-input-otp', imports: [NgTemplateOutlet], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputOtp), multi: true }], host: {
|
|
264
264
|
class: 'ui-input-otp',
|
|
@@ -285,4 +285,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
285
285
|
*/
|
|
286
286
|
|
|
287
287
|
export { UiInputOtp };
|
|
288
|
-
//# sourceMappingURL=4sh-ui-kit-ui-input-otp.mjs.map
|
|
288
|
+
//# sourceMappingURL=4sh-ui-kit-forms-ui-input-otp.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-forms-ui-input-otp.mjs","sources":["../../../projects/ui-kit/forms/ui-input-otp/src/lib/ui-input-otp.ts","../../../projects/ui-kit/forms/ui-input-otp/src/lib/ui-input-otp.html","../../../projects/ui-kit/forms/ui-input-otp/src/public-api.ts","../../../projects/ui-kit/forms/ui-input-otp/src/4sh-ui-kit-forms-ui-input-otp.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n isDevMode,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFieldControl } from '@4sh/ui-kit/forms';\nimport { warnMissingAccessibleName } from '@4sh/ui-kit/forms';\n\n/** Size of the OTP cells. `default` is the base. */\nexport type InputOtpSize = 'small' | 'default' | 'large';\n\n/** DOM event handlers handed to a custom `#input` cell template. */\nexport interface InputOtpCellEvents {\n /** Wire on `(input)`. */\n input: (event: Event) => void;\n /** Wire on `(keydown)`. */\n keydown: (event: KeyboardEvent) => void;\n /** Wire on `(focus)`. */\n focus: (event: FocusEvent) => void;\n /** Wire on `(blur)`. */\n blur: (event: FocusEvent) => void;\n /** Wire on `(paste)`. */\n paste: (event: ClipboardEvent) => void;\n}\n\n/** Context handed to the `#input` template (one per cell). */\nexport interface InputOtpCellContext {\n /** Current value of this cell (default `$implicit`). */\n $implicit: string;\n /** Same as `$implicit`, named for readability. */\n value: string;\n /** Zero-based index of the cell. */\n index: number;\n /** Event handlers to bind on the custom control (keeps the OTP behaviour). */\n events: InputOtpCellEvents;\n /** Roving tabindex for this cell (`0` for the active one, `-1` otherwise). */\n tabindex: number;\n}\n\n/**\n * ui-input-otp — headless one-time-password field: a row of single-character\n * cells backing a single string value.\n *\n * Each cell is a real native `<input maxlength=\"1\">`; the group carries\n * `role=\"group\"` and a **roving tabindex** so `Tab` enters/leaves the field as a\n * whole while `←`/`→` move between cells (`Backspace` clears and steps\n * back). Typing auto-advances, and pasting a code distributes it across the\n * cells. Interactive states (hover/focus/disabled) are pure CSS driven by the\n * `form.*` design tokens.\n *\n * - `mask` hides the characters (`type=\"password\"`).\n * - `integerOnly` restricts input to digits (`inputmode=\"numeric\"`).\n * - a `#input` template replaces the default cell with your own control (it\n * receives the value, index, roving tabindex and the event handlers to bind).\n *\n * Works standalone, with `[(ngModel)]`, reactive forms, or signal forms\n * (`[formField]`, Angular 22) — it is a `ControlValueAccessor` (interop handled by\n * `BaseControlValueAccessor`).\n *\n * @example\n * ```html\n * <ui-input-otp [(ngModel)]=\"code\" [length]=\"6\" [integerOnly]=\"true\" ariaLabel=\"Code de vérification\" />\n * ```\n */\n@Component({\n selector: 'ui-input-otp',\n imports: [NgTemplateOutlet],\n templateUrl: './ui-input-otp.html',\n styleUrl: './ui-input-otp.scss',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputOtp), multi: true }],\n host: {\n class: 'ui-input-otp',\n role: 'group',\n '[class._small]': \"size() === 'small'\",\n '[class._large]': \"size() === 'large'\",\n '[class._disabled]': 'isDisabled()',\n '[class._readonly]': 'readonly()',\n '[class._invalid]': 'isInvalid()',\n '[attr.aria-label]': 'ariaLabel() || null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() || null',\n '[attr.aria-invalid]': \"isInvalid() ? 'true' : null\",\n '[attr.aria-disabled]': \"isDisabled() ? 'true' : null\",\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class UiInputOtp extends BaseFieldControl<string> {\n /** Number of cells (characters) to enter. */\n length = input(4, { transform: numberAttribute });\n /** Hide the characters (renders `type=\"password\"`). */\n mask = input(false, { transform: booleanAttribute });\n /** Restrict input to integers (`inputmode=\"numeric\"`, non-digits rejected). */\n integerOnly = input(false, { transform: booleanAttribute });\n /** Cell size. */\n size = input<InputOtpSize>('default');\n /** Accessible-name prefix of each cell (\"<prefix> N\"). Falls back to `ariaLabel`. */\n charAriaLabel = input<string>('Caractère');\n /** Focus the first cell on init. */\n autofocus = input(false, { transform: booleanAttribute });\n\n /** Emitted with the joined value on every change. */\n valueChange = output<string>();\n /** Emitted with the value once every cell is filled. */\n completed = output<string>();\n\n /** Custom cell template (`<ng-template #input let-value let-i=\"index\" let-events=\"events\">`). */\n protected readonly inputTemplate = contentChild<TemplateRef<InputOtpCellContext>>('input');\n\n /** @ignore */\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** @ignore Per-cell characters (source of truth for the view). */\n private readonly tokens = signal<string[]>([]);\n /** @ignore Cell that owns the group's single tab stop (roving tabindex). */\n private readonly focusedIndex = signal(0);\n\n constructor() {\n super();\n\n // Optional autofocus on the first cell after the view exists.\n afterNextRender(() => {\n if (this.autofocus() && !this.isDisabled()) this.focusCell(0);\n });\n\n // A11y safeguard (dev only): the group needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (!this.ariaLabel() && !this.ariaLabelledBy()) {\n warnMissingAccessibleName(\n 'ui-input-otp',\n 'Group has no accessible name: provide `ariaLabel` (or `ariaLabelledBy`).',\n );\n }\n });\n }\n }\n\n /** @ignore Native input type (masked → password). */\n protected readonly inputType = computed(() => (this.mask() ? 'password' : 'text'));\n /** @ignore Hint for the on-screen keyboard. */\n protected readonly inputMode = computed(() => (this.integerOnly() ? 'numeric' : 'text'));\n\n /** @ignore Render-ready list of cells (index + current value). */\n protected readonly cells = computed(() => {\n const tokens = this.tokens();\n return Array.from({ length: Math.max(0, this.length()) }, (_, index) => ({\n index,\n id: `${this.uid}-${index}`,\n value: tokens[index] ?? '',\n }));\n });\n\n override writeValue(value: string | number | null): void {\n this.tokens.set(this.toTokens(value));\n }\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-input-otp';\n }\n\n /** Move focus to the first cell. */\n focus(options?: FocusOptions): void {\n this.focusCell(0, options);\n }\n\n /** @ignore Roving tabindex for a given cell (one `0`, the rest `-1`). */\n protected tabindexFor(index: number): number {\n const active = Math.min(this.focusedIndex(), this.length() - 1);\n return index === Math.max(0, active) ? 0 : -1;\n }\n\n /** @ignore Value shown in a cell. */\n protected cellValue(index: number): string {\n return this.tokens()[index] ?? '';\n }\n\n /** @ignore Handlers exposed to a custom `#input` template. */\n protected cellEvents(index: number): InputOtpCellEvents {\n return {\n input: (event: Event) => this.onInput(event, index),\n keydown: (event: KeyboardEvent) => this.onKeydown(event, index),\n focus: (event: FocusEvent) => this.onFocus(event, index),\n blur: () => {\n /* touched is emitted on group focusout */\n },\n paste: (event: ClipboardEvent) => this.onPaste(event, index),\n };\n }\n\n /** @ignore Cell input: single source of the per-cell value (view → form). */\n protected onInput(event: Event, index: number): void {\n if (this.readonly()) return;\n const target = event.target as HTMLInputElement;\n const raw = this.sanitize(target.value);\n\n // Multi-char (autofill / paste into a cell) → distribute across cells.\n if (raw.length > 1) {\n this.setFromIndex(index, raw);\n return;\n }\n\n const tokens = [...this.tokens()];\n tokens[index] = raw;\n target.value = raw; // reflect the sanitised value\n this.commit(tokens);\n\n const inputType = (event as InputEvent).inputType;\n if (raw) this.focusCell(index + 1);\n else if (inputType === 'deleteContentBackward') this.focusCell(index - 1);\n }\n\n /** @ignore Keyboard navigation + input guards. */\n protected onKeydown(event: KeyboardEvent, index: number): void {\n if (event.altKey || event.ctrlKey || event.metaKey) return;\n const target = event.target as HTMLInputElement;\n\n switch (event.key) {\n case 'ArrowLeft':\n event.preventDefault();\n this.focusCell(index - 1);\n return;\n case 'ArrowRight':\n event.preventDefault();\n this.focusCell(index + 1);\n return;\n case 'Home':\n event.preventDefault();\n this.focusCell(0);\n return;\n case 'End':\n event.preventDefault();\n this.focusCell(this.length() - 1);\n return;\n case 'ArrowUp':\n case 'ArrowDown':\n event.preventDefault();\n return;\n case 'Backspace':\n // Empty cell → clear + step back (a filled cell clears via native input).\n if (!target.value && !this.readonly()) {\n event.preventDefault();\n const tokens = [...this.tokens()];\n if (tokens[index - 1] !== undefined) tokens[index - 1] = '';\n this.commit(tokens);\n this.focusCell(index - 1);\n }\n return;\n default: {\n if (event.key.length !== 1) return; // let control keys through\n // Reject non-digits when integer-only.\n if (this.integerOnly() && !/^\\d$/.test(event.key)) event.preventDefault();\n }\n }\n }\n\n /** @ignore Select the cell content on focus + track the roving index. */\n protected onFocus(event: FocusEvent, index: number): void {\n this.focusedIndex.set(index);\n (event.target as HTMLInputElement).select?.();\n }\n\n /** @ignore Distribute a pasted code across the cells from `index`. */\n protected onPaste(event: ClipboardEvent, index: number): void {\n if (this.isDisabled() || this.readonly()) return;\n event.preventDefault();\n const pasted = this.sanitize(event.clipboardData?.getData('text') ?? '');\n if (pasted) this.setFromIndex(index, pasted);\n }\n\n /** @ignore Mark touched when focus leaves the whole group. */\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (!next || !this.host.nativeElement.contains(next)) this.emitTouch();\n }\n\n /** @ignore Write `chars` into the cells starting at `from`, then commit + focus. */\n private setFromIndex(from: number, chars: string): void {\n const tokens = [...this.tokens()];\n const max = this.length();\n let i = from;\n for (const ch of chars) {\n if (i >= max) break;\n tokens[i++] = ch;\n }\n this.commit(tokens);\n this.focusCell(Math.min(i, max - 1));\n }\n\n /** @ignore Persist the tokens, emit the joined value (+ `completed` when full). */\n private commit(tokens: string[]): void {\n const trimmed = tokens.slice(0, this.length());\n this.tokens.set(trimmed);\n const value = trimmed.join('');\n this.emitChange(value);\n this.valueChange.emit(value);\n if (value.length === this.length() && trimmed.every((c) => c !== '')) {\n this.completed.emit(value);\n }\n }\n\n /** @ignore Focus (and select) the cell at `index`, if it exists. */\n private focusCell(index: number, options?: FocusOptions): void {\n if (index < 0 || index >= this.length()) return;\n this.focusedIndex.set(index);\n const el = this.host.nativeElement.querySelectorAll<HTMLInputElement>('input')[index];\n if (el) {\n el.focus(options);\n el.select();\n }\n }\n\n /** @ignore Split a form value into an array of single characters (bounded). */\n private toTokens(value: string | number | null | undefined): string[] {\n if (value === null || value === undefined || value === '') return [];\n return String(value).split('').slice(0, this.length());\n }\n\n /** @ignore Drop non-digits when integer-only, otherwise pass through. */\n private sanitize(value: string): string {\n return this.integerOnly() ? value.replace(/\\D/g, '') : value;\n }\n}\n","@for (cell of cells(); track cell.index) {\n @if (inputTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: cell.value,\n value: cell.value,\n index: cell.index,\n events: cellEvents(cell.index),\n tabindex: tabindexFor(cell.index),\n }\"\n />\n } @else {\n <input\n class=\"ui-input-otp-cell\"\n [id]=\"cell.id\"\n [type]=\"inputType()\"\n [value]=\"cell.value\"\n maxlength=\"1\"\n autocomplete=\"one-time-code\"\n [attr.inputmode]=\"inputMode()\"\n [attr.name]=\"name() ? name() + '-' + cell.index : null\"\n [attr.tabindex]=\"tabindexFor(cell.index)\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [attr.aria-label]=\"(ariaLabel() || charAriaLabel()) + ' ' + (cell.index + 1)\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (input)=\"onInput($event, cell.index)\"\n (keydown)=\"onKeydown($event, cell.index)\"\n (focus)=\"onFocus($event, cell.index)\"\n (paste)=\"onPaste($event, cell.index)\"\n />\n }\n}\n","/*\n * Public API Surface of ui-kit/ui-input-otp\n */\n\nexport * from './lib/ui-input-otp';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAqDA;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AAsBG,MAAO,UAAW,SAAQ,gBAAwB,CAAA;AA6BtD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;QA5BT,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,CAAC,8EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;QAEjD,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,KAAK,4EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAEpD,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,KAAK,mFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAE3D,IAAA,CAAA,IAAI,GAAG,KAAK,CAAe,SAAS;iFAAC;;QAErC,IAAA,CAAA,aAAa,GAAG,KAAK,CAAS,WAAW;0FAAC;;QAE1C,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,KAAK,iFAAI,SA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A,SAAA,EAGhB,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,MAAK,UAAW,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAA,IAAA,EAC7F;AACJ,wBAAA,KAAK,EAAE,cAAc;AACrB,wBAAA,IAAI,EAAE,OAAO;AACb,wBAAA,gBAAgB,EAAE,oBAAoB;AACtC,wBAAA,gBAAgB,EAAE,oBAAoB;AACtC,wBAAA,mBAAmB,EAAE,cAAc;AACnC,wBAAA,mBAAmB,EAAE,YAAY;AACjC,wBAAA,kBAAkB,EAAE,aAAa;AACjC,wBAAA,mBAAmB,EAAE,qBAAqB;AAC1C,wBAAA,wBAAwB,EAAE,0BAA0B;AACpD,wBAAA,qBAAqB,EAAE,6BAA6B;AACpD,wBAAA,sBAAsB,EAAE,8BAA8B;AACtD,wBAAA,YAAY,EAAE,oBAAoB;AACnC,qBAAA,EAAA,QAAA,EAAA,0nCAAA,EAAA,MAAA,EAAA,CAAA,25DAAA,CAAA,EAAA;wxBAsBiF,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvH3F;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -5,9 +5,9 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
|
5
5
|
import * as i1 from '@angular/cdk/overlay';
|
|
6
6
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
7
7
|
import { BaseFormField, formatLabel, dropdownOverlayPositions, createOptionResolver, warnMissingAccessibleName } from '@4sh/ui-kit/forms';
|
|
8
|
-
import { UiField } from '@4sh/ui-kit/ui-field';
|
|
9
|
-
import { UiIcon } from '@4sh/ui-kit/ui-icon';
|
|
10
|
-
import { UiChip } from '@4sh/ui-kit/ui-chip';
|
|
8
|
+
import { UiField } from '@4sh/ui-kit/forms/ui-field';
|
|
9
|
+
import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
|
|
10
|
+
import { UiChip } from '@4sh/ui-kit/informative/ui-chip';
|
|
11
11
|
import { UiMotion } from '@4sh/ui-kit/motion';
|
|
12
12
|
import { closeOnNavigation } from '@4sh/ui-kit/overlay';
|
|
13
13
|
|
|
@@ -659,10 +659,10 @@ class UiInputTags extends BaseFormField {
|
|
|
659
659
|
return [text];
|
|
660
660
|
return text.split(d);
|
|
661
661
|
}
|
|
662
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
663
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiInputTags, isStandalone: true, selector: "ui-input-tags", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, delimiter: { classPropertyName: "delimiter", publicName: "delimiter", isSignal: true, isRequired: false, transformFunction: null }, allowDuplicate: { classPropertyName: "allowDuplicate", publicName: "allowDuplicate", isSignal: true, isRequired: false, transformFunction: null }, addOnBlur: { classPropertyName: "addOnBlur", publicName: "addOnBlur", isSignal: true, isRequired: false, transformFunction: null }, addOnTab: { classPropertyName: "addOnTab", publicName: "addOnTab", isSignal: true, isRequired: false, transformFunction: null }, addOnPaste: { classPropertyName: "addOnPaste", publicName: "addOnPaste", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, chipLevel: { classPropertyName: "chipLevel", publicName: "chipLevel", isSignal: true, isRequired: false, transformFunction: null }, chipSubLevel: { classPropertyName: "chipSubLevel", publicName: "chipSubLevel", isSignal: true, isRequired: false, transformFunction: null }, chipRounded: { classPropertyName: "chipRounded", publicName: "chipRounded", isSignal: true, isRequired: false, transformFunction: null }, typeahead: { classPropertyName: "typeahead", publicName: "typeahead", isSignal: true, isRequired: false, transformFunction: null }, suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, completeOnFocus: { classPropertyName: "completeOnFocus", publicName: "completeOnFocus", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: true, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: true, isRequired: false, transformFunction: null }, autoFlip: { classPropertyName: "autoFlip", publicName: "autoFlip", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, removeTagLabel: { classPropertyName: "removeTagLabel", publicName: "removeTagLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { tagAdd: "tagAdd", tagRemove: "tagRemove", valueChange: "valueChange", completeMethod: "completeMethod", optionSelect: "optionSelect", opened: "opened", closed: "closed", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputTags), multi: true }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "optionTemplate", first: true, predicate: ["option"], descendants: true, isSignal: true }, { propertyName: "groupTemplate", first: true, predicate: ["group"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["container"], descendants: true, isSignal: true }, { propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }, { propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "tagEls", predicate: ["tagEl"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<!-- One suggestion row (typeahead): group header or option. -->\n<ng-template #rowTpl let-row>\n @if (row.kind === 'group') {\n <li class=\"ui-input-tags-group\" role=\"presentation\" [class._small]=\"size() === 'small'\">\n @if (groupTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: row.original, group: row.original }\" />\n } @else {\n {{ row.label }}\n }\n </li>\n } @else {\n <!-- ARIA combobox/listbox pattern: keyboard and focus are handled by\n the input role=\"combobox\" (roving via aria-activedescendant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <li\n class=\"ui-input-tags-option\"\n role=\"option\"\n [attr.id]=\"row.id\"\n [class._small]=\"size() === 'small'\"\n [class._present]=\"row.present\"\n [class._focused]=\"row.index === focusedOption()\"\n [class._disabled]=\"row.entry.disabled\"\n [attr.aria-selected]=\"row.present\"\n [attr.aria-disabled]=\"row.entry.disabled || null\"\n [attr.aria-setsize]=\"optionCount()\"\n [attr.aria-posinset]=\"row.index + 1\"\n (mousedown)=\"onOptionMousedown($event)\"\n (click)=\"onOptionClick(row, $event)\"\n (mouseenter)=\"onOptionMouseEnter(row)\"\n >\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row.entry.original, option: row.entry.original, index: row.index }\"\n />\n } @else {\n <span class=\"ui-input-tags-option-label\">{{ row.entry.label }}</span>\n }\n @if (row.present) {\n <ui-icon class=\"ui-input-tags-option-check\" name=\"check\" [size]=\"iconSize()\" />\n }\n </li>\n }\n</ng-template>\n\n<!-- Suggestions panel (CDK overlay, typeahead). -->\n<ng-template #panelTpl>\n <div\n #panel\n class=\"ui-input-tags-panel\"\n [class]=\"panelStyleClass()\"\n [class._small]=\"size() === 'small'\"\n [style.width.px]=\"overlayWidth()\"\n [uiMotion]=\"'slide-down'\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n >\n <div class=\"ui-input-tags-scroller\" [class._small]=\"size() === 'small'\" [style.max-height]=\"scrollHeight() || null\">\n <ul\n class=\"ui-input-tags-list\"\n role=\"listbox\"\n [attr.id]=\"panelListId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n @for (row of visibleRows(); track row.key) {\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n } @empty {\n <li class=\"ui-input-tags-empty\" role=\"presentation\">{{ emptyMessage() }}</li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<!-- Field shell: label + box (tags listbox + input) + helper. -->\n<div #container class=\"ui-input-tags\">\n <ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [autoHeight]=\"true\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n >\n <div class=\"ui-input-tags-control\" (mousedown)=\"onBoxMousedown($event)\">\n <!-- The listbox wraps ONLY the option tags (a listbox may not contain a textbox);\n `display: contents` keeps tags and input flowing on the same wrapped lines. -->\n <div\n class=\"ui-input-tags-list\"\n role=\"listbox\"\n aria-orientation=\"horizontal\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n >\n @for (tag of tagRows(); track $index) {\n @if (itemTemplate(); as tpl) {\n <!-- Template mode: a bare option wrapper hosts the custom tag content. -->\n <span\n #tagEl\n class=\"ui-input-tags-tag _custom\"\n [class._disabled]=\"isDisabled()\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: tag.value, value: tag.value, label: tag.label, index: tag.index, onRemove: removeAt.bind(this, tag.index) }\"\n />\n </span>\n } @else {\n <!-- Default mode: the tag is a ui-chip that IS the roving option. -->\n <ui-chip\n #tagEl\n class=\"ui-input-tags-tag\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [label]=\"tag.label\"\n [level]=\"chipLevel()\"\n [subLevel]=\"chipSubLevel()\"\n size=\"small\"\n [rounded]=\"chipRounded()\"\n [disabled]=\"isDisabled()\"\n [removable]=\"canRemove()\"\n [removeTabindex]=\"-1\"\n [removeAriaLabel]=\"tag.removeAriaLabel\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n (remove)=\"removeAt(tag.index, $event)\"\n />\n }\n }\n </div>\n\n <input\n #inputEl\n type=\"text\"\n class=\"ui-input-tags-input\"\n [class._small]=\"size() === 'small'\"\n autocomplete=\"off\"\n [id]=\"resolvedId()\"\n [value]=\"inputText()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly() || isFull()\"\n [attr.name]=\"name() || null\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.role]=\"typeahead() ? 'combobox' : null\"\n [attr.aria-autocomplete]=\"typeahead() ? 'list' : null\"\n [attr.aria-haspopup]=\"typeahead() ? 'listbox' : null\"\n [attr.aria-expanded]=\"typeahead() ? panelOpen() : null\"\n [attr.aria-controls]=\"typeahead() && panelOpen() ? panelListId() : null\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (paste)=\"onPaste($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n />\n </div>\n </ui-field>\n</div>\n\n@if (typeahead()) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"close(false)\"\n (detach)=\"close(false)\"\n >\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n </ng-template>\n}\n", styles: [".ui-input-tags{display:block;--ui-field-box-cursor: text}.ui-input-tags-control{display:flex;align-items:center;align-self:stretch;flex:1 1 auto;flex-wrap:wrap;gap:var(--units-xs);min-width:0}.ui-input-tags-control:first-child{padding-inline-start:var(--units-md)}.ui-input-tags-control:last-child{padding-inline-end:var(--units-md)}.ui-input-tags-list{display:contents}.ui-input-tags-tag{display:inline-flex;align-items:center;max-width:100%;border-radius:var(--radius-full);transition:box-shadow var(--transition-default) var(--transition-easeinout)}.ui-input-tags-tag:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-input-tags-tag._custom{gap:var(--units-2xs);min-height:1.5rem;color:var(--form-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md)}.ui-input-tags-input{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-input-tags-input::placeholder{color:var(--form-low-content-default);opacity:1}.ui-input-tags-input:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-input-tags-input{flex:1 1 5rem;min-width:5rem;width:auto}.ui-input-tags-input._small{font-size:var(--size-typography-text-md)}.ui-input-tags-panel{border:var(--stroke-default) solid var(--ui-overlay-stroke, var(--form-high-stroke-default));border-radius:var(--ui-overlay-radius, var(--radius-default));background-color:var(--ui-overlay-surface, var(--form-high-surface-default));box-shadow:var(--ui-overlay-shadow, var(--shadow-default-md));font-family:var(--fontfamily-base);display:flex;flex-direction:column;box-sizing:border-box;max-width:calc(100vw - var(--units-lg));padding:var(--units-xs)}.ui-input-tags-panel .ui-input-tags-scroller{overflow:auto;max-height:12.5rem}.ui-input-tags-panel .ui-input-tags-scroller._small{max-height:11.25rem}.ui-input-tags-panel .ui-input-tags-list{display:flex;flex-direction:column;gap:var(--units-xs);margin:0;padding:0;list-style:none}.ui-input-tags-panel .ui-input-tags-option{display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box;height:2.5rem;flex-shrink:0;padding:0 var(--units-default);border-radius:var(--radius-sm);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout)}.ui-input-tags-panel .ui-input-tags-option._small{height:2rem;padding:0 var(--units-md);font-size:var(--size-typography-text-md)}.ui-input-tags-panel .ui-input-tags-option._focused,.ui-input-tags-panel .ui-input-tags-option:hover:not(._disabled){background-color:var(--global-background-default-hover)}.ui-input-tags-panel .ui-input-tags-option._present{color:var(--form-high-content-checked)}.ui-input-tags-panel .ui-input-tags-option._disabled{color:var(--form-high-content-disabled);cursor:not-allowed}.ui-input-tags-panel .ui-input-tags-option-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-input-tags-panel .ui-input-tags-option-check{flex-shrink:0;margin-left:auto;color:var(--form-high-content-checked)}.ui-input-tags-panel .ui-input-tags-group{display:flex;align-items:center;box-sizing:border-box;height:2rem;flex-shrink:0;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);color:var(--form-low-content-default)}.ui-input-tags-panel .ui-input-tags-group._small{padding:0 var(--units-md)}.ui-input-tags-panel .ui-input-tags-empty{display:flex;align-items:center;box-sizing:border-box;min-height:2.5rem;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-low-content-default)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "hasFooter"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiChip, selector: "ui-chip", inputs: ["label", "level", "subLevel", "size", "icon", "image", "alt", "rounded", "removable", "removeIcon", "disabled", "selectable", "selected", "selectedIcon", "ariaLabel", "ariaLabelledBy", "removeAriaLabel", "removeTabindex"], outputs: ["selectedChange", "remove", "chipClick", "imageError"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
|
|
662
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiInputTags, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
663
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiInputTags, isStandalone: true, selector: "ui-input-tags", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, delimiter: { classPropertyName: "delimiter", publicName: "delimiter", isSignal: true, isRequired: false, transformFunction: null }, allowDuplicate: { classPropertyName: "allowDuplicate", publicName: "allowDuplicate", isSignal: true, isRequired: false, transformFunction: null }, addOnBlur: { classPropertyName: "addOnBlur", publicName: "addOnBlur", isSignal: true, isRequired: false, transformFunction: null }, addOnTab: { classPropertyName: "addOnTab", publicName: "addOnTab", isSignal: true, isRequired: false, transformFunction: null }, addOnPaste: { classPropertyName: "addOnPaste", publicName: "addOnPaste", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, chipLevel: { classPropertyName: "chipLevel", publicName: "chipLevel", isSignal: true, isRequired: false, transformFunction: null }, chipSubLevel: { classPropertyName: "chipSubLevel", publicName: "chipSubLevel", isSignal: true, isRequired: false, transformFunction: null }, chipRounded: { classPropertyName: "chipRounded", publicName: "chipRounded", isSignal: true, isRequired: false, transformFunction: null }, typeahead: { classPropertyName: "typeahead", publicName: "typeahead", isSignal: true, isRequired: false, transformFunction: null }, suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, completeOnFocus: { classPropertyName: "completeOnFocus", publicName: "completeOnFocus", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: true, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: true, isRequired: false, transformFunction: null }, autoFlip: { classPropertyName: "autoFlip", publicName: "autoFlip", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, removeTagLabel: { classPropertyName: "removeTagLabel", publicName: "removeTagLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { tagAdd: "tagAdd", tagRemove: "tagRemove", valueChange: "valueChange", completeMethod: "completeMethod", optionSelect: "optionSelect", opened: "opened", closed: "closed", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputTags), multi: true }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "optionTemplate", first: true, predicate: ["option"], descendants: true, isSignal: true }, { propertyName: "groupTemplate", first: true, predicate: ["group"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["container"], descendants: true, isSignal: true }, { propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }, { propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "tagEls", predicate: ["tagEl"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<!-- One suggestion row (typeahead): group header or option. -->\n<ng-template #rowTpl let-row>\n @if (row.kind === 'group') {\n <li class=\"ui-input-tags-group\" role=\"presentation\" [class._small]=\"size() === 'small'\">\n @if (groupTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: row.original, group: row.original }\" />\n } @else {\n {{ row.label }}\n }\n </li>\n } @else {\n <!-- ARIA combobox/listbox pattern: keyboard and focus are handled by\n the input role=\"combobox\" (roving via aria-activedescendant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <li\n class=\"ui-input-tags-option\"\n role=\"option\"\n [attr.id]=\"row.id\"\n [class._small]=\"size() === 'small'\"\n [class._present]=\"row.present\"\n [class._focused]=\"row.index === focusedOption()\"\n [class._disabled]=\"row.entry.disabled\"\n [attr.aria-selected]=\"row.present\"\n [attr.aria-disabled]=\"row.entry.disabled || null\"\n [attr.aria-setsize]=\"optionCount()\"\n [attr.aria-posinset]=\"row.index + 1\"\n (mousedown)=\"onOptionMousedown($event)\"\n (click)=\"onOptionClick(row, $event)\"\n (mouseenter)=\"onOptionMouseEnter(row)\"\n >\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row.entry.original, option: row.entry.original, index: row.index }\"\n />\n } @else {\n <span class=\"ui-input-tags-option-label\">{{ row.entry.label }}</span>\n }\n @if (row.present) {\n <ui-icon class=\"ui-input-tags-option-check\" name=\"check\" [size]=\"iconSize()\" />\n }\n </li>\n }\n</ng-template>\n\n<!-- Suggestions panel (CDK overlay, typeahead). -->\n<ng-template #panelTpl>\n <div\n #panel\n class=\"ui-input-tags-panel\"\n [class]=\"panelStyleClass()\"\n [class._small]=\"size() === 'small'\"\n [style.width.px]=\"overlayWidth()\"\n [uiMotion]=\"'slide-down'\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n >\n <div class=\"ui-input-tags-scroller\" [class._small]=\"size() === 'small'\" [style.max-height]=\"scrollHeight() || null\">\n <ul\n class=\"ui-input-tags-list\"\n role=\"listbox\"\n [attr.id]=\"panelListId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n @for (row of visibleRows(); track row.key) {\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n } @empty {\n <li class=\"ui-input-tags-empty\" role=\"presentation\">{{ emptyMessage() }}</li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<!-- Field shell: label + box (tags listbox + input) + helper. -->\n<div #container class=\"ui-input-tags\">\n <ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [autoHeight]=\"true\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n >\n <div class=\"ui-input-tags-control\" (mousedown)=\"onBoxMousedown($event)\">\n <!-- The listbox wraps ONLY the option tags (a listbox may not contain a textbox);\n `display: contents` keeps tags and input flowing on the same wrapped lines. -->\n <div\n class=\"ui-input-tags-list\"\n role=\"listbox\"\n aria-orientation=\"horizontal\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n >\n @for (tag of tagRows(); track $index) {\n @if (itemTemplate(); as tpl) {\n <!-- Template mode: a bare option wrapper hosts the custom tag content. -->\n <span\n #tagEl\n class=\"ui-input-tags-tag _custom\"\n [class._disabled]=\"isDisabled()\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: tag.value, value: tag.value, label: tag.label, index: tag.index, onRemove: removeAt.bind(this, tag.index) }\"\n />\n </span>\n } @else {\n <!-- Default mode: the tag is a ui-chip that IS the roving option. -->\n <ui-chip\n #tagEl\n class=\"ui-input-tags-tag\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [label]=\"tag.label\"\n [level]=\"chipLevel()\"\n [subLevel]=\"chipSubLevel()\"\n size=\"small\"\n [rounded]=\"chipRounded()\"\n [disabled]=\"isDisabled()\"\n [removable]=\"canRemove()\"\n [removeTabindex]=\"-1\"\n [removeAriaLabel]=\"tag.removeAriaLabel\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n (remove)=\"removeAt(tag.index, $event)\"\n />\n }\n }\n </div>\n\n <input\n #inputEl\n type=\"text\"\n class=\"ui-input-tags-input\"\n [class._small]=\"size() === 'small'\"\n autocomplete=\"off\"\n [id]=\"resolvedId()\"\n [value]=\"inputText()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly() || isFull()\"\n [attr.name]=\"name() || null\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.role]=\"typeahead() ? 'combobox' : null\"\n [attr.aria-autocomplete]=\"typeahead() ? 'list' : null\"\n [attr.aria-haspopup]=\"typeahead() ? 'listbox' : null\"\n [attr.aria-expanded]=\"typeahead() ? panelOpen() : null\"\n [attr.aria-controls]=\"typeahead() && panelOpen() ? panelListId() : null\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (paste)=\"onPaste($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n />\n </div>\n </ui-field>\n</div>\n\n@if (typeahead()) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"close(false)\"\n (detach)=\"close(false)\"\n >\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n </ng-template>\n}\n", styles: [".ui-input-tags{display:block;--ui-field-box-cursor: text}.ui-input-tags-control{display:flex;align-items:center;align-self:stretch;flex:1 1 auto;flex-wrap:wrap;gap:var(--units-xs);min-width:0}.ui-input-tags-control:first-child{padding-inline-start:var(--units-md)}.ui-input-tags-control:last-child{padding-inline-end:var(--units-md)}.ui-input-tags-list{display:contents}.ui-input-tags-tag{display:inline-flex;align-items:center;max-width:100%;border-radius:var(--radius-full);transition:box-shadow var(--transition-default) var(--transition-easeinout)}.ui-input-tags-tag:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-input-tags-tag._custom{gap:var(--units-2xs);min-height:1.5rem;color:var(--form-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md)}.ui-input-tags-input{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-input-tags-input::placeholder{color:var(--form-low-content-default);opacity:1}.ui-input-tags-input:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-input-tags-input{flex:1 1 5rem;min-width:5rem;width:auto}.ui-input-tags-input._small{font-size:var(--size-typography-text-md)}.ui-input-tags-panel{border:var(--stroke-default) solid var(--ui-overlay-stroke, var(--form-high-stroke-default));border-radius:var(--ui-overlay-radius, var(--radius-default));background-color:var(--ui-overlay-surface, var(--form-high-surface-default));box-shadow:var(--ui-overlay-shadow, var(--shadow-default-md));font-family:var(--fontfamily-base);display:flex;flex-direction:column;box-sizing:border-box;max-width:calc(100vw - var(--units-lg));padding:var(--units-xs)}.ui-input-tags-panel .ui-input-tags-scroller{overflow:auto;max-height:12.5rem}.ui-input-tags-panel .ui-input-tags-scroller._small{max-height:11.25rem}.ui-input-tags-panel .ui-input-tags-list{display:flex;flex-direction:column;gap:var(--units-xs);margin:0;padding:0;list-style:none}.ui-input-tags-panel .ui-input-tags-option{display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box;height:2.5rem;flex-shrink:0;padding:0 var(--units-default);border-radius:var(--radius-sm);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout)}.ui-input-tags-panel .ui-input-tags-option._small{height:2rem;padding:0 var(--units-md);font-size:var(--size-typography-text-md)}.ui-input-tags-panel .ui-input-tags-option._focused,.ui-input-tags-panel .ui-input-tags-option:hover:not(._disabled){background-color:var(--global-background-default-hover)}.ui-input-tags-panel .ui-input-tags-option._present{color:var(--form-high-content-checked)}.ui-input-tags-panel .ui-input-tags-option._disabled{color:var(--form-high-content-disabled);cursor:not-allowed}.ui-input-tags-panel .ui-input-tags-option-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-input-tags-panel .ui-input-tags-option-check{flex-shrink:0;margin-left:auto;color:var(--form-high-content-checked)}.ui-input-tags-panel .ui-input-tags-group{display:flex;align-items:center;box-sizing:border-box;height:2rem;flex-shrink:0;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);color:var(--form-low-content-default)}.ui-input-tags-panel .ui-input-tags-group._small{padding:0 var(--units-md)}.ui-input-tags-panel .ui-input-tags-empty{display:flex;align-items:center;box-sizing:border-box;min-height:2.5rem;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-low-content-default)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "hasFooter"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiChip, selector: "ui-chip", inputs: ["label", "level", "subLevel", "size", "icon", "image", "alt", "rounded", "removable", "removeIcon", "disabled", "selectable", "selected", "selectedIcon", "ariaLabel", "ariaLabelledBy", "removeAriaLabel", "removeTabindex"], outputs: ["selectedChange", "remove", "chipClick", "imageError"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
|
|
664
664
|
}
|
|
665
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiInputTags, decorators: [{
|
|
666
666
|
type: Component,
|
|
667
667
|
args: [{ selector: 'ui-input-tags', imports: [NgTemplateOutlet, OverlayModule, UiField, UiIcon, UiChip, UiMotion], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputTags), multi: true }], template: "<!-- One suggestion row (typeahead): group header or option. -->\n<ng-template #rowTpl let-row>\n @if (row.kind === 'group') {\n <li class=\"ui-input-tags-group\" role=\"presentation\" [class._small]=\"size() === 'small'\">\n @if (groupTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: row.original, group: row.original }\" />\n } @else {\n {{ row.label }}\n }\n </li>\n } @else {\n <!-- ARIA combobox/listbox pattern: keyboard and focus are handled by\n the input role=\"combobox\" (roving via aria-activedescendant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <li\n class=\"ui-input-tags-option\"\n role=\"option\"\n [attr.id]=\"row.id\"\n [class._small]=\"size() === 'small'\"\n [class._present]=\"row.present\"\n [class._focused]=\"row.index === focusedOption()\"\n [class._disabled]=\"row.entry.disabled\"\n [attr.aria-selected]=\"row.present\"\n [attr.aria-disabled]=\"row.entry.disabled || null\"\n [attr.aria-setsize]=\"optionCount()\"\n [attr.aria-posinset]=\"row.index + 1\"\n (mousedown)=\"onOptionMousedown($event)\"\n (click)=\"onOptionClick(row, $event)\"\n (mouseenter)=\"onOptionMouseEnter(row)\"\n >\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row.entry.original, option: row.entry.original, index: row.index }\"\n />\n } @else {\n <span class=\"ui-input-tags-option-label\">{{ row.entry.label }}</span>\n }\n @if (row.present) {\n <ui-icon class=\"ui-input-tags-option-check\" name=\"check\" [size]=\"iconSize()\" />\n }\n </li>\n }\n</ng-template>\n\n<!-- Suggestions panel (CDK overlay, typeahead). -->\n<ng-template #panelTpl>\n <div\n #panel\n class=\"ui-input-tags-panel\"\n [class]=\"panelStyleClass()\"\n [class._small]=\"size() === 'small'\"\n [style.width.px]=\"overlayWidth()\"\n [uiMotion]=\"'slide-down'\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n >\n <div class=\"ui-input-tags-scroller\" [class._small]=\"size() === 'small'\" [style.max-height]=\"scrollHeight() || null\">\n <ul\n class=\"ui-input-tags-list\"\n role=\"listbox\"\n [attr.id]=\"panelListId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n @for (row of visibleRows(); track row.key) {\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n } @empty {\n <li class=\"ui-input-tags-empty\" role=\"presentation\">{{ emptyMessage() }}</li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<!-- Field shell: label + box (tags listbox + input) + helper. -->\n<div #container class=\"ui-input-tags\">\n <ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [autoHeight]=\"true\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n >\n <div class=\"ui-input-tags-control\" (mousedown)=\"onBoxMousedown($event)\">\n <!-- The listbox wraps ONLY the option tags (a listbox may not contain a textbox);\n `display: contents` keeps tags and input flowing on the same wrapped lines. -->\n <div\n class=\"ui-input-tags-list\"\n role=\"listbox\"\n aria-orientation=\"horizontal\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n >\n @for (tag of tagRows(); track $index) {\n @if (itemTemplate(); as tpl) {\n <!-- Template mode: a bare option wrapper hosts the custom tag content. -->\n <span\n #tagEl\n class=\"ui-input-tags-tag _custom\"\n [class._disabled]=\"isDisabled()\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: tag.value, value: tag.value, label: tag.label, index: tag.index, onRemove: removeAt.bind(this, tag.index) }\"\n />\n </span>\n } @else {\n <!-- Default mode: the tag is a ui-chip that IS the roving option. -->\n <ui-chip\n #tagEl\n class=\"ui-input-tags-tag\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [label]=\"tag.label\"\n [level]=\"chipLevel()\"\n [subLevel]=\"chipSubLevel()\"\n size=\"small\"\n [rounded]=\"chipRounded()\"\n [disabled]=\"isDisabled()\"\n [removable]=\"canRemove()\"\n [removeTabindex]=\"-1\"\n [removeAriaLabel]=\"tag.removeAriaLabel\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n (remove)=\"removeAt(tag.index, $event)\"\n />\n }\n }\n </div>\n\n <input\n #inputEl\n type=\"text\"\n class=\"ui-input-tags-input\"\n [class._small]=\"size() === 'small'\"\n autocomplete=\"off\"\n [id]=\"resolvedId()\"\n [value]=\"inputText()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly() || isFull()\"\n [attr.name]=\"name() || null\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.role]=\"typeahead() ? 'combobox' : null\"\n [attr.aria-autocomplete]=\"typeahead() ? 'list' : null\"\n [attr.aria-haspopup]=\"typeahead() ? 'listbox' : null\"\n [attr.aria-expanded]=\"typeahead() ? panelOpen() : null\"\n [attr.aria-controls]=\"typeahead() && panelOpen() ? panelListId() : null\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (paste)=\"onPaste($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n />\n </div>\n </ui-field>\n</div>\n\n@if (typeahead()) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"close(false)\"\n (detach)=\"close(false)\"\n >\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n </ng-template>\n}\n", styles: [".ui-input-tags{display:block;--ui-field-box-cursor: text}.ui-input-tags-control{display:flex;align-items:center;align-self:stretch;flex:1 1 auto;flex-wrap:wrap;gap:var(--units-xs);min-width:0}.ui-input-tags-control:first-child{padding-inline-start:var(--units-md)}.ui-input-tags-control:last-child{padding-inline-end:var(--units-md)}.ui-input-tags-list{display:contents}.ui-input-tags-tag{display:inline-flex;align-items:center;max-width:100%;border-radius:var(--radius-full);transition:box-shadow var(--transition-default) var(--transition-easeinout)}.ui-input-tags-tag:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-input-tags-tag._custom{gap:var(--units-2xs);min-height:1.5rem;color:var(--form-high-content-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md)}.ui-input-tags-input{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-input-tags-input::placeholder{color:var(--form-low-content-default);opacity:1}.ui-input-tags-input:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-input-tags-input{flex:1 1 5rem;min-width:5rem;width:auto}.ui-input-tags-input._small{font-size:var(--size-typography-text-md)}.ui-input-tags-panel{border:var(--stroke-default) solid var(--ui-overlay-stroke, var(--form-high-stroke-default));border-radius:var(--ui-overlay-radius, var(--radius-default));background-color:var(--ui-overlay-surface, var(--form-high-surface-default));box-shadow:var(--ui-overlay-shadow, var(--shadow-default-md));font-family:var(--fontfamily-base);display:flex;flex-direction:column;box-sizing:border-box;max-width:calc(100vw - var(--units-lg));padding:var(--units-xs)}.ui-input-tags-panel .ui-input-tags-scroller{overflow:auto;max-height:12.5rem}.ui-input-tags-panel .ui-input-tags-scroller._small{max-height:11.25rem}.ui-input-tags-panel .ui-input-tags-list{display:flex;flex-direction:column;gap:var(--units-xs);margin:0;padding:0;list-style:none}.ui-input-tags-panel .ui-input-tags-option{display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box;height:2.5rem;flex-shrink:0;padding:0 var(--units-default);border-radius:var(--radius-sm);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout)}.ui-input-tags-panel .ui-input-tags-option._small{height:2rem;padding:0 var(--units-md);font-size:var(--size-typography-text-md)}.ui-input-tags-panel .ui-input-tags-option._focused,.ui-input-tags-panel .ui-input-tags-option:hover:not(._disabled){background-color:var(--global-background-default-hover)}.ui-input-tags-panel .ui-input-tags-option._present{color:var(--form-high-content-checked)}.ui-input-tags-panel .ui-input-tags-option._disabled{color:var(--form-high-content-disabled);cursor:not-allowed}.ui-input-tags-panel .ui-input-tags-option-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-input-tags-panel .ui-input-tags-option-check{flex-shrink:0;margin-left:auto;color:var(--form-high-content-checked)}.ui-input-tags-panel .ui-input-tags-group{display:flex;align-items:center;box-sizing:border-box;height:2rem;flex-shrink:0;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);color:var(--form-low-content-default)}.ui-input-tags-panel .ui-input-tags-group._small{padding:0 var(--units-md)}.ui-input-tags-panel .ui-input-tags-empty{display:flex;align-items:center;box-sizing:border-box;min-height:2.5rem;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-low-content-default)}\n"] }]
|
|
668
668
|
}], ctorParameters: () => [], propDecorators: { placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], delimiter: [{ type: i0.Input, args: [{ isSignal: true, alias: "delimiter", required: false }] }], allowDuplicate: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowDuplicate", required: false }] }], addOnBlur: [{ type: i0.Input, args: [{ isSignal: true, alias: "addOnBlur", required: false }] }], addOnTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "addOnTab", required: false }] }], addOnPaste: [{ type: i0.Input, args: [{ isSignal: true, alias: "addOnPaste", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], chipLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "chipLevel", required: false }] }], chipSubLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "chipSubLevel", required: false }] }], chipRounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "chipRounded", required: false }] }], typeahead: [{ type: i0.Input, args: [{ isSignal: true, alias: "typeahead", required: false }] }], suggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestions", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], optionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionDisabled", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }], optionGroupLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupLabel", required: false }] }], optionGroupChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupChildren", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], completeOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "completeOnFocus", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], autoOptionFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoOptionFocus", required: false }] }], focusOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnHover", required: false }] }], autoFlip: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFlip", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], removeTagLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeTagLabel", required: false }] }], tagAdd: [{ type: i0.Output, args: ["tagAdd"] }], tagRemove: [{ type: i0.Output, args: ["tagRemove"] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], completeMethod: [{ type: i0.Output, args: ["completeMethod"] }], optionSelect: [{ type: i0.Output, args: ["optionSelect"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], inputFocus: [{ type: i0.Output, args: ["inputFocus"] }], inputBlur: [{ type: i0.Output, args: ["inputBlur"] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], optionTemplate: [{ type: i0.ContentChild, args: ['option', { isSignal: true }] }], groupTemplate: [{ type: i0.ContentChild, args: ['group', { isSignal: true }] }], containerEl: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }], panelEl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], tagEls: [{ type: i0.ViewChildren, args: ['tagEl', { ...{ read: ElementRef }, isSignal: true }] }] } });
|
|
@@ -676,4 +676,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
676
676
|
*/
|
|
677
677
|
|
|
678
678
|
export { UiInputTags };
|
|
679
|
-
//# sourceMappingURL=4sh-ui-kit-ui-input-tags.mjs.map
|
|
679
|
+
//# sourceMappingURL=4sh-ui-kit-forms-ui-input-tags.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-forms-ui-input-tags.mjs","sources":["../../../projects/ui-kit/forms/ui-input-tags/src/lib/ui-input-tags.ts","../../../projects/ui-kit/forms/ui-input-tags/src/lib/ui-input-tags.html","../../../projects/ui-kit/forms/ui-input-tags/src/public-api.ts","../../../projects/ui-kit/forms/ui-input-tags/src/4sh-ui-kit-forms-ui-input-tags.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n contentChild,\n effect,\n ElementRef,\n forwardRef,\n input,\n isDevMode,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n viewChild,\n viewChildren,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { BaseFormField } from '@4sh/ui-kit/forms';\nimport { createOptionResolver } from '@4sh/ui-kit/forms';\nimport { dropdownOverlayPositions } from '@4sh/ui-kit/forms';\nimport { formatLabel } from '@4sh/ui-kit/forms';\nimport { warnMissingAccessibleName } from '@4sh/ui-kit/forms';\nimport { UiField } from '@4sh/ui-kit/forms/ui-field';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiChip } from '@4sh/ui-kit/informative/ui-chip';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\nimport { UiMotion } from '@4sh/ui-kit/motion';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\n\n/** Delimiter used to split the typed text (and pasted text) into several tags. */\nexport type TagDelimiter = string | RegExp;\n\n/** Payload of the `tagAdd` output. */\nexport interface InputTagsAddEvent {\n /** Originating DOM event. */\n originalEvent: Event;\n /** Added value. */\n value: unknown;\n}\n\n/** Payload of the `tagRemove` output. */\nexport interface InputTagsRemoveEvent {\n /** Originating DOM event. */\n originalEvent: Event;\n /** Removed value. */\n value: unknown;\n /** Index of the removed value. */\n index: number;\n}\n\n/** Payload of the `completeMethod` output (typeahead). */\nexport interface InputTagsCompleteEvent {\n /** Originating DOM event. */\n originalEvent: Event;\n /** Search query. */\n query: string;\n}\n\n/** Payload of the `optionSelect` output (typeahead). */\nexport interface InputTagsSelectEvent {\n /** Originating DOM event. */\n originalEvent: Event;\n /** Selected suggestion (original object/primitive). */\n value: unknown;\n}\n\n/** Context handed to the `#item` template (per tag). */\nexport interface InputTagsItemContext<T = unknown> {\n /** The tag value (default `$implicit`). */\n $implicit: T;\n /** Same as `$implicit`, named for readability. */\n value: T;\n /** Resolved display label of the tag. */\n label: string;\n /** Index of the tag. */\n index: number;\n /** Removes this tag. */\n onRemove: (event: Event) => void;\n}\n\n/** Context handed to the `#option` template (per suggestion). */\nexport interface InputTagsOptionContext<T = unknown> {\n /** The suggestion (default `$implicit`). */\n $implicit: T;\n /** Same as `$implicit`, named for readability. */\n option: T;\n /** Index of the suggestion in the visible list. */\n index: number;\n}\n\n/** Context handed to the `#group` template. */\nexport interface InputTagsGroupContext<G = unknown> {\n /** The group object (default `$implicit`). */\n $implicit: G;\n /** Same as `$implicit`, named for readability. */\n group: G;\n}\n\n/** @ignore Flat view of one suggestion. */\ninterface TagEntry {\n value: unknown;\n label: string;\n disabled: boolean;\n original: unknown;\n}\n\n/** @ignore Group of entries. */\ninterface TagGroupEntry {\n label: string;\n original: unknown;\n entries: TagEntry[];\n}\n\n/** @ignore Rendered suggestion row. */\ntype TagRow =\n | { kind: 'group'; key: string; label: string; original: unknown }\n | { kind: 'option'; key: string; id: string; index: number; entry: TagEntry; present: boolean };\n\n/**\n * ui-input-tags — headless multi-value tag entry built on the `ui-field` shell\n * (label + box + helper). Tags are entered by typing and pressing `Enter`\n * (and/or a `delimiter`), and removed with `Backspace` / the × action.\n *\n * The model is an **array** driven through {@link BaseFormField}\n * (`ControlValueAccessor`) — compatible with `[(ngModel)]`, Reactive Forms and\n * Signal Forms (`[formField]`, stable since Angular 22). Options: `max`,\n * `allowDuplicate`, `addOnBlur` / `addOnTab` / `addOnPaste`, and a `typeahead`\n * mode (a CDK-overlay suggestions panel fed by the parent via `completeMethod`).\n *\n * A11y: the tag list is a `role=\"listbox\"` (`aria-orientation=\"horizontal\"`);\n * each tag is a `role=\"option\"` with roving focus (`←` / `→` between tags,\n * `Backspace` / `Delete` to delete). The editable input follows the combobox\n * pattern in `typeahead` mode.\n *\n * @example\n * ```html\n * <ui-input-tags label=\"Mots-clés\" [(ngModel)]=\"keywords\" placeholder=\"Ajouter…\" />\n * ```\n */\n@Component({\n selector: 'ui-input-tags',\n imports: [NgTemplateOutlet, OverlayModule, UiField, UiIcon, UiChip, UiMotion],\n templateUrl: './ui-input-tags.html',\n styleUrl: './ui-input-tags.scss',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInputTags), multi: true }],\n})\nexport class UiInputTags<T = unknown> extends BaseFormField<T[]> {\n /** Native placeholder shown when the input is empty (and no tag exists). */\n placeholder = input<string>();\n /** Maximum number of tags allowed (`undefined` = unlimited). */\n max = input<number, unknown>(undefined, { transform: numberAttribute });\n /** Delimiter that splits typed/pasted text into several tags (in addition to `Enter`). */\n delimiter = input<TagDelimiter>();\n /** Allow the same value to be added several times. */\n allowDuplicate = input(false, { transform: booleanAttribute });\n /** Add the current input as a tag when the field loses focus. */\n addOnBlur = input(false, { transform: booleanAttribute });\n /** Add the current input as a tag on `Tab`. */\n addOnTab = input(false, { transform: booleanAttribute });\n /** Split pasted text with the `delimiter` (or whitespace/newlines) and add each part. */\n addOnPaste = input(false, { transform: booleanAttribute });\n /** Max character length of a single typed tag. */\n maxLength = input<number, unknown>(undefined, { transform: numberAttribute });\n\n /** Color family of the default `ui-chip` tags (ignored when an `#item` template is used). */\n chipLevel = input<UiFeedbackLevel>('default');\n /** Intensity of the default `ui-chip` tags: `low` (subtle, default) or `high` (solid). */\n chipSubLevel = input<UiSubLevel>('low');\n /** Pill shape (default) vs rounded-rectangle for the default `ui-chip` tags. */\n chipRounded = input(true, { transform: booleanAttribute });\n\n /** Show a suggestions dropdown as the user types (fed via `completeMethod`). */\n typeahead = input(false, { transform: booleanAttribute });\n /** Suggestions to display — set by the parent in response to `completeMethod`. */\n suggestions = input<readonly unknown[]>([]);\n /** Field name (dot-path) read as a suggestion label. */\n optionLabel = input<string>();\n /** Field name (dot-path) read as the value added to the model. */\n optionValue = input<string>();\n /** Field name (dot-path) read as a suggestion's disabled flag. */\n optionDisabled = input<string>();\n /** Property compared for value equality (duplicate detection on objects). */\n dataKey = input<string>();\n /** Treat `suggestions` as groups. */\n group = input(false, { transform: booleanAttribute });\n /** Field name of a group's label. */\n optionGroupLabel = input<string>('label');\n /** Field name of a group's children array. */\n optionGroupChildren = input<string>('items');\n /** Minimum number of characters before `completeMethod` is emitted. */\n minLength = input<number, unknown>(1, { transform: numberAttribute });\n /** Debounce (ms) between the last keystroke and `completeMethod`. */\n delay = input<number, unknown>(300, { transform: numberAttribute });\n /** Emit a query as soon as the input is focused (before any typing). */\n completeOnFocus = input(false, { transform: booleanAttribute });\n /** Max height of the suggestions list (CSS size). Defaults from the SCSS. */\n scrollHeight = input<string>();\n /** Visually focus the first suggestion when the panel opens. */\n autoOptionFocus = input(false, { transform: booleanAttribute });\n /** Visually focus the suggestion under the mouse pointer. */\n focusOnHover = input(true, { transform: booleanAttribute });\n /** Auto-flip the panel above the input when space is lacking below. */\n autoFlip = input(true, { transform: booleanAttribute });\n /** Extra class(es) applied to the suggestions panel. */\n panelStyleClass = input<string>();\n\n /** Message shown when a query returns no suggestion. */\n emptyMessage = input<string>('Aucun résultat');\n /** Accessible label of each tag's remove action — `{0}` is the tag label. */\n removeTagLabel = input<string>('Supprimer {0}');\n\n /** Emitted when a tag is added. */\n tagAdd = output<InputTagsAddEvent>();\n /** Emitted when a tag is removed. */\n tagRemove = output<InputTagsRemoveEvent>();\n /** Emitted whenever the model changes. */\n valueChange = output<T[]>();\n /** Emitted (debounced) when a typeahead query should run. */\n completeMethod = output<InputTagsCompleteEvent>();\n /** Emitted when a suggestion is selected. */\n optionSelect = output<InputTagsSelectEvent>();\n /** Emitted when the suggestions panel opens. */\n opened = output<void>();\n /** Emitted when the suggestions panel closes. */\n closed = output<void>();\n /** Emitted when the input receives focus. */\n inputFocus = output<FocusEvent>();\n /** Emitted when the input loses focus. */\n inputBlur = output<FocusEvent>();\n\n /** Custom tag template: `<ng-template #item let-value let-remove=\"onRemove\">`. */\n protected readonly itemTemplate = contentChild<TemplateRef<InputTagsItemContext<T>>>('item');\n /** Custom suggestion template: `<ng-template #option let-option>`. */\n protected readonly optionTemplate = contentChild<TemplateRef<InputTagsOptionContext<T>>>('option');\n /** Custom group-header template: `<ng-template #group let-group>`. */\n protected readonly groupTemplate = contentChild<TemplateRef<InputTagsGroupContext>>('group');\n\n /** @ignore Component root (overlay origin). */\n private readonly containerEl = viewChild.required<ElementRef<HTMLElement>>('container');\n /** @ignore Editable input. */\n private readonly inputEl = viewChild<ElementRef<HTMLInputElement>>('inputEl');\n /** @ignore Panel root element. */\n private readonly panelEl = viewChild<ElementRef<HTMLElement>>('panel');\n /** @ignore Tag option elements (roving focus). `read: ElementRef` covers both the\n * plain `<span>` (template mode) and the `<ui-chip>` host (default mode). */\n private readonly tagEls = viewChildren('tagEl', { read: ElementRef });\n\n /** @ignore */\n protected readonly panelOpen = signal(false);\n /** @ignore */\n protected readonly overlayOrigin = signal<Element | null>(null);\n /** @ignore */\n protected readonly overlayWidth = signal<number | null>(null);\n /** @ignore Text currently typed in the input. */\n protected readonly inputText = signal('');\n /** @ignore Index of the roving-focused tag (-1 = the input holds focus). */\n protected readonly focusedTag = signal(-1);\n /** @ignore Index of the visually focused suggestion (-1 = none). */\n protected readonly focusedOption = signal(-1);\n /** @ignore A query has been emitted and is awaiting fresh suggestions. */\n private queryDirty = false;\n /** @ignore Debounce handle for `completeMethod`. */\n private searchTimeout: ReturnType<typeof setTimeout> | undefined;\n\n constructor() {\n super();\n\n // Never carry an open panel over to the next page (the field can live in\n // an app shell that survives the navigation).\n closeOnNavigation(() => this.close(false));\n\n if (isDevMode()) {\n effect(() => {\n if (!this.label() && !this.ariaLabel() && !this.ariaLabelledBy()) {\n warnMissingAccessibleName(\n 'ui-input-tags',\n 'Field has no accessible name: provide `label`, `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n }\n }\n\n // --- Derived state -----------------------------------------------------\n\n /** @ignore Current tags. */\n protected readonly tagValues = computed<T[]>(() => this.modelValue() ?? []);\n /** @ignore Tags as display rows (value + resolved label). */\n protected readonly tagRows = computed(() =>\n this.tagValues().map((value, index) => {\n const label = this.labelOfValue(value);\n return { value, index, label, removeAriaLabel: formatLabel(this.removeTagLabel(), label) };\n }),\n );\n /** @ignore */\n protected readonly listboxId = computed(() => `${this.resolvedId()}-tags`);\n /** @ignore */\n protected readonly panelListId = computed(() => `${this.resolvedId()}-list`);\n /** @ignore Icon size aligned with the field size. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n /** @ignore Tags can be removed (not disabled / read-only). */\n protected readonly canRemove = computed(() => !this.isDisabled() && !this.readonly());\n /** @ignore The tag cap has been reached. */\n protected readonly isFull = computed(() => {\n const max = this.max();\n return max != null && max > 0 && this.tagValues().length >= max;\n });\n /** @ignore The input accepts typing. */\n protected readonly canType = computed(() => !this.isDisabled() && !this.readonly() && !this.isFull());\n /** @ignore The placeholder is shown only while there is no tag. */\n protected readonly effectivePlaceholder = computed(() => (this.tagValues().length ? '' : (this.placeholder() ?? '')));\n\n /** @ignore Flat entries (no groups). */\n private readonly flatEntries = computed<TagEntry[]>(() => {\n if (this.group()) return this.groupEntries().flatMap((g) => g.entries);\n return (this.suggestions() ?? []).map((option) => this.toEntry(option));\n });\n\n /** @ignore Groups of entries. */\n private readonly groupEntries = computed<TagGroupEntry[]>(() => {\n if (!this.group()) return [];\n return (this.suggestions() ?? []).map((groupOption) => {\n const children = this.getField(groupOption, this.optionGroupChildren());\n return {\n label: this.asText(this.getField(groupOption, this.optionGroupLabel())) ?? '',\n original: groupOption,\n entries: (Array.isArray(children) ? children : []).map((option) => this.toEntry(option)),\n };\n });\n });\n\n /** @ignore Rendered suggestion rows (already-added values are marked present/disabled). */\n protected readonly visibleRows = computed<TagRow[]>(() => {\n const rows: TagRow[] = [];\n let index = 0;\n const pushOption = (entry: TagEntry): void => {\n const present = this.isPresent(entry.value);\n rows.push({\n kind: 'option',\n key: `${this.panelListId()}-${index}`,\n id: `${this.resolvedId()}-option-${index}`,\n index,\n entry: { ...entry, disabled: entry.disabled || (present && !this.allowDuplicate()) },\n present,\n });\n index++;\n };\n\n if (this.group()) {\n this.groupEntries().forEach((g, gi) => {\n if (!g.entries.length) return;\n rows.push({ kind: 'group', key: `${this.panelListId()}-group-${gi}`, label: g.label, original: g.original });\n g.entries.forEach(pushOption);\n });\n } else {\n this.flatEntries().forEach(pushOption);\n }\n return rows;\n });\n\n /** @ignore Visible option rows only (visual-focus space). */\n protected readonly visibleOptions = computed(() =>\n this.visibleRows().filter((r): r is Extract<TagRow, { kind: 'option' }> => r.kind === 'option'),\n );\n\n /** @ignore */\n protected readonly optionCount = computed(() => this.visibleOptions().length);\n /** @ignore */\n protected readonly showEmpty = computed(() => this.panelOpen() && !this.visibleRows().length);\n\n /** @ignore id of the visually focused suggestion (aria-activedescendant). */\n protected readonly activeDescendant = computed(() => {\n if (!this.panelOpen()) return null;\n return this.visibleOptions()[this.focusedOption()]?.id ?? null;\n });\n\n /** @ignore */\n protected readonly overlayPositions = computed(() => dropdownOverlayPositions(this.autoFlip()));\n\n // --- CVA -----------------------------------------------------------------\n\n override writeValue(value: T[]): void {\n this.modelValue.set(Array.isArray(value) ? value : []);\n }\n\n /** Moves focus to the input. */\n focus(options?: FocusOptions): void {\n this.inputEl()?.nativeElement.focus(options);\n }\n\n // --- Tag mutations -------------------------------------------------------\n\n /** @ignore Add one value as a tag (respects `max` and `allowDuplicate`). Returns true if added. */\n private addValue(value: T, event: Event): boolean {\n if (!this.canType()) return false;\n if (!this.allowDuplicate() && this.isPresent(value)) return false;\n this.commit([...this.tagValues(), value]);\n this.tagAdd.emit({ originalEvent: event, value });\n return true;\n }\n\n /** @ignore Add the typed text (or its delimiter-split parts) as tag(s). */\n private addFromInput(event: Event): void {\n const parts = this.split(this.inputText())\n .map((p) => p.trim())\n .filter(Boolean);\n let added = false;\n for (const part of parts) {\n if (this.addValue(part as T, event)) added = true;\n if (this.isFull()) break;\n }\n if (added || parts.length) this.inputText.set('');\n }\n\n /** Removes the tag at `index`. */\n removeAt(index: number, event: Event): void {\n if (this.isDisabled() || this.readonly()) return;\n const tags = this.tagValues();\n if (index < 0 || index >= tags.length) return;\n const value = tags[index];\n this.commit(tags.filter((_, i) => i !== index));\n this.tagRemove.emit({ originalEvent: event, value, index });\n // Keep the roving focus coherent after removal.\n const nextCount = tags.length - 1;\n if (nextCount === 0) this.focusInput();\n else this.focusTag(Math.min(index, nextCount - 1));\n }\n\n /** @ignore Propagate a user-driven value change (view → form). */\n private commit(value: T[]): void {\n this.modelValue.set(value);\n this.emitChange(value);\n this.valueChange.emit(value);\n }\n\n // --- Input interactions --------------------------------------------------\n\n /** @ignore */\n protected onInput(event: Event): void {\n const value = (event.target as HTMLInputElement).value;\n this.inputText.set(value);\n\n // A typed delimiter flushes the completed part(s) into tags.\n if (this.delimiter() && this.split(value).length > 1) {\n this.flushDelimited(event);\n return;\n }\n\n if (!this.typeahead()) return;\n\n if (this.searchTimeout) clearTimeout(this.searchTimeout);\n const query = this.inputText();\n if (query.length < this.minLength()) {\n this.close(false);\n return;\n }\n this.focusedOption.set(-1);\n this.searchTimeout = setTimeout(() => this.runSearch(event, query), this.delay());\n }\n\n /** @ignore Split the text, add every completed part, keep the trailing remainder in the input. */\n private flushDelimited(event: Event): void {\n const parts = this.split(this.inputText());\n const remainder = parts.pop() ?? '';\n parts.map((p) => p.trim()).filter(Boolean).forEach((p) => this.addValue(p as T, event));\n this.inputText.set(remainder);\n }\n\n /** @ignore */\n protected onKeydown(event: KeyboardEvent): void {\n if (this.isDisabled() || this.readonly()) return;\n const input = this.inputEl()?.nativeElement;\n const atStart = !input || (input.selectionStart === 0 && input.selectionEnd === 0);\n\n switch (event.key) {\n case 'Enter':\n event.preventDefault();\n if (this.panelOpen() && this.focusedOption() !== -1) this.selectFocusedOption(event);\n else this.addFromInput(event);\n return;\n case 'Backspace':\n if (this.inputText().length === 0 && this.tagValues().length) {\n event.preventDefault();\n this.removeAt(this.tagValues().length - 1, event);\n }\n return;\n case 'ArrowLeft':\n if (atStart && this.tagValues().length) {\n event.preventDefault();\n this.focusTag(this.tagValues().length - 1);\n }\n return;\n case 'ArrowDown':\n if (this.typeahead()) {\n event.preventDefault();\n this.panelOpen() ? this.moveOption(1) : this.reopen();\n }\n return;\n case 'ArrowUp':\n if (this.typeahead() && this.panelOpen()) {\n event.preventDefault();\n this.moveOption(-1);\n }\n return;\n case 'Escape':\n if (this.panelOpen()) {\n event.preventDefault();\n event.stopPropagation();\n this.close();\n }\n return;\n case 'Tab':\n if (this.addOnTab() && this.inputText().trim()) {\n event.preventDefault();\n this.addFromInput(event);\n }\n if (this.panelOpen()) this.close(false);\n return;\n default:\n return;\n }\n }\n\n /** @ignore */\n protected onPaste(event: ClipboardEvent): void {\n if (!this.addOnPaste() || !this.canType()) return;\n const text = event.clipboardData?.getData('text') ?? '';\n if (!text) return;\n event.preventDefault();\n const parts = (this.delimiter() ? this.split(text) : text.split(/[\\r\\n\\t,;]+/))\n .map((p) => p.trim())\n .filter(Boolean);\n for (const part of parts) {\n this.addValue(part as T, event);\n if (this.isFull()) break;\n }\n }\n\n /** @ignore */\n protected onInputFocus(event: FocusEvent): void {\n if (this.isDisabled()) return;\n this.focusedTag.set(-1);\n if (this.typeahead() && !this.queryDirty && this.completeOnFocus()) this.runSearch(event, this.inputText());\n this.inputFocus.emit(event);\n }\n\n /** @ignore */\n protected onInputBlur(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n const insideComponent = this.containerEl().nativeElement.contains(next);\n const insidePanel = this.panelEl()?.nativeElement.contains(next);\n if (!insideComponent && !insidePanel) {\n if (this.addOnBlur() && this.inputText().trim()) this.addFromInput(event);\n this.emitTouch();\n }\n this.inputBlur.emit(event);\n }\n\n /** @ignore Focus / clicks on the field box (but not a tag / button) land on the input. */\n protected onBoxMousedown(event: MouseEvent): void {\n const target = event.target as HTMLElement;\n if (target.closest('button') || target.closest('.ui-input-tags-tag') || target.closest('input')) return;\n event.preventDefault();\n this.focusInput();\n }\n\n // --- Roving tag focus ----------------------------------------------------\n\n /** @ignore */\n protected onTagKeydown(event: KeyboardEvent, index: number): void {\n if (this.isDisabled() || this.readonly()) return;\n switch (event.key) {\n case 'ArrowLeft':\n event.preventDefault();\n if (index > 0) this.focusTag(index - 1);\n return;\n case 'ArrowRight':\n event.preventDefault();\n if (index < this.tagValues().length - 1) this.focusTag(index + 1);\n else this.focusInput();\n return;\n case 'Backspace':\n case 'Delete':\n event.preventDefault();\n this.removeAt(index, event);\n return;\n case 'Home':\n event.preventDefault();\n this.focusTag(0);\n return;\n case 'End':\n event.preventDefault();\n this.focusTag(this.tagValues().length - 1);\n return;\n default:\n return;\n }\n }\n\n /** @ignore */\n private focusTag(index: number): void {\n this.focusedTag.set(index);\n setTimeout(() => this.tagEls()[index]?.nativeElement.focus());\n }\n\n /** @ignore */\n private focusInput(): void {\n this.focusedTag.set(-1);\n this.focus();\n }\n\n // --- Typeahead panel -----------------------------------------------------\n\n /** @ignore */\n private runSearch(event: Event, query: string): void {\n this.queryDirty = true;\n this.completeMethod.emit({ originalEvent: event, query });\n this.open();\n }\n\n /** @ignore */\n private open(): void {\n if (!this.canType() || this.panelOpen()) return;\n const origin =\n this.containerEl().nativeElement.querySelector('.ui-field-box') ?? this.containerEl().nativeElement;\n this.overlayOrigin.set(origin);\n this.overlayWidth.set(origin.getBoundingClientRect().width);\n this.focusedOption.set(this.autoOptionFocus() ? this.visibleOptions().findIndex((o) => !o.entry.disabled) : -1);\n this.panelOpen.set(true);\n this.opened.emit();\n }\n\n /** @ignore */\n protected close(focusInput = true): void {\n if (!this.panelOpen()) return;\n this.panelOpen.set(false);\n this.focusedOption.set(-1);\n this.queryDirty = false;\n this.closed.emit();\n if (focusInput) this.focus();\n }\n\n /** @ignore */\n private reopen(): void {\n if (!this.visibleRows().length) return;\n this.open();\n if (this.focusedOption() === -1) this.moveOption(1);\n }\n\n /** @ignore */\n protected onOptionClick(row: Extract<TagRow, { kind: 'option' }>, event: Event): void {\n event.preventDefault();\n this.selectRow(row, event);\n }\n\n /** @ignore Keep focus on the input when clicking an option. */\n protected onOptionMousedown(event: MouseEvent): void {\n event.preventDefault();\n }\n\n /** @ignore */\n protected onOptionMouseEnter(row: Extract<TagRow, { kind: 'option' }>): void {\n if (this.focusOnHover() && !row.entry.disabled) this.focusedOption.set(row.index);\n }\n\n /** @ignore */\n private selectRow(row: Extract<TagRow, { kind: 'option' }>, event: Event): void {\n if (row.entry.disabled) return;\n if (this.addValue(row.entry.value as T, event)) {\n this.optionSelect.emit({ originalEvent: event, value: row.entry.original });\n }\n this.inputText.set('');\n this.close();\n }\n\n /** @ignore */\n private selectFocusedOption(event: Event): void {\n const row = this.visibleOptions()[this.focusedOption()];\n if (row) this.selectRow(row, event);\n else this.addFromInput(event);\n }\n\n /** @ignore Move the visual focus, skipping disabled options (no wrap). */\n private moveOption(delta: 1 | -1): void {\n const options = this.visibleOptions();\n if (!options.length) return;\n let i = this.focusedOption();\n if (i === -1) i = delta === 1 ? -1 : options.length;\n for (i += delta; i >= 0 && i < options.length; i += delta) {\n if (!options[i].entry.disabled) {\n this.focusedOption.set(i);\n this.scrollOptionIntoView(options[i].id);\n return;\n }\n }\n }\n\n /** @ignore */\n private scrollOptionIntoView(id: string): void {\n this.panelEl()?.nativeElement.querySelector(`[id=\"${id}\"]`)?.scrollIntoView({ block: 'nearest' });\n }\n\n // --- Option resolution ---------------------------------------------------\n\n /** @ignore Display label for a tag value. */\n private labelOfValue(value: unknown): string {\n if (value === null || value === undefined) return '';\n const entry = this.flatEntries().find((e) => this.equals(e.value, value));\n if (entry) return entry.label;\n return this.resolveLabel(value) ?? this.asText(value) ?? '';\n }\n\n /** @ignore Shared option resolution (see `option-resolver.ts`). */\n private readonly resolver = createOptionResolver({\n optionValue: this.optionValue,\n optionLabel: this.optionLabel,\n optionDisabled: this.optionDisabled,\n dataKey: this.dataKey,\n });\n\n /** @ignore */\n private toEntry(option: unknown): TagEntry {\n return this.resolver.toEntry(option);\n }\n\n /** @ignore Read a (dot-path) field from an object. */\n private getField(target: unknown, path: string | undefined): unknown {\n return this.resolver.getField(target, path);\n }\n\n /** @ignore */\n private resolveValue(option: unknown): unknown {\n return this.resolver.resolveValue(option);\n }\n\n /** @ignore */\n private resolveLabel(option: unknown): string | null {\n return this.resolver.resolveLabel(option);\n }\n\n /** @ignore */\n private asText(value: unknown): string | null {\n return this.resolver.asText(value);\n }\n\n /** @ignore Whether a value is already a tag. */\n private isPresent(value: unknown): boolean {\n return this.tagValues().some((v) => this.equals(v, value));\n }\n\n /** @ignore Value equality — by `dataKey` for objects, strict otherwise. */\n private equals(a: unknown, b: unknown): boolean {\n return this.resolver.equals(a, b);\n }\n\n /** @ignore Split text by the delimiter (string or regex); whole text when none. */\n private split(text: string): string[] {\n const d = this.delimiter();\n if (!d) return [text];\n return text.split(d as string | RegExp);\n }\n}\n","<!-- One suggestion row (typeahead): group header or option. -->\n<ng-template #rowTpl let-row>\n @if (row.kind === 'group') {\n <li class=\"ui-input-tags-group\" role=\"presentation\" [class._small]=\"size() === 'small'\">\n @if (groupTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: row.original, group: row.original }\" />\n } @else {\n {{ row.label }}\n }\n </li>\n } @else {\n <!-- ARIA combobox/listbox pattern: keyboard and focus are handled by\n the input role=\"combobox\" (roving via aria-activedescendant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <li\n class=\"ui-input-tags-option\"\n role=\"option\"\n [attr.id]=\"row.id\"\n [class._small]=\"size() === 'small'\"\n [class._present]=\"row.present\"\n [class._focused]=\"row.index === focusedOption()\"\n [class._disabled]=\"row.entry.disabled\"\n [attr.aria-selected]=\"row.present\"\n [attr.aria-disabled]=\"row.entry.disabled || null\"\n [attr.aria-setsize]=\"optionCount()\"\n [attr.aria-posinset]=\"row.index + 1\"\n (mousedown)=\"onOptionMousedown($event)\"\n (click)=\"onOptionClick(row, $event)\"\n (mouseenter)=\"onOptionMouseEnter(row)\"\n >\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row.entry.original, option: row.entry.original, index: row.index }\"\n />\n } @else {\n <span class=\"ui-input-tags-option-label\">{{ row.entry.label }}</span>\n }\n @if (row.present) {\n <ui-icon class=\"ui-input-tags-option-check\" name=\"check\" [size]=\"iconSize()\" />\n }\n </li>\n }\n</ng-template>\n\n<!-- Suggestions panel (CDK overlay, typeahead). -->\n<ng-template #panelTpl>\n <div\n #panel\n class=\"ui-input-tags-panel\"\n [class]=\"panelStyleClass()\"\n [class._small]=\"size() === 'small'\"\n [style.width.px]=\"overlayWidth()\"\n [uiMotion]=\"'slide-down'\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n >\n <div class=\"ui-input-tags-scroller\" [class._small]=\"size() === 'small'\" [style.max-height]=\"scrollHeight() || null\">\n <ul\n class=\"ui-input-tags-list\"\n role=\"listbox\"\n [attr.id]=\"panelListId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n @for (row of visibleRows(); track row.key) {\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n } @empty {\n <li class=\"ui-input-tags-empty\" role=\"presentation\">{{ emptyMessage() }}</li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<!-- Field shell: label + box (tags listbox + input) + helper. -->\n<div #container class=\"ui-input-tags\">\n <ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [autoHeight]=\"true\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n >\n <div class=\"ui-input-tags-control\" (mousedown)=\"onBoxMousedown($event)\">\n <!-- The listbox wraps ONLY the option tags (a listbox may not contain a textbox);\n `display: contents` keeps tags and input flowing on the same wrapped lines. -->\n <div\n class=\"ui-input-tags-list\"\n role=\"listbox\"\n aria-orientation=\"horizontal\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n >\n @for (tag of tagRows(); track $index) {\n @if (itemTemplate(); as tpl) {\n <!-- Template mode: a bare option wrapper hosts the custom tag content. -->\n <span\n #tagEl\n class=\"ui-input-tags-tag _custom\"\n [class._disabled]=\"isDisabled()\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: tag.value, value: tag.value, label: tag.label, index: tag.index, onRemove: removeAt.bind(this, tag.index) }\"\n />\n </span>\n } @else {\n <!-- Default mode: the tag is a ui-chip that IS the roving option. -->\n <ui-chip\n #tagEl\n class=\"ui-input-tags-tag\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [label]=\"tag.label\"\n [level]=\"chipLevel()\"\n [subLevel]=\"chipSubLevel()\"\n size=\"small\"\n [rounded]=\"chipRounded()\"\n [disabled]=\"isDisabled()\"\n [removable]=\"canRemove()\"\n [removeTabindex]=\"-1\"\n [removeAriaLabel]=\"tag.removeAriaLabel\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n (remove)=\"removeAt(tag.index, $event)\"\n />\n }\n }\n </div>\n\n <input\n #inputEl\n type=\"text\"\n class=\"ui-input-tags-input\"\n [class._small]=\"size() === 'small'\"\n autocomplete=\"off\"\n [id]=\"resolvedId()\"\n [value]=\"inputText()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly() || isFull()\"\n [attr.name]=\"name() || null\"\n [attr.maxlength]=\"maxLength() ?? null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.role]=\"typeahead() ? 'combobox' : null\"\n [attr.aria-autocomplete]=\"typeahead() ? 'list' : null\"\n [attr.aria-haspopup]=\"typeahead() ? 'listbox' : null\"\n [attr.aria-expanded]=\"typeahead() ? panelOpen() : null\"\n [attr.aria-controls]=\"typeahead() && panelOpen() ? panelListId() : null\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (paste)=\"onPaste($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n />\n </div>\n </ui-field>\n</div>\n\n@if (typeahead()) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"close(false)\"\n (detach)=\"close(false)\"\n >\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n </ng-template>\n}\n","/*\n * Public API Surface of ui-kit/ui-input-tags\n */\n\nexport * from './lib/ui-input-tags';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAyHA;;;;;;;;;;;;;;;;;;;;AAoBG;AAQG,MAAO,WAAyB,SAAQ,aAAkB,CAAA;AAsH9D,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;AArHT,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAAU;;QAE7B,IAAA,CAAA,GAAG,GAAG,KAAK,CAAkB,SAAS,2EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;AAEvE,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAgB;;QAEjC,IAAA,CAAA,cAAc,GAAG,KAAK,CAAC,KAAK,sFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAE9D,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAEzD,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAExD,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAE1D,IAAA,CAAA,SAAS,GAAG,KAAK,CAAkB,SAAS,iFAAI,SAAS,EAAE,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AAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AExPtE;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { input, output, viewChild, computed, forwardRef, Component } from '@angular/core';
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { BaseFormField } from '@4sh/ui-kit/forms';
|
|
5
|
-
import { UiField } from '@4sh/ui-kit/ui-field';
|
|
6
|
-
import { UiIcon } from '@4sh/ui-kit/ui-icon';
|
|
5
|
+
import { UiField } from '@4sh/ui-kit/forms/ui-field';
|
|
6
|
+
import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* ui-input — headless composed text field, built on the `ui-field` shell
|
|
@@ -101,10 +101,10 @@ class UiInput extends BaseFormField {
|
|
|
101
101
|
this.emitTouch();
|
|
102
102
|
this.inputBlur.emit(event);
|
|
103
103
|
}
|
|
104
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
105
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
104
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
105
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiInput, isStandalone: true, selector: "ui-input", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaHasPopup: { classPropertyName: "ariaHasPopup", publicName: "ariaHasPopup", isSignal: true, isRequired: false, transformFunction: null }, ariaExpanded: { classPropertyName: "ariaExpanded", publicName: "ariaExpanded", isSignal: true, isRequired: false, transformFunction: null }, ariaControls: { classPropertyName: "ariaControls", publicName: "ariaControls", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, iconRightAriaLabel: { classPropertyName: "iconRightAriaLabel", publicName: "iconRightAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, maxlength: { classPropertyName: "maxlength", publicName: "maxlength", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", iconRightClick: "iconRightClick", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInput), multi: true }], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n>\n @if (iconLeft(); as name) {\n <ui-icon uiFieldPrefix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n\n <input\n #inputEl\n class=\"ui-input-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"type()\"\n [id]=\"resolvedId()\"\n [value]=\"value() ?? displayValue()\"\n [placeholder]=\"placeholder() ?? ''\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [attr.maxlength]=\"maxlength()\"\n [attr.aria-haspopup]=\"ariaHasPopup() || null\"\n [attr.aria-expanded]=\"ariaExpanded() ?? null\"\n [attr.aria-controls]=\"ariaControls() || null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (unit(); as u) {\n <span uiFieldSuffix class=\"ui-input-unit\" [class._small]=\"size() === 'small'\" [class._disabled]=\"isDisabled()\">{{ u }}</span>\n }\n\n @if (iconRight(); as name) {\n @if (hasRightAction()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-input-action\"\n [attr.aria-label]=\"iconRightAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"iconRightClick.emit($event)\"\n >\n <ui-icon [name]=\"name\" [size]=\"iconSize()\" />\n </button>\n } @else {\n <ui-icon uiFieldSuffix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n }\n</ui-field>\n", styles: [".ui-input-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-input-native:first-child{padding-inline-start:var(--units-md)}.ui-input-native:last-child{padding-inline-end:var(--units-md)}.ui-input-native::placeholder{color:var(--form-low-content-default);opacity:1}.ui-input-native:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-input-native._small{font-size:var(--size-typography-text-md)}.ui-input-icon{flex-shrink:0;color:var(--form-low-content-default)}.ui-input-icon:first-child{margin-inline-start:var(--units-md)}.ui-input-icon:last-child{margin-inline-end:var(--units-md)}.ui-input-icon._disabled{color:var(--form-high-content-disabled)}.ui-input-unit{flex-shrink:0;color:var(--form-low-content-default)}.ui-input-unit:first-child{margin-inline-start:var(--units-md)}.ui-input-unit:last-child{margin-inline-end:var(--units-md)}.ui-input-unit._disabled{color:var(--form-high-content-disabled)}.ui-input-unit{font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);white-space:nowrap;-webkit-user-select:none;user-select:none}.ui-input-unit._small{font-size:var(--size-typography-text-md)}.ui-input-action{display:flex;align-items:center;justify-content:center;align-self:stretch;aspect-ratio:1;flex-shrink:0;padding:0;border:none;background:none;border-radius:0 calc(var(--radius-sm) - var(--stroke-default)) calc(var(--radius-sm) - var(--stroke-default)) 0;color:var(--form-low-content-default);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),background-color var(--transition-default) var(--transition-easeinout)}.ui-input-action:hover:not(:disabled){color:var(--form-high-content-hover);background-color:var(--form-high-surface-hover)}.ui-input-action:focus-visible{outline:none;color:var(--form-high-content-focused);background-color:var(--form-high-surface-focused)}.ui-input-action:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}\n"], dependencies: [{ kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "hasFooter"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
106
106
|
}
|
|
107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiInput, decorators: [{
|
|
108
108
|
type: Component,
|
|
109
109
|
args: [{ selector: 'ui-input', imports: [UiField, UiIcon], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiInput), multi: true }], template: "<ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n>\n @if (iconLeft(); as name) {\n <ui-icon uiFieldPrefix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n\n <input\n #inputEl\n class=\"ui-input-native\"\n [class._small]=\"size() === 'small'\"\n [type]=\"type()\"\n [id]=\"resolvedId()\"\n [value]=\"value() ?? displayValue()\"\n [placeholder]=\"placeholder() ?? ''\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.autocomplete]=\"autocomplete() || null\"\n [attr.maxlength]=\"maxlength()\"\n [attr.aria-haspopup]=\"ariaHasPopup() || null\"\n [attr.aria-expanded]=\"ariaExpanded() ?? null\"\n [attr.aria-controls]=\"ariaControls() || null\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput()\"\n (focus)=\"inputFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n\n @if (unit(); as u) {\n <span uiFieldSuffix class=\"ui-input-unit\" [class._small]=\"size() === 'small'\" [class._disabled]=\"isDisabled()\">{{ u }}</span>\n }\n\n @if (iconRight(); as name) {\n @if (hasRightAction()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-input-action\"\n [attr.aria-label]=\"iconRightAriaLabel()\"\n [disabled]=\"isDisabled()\"\n (click)=\"iconRightClick.emit($event)\"\n >\n <ui-icon [name]=\"name\" [size]=\"iconSize()\" />\n </button>\n } @else {\n <ui-icon uiFieldSuffix class=\"ui-input-icon\" [class._disabled]=\"isDisabled()\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n }\n</ui-field>\n", styles: [".ui-input-native{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-input-native:first-child{padding-inline-start:var(--units-md)}.ui-input-native:last-child{padding-inline-end:var(--units-md)}.ui-input-native::placeholder{color:var(--form-low-content-default);opacity:1}.ui-input-native:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-input-native._small{font-size:var(--size-typography-text-md)}.ui-input-icon{flex-shrink:0;color:var(--form-low-content-default)}.ui-input-icon:first-child{margin-inline-start:var(--units-md)}.ui-input-icon:last-child{margin-inline-end:var(--units-md)}.ui-input-icon._disabled{color:var(--form-high-content-disabled)}.ui-input-unit{flex-shrink:0;color:var(--form-low-content-default)}.ui-input-unit:first-child{margin-inline-start:var(--units-md)}.ui-input-unit:last-child{margin-inline-end:var(--units-md)}.ui-input-unit._disabled{color:var(--form-high-content-disabled)}.ui-input-unit{font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);white-space:nowrap;-webkit-user-select:none;user-select:none}.ui-input-unit._small{font-size:var(--size-typography-text-md)}.ui-input-action{display:flex;align-items:center;justify-content:center;align-self:stretch;aspect-ratio:1;flex-shrink:0;padding:0;border:none;background:none;border-radius:0 calc(var(--radius-sm) - var(--stroke-default)) calc(var(--radius-sm) - var(--stroke-default)) 0;color:var(--form-low-content-default);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),background-color var(--transition-default) var(--transition-easeinout)}.ui-input-action:hover:not(:disabled){color:var(--form-high-content-hover);background-color:var(--form-high-surface-hover)}.ui-input-action:focus-visible{outline:none;color:var(--form-high-content-focused);background-color:var(--form-high-surface-focused)}.ui-input-action:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}\n"] }]
|
|
110
110
|
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], ariaHasPopup: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaHasPopup", required: false }] }], ariaExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaExpanded", required: false }] }], ariaControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaControls", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], unit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unit", required: false }] }], iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], iconRight: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRight", required: false }] }], iconRightAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRightAriaLabel", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], maxlength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxlength", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], iconRightClick: [{ type: i0.Output, args: ["iconRightClick"] }], inputFocus: [{ type: i0.Output, args: ["inputFocus"] }], inputBlur: [{ type: i0.Output, args: ["inputBlur"] }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }] } });
|
|
@@ -118,4 +118,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
118
118
|
*/
|
|
119
119
|
|
|
120
120
|
export { UiInput };
|
|
121
|
-
//# sourceMappingURL=4sh-ui-kit-ui-input.mjs.map
|
|
121
|
+
//# sourceMappingURL=4sh-ui-kit-forms-ui-input.mjs.map
|