@ids-group-ltd/ids-design-system 0.15.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +214 -20
- package/{docs/agent → agent}/charts/ds-bar-chart.md +1 -1
- package/agent/charts/ds-chart.md +10 -0
- package/{docs/agent → agent}/charts/ds-column-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-funnel-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-heatmap-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-line-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-pie-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-scatter-chart.md +1 -1
- package/{docs/agent → agent}/charts/ds-waterfall-chart.md +1 -1
- package/{docs/agent → agent}/feedback/ds-empty-state.md +1 -1
- package/agent/forms/ds-autocomplete.md +13 -0
- package/{docs/agent → agent}/forms/ds-button.md +1 -1
- package/{docs/agent → agent}/forms/ds-checkbox.md +1 -1
- package/agent/forms/ds-color-picker.md +8 -0
- package/{docs/agent → agent}/forms/ds-date-picker.md +1 -1
- package/{docs/agent → agent}/forms/ds-input.md +1 -1
- package/{docs/agent → agent}/forms/ds-multi-select.md +1 -1
- package/agent/forms/ds-otp-input.md +8 -0
- package/{docs/agent → agent}/forms/ds-radio-group.md +1 -1
- package/{docs/agent → agent}/forms/ds-radio.md +1 -1
- package/{docs/agent → agent}/forms/ds-search.md +1 -1
- package/{docs/agent → agent}/forms/ds-segmented.md +1 -1
- package/{docs/agent → agent}/forms/ds-select.md +1 -1
- package/{docs/agent → agent}/forms/ds-slider.md +1 -1
- package/{docs/agent → agent}/forms/ds-switch.md +1 -1
- package/{docs/agent → agent}/forms/ds-textarea.md +1 -1
- package/agent/forms/ds-time-picker.md +8 -0
- package/{docs/agent → agent}/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
- package/{docs/agent → agent}/overlays/ds-definition-term.md +1 -1
- package/agent/overlays/ds-tooltip.md +12 -0
- package/{docs/agent → agent}/platform/ds-config.md +2 -1
- package/{docs/agent → agent}/tables/ds-table.md +1 -1
- package/components.md +36 -35
- package/design-system.md +2 -2
- package/eslint/deprecated-api.json +224 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +12 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +12 -12
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +17 -22
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +3 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +7 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +6 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +7 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +6 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +17 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +4 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +5 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +6 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +4 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +7 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs +52 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +71 -25
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +276 -15
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +9 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +84 -31
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +76 -45
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +27 -2
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +2 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.10.0.json +21 -23
- package/migrations/0.10.2.json +3 -5
- package/migrations/0.10.3.json +1 -3
- package/migrations/0.11.0.json +4 -6
- package/migrations/0.11.1.json +1 -3
- package/migrations/0.13.0.json +4 -4
- package/migrations/0.13.4.json +20 -4
- package/migrations/0.14.0.json +1 -2
- package/migrations/0.15.1.json +5 -5
- package/migrations/0.15.3.json +175 -0
- package/migrations/0.6.2.json +5 -3
- package/migrations/0.7.1.json +1 -2
- package/migrations/0.8.0.json +2 -2
- package/migrations/0.9.0.json +14 -19
- package/migrations/1.0.0.json +374 -0
- package/migrations/README.md +11 -11
- package/package.json +9 -1
- package/schematics/check-overrides/surface.json +12 -1
- package/styles/_component-base.scss +29 -39
- package/styles/_dropdown-overlay.scss +7 -3
- package/styles/_focus.scss +4 -4
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +2 -0
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +1 -2
- package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-submitted.d.ts +27 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +30 -9
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +48 -3
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +44 -12
- package/types/ids-group-ltd-ids-design-system-components.d.ts +36 -21
- package/types/ids-group-ltd-ids-design-system-core.d.ts +32 -7
- package/types/ids-group-ltd-ids-design-system.d.ts +5 -4
- package/docs/agent/charts/ds-chart.md +0 -10
- package/docs/agent/forms/ds-autocomplete.md +0 -13
- package/docs/agent/forms/ds-color-picker.md +0 -8
- package/docs/agent/forms/ds-otp-input.md +0 -8
- package/docs/agent/forms/ds-time-picker.md +0 -8
- package/docs/agent/overlays/ds-tooltip.md +0 -12
- /package/{docs/agent → agent}/INDEX.md +0 -0
- /package/{docs/agent → agent}/charts/chart-colour-which-palette-a-chart-takes.md +0 -0
- /package/{docs/agent → agent}/charts/chart-frame-the-box-a-chart-draws-around-itself.md +0 -0
- /package/{docs/agent → agent}/charts/column-series-component.md +0 -0
- /package/{docs/agent → agent}/charts/ds-chart-data-table.md +0 -0
- /package/{docs/agent → agent}/charts/ds-config.md +0 -0
- /package/{docs/agent → agent}/charts/line-series-component.md +0 -0
- /package/{docs/agent → agent}/charts/reference-label-component.md +0 -0
- /package/{docs/agent → agent}/charts/reference-line-component.md +0 -0
- /package/{docs/agent → agent}/charts/series-annotation-component.md +0 -0
- /package/{docs/agent → agent}/domain/ds-w3w.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-alert.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-avatar-group.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-avatar.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-badge.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-banner.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-bar.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-description-item.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-description-list.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-list-item.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-list.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-loading-overlay.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-skeleton.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-spinner.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-stat.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-status-dot.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-tag.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-timeline-item.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-toast-region.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-toast.md +0 -0
- /package/{docs/agent → agent}/feedback/ds-tree.md +0 -0
- /package/{docs/agent → agent}/forms/ds-button-group.md +0 -0
- /package/{docs/agent → agent}/forms/ds-dropzone.md +0 -0
- /package/{docs/agent → agent}/forms/ds-field-group.md +0 -0
- /package/{docs/agent → agent}/forms/ds-filter-bar.md +0 -0
- /package/{docs/agent → agent}/forms/ds-icon-button.md +0 -0
- /package/{docs/agent → agent}/forms/ds-number-stepper.md +0 -0
- /package/{docs/agent → agent}/forms/ds-password-rules.md +0 -0
- /package/{docs/agent → agent}/forms/ds-split-button.md +0 -0
- /package/{docs/agent → agent}/forms/ds-toggle-button.md +0 -0
- /package/{docs/agent → agent}/forms/filter-item-directive.md +0 -0
- /package/{docs/agent → agent}/foundations/global-helper-classes.md +0 -0
- /package/{docs/agent → agent}/foundations/grid.md +0 -0
- /package/{docs/agent → agent}/foundations/tokens.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-app-layout.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-auth-layout.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-breadcrumbs.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-container.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-divider.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-inline.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-page-footer.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-page-header.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-pagination.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-sidenav-footer.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-sidenav-group.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-sidenav-item.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-sidenav.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-stack.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-stepper.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-tab.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-tabs.md +0 -0
- /package/{docs/agent → agent}/navigation/ds-topbar.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-bottom-sheet.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-drawer.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-info-hint.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-menu.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-modal-card.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-modal.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-popover.md +0 -0
- /package/{docs/agent → agent}/overlays/ds-tooltip-panel.md +0 -0
- /package/{docs/agent → agent}/platform/body-scroll-lock-service.md +0 -0
- /package/{docs/agent → agent}/platform/breadcrumbs-service.md +0 -0
- /package/{docs/agent → agent}/platform/ds-icon-registry.md +0 -0
- /package/{docs/agent → agent}/platform/ds-intl.md +0 -0
- /package/{docs/agent → agent}/platform/toast-service.md +0 -0
- /package/{docs/agent → agent}/surfaces/ds-accordion-item.md +0 -0
- /package/{docs/agent → agent}/surfaces/ds-accordion.md +0 -0
- /package/{docs/agent → agent}/surfaces/ds-card.md +0 -0
- /package/{docs/agent → agent}/tables/ds-cell-template.md +0 -0
- /package/{docs/agent → agent}/tables/ds-table-columns.md +0 -0
- /package/{docs/agent → agent}/tables/ds-table-export.md +0 -0
- /package/{docs/agent → agent}/tables/header-filter-directive.md +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, input, numberAttribute, output, viewChildren, computed, ViewEncapsulation, Component, ViewContainerRef, Injector, ElementRef, model, booleanAttribute,
|
|
2
|
+
import { inject, input, numberAttribute, output, viewChildren, computed, viewChild, signal, afterRenderEffect, untracked, ViewEncapsulation, Component, ViewContainerRef, Injector, ElementRef, model, booleanAttribute, afterNextRender, forwardRef } from '@angular/core';
|
|
3
3
|
import { NgTemplateOutlet } from '@angular/common';
|
|
4
4
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
5
|
import { Overlay } from '@angular/cdk/overlay';
|
|
@@ -133,6 +133,9 @@ class TimeColumnsComponent {
|
|
|
133
133
|
maxTime = input(null, ...(ngDevMode ? [{ debugName: "maxTime" }] : /* istanbul ignore next */ []));
|
|
134
134
|
/** Per-time predicate receiving `HH:mm`; return true to disable. */
|
|
135
135
|
disabledTime = input(null, ...(ngDevMode ? [{ debugName: "disabledTime" }] : /* istanbul ignore next */ []));
|
|
136
|
+
/** Whether the hour and minute columns run on past either end; `'auto'` loops a column that holds
|
|
137
|
+
* more values than it shows. */
|
|
138
|
+
loop = input('auto', ...(ngDevMode ? [{ debugName: "loop" }] : /* istanbul ignore next */ []));
|
|
136
139
|
/** A complete time was picked, as `HH:mm`; not emitted while only one column has moved. */
|
|
137
140
|
timeChange = output();
|
|
138
141
|
/** Which column the pick came from, emitted right after `timeChange`, which carries a whole time and cannot say which half moved. */
|
|
@@ -187,13 +190,217 @@ class TimeColumnsComponent {
|
|
|
187
190
|
selected: parsed ? to12h(parsed.h).period === period : false,
|
|
188
191
|
}));
|
|
189
192
|
}, ...(ngDevMode ? [{ debugName: "periodCells" }] : /* istanbul ignore next */ []));
|
|
193
|
+
hourColumn = viewChild('hourCol', ...(ngDevMode ? [{ debugName: "hourColumn" }] : /* istanbul ignore next */ []));
|
|
194
|
+
minuteColumn = viewChild('minuteCol', ...(ngDevMode ? [{ debugName: "minuteColumn" }] : /* istanbul ignore next */ []));
|
|
195
|
+
// One set of values taller than the column, measured after render; AM/PM is two rows and never loops.
|
|
196
|
+
hoursOverflow = signal(false, ...(ngDevMode ? [{ debugName: "hoursOverflow" }] : /* istanbul ignore next */ []));
|
|
197
|
+
minutesOverflow = signal(false, ...(ngDevMode ? [{ debugName: "minutesOverflow" }] : /* istanbul ignore next */ []));
|
|
198
|
+
loopCopiesEachSide = [0, 1, 2, 3];
|
|
199
|
+
userPicked = false;
|
|
200
|
+
pickingByScroll = false;
|
|
201
|
+
userScrolledColumns = new Set();
|
|
202
|
+
// The share of the wheel's scroll distance a column moves: a 100 px notch comes to about one row.
|
|
203
|
+
wheelSpeed = 0.35;
|
|
204
|
+
wheelScrolls = new Map();
|
|
205
|
+
smoothScrolls = new Map();
|
|
206
|
+
hoursLoop = computed(() => this.loops(this.hoursOverflow()), ...(ngDevMode ? [{ debugName: "hoursLoop" }] : /* istanbul ignore next */ []));
|
|
207
|
+
minutesLoop = computed(() => this.loops(this.minutesOverflow()), ...(ngDevMode ? [{ debugName: "minutesLoop" }] : /* istanbul ignore next */ []));
|
|
208
|
+
pickHour = (cell) => this.selectHour(cell);
|
|
209
|
+
pickMinute = (cell) => this.selectMinute(cell);
|
|
210
|
+
constructor() {
|
|
211
|
+
afterRenderEffect(() => {
|
|
212
|
+
this.hourCells();
|
|
213
|
+
this.minuteCells();
|
|
214
|
+
this.hoursOverflow.set(this.overflows(this.hourColumn()));
|
|
215
|
+
this.minutesOverflow.set(this.overflows(this.minuteColumn()));
|
|
216
|
+
});
|
|
217
|
+
// Again on the next frame: a column that starts looping in this pass renders its copies above the
|
|
218
|
+
// selected cell on the next one, pushing it down by a set.
|
|
219
|
+
afterRenderEffect(() => {
|
|
220
|
+
this.hoursLoop();
|
|
221
|
+
this.minutesLoop();
|
|
222
|
+
this.hourEntry();
|
|
223
|
+
this.minuteEntry();
|
|
224
|
+
this.periodEntry();
|
|
225
|
+
untracked(() => {
|
|
226
|
+
this.scrollSelectedIntoView();
|
|
227
|
+
this.userPicked = false;
|
|
228
|
+
requestAnimationFrame(() => this.scrollSelectedIntoView());
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
}
|
|
190
232
|
hourEntry = computed(() => this.entryIndex(this.hourCells()), ...(ngDevMode ? [{ debugName: "hourEntry" }] : /* istanbul ignore next */ []));
|
|
191
233
|
minuteEntry = computed(() => this.entryIndex(this.minuteCells()), ...(ngDevMode ? [{ debugName: "minuteEntry" }] : /* istanbul ignore next */ []));
|
|
192
234
|
periodEntry = computed(() => this.entryIndex(this.periodCells()), ...(ngDevMode ? [{ debugName: "periodEntry" }] : /* istanbul ignore next */ []));
|
|
235
|
+
loops(overflows) {
|
|
236
|
+
const mode = this.loop();
|
|
237
|
+
return mode === 'always' || (mode === 'auto' && overflows);
|
|
238
|
+
}
|
|
239
|
+
overflows(column) {
|
|
240
|
+
const element = column?.nativeElement;
|
|
241
|
+
if (!element) {
|
|
242
|
+
return false;
|
|
243
|
+
}
|
|
244
|
+
const sets = element.classList.contains('loops')
|
|
245
|
+
? this.loopCopiesEachSide.length * 2 + 1
|
|
246
|
+
: 1;
|
|
247
|
+
return element.scrollHeight / sets > element.clientHeight + 1;
|
|
248
|
+
}
|
|
249
|
+
onScroll(event, column, count) {
|
|
250
|
+
const element = event.target;
|
|
251
|
+
this.wrapScroll(element, count);
|
|
252
|
+
if (this.userScrolledColumns.has(element)) {
|
|
253
|
+
this.selectCentred(element, column, count);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
/** Keeps a looping column inside its middle set, so a copy is always beyond either edge. */
|
|
257
|
+
wrapScroll(column, count) {
|
|
258
|
+
if (this.smoothScrolls.has(column)) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
// A scrollTop write mid-gesture cancels the browser's wheel animation and re-runs snapping, so scrollend wraps; here only a column about to run out of copies.
|
|
262
|
+
const set = this.setHeight(column, count);
|
|
263
|
+
const lastTop = column.scrollHeight - column.clientHeight;
|
|
264
|
+
if (set === 0) {
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
if (column.scrollTop < set * 0.25 ||
|
|
268
|
+
column.scrollTop > lastTop - set * 0.25) {
|
|
269
|
+
this.wrapColumn(column, count);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
onUserScroll(event) {
|
|
273
|
+
this.userScrolledColumns.add(event.currentTarget);
|
|
274
|
+
}
|
|
275
|
+
onWheel(event) {
|
|
276
|
+
const column = event.currentTarget;
|
|
277
|
+
const [first, second] = column.children;
|
|
278
|
+
if (event.ctrlKey || event.deltaY === 0 || !second) {
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
// Snapping pulls a sub-row scroll back to the row it left, so the deltas add up and the column moves by whole rows.
|
|
282
|
+
event.preventDefault();
|
|
283
|
+
this.onUserScroll(event);
|
|
284
|
+
const rowPitch = second.offsetTop - first.offsetTop;
|
|
285
|
+
const pixels = event.deltaMode === WheelEvent.DOM_DELTA_LINE
|
|
286
|
+
? event.deltaY * rowPitch
|
|
287
|
+
: event.deltaY;
|
|
288
|
+
const wheel = this.wheelScrolls.get(column) ?? {
|
|
289
|
+
remainder: 0,
|
|
290
|
+
target: null,
|
|
291
|
+
};
|
|
292
|
+
wheel.remainder += pixels * this.wheelSpeed;
|
|
293
|
+
const rows = Math.trunc(wheel.remainder / rowPitch);
|
|
294
|
+
if (rows !== 0) {
|
|
295
|
+
wheel.remainder -= rows * rowPitch;
|
|
296
|
+
wheel.target = (wheel.target ?? column.scrollTop) + rows * rowPitch;
|
|
297
|
+
this.scrollToWheelTarget(column, wheel.target);
|
|
298
|
+
}
|
|
299
|
+
this.wheelScrolls.set(column, wheel);
|
|
300
|
+
}
|
|
301
|
+
scrollToWheelTarget(column, top) {
|
|
302
|
+
column.scrollTo({
|
|
303
|
+
top,
|
|
304
|
+
behavior: this.prefersReducedMotion() ? 'instant' : 'smooth',
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
onScrollbarGrab(event) {
|
|
308
|
+
if (event.target === event.currentTarget) {
|
|
309
|
+
this.onUserScroll(event);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
onScrollEnd(event, column, count) {
|
|
313
|
+
const element = event.target;
|
|
314
|
+
const smooth = this.smoothScrolls.get(element);
|
|
315
|
+
const byUser = this.userScrolledColumns.has(element);
|
|
316
|
+
if (smooth && !byUser && Math.abs(element.scrollTop - smooth.top) > 1) {
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
this.releaseSmoothScroll(element);
|
|
320
|
+
const wheel = this.wheelScrolls.get(element);
|
|
321
|
+
if (wheel) {
|
|
322
|
+
wheel.target = null;
|
|
323
|
+
}
|
|
324
|
+
this.wrapColumn(element, count);
|
|
325
|
+
if (this.userScrolledColumns.delete(element)) {
|
|
326
|
+
this.selectCentred(element, column, count);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
selectCentred(element, column, count) {
|
|
330
|
+
const cells = this.cellsFor(column);
|
|
331
|
+
const buttons = this.buttonsFor(column)();
|
|
332
|
+
const set = this.setHeight(element, count);
|
|
333
|
+
const centre = element.scrollTop + element.clientHeight / 2;
|
|
334
|
+
let centred = -1;
|
|
335
|
+
let smallestDistance = Infinity;
|
|
336
|
+
buttons.forEach(({ nativeElement: button }, index) => {
|
|
337
|
+
const buttonCentre = button.offsetTop + button.offsetHeight / 2;
|
|
338
|
+
const copies = set > 0 ? this.loopCopiesEachSide.length : 0;
|
|
339
|
+
for (let copy = -copies; copy <= copies; copy++) {
|
|
340
|
+
const offset = copy * set;
|
|
341
|
+
const distance = Math.abs(buttonCentre + offset - centre);
|
|
342
|
+
if (distance < smallestDistance) {
|
|
343
|
+
smallestDistance = distance;
|
|
344
|
+
centred = index;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
const target = this.nearestEnabled(cells, centred);
|
|
349
|
+
if (target < 0 || this.isSelected(column, target)) {
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
this.pickingByScroll = true;
|
|
353
|
+
this.selectAt(column, target);
|
|
354
|
+
this.pickingByScroll = false;
|
|
355
|
+
}
|
|
356
|
+
nearestEnabled(cells, from) {
|
|
357
|
+
for (let distance = 0; distance <= cells.length / 2; distance++) {
|
|
358
|
+
for (const index of [from + distance, from - distance]) {
|
|
359
|
+
const wrapped = (index + cells.length) % cells.length;
|
|
360
|
+
if (cells[wrapped] && !cells[wrapped].disabled) {
|
|
361
|
+
return wrapped;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return -1;
|
|
366
|
+
}
|
|
367
|
+
isSelected(column, index) {
|
|
368
|
+
return this.cellsFor(column)[index]?.selected ?? false;
|
|
369
|
+
}
|
|
370
|
+
wrapColumn(column, count) {
|
|
371
|
+
const set = this.setHeight(column, count);
|
|
372
|
+
if (set === 0) {
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
// Whole sets back to the middle of the scroll range in one write, so the scrollend that write raises finds nothing left to wrap.
|
|
376
|
+
const middle = (column.scrollHeight - column.clientHeight) / 2;
|
|
377
|
+
const setsOff = Math.round((column.scrollTop - middle) / set);
|
|
378
|
+
if (setsOff !== 0) {
|
|
379
|
+
column.scrollTop -= setsOff * set;
|
|
380
|
+
// The write cut the wheel animation short; it resumes towards the same row, a whole number of sets nearer.
|
|
381
|
+
const wheel = this.wheelScrolls.get(column);
|
|
382
|
+
if (wheel?.target != null) {
|
|
383
|
+
wheel.target -= setsOff * set;
|
|
384
|
+
this.scrollToWheelTarget(column, wheel.target);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
setHeight(column, count) {
|
|
389
|
+
const [first, second] = column.children;
|
|
390
|
+
if (!column.classList.contains('loops') || !second) {
|
|
391
|
+
return 0;
|
|
392
|
+
}
|
|
393
|
+
return (second.offsetTop - first.offsetTop) * count;
|
|
394
|
+
}
|
|
395
|
+
releaseSmoothScroll(column) {
|
|
396
|
+
window.clearTimeout(this.smoothScrolls.get(column)?.timer);
|
|
397
|
+
this.smoothScrolls.delete(column);
|
|
398
|
+
}
|
|
193
399
|
selectHour(cell) {
|
|
194
400
|
if (cell.disabled) {
|
|
195
401
|
return;
|
|
196
402
|
}
|
|
403
|
+
this.markUserPick();
|
|
197
404
|
const hour24 = this.toH24(cell.value);
|
|
198
405
|
const parsed = this.parsedValue();
|
|
199
406
|
this.emit(hour24, parsed ? parsed.m : this.firstEnabledMinute(hour24), 'hours');
|
|
@@ -202,12 +409,14 @@ class TimeColumnsComponent {
|
|
|
202
409
|
if (cell.disabled) {
|
|
203
410
|
return;
|
|
204
411
|
}
|
|
412
|
+
this.markUserPick();
|
|
205
413
|
this.emit(this.baseHour(), cell.value, 'minutes');
|
|
206
414
|
}
|
|
207
415
|
selectPeriod(cell) {
|
|
208
416
|
if (cell.disabled) {
|
|
209
417
|
return;
|
|
210
418
|
}
|
|
419
|
+
this.markUserPick();
|
|
211
420
|
const parsed = this.parsedValue();
|
|
212
421
|
const hour12 = parsed
|
|
213
422
|
? to12h(parsed.h).h
|
|
@@ -247,7 +456,9 @@ class TimeColumnsComponent {
|
|
|
247
456
|
}
|
|
248
457
|
event.preventDefault();
|
|
249
458
|
this.selectAt(column, target);
|
|
250
|
-
this.buttonsFor(column)()[target]?.nativeElement.focus(
|
|
459
|
+
this.buttonsFor(column)()[target]?.nativeElement.focus({
|
|
460
|
+
preventScroll: true,
|
|
461
|
+
});
|
|
251
462
|
}
|
|
252
463
|
focusSelected() {
|
|
253
464
|
this.hourButtons()[Math.max(this.hourEntry(), 0)]?.nativeElement.focus();
|
|
@@ -282,7 +493,10 @@ class TimeColumnsComponent {
|
|
|
282
493
|
}
|
|
283
494
|
emit(hour24, minute, part) {
|
|
284
495
|
this.timeChange.emit(`${pad2(hour24)}:${pad2(minute)}`);
|
|
285
|
-
|
|
496
|
+
// partPicked closes the single panel once both halves are picked; a scroll only browses.
|
|
497
|
+
if (!this.pickingByScroll) {
|
|
498
|
+
this.partPicked.emit(part);
|
|
499
|
+
}
|
|
286
500
|
}
|
|
287
501
|
entryIndex(cells) {
|
|
288
502
|
const selected = cells.findIndex((cell) => cell.selected && !cell.disabled);
|
|
@@ -346,22 +560,67 @@ class TimeColumnsComponent {
|
|
|
346
560
|
: this.periodEntry();
|
|
347
561
|
this.buttonsFor(column)()[Math.max(entry, 0)]?.nativeElement.focus();
|
|
348
562
|
}
|
|
563
|
+
markUserPick() {
|
|
564
|
+
this.userPicked = true;
|
|
565
|
+
window.setTimeout(() => (this.userPicked = false), 500);
|
|
566
|
+
}
|
|
349
567
|
scrollColumn(buttons, index) {
|
|
350
|
-
|
|
351
|
-
|
|
568
|
+
// The column alone: scrollIntoView would also scroll the page under the overlay.
|
|
569
|
+
const button = buttons[Math.max(index, 0)]?.nativeElement;
|
|
570
|
+
const column = button?.parentElement;
|
|
571
|
+
if (!button || !column) {
|
|
572
|
+
return;
|
|
573
|
+
}
|
|
574
|
+
// The user is scrolling this column and its value follows the centre; scrolling it back would fight the gesture.
|
|
575
|
+
if (this.userScrolledColumns.has(column)) {
|
|
576
|
+
return;
|
|
577
|
+
}
|
|
578
|
+
const top = button.offsetTop - (column.clientHeight - button.offsetHeight) / 2;
|
|
579
|
+
// Any scrollTop write aborts a running smooth scroll, and at a low frame rate the rAF pass lands mid-animation.
|
|
580
|
+
const inFlight = this.smoothScrolls.get(column);
|
|
581
|
+
if (inFlight && Math.abs(inFlight.top - top) <= 1) {
|
|
582
|
+
return;
|
|
583
|
+
}
|
|
584
|
+
if (this.userPicked && !this.prefersReducedMotion()) {
|
|
585
|
+
this.scrollSmoothly(column, top, buttons.length);
|
|
586
|
+
}
|
|
587
|
+
else {
|
|
588
|
+
column.scrollTop = top;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
scrollSmoothly(column, top, count) {
|
|
592
|
+
const set = this.setHeight(column, count);
|
|
593
|
+
if (set > 0) {
|
|
594
|
+
const nearest = [top - set, top, top + set].reduce((best, candidate) => Math.abs(candidate - column.scrollTop) <
|
|
595
|
+
Math.abs(best - column.scrollTop)
|
|
596
|
+
? candidate
|
|
597
|
+
: best);
|
|
598
|
+
if (nearest !== top) {
|
|
599
|
+
column.scrollTop += top - nearest;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
// Assigning scrollTop while this runs would abort the animation, so wrapScroll stands down until scrollend; the timer covers browsers without it.
|
|
603
|
+
this.releaseSmoothScroll(column);
|
|
604
|
+
this.smoothScrolls.set(column, {
|
|
605
|
+
timer: window.setTimeout(() => this.releaseSmoothScroll(column), 2000),
|
|
606
|
+
top,
|
|
352
607
|
});
|
|
608
|
+
column.scrollTo({ top, behavior: 'smooth' });
|
|
609
|
+
}
|
|
610
|
+
prefersReducedMotion() {
|
|
611
|
+
return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
353
612
|
}
|
|
354
613
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TimeColumnsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
355
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TimeColumnsComponent, isStandalone: true, selector: "ds-time-columns", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, minTime: { classPropertyName: "minTime", publicName: "minTime", isSignal: true, isRequired: false, transformFunction: null }, maxTime: { classPropertyName: "maxTime", publicName: "maxTime", isSignal: true, isRequired: false, transformFunction: null }, disabledTime: { classPropertyName: "disabledTime", publicName: "disabledTime", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { timeChange: "timeChange", partPicked: "partPicked" }, host: { attributes: { "role": "group" }, properties: { "attr.aria-label": "intl().timePicker.time" }, classAttribute: "ds-time-columns" }, viewQueries: [{ propertyName: "hourButtons", predicate: ["hourOpt"], descendants: true, isSignal: true }, { propertyName: "minuteButtons", predicate: ["minOpt"], descendants: true, isSignal: true }, { propertyName: "periodButtons", predicate: ["periodOpt"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"col\"\n role=\"listbox\"\n [attr.aria-label]=\"intl().timePicker.hours\">\n @for (cell of hourCells(); track cell.value; let i = $index) {\n <button\n #hourOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === hourEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectHour(cell)\"\n (keydown)=\"onKey($event, 'hours', i)\">\n {{ cell.label }}\n </button>\n }\n</div>\n\n<div\n class=\"col\"\n role=\"listbox\"\n [attr.aria-label]=\"intl().timePicker.minutes\">\n @for (cell of minuteCells(); track cell.value; let i = $index) {\n <button\n #minOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === minuteEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectMinute(cell)\"\n (keydown)=\"onKey($event, 'minutes', i)\">\n {{ cell.label }}\n </button>\n }\n</div>\n\n@if (is12h()) {\n <div\n class=\"col\"\n role=\"listbox\"\n [attr.aria-label]=\"intl().timePicker.period\">\n @for (cell of periodCells(); track cell.value; let i = $index) {\n <button\n #periodOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === periodEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectPeriod(cell)\"\n (keydown)=\"onKey($event, 'period', i)\">\n {{ cell.label }}\n </button>\n }\n </div>\n}\n", styles: ["
|
|
614
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TimeColumnsComponent, isStandalone: true, selector: "ds-time-columns", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, minTime: { classPropertyName: "minTime", publicName: "minTime", isSignal: true, isRequired: false, transformFunction: null }, maxTime: { classPropertyName: "maxTime", publicName: "maxTime", isSignal: true, isRequired: false, transformFunction: null }, disabledTime: { classPropertyName: "disabledTime", publicName: "disabledTime", isSignal: true, isRequired: false, transformFunction: null }, loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { timeChange: "timeChange", partPicked: "partPicked" }, host: { attributes: { "role": "group" }, properties: { "attr.aria-label": "intl().timePicker.time" }, classAttribute: "ds-time-columns" }, viewQueries: [{ propertyName: "hourButtons", predicate: ["hourOpt"], descendants: true, isSignal: true }, { propertyName: "minuteButtons", predicate: ["minOpt"], descendants: true, isSignal: true }, { propertyName: "periodButtons", predicate: ["periodOpt"], descendants: true, isSignal: true }, { propertyName: "hourColumn", first: true, predicate: ["hourCol"], descendants: true, isSignal: true }, { propertyName: "minuteColumn", first: true, predicate: ["minuteCol"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- A looping column renders `loopCopiesEachSide` copies of its cells either side of the real ones: they\n are what scrolls into view past either end, and the column moves back by whole sets once a scroll ends.\n Enough copies that a continuous wheel gesture never reaches the edge, where wrapping mid-gesture cuts\n the wheel animation. -->\n<ng-template\n #loopCopy\n let-cells\n let-pick=\"pick\">\n @for (copy of loopCopiesEachSide; track copy) {\n @for (cell of cells; track cell.value) {\n <!-- Not a button: a copy is never focused or announced, the real option is. -->\n <span\n class=\"opt\"\n aria-hidden=\"true\"\n [class.is-selected]=\"cell.selected\"\n [class.is-disabled]=\"cell.disabled\"\n (click)=\"pick(cell)\">\n {{ cell.label }}\n </span>\n }\n }\n</ng-template>\n\n<div\n #hourCol\n class=\"col\"\n role=\"listbox\"\n [class.loops]=\"hoursLoop()\"\n [attr.aria-label]=\"intl().timePicker.hours\"\n (scroll)=\"onScroll($event, 'hours', hourCells().length)\"\n (wheel)=\"onWheel($event)\"\n (touchmove)=\"onUserScroll($event)\"\n (pointerdown)=\"onScrollbarGrab($event)\"\n (scrollend)=\"onScrollEnd($event, 'hours', hourCells().length)\">\n @if (hoursLoop()) {\n <ng-container\n [ngTemplateOutlet]=\"loopCopy\"\n [ngTemplateOutletContext]=\"{ $implicit: hourCells(), pick: pickHour }\" />\n }\n\n @for (cell of hourCells(); track cell.value; let i = $index) {\n <button\n #hourOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === hourEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectHour(cell)\"\n (keydown)=\"onKey($event, 'hours', i)\">\n {{ cell.label }}\n </button>\n }\n\n @if (hoursLoop()) {\n <ng-container\n [ngTemplateOutlet]=\"loopCopy\"\n [ngTemplateOutletContext]=\"{ $implicit: hourCells(), pick: pickHour }\" />\n }\n</div>\n\n<div\n #minuteCol\n class=\"col\"\n role=\"listbox\"\n [class.loops]=\"minutesLoop()\"\n [attr.aria-label]=\"intl().timePicker.minutes\"\n (scroll)=\"onScroll($event, 'minutes', minuteCells().length)\"\n (wheel)=\"onWheel($event)\"\n (touchmove)=\"onUserScroll($event)\"\n (pointerdown)=\"onScrollbarGrab($event)\"\n (scrollend)=\"onScrollEnd($event, 'minutes', minuteCells().length)\">\n @if (minutesLoop()) {\n <ng-container\n [ngTemplateOutlet]=\"loopCopy\"\n [ngTemplateOutletContext]=\"{\n $implicit: minuteCells(),\n pick: pickMinute,\n }\" />\n }\n\n @for (cell of minuteCells(); track cell.value; let i = $index) {\n <button\n #minOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === minuteEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectMinute(cell)\"\n (keydown)=\"onKey($event, 'minutes', i)\">\n {{ cell.label }}\n </button>\n }\n\n @if (minutesLoop()) {\n <ng-container\n [ngTemplateOutlet]=\"loopCopy\"\n [ngTemplateOutletContext]=\"{\n $implicit: minuteCells(),\n pick: pickMinute,\n }\" />\n }\n</div>\n\n@if (is12h()) {\n <div\n class=\"col\"\n role=\"listbox\"\n [attr.aria-label]=\"intl().timePicker.period\">\n @for (cell of periodCells(); track cell.value; let i = $index) {\n <button\n #periodOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === periodEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectPeriod(cell)\"\n (keydown)=\"onKey($event, 'period', i)\">\n {{ cell.label }}\n </button>\n }\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_time-picker-option-bg-color-selected: var( --ds-time-picker-option-bg-color-selected, var(--accent) );--_time-picker-option-text-color-selected: var( --ds-time-picker-option-text-color-selected, var(--accent-on) );--_time-picker-option-bg-color-hover: var( --ds-time-picker-option-bg-color-hover, var(--surface-secondary) );display:flex;gap:var(--space-1);align-items:stretch}.col{position:relative;display:flex;flex-direction:column;gap:var(--space-0-5);min-width:var(--ds-time-picker-column-width, 3rem);max-height:var(--ds-time-picker-column-height, 13.5rem);overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:thin;padding-inline:var(--space-0-5)}.col.loops{scrollbar-width:none;-webkit-mask-image:linear-gradient(transparent,#000 var(--space-6),#000 calc(100% - var(--space-6)),transparent);mask-image:linear-gradient(transparent,#000 var(--space-6),#000 calc(100% - var(--space-6)),transparent)}.col:not(:last-child){border-right:var(--border-width-default) solid var(--border-subtitle);padding-right:var(--space-1)}.opt{flex:none;scroll-snap-align:center;appearance:none;border:0;cursor:pointer;width:100%;padding:var(--space-1-5) var(--space-3);border-radius:var(--ds-radius-inner);background-color:transparent;color:var(--text-primary);font:inherit;font-variant-numeric:tabular-nums;text-align:center;transition:background-color var(--duration-fast) var(--ease-standard)}.opt:hover:not(:disabled,.is-disabled,.is-selected){background-color:var(--_time-picker-option-bg-color-hover)}.opt:active:not(:disabled,.is-disabled,.is-selected){background-color:var(--surface-muted)}.opt.is-selected{background-color:var(--_time-picker-option-bg-color-selected);color:var(--_time-picker-option-text-color-selected)}.opt:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.opt:disabled,.opt.is-disabled{color:var(--text-disabled);cursor:default}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
356
615
|
}
|
|
357
616
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TimeColumnsComponent, decorators: [{
|
|
358
617
|
type: Component,
|
|
359
|
-
args: [{ selector: 'ds-time-columns', standalone: true, encapsulation: ViewEncapsulation.Emulated, host: {
|
|
618
|
+
args: [{ selector: 'ds-time-columns', standalone: true, imports: [NgTemplateOutlet], encapsulation: ViewEncapsulation.Emulated, host: {
|
|
360
619
|
class: 'ds-time-columns',
|
|
361
620
|
role: 'group',
|
|
362
621
|
'[attr.aria-label]': 'intl().timePicker.time',
|
|
363
|
-
}, template: "<div\n class=\"col\"\n role=\"listbox\"\n [attr.aria-label]=\"intl().timePicker.hours\">\n @for (cell of hourCells(); track cell.value; let i = $index) {\n <button\n #hourOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === hourEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectHour(cell)\"\n (keydown)=\"onKey($event, 'hours', i)\">\n {{ cell.label }}\n </button>\n }\n</div>\n\n<div\n class=\"col\"\n role=\"listbox\"\n [attr.aria-label]=\"intl().timePicker.minutes\">\n @for (cell of minuteCells(); track cell.value; let i = $index) {\n <button\n #minOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === minuteEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectMinute(cell)\"\n (keydown)=\"onKey($event, 'minutes', i)\">\n {{ cell.label }}\n </button>\n }\n</div>\n\n@if (is12h()) {\n <div\n class=\"col\"\n role=\"listbox\"\n [attr.aria-label]=\"intl().timePicker.period\">\n @for (cell of periodCells(); track cell.value; let i = $index) {\n <button\n #periodOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === periodEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectPeriod(cell)\"\n (keydown)=\"onKey($event, 'period', i)\">\n {{ cell.label }}\n </button>\n }\n </div>\n}\n", styles: ["
|
|
364
|
-
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], minuteStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "minuteStep", required: false }] }], minTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "minTime", required: false }] }], maxTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxTime", required: false }] }], disabledTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledTime", required: false }] }], timeChange: [{ type: i0.Output, args: ["timeChange"] }], partPicked: [{ type: i0.Output, args: ["partPicked"] }], hourButtons: [{ type: i0.ViewChildren, args: ['hourOpt', { isSignal: true }] }], minuteButtons: [{ type: i0.ViewChildren, args: ['minOpt', { isSignal: true }] }], periodButtons: [{ type: i0.ViewChildren, args: ['periodOpt', { isSignal: true }] }] } });
|
|
622
|
+
}, template: "<!-- A looping column renders `loopCopiesEachSide` copies of its cells either side of the real ones: they\n are what scrolls into view past either end, and the column moves back by whole sets once a scroll ends.\n Enough copies that a continuous wheel gesture never reaches the edge, where wrapping mid-gesture cuts\n the wheel animation. -->\n<ng-template\n #loopCopy\n let-cells\n let-pick=\"pick\">\n @for (copy of loopCopiesEachSide; track copy) {\n @for (cell of cells; track cell.value) {\n <!-- Not a button: a copy is never focused or announced, the real option is. -->\n <span\n class=\"opt\"\n aria-hidden=\"true\"\n [class.is-selected]=\"cell.selected\"\n [class.is-disabled]=\"cell.disabled\"\n (click)=\"pick(cell)\">\n {{ cell.label }}\n </span>\n }\n }\n</ng-template>\n\n<div\n #hourCol\n class=\"col\"\n role=\"listbox\"\n [class.loops]=\"hoursLoop()\"\n [attr.aria-label]=\"intl().timePicker.hours\"\n (scroll)=\"onScroll($event, 'hours', hourCells().length)\"\n (wheel)=\"onWheel($event)\"\n (touchmove)=\"onUserScroll($event)\"\n (pointerdown)=\"onScrollbarGrab($event)\"\n (scrollend)=\"onScrollEnd($event, 'hours', hourCells().length)\">\n @if (hoursLoop()) {\n <ng-container\n [ngTemplateOutlet]=\"loopCopy\"\n [ngTemplateOutletContext]=\"{ $implicit: hourCells(), pick: pickHour }\" />\n }\n\n @for (cell of hourCells(); track cell.value; let i = $index) {\n <button\n #hourOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === hourEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectHour(cell)\"\n (keydown)=\"onKey($event, 'hours', i)\">\n {{ cell.label }}\n </button>\n }\n\n @if (hoursLoop()) {\n <ng-container\n [ngTemplateOutlet]=\"loopCopy\"\n [ngTemplateOutletContext]=\"{ $implicit: hourCells(), pick: pickHour }\" />\n }\n</div>\n\n<div\n #minuteCol\n class=\"col\"\n role=\"listbox\"\n [class.loops]=\"minutesLoop()\"\n [attr.aria-label]=\"intl().timePicker.minutes\"\n (scroll)=\"onScroll($event, 'minutes', minuteCells().length)\"\n (wheel)=\"onWheel($event)\"\n (touchmove)=\"onUserScroll($event)\"\n (pointerdown)=\"onScrollbarGrab($event)\"\n (scrollend)=\"onScrollEnd($event, 'minutes', minuteCells().length)\">\n @if (minutesLoop()) {\n <ng-container\n [ngTemplateOutlet]=\"loopCopy\"\n [ngTemplateOutletContext]=\"{\n $implicit: minuteCells(),\n pick: pickMinute,\n }\" />\n }\n\n @for (cell of minuteCells(); track cell.value; let i = $index) {\n <button\n #minOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === minuteEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectMinute(cell)\"\n (keydown)=\"onKey($event, 'minutes', i)\">\n {{ cell.label }}\n </button>\n }\n\n @if (minutesLoop()) {\n <ng-container\n [ngTemplateOutlet]=\"loopCopy\"\n [ngTemplateOutletContext]=\"{\n $implicit: minuteCells(),\n pick: pickMinute,\n }\" />\n }\n</div>\n\n@if (is12h()) {\n <div\n class=\"col\"\n role=\"listbox\"\n [attr.aria-label]=\"intl().timePicker.period\">\n @for (cell of periodCells(); track cell.value; let i = $index) {\n <button\n #periodOpt\n type=\"button\"\n role=\"option\"\n class=\"opt\"\n [class.is-selected]=\"cell.selected\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.tabindex]=\"i === periodEntry() ? 0 : -1\"\n [disabled]=\"cell.disabled\"\n (click)=\"selectPeriod(cell)\"\n (keydown)=\"onKey($event, 'period', i)\">\n {{ cell.label }}\n </button>\n }\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_time-picker-option-bg-color-selected: var( --ds-time-picker-option-bg-color-selected, var(--accent) );--_time-picker-option-text-color-selected: var( --ds-time-picker-option-text-color-selected, var(--accent-on) );--_time-picker-option-bg-color-hover: var( --ds-time-picker-option-bg-color-hover, var(--surface-secondary) );display:flex;gap:var(--space-1);align-items:stretch}.col{position:relative;display:flex;flex-direction:column;gap:var(--space-0-5);min-width:var(--ds-time-picker-column-width, 3rem);max-height:var(--ds-time-picker-column-height, 13.5rem);overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:thin;padding-inline:var(--space-0-5)}.col.loops{scrollbar-width:none;-webkit-mask-image:linear-gradient(transparent,#000 var(--space-6),#000 calc(100% - var(--space-6)),transparent);mask-image:linear-gradient(transparent,#000 var(--space-6),#000 calc(100% - var(--space-6)),transparent)}.col:not(:last-child){border-right:var(--border-width-default) solid var(--border-subtitle);padding-right:var(--space-1)}.opt{flex:none;scroll-snap-align:center;appearance:none;border:0;cursor:pointer;width:100%;padding:var(--space-1-5) var(--space-3);border-radius:var(--ds-radius-inner);background-color:transparent;color:var(--text-primary);font:inherit;font-variant-numeric:tabular-nums;text-align:center;transition:background-color var(--duration-fast) var(--ease-standard)}.opt:hover:not(:disabled,.is-disabled,.is-selected){background-color:var(--_time-picker-option-bg-color-hover)}.opt:active:not(:disabled,.is-disabled,.is-selected){background-color:var(--surface-muted)}.opt.is-selected{background-color:var(--_time-picker-option-bg-color-selected);color:var(--_time-picker-option-text-color-selected)}.opt:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.opt:disabled,.opt.is-disabled{color:var(--text-disabled);cursor:default}\n"] }]
|
|
623
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], minuteStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "minuteStep", required: false }] }], minTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "minTime", required: false }] }], maxTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxTime", required: false }] }], disabledTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledTime", required: false }] }], loop: [{ type: i0.Input, args: [{ isSignal: true, alias: "loop", required: false }] }], timeChange: [{ type: i0.Output, args: ["timeChange"] }], partPicked: [{ type: i0.Output, args: ["partPicked"] }], hourButtons: [{ type: i0.ViewChildren, args: ['hourOpt', { isSignal: true }] }], minuteButtons: [{ type: i0.ViewChildren, args: ['minOpt', { isSignal: true }] }], periodButtons: [{ type: i0.ViewChildren, args: ['periodOpt', { isSignal: true }] }], hourColumn: [{ type: i0.ViewChild, args: ['hourCol', { isSignal: true }] }], minuteColumn: [{ type: i0.ViewChild, args: ['minuteCol', { isSignal: true }] }] } });
|
|
365
624
|
|
|
366
625
|
let nextId = 0;
|
|
367
626
|
function resolveTimeFormat(format, configured) {
|
|
@@ -422,6 +681,10 @@ class TimePickerComponent extends DsControlValueAccessor {
|
|
|
422
681
|
ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
423
682
|
/** Display clock; falls back to `DS_CONFIG.timePicker.format`, then the hour cycle of `DS_CONFIG.locale` / `LOCALE_ID`. */
|
|
424
683
|
format = input(null, ...(ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []));
|
|
684
|
+
/** Whether the hour and minute columns run on past either end; falls back to
|
|
685
|
+
* `DS_CONFIG.timePicker.loop`, then `'auto'`, which loops a column that holds more values than it shows. */
|
|
686
|
+
loop = input(null, ...(ngDevMode ? [{ debugName: "loop" }] : /* istanbul ignore next */ []));
|
|
687
|
+
loopResolved = resolveWithConfig(this.loop, (config) => config.timePicker?.loop, 'auto');
|
|
425
688
|
uid = `ds-timepicker-${++nextId}`;
|
|
426
689
|
labelId = `${this.uid}-label`;
|
|
427
690
|
openSegment = signal(null, ...(ngDevMode ? [{ debugName: "openSegment" }] : /* istanbul ignore next */ []));
|
|
@@ -450,8 +713,6 @@ class TimePickerComponent extends DsControlValueAccessor {
|
|
|
450
713
|
errors: this.errors,
|
|
451
714
|
invalid: this.invalid,
|
|
452
715
|
success: this.success,
|
|
453
|
-
touchedSelf: this.touchedSelf,
|
|
454
|
-
touched: this.touched,
|
|
455
716
|
});
|
|
456
717
|
message = this.fieldMessage.message;
|
|
457
718
|
pendingShown = this.fieldMessage.pending;
|
|
@@ -648,13 +909,13 @@ class TimePickerComponent extends DsControlValueAccessor {
|
|
|
648
909
|
return this.minutesOf(a) >= this.minutesOf(b) ? a : b;
|
|
649
910
|
}
|
|
650
911
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TimePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
651
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TimePickerComponent, isStandalone: true, selector: "ds-time-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, minTime: { classPropertyName: "minTime", publicName: "minTime", isSignal: true, isRequired: false, transformFunction: null }, maxTime: { classPropertyName: "maxTime", publicName: "maxTime", isSignal: true, isRequired: false, transformFunction: null }, disabledTime: { classPropertyName: "disabledTime", publicName: "disabledTime", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, panelClass: { classPropertyName: "panelClass", publicName: "panelClass", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, success: { classPropertyName: "success", publicName: "success", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "attr.data-field-state": "controlState()", "class.full-width": "fullWidth()" } }, providers: [
|
|
912
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: TimePickerComponent, isStandalone: true, selector: "ds-time-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, minTime: { classPropertyName: "minTime", publicName: "minTime", isSignal: true, isRequired: false, transformFunction: null }, maxTime: { classPropertyName: "maxTime", publicName: "maxTime", isSignal: true, isRequired: false, transformFunction: null }, disabledTime: { classPropertyName: "disabledTime", publicName: "disabledTime", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, panelClass: { classPropertyName: "panelClass", publicName: "panelClass", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, success: { classPropertyName: "success", publicName: "success", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "attr.data-field-state": "controlState()", "class.full-width": "fullWidth()" } }, providers: [
|
|
652
913
|
{
|
|
653
914
|
provide: NG_VALUE_ACCESSOR,
|
|
654
915
|
useExisting: forwardRef(() => TimePickerComponent),
|
|
655
916
|
multi: true,
|
|
656
917
|
},
|
|
657
|
-
], viewQueries: [{ propertyName: "singleTrigger", first: true, predicate: ["singleTrigger"], descendants: true, isSignal: true }, { propertyName: "startTrigger", first: true, predicate: ["startTrigger"], descendants: true, isSignal: true }, { propertyName: "endTrigger", first: true, predicate: ["endTrigger"], descendants: true, isSignal: true }, { propertyName: "panelTpl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "columns", first: true, predicate: TimeColumnsComponent, descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "<div class=\"field\">\n @if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </span>\n }\n\n @if (mode() === 'range') {\n <div class=\"range-wrap\">\n <div class=\"trigger-wrap\">\n <button\n #startTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'start'\"\n [attr.aria-label]=\"ariaLabelFor('start')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('start')\">\n <span class=\"time-value\">\n {{ formatFor(rangeValue()[0]) || placeholder() }}\n </span>\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\" />\n </button>\n </div>\n\n <span\n class=\"range-sep\"\n aria-hidden=\"true\">\n \u2013\n </span>\n\n <div class=\"trigger-wrap\">\n <button\n #endTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'end'\"\n [attr.aria-label]=\"ariaLabelFor('end')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('end')\">\n <span class=\"time-value\">\n {{ formatFor(rangeValue()[1]) || placeholder() }}\n </span>\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\" />\n </button>\n </div>\n\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n </div>\n } @else {\n <div class=\"trigger-wrap\">\n <button\n #singleTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'single'\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"label() ? null : ariaLabelFor('single')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('single')\">\n <span class=\"time-value\">\n {{ displayValue() }}\n </span>\n\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\" />\n </button>\n\n @if (clearable() && hasValue()) {\n <button\n type=\"button\"\n class=\"time-clear\"\n [attr.aria-label]=\"intl().timePicker.clear\"\n [disabled]=\"isDisabled()\"\n (click)=\"clear($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n </div>\n }\n\n @if (preview.staticPreview()) {\n <div class=\"time-static\">\n <ng-container [ngTemplateOutlet]=\"panelTpl()\" />\n </div>\n }\n\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n</div>\n\n<ng-template #panel>\n <div class=\"time-panel\">\n <ds-time-columns\n [value]=\"panelValue()\"\n [format]=\"resolvedFormat()\"\n [minuteStep]=\"minuteStep()\"\n [minTime]=\"panelMinTime()\"\n [maxTime]=\"panelMaxTime()\"\n [disabledTime]=\"disabledTime()\"\n (timeChange)=\"onPick($event)\"\n (partPicked)=\"onPartPicked($event)\" />\n\n <div class=\"time-footer\">\n <button\n type=\"button\"\n class=\"time-action\"\n (click)=\"setNow()\">\n {{ intl().timePicker.now }}\n </button>\n\n @if (mode() === 'range') {\n <button\n type=\"button\"\n class=\"time-action primary\"\n (click)=\"onEscape()\">\n {{ intl().timePicker.done }}\n </button>\n }\n </div>\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_time-picker-focus-shadow: var( --ds-time-picker-focus-shadow, var(--ds-control-focus-shadow) );--_time-picker-trigger-bg-color: var( --ds-time-picker-trigger-bg-color, var(--surface-default) );--_time-picker-trigger-border: var( --ds-time-picker-trigger-border, var(--border-default) );--_time-picker-trigger-color: var( --ds-time-picker-trigger-color, var(--text-primary) );--_time-picker-trigger-radius: var(--ds-time-picker-trigger-radius, var(--ds-radius-control));--_time-picker-trigger-padding-x: var(--ds-time-picker-trigger-padding-x, var(--field-pad-x));--_time-picker-required-color: var(--ds-time-picker-required-color, var(--error));--_time-picker-value-font-family: var(--ds-time-picker-value-font-family, var(--font-sans));--_time-picker-value-font-size: var(--ds-time-picker-value-font-size, var(--font-size-s));--_time-picker-value-font-weight: var(--ds-time-picker-value-font-weight, var(--font-weight-regular));display:block}.field{display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}.field .label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-text-transform: var(--ds-field-label-text-transform, none);--_field-label-letter-spacing: var(--ds-field-label-letter-spacing, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-font-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-text-transform);letter-spacing:var(--_field-label-letter-spacing)}.field .label .req{color:var(--_time-picker-required-color);font-weight:var(--font-weight-semibold)}.field .label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.trigger-wrap{position:relative;display:inline-flex;width:fit-content}:host(.full-width) .trigger-wrap,:host(.full-width) .range-wrap,:host(.full-width) .trigger{width:100%}.range-wrap{display:inline-flex;align-items:center;gap:var(--space-2);width:fit-content}.range-sep{color:var(--text-tertiary)}.trigger{display:inline-flex;align-items:center;gap:var(--space-1);background:var(--_time-picker-trigger-bg-color);border:var(--border-width-default) solid var(--_time-picker-trigger-border);border-radius:var(--_time-picker-trigger-radius);padding:0 var(--_time-picker-trigger-padding-x);--_field-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-height);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_time-picker-trigger-color);cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard)}.trigger:hover{border-color:var(--border-strong)}@media not (forced-colors:active){.trigger:focus-visible{outline:none}}.trigger:focus-visible{box-shadow:var(--_time-picker-focus-shadow)}.trigger.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-height);padding:0 var(--space-2);font-size:var(--font-size-xs)}.trigger.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-height);padding:0 var(--space-4);font-size:var(--font-size-m)}.trigger.disabled,.trigger:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.trigger.has-clear{padding-right:var(--space-8)}.trigger.lg.has-clear{padding-right:var(--space-10)}.time-value{flex:1;text-align:left;font-family:var(--_time-picker-value-font-family);font-size:var(--_time-picker-value-font-size);font-weight:var(--_time-picker-value-font-weight);font-variant-numeric:tabular-nums}.time-clear{position:absolute;top:50%;right:var(--space-2);transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;border:0;padding:var(--space-1);border-radius:var(--ds-radius-inner);background:transparent;color:var(--text-tertiary);cursor:pointer;transition:color var(--duration-fast) var(--ease-standard)}.time-clear:hover:not(:disabled){color:var(--text-primary)}.time-clear:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.time-clear:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.time-clear:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.time-clear:focus-visible{outline-style:none}.time-clear:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.time-static{align-self:flex-start}.time-panel{display:flex;flex-direction:column;background:var(--ds-time-picker-bg-color, var(--surface-overlay));border:var(--border-width-default) solid var(--ds-time-picker-border, var(--border-default));border-radius:var(--ds-time-picker-panel-radius, var(--ds-radius-panel));box-shadow:var(--ds-time-picker-shadow, var(--ds-elevation-overlay));padding:var(--space-2);gap:var(--space-1)}.time-footer{display:flex;justify-content:flex-end;gap:var(--space-2);padding-top:var(--space-1);border-top:var(--border-width-default) solid var(--border-subtitle)}.time-footer:not(:has(.primary)) .time-action{flex:1;text-align:center}.time-action{appearance:none;border:0;background:transparent;cursor:pointer;padding:var(--space-1) var(--space-2);border-radius:var(--ds-radius-inner);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-secondary);transition:background-color var(--duration-fast) var(--ease-standard)}.time-action:hover{background-color:var(--surface-secondary)}.time-action:active{background-color:var(--surface-muted)}.time-action.primary{color:var(--accent)}.time-action:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host([data-field-state=error]:not(.in-group)) .trigger:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .trigger:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=warning]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=warning]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-warning)}:host([data-field-state=success]:not(.in-group)) .trigger:not(.disabled):not(:disabled){border-color:var(--success)}:host([data-field-state=success]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=success]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-success)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve", "changed"] }, { kind: "component", type: FieldStatusComponent, selector: "ds-field-status", inputs: ["pending", "changed"] }, { kind: "component", type: TimeColumnsComponent, selector: "ds-time-columns", inputs: ["value", "format", "minuteStep", "minTime", "maxTime", "disabledTime"], outputs: ["timeChange", "partPicked"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
918
|
+
], viewQueries: [{ propertyName: "singleTrigger", first: true, predicate: ["singleTrigger"], descendants: true, isSignal: true }, { propertyName: "startTrigger", first: true, predicate: ["startTrigger"], descendants: true, isSignal: true }, { propertyName: "endTrigger", first: true, predicate: ["endTrigger"], descendants: true, isSignal: true }, { propertyName: "panelTpl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "columns", first: true, predicate: TimeColumnsComponent, descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "<div class=\"field\">\n @if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </span>\n }\n\n @if (mode() === 'range') {\n <div class=\"range-wrap\">\n <div class=\"trigger-wrap\">\n <button\n #startTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'start'\"\n [attr.aria-label]=\"ariaLabelFor('start')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('start')\">\n <span class=\"time-value\">\n {{ formatFor(rangeValue()[0]) || placeholder() }}\n </span>\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\" />\n </button>\n </div>\n\n <span\n class=\"range-sep\"\n aria-hidden=\"true\">\n \u2013\n </span>\n\n <div class=\"trigger-wrap\">\n <button\n #endTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'end'\"\n [attr.aria-label]=\"ariaLabelFor('end')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('end')\">\n <span class=\"time-value\">\n {{ formatFor(rangeValue()[1]) || placeholder() }}\n </span>\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\" />\n </button>\n </div>\n\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n </div>\n } @else {\n <div class=\"trigger-wrap\">\n <button\n #singleTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'single'\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"label() ? null : ariaLabelFor('single')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('single')\">\n <span class=\"time-value\">\n {{ displayValue() }}\n </span>\n\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\" />\n </button>\n\n @if (clearable() && hasValue()) {\n <button\n type=\"button\"\n class=\"time-clear\"\n [attr.aria-label]=\"intl().timePicker.clear\"\n [disabled]=\"isDisabled()\"\n (click)=\"clear($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n </div>\n }\n\n @if (preview.staticPreview()) {\n <div class=\"time-static\">\n <ng-container [ngTemplateOutlet]=\"panelTpl()\" />\n </div>\n }\n\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n</div>\n\n<ng-template #panel>\n <div class=\"time-panel\">\n <ds-time-columns\n [value]=\"panelValue()\"\n [format]=\"resolvedFormat()\"\n [minuteStep]=\"minuteStep()\"\n [loop]=\"loopResolved()\"\n [minTime]=\"panelMinTime()\"\n [maxTime]=\"panelMaxTime()\"\n [disabledTime]=\"disabledTime()\"\n (timeChange)=\"onPick($event)\"\n (partPicked)=\"onPartPicked($event)\" />\n\n <div class=\"time-footer\">\n <button\n type=\"button\"\n class=\"time-action\"\n (click)=\"setNow()\">\n {{ intl().timePicker.now }}\n </button>\n\n @if (mode() === 'range') {\n <button\n type=\"button\"\n class=\"time-action primary\"\n (click)=\"onEscape()\">\n {{ intl().timePicker.done }}\n </button>\n }\n </div>\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_time-picker-focus-shadow: var( --ds-time-picker-focus-shadow, var(--ds-control-focus-shadow) );--_time-picker-trigger-bg-color: var( --ds-time-picker-trigger-bg-color, var(--surface-default) );--_time-picker-trigger-border: var( --ds-time-picker-trigger-border, var(--border-default) );--_time-picker-trigger-color: var( --ds-time-picker-trigger-color, var(--text-primary) );--_time-picker-trigger-radius: var(--ds-time-picker-trigger-radius, var(--ds-radius-control));--_time-picker-trigger-padding-x: var(--ds-time-picker-trigger-padding-x, var(--field-pad-x));--_time-picker-required-color: var(--ds-time-picker-required-color, var(--error));--_time-picker-value-font-family: var(--ds-time-picker-value-font-family, var(--font-sans));--_time-picker-value-font-size: var(--ds-time-picker-value-font-size, var(--font-size-s));--_time-picker-value-font-weight: var(--ds-time-picker-value-font-weight, var(--font-weight-regular));display:block}.field{display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}.field .label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-text-transform: var(--ds-field-label-text-transform, none);--_field-label-letter-spacing: var(--ds-field-label-letter-spacing, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-font-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-text-transform);letter-spacing:var(--_field-label-letter-spacing)}.field .label .req{color:var(--_time-picker-required-color);font-weight:var(--font-weight-semibold)}.field .label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.trigger-wrap{position:relative;display:inline-flex;width:fit-content}:host(.full-width) .trigger-wrap,:host(.full-width) .range-wrap,:host(.full-width) .trigger{width:100%}.range-wrap{display:inline-flex;align-items:center;gap:var(--space-2);width:fit-content}.range-sep{color:var(--text-tertiary)}.trigger{display:inline-flex;align-items:center;gap:var(--space-1);background:var(--_time-picker-trigger-bg-color);border:var(--border-width-default) solid var(--_time-picker-trigger-border);border-radius:var(--_time-picker-trigger-radius);padding:0 var(--_time-picker-trigger-padding-x);--_field-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-height);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_time-picker-trigger-color);cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard)}.trigger:hover{border-color:var(--border-strong)}@media not (forced-colors:active){.trigger:focus-visible{outline:none}}.trigger:focus-visible{box-shadow:var(--_time-picker-focus-shadow)}.trigger.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-height);padding:0 var(--space-2);font-size:var(--font-size-xs)}.trigger.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-height);padding:0 var(--space-4);font-size:var(--font-size-m)}.trigger.disabled,.trigger:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.trigger.has-clear{padding-right:var(--space-8)}.trigger.lg.has-clear{padding-right:var(--space-10)}.time-value{flex:1;text-align:left;font-family:var(--_time-picker-value-font-family);font-size:var(--_time-picker-value-font-size);font-weight:var(--_time-picker-value-font-weight);font-variant-numeric:tabular-nums}.time-clear{position:absolute;top:50%;right:var(--space-2);transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;border:0;padding:var(--space-1);border-radius:var(--ds-radius-inner);background:transparent;color:var(--text-tertiary);cursor:pointer;transition:color var(--duration-fast) var(--ease-standard)}.time-clear:hover:not(:disabled){color:var(--text-primary)}.time-clear:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.time-clear:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.time-clear:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.time-clear:focus-visible{outline-style:none}.time-clear:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.time-static{align-self:flex-start}.time-panel{display:flex;flex-direction:column;background:var(--ds-time-picker-bg-color, var(--surface-overlay));border:var(--border-width-default) solid var(--ds-time-picker-border, var(--border-default));border-radius:var(--ds-time-picker-panel-radius, var(--ds-radius-panel));box-shadow:var(--ds-time-picker-shadow, var(--ds-elevation-overlay));padding:var(--space-2);gap:var(--space-1)}.time-footer{display:flex;justify-content:flex-end;gap:var(--space-2);padding-top:var(--space-1);border-top:var(--border-width-default) solid var(--border-subtitle)}.time-footer:not(:has(.primary)) .time-action{flex:1;text-align:center}.time-action{appearance:none;border:0;background:transparent;cursor:pointer;padding:var(--space-1) var(--space-2);border-radius:var(--ds-radius-inner);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-secondary);transition:background-color var(--duration-fast) var(--ease-standard)}.time-action:hover{background-color:var(--surface-secondary)}.time-action:active{background-color:var(--surface-muted)}.time-action.primary{color:var(--accent)}.time-action:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host([data-field-state=error]:not(.in-group)) .trigger:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .trigger:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=warning]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=warning]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-warning)}:host([data-field-state=success]:not(.in-group)) .trigger:not(.disabled):not(:disabled){border-color:var(--success)}:host([data-field-state=success]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=success]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-success)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve", "changed"] }, { kind: "component", type: FieldStatusComponent, selector: "ds-field-status", inputs: ["pending", "changed"] }, { kind: "component", type: TimeColumnsComponent, selector: "ds-time-columns", inputs: ["value", "format", "minuteStep", "minTime", "maxTime", "disabledTime", "loop"], outputs: ["timeChange", "partPicked"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
658
919
|
}
|
|
659
920
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: TimePickerComponent, decorators: [{
|
|
660
921
|
type: Component,
|
|
@@ -673,8 +934,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
673
934
|
], host: {
|
|
674
935
|
'[attr.data-field-state]': 'controlState()',
|
|
675
936
|
'[class.full-width]': 'fullWidth()',
|
|
676
|
-
}, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "<div class=\"field\">\n @if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </span>\n }\n\n @if (mode() === 'range') {\n <div class=\"range-wrap\">\n <div class=\"trigger-wrap\">\n <button\n #startTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'start'\"\n [attr.aria-label]=\"ariaLabelFor('start')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('start')\">\n <span class=\"time-value\">\n {{ formatFor(rangeValue()[0]) || placeholder() }}\n </span>\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\" />\n </button>\n </div>\n\n <span\n class=\"range-sep\"\n aria-hidden=\"true\">\n \u2013\n </span>\n\n <div class=\"trigger-wrap\">\n <button\n #endTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'end'\"\n [attr.aria-label]=\"ariaLabelFor('end')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('end')\">\n <span class=\"time-value\">\n {{ formatFor(rangeValue()[1]) || placeholder() }}\n </span>\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\" />\n </button>\n </div>\n\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n </div>\n } @else {\n <div class=\"trigger-wrap\">\n <button\n #singleTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'single'\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"label() ? null : ariaLabelFor('single')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('single')\">\n <span class=\"time-value\">\n {{ displayValue() }}\n </span>\n\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\" />\n </button>\n\n @if (clearable() && hasValue()) {\n <button\n type=\"button\"\n class=\"time-clear\"\n [attr.aria-label]=\"intl().timePicker.clear\"\n [disabled]=\"isDisabled()\"\n (click)=\"clear($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n </div>\n }\n\n @if (preview.staticPreview()) {\n <div class=\"time-static\">\n <ng-container [ngTemplateOutlet]=\"panelTpl()\" />\n </div>\n }\n\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n</div>\n\n<ng-template #panel>\n <div class=\"time-panel\">\n <ds-time-columns\n [value]=\"panelValue()\"\n [format]=\"resolvedFormat()\"\n [minuteStep]=\"minuteStep()\"\n [minTime]=\"panelMinTime()\"\n [maxTime]=\"panelMaxTime()\"\n [disabledTime]=\"disabledTime()\"\n (timeChange)=\"onPick($event)\"\n (partPicked)=\"onPartPicked($event)\" />\n\n <div class=\"time-footer\">\n <button\n type=\"button\"\n class=\"time-action\"\n (click)=\"setNow()\">\n {{ intl().timePicker.now }}\n </button>\n\n @if (mode() === 'range') {\n <button\n type=\"button\"\n class=\"time-action primary\"\n (click)=\"onEscape()\">\n {{ intl().timePicker.done }}\n </button>\n }\n </div>\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{--_time-picker-focus-shadow: var( --ds-time-picker-focus-shadow, var(--ds-control-focus-shadow) );--_time-picker-trigger-bg-color: var( --ds-time-picker-trigger-bg-color, var(--surface-default) );--_time-picker-trigger-border: var( --ds-time-picker-trigger-border, var(--border-default) );--_time-picker-trigger-color: var( --ds-time-picker-trigger-color, var(--text-primary) );--_time-picker-trigger-radius: var(--ds-time-picker-trigger-radius, var(--ds-radius-control));--_time-picker-trigger-padding-x: var(--ds-time-picker-trigger-padding-x, var(--field-pad-x));--_time-picker-required-color: var(--ds-time-picker-required-color, var(--error));--_time-picker-value-font-family: var(--ds-time-picker-value-font-family, var(--font-sans));--_time-picker-value-font-size: var(--ds-time-picker-value-font-size, var(--font-size-s));--_time-picker-value-font-weight: var(--ds-time-picker-value-font-weight, var(--font-weight-regular));display:block}.field{display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}.field .label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-text-transform: var(--ds-field-label-text-transform, none);--_field-label-letter-spacing: var(--ds-field-label-letter-spacing, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-font-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-text-transform);letter-spacing:var(--_field-label-letter-spacing)}.field .label .req{color:var(--_time-picker-required-color);font-weight:var(--font-weight-semibold)}.field .label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.trigger-wrap{position:relative;display:inline-flex;width:fit-content}:host(.full-width) .trigger-wrap,:host(.full-width) .range-wrap,:host(.full-width) .trigger{width:100%}.range-wrap{display:inline-flex;align-items:center;gap:var(--space-2);width:fit-content}.range-sep{color:var(--text-tertiary)}.trigger{display:inline-flex;align-items:center;gap:var(--space-1);background:var(--_time-picker-trigger-bg-color);border:var(--border-width-default) solid var(--_time-picker-trigger-border);border-radius:var(--_time-picker-trigger-radius);padding:0 var(--_time-picker-trigger-padding-x);--_field-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-height);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_time-picker-trigger-color);cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard)}.trigger:hover{border-color:var(--border-strong)}@media not (forced-colors:active){.trigger:focus-visible{outline:none}}.trigger:focus-visible{box-shadow:var(--_time-picker-focus-shadow)}.trigger.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-height);padding:0 var(--space-2);font-size:var(--font-size-xs)}.trigger.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-height);padding:0 var(--space-4);font-size:var(--font-size-m)}.trigger.disabled,.trigger:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.trigger.has-clear{padding-right:var(--space-8)}.trigger.lg.has-clear{padding-right:var(--space-10)}.time-value{flex:1;text-align:left;font-family:var(--_time-picker-value-font-family);font-size:var(--_time-picker-value-font-size);font-weight:var(--_time-picker-value-font-weight);font-variant-numeric:tabular-nums}.time-clear{position:absolute;top:50%;right:var(--space-2);transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;border:0;padding:var(--space-1);border-radius:var(--ds-radius-inner);background:transparent;color:var(--text-tertiary);cursor:pointer;transition:color var(--duration-fast) var(--ease-standard)}.time-clear:hover:not(:disabled){color:var(--text-primary)}.time-clear:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.time-clear:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.time-clear:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.time-clear:focus-visible{outline-style:none}.time-clear:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.time-static{align-self:flex-start}.time-panel{display:flex;flex-direction:column;background:var(--ds-time-picker-bg-color, var(--surface-overlay));border:var(--border-width-default) solid var(--ds-time-picker-border, var(--border-default));border-radius:var(--ds-time-picker-panel-radius, var(--ds-radius-panel));box-shadow:var(--ds-time-picker-shadow, var(--ds-elevation-overlay));padding:var(--space-2);gap:var(--space-1)}.time-footer{display:flex;justify-content:flex-end;gap:var(--space-2);padding-top:var(--space-1);border-top:var(--border-width-default) solid var(--border-subtitle)}.time-footer:not(:has(.primary)) .time-action{flex:1;text-align:center}.time-action{appearance:none;border:0;background:transparent;cursor:pointer;padding:var(--space-1) var(--space-2);border-radius:var(--ds-radius-inner);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-secondary);transition:background-color var(--duration-fast) var(--ease-standard)}.time-action:hover{background-color:var(--surface-secondary)}.time-action:active{background-color:var(--surface-muted)}.time-action.primary{color:var(--accent)}.time-action:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host([data-field-state=error]:not(.in-group)) .trigger:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .trigger:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=warning]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=warning]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-warning)}:host([data-field-state=success]:not(.in-group)) .trigger:not(.disabled):not(:disabled){border-color:var(--success)}:host([data-field-state=success]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=success]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-success)}\n"] }]
|
|
677
|
-
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], minuteStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "minuteStep", required: false }] }], minTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "minTime", required: false }] }], maxTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxTime", required: false }] }], disabledTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledTime", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], panelClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelClass", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], success: [{ type: i0.Input, args: [{ isSignal: true, alias: "success", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], singleTrigger: [{ type: i0.ViewChild, args: ['singleTrigger', { isSignal: true }] }], startTrigger: [{ type: i0.ViewChild, args: ['startTrigger', { isSignal: true }] }], endTrigger: [{ type: i0.ViewChild, args: ['endTrigger', { isSignal: true }] }], panelTpl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], columns: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TimeColumnsComponent), { isSignal: true }] }] } });
|
|
937
|
+
}, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "<div class=\"field\">\n @if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </span>\n }\n\n @if (mode() === 'range') {\n <div class=\"range-wrap\">\n <div class=\"trigger-wrap\">\n <button\n #startTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'start'\"\n [attr.aria-label]=\"ariaLabelFor('start')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('start')\">\n <span class=\"time-value\">\n {{ formatFor(rangeValue()[0]) || placeholder() }}\n </span>\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\" />\n </button>\n </div>\n\n <span\n class=\"range-sep\"\n aria-hidden=\"true\">\n \u2013\n </span>\n\n <div class=\"trigger-wrap\">\n <button\n #endTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'end'\"\n [attr.aria-label]=\"ariaLabelFor('end')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('end')\">\n <span class=\"time-value\">\n {{ formatFor(rangeValue()[1]) || placeholder() }}\n </span>\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\" />\n </button>\n </div>\n\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n </div>\n } @else {\n <div class=\"trigger-wrap\">\n <button\n #singleTrigger\n type=\"button\"\n aria-haspopup=\"dialog\"\n [class]=\"triggerClasses()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-expanded]=\"openSegment() === 'single'\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"label() ? null : ariaLabelFor('single')\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n (click)=\"onTriggerClick('single')\">\n <span class=\"time-value\">\n {{ displayValue() }}\n </span>\n\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n <ds-icon\n name=\"clock\"\n [size]=\"16\" />\n </button>\n\n @if (clearable() && hasValue()) {\n <button\n type=\"button\"\n class=\"time-clear\"\n [attr.aria-label]=\"intl().timePicker.clear\"\n [disabled]=\"isDisabled()\"\n (click)=\"clear($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n </div>\n }\n\n @if (preview.staticPreview()) {\n <div class=\"time-static\">\n <ng-container [ngTemplateOutlet]=\"panelTpl()\" />\n </div>\n }\n\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n</div>\n\n<ng-template #panel>\n <div class=\"time-panel\">\n <ds-time-columns\n [value]=\"panelValue()\"\n [format]=\"resolvedFormat()\"\n [minuteStep]=\"minuteStep()\"\n [loop]=\"loopResolved()\"\n [minTime]=\"panelMinTime()\"\n [maxTime]=\"panelMaxTime()\"\n [disabledTime]=\"disabledTime()\"\n (timeChange)=\"onPick($event)\"\n (partPicked)=\"onPartPicked($event)\" />\n\n <div class=\"time-footer\">\n <button\n type=\"button\"\n class=\"time-action\"\n (click)=\"setNow()\">\n {{ intl().timePicker.now }}\n </button>\n\n @if (mode() === 'range') {\n <button\n type=\"button\"\n class=\"time-action primary\"\n (click)=\"onEscape()\">\n {{ intl().timePicker.done }}\n </button>\n }\n </div>\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_time-picker-focus-shadow: var( --ds-time-picker-focus-shadow, var(--ds-control-focus-shadow) );--_time-picker-trigger-bg-color: var( --ds-time-picker-trigger-bg-color, var(--surface-default) );--_time-picker-trigger-border: var( --ds-time-picker-trigger-border, var(--border-default) );--_time-picker-trigger-color: var( --ds-time-picker-trigger-color, var(--text-primary) );--_time-picker-trigger-radius: var(--ds-time-picker-trigger-radius, var(--ds-radius-control));--_time-picker-trigger-padding-x: var(--ds-time-picker-trigger-padding-x, var(--field-pad-x));--_time-picker-required-color: var(--ds-time-picker-required-color, var(--error));--_time-picker-value-font-family: var(--ds-time-picker-value-font-family, var(--font-sans));--_time-picker-value-font-size: var(--ds-time-picker-value-font-size, var(--font-size-s));--_time-picker-value-font-weight: var(--ds-time-picker-value-font-weight, var(--font-weight-regular));display:block}.field{display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}.field .label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-text-transform: var(--ds-field-label-text-transform, none);--_field-label-letter-spacing: var(--ds-field-label-letter-spacing, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-font-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-text-transform);letter-spacing:var(--_field-label-letter-spacing)}.field .label .req{color:var(--_time-picker-required-color);font-weight:var(--font-weight-semibold)}.field .label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.trigger-wrap{position:relative;display:inline-flex;width:fit-content}:host(.full-width) .trigger-wrap,:host(.full-width) .range-wrap,:host(.full-width) .trigger{width:100%}.range-wrap{display:inline-flex;align-items:center;gap:var(--space-2);width:fit-content}.range-sep{color:var(--text-tertiary)}.trigger{display:inline-flex;align-items:center;gap:var(--space-1);background:var(--_time-picker-trigger-bg-color);border:var(--border-width-default) solid var(--_time-picker-trigger-border);border-radius:var(--_time-picker-trigger-radius);padding:0 var(--_time-picker-trigger-padding-x);--_field-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-height);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_time-picker-trigger-color);cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard)}.trigger:hover{border-color:var(--border-strong)}@media not (forced-colors:active){.trigger:focus-visible{outline:none}}.trigger:focus-visible{box-shadow:var(--_time-picker-focus-shadow)}.trigger.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-height);padding:0 var(--space-2);font-size:var(--font-size-xs)}.trigger.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-height);padding:0 var(--space-4);font-size:var(--font-size-m)}.trigger.disabled,.trigger:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.trigger.has-clear{padding-right:var(--space-8)}.trigger.lg.has-clear{padding-right:var(--space-10)}.time-value{flex:1;text-align:left;font-family:var(--_time-picker-value-font-family);font-size:var(--_time-picker-value-font-size);font-weight:var(--_time-picker-value-font-weight);font-variant-numeric:tabular-nums}.time-clear{position:absolute;top:50%;right:var(--space-2);transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;border:0;padding:var(--space-1);border-radius:var(--ds-radius-inner);background:transparent;color:var(--text-tertiary);cursor:pointer;transition:color var(--duration-fast) var(--ease-standard)}.time-clear:hover:not(:disabled){color:var(--text-primary)}.time-clear:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.time-clear:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.time-clear:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.time-clear:focus-visible{outline-style:none}.time-clear:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.time-static{align-self:flex-start}.time-panel{display:flex;flex-direction:column;background:var(--ds-time-picker-bg-color, var(--surface-overlay));border:var(--border-width-default) solid var(--ds-time-picker-border, var(--border-default));border-radius:var(--ds-time-picker-panel-radius, var(--ds-radius-panel));box-shadow:var(--ds-time-picker-shadow, var(--ds-elevation-overlay));padding:var(--space-2);gap:var(--space-1)}.time-footer{display:flex;justify-content:flex-end;gap:var(--space-2);padding-top:var(--space-1);border-top:var(--border-width-default) solid var(--border-subtitle)}.time-footer:not(:has(.primary)) .time-action{flex:1;text-align:center}.time-action{appearance:none;border:0;background:transparent;cursor:pointer;padding:var(--space-1) var(--space-2);border-radius:var(--ds-radius-inner);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--text-secondary);transition:background-color var(--duration-fast) var(--ease-standard)}.time-action:hover{background-color:var(--surface-secondary)}.time-action:active{background-color:var(--surface-muted)}.time-action.primary{color:var(--accent)}.time-action:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}:host([data-field-state=error]:not(.in-group)) .trigger:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .trigger:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=warning]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=warning]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-warning)}:host([data-field-state=success]:not(.in-group)) .trigger:not(.disabled):not(:disabled){border-color:var(--success)}:host([data-field-state=success]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=success]:not(.in-group)) .trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-success)}\n"] }]
|
|
938
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], minuteStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "minuteStep", required: false }] }], minTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "minTime", required: false }] }], maxTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxTime", required: false }] }], disabledTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledTime", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], panelClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelClass", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], success: [{ type: i0.Input, args: [{ isSignal: true, alias: "success", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], loop: [{ type: i0.Input, args: [{ isSignal: true, alias: "loop", required: false }] }], singleTrigger: [{ type: i0.ViewChild, args: ['singleTrigger', { isSignal: true }] }], startTrigger: [{ type: i0.ViewChild, args: ['startTrigger', { isSignal: true }] }], endTrigger: [{ type: i0.ViewChild, args: ['endTrigger', { isSignal: true }] }], panelTpl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], columns: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TimeColumnsComponent), { isSignal: true }] }] } });
|
|
678
939
|
|
|
679
940
|
/**
|
|
680
941
|
* Generated bundle index. Do not edit.
|