@tectra-ng/ui 0.2.6 → 0.3.1
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/fesm2022/tectra-ng-ui-accordion.mjs +25 -7
- package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-amount.mjs +8 -2
- package/fesm2022/tectra-ng-ui-amount.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-analog-clock.mjs +4 -2
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +18 -3
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-avatar.mjs +27 -4
- package/fesm2022/tectra-ng-ui-avatar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-badge.mjs +8 -2
- package/fesm2022/tectra-ng-ui-badge.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs +19 -8
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-button.mjs +17 -4
- package/fesm2022/tectra-ng-ui-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-card.mjs +8 -2
- package/fesm2022/tectra-ng-ui-card.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-carousel.mjs +13 -2
- package/fesm2022/tectra-ng-ui-carousel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +19 -3
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-checkbox.mjs +19 -4
- package/fesm2022/tectra-ng-ui-checkbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chip.mjs +13 -5
- package/fesm2022/tectra-ng-ui-chip.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +23 -5
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +15 -3
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-confirm.mjs +17 -2
- package/fesm2022/tectra-ng-ui-confirm.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-countdown.mjs +8 -2
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country-select.mjs +4 -0
- package/fesm2022/tectra-ng-ui-country-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-country.mjs +16 -3
- package/fesm2022/tectra-ng-ui-country.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-data-view.mjs +16 -3
- package/fesm2022/tectra-ng-ui-data-view.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-datepicker.mjs +22 -3
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-dialog.mjs +33 -5
- package/fesm2022/tectra-ng-ui-dialog.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-divider.mjs +4 -2
- package/fesm2022/tectra-ng-ui-divider.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs +8 -2
- package/fesm2022/tectra-ng-ui-email-suggestion.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-export.mjs +32 -6
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs +7 -2
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-fieldset.mjs +8 -3
- package/fesm2022/tectra-ng-ui-fieldset.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-file-upload.mjs +24 -3
- package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-galleria.mjs +14 -3
- package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-highlight-text.mjs +4 -2
- package/fesm2022/tectra-ng-ui-highlight-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-icon-field.mjs +25 -2
- package/fesm2022/tectra-ng-ui-icon-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-image.mjs +16 -3
- package/fesm2022/tectra-ng-ui-image.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-group.mjs +9 -0
- package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-mask.mjs +4 -2
- package/fesm2022/tectra-ng-ui-input-mask.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-number.mjs +21 -4
- package/fesm2022/tectra-ng-ui-input-number.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input-otp.mjs +8 -2
- package/fesm2022/tectra-ng-ui-input-otp.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input.mjs +8 -2
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-key-filter.mjs +4 -2
- package/fesm2022/tectra-ng-ui-key-filter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-knob.mjs +11 -2
- package/fesm2022/tectra-ng-ui-knob.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-label.mjs +19 -1
- package/fesm2022/tectra-ng-ui-label.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-link.mjs +22 -4
- package/fesm2022/tectra-ng-ui-link.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-list-input.mjs +18 -2
- package/fesm2022/tectra-ng-ui-list-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-listbox.mjs +17 -3
- package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs +12 -2
- package/fesm2022/tectra-ng-ui-mention-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menu.mjs +26 -6
- package/fesm2022/tectra-ng-ui-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menubar.mjs +14 -3
- package/fesm2022/tectra-ng-ui-menubar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-message.mjs +25 -5
- package/fesm2022/tectra-ng-ui-message.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-month-calendar.mjs +8 -2
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-multiselect.mjs +20 -3
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-overlay-badge.mjs +8 -2
- package/fesm2022/tectra-ng-ui-overlay-badge.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-paginator.mjs +17 -3
- package/fesm2022/tectra-ng-ui-paginator.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +18 -8
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel.mjs +13 -5
- package/fesm2022/tectra-ng-ui-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-password.mjs +18 -3
- package/fesm2022/tectra-ng-ui-password.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-pill.mjs +13 -5
- package/fesm2022/tectra-ng-ui-pill.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-popover.mjs +12 -4
- package/fesm2022/tectra-ng-ui-popover.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-progress-bar.mjs +8 -2
- package/fesm2022/tectra-ng-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-progress-spinner.mjs +8 -2
- package/fesm2022/tectra-ng-ui-progress-spinner.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-radio-button.mjs +14 -2
- package/fesm2022/tectra-ng-ui-radio-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-rating.mjs +16 -4
- package/fesm2022/tectra-ng-ui-rating.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs +4 -2
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-select.mjs +26 -3
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-skeleton.mjs +11 -2
- package/fesm2022/tectra-ng-ui-skeleton.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-slider.mjs +4 -2
- package/fesm2022/tectra-ng-ui-slider.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-sparkline.mjs +8 -2
- package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-speed-dial.mjs +12 -2
- package/fesm2022/tectra-ng-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-split-button.mjs +8 -2
- package/fesm2022/tectra-ng-ui-split-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-splitter.mjs +5 -2
- package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs +19 -5
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-status-icon.mjs +17 -5
- package/fesm2022/tectra-ng-ui-status-icon.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-stepper.mjs +37 -7
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-table.mjs +1180 -1262
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs +25 -4
- package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tag.mjs +19 -4
- package/fesm2022/tectra-ng-ui-tag.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-textarea.mjs +6 -2
- package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-timeline.mjs +8 -2
- package/fesm2022/tectra-ng-ui-timeline.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toast.mjs +20 -4
- package/fesm2022/tectra-ng-ui-toast.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toggle-button.mjs +7 -5
- package/fesm2022/tectra-ng-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs +6 -4
- package/fesm2022/tectra-ng-ui-toggle-switch.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-toolbar.mjs +4 -2
- package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tooltip.mjs +5 -2
- package/fesm2022/tectra-ng-ui-tooltip.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-select.mjs +23 -3
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +107 -213
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree.mjs +20 -3
- package/fesm2022/tectra-ng-ui-tree.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-truncate-text.mjs +14 -3
- package/fesm2022/tectra-ng-ui-truncate-text.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs +8 -3
- package/fesm2022/tectra-ng-ui-virtual-scroller.mjs.map +1 -1
- package/package.json +4 -4
- package/types/tectra-ng-ui-accordion.d.ts +4 -0
- package/types/tectra-ng-ui-accordion.d.ts.map +1 -1
- package/types/tectra-ng-ui-amount.d.ts +1 -0
- package/types/tectra-ng-ui-amount.d.ts.map +1 -1
- package/types/tectra-ng-ui-analog-clock.d.ts +1 -0
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -1
- package/types/tectra-ng-ui-autocomplete.d.ts +1 -0
- package/types/tectra-ng-ui-autocomplete.d.ts.map +1 -1
- package/types/tectra-ng-ui-avatar.d.ts +3 -0
- package/types/tectra-ng-ui-avatar.d.ts.map +1 -1
- package/types/tectra-ng-ui-badge.d.ts +1 -0
- package/types/tectra-ng-ui-badge.d.ts.map +1 -1
- package/types/tectra-ng-ui-breadcrumb.d.ts +1 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -1
- package/types/tectra-ng-ui-button.d.ts +1 -0
- package/types/tectra-ng-ui-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-card.d.ts +1 -0
- package/types/tectra-ng-ui-card.d.ts.map +1 -1
- package/types/tectra-ng-ui-carousel.d.ts +1 -0
- package/types/tectra-ng-ui-carousel.d.ts.map +1 -1
- package/types/tectra-ng-ui-cascade-select.d.ts +1 -0
- package/types/tectra-ng-ui-cascade-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-checkbox.d.ts +2 -0
- package/types/tectra-ng-ui-checkbox.d.ts.map +1 -1
- package/types/tectra-ng-ui-chip.d.ts +1 -0
- package/types/tectra-ng-ui-chip.d.ts.map +1 -1
- package/types/tectra-ng-ui-chips-input.d.ts +1 -0
- package/types/tectra-ng-ui-chips-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-color-picker.d.ts +1 -0
- package/types/tectra-ng-ui-color-picker.d.ts.map +1 -1
- package/types/tectra-ng-ui-confirm.d.ts +2 -0
- package/types/tectra-ng-ui-confirm.d.ts.map +1 -1
- package/types/tectra-ng-ui-countdown.d.ts +1 -0
- package/types/tectra-ng-ui-countdown.d.ts.map +1 -1
- package/types/tectra-ng-ui-country-select.d.ts +1 -0
- package/types/tectra-ng-ui-country-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-country.d.ts +1 -0
- package/types/tectra-ng-ui-country.d.ts.map +1 -1
- package/types/tectra-ng-ui-data-view.d.ts +2 -0
- package/types/tectra-ng-ui-data-view.d.ts.map +1 -1
- package/types/tectra-ng-ui-datepicker.d.ts +1 -0
- package/types/tectra-ng-ui-datepicker.d.ts.map +1 -1
- package/types/tectra-ng-ui-dialog.d.ts +7 -0
- package/types/tectra-ng-ui-dialog.d.ts.map +1 -1
- package/types/tectra-ng-ui-divider.d.ts +1 -0
- package/types/tectra-ng-ui-divider.d.ts.map +1 -1
- package/types/tectra-ng-ui-email-suggestion.d.ts +1 -0
- package/types/tectra-ng-ui-email-suggestion.d.ts.map +1 -1
- package/types/tectra-ng-ui-export.d.ts.map +1 -1
- package/types/tectra-ng-ui-field.d.ts +1 -0
- package/types/tectra-ng-ui-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-fieldset.d.ts +1 -0
- package/types/tectra-ng-ui-fieldset.d.ts.map +1 -1
- package/types/tectra-ng-ui-file-upload.d.ts +1 -0
- package/types/tectra-ng-ui-file-upload.d.ts.map +1 -1
- package/types/tectra-ng-ui-galleria.d.ts +1 -0
- package/types/tectra-ng-ui-galleria.d.ts.map +1 -1
- package/types/tectra-ng-ui-highlight-text.d.ts +1 -0
- package/types/tectra-ng-ui-highlight-text.d.ts.map +1 -1
- package/types/tectra-ng-ui-icon-field.d.ts +6 -2
- package/types/tectra-ng-ui-icon-field.d.ts.map +1 -1
- package/types/tectra-ng-ui-image.d.ts +1 -0
- package/types/tectra-ng-ui-image.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-group.d.ts +2 -0
- package/types/tectra-ng-ui-input-group.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-mask.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-number.d.ts +1 -0
- package/types/tectra-ng-ui-input-number.d.ts.map +1 -1
- package/types/tectra-ng-ui-input-otp.d.ts +1 -0
- package/types/tectra-ng-ui-input-otp.d.ts.map +1 -1
- package/types/tectra-ng-ui-input.d.ts +1 -0
- package/types/tectra-ng-ui-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-key-filter.d.ts.map +1 -1
- package/types/tectra-ng-ui-knob.d.ts +1 -0
- package/types/tectra-ng-ui-knob.d.ts.map +1 -1
- package/types/tectra-ng-ui-label.d.ts +3 -0
- package/types/tectra-ng-ui-label.d.ts.map +1 -1
- package/types/tectra-ng-ui-link.d.ts +2 -0
- package/types/tectra-ng-ui-link.d.ts.map +1 -1
- package/types/tectra-ng-ui-list-input.d.ts +1 -0
- package/types/tectra-ng-ui-list-input.d.ts.map +1 -1
- package/types/tectra-ng-ui-listbox.d.ts +1 -0
- package/types/tectra-ng-ui-listbox.d.ts.map +1 -1
- package/types/tectra-ng-ui-mention-textarea.d.ts +1 -0
- package/types/tectra-ng-ui-mention-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-menu.d.ts +4 -0
- package/types/tectra-ng-ui-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-menubar.d.ts +1 -0
- package/types/tectra-ng-ui-menubar.d.ts.map +1 -1
- package/types/tectra-ng-ui-message.d.ts +3 -0
- package/types/tectra-ng-ui-message.d.ts.map +1 -1
- package/types/tectra-ng-ui-month-calendar.d.ts +1 -0
- package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -1
- package/types/tectra-ng-ui-multiselect.d.ts +1 -0
- package/types/tectra-ng-ui-multiselect.d.ts.map +1 -1
- package/types/tectra-ng-ui-overlay-badge.d.ts +1 -0
- package/types/tectra-ng-ui-overlay-badge.d.ts.map +1 -1
- package/types/tectra-ng-ui-paginator.d.ts +1 -0
- package/types/tectra-ng-ui-paginator.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel-menu.d.ts +1 -0
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -1
- package/types/tectra-ng-ui-panel.d.ts +1 -0
- package/types/tectra-ng-ui-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-password.d.ts +1 -0
- package/types/tectra-ng-ui-password.d.ts.map +1 -1
- package/types/tectra-ng-ui-pill.d.ts +1 -0
- package/types/tectra-ng-ui-pill.d.ts.map +1 -1
- package/types/tectra-ng-ui-popover.d.ts +2 -0
- package/types/tectra-ng-ui-popover.d.ts.map +1 -1
- package/types/tectra-ng-ui-progress-bar.d.ts +1 -0
- package/types/tectra-ng-ui-progress-bar.d.ts.map +1 -1
- package/types/tectra-ng-ui-progress-spinner.d.ts +1 -0
- package/types/tectra-ng-ui-progress-spinner.d.ts.map +1 -1
- package/types/tectra-ng-ui-radio-button.d.ts +2 -0
- package/types/tectra-ng-ui-radio-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-rating.d.ts +1 -0
- package/types/tectra-ng-ui-rating.d.ts.map +1 -1
- package/types/tectra-ng-ui-scroll-panel.d.ts +1 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -1
- package/types/tectra-ng-ui-select.d.ts +3 -1
- package/types/tectra-ng-ui-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-skeleton.d.ts +2 -0
- package/types/tectra-ng-ui-skeleton.d.ts.map +1 -1
- package/types/tectra-ng-ui-slider.d.ts +1 -0
- package/types/tectra-ng-ui-slider.d.ts.map +1 -1
- package/types/tectra-ng-ui-sparkline.d.ts +1 -0
- package/types/tectra-ng-ui-sparkline.d.ts.map +1 -1
- package/types/tectra-ng-ui-speed-dial.d.ts +1 -0
- package/types/tectra-ng-ui-speed-dial.d.ts.map +1 -1
- package/types/tectra-ng-ui-split-button.d.ts +1 -0
- package/types/tectra-ng-ui-split-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-splitter.d.ts +2 -0
- package/types/tectra-ng-ui-splitter.d.ts.map +1 -1
- package/types/tectra-ng-ui-stat-tiles.d.ts +2 -0
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -1
- package/types/tectra-ng-ui-status-icon.d.ts +1 -0
- package/types/tectra-ng-ui-status-icon.d.ts.map +1 -1
- package/types/tectra-ng-ui-stepper.d.ts +7 -0
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -1
- package/types/tectra-ng-ui-table.d.ts +15 -2
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +5 -0
- package/types/tectra-ng-ui-tabs.d.ts.map +1 -1
- package/types/tectra-ng-ui-tag.d.ts +2 -0
- package/types/tectra-ng-ui-tag.d.ts.map +1 -1
- package/types/tectra-ng-ui-textarea.d.ts +2 -0
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-timeline.d.ts +1 -0
- package/types/tectra-ng-ui-timeline.d.ts.map +1 -1
- package/types/tectra-ng-ui-toast.d.ts +1 -0
- package/types/tectra-ng-ui-toast.d.ts.map +1 -1
- package/types/tectra-ng-ui-toggle-button.d.ts +1 -0
- package/types/tectra-ng-ui-toggle-button.d.ts.map +1 -1
- package/types/tectra-ng-ui-toggle-switch.d.ts +1 -0
- package/types/tectra-ng-ui-toggle-switch.d.ts.map +1 -1
- package/types/tectra-ng-ui-toolbar.d.ts +1 -0
- package/types/tectra-ng-ui-toolbar.d.ts.map +1 -1
- package/types/tectra-ng-ui-tooltip.d.ts +2 -0
- package/types/tectra-ng-ui-tooltip.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-select.d.ts +1 -0
- package/types/tectra-ng-ui-tree-select.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tree.d.ts +1 -0
- package/types/tectra-ng-ui-tree.d.ts.map +1 -1
- package/types/tectra-ng-ui-truncate-text.d.ts +1 -0
- package/types/tectra-ng-ui-truncate-text.d.ts.map +1 -1
- package/types/tectra-ng-ui-virtual-scroller.d.ts +1 -0
- package/types/tectra-ng-ui-virtual-scroller.d.ts.map +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ChangeDetectionStrategy, Component, Directive, TemplateRef, computed, contentChild, inject, input, output } from "@angular/core";
|
|
3
3
|
import { NgTemplateOutlet } from "@angular/common";
|
|
4
|
-
import {
|
|
5
|
-
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
4
|
+
import { ActivatedRoute, RouterLink } from "@angular/router";
|
|
5
|
+
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
6
6
|
import { injectTranslations } from "@tectra-ng/core/i18n";
|
|
7
7
|
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
8
|
-
import { TxIcon,
|
|
9
|
-
import { toStyleObject } from "@tectra-ng/themes";
|
|
8
|
+
import { TxIcon, injectTxIcons, provideTxIconDefaults, txIconChevronRight, txIconLink, txIconList, txIconSlash, txIconText } from "@tectra-ng/icons";
|
|
9
|
+
import { breadcrumbTokens, toStyleObject } from "@tectra-ng/themes";
|
|
10
10
|
var TxBreadcrumbItemTemplate = class TxBreadcrumbItemTemplate {
|
|
11
11
|
templateRef = inject(TemplateRef);
|
|
12
12
|
static ngTemplateContextGuard(_directive, context) {
|
|
@@ -68,9 +68,18 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
68
68
|
args: [{ selector: "ng-template[txBreadcrumbSeparator]" }]
|
|
69
69
|
}]
|
|
70
70
|
});
|
|
71
|
+
const BREADCRUMB_ICON_DEFAULTS = {
|
|
72
|
+
"chevron-right": txIconChevronRight,
|
|
73
|
+
link: txIconLink,
|
|
74
|
+
list: txIconList,
|
|
75
|
+
slash: txIconSlash,
|
|
76
|
+
text: txIconText
|
|
77
|
+
};
|
|
78
|
+
const BREADCRUMB_THEME = { breadcrumb: breadcrumbTokens };
|
|
71
79
|
var TxBreadcrumb = class TxBreadcrumb {
|
|
72
|
-
|
|
73
|
-
|
|
80
|
+
breadcrumbTheme = injectTokens(BREADCRUMB_THEME);
|
|
81
|
+
txIconRegistry = injectTxIcons();
|
|
82
|
+
hasRouter = inject(ActivatedRoute, { optional: true }) !== null;
|
|
74
83
|
model = input([], ...ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []);
|
|
75
84
|
home = input(void 0, ...ngDevMode ? [{ debugName: "home" }] : /* istanbul ignore next */ []);
|
|
76
85
|
separator = input("chevron", ...ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []);
|
|
@@ -230,7 +239,7 @@ var TxBreadcrumb = class TxBreadcrumb {
|
|
|
230
239
|
isSignal: true
|
|
231
240
|
}],
|
|
232
241
|
ngImport: i0,
|
|
233
|
-
template: "<nav class=\"tx-breadcrumb__nav\" [attr.aria-label]=\"label()\">\n <ol class=\"tx-breadcrumb__list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (entry of entries(); track $index; let index = $index, first = $first) {\n <li\n class=\"tx-breadcrumb__item\"\n [class.tx-breadcrumb__item--current]=\"entry.current\"\n [class.tx-breadcrumb__item--disabled]=\"entry.item.disabled\"\n [attr.id]=\"entry.item.id ?? null\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n >\n @if (!first) {\n <span class=\"tx-breadcrumb__separator\" aria-hidden=\"true\" [class]=\"passThrough().separator?.class\" [style]=\"passThrough().separator?.style\">\n @if (separatorTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (separator() === 'slash') {\n /\n } @else {\n <tx-icon name=\"chevron-right\" />\n }\n </span>\n }\n @switch (entry.kind) {\n @case ('router') {\n <a\n class=\"tx-breadcrumb__link\"\n [routerLink]=\"$any(entry.item.routerLink)\"\n [queryParams]=\"entry.item.queryParams\"\n [fragment]=\"entry.item.fragment\"\n [
|
|
242
|
+
template: "<nav class=\"tx-breadcrumb__nav\" [attr.aria-label]=\"label()\">\n <ol class=\"tx-breadcrumb__list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (entry of entries(); track $index; let index = $index, first = $first) {\n <li\n class=\"tx-breadcrumb__item\"\n [class.tx-breadcrumb__item--current]=\"entry.current\"\n [class.tx-breadcrumb__item--disabled]=\"entry.item.disabled\"\n [attr.id]=\"entry.item.id ?? null\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n >\n @if (!first) {\n <span class=\"tx-breadcrumb__separator\" aria-hidden=\"true\" [class]=\"passThrough().separator?.class\" [style]=\"passThrough().separator?.style\">\n @if (separatorTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (separator() === 'slash') {\n /\n } @else {\n <tx-icon name=\"chevron-right\" />\n }\n </span>\n }\n @switch (entry.kind) {\n @case ('router') {\n <a\n class=\"tx-breadcrumb__link\"\n [routerLink]=\"$any(entry.item.routerLink)\"\n [queryParams]=\"entry.item.queryParams\"\n [fragment]=\"entry.item.fragment\"\n [target]=\"entry.item.target\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('url') {\n <a\n class=\"tx-breadcrumb__link\"\n [href]=\"href(entry.item)\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.rel]=\"entry.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('command') {\n <button\n type=\"button\"\n class=\"tx-breadcrumb__link\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </button>\n }\n @default {\n <span\n class=\"tx-breadcrumb__link\"\n [attr.aria-current]=\"entry.current ? 'page' : null\"\n [attr.aria-disabled]=\"entry.item.disabled ? 'true' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </span>\n }\n }\n </li>\n }\n </ol>\n</nav>\n\n<ng-template #content let-entry let-index=\"index\">\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: entry.item, current: entry.current, index }\" />\n } @else {\n @if (entry.icon) {\n <tx-icon class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [name]=\"entry.icon\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n } @else if (entry.iconClass) {\n <span class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [class]=\"entry.iconClass + ' ' + (passThrough().icon?.class ?? '')\" [style]=\"passThrough().icon?.style\"></span>\n }\n @if (entry.item.label) {\n <span class=\"tx-breadcrumb__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ entry.item.label }}</span>\n }\n }\n</ng-template>\n",
|
|
234
243
|
styles: [":host{display:block;min-width:0}.tx-breadcrumb__nav{overflow-x:auto;scrollbar-width:none}.tx-breadcrumb__nav::-webkit-scrollbar{display:none}.tx-breadcrumb__list{display:flex;flex-wrap:nowrap;align-items:center;margin:0;padding:0;list-style:none}.tx-breadcrumb__item{display:flex;align-items:center;min-width:0}.tx-breadcrumb__separator,.tx-breadcrumb__icon{flex-shrink:0}.tx-breadcrumb__link{display:flex;align-items:center;min-width:0}.tx-breadcrumb__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.tx-breadcrumb__link{margin:0;padding:0;border:none;background:none;font:inherit;text-align:inherit}:host([data-styled]){padding:var(--tx-breadcrumb-padding);background:var(--tx-breadcrumb-background);font-family:var(--tx-font-family)}:host([data-styled]) .tx-breadcrumb__nav{--_ring: calc(var(--tx-breadcrumb-item-focus-ring-width) + var(--tx-breadcrumb-item-focus-ring-offset));margin:calc(var(--_ring) * -1);padding:var(--_ring)}:host([data-styled]) .tx-breadcrumb__list,:host([data-styled]) .tx-breadcrumb__item{gap:var(--tx-breadcrumb-gap)}:host([data-styled]) .tx-breadcrumb__separator{display:flex;align-items:center;color:var(--tx-breadcrumb-separator-color);font-size:var(--tx-breadcrumb-separator-icon-size);line-height:1}:host([data-styled][data-separator=slash]) .tx-breadcrumb__separator{color:var(--tx-breadcrumb-slash-color);font-size:var(--tx-breadcrumb-slash-font-size)}:host([data-styled]) .tx-breadcrumb__link{gap:var(--tx-breadcrumb-item-gap);border-radius:var(--tx-breadcrumb-item-border-radius);outline:var(--tx-breadcrumb-item-focus-ring-width) solid transparent;outline-offset:var(--tx-breadcrumb-item-focus-ring-offset);color:var(--tx-breadcrumb-item-color);font-size:var(--tx-breadcrumb-item-font-size);font-weight:var(--tx-breadcrumb-item-font-weight);line-height:1.5;text-decoration:none;transition:color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing),outline-color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-breadcrumb__link:focus-visible{outline-color:var(--tx-breadcrumb-item-focus-ring-color)}:host([data-styled]) .tx-breadcrumb__icon{display:inline-flex;color:var(--tx-breadcrumb-item-icon-color);font-size:var(--tx-breadcrumb-item-icon-size);transition:color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing)}:host([data-styled]) a.tx-breadcrumb__link,:host([data-styled]) button.tx-breadcrumb__link{cursor:pointer}:host([data-styled]) a.tx-breadcrumb__link:hover,:host([data-styled]) button.tx-breadcrumb__link:hover{color:var(--tx-breadcrumb-item-hover-color)}:host([data-styled]) a.tx-breadcrumb__link:hover .tx-breadcrumb__icon,:host([data-styled]) button.tx-breadcrumb__link:hover .tx-breadcrumb__icon{color:var(--tx-breadcrumb-item-icon-hover-color)}:host([data-styled]) .tx-breadcrumb__item--disabled .tx-breadcrumb__link{opacity:var(--tx-breadcrumb-item-disabled-opacity);cursor:default}:host([data-styled]) .tx-breadcrumb__item--current .tx-breadcrumb__link{color:var(--tx-breadcrumb-current-color);font-weight:var(--tx-breadcrumb-current-font-weight)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-breadcrumb__link,:host([data-styled]) .tx-breadcrumb__icon{transition:none}}\n"],
|
|
235
244
|
dependencies: [
|
|
236
245
|
{
|
|
@@ -269,6 +278,7 @@ var TxBreadcrumb = class TxBreadcrumb {
|
|
|
269
278
|
inputs: ["name"]
|
|
270
279
|
}
|
|
271
280
|
],
|
|
281
|
+
viewProviders: [provideTxIconDefaults(BREADCRUMB_ICON_DEFAULTS)],
|
|
272
282
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
273
283
|
});
|
|
274
284
|
};
|
|
@@ -294,7 +304,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
294
304
|
"[attr.data-styled]": "!isUnstyled() || null",
|
|
295
305
|
"[attr.data-separator]": "separator()"
|
|
296
306
|
},
|
|
297
|
-
|
|
307
|
+
viewProviders: [provideTxIconDefaults(BREADCRUMB_ICON_DEFAULTS)],
|
|
308
|
+
template: "<nav class=\"tx-breadcrumb__nav\" [attr.aria-label]=\"label()\">\n <ol class=\"tx-breadcrumb__list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (entry of entries(); track $index; let index = $index, first = $first) {\n <li\n class=\"tx-breadcrumb__item\"\n [class.tx-breadcrumb__item--current]=\"entry.current\"\n [class.tx-breadcrumb__item--disabled]=\"entry.item.disabled\"\n [attr.id]=\"entry.item.id ?? null\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n >\n @if (!first) {\n <span class=\"tx-breadcrumb__separator\" aria-hidden=\"true\" [class]=\"passThrough().separator?.class\" [style]=\"passThrough().separator?.style\">\n @if (separatorTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (separator() === 'slash') {\n /\n } @else {\n <tx-icon name=\"chevron-right\" />\n }\n </span>\n }\n @switch (entry.kind) {\n @case ('router') {\n <a\n class=\"tx-breadcrumb__link\"\n [routerLink]=\"$any(entry.item.routerLink)\"\n [queryParams]=\"entry.item.queryParams\"\n [fragment]=\"entry.item.fragment\"\n [target]=\"entry.item.target\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('url') {\n <a\n class=\"tx-breadcrumb__link\"\n [href]=\"href(entry.item)\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.rel]=\"entry.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('command') {\n <button\n type=\"button\"\n class=\"tx-breadcrumb__link\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </button>\n }\n @default {\n <span\n class=\"tx-breadcrumb__link\"\n [attr.aria-current]=\"entry.current ? 'page' : null\"\n [attr.aria-disabled]=\"entry.item.disabled ? 'true' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </span>\n }\n }\n </li>\n }\n </ol>\n</nav>\n\n<ng-template #content let-entry let-index=\"index\">\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: entry.item, current: entry.current, index }\" />\n } @else {\n @if (entry.icon) {\n <tx-icon class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [name]=\"entry.icon\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n } @else if (entry.iconClass) {\n <span class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [class]=\"entry.iconClass + ' ' + (passThrough().icon?.class ?? '')\" [style]=\"passThrough().icon?.style\"></span>\n }\n @if (entry.item.label) {\n <span class=\"tx-breadcrumb__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ entry.item.label }}</span>\n }\n }\n</ng-template>\n",
|
|
298
309
|
styles: [":host{display:block;min-width:0}.tx-breadcrumb__nav{overflow-x:auto;scrollbar-width:none}.tx-breadcrumb__nav::-webkit-scrollbar{display:none}.tx-breadcrumb__list{display:flex;flex-wrap:nowrap;align-items:center;margin:0;padding:0;list-style:none}.tx-breadcrumb__item{display:flex;align-items:center;min-width:0}.tx-breadcrumb__separator,.tx-breadcrumb__icon{flex-shrink:0}.tx-breadcrumb__link{display:flex;align-items:center;min-width:0}.tx-breadcrumb__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.tx-breadcrumb__link{margin:0;padding:0;border:none;background:none;font:inherit;text-align:inherit}:host([data-styled]){padding:var(--tx-breadcrumb-padding);background:var(--tx-breadcrumb-background);font-family:var(--tx-font-family)}:host([data-styled]) .tx-breadcrumb__nav{--_ring: calc(var(--tx-breadcrumb-item-focus-ring-width) + var(--tx-breadcrumb-item-focus-ring-offset));margin:calc(var(--_ring) * -1);padding:var(--_ring)}:host([data-styled]) .tx-breadcrumb__list,:host([data-styled]) .tx-breadcrumb__item{gap:var(--tx-breadcrumb-gap)}:host([data-styled]) .tx-breadcrumb__separator{display:flex;align-items:center;color:var(--tx-breadcrumb-separator-color);font-size:var(--tx-breadcrumb-separator-icon-size);line-height:1}:host([data-styled][data-separator=slash]) .tx-breadcrumb__separator{color:var(--tx-breadcrumb-slash-color);font-size:var(--tx-breadcrumb-slash-font-size)}:host([data-styled]) .tx-breadcrumb__link{gap:var(--tx-breadcrumb-item-gap);border-radius:var(--tx-breadcrumb-item-border-radius);outline:var(--tx-breadcrumb-item-focus-ring-width) solid transparent;outline-offset:var(--tx-breadcrumb-item-focus-ring-offset);color:var(--tx-breadcrumb-item-color);font-size:var(--tx-breadcrumb-item-font-size);font-weight:var(--tx-breadcrumb-item-font-weight);line-height:1.5;text-decoration:none;transition:color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing),outline-color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-breadcrumb__link:focus-visible{outline-color:var(--tx-breadcrumb-item-focus-ring-color)}:host([data-styled]) .tx-breadcrumb__icon{display:inline-flex;color:var(--tx-breadcrumb-item-icon-color);font-size:var(--tx-breadcrumb-item-icon-size);transition:color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing)}:host([data-styled]) a.tx-breadcrumb__link,:host([data-styled]) button.tx-breadcrumb__link{cursor:pointer}:host([data-styled]) a.tx-breadcrumb__link:hover,:host([data-styled]) button.tx-breadcrumb__link:hover{color:var(--tx-breadcrumb-item-hover-color)}:host([data-styled]) a.tx-breadcrumb__link:hover .tx-breadcrumb__icon,:host([data-styled]) button.tx-breadcrumb__link:hover .tx-breadcrumb__icon{color:var(--tx-breadcrumb-item-icon-hover-color)}:host([data-styled]) .tx-breadcrumb__item--disabled .tx-breadcrumb__link{opacity:var(--tx-breadcrumb-item-disabled-opacity);cursor:default}:host([data-styled]) .tx-breadcrumb__item--current .tx-breadcrumb__link{color:var(--tx-breadcrumb-current-color);font-weight:var(--tx-breadcrumb-current-font-weight)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-breadcrumb__link,:host([data-styled]) .tx-breadcrumb__icon{transition:none}}\n"]
|
|
299
310
|
}]
|
|
300
311
|
}],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-breadcrumb.mjs","names":[],"sources":["../../../../packages/ui/breadcrumb/src/breadcrumb.templates.ts","../../../../packages/ui/breadcrumb/src/breadcrumb.component.ts","../../../../packages/ui/breadcrumb/src/breadcrumb.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxBreadcrumbItemContext } from './breadcrumb.types';\n\n@Directive({ selector: 'ng-template[txBreadcrumbItem]' })\nexport class TxBreadcrumbItemTemplate {\n readonly templateRef = inject<TemplateRef<TxBreadcrumbItemContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxBreadcrumbItemTemplate, context: unknown): context is TxBreadcrumbItemContext {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txBreadcrumbSeparator]' })\nexport class TxBreadcrumbSeparatorTemplate {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChild, inject, input, output } from '@angular/core';\nimport { Router, RouterLink } from '@angular/router';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraBreadcrumbTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxBreadcrumbItemTemplate, TxBreadcrumbSeparatorTemplate } from './breadcrumb.templates';\nimport { TxBreadcrumbItem, TxBreadcrumbItemEvent, TxBreadcrumbPart, TxBreadcrumbSeparator } from './breadcrumb.types';\n\ntype TxBreadcrumbKind = 'current' | 'router' | 'url' | 'command' | 'text';\n\ninterface TxBreadcrumbEntry {\n item: TxBreadcrumbItem;\n kind: TxBreadcrumbKind;\n current: boolean;\n icon: string | null;\n iconClass: string | null;\n}\n\n@Component({\n selector: 'tx-breadcrumb',\n imports: [NgTemplateOutlet, RouterLink, TxIcon],\n templateUrl: './breadcrumb.component.html',\n styleUrl: './breadcrumb.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-breadcrumb',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-separator]': 'separator()',\n },\n})\nexport class TxBreadcrumb {\n private txIconRegistry = inject(TxIconRegistry);\n private hasRouter = inject(Router, { optional: true }) !== null;\n\n readonly model = input<readonly TxBreadcrumbItem[]>([]);\n readonly home = input<TxBreadcrumbItem | undefined>(undefined);\n readonly separator = input<TxBreadcrumbSeparator>('chevron');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraBreadcrumbTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxBreadcrumbPart, TxBreadcrumb> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly itemClick = output<TxBreadcrumbItemEvent>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('breadcrumb', this, this.pt, this.ptOptions);\n protected readonly itemTemplate = contentChild(TxBreadcrumbItemTemplate);\n protected readonly separatorTemplate = contentChild(TxBreadcrumbSeparatorTemplate);\n\n readonly entries = computed<TxBreadcrumbEntry[]>(() => {\n const home = this.home();\n const items = home ? [home, ...this.model()] : [...this.model()];\n return items.map((item, index) => this.toEntry(item, index === items.length - 1));\n });\n readonly label = computed(() => this.ariaLabel() ?? this.translations().breadcrumb);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-breadcrumb'), ...this.passThrough().root?.style }));\n\n select(event: Event, item: TxBreadcrumbItem): void {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n const payload = { originalEvent: event, item };\n item.command?.(payload);\n this.itemClick.emit(payload);\n }\n\n private toEntry(item: TxBreadcrumbItem, current: boolean): TxBreadcrumbEntry {\n const icon = item.icon ?? null;\n const known = icon !== null && this.txIconRegistry.has(icon);\n return { item, current, kind: this.kindOf(item, current), icon: known ? icon : null, iconClass: icon !== null && !known ? icon : null };\n }\n\n private kindOf(item: TxBreadcrumbItem, current: boolean): TxBreadcrumbKind {\n if (current) return 'current';\n if (item.disabled) return 'text';\n if (item.routerLink !== undefined && this.hasRouter) return 'router';\n if (item.url !== undefined || item.routerLink !== undefined) return 'url';\n if (item.command) return 'command';\n return 'text';\n }\n\n protected href(item: TxBreadcrumbItem): string {\n if (item.url !== undefined) return item.url;\n const commands = item.routerLink;\n return typeof commands === 'string' ? commands : (commands ?? []).join('/');\n }\n}\n","<nav class=\"tx-breadcrumb__nav\" [attr.aria-label]=\"label()\">\n <ol class=\"tx-breadcrumb__list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (entry of entries(); track $index; let index = $index, first = $first) {\n <li\n class=\"tx-breadcrumb__item\"\n [class.tx-breadcrumb__item--current]=\"entry.current\"\n [class.tx-breadcrumb__item--disabled]=\"entry.item.disabled\"\n [attr.id]=\"entry.item.id ?? null\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n >\n @if (!first) {\n <span class=\"tx-breadcrumb__separator\" aria-hidden=\"true\" [class]=\"passThrough().separator?.class\" [style]=\"passThrough().separator?.style\">\n @if (separatorTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (separator() === 'slash') {\n /\n } @else {\n <tx-icon name=\"chevron-right\" />\n }\n </span>\n }\n @switch (entry.kind) {\n @case ('router') {\n <a\n class=\"tx-breadcrumb__link\"\n [routerLink]=\"$any(entry.item.routerLink)\"\n [queryParams]=\"entry.item.queryParams\"\n [fragment]=\"entry.item.fragment\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('url') {\n <a\n class=\"tx-breadcrumb__link\"\n [href]=\"href(entry.item)\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.rel]=\"entry.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('command') {\n <button\n type=\"button\"\n class=\"tx-breadcrumb__link\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </button>\n }\n @default {\n <span\n class=\"tx-breadcrumb__link\"\n [attr.aria-current]=\"entry.current ? 'page' : null\"\n [attr.aria-disabled]=\"entry.item.disabled ? 'true' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </span>\n }\n }\n </li>\n }\n </ol>\n</nav>\n\n<ng-template #content let-entry let-index=\"index\">\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: entry.item, current: entry.current, index }\" />\n } @else {\n @if (entry.icon) {\n <tx-icon class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [name]=\"entry.icon\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n } @else if (entry.iconClass) {\n <span class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [class]=\"entry.iconClass + ' ' + (passThrough().icon?.class ?? '')\" [style]=\"passThrough().icon?.style\"></span>\n }\n @if (entry.item.label) {\n <span class=\"tx-breadcrumb__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ entry.item.label }}</span>\n }\n }\n</ng-template>\n"],"mappings":";;;;;;;;;AAIA,IAAa,2BAAb,MAAa,yBAAwB;CAC1B,cAAc,OAA6C,WAAW;CAE/E,OAAO,uBAAuB,YAAsC,SAAgB;EAClF,OAAO,CAAC,CAAC;CACX;CALW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAwB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAxB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAwB,YAAA,CAAA;EADpC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,gCAA+B,CAAE;;;AAUxD,IAAa,gCAAb,MAAa,8BAA6B;CAC/B,cAAc,OAA6B,WAAW;CADpD,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAA6B,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAA7B,OAAA,OAAA,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umb.icons.ts","../../../../packages/ui/breadcrumb/src/breadcrumb.theme.ts","../../../../packages/ui/breadcrumb/src/breadcrumb.component.ts","../../../../packages/ui/breadcrumb/src/breadcrumb.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxBreadcrumbItemContext } from './breadcrumb.types';\n\n@Directive({ selector: 'ng-template[txBreadcrumbItem]' })\nexport class TxBreadcrumbItemTemplate {\n readonly templateRef = inject<TemplateRef<TxBreadcrumbItemContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxBreadcrumbItemTemplate, context: unknown): context is TxBreadcrumbItemContext {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txBreadcrumbSeparator]' })\nexport class TxBreadcrumbSeparatorTemplate {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","import { TxIconSet, txIconChevronRight, txIconLink, txIconList, txIconSlash, txIconText } from '@tectra-ng/icons';\n\nexport const BREADCRUMB_ICON_DEFAULTS: TxIconSet = {\n 'chevron-right': txIconChevronRight,\n link: txIconLink,\n list: txIconList,\n slash: txIconSlash,\n text: txIconText,\n};\n","import { breadcrumbTokens } from '@tectra-ng/themes';\n\nexport const BREADCRUMB_THEME = {\n breadcrumb: breadcrumbTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChild, inject, input, output } from '@angular/core';\nimport { ActivatedRoute, RouterLink } from '@angular/router';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, TxIcon } from '@tectra-ng/icons';\nimport { TectraBreadcrumbTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxBreadcrumbItemTemplate, TxBreadcrumbSeparatorTemplate } from './breadcrumb.templates';\nimport { TxBreadcrumbItem, TxBreadcrumbItemEvent, TxBreadcrumbPart, TxBreadcrumbSeparator } from './breadcrumb.types';\nimport { BREADCRUMB_ICON_DEFAULTS } from './breadcrumb.icons';\nimport { BREADCRUMB_THEME } from './breadcrumb.theme';\n\ntype TxBreadcrumbKind = 'current' | 'router' | 'url' | 'command' | 'text';\n\ninterface TxBreadcrumbEntry {\n item: TxBreadcrumbItem;\n kind: TxBreadcrumbKind;\n current: boolean;\n icon: string | null;\n iconClass: string | null;\n}\n\n@Component({\n selector: 'tx-breadcrumb',\n imports: [NgTemplateOutlet, RouterLink, TxIcon],\n templateUrl: './breadcrumb.component.html',\n styleUrl: './breadcrumb.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-breadcrumb',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-separator]': 'separator()',\n },\n viewProviders: [provideTxIconDefaults(BREADCRUMB_ICON_DEFAULTS)],\n})\nexport class TxBreadcrumb {\n private readonly breadcrumbTheme = injectTokens(BREADCRUMB_THEME);\n\n private txIconRegistry = injectTxIcons();\n private hasRouter = inject(ActivatedRoute, { optional: true }) !== null;\n\n readonly model = input<readonly TxBreadcrumbItem[]>([]);\n readonly home = input<TxBreadcrumbItem | undefined>(undefined);\n readonly separator = input<TxBreadcrumbSeparator>('chevron');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraBreadcrumbTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxBreadcrumbPart, TxBreadcrumb> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly itemClick = output<TxBreadcrumbItemEvent>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('breadcrumb', this, this.pt, this.ptOptions);\n protected readonly itemTemplate = contentChild(TxBreadcrumbItemTemplate);\n protected readonly separatorTemplate = contentChild(TxBreadcrumbSeparatorTemplate);\n\n readonly entries = computed<TxBreadcrumbEntry[]>(() => {\n const home = this.home();\n const items = home ? [home, ...this.model()] : [...this.model()];\n return items.map((item, index) => this.toEntry(item, index === items.length - 1));\n });\n readonly label = computed(() => this.ariaLabel() ?? this.translations().breadcrumb);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-breadcrumb'), ...this.passThrough().root?.style }));\n\n select(event: Event, item: TxBreadcrumbItem): void {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n const payload = { originalEvent: event, item };\n item.command?.(payload);\n this.itemClick.emit(payload);\n }\n\n private toEntry(item: TxBreadcrumbItem, current: boolean): TxBreadcrumbEntry {\n const icon = item.icon ?? null;\n const known = icon !== null && this.txIconRegistry.has(icon);\n return { item, current, kind: this.kindOf(item, current), icon: known ? icon : null, iconClass: icon !== null && !known ? icon : null };\n }\n\n private kindOf(item: TxBreadcrumbItem, current: boolean): TxBreadcrumbKind {\n if (current) return 'current';\n if (item.disabled) return 'text';\n if (item.routerLink !== undefined && this.hasRouter) return 'router';\n if (item.url !== undefined || item.routerLink !== undefined) return 'url';\n if (item.command) return 'command';\n return 'text';\n }\n\n protected href(item: TxBreadcrumbItem): string {\n if (item.url !== undefined) return item.url;\n const commands = item.routerLink;\n return typeof commands === 'string' ? commands : (commands ?? []).join('/');\n }\n}\n","<nav class=\"tx-breadcrumb__nav\" [attr.aria-label]=\"label()\">\n <ol class=\"tx-breadcrumb__list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (entry of entries(); track $index; let index = $index, first = $first) {\n <li\n class=\"tx-breadcrumb__item\"\n [class.tx-breadcrumb__item--current]=\"entry.current\"\n [class.tx-breadcrumb__item--disabled]=\"entry.item.disabled\"\n [attr.id]=\"entry.item.id ?? null\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n >\n @if (!first) {\n <span class=\"tx-breadcrumb__separator\" aria-hidden=\"true\" [class]=\"passThrough().separator?.class\" [style]=\"passThrough().separator?.style\">\n @if (separatorTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (separator() === 'slash') {\n /\n } @else {\n <tx-icon name=\"chevron-right\" />\n }\n </span>\n }\n @switch (entry.kind) {\n @case ('router') {\n <a\n class=\"tx-breadcrumb__link\"\n [routerLink]=\"$any(entry.item.routerLink)\"\n [queryParams]=\"entry.item.queryParams\"\n [fragment]=\"entry.item.fragment\"\n [target]=\"entry.item.target\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('url') {\n <a\n class=\"tx-breadcrumb__link\"\n [href]=\"href(entry.item)\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.rel]=\"entry.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('command') {\n <button\n type=\"button\"\n class=\"tx-breadcrumb__link\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </button>\n }\n @default {\n <span\n class=\"tx-breadcrumb__link\"\n [attr.aria-current]=\"entry.current ? 'page' : null\"\n [attr.aria-disabled]=\"entry.item.disabled ? 'true' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </span>\n }\n }\n </li>\n }\n </ol>\n</nav>\n\n<ng-template #content let-entry let-index=\"index\">\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: entry.item, current: entry.current, index }\" />\n } @else {\n @if (entry.icon) {\n <tx-icon class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [name]=\"entry.icon\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n } @else if (entry.iconClass) {\n <span class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [class]=\"entry.iconClass + ' ' + (passThrough().icon?.class ?? '')\" [style]=\"passThrough().icon?.style\"></span>\n }\n @if (entry.item.label) {\n <span class=\"tx-breadcrumb__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ entry.item.label }}</span>\n }\n }\n</ng-template>\n"],"mappings":";;;;;;;;;AAIA,IAAa,2BAAb,MAAa,yBAAwB;CAC1B,cAAc,OAA6C,WAAW;CAE/E,OAAO,uBAAuB,YAAsC,SAAgB;EAClF,OAAO,CAAC,CAAC;CACX;CALW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAwB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAxB,GAAA,yBAAA;CAAA,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A,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,WAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,wBAAwB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,mBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACnB,6BAA6B,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { NgTemplateOutlet } from "@angular/common";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, inject, input, signal, viewChild } from "@angular/core";
|
|
4
|
-
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
4
|
+
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
5
5
|
import { injectFluid } from "@tectra-ng/core/fluid";
|
|
6
6
|
import * as i1 from "@tectra-ng/core/ripple";
|
|
7
7
|
import { TxRipple } from "@tectra-ng/core/ripple";
|
|
8
8
|
import { optionalBoolean, optionalNumber } from "@tectra-ng/core/utils";
|
|
9
|
-
import { TxIcon,
|
|
10
|
-
import { toStyleObject } from "@tectra-ng/themes";
|
|
9
|
+
import { TxIcon, injectTxIcons, provideTxIconDefaults, txIconInfo, txIconLink, txIconSpinner, txIconText } from "@tectra-ng/icons";
|
|
10
|
+
import { badgeTokens, buttonTokens, toStyleObject } from "@tectra-ng/themes";
|
|
11
11
|
import { TxBadge } from "@tectra-ng/ui/badge";
|
|
12
12
|
var TxButtonIconTemplate = class TxButtonIconTemplate {
|
|
13
13
|
templateRef = inject(TemplateRef);
|
|
@@ -67,9 +67,20 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
67
67
|
args: [{ selector: "ng-template[txButtonLoadingIcon]" }]
|
|
68
68
|
}]
|
|
69
69
|
});
|
|
70
|
+
const BUTTON_ICON_DEFAULTS = {
|
|
71
|
+
info: txIconInfo,
|
|
72
|
+
link: txIconLink,
|
|
73
|
+
spinner: txIconSpinner,
|
|
74
|
+
text: txIconText
|
|
75
|
+
};
|
|
76
|
+
const BUTTON_THEME = {
|
|
77
|
+
badge: badgeTokens,
|
|
78
|
+
button: buttonTokens
|
|
79
|
+
};
|
|
70
80
|
var TxButton = class TxButton {
|
|
81
|
+
buttonTheme = injectTokens(BUTTON_THEME);
|
|
71
82
|
elementRef = inject(ElementRef);
|
|
72
|
-
txIconRegistry =
|
|
83
|
+
txIconRegistry = injectTxIcons();
|
|
73
84
|
label = input(void 0, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
74
85
|
severity = input("primary", ...ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []);
|
|
75
86
|
size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
@@ -466,6 +477,7 @@ var TxButton = class TxButton {
|
|
|
466
477
|
]
|
|
467
478
|
}
|
|
468
479
|
],
|
|
480
|
+
viewProviders: [provideTxIconDefaults(BUTTON_ICON_DEFAULTS)],
|
|
469
481
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
470
482
|
});
|
|
471
483
|
};
|
|
@@ -514,6 +526,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
514
526
|
"[attr.tabindex]": "!isNativeButton && isDisabled() ? -1 : (tabindex() ?? null)",
|
|
515
527
|
"[attr.aria-busy]": "loading() || null"
|
|
516
528
|
},
|
|
529
|
+
viewProviders: [provideTxIconDefaults(BUTTON_ICON_DEFAULTS)],
|
|
517
530
|
template: "@if (hasIcon()) {\n @if (loading()) {\n <span\n class=\"tx-button__icon tx-button__loading-icon\"\n aria-hidden=\"true\"\n [class]=\"passThrough().loadingIcon?.class\"\n [style]=\"passThrough().loadingIcon?.style\"\n [class.tx-button__icon--spin]=\"!loadingIconTemplate()\"\n >\n @if (loadingIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (loadingIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"loadingIcon()\"></span>\n }\n </span>\n } @else {\n <span class=\"tx-button__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon()\"></span>\n }\n </span>\n }\n}\n<span class=\"tx-button__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">\n @if (hasLabelText()) {\n {{ label() }}\n }\n <span #content class=\"tx-button__content\"><ng-content /></span>\n</span>\n@if (hasBadge()) {\n <tx-badge\n class=\"tx-button__badge\"\n [value]=\"badge()\"\n [severity]=\"badgeSeverity()\"\n [unstyled]=\"isUnstyled()\"\n [pt]=\"{ root: passThrough().badge ?? {} }\"\n />\n}\n",
|
|
518
531
|
styles: [":host([data-styled]){--_background: var(--tx-button-primary-background);--_hover-background: var(--tx-button-primary-hover-background);--_active-background: var(--tx-button-primary-active-background);--_border-color: var(--tx-button-primary-border-color);--_hover-border-color: var(--tx-button-primary-hover-border-color);--_active-border-color: var(--tx-button-primary-active-border-color);--_color: var(--tx-button-primary-color);--_hover-color: var(--tx-button-primary-hover-color);--_active-color: var(--tx-button-primary-active-color);--_focus-ring-color: var(--tx-button-primary-focus-ring-color);--_focus-ring-shadow: var(--tx-button-primary-focus-ring-shadow);display:inline-flex;align-items:center;justify-content:center;gap:var(--tx-button-gap);box-sizing:border-box;padding:var(--tx-button-padding-y) var(--tx-button-padding-x);border:1px solid var(--_border-color);border-radius:var(--tx-button-border-radius);background:var(--_background);color:var(--_color);font-family:var(--tx-font-family);font-size:var(--tx-button-font-size);font-weight:var(--tx-button-label-font-weight);line-height:var(--tx-button-line-height);text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--tx-button-transition-duration),border-color var(--tx-button-transition-duration),color var(--tx-button-transition-duration),box-shadow var(--tx-button-transition-duration),outline-color var(--tx-button-transition-duration),text-decoration-color var(--tx-button-transition-duration)}:host([data-styled]):hover:not(.tx-button--disabled){border-color:var(--_hover-border-color);background:var(--_hover-background);color:var(--_hover-color)}:host([data-styled]):active:not(.tx-button--disabled){border-color:var(--_active-border-color);background:var(--_active-background);color:var(--_active-color)}:host([data-styled]):focus-visible{outline:var(--tx-button-focus-ring-width) var(--tx-button-focus-ring-style) var(--_focus-ring-color);outline-offset:var(--tx-button-focus-ring-offset);box-shadow:var(--_focus-ring-shadow)}:host([data-styled][data-severity=primary]){--_background: var(--tx-button-primary-background);--_hover-background: var(--tx-button-primary-hover-background);--_active-background: var(--tx-button-primary-active-background);--_border-color: var(--tx-button-primary-border-color);--_hover-border-color: var(--tx-button-primary-hover-border-color);--_active-border-color: var(--tx-button-primary-active-border-color);--_color: var(--tx-button-primary-color);--_hover-color: var(--tx-button-primary-hover-color);--_active-color: var(--tx-button-primary-active-color);--_focus-ring-color: var(--tx-button-primary-focus-ring-color);--_focus-ring-shadow: var(--tx-button-primary-focus-ring-shadow)}:host([data-styled][data-variant=outlined][data-severity=primary]){--_background: transparent;--_hover-background: var(--tx-button-outlined-primary-hover-background);--_active-background: var(--tx-button-outlined-primary-active-background);--_border-color: var(--tx-button-outlined-primary-border-color);--_hover-border-color: var(--tx-button-outlined-primary-border-color);--_active-border-color: var(--tx-button-outlined-primary-border-color);--_color: var(--tx-button-outlined-primary-color);--_hover-color: var(--tx-button-outlined-primary-color);--_active-color: var(--tx-button-outlined-primary-color)}:host([data-styled][data-variant=text][data-severity=primary]){--_background: transparent;--_hover-background: var(--tx-button-text-primary-hover-background);--_active-background: var(--tx-button-text-primary-active-background);--_border-color: transparent;--_hover-border-color: transparent;--_active-border-color: transparent;--_color: var(--tx-button-text-primary-color);--_hover-color: var(--tx-button-text-primary-color);--_active-color: var(--tx-button-text-primary-color)}:host([data-styled][data-severity=secondary]){--_background: var(--tx-button-secondary-background);--_hover-background: var(--tx-button-secondary-hover-background);--_active-background: var(--tx-button-secondary-active-background);--_border-color: var(--tx-button-secondary-border-color);--_hover-border-color: var(--tx-button-secondary-hover-border-color);--_active-border-color: var(--tx-button-secondary-active-border-color);--_color: var(--tx-button-secondary-color);--_hover-color: var(--tx-button-secondary-hover-color);--_active-color: var(--tx-button-secondary-active-color);--_focus-ring-color: var(--tx-button-secondary-focus-ring-color);--_focus-ring-shadow: var(--tx-button-secondary-focus-ring-shadow)}:host([data-styled][data-variant=outlined][data-severity=secondary]){--_background: transparent;--_hover-background: var(--tx-button-outlined-secondary-hover-background);--_active-background: var(--tx-button-outlined-secondary-active-background);--_border-color: var(--tx-button-outlined-secondary-border-color);--_hover-border-color: var(--tx-button-outlined-secondary-border-color);--_active-border-color: var(--tx-button-outlined-secondary-border-color);--_color: var(--tx-button-outlined-secondary-color);--_hover-color: var(--tx-button-outlined-secondary-color);--_active-color: var(--tx-button-outlined-secondary-color)}:host([data-styled][data-variant=text][data-severity=secondary]){--_background: transparent;--_hover-background: var(--tx-button-text-secondary-hover-background);--_active-background: var(--tx-button-text-secondary-active-background);--_border-color: transparent;--_hover-border-color: transparent;--_active-border-color: transparent;--_color: var(--tx-button-text-secondary-color);--_hover-color: var(--tx-button-text-secondary-color);--_active-color: var(--tx-button-text-secondary-color)}:host([data-styled][data-severity=success]){--_background: var(--tx-button-success-background);--_hover-background: var(--tx-button-success-hover-background);--_active-background: var(--tx-button-success-active-background);--_border-color: var(--tx-button-success-border-color);--_hover-border-color: var(--tx-button-success-hover-border-color);--_active-border-color: var(--tx-button-success-active-border-color);--_color: var(--tx-button-success-color);--_hover-color: var(--tx-button-success-hover-color);--_active-color: var(--tx-button-success-active-color);--_focus-ring-color: var(--tx-button-success-focus-ring-color);--_focus-ring-shadow: var(--tx-button-success-focus-ring-shadow)}:host([data-styled][data-variant=outlined][data-severity=success]){--_background: transparent;--_hover-background: var(--tx-button-outlined-success-hover-background);--_active-background: var(--tx-button-outlined-success-active-background);--_border-color: var(--tx-button-outlined-success-border-color);--_hover-border-color: var(--tx-button-outlined-success-border-color);--_active-border-color: var(--tx-button-outlined-success-border-color);--_color: var(--tx-button-outlined-success-color);--_hover-color: var(--tx-button-outlined-success-color);--_active-color: var(--tx-button-outlined-success-color)}:host([data-styled][data-variant=text][data-severity=success]){--_background: transparent;--_hover-background: var(--tx-button-text-success-hover-background);--_active-background: var(--tx-button-text-success-active-background);--_border-color: transparent;--_hover-border-color: transparent;--_active-border-color: transparent;--_color: var(--tx-button-text-success-color);--_hover-color: var(--tx-button-text-success-color);--_active-color: var(--tx-button-text-success-color)}:host([data-styled][data-severity=info]){--_background: var(--tx-button-info-background);--_hover-background: var(--tx-button-info-hover-background);--_active-background: var(--tx-button-info-active-background);--_border-color: var(--tx-button-info-border-color);--_hover-border-color: var(--tx-button-info-hover-border-color);--_active-border-color: var(--tx-button-info-active-border-color);--_color: var(--tx-button-info-color);--_hover-color: var(--tx-button-info-hover-color);--_active-color: var(--tx-button-info-active-color);--_focus-ring-color: var(--tx-button-info-focus-ring-color);--_focus-ring-shadow: var(--tx-button-info-focus-ring-shadow)}:host([data-styled][data-variant=outlined][data-severity=info]){--_background: transparent;--_hover-background: var(--tx-button-outlined-info-hover-background);--_active-background: var(--tx-button-outlined-info-active-background);--_border-color: var(--tx-button-outlined-info-border-color);--_hover-border-color: var(--tx-button-outlined-info-border-color);--_active-border-color: var(--tx-button-outlined-info-border-color);--_color: var(--tx-button-outlined-info-color);--_hover-color: var(--tx-button-outlined-info-color);--_active-color: var(--tx-button-outlined-info-color)}:host([data-styled][data-variant=text][data-severity=info]){--_background: transparent;--_hover-background: var(--tx-button-text-info-hover-background);--_active-background: var(--tx-button-text-info-active-background);--_border-color: transparent;--_hover-border-color: transparent;--_active-border-color: transparent;--_color: var(--tx-button-text-info-color);--_hover-color: var(--tx-button-text-info-color);--_active-color: var(--tx-button-text-info-color)}:host([data-styled][data-severity=warn]){--_background: var(--tx-button-warn-background);--_hover-background: var(--tx-button-warn-hover-background);--_active-background: var(--tx-button-warn-active-background);--_border-color: var(--tx-button-warn-border-color);--_hover-border-color: var(--tx-button-warn-hover-border-color);--_active-border-color: var(--tx-button-warn-active-border-color);--_color: var(--tx-button-warn-color);--_hover-color: var(--tx-button-warn-hover-color);--_active-color: var(--tx-button-warn-active-color);--_focus-ring-color: var(--tx-button-warn-focus-ring-color);--_focus-ring-shadow: var(--tx-button-warn-focus-ring-shadow)}:host([data-styled][data-variant=outlined][data-severity=warn]){--_background: transparent;--_hover-background: var(--tx-button-outlined-warn-hover-background);--_active-background: var(--tx-button-outlined-warn-active-background);--_border-color: var(--tx-button-outlined-warn-border-color);--_hover-border-color: var(--tx-button-outlined-warn-border-color);--_active-border-color: var(--tx-button-outlined-warn-border-color);--_color: var(--tx-button-outlined-warn-color);--_hover-color: var(--tx-button-outlined-warn-color);--_active-color: var(--tx-button-outlined-warn-color)}:host([data-styled][data-variant=text][data-severity=warn]){--_background: transparent;--_hover-background: var(--tx-button-text-warn-hover-background);--_active-background: var(--tx-button-text-warn-active-background);--_border-color: transparent;--_hover-border-color: transparent;--_active-border-color: transparent;--_color: var(--tx-button-text-warn-color);--_hover-color: var(--tx-button-text-warn-color);--_active-color: var(--tx-button-text-warn-color)}:host([data-styled][data-severity=danger]){--_background: var(--tx-button-danger-background);--_hover-background: var(--tx-button-danger-hover-background);--_active-background: var(--tx-button-danger-active-background);--_border-color: var(--tx-button-danger-border-color);--_hover-border-color: var(--tx-button-danger-hover-border-color);--_active-border-color: var(--tx-button-danger-active-border-color);--_color: var(--tx-button-danger-color);--_hover-color: var(--tx-button-danger-hover-color);--_active-color: var(--tx-button-danger-active-color);--_focus-ring-color: var(--tx-button-danger-focus-ring-color);--_focus-ring-shadow: var(--tx-button-danger-focus-ring-shadow)}:host([data-styled][data-variant=outlined][data-severity=danger]){--_background: transparent;--_hover-background: var(--tx-button-outlined-danger-hover-background);--_active-background: var(--tx-button-outlined-danger-active-background);--_border-color: var(--tx-button-outlined-danger-border-color);--_hover-border-color: var(--tx-button-outlined-danger-border-color);--_active-border-color: var(--tx-button-outlined-danger-border-color);--_color: var(--tx-button-outlined-danger-color);--_hover-color: var(--tx-button-outlined-danger-color);--_active-color: var(--tx-button-outlined-danger-color)}:host([data-styled][data-variant=text][data-severity=danger]){--_background: transparent;--_hover-background: var(--tx-button-text-danger-hover-background);--_active-background: var(--tx-button-text-danger-active-background);--_border-color: transparent;--_hover-border-color: transparent;--_active-border-color: transparent;--_color: var(--tx-button-text-danger-color);--_hover-color: var(--tx-button-text-danger-color);--_active-color: var(--tx-button-text-danger-color)}:host([data-styled][data-severity=help]){--_background: var(--tx-button-help-background);--_hover-background: var(--tx-button-help-hover-background);--_active-background: var(--tx-button-help-active-background);--_border-color: var(--tx-button-help-border-color);--_hover-border-color: var(--tx-button-help-hover-border-color);--_active-border-color: var(--tx-button-help-active-border-color);--_color: var(--tx-button-help-color);--_hover-color: var(--tx-button-help-hover-color);--_active-color: var(--tx-button-help-active-color);--_focus-ring-color: var(--tx-button-help-focus-ring-color);--_focus-ring-shadow: var(--tx-button-help-focus-ring-shadow)}:host([data-styled][data-variant=outlined][data-severity=help]){--_background: transparent;--_hover-background: var(--tx-button-outlined-help-hover-background);--_active-background: var(--tx-button-outlined-help-active-background);--_border-color: var(--tx-button-outlined-help-border-color);--_hover-border-color: var(--tx-button-outlined-help-border-color);--_active-border-color: var(--tx-button-outlined-help-border-color);--_color: var(--tx-button-outlined-help-color);--_hover-color: var(--tx-button-outlined-help-color);--_active-color: var(--tx-button-outlined-help-color)}:host([data-styled][data-variant=text][data-severity=help]){--_background: transparent;--_hover-background: var(--tx-button-text-help-hover-background);--_active-background: var(--tx-button-text-help-active-background);--_border-color: transparent;--_hover-border-color: transparent;--_active-border-color: transparent;--_color: var(--tx-button-text-help-color);--_hover-color: var(--tx-button-text-help-color);--_active-color: var(--tx-button-text-help-color)}:host([data-styled][data-severity=contrast]){--_background: var(--tx-button-contrast-background);--_hover-background: var(--tx-button-contrast-hover-background);--_active-background: var(--tx-button-contrast-active-background);--_border-color: var(--tx-button-contrast-border-color);--_hover-border-color: var(--tx-button-contrast-hover-border-color);--_active-border-color: var(--tx-button-contrast-active-border-color);--_color: var(--tx-button-contrast-color);--_hover-color: var(--tx-button-contrast-hover-color);--_active-color: var(--tx-button-contrast-active-color);--_focus-ring-color: var(--tx-button-contrast-focus-ring-color);--_focus-ring-shadow: var(--tx-button-contrast-focus-ring-shadow)}:host([data-styled][data-variant=outlined][data-severity=contrast]){--_background: transparent;--_hover-background: var(--tx-button-outlined-contrast-hover-background);--_active-background: var(--tx-button-outlined-contrast-active-background);--_border-color: var(--tx-button-outlined-contrast-border-color);--_hover-border-color: var(--tx-button-outlined-contrast-border-color);--_active-border-color: var(--tx-button-outlined-contrast-border-color);--_color: var(--tx-button-outlined-contrast-color);--_hover-color: var(--tx-button-outlined-contrast-color);--_active-color: var(--tx-button-outlined-contrast-color)}:host([data-styled][data-variant=text][data-severity=contrast]){--_background: transparent;--_hover-background: var(--tx-button-text-contrast-hover-background);--_active-background: var(--tx-button-text-contrast-active-background);--_border-color: transparent;--_hover-border-color: transparent;--_active-border-color: transparent;--_color: var(--tx-button-text-contrast-color);--_hover-color: var(--tx-button-text-contrast-color);--_active-color: var(--tx-button-text-contrast-color)}:host([data-styled].tx-button--plain[data-variant=outlined]){--_background: transparent;--_hover-background: var(--tx-button-outlined-plain-hover-background);--_active-background: var(--tx-button-outlined-plain-active-background);--_border-color: var(--tx-button-outlined-plain-border-color);--_hover-border-color: var(--tx-button-outlined-plain-border-color);--_active-border-color: var(--tx-button-outlined-plain-border-color);--_color: var(--tx-button-outlined-plain-color);--_hover-color: var(--tx-button-outlined-plain-color);--_active-color: var(--tx-button-outlined-plain-color)}:host([data-styled].tx-button--plain[data-variant=text]){--_background: transparent;--_hover-background: var(--tx-button-text-plain-hover-background);--_active-background: var(--tx-button-text-plain-active-background);--_border-color: transparent;--_hover-border-color: transparent;--_active-border-color: transparent;--_color: var(--tx-button-text-plain-color);--_hover-color: var(--tx-button-text-plain-color);--_active-color: var(--tx-button-text-plain-color)}:host([data-styled][data-variant=link]){--_background: transparent;--_hover-background: transparent;--_active-background: transparent;--_border-color: transparent;--_hover-border-color: transparent;--_active-border-color: transparent;--_color: var(--tx-button-link-color);--_hover-color: var(--tx-button-link-hover-color);--_active-color: var(--tx-button-link-active-color);text-decoration:underline;text-decoration-color:transparent}:host([data-styled][data-variant=link]):hover:not(.tx-button--disabled){text-decoration-color:currentColor}:host([data-styled][data-size=small]){padding:var(--tx-button-sm-padding-y) var(--tx-button-sm-padding-x);font-size:var(--tx-button-sm-font-size);line-height:var(--tx-button-sm-line-height)}:host([data-styled][data-size=large]){padding:var(--tx-button-lg-padding-y) var(--tx-button-lg-padding-x);font-size:var(--tx-button-lg-font-size);line-height:var(--tx-button-lg-line-height)}:host([data-styled].tx-button--icon-only){width:var(--tx-button-icon-only-width);height:var(--tx-button-icon-only-width);padding:0}:host([data-styled].tx-button--icon-only[data-size=small]){width:var(--tx-button-sm-icon-only-width);height:var(--tx-button-sm-icon-only-width)}:host([data-styled].tx-button--icon-only[data-size=large]){width:var(--tx-button-lg-icon-only-width);height:var(--tx-button-lg-icon-only-width)}:host([data-styled].tx-button--rounded){border-radius:var(--tx-button-rounded-border-radius)}:host([data-styled].tx-button--raised){box-shadow:var(--tx-button-raised-shadow)}:host([data-styled].tx-button--fluid){display:flex;width:100%}:host([data-styled].tx-button--disabled){opacity:.6;cursor:not-allowed}:host([data-styled].tx-button--loading){cursor:progress}:host([data-styled][data-icon-pos=top]),:host([data-styled][data-icon-pos=bottom]){flex-direction:column}:host([data-styled][data-icon-pos=right]) .tx-button__icon,:host([data-styled][data-icon-pos=bottom]) .tx-button__icon{order:1}:host([data-styled]) .tx-button__icon{display:inline-flex;align-items:center;font-size:1.1em}:host([data-styled]) .tx-button__icon--spin{animation:tx-button-spin .8s linear infinite}:host([data-styled].tx-button--no-label) .tx-button__label,:host([data-styled].tx-button--icon-only) .tx-button__label{display:none}:host([data-styled]) .tx-button__badge{--tx-badge-min-width: var(--tx-button-badge-size);--tx-badge-height: var(--tx-button-badge-size);order:2}@keyframes tx-button-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-button__icon--spin{animation-duration:2.4s}}\n"]
|
|
519
532
|
}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-button.mjs","names":[],"sources":["../../../../packages/ui/button/src/button-templates.directive.ts","../../../../packages/ui/button/src/button.component.ts","../../../../packages/ui/button/src/button.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({ selector: 'ng-template[txButtonIcon]' })\nexport class TxButtonIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txButtonLoadingIcon]' })\nexport class TxButtonLoadingIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { TxRipple } from '@tectra-ng/core/ripple';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconName, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraButtonTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxBadge, TxBadgeSeverity } from '@tectra-ng/ui/badge';\nimport { TxButtonIconTemplate, TxButtonLoadingIconTemplate } from './button-templates.directive';\nimport { TxButtonIconPosition, TxButtonPart, TxButtonSeverity, TxButtonSize, TxButtonVariant } from './button.types';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector -- an attribute on native button / a keeps native behaviour\n selector: 'button[txButton], a[txButton]',\n imports: [NgTemplateOutlet, TxIcon, TxBadge],\n templateUrl: './button.component.html',\n styleUrl: './button.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [{ directive: TxRipple, inputs: ['ripple', 'rippleCentered', 'rippleColor'] }],\n host: {\n class: 'tx-button',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-icon-pos]': 'iconPos()',\n '[class.tx-button--rounded]': 'rounded()',\n '[class.tx-button--raised]': 'raised()',\n '[class.tx-button--plain]': 'plain()',\n '[class.tx-button--fluid]': 'isFluid()',\n '[class.tx-button--icon-only]': 'isIconOnly()',\n '[class.tx-button--no-label]': '!hasLabelText() && !hasProjectedLabel()',\n '[class.tx-button--loading]': 'loading()',\n '[class.tx-button--disabled]': 'isDisabled()',\n '[attr.disabled]': 'isNativeButton && isDisabled() ? \"\" : null',\n '[attr.aria-disabled]': '!isNativeButton && isDisabled() ? true : null',\n '[attr.tabindex]': '!isNativeButton && isDisabled() ? -1 : (tabindex() ?? null)',\n '[attr.aria-busy]': 'loading() || null',\n },\n})\nexport class TxButton implements AfterViewInit {\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private txIconRegistry = inject(TxIconRegistry);\n\n readonly label = input<string | number | undefined>(undefined);\n readonly severity = input<TxButtonSeverity>('primary');\n readonly size = input<TxButtonSize>('medium');\n readonly variant = input<TxButtonVariant | undefined>(undefined);\n readonly outlined = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly text = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly link = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly rounded = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly raised = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly plain = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly disabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly iconPos = input<TxButtonIconPosition>('left');\n readonly iconOnly = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly loadingIcon = input<TxIconName | (string & {})>('spinner');\n readonly badge = input<string | number | undefined>(undefined);\n readonly badgeSeverity = input<TxBadgeSeverity>('secondary');\n readonly dt = input<TectraDeepPartial<TectraButtonTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxButtonPart, TxButton> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly iconTemplate = contentChild(TxButtonIconTemplate);\n readonly loadingIconTemplate = contentChild(TxButtonLoadingIconTemplate);\n readonly contentElement = viewChild.required<ElementRef<HTMLElement>>('content');\n\n readonly isNativeButton = this.elementRef.nativeElement.tagName === 'BUTTON';\n\n readonly hasProjectedLabel = signal(false);\n isUnstyled = injectUnstyled(this.unstyled);\n isFluid = injectFluid(this.fluid);\n passThrough = injectPassThrough('button', this, this.pt, this.ptOptions);\n\n readonly resolvedVariant = computed<TxButtonVariant | null>(() => {\n const variant = this.variant();\n if (variant) {\n return variant;\n }\n if (this.link()) {\n return 'link';\n }\n if (this.text()) {\n return 'text';\n }\n return this.outlined() ? 'outlined' : null;\n });\n readonly isDisabled = computed(() => this.disabled() || this.loading());\n readonly hasIcon = computed(() => this.loading() || !!this.icon() || !!this.iconTemplate());\n readonly hasLabelText = computed(() => this.label() !== undefined && this.label() !== '');\n readonly isIconOnly = computed(() => this.iconOnly() ?? (this.hasIcon() && !this.hasLabelText() && !this.hasProjectedLabel()));\n readonly iconName = computed(() => {\n const icon = this.icon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly loadingIconName = computed(() => {\n const icon = this.loadingIcon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hasBadge = computed(() => this.badge() !== undefined && this.badge() !== '');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-button'), ...this.passThrough().root?.style }));\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n const host = this.elementRef.nativeElement;\n const blockClick = (event: Event) => {\n if (this.isDisabled()) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n host.addEventListener('click', blockClick, { capture: true });\n destroyRef.onDestroy(() => host.removeEventListener('click', blockClick, { capture: true }));\n afterNextRender(() => {\n const update = () => this.hasProjectedLabel.set(this.projectsLabel());\n update();\n const observer = new MutationObserver(update);\n observer.observe(this.contentElement().nativeElement, { childList: true, characterData: true, subtree: true });\n destroyRef.onDestroy(() => observer.disconnect());\n });\n }\n\n ngAfterViewInit(): void {\n this.hasProjectedLabel.set(this.projectsLabel());\n }\n\n private projectsLabel(): boolean {\n const content = this.contentElement().nativeElement;\n return !!content.textContent?.trim() || content.children.length > 0;\n }\n}\n","@if (hasIcon()) {\n @if (loading()) {\n <span\n class=\"tx-button__icon tx-button__loading-icon\"\n aria-hidden=\"true\"\n [class]=\"passThrough().loadingIcon?.class\"\n [style]=\"passThrough().loadingIcon?.style\"\n [class.tx-button__icon--spin]=\"!loadingIconTemplate()\"\n >\n @if (loadingIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (loadingIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"loadingIcon()\"></span>\n }\n </span>\n } @else {\n <span class=\"tx-button__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon()\"></span>\n }\n </span>\n }\n}\n<span class=\"tx-button__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">\n @if (hasLabelText()) {\n {{ label() }}\n }\n <span #content class=\"tx-button__content\"><ng-content /></span>\n</span>\n@if (hasBadge()) {\n <tx-badge\n class=\"tx-button__badge\"\n [value]=\"badge()\"\n [severity]=\"badgeSeverity()\"\n [unstyled]=\"isUnstyled()\"\n [pt]=\"{ root: passThrough().badge ?? {} }\"\n />\n}\n"],"mappings":";;;;;;;;;;;AAGA,IAAa,uBAAb,MAAa,qBAAoB;CACtB,cAAc,OAAO,WAAW;CAD9B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAoB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAApB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAoB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAApB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAoB,YAAA,CAAA;EADhC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,4BAA2B,CAAE;;;AAMpD,IAAa,8BAAb,MAAa,4BAA2B;CAC7B,cAAc,OAAO,WAAW;CAD9B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAA2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AA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACD,WAAS,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-button.mjs","names":[],"sources":["../../../../packages/ui/button/src/button-templates.directive.ts","../../../../packages/ui/button/src/button.icons.ts","../../../../packages/ui/button/src/button.theme.ts","../../../../packages/ui/button/src/button.component.ts","../../../../packages/ui/button/src/button.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({ selector: 'ng-template[txButtonIcon]' })\nexport class TxButtonIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[txButtonLoadingIcon]' })\nexport class TxButtonLoadingIconTemplate {\n readonly templateRef = inject(TemplateRef);\n}\n","import { TxIconSet, txIconInfo, txIconLink, txIconSpinner, txIconText } from '@tectra-ng/icons';\n\nexport const BUTTON_ICON_DEFAULTS: TxIconSet = {\n info: txIconInfo,\n link: txIconLink,\n spinner: txIconSpinner,\n text: txIconText,\n};\n","import { badgeTokens, buttonTokens } from '@tectra-ng/themes';\n\nexport const BUTTON_THEME = {\n badge: badgeTokens,\n button: buttonTokens,\n};\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectFluid } from '@tectra-ng/core/fluid';\nimport { TxRipple } from '@tectra-ng/core/ripple';\nimport { optionalBoolean, optionalNumber } from '@tectra-ng/core/utils';\nimport { injectTxIcons, provideTxIconDefaults, TxIcon, TxIconName } from '@tectra-ng/icons';\nimport { TectraButtonTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxBadge, TxBadgeSeverity } from '@tectra-ng/ui/badge';\nimport { TxButtonIconTemplate, TxButtonLoadingIconTemplate } from './button-templates.directive';\nimport { TxButtonIconPosition, TxButtonPart, TxButtonSeverity, TxButtonSize, TxButtonVariant } from './button.types';\nimport { BUTTON_ICON_DEFAULTS } from './button.icons';\nimport { BUTTON_THEME } from './button.theme';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector -- an attribute on native button / a keeps native behaviour\n selector: 'button[txButton], a[txButton]',\n imports: [NgTemplateOutlet, TxIcon, TxBadge],\n templateUrl: './button.component.html',\n styleUrl: './button.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [{ directive: TxRipple, inputs: ['ripple', 'rippleCentered', 'rippleColor'] }],\n host: {\n class: 'tx-button',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-severity]': 'severity()',\n '[attr.data-size]': 'size()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-icon-pos]': 'iconPos()',\n '[class.tx-button--rounded]': 'rounded()',\n '[class.tx-button--raised]': 'raised()',\n '[class.tx-button--plain]': 'plain()',\n '[class.tx-button--fluid]': 'isFluid()',\n '[class.tx-button--icon-only]': 'isIconOnly()',\n '[class.tx-button--no-label]': '!hasLabelText() && !hasProjectedLabel()',\n '[class.tx-button--loading]': 'loading()',\n '[class.tx-button--disabled]': 'isDisabled()',\n '[attr.disabled]': 'isNativeButton && isDisabled() ? \"\" : null',\n '[attr.aria-disabled]': '!isNativeButton && isDisabled() ? true : null',\n '[attr.tabindex]': '!isNativeButton && isDisabled() ? -1 : (tabindex() ?? null)',\n '[attr.aria-busy]': 'loading() || null',\n },\n viewProviders: [provideTxIconDefaults(BUTTON_ICON_DEFAULTS)],\n})\nexport class TxButton implements AfterViewInit {\n private readonly buttonTheme = injectTokens(BUTTON_THEME);\n\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private txIconRegistry = injectTxIcons();\n\n readonly label = input<string | number | undefined>(undefined);\n readonly severity = input<TxButtonSeverity>('primary');\n readonly size = input<TxButtonSize>('medium');\n readonly variant = input<TxButtonVariant | undefined>(undefined);\n readonly outlined = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly text = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly link = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly rounded = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly raised = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly plain = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly fluid = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly disabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly tabindex = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly icon = input<TxIconName | (string & {}) | undefined>(undefined);\n readonly iconPos = input<TxButtonIconPosition>('left');\n readonly iconOnly = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly loadingIcon = input<TxIconName | (string & {})>('spinner');\n readonly badge = input<string | number | undefined>(undefined);\n readonly badgeSeverity = input<TxBadgeSeverity>('secondary');\n readonly dt = input<TectraDeepPartial<TectraButtonTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxButtonPart, TxButton> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly iconTemplate = contentChild(TxButtonIconTemplate);\n readonly loadingIconTemplate = contentChild(TxButtonLoadingIconTemplate);\n readonly contentElement = viewChild.required<ElementRef<HTMLElement>>('content');\n\n readonly isNativeButton = this.elementRef.nativeElement.tagName === 'BUTTON';\n\n readonly hasProjectedLabel = signal(false);\n isUnstyled = injectUnstyled(this.unstyled);\n isFluid = injectFluid(this.fluid);\n passThrough = injectPassThrough('button', this, this.pt, this.ptOptions);\n\n readonly resolvedVariant = computed<TxButtonVariant | null>(() => {\n const variant = this.variant();\n if (variant) {\n return variant;\n }\n if (this.link()) {\n return 'link';\n }\n if (this.text()) {\n return 'text';\n }\n return this.outlined() ? 'outlined' : null;\n });\n readonly isDisabled = computed(() => this.disabled() || this.loading());\n readonly hasIcon = computed(() => this.loading() || !!this.icon() || !!this.iconTemplate());\n readonly hasLabelText = computed(() => this.label() !== undefined && this.label() !== '');\n readonly isIconOnly = computed(() => this.iconOnly() ?? (this.hasIcon() && !this.hasLabelText() && !this.hasProjectedLabel()));\n readonly iconName = computed(() => {\n const icon = this.icon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly loadingIconName = computed(() => {\n const icon = this.loadingIcon();\n return this.txIconRegistry.has(icon) ? icon : null;\n });\n readonly hasBadge = computed(() => this.badge() !== undefined && this.badge() !== '');\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-button'), ...this.passThrough().root?.style }));\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n const host = this.elementRef.nativeElement;\n const blockClick = (event: Event) => {\n if (this.isDisabled()) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n host.addEventListener('click', blockClick, { capture: true });\n destroyRef.onDestroy(() => host.removeEventListener('click', blockClick, { capture: true }));\n afterNextRender(() => {\n const update = () => this.hasProjectedLabel.set(this.projectsLabel());\n update();\n const observer = new MutationObserver(update);\n observer.observe(this.contentElement().nativeElement, { childList: true, characterData: true, subtree: true });\n destroyRef.onDestroy(() => observer.disconnect());\n });\n }\n\n ngAfterViewInit(): void {\n this.hasProjectedLabel.set(this.projectsLabel());\n }\n\n private projectsLabel(): boolean {\n const content = this.contentElement().nativeElement;\n return !!content.textContent?.trim() || content.children.length > 0;\n }\n}\n","@if (hasIcon()) {\n @if (loading()) {\n <span\n class=\"tx-button__icon tx-button__loading-icon\"\n aria-hidden=\"true\"\n [class]=\"passThrough().loadingIcon?.class\"\n [style]=\"passThrough().loadingIcon?.style\"\n [class.tx-button__icon--spin]=\"!loadingIconTemplate()\"\n >\n @if (loadingIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (loadingIconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"loadingIcon()\"></span>\n }\n </span>\n } @else {\n <span class=\"tx-button__icon\" aria-hidden=\"true\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\">\n @if (iconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (iconName(); as name) {\n <tx-icon [name]=\"name\" />\n } @else {\n <span [class]=\"icon()\"></span>\n }\n </span>\n }\n}\n<span class=\"tx-button__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">\n @if (hasLabelText()) {\n {{ label() }}\n }\n <span #content class=\"tx-button__content\"><ng-content /></span>\n</span>\n@if (hasBadge()) {\n <tx-badge\n class=\"tx-button__badge\"\n [value]=\"badge()\"\n [severity]=\"badgeSeverity()\"\n [unstyled]=\"isUnstyled()\"\n [pt]=\"{ root: passThrough().badge ?? {} }\"\n />\n}\n"],"mappings":";;;;;;;;;;;AAGA,IAAa,uBAAb,MAAa,qBAAoB;CACtB,cAAc,OAAO,WAAW;CAD9B,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAoB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAApB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAoB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAApB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAoB,YAAA,CAAA;EADhC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,4BAA2B,CAAE;;;AAMpD,IAAa,8BAAb,MAAa,4BAA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,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,oBAAoB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,qBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACb,2BAA2B,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CACD,WAAS,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ChangeDetectionStrategy, Component, computed, input } from "@angular/core";
|
|
3
|
-
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
3
|
+
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
4
4
|
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
5
|
-
import { toStyleObject } from "@tectra-ng/themes";
|
|
5
|
+
import { cardTokens, toStyleObject } from "@tectra-ng/themes";
|
|
6
|
+
import { provideTxIconDefaults, txIconHeading } from "@tectra-ng/icons";
|
|
7
|
+
const CARD_ICON_DEFAULTS = { heading: txIconHeading };
|
|
8
|
+
const CARD_THEME = { card: cardTokens };
|
|
6
9
|
var TxCard = class TxCard {
|
|
10
|
+
cardTheme = injectTokens(CARD_THEME);
|
|
7
11
|
title = input(void 0, ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
|
|
8
12
|
subtitle = input(void 0, ...ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []);
|
|
9
13
|
headingLevel = input(3, ...ngDevMode ? [{ debugName: "headingLevel" }] : /* istanbul ignore next */ []);
|
|
@@ -110,6 +114,7 @@ var TxCard = class TxCard {
|
|
|
110
114
|
`,
|
|
111
115
|
isInline: true,
|
|
112
116
|
styles: [":host{display:flex;flex-direction:column;min-width:0}.tx-card__header:empty,.tx-card__footer:empty,.tx-card__content:empty{display:none}.tx-card__header ::ng-deep>img{display:block;width:100%;object-fit:cover}.tx-card__body{display:flex;flex:1 1 auto;flex-direction:column}:host([data-styled]){overflow:hidden;border:1px solid var(--tx-card-border-color);border-radius:var(--tx-card-border-radius);background:var(--tx-card-background);box-shadow:var(--tx-card-shadow);color:var(--tx-card-color);font-family:var(--tx-font-family)}:host([data-styled]) .tx-card__body{gap:var(--tx-card-gap);padding:var(--tx-card-padding)}:host([data-styled]) .tx-card__title{font-size:var(--tx-card-title-font-size);font-weight:var(--tx-card-title-font-weight);line-height:1.3}:host([data-styled]) .tx-card__subtitle{margin-top:calc(var(--tx-card-gap) * -.6);color:var(--tx-card-subtitle-color);font-size:var(--tx-card-subtitle-font-size)}:host([data-styled]) .tx-card__footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:4px}:host([data-styled]) .tx-card__footer:empty{display:none}\n"],
|
|
117
|
+
viewProviders: [provideTxIconDefaults(CARD_ICON_DEFAULTS)],
|
|
113
118
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
114
119
|
});
|
|
115
120
|
};
|
|
@@ -143,6 +148,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
143
148
|
"[style]": "hostStyle()",
|
|
144
149
|
"[attr.data-styled]": "!isUnstyled() || null"
|
|
145
150
|
},
|
|
151
|
+
viewProviders: [provideTxIconDefaults(CARD_ICON_DEFAULTS)],
|
|
146
152
|
styles: [":host{display:flex;flex-direction:column;min-width:0}.tx-card__header:empty,.tx-card__footer:empty,.tx-card__content:empty{display:none}.tx-card__header ::ng-deep>img{display:block;width:100%;object-fit:cover}.tx-card__body{display:flex;flex:1 1 auto;flex-direction:column}:host([data-styled]){overflow:hidden;border:1px solid var(--tx-card-border-color);border-radius:var(--tx-card-border-radius);background:var(--tx-card-background);box-shadow:var(--tx-card-shadow);color:var(--tx-card-color);font-family:var(--tx-font-family)}:host([data-styled]) .tx-card__body{gap:var(--tx-card-gap);padding:var(--tx-card-padding)}:host([data-styled]) .tx-card__title{font-size:var(--tx-card-title-font-size);font-weight:var(--tx-card-title-font-weight);line-height:1.3}:host([data-styled]) .tx-card__subtitle{margin-top:calc(var(--tx-card-gap) * -.6);color:var(--tx-card-subtitle-color);font-size:var(--tx-card-subtitle-font-size)}:host([data-styled]) .tx-card__footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:4px}:host([data-styled]) .tx-card__footer:empty{display:none}\n"]
|
|
147
153
|
}]
|
|
148
154
|
}],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-ui-card.mjs","names":[],"sources":["../../../../packages/ui/card/src/card.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport {
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-card.mjs","names":[],"sources":["../../../../packages/ui/card/src/card.icons.ts","../../../../packages/ui/card/src/card.theme.ts","../../../../packages/ui/card/src/card.component.ts"],"sourcesContent":["import { TxIconSet, txIconHeading } from '@tectra-ng/icons';\n\nexport const CARD_ICON_DEFAULTS: TxIconSet = {\n heading: txIconHeading,\n};\n","import { cardTokens } from '@tectra-ng/themes';\n\nexport const CARD_THEME = {\n card: cardTokens,\n};\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraCardTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxCardPart } from './card.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { CARD_ICON_DEFAULTS } from './card.icons';\nimport { CARD_THEME } from './card.theme';\n\n@Component({\n selector: 'tx-card',\n template: `\n <div class=\"tx-card__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\"><ng-content select=\"[txCardHeader]\" /></div>\n <div class=\"tx-card__body\" [class]=\"passThrough().body?.class\" [style]=\"passThrough().body?.style\">\n @if (title()) {\n <div class=\"tx-card__title\" role=\"heading\" [attr.aria-level]=\"headingLevel()\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">{{ title() }}</div>\n }\n <ng-content select=\"[txCardTitle]\" />\n @if (subtitle()) {\n <div class=\"tx-card__subtitle\" [class]=\"passThrough().subtitle?.class\" [style]=\"passThrough().subtitle?.style\">{{ subtitle() }}</div>\n }\n <div class=\"tx-card__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\"><ng-content /></div>\n <div class=\"tx-card__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\"><ng-content select=\"[txCardFooter]\" /></div>\n </div>\n `,\n styleUrl: './card.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-card',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n },\n viewProviders: [provideTxIconDefaults(CARD_ICON_DEFAULTS)],\n})\nexport class TxCard {\n private readonly cardTheme = injectTokens(CARD_THEME);\n\n readonly title = input<string | undefined>(undefined);\n readonly subtitle = input<string | undefined>(undefined);\n readonly headingLevel = input<number>(3);\n readonly dt = input<TectraDeepPartial<TectraCardTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxCardPart, TxCard> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('card', this, this.pt, this.ptOptions);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-card'), ...this.passThrough().root?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
import * as i0 from "@angular/core";
|
|
2
2
|
import { ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Directive, ElementRef, Injector, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, effect, inject, input, model, numberAttribute, signal, untracked, viewChild } from "@angular/core";
|
|
3
3
|
import { NgTemplateOutlet } from "@angular/common";
|
|
4
|
-
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
4
|
+
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
5
5
|
import { injectTranslations } from "@tectra-ng/core/i18n";
|
|
6
6
|
import { optionalBoolean, txCanAnimate, txCssTime, txSwapMotion } from "@tectra-ng/core/utils";
|
|
7
|
-
import {
|
|
7
|
+
import { provideTxIconDefaults, txIconChevronDown, txIconChevronLeft, txIconChevronRight, txIconChevronUp } from "@tectra-ng/icons";
|
|
8
|
+
import { carouselTokens, toStyleObject } from "@tectra-ng/themes";
|
|
8
9
|
import { TxButton } from "@tectra-ng/ui/button";
|
|
9
10
|
var TxCarouselItemTemplate = class TxCarouselItemTemplate {
|
|
10
11
|
template = inject(TemplateRef);
|
|
@@ -123,6 +124,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
123
124
|
args: [{ selector: "[txCarouselFooter]" }]
|
|
124
125
|
}]
|
|
125
126
|
});
|
|
127
|
+
const CAROUSEL_ICON_DEFAULTS = {
|
|
128
|
+
"chevron-down": txIconChevronDown,
|
|
129
|
+
"chevron-left": txIconChevronLeft,
|
|
130
|
+
"chevron-right": txIconChevronRight,
|
|
131
|
+
"chevron-up": txIconChevronUp
|
|
132
|
+
};
|
|
133
|
+
const CAROUSEL_THEME = { carousel: carouselTokens };
|
|
126
134
|
const DRAG_START = 6;
|
|
127
135
|
const SWIPE_RATIO = .2;
|
|
128
136
|
const SWIPE_MIN = 40;
|
|
@@ -133,6 +141,7 @@ function percent(value) {
|
|
|
133
141
|
return `${Math.round(value * 1e4) / 1e4}%`;
|
|
134
142
|
}
|
|
135
143
|
var TxCarousel = class TxCarousel {
|
|
144
|
+
carouselTheme = injectTokens(CAROUSEL_THEME);
|
|
136
145
|
document = inject(DOCUMENT);
|
|
137
146
|
host = inject(ElementRef);
|
|
138
147
|
destroyRef = inject(DestroyRef);
|
|
@@ -699,6 +708,7 @@ var TxCarousel = class TxCarousel {
|
|
|
699
708
|
"unstyled"
|
|
700
709
|
]
|
|
701
710
|
}],
|
|
711
|
+
viewProviders: [provideTxIconDefaults(CAROUSEL_ICON_DEFAULTS)],
|
|
702
712
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
703
713
|
});
|
|
704
714
|
};
|
|
@@ -731,6 +741,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
731
741
|
"(focusin)": "focused.set(true)",
|
|
732
742
|
"(focusout)": "onFocusOut($event)"
|
|
733
743
|
},
|
|
744
|
+
viewProviders: [provideTxIconDefaults(CAROUSEL_ICON_DEFAULTS)],
|
|
734
745
|
template: "@if (header()) {\n <div class=\"tx-carousel__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <ng-content select=\"[txCarouselHeader]\" />\n </div>\n}\n<div class=\"tx-carousel__content\" [class]=\"passThrough().content?.class\" [style]=\"passThrough().content?.style\">\n @if (showNavigators()) {\n <button\n txButton\n type=\"button\"\n text\n rounded\n severity=\"secondary\"\n class=\"tx-carousel__navigator tx-carousel__prev\"\n [class]=\"passThrough().navigator?.class\"\n [style]=\"passThrough().navigator?.style\"\n [icon]=\"prevIconName()\"\n [disabled]=\"!canPrev()\"\n [attr.aria-label]=\"translations().previousSlide\"\n (click)=\"onNavigate(-1)\"\n ></button>\n }\n <div\n #viewport\n class=\"tx-carousel__viewport\"\n [class]=\"passThrough().viewport?.class\"\n [style]=\"passThrough().viewport?.style\"\n [style.height]=\"vertical() ? verticalViewPortHeight() : null\"\n [attr.aria-live]=\"autoplaying() ? 'off' : 'polite'\"\n (pointerdown)=\"onPointerDown($event)\"\n (dragstart)=\"$event.preventDefault()\"\n >\n <div class=\"tx-carousel__track\" [class]=\"passThrough().track?.class\" [style]=\"passThrough().track?.style\" [style.transform]=\"trackTransform()\">\n @for (item of items(); track $index) {\n @let shown = isShown($index);\n <div\n class=\"tx-carousel__item\"\n role=\"group\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n [class.tx-carousel__item--active]=\"shown\"\n [style.flex-basis]=\"itemBasis()\"\n [attr.aria-roledescription]=\"translations().slide\"\n [attr.aria-label]=\"slideLabel($index)\"\n [attr.aria-hidden]=\"shown ? null : 'true'\"\n [attr.inert]=\"shown ? null : ''\"\n >\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.template\" [ngTemplateOutletContext]=\"{ $implicit: item, index: $index, active: shown }\" />\n }\n </div>\n }\n </div>\n </div>\n @if (showNavigators()) {\n <button\n txButton\n type=\"button\"\n text\n rounded\n severity=\"secondary\"\n class=\"tx-carousel__navigator tx-carousel__next\"\n [class]=\"passThrough().navigator?.class\"\n [style]=\"passThrough().navigator?.style\"\n [icon]=\"nextIconName()\"\n [disabled]=\"!canNext()\"\n [attr.aria-label]=\"translations().nextSlide\"\n (click)=\"onNavigate(1)\"\n ></button>\n }\n</div>\n@if (showIndicators() && totalPages() > 1) {\n <ul #indicators class=\"tx-carousel__indicators\" [class]=\"passThrough().indicators?.class\" [style]=\"passThrough().indicators?.style\">\n @for (dot of pages(); track dot) {\n @let active = dot === currentPage();\n <li class=\"tx-carousel__indicator\" [class]=\"passThrough().indicator?.class\" [style]=\"passThrough().indicator?.style\" [class.tx-carousel__indicator--active]=\"active\">\n <button\n type=\"button\"\n class=\"tx-carousel__indicator-button\"\n [attr.aria-label]=\"pageLabel(dot)\"\n [attr.aria-current]=\"active ? 'true' : null\"\n [tabIndex]=\"active ? 0 : -1\"\n (click)=\"onIndicatorClick(dot)\"\n (keydown)=\"onIndicatorKeydown($event)\"\n >\n @if (indicatorTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.template\" [ngTemplateOutletContext]=\"{ $implicit: dot, active }\" />\n }\n </button>\n </li>\n }\n </ul>\n}\n@if (footer()) {\n <div class=\"tx-carousel__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <ng-content select=\"[txCarouselFooter]\" />\n </div>\n}\n",
|
|
735
746
|
styles: [":host{display:flex;flex-direction:column;min-width:0}.tx-carousel__content{display:flex;align-items:center;min-width:0}:host([data-orientation=vertical]) .tx-carousel__content{flex-direction:column}.tx-carousel__navigator{flex-shrink:0}.tx-carousel__viewport{flex:1 1 auto;min-width:0;overflow:hidden;touch-action:pan-y pinch-zoom}:host([data-orientation=vertical]) .tx-carousel__viewport{align-self:stretch;touch-action:pan-x pinch-zoom}.tx-carousel__track{display:flex;width:100%;height:100%}:host([data-orientation=vertical]) .tx-carousel__track{flex-direction:column}.tx-carousel__item{flex-grow:0;flex-shrink:0;min-width:0;min-height:0;box-sizing:border-box}.tx-carousel__indicators{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;margin:0;list-style:none}.tx-carousel__indicator-button{position:relative;display:block;margin:0;padding:0;border:0;font:inherit;cursor:pointer}:host([data-styled]) .tx-carousel__content{gap:var(--tx-carousel-content-gap)}:host([data-styled]) .tx-carousel__track{transition:transform var(--tx-carousel-slide-duration) var(--tx-carousel-slide-easing)}:host([data-styled]) .tx-carousel__indicators{gap:var(--tx-carousel-indicator-list-gap);padding:var(--tx-carousel-indicator-list-padding)}:host([data-styled]) .tx-carousel__indicator-button{width:var(--tx-carousel-indicator-width);height:var(--tx-carousel-indicator-height);border-radius:var(--tx-carousel-indicator-border-radius);background:var(--tx-carousel-indicator-background);transition:background-color var(--tx-carousel-transition-duration)}:host([data-styled]) .tx-carousel__indicator-button:before{content:\"\";position:absolute;inset:50% 0 auto;height:var(--tx-carousel-indicator-hit-area);translate:0 -50%}:host([data-styled]) .tx-carousel__indicator-button:hover{background:var(--tx-carousel-indicator-hover-background)}:host([data-styled]) .tx-carousel__indicator-button:focus-visible{outline:var(--tx-carousel-indicator-focus-ring-width) solid var(--tx-carousel-indicator-focus-ring-color);outline-offset:var(--tx-carousel-indicator-focus-ring-offset)}:host([data-styled]) .tx-carousel__indicator--active .tx-carousel__indicator-button{background:var(--tx-carousel-indicator-active-background)}:host(.tx-carousel--instant) .tx-carousel__track{transition:none}:host(.tx-carousel--dragging){-webkit-user-select:none;user-select:none}:host(.tx-carousel--dragging) .tx-carousel__track{transition:none}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-carousel__track,:host([data-styled]) .tx-carousel__indicator-button{transition:none}}\n"]
|
|
736
747
|
}]
|