@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
|
@@ -6,14 +6,14 @@ import { TemplatePortal } from "@angular/cdk/portal";
|
|
|
6
6
|
import { DOCUMENT, NgTemplateOutlet } from "@angular/common";
|
|
7
7
|
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
8
8
|
import { TxAnnouncer, uniqueId } from "@tectra-ng/core/a11y";
|
|
9
|
-
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
9
|
+
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
10
10
|
import { injectFluid } from "@tectra-ng/core/fluid";
|
|
11
11
|
import { TxFormControlBase, injectFieldInvalid } from "@tectra-ng/core/forms";
|
|
12
12
|
import { TxLocaleService, injectTranslations } from "@tectra-ng/core/i18n";
|
|
13
13
|
import { TxOverlayAnchor, TxOverlayInsets, placementFromPosition, txAnimateEnter, txAnimateLeave, txPositions, txScrollStrategy, watchOrigin } from "@tectra-ng/core/overlay";
|
|
14
14
|
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
15
|
-
import { TxIcon } from "@tectra-ng/icons";
|
|
16
|
-
import { toStyleObject } from "@tectra-ng/themes";
|
|
15
|
+
import { TxIcon, provideTxIconDefaults, txIconCalendar, txIconChevronDown, txIconChevronLeft, txIconChevronRight, txIconChevronUp, txIconSpinner, txIconTable, txIconText, txIconTimes } from "@tectra-ng/icons";
|
|
16
|
+
import { datePickerTokens, fieldTokens, formFieldTokens, toStyleObject } from "@tectra-ng/themes";
|
|
17
17
|
import { TxButton } from "@tectra-ng/ui/button";
|
|
18
18
|
import { TxInput } from "@tectra-ng/ui/input";
|
|
19
19
|
var TxDatePickerDate = class TxDatePickerDate {
|
|
@@ -509,12 +509,29 @@ function parseTime(text, format) {
|
|
|
509
509
|
function escapeRegExp(text) {
|
|
510
510
|
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
511
511
|
}
|
|
512
|
+
const DATEPICKER_ICON_DEFAULTS = {
|
|
513
|
+
calendar: txIconCalendar,
|
|
514
|
+
"chevron-down": txIconChevronDown,
|
|
515
|
+
"chevron-left": txIconChevronLeft,
|
|
516
|
+
"chevron-right": txIconChevronRight,
|
|
517
|
+
"chevron-up": txIconChevronUp,
|
|
518
|
+
spinner: txIconSpinner,
|
|
519
|
+
table: txIconTable,
|
|
520
|
+
text: txIconText,
|
|
521
|
+
times: txIconTimes
|
|
522
|
+
};
|
|
523
|
+
const DATEPICKER_THEME = {
|
|
524
|
+
datePicker: datePickerTokens,
|
|
525
|
+
field: fieldTokens,
|
|
526
|
+
formField: formFieldTokens
|
|
527
|
+
};
|
|
512
528
|
const REPEAT_DELAY = 400;
|
|
513
529
|
const REPEAT_INTERVAL = 80;
|
|
514
530
|
function isoDay(date) {
|
|
515
531
|
return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`;
|
|
516
532
|
}
|
|
517
533
|
var TxDatePicker = class TxDatePicker extends TxFormControlBase {
|
|
534
|
+
datepickerTheme = injectTokens(DATEPICKER_THEME);
|
|
518
535
|
selectionMode = input("single", ...ngDevMode ? [{ debugName: "selectionMode" }] : /* istanbul ignore next */ []);
|
|
519
536
|
dateFormat = input(void 0, ...ngDevMode ? [{ debugName: "dateFormat" }] : /* istanbul ignore next */ []);
|
|
520
537
|
placeholder = input(void 0, ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
@@ -2045,6 +2062,7 @@ var TxDatePicker = class TxDatePicker extends TxFormControlBase {
|
|
|
2045
2062
|
]
|
|
2046
2063
|
}
|
|
2047
2064
|
],
|
|
2065
|
+
viewProviders: [provideTxIconDefaults(DATEPICKER_ICON_DEFAULTS)],
|
|
2048
2066
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2049
2067
|
});
|
|
2050
2068
|
};
|
|
@@ -2088,6 +2106,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2088
2106
|
"[class.tx-datepicker--fluid]": "isFluid()",
|
|
2089
2107
|
"[class.tx-datepicker--button]": "showIcon() && iconDisplay() === \"button\" && !inline()"
|
|
2090
2108
|
},
|
|
2109
|
+
viewProviders: [provideTxIconDefaults(DATEPICKER_ICON_DEFAULTS)],
|
|
2091
2110
|
template: "@if (inline()) {\n <ng-container [ngTemplateOutlet]=\"panelTemplate\" />\n} @else {\n <div #field #origin=\"cdkOverlayOrigin\" cdkOverlayOrigin class=\"tx-datepicker__field\">\n <input\n #input\n txInput\n type=\"text\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-autocomplete=\"none\"\n aria-haspopup=\"dialog\"\n class=\"tx-datepicker__input\"\n [class]=\"passThrough().input?.class\"\n [style]=\"passThrough().input?.style\"\n [id]=\"resolvedInputId()\"\n [size]=\"size()\"\n [variant]=\"variant()\"\n [fluid]=\"true\"\n [invalid]=\"isInvalid()\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly() || readonlyInput()\"\n [required]=\"required()\"\n [value]=\"inputText()\"\n [attr.inputmode]=\"readonlyInput() || touchUI() ? 'none' : null\"\n [attr.placeholder]=\"placeholder() ?? null\"\n [attr.name]=\"name() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId : null\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (click)=\"onInputClick()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onInputKeydown($event)\"\n />\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"tx-datepicker__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n (click)=\"onClearIcon()\"\n >\n <tx-icon name=\"times\" />\n </button>\n }\n @if (showIcon() && iconDisplay() === 'input') {\n <span\n class=\"tx-datepicker__input-icon\"\n aria-hidden=\"true\"\n [class]=\"passThrough().inputIcon?.class\"\n [style]=\"passThrough().inputIcon?.style\"\n (click)=\"toggle(false)\"\n >\n @if (inputIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: toggle.bind(this, false) }\" />\n } @else {\n <tx-icon [name]=\"icon()\" />\n }\n </span>\n }\n @if (showIcon() && iconDisplay() === 'button') {\n <button\n type=\"button\"\n class=\"tx-datepicker__dropdown\"\n aria-haspopup=\"dialog\"\n tabindex=\"-1\"\n [class]=\"passThrough().dropdown?.class\"\n [style]=\"passThrough().dropdown?.style\"\n [disabled]=\"!isEditable()\"\n [attr.aria-label]=\"iconAriaLabel() ?? translations().chooseDate\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId : null\"\n (click)=\"toggle(true)\"\n >\n @if (triggerIconTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else {\n <tx-icon [name]=\"icon()\" />\n }\n </button>\n }\n </div>\n\n <ng-template\n cdkConnectedOverlay\n txOverlayAnchor\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"isPanelMounted() && !touchUI()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayMinWidth]=\"panelMinWidth()\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n (attach)=\"onAttach()\"\n (positionChange)=\"onPositionChange($event)\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (detach)=\"close(false)\"\n >\n <ng-container [ngTemplateOutlet]=\"panelTemplate\" />\n </ng-template>\n}\n\n<ng-template #panelTemplate>\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- the panel only listens to keys and focus that bubble from its controls -->\n <div\n #panel\n class=\"tx-datepicker__panel\"\n [cdkTrapFocus]=\"!inline()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"inline() ? 'group' : 'dialog'\"\n [attr.aria-modal]=\"inline() ? null : 'true'\"\n [attr.aria-label]=\"ariaLabel() ?? translations().chooseDate\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.data-view]=\"currentView()\"\n [class.tx-datepicker__panel--inline]=\"inline()\"\n [class.tx-datepicker__panel--touch]=\"touchUI() && !inline()\"\n [class.tx-datepicker__panel--time-only]=\"timeOnly()\"\n [class.tx-datepicker__panel--disabled]=\"isDisabled()\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"panelStyle()\"\n [style.min-width.px]=\"inline() ? null : panelMinWidth()\"\n (keydown)=\"onPanelKeydown($event)\"\n (focusout)=\"onPanelFocusOut($event)\"\n >\n @if (headerTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n }\n @if (!timeOnly()) {\n <div class=\"tx-datepicker__calendars\">\n @for (month of currentView() === 'date' ? months() : [months()[0]]; track month.year * 12 + month.month; let first = $first; let last = $last) {\n <div class=\"tx-datepicker__calendar\" [class]=\"passThrough().calendar?.class\" [style]=\"passThrough().calendar?.style\">\n <div class=\"tx-datepicker__header\" [class]=\"passThrough().header?.class\" [style]=\"passThrough().header?.style\">\n <button\n txButton\n type=\"button\"\n icon=\"chevron-left\"\n severity=\"secondary\"\n variant=\"text\"\n class=\"tx-datepicker__previous\"\n [rounded]=\"true\"\n [unstyled]=\"isUnstyled()\"\n [class.tx-datepicker__nav--hidden]=\"!first\"\n [class]=\"passThrough().previous?.class\"\n [style]=\"passThrough().previous?.style\"\n [disabled]=\"isDisabled()\"\n [attr.aria-hidden]=\"first ? null : 'true'\"\n [attr.tabindex]=\"first ? null : -1\"\n [attr.aria-label]=\"currentView() === 'year' ? translations().previousDecade : currentView() === 'month' ? translations().previousYear : translations().previousMonth\"\n (click)=\"previous()\"\n ></button>\n <div class=\"tx-datepicker__title\" [class]=\"passThrough().title?.class\" [style]=\"passThrough().title?.style\">\n @switch (currentView()) {\n @case ('date') {\n <button\n type=\"button\"\n class=\"tx-datepicker__select-month\"\n [class]=\"passThrough().selectMonth?.class\"\n [style]=\"passThrough().selectMonth?.style\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"translations().chooseMonth + ', ' + names().monthNames[month.month]\"\n (click)=\"showMonthView()\"\n >\n {{ names().monthNames[month.month] }}\n </button>\n <button\n type=\"button\"\n class=\"tx-datepicker__select-year\"\n [class]=\"passThrough().selectYear?.class\"\n [style]=\"passThrough().selectYear?.style\"\n [disabled]=\"isDisabled()\"\n [attr.aria-label]=\"translations().chooseYear + ', ' + month.year\"\n (click)=\"showYearView()\"\n >\n {{ month.year }}\n </button>\n }\n @case ('month') {\n <button\n type=\"button\"\n class=\"tx-datepicker__select-year\"\n [class]=\"passThrough().selectYear?.class\"\n [style]=\"passThrough().selectYear?.style\"\n [disabled]=\"isDisabled() || view() === 'year'\"\n [attr.aria-label]=\"translations().chooseYear + ', ' + viewYear()\"\n (click)=\"showYearView()\"\n >\n {{ viewYear() }}\n </button>\n }\n @case ('year') {\n <span class=\"tx-datepicker__decade\">\n @if (decadeTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: decade() }\" />\n } @else {\n {{ decade()[0] }} – {{ decade()[9] }}\n }\n </span>\n }\n }\n </div>\n <button\n txButton\n type=\"button\"\n icon=\"chevron-right\"\n severity=\"secondary\"\n variant=\"text\"\n class=\"tx-datepicker__next\"\n [rounded]=\"true\"\n [unstyled]=\"isUnstyled()\"\n [class.tx-datepicker__nav--hidden]=\"!last\"\n [class]=\"passThrough().next?.class\"\n [style]=\"passThrough().next?.style\"\n [disabled]=\"isDisabled()\"\n [attr.aria-hidden]=\"last ? null : 'true'\"\n [attr.tabindex]=\"last ? null : -1\"\n [attr.aria-label]=\"currentView() === 'year' ? translations().nextDecade : currentView() === 'month' ? translations().nextYear : translations().nextMonth\"\n (click)=\"next()\"\n ></button>\n </div>\n\n @switch (currentView()) {\n @case ('date') {\n <table\n role=\"grid\"\n class=\"tx-datepicker__day-view\"\n (mouseleave)=\"onGridLeave()\"\n [attr.aria-label]=\"names().monthNames[month.month] + ' ' + month.year\"\n [class]=\"passThrough().table?.class\"\n [style]=\"passThrough().table?.style\"\n >\n <thead>\n <tr>\n @if (showWeek()) {\n <th scope=\"col\" class=\"tx-datepicker__weekday tx-datepicker__weekheader\" [class]=\"passThrough().weekday?.class\" [style]=\"passThrough().weekday?.style\">\n {{ translations().weekHeader }}\n </th>\n }\n @for (weekday of weekdays(); track weekday.long) {\n <th scope=\"col\" class=\"tx-datepicker__weekday\" [attr.abbr]=\"weekday.long\" [class]=\"passThrough().weekday?.class\" [style]=\"passThrough().weekday?.style\">\n {{ weekday.short }}\n </th>\n }\n </tr>\n </thead>\n <tbody>\n @for (week of month.weeks; track week.number + '-' + $index) {\n <tr>\n @if (showWeek()) {\n <th scope=\"row\" class=\"tx-datepicker__week-number\" [class]=\"passThrough().weekNumber?.class\" [style]=\"passThrough().weekNumber?.style\">\n {{ week.number }}\n </th>\n }\n @for (day of week.days; track dayKey(day.date)) {\n @if (day.otherMonth && !showOtherMonths()) {\n <td role=\"gridcell\" class=\"tx-datepicker__day-cell tx-datepicker__day-cell--empty\"></td>\n } @else {\n <td\n role=\"gridcell\"\n class=\"tx-datepicker__day-cell\"\n [class.tx-datepicker__day-cell--today]=\"day.today\"\n [class.tx-datepicker__day-cell--other]=\"day.otherMonth\"\n [attr.data-date]=\"dayKey(day.date)\"\n [attr.data-active]=\"isFocusedDay(day) || null\"\n [attr.tabindex]=\"isFocusedDay(day) ? 0 : -1\"\n [attr.aria-label]=\"dayLabel(day.date)\"\n [attr.aria-selected]=\"isSelected(day.date) || isInRange(day.date)\"\n [attr.aria-disabled]=\"!day.selectable || (day.otherMonth && !selectOtherMonths()) || null\"\n [attr.aria-current]=\"day.today ? 'date' : null\"\n (click)=\"onDayClick(day)\"\n (mouseenter)=\"onDayEnter(day)\"\n (keydown)=\"onDayKeydown($event, day)\"\n >\n <span\n class=\"tx-datepicker__day\"\n [class.tx-datepicker__day--selected]=\"isSelected(day.date)\"\n [class.tx-datepicker__day--range]=\"isInRange(day.date)\"\n [class.tx-datepicker__day--preview]=\"isPreview(day.date)\"\n [class.tx-datepicker__day--disabled]=\"!day.selectable\"\n [class]=\"passThrough().day?.class\"\n [style]=\"passThrough().day?.style\"\n >\n @if (dateTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: day, selected: isSelected(day.date), inRange: isInRange(day.date) }\"\n />\n } @else {\n {{ day.day }}\n }\n </span>\n </td>\n }\n }\n </tr>\n }\n </tbody>\n </table>\n }\n @case ('month') {\n <div\n role=\"grid\"\n class=\"tx-datepicker__month-view\"\n [attr.aria-label]=\"translations().chooseMonth\"\n [class]=\"passThrough().monthView?.class\"\n [style]=\"passThrough().monthView?.style\"\n >\n @for (row of [0, 1, 2, 3]; track row) {\n <div role=\"row\" class=\"tx-datepicker__row\">\n @for (column of [0, 1, 2]; track column) {\n @let monthIndex = row * 3 + column;\n <span\n role=\"gridcell\"\n class=\"tx-datepicker__month\"\n [class.tx-datepicker__month--selected]=\"isMonthSelected(monthIndex)\"\n [class.tx-datepicker__month--disabled]=\"!monthSelectable(monthIndex)\"\n [class]=\"passThrough().month?.class\"\n [style]=\"passThrough().month?.style\"\n [attr.data-active]=\"focusedMonth() === monthIndex || null\"\n [attr.tabindex]=\"focusedMonth() === monthIndex ? 0 : -1\"\n [attr.aria-label]=\"names().monthNames[monthIndex] + ' ' + viewYear()\"\n [attr.aria-selected]=\"isMonthSelected(monthIndex)\"\n [attr.aria-disabled]=\"!monthSelectable(monthIndex) || null\"\n (click)=\"pickMonth(monthIndex)\"\n (keydown)=\"onMonthKeydown($event, monthIndex)\"\n >{{ names().monthNamesShort[monthIndex] }}</span\n >\n }\n </div>\n }\n </div>\n }\n @case ('year') {\n <div\n role=\"grid\"\n class=\"tx-datepicker__year-view\"\n [attr.aria-label]=\"translations().chooseYear\"\n [class]=\"passThrough().yearView?.class\"\n [style]=\"passThrough().yearView?.style\"\n >\n @for (row of [0, 1, 2, 3, 4]; track row) {\n <div role=\"row\" class=\"tx-datepicker__row\">\n @for (column of [0, 1]; track column) {\n @let year = decade()[row * 2 + column];\n <span\n role=\"gridcell\"\n class=\"tx-datepicker__year\"\n [class.tx-datepicker__year--selected]=\"isYearSelected(year)\"\n [class.tx-datepicker__year--disabled]=\"!yearSelectable(year)\"\n [class]=\"passThrough().year?.class\"\n [style]=\"passThrough().year?.style\"\n [attr.data-active]=\"focusedYear() === year || null\"\n [attr.tabindex]=\"focusedYear() === year ? 0 : -1\"\n [attr.aria-selected]=\"isYearSelected(year)\"\n [attr.aria-disabled]=\"!yearSelectable(year) || null\"\n (click)=\"pickYear(year)\"\n (keydown)=\"onYearKeydown($event, year)\"\n >{{ year }}</span\n >\n }\n </div>\n }\n </div>\n }\n }\n </div>\n }\n </div>\n }\n\n @if (hasTime() && currentView() === 'date') {\n <div class=\"tx-datepicker__time\" [class]=\"passThrough().timePicker?.class\" [style]=\"passThrough().timePicker?.style\">\n <ng-container [ngTemplateOutlet]=\"spinner\" [ngTemplateOutletContext]=\"{ unit: 'hour', value: hours() }\" />\n <span class=\"tx-datepicker__time-separator\" aria-hidden=\"true\">{{ timeSeparator() }}</span>\n <ng-container [ngTemplateOutlet]=\"spinner\" [ngTemplateOutletContext]=\"{ unit: 'minute', value: minutes() }\" />\n @if (showSeconds()) {\n <span class=\"tx-datepicker__time-separator\" aria-hidden=\"true\">{{ timeSeparator() }}</span>\n <ng-container [ngTemplateOutlet]=\"spinner\" [ngTemplateOutletContext]=\"{ unit: 'second', value: seconds() }\" />\n }\n @if (hourFormat() === '12') {\n <div class=\"tx-datepicker__time-unit\">\n <button\n txButton\n type=\"button\"\n icon=\"chevron-up\"\n severity=\"secondary\"\n variant=\"text\"\n [rounded]=\"true\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"!isEditable()\"\n [attr.aria-label]=\"translations().toggleAmPm\"\n (click)=\"toggleMeridiem()\"\n ></button>\n <span class=\"tx-datepicker__time-value\">{{ isPm() ? translations().pm : translations().am }}</span>\n <button\n txButton\n type=\"button\"\n icon=\"chevron-down\"\n severity=\"secondary\"\n variant=\"text\"\n [rounded]=\"true\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"!isEditable()\"\n [attr.aria-label]=\"translations().toggleAmPm\"\n (click)=\"toggleMeridiem()\"\n ></button>\n </div>\n }\n </div>\n }\n\n @if (showButtonBar()) {\n <div class=\"tx-datepicker__buttonbar\" [class]=\"passThrough().buttonbar?.class\" [style]=\"passThrough().buttonbar?.style\">\n @if (buttonBarTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ today: selectToday.bind(this), clear: onClearButton.bind(this) }\" />\n } @else {\n <button\n txButton\n type=\"button\"\n size=\"small\"\n severity=\"secondary\"\n variant=\"text\"\n [unstyled]=\"isUnstyled()\"\n [label]=\"translations().today\"\n [disabled]=\"!isEditable()\"\n (click)=\"selectToday()\"\n ></button>\n <button\n txButton\n type=\"button\"\n size=\"small\"\n severity=\"secondary\"\n variant=\"text\"\n [unstyled]=\"isUnstyled()\"\n [label]=\"translations().clear\"\n [disabled]=\"!isEditable()\"\n (click)=\"onClearButton()\"\n ></button>\n }\n </div>\n }\n @if (footerTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n }\n </div>\n</ng-template>\n\n<ng-template #spinner let-unit=\"unit\" let-value=\"value\">\n <div class=\"tx-datepicker__time-unit\" role=\"group\" [attr.aria-label]=\"unit === 'hour' ? translations().hour : unit === 'minute' ? translations().minute : translations().second\">\n <button\n txButton\n type=\"button\"\n icon=\"chevron-up\"\n severity=\"secondary\"\n variant=\"text\"\n [rounded]=\"true\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"!isEditable()\"\n [attr.aria-label]=\"unit === 'hour' ? translations().nextHour : unit === 'minute' ? translations().nextMinute : translations().nextSecond\"\n (pointerdown)=\"startRepeat($event, unit, 1)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n (keydown)=\"onTimeKeydown($event, unit, 1)\"\n ></button>\n <span class=\"tx-datepicker__time-value\" aria-live=\"polite\">{{ formatPart(value) }}</span>\n <button\n txButton\n type=\"button\"\n icon=\"chevron-down\"\n severity=\"secondary\"\n variant=\"text\"\n [rounded]=\"true\"\n [unstyled]=\"isUnstyled()\"\n [disabled]=\"!isEditable()\"\n [attr.aria-label]=\"unit === 'hour' ? translations().previousHour : unit === 'minute' ? translations().previousMinute : translations().previousSecond\"\n (pointerdown)=\"startRepeat($event, unit, -1)\"\n (pointerup)=\"stopRepeat()\"\n (pointerleave)=\"stopRepeat()\"\n (pointercancel)=\"stopRepeat()\"\n (keydown)=\"onTimeKeydown($event, unit, -1)\"\n ></button>\n </div>\n</ng-template>\n",
|
|
2092
2111
|
styles: [":host{display:inline-flex;max-width:100%;vertical-align:top}:host(.tx-datepicker--fluid){display:flex;width:100%}:host(.tx-datepicker--inline){display:inline-block}.tx-datepicker__field{position:relative;display:flex;flex:1 1 auto;align-items:stretch;min-width:0}.tx-datepicker__input{flex:1 1 auto;width:1%;min-width:0}.tx-datepicker__clear,.tx-datepicker__input-icon{position:absolute;top:50%;transform:translateY(-50%)}.tx-datepicker__dropdown{display:inline-flex;flex:none;align-items:center;justify-content:center;cursor:pointer}.tx-datepicker__nav--hidden{visibility:hidden}:host([data-styled]){--_icon-room: 0px;--_clear-room: 0px}:host([data-styled]) .tx-datepicker__input{--tx-field-inset-end: calc(var(--_icon-room) + var(--_clear-room))}:host([data-styled]) .tx-datepicker__clear{display:grid;place-items:center;width:24px;height:24px;padding:0;border:none;border-radius:var(--tx-radius-sm);background:transparent;color:var(--tx-form-field-icon-color);font-size:var(--tx-form-field-font-size);cursor:pointer;pointer-events:auto;transition:background-color var(--tx-form-field-transition-duration),color var(--tx-form-field-transition-duration)}:host([data-styled]) .tx-datepicker__clear:hover{background:var(--tx-surface-hover);color:var(--tx-form-field-color)}:host([data-styled]) .tx-datepicker__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:1px}:host([data-styled]) .tx-datepicker__clear{right:calc(var(--_icon-room) + var(--_button-room, 0px) + 8px)}:host([data-styled]) .tx-datepicker__input-icon{right:var(--tx-form-field-padding-x);display:inline-flex;color:var(--tx-date-picker-input-icon-color);font-size:var(--tx-form-field-font-size);line-height:1;cursor:pointer}:host([data-styled]) .tx-datepicker__dropdown{box-sizing:border-box;width:var(--tx-date-picker-dropdown-width);padding:0;border:1px solid var(--tx-date-picker-dropdown-border-color);border-inline-start:0 none;border-start-end-radius:var(--tx-date-picker-dropdown-border-radius);border-end-end-radius:var(--tx-date-picker-dropdown-border-radius);outline-color:transparent;background:var(--tx-date-picker-dropdown-background);color:var(--tx-date-picker-dropdown-color);font-size:var(--tx-form-field-font-size);transition:background-color var(--tx-date-picker-transition-duration),color var(--tx-date-picker-transition-duration),border-color var(--tx-date-picker-transition-duration),outline-color var(--tx-date-picker-transition-duration)}:host([data-styled]) .tx-datepicker__dropdown:not(:disabled):hover{border-color:var(--tx-date-picker-dropdown-hover-border-color);background:var(--tx-date-picker-dropdown-hover-background);color:var(--tx-date-picker-dropdown-hover-color)}:host([data-styled]) .tx-datepicker__dropdown:not(:disabled):active{border-color:var(--tx-date-picker-dropdown-active-border-color);background:var(--tx-date-picker-dropdown-active-background);color:var(--tx-date-picker-dropdown-active-color)}:host([data-styled]) .tx-datepicker__dropdown:focus-visible{outline:var(--tx-date-picker-dropdown-focus-ring-width) var(--tx-date-picker-dropdown-focus-ring-style) var(--tx-date-picker-dropdown-focus-ring-color);outline-offset:var(--tx-date-picker-dropdown-focus-ring-offset);box-shadow:var(--tx-date-picker-dropdown-focus-ring-shadow)}:host([data-styled]) .tx-datepicker__dropdown:disabled{cursor:not-allowed;opacity:.6}:host([data-styled]:has(.tx-datepicker__input-icon)){--_icon-room: calc(var(--tx-form-field-padding-x) + 1em)}:host([data-styled]:has(.tx-datepicker__clear)){--_clear-room: 28px}:host([data-styled].tx-datepicker--button){--_button-room: var(--tx-date-picker-dropdown-width)}:host([data-styled].tx-datepicker--button[data-size=small]){--_button-room: var(--tx-date-picker-dropdown-sm-width)}:host([data-styled].tx-datepicker--button[data-size=large]){--_button-room: var(--tx-date-picker-dropdown-lg-width)}:host([data-styled].tx-datepicker--button) .tx-datepicker__input{border-start-end-radius:0;border-end-end-radius:0}:host([data-styled][data-size=small]) .tx-datepicker__dropdown{width:var(--tx-date-picker-dropdown-sm-width);font-size:var(--tx-form-field-sm-font-size)}:host([data-styled][data-size=large]) .tx-datepicker__dropdown{width:var(--tx-date-picker-dropdown-lg-width);font-size:var(--tx-form-field-lg-font-size)}.tx-datepicker__panel{box-sizing:border-box}.tx-datepicker__calendars{display:flex}.tx-datepicker__header,.tx-datepicker__title,.tx-datepicker__time,.tx-datepicker__buttonbar{display:flex;align-items:center}.tx-datepicker__header,.tx-datepicker__buttonbar{justify-content:space-between}.tx-datepicker__time{justify-content:center}.tx-datepicker__time-unit{display:flex;flex-direction:column;align-items:center}.tx-datepicker__day-view{width:100%;border-collapse:collapse}.tx-datepicker__day-cell{cursor:pointer}.tx-datepicker__day-cell[aria-disabled=true]{cursor:default}.tx-datepicker__day{display:flex;align-items:center;justify-content:center;margin:0 auto}.tx-datepicker__row{display:flex}.tx-datepicker__month,.tx-datepicker__year{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.tx-datepicker__month{width:33.3%}.tx-datepicker__year{width:50%}.tx-datepicker__month--disabled,.tx-datepicker__year--disabled{cursor:default}.tx-datepicker__panel[data-styled]{padding:var(--tx-date-picker-panel-padding);border:1px solid var(--tx-date-picker-panel-border-color);border-radius:var(--tx-date-picker-panel-border-radius);background:var(--tx-date-picker-panel-background);box-shadow:var(--tx-date-picker-panel-shadow);color:var(--tx-date-picker-panel-color);font-family:var(--tx-font-family)}.tx-datepicker__panel[data-styled].tx-datepicker__panel--inline{display:inline-block;overflow-x:auto;box-shadow:none}.tx-datepicker__panel[data-styled].tx-datepicker__panel--touch{width:var(--tx-date-picker-touch-width);max-height:92vh;overflow:auto}.tx-datepicker__panel[data-styled].tx-datepicker__panel--disabled{opacity:.6}.tx-datepicker__panel[data-styled] .tx-datepicker__calendar{flex:1 1 auto;padding-inline:var(--tx-date-picker-group-gap);border-inline-start:1px solid var(--tx-date-picker-group-border-color)}.tx-datepicker__panel[data-styled] .tx-datepicker__calendar:first-child{padding-inline-start:0;border-inline-start:0 none}.tx-datepicker__panel[data-styled] .tx-datepicker__calendar:last-child{padding-inline-end:0}.tx-datepicker__panel[data-styled] .tx-datepicker__header{padding:var(--tx-date-picker-header-padding);border-bottom:1px solid var(--tx-date-picker-header-border-color);background:var(--tx-date-picker-header-background);color:var(--tx-date-picker-header-color)}.tx-datepicker__panel[data-styled] .tx-datepicker__title{gap:var(--tx-date-picker-title-gap);font-size:var(--tx-date-picker-title-font-size);font-weight:var(--tx-date-picker-title-font-weight)}.tx-datepicker__panel[data-styled] .tx-datepicker__select-month,.tx-datepicker__panel[data-styled] .tx-datepicker__select-year{margin:0;border:none;outline-color:transparent;background:transparent;font-family:inherit;cursor:pointer;transition:background-color var(--tx-date-picker-transition-duration),color var(--tx-date-picker-transition-duration),outline-color var(--tx-date-picker-transition-duration)}.tx-datepicker__panel[data-styled] .tx-datepicker__select-month:focus-visible,.tx-datepicker__panel[data-styled] .tx-datepicker__select-year:focus-visible{outline:var(--tx-date-picker-date-focus-ring-width) var(--tx-date-picker-date-focus-ring-style) var(--tx-date-picker-date-focus-ring-color);outline-offset:var(--tx-date-picker-date-focus-ring-offset)}.tx-datepicker__panel[data-styled] .tx-datepicker__select-month:disabled,.tx-datepicker__panel[data-styled] .tx-datepicker__select-year:disabled{cursor:default}.tx-datepicker__panel[data-styled] .tx-datepicker__select-month{padding:var(--tx-date-picker-select-month-padding);border-radius:var(--tx-date-picker-select-month-border-radius);color:var(--tx-date-picker-select-month-color);font-size:var(--tx-date-picker-select-month-font-size);font-weight:var(--tx-date-picker-select-month-font-weight)}.tx-datepicker__panel[data-styled] .tx-datepicker__select-month:enabled:hover{background:var(--tx-date-picker-select-month-hover-background);color:var(--tx-date-picker-select-month-hover-color)}.tx-datepicker__panel[data-styled] .tx-datepicker__select-year{padding:var(--tx-date-picker-select-year-padding);border-radius:var(--tx-date-picker-select-year-border-radius);color:var(--tx-date-picker-select-year-color);font-size:var(--tx-date-picker-select-year-font-size);font-weight:var(--tx-date-picker-select-year-font-weight)}.tx-datepicker__panel[data-styled] .tx-datepicker__select-year:enabled:hover{background:var(--tx-date-picker-select-year-hover-background);color:var(--tx-date-picker-select-year-hover-color)}.tx-datepicker__panel[data-styled] .tx-datepicker__decade{padding:var(--tx-date-picker-select-year-padding)}.tx-datepicker__panel[data-styled] .tx-datepicker__day-view{margin:var(--tx-date-picker-day-view-margin);font-size:var(--tx-date-picker-date-font-size)}.tx-datepicker__panel[data-styled] .tx-datepicker__weekday{padding:var(--tx-date-picker-week-day-padding);color:var(--tx-date-picker-week-day-color);font-size:var(--tx-date-picker-week-day-font-size);font-weight:var(--tx-date-picker-week-day-font-weight)}.tx-datepicker__panel[data-styled] .tx-datepicker__week-number{padding:var(--tx-date-picker-date-padding);color:var(--tx-date-picker-week-number-color);font-size:var(--tx-date-picker-week-number-font-size);font-weight:var(--tx-date-picker-date-font-weight);text-align:center}.tx-datepicker__panel[data-styled] .tx-datepicker__day-cell{padding:var(--tx-date-picker-date-padding);outline:none}.tx-datepicker__panel[data-styled] .tx-datepicker__day{box-sizing:border-box;width:var(--tx-date-picker-date-width);height:var(--tx-date-picker-date-height);border:1px solid transparent;border-radius:var(--tx-date-picker-date-border-radius);color:var(--tx-date-picker-date-color);font-size:var(--tx-date-picker-date-font-size);font-weight:var(--tx-date-picker-date-font-weight);transition:background-color var(--tx-date-picker-transition-duration),color var(--tx-date-picker-transition-duration),box-shadow var(--tx-date-picker-transition-duration)}.tx-datepicker__panel[data-styled] .tx-datepicker__day-cell--today .tx-datepicker__day{background:var(--tx-date-picker-today-background);color:var(--tx-date-picker-today-color)}.tx-datepicker__panel[data-styled] .tx-datepicker__day-cell:not([aria-disabled=true]):hover .tx-datepicker__day:not(.tx-datepicker__day--selected,.tx-datepicker__day--preview){background:var(--tx-date-picker-date-hover-background);color:var(--tx-date-picker-date-hover-color)}.tx-datepicker__panel[data-styled] .tx-datepicker__day-cell:focus-visible .tx-datepicker__day{outline:var(--tx-date-picker-date-focus-ring-width) var(--tx-date-picker-date-focus-ring-style) var(--tx-date-picker-date-focus-ring-color);outline-offset:var(--tx-date-picker-date-focus-ring-offset);box-shadow:var(--tx-date-picker-date-focus-ring-shadow)}.tx-datepicker__panel[data-styled] .tx-datepicker__day--range,.tx-datepicker__panel[data-styled] .tx-datepicker__day--preview,.tx-datepicker__panel[data-styled] .tx-datepicker__day-cell--today .tx-datepicker__day--range,.tx-datepicker__panel[data-styled] .tx-datepicker__day-cell--today .tx-datepicker__day--preview{background:var(--tx-date-picker-date-range-selected-background);color:var(--tx-date-picker-date-range-selected-color)}.tx-datepicker__panel[data-styled] .tx-datepicker__day--selected,.tx-datepicker__panel[data-styled] .tx-datepicker__day-cell--today .tx-datepicker__day--selected{background:var(--tx-date-picker-date-selected-background);color:var(--tx-date-picker-date-selected-color)}.tx-datepicker__panel[data-styled] .tx-datepicker__day--disabled{opacity:var(--tx-date-picker-date-disabled-opacity)}.tx-datepicker__panel[data-styled] .tx-datepicker__month-view{margin:var(--tx-date-picker-month-view-margin)}.tx-datepicker__panel[data-styled] .tx-datepicker__year-view{margin:var(--tx-date-picker-year-view-margin)}.tx-datepicker__panel[data-styled] .tx-datepicker__month,.tx-datepicker__panel[data-styled] .tx-datepicker__year{box-sizing:border-box;outline-color:transparent;color:var(--tx-date-picker-date-color);font-size:var(--tx-date-picker-date-font-size);font-weight:var(--tx-date-picker-date-font-weight);transition:background-color var(--tx-date-picker-transition-duration),color var(--tx-date-picker-transition-duration),outline-color var(--tx-date-picker-transition-duration)}.tx-datepicker__panel[data-styled] .tx-datepicker__month:not(.tx-datepicker__month--disabled,.tx-datepicker__year--disabled,.tx-datepicker__month--selected,.tx-datepicker__year--selected):hover,.tx-datepicker__panel[data-styled] .tx-datepicker__year:not(.tx-datepicker__month--disabled,.tx-datepicker__year--disabled,.tx-datepicker__month--selected,.tx-datepicker__year--selected):hover{background:var(--tx-date-picker-date-hover-background);color:var(--tx-date-picker-date-hover-color)}.tx-datepicker__panel[data-styled] .tx-datepicker__month:focus-visible,.tx-datepicker__panel[data-styled] .tx-datepicker__year:focus-visible{outline:var(--tx-date-picker-date-focus-ring-width) var(--tx-date-picker-date-focus-ring-style) var(--tx-date-picker-date-focus-ring-color);outline-offset:var(--tx-date-picker-date-focus-ring-offset)}.tx-datepicker__panel[data-styled] .tx-datepicker__month{padding:var(--tx-date-picker-month-padding);border-radius:var(--tx-date-picker-month-border-radius)}.tx-datepicker__panel[data-styled] .tx-datepicker__year{padding:var(--tx-date-picker-year-padding);border-radius:var(--tx-date-picker-year-border-radius)}.tx-datepicker__panel[data-styled] .tx-datepicker__month--selected,.tx-datepicker__panel[data-styled] .tx-datepicker__year--selected{background:var(--tx-date-picker-date-selected-background);color:var(--tx-date-picker-date-selected-color)}.tx-datepicker__panel[data-styled] .tx-datepicker__month--disabled,.tx-datepicker__panel[data-styled] .tx-datepicker__year--disabled{opacity:var(--tx-date-picker-date-disabled-opacity)}.tx-datepicker__panel[data-styled] .tx-datepicker__time{gap:var(--tx-date-picker-time-picker-gap);padding:0;color:var(--tx-date-picker-time-picker-color);font-size:var(--tx-date-picker-time-picker-font-size);font-weight:var(--tx-date-picker-time-picker-font-weight)}.tx-datepicker__panel[data-styled] .tx-datepicker__calendars+.tx-datepicker__time{margin-top:var(--tx-date-picker-time-picker-gap);padding:var(--tx-date-picker-time-picker-padding);border-top:1px solid var(--tx-date-picker-time-picker-border-color)}.tx-datepicker__panel[data-styled] .tx-datepicker__time-unit{gap:var(--tx-date-picker-time-picker-button-gap)}.tx-datepicker__panel[data-styled] .tx-datepicker__time-value{font-variant-numeric:tabular-nums}.tx-datepicker__panel[data-styled] .tx-datepicker__buttonbar{padding:var(--tx-date-picker-buttonbar-padding);border-top:1px solid var(--tx-date-picker-buttonbar-border-color)}.tx-datepicker__panel[data-styled] .tx-datepicker__calendars+.tx-datepicker__buttonbar,.tx-datepicker__panel[data-styled] .tx-datepicker__time+.tx-datepicker__buttonbar{margin-top:var(--tx-date-picker-time-picker-gap)}.tx-datepicker__panel[data-styled] .tx-datepicker__month-view,.tx-datepicker__panel[data-styled] .tx-datepicker__year-view,.tx-datepicker__panel[data-styled] .tx-datepicker__day-view{animation:tx-datepicker-view var(--tx-date-picker-transition-duration) ease-out}@keyframes tx-datepicker-view{0%{opacity:0}}@media(prefers-reduced-motion:reduce){.tx-datepicker__panel[data-styled] .tx-datepicker__month-view,.tx-datepicker__panel[data-styled] .tx-datepicker__year-view,.tx-datepicker__panel[data-styled] .tx-datepicker__day-view{animation:none}}\n"]
|
|
2093
2112
|
}]
|