@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
|
@@ -1401,6 +1401,11 @@ const NO_ERRORS = [];
|
|
|
1401
1401
|
* warning state and does NOT make the control invalid.
|
|
1402
1402
|
*/
|
|
1403
1403
|
const DS_FIELD_WARNING_KIND = 'warning';
|
|
1404
|
+
/**
|
|
1405
|
+
* The submit flag `[dsSubmitted]` provides to the fields inside it: validation errors show only
|
|
1406
|
+
* while it reads `true`.
|
|
1407
|
+
*/
|
|
1408
|
+
const DS_SUBMITTED = new InjectionToken('DS_SUBMITTED');
|
|
1404
1409
|
/**
|
|
1405
1410
|
* `errors` input transform. Accepts a bare string, a single error, or the array signal forms
|
|
1406
1411
|
* assigns.
|
|
@@ -1421,7 +1426,7 @@ function trimmedText(value) {
|
|
|
1421
1426
|
const EMPTY_MESSAGE = { text: '', state: 'default' };
|
|
1422
1427
|
const NO_CONTROL = {
|
|
1423
1428
|
errors: NO_ERRORS,
|
|
1424
|
-
|
|
1429
|
+
submitted: false,
|
|
1425
1430
|
pending: false,
|
|
1426
1431
|
dirty: false,
|
|
1427
1432
|
};
|
|
@@ -1431,15 +1436,17 @@ const NO_CONTROL = {
|
|
|
1431
1436
|
* Precedence, highest first:
|
|
1432
1437
|
*
|
|
1433
1438
|
* 1. `error` - an explicit string. Shown immediately: the consumer decided.
|
|
1434
|
-
* 2. `errors` - validation errors. Shown once the
|
|
1435
|
-
* `
|
|
1439
|
+
* 2. `errors` - validation errors. Shown once the form is submitted: `[dsSubmitted]` reads
|
|
1440
|
+
* `true`, or the parent `NgForm` / `FormGroupDirective` was submitted. Never on blur.
|
|
1436
1441
|
* 3. `warning` - advisory, not blocking.
|
|
1437
1442
|
* 4. `errors` whose kind is `DS_FIELD_WARNING_KIND` - the same, raised by the form model.
|
|
1438
1443
|
* 5. `success` - confirmation.
|
|
1439
1444
|
* 6. `hint` - helper text.
|
|
1440
1445
|
*
|
|
1441
|
-
* Signal forms binds `errors` and `
|
|
1442
|
-
* template-driven forms expose the same through `NgControl`, read here.
|
|
1446
|
+
* Signal forms binds `errors` and `invalid` by input name (`FormUiControl`); reactive and
|
|
1447
|
+
* template-driven forms expose the same through `NgControl`, read here. `invalid` with errors
|
|
1448
|
+
* behind it waits for the submit like them; `invalid` alone was set by the consumer and paints
|
|
1449
|
+
* immediately.
|
|
1443
1450
|
*
|
|
1444
1451
|
* Every rung carries its OWN text; `hint` is never recoloured into another state. `invalid` has
|
|
1445
1452
|
* no text: it paints the control and sets `aria-invalid`.
|
|
@@ -1449,26 +1456,27 @@ const NO_CONTROL = {
|
|
|
1449
1456
|
*/
|
|
1450
1457
|
function resolveFieldMessage(sources) {
|
|
1451
1458
|
const config = inject(DS_CONFIG);
|
|
1459
|
+
const submittedFlag = inject(DS_SUBMITTED, { optional: true });
|
|
1452
1460
|
const controlState = watchNgControl();
|
|
1453
1461
|
const errors = computed(() => {
|
|
1454
|
-
const
|
|
1455
|
-
|
|
1462
|
+
const bound = sources.errors();
|
|
1463
|
+
const fromForm = bound.length ? bound : controlState().errors;
|
|
1464
|
+
const own = sources.ownErrors?.() ?? NO_ERRORS;
|
|
1465
|
+
return own.length ? [...own, ...fromForm] : fromForm;
|
|
1456
1466
|
}, ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
1457
|
-
const
|
|
1458
|
-
(sources.touchedSelf?.() ?? false) ||
|
|
1459
|
-
controlState().touched, ...(ngDevMode ? [{ debugName: "interacted" }] : /* istanbul ignore next */ []));
|
|
1467
|
+
const revealed = computed(() => (submittedFlag?.() ?? false) || controlState().submitted, ...(ngDevMode ? [{ debugName: "revealed" }] : /* istanbul ignore next */ []));
|
|
1460
1468
|
const blocking = computed(() => errors().filter((error) => error.kind !== DS_FIELD_WARNING_KIND), ...(ngDevMode ? [{ debugName: "blocking" }] : /* istanbul ignore next */ []));
|
|
1461
1469
|
const advisory = computed(() => errors().filter((error) => error.kind === DS_FIELD_WARNING_KIND), ...(ngDevMode ? [{ debugName: "advisory" }] : /* istanbul ignore next */ []));
|
|
1462
1470
|
const errorText = computed(() => {
|
|
1463
1471
|
const current = blocking();
|
|
1464
|
-
if (!current.length || !
|
|
1472
|
+
if (!current.length || !revealed()) {
|
|
1465
1473
|
return '';
|
|
1466
1474
|
}
|
|
1467
1475
|
return textFor(current, config.field?.errorMessages);
|
|
1468
1476
|
}, ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
1469
1477
|
const advisoryText = computed(() => {
|
|
1470
1478
|
const current = advisory();
|
|
1471
|
-
if (!current.length || !
|
|
1479
|
+
if (!current.length || !revealed()) {
|
|
1472
1480
|
return '';
|
|
1473
1481
|
}
|
|
1474
1482
|
return textFor(current, config.field?.errorMessages);
|
|
@@ -1477,9 +1485,8 @@ function resolveFieldMessage(sources) {
|
|
|
1477
1485
|
// Disabled wins: `aria-invalid` on a NATIVELY disabled input still reports invalid in
|
|
1478
1486
|
// Chrome's accessibility tree.
|
|
1479
1487
|
const invalid = computed(() => !(sources.disabled?.() ?? false) &&
|
|
1480
|
-
(sources.
|
|
1481
|
-
|
|
1482
|
-
(blocking().length > 0 && interacted())), ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
1488
|
+
(sources.error().length > 0 ||
|
|
1489
|
+
(blocking().length > 0 ? revealed() : sources.invalid())), ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
1483
1490
|
// Relies on message inputs trimming via `trimmedText`; one declared without it breaks this quietly.
|
|
1484
1491
|
const message = computed(() => {
|
|
1485
1492
|
const explicit = sources.error();
|
|
@@ -1523,7 +1530,7 @@ function resolveFieldMessage(sources) {
|
|
|
1523
1530
|
* `NgControl` cannot be injected in the constructor (`NG_VALUE_ACCESSOR` points at the field
|
|
1524
1531
|
* itself: a DI cycle), so it is resolved after first render.
|
|
1525
1532
|
*
|
|
1526
|
-
* `events`, not `statusChanges`:
|
|
1533
|
+
* `events`, not `statusChanges`: editing a control emits `PristineChangeEvent`, not a status change.
|
|
1527
1534
|
*/
|
|
1528
1535
|
function watchNgControl() {
|
|
1529
1536
|
const injector = inject(Injector);
|
|
@@ -1541,17 +1548,24 @@ function watchNgControl() {
|
|
|
1541
1548
|
const submitted = () => parentFormGroup?.submitted || parentForm?.submitted || false;
|
|
1542
1549
|
const sync = () => state.set({
|
|
1543
1550
|
errors: fromValidationErrors(control.errors),
|
|
1544
|
-
|
|
1551
|
+
submitted: submitted(),
|
|
1545
1552
|
pending: control.pending,
|
|
1546
1553
|
dirty: control.dirty,
|
|
1547
1554
|
});
|
|
1555
|
+
// `resetForm()` resets the controls (their events fire here) BEFORE it clears `submitted`.
|
|
1556
|
+
const syncNowAndAfterReset = () => {
|
|
1557
|
+
sync();
|
|
1558
|
+
queueMicrotask(sync);
|
|
1559
|
+
};
|
|
1548
1560
|
// Signal forms bridges an NgControl whose `control` has no `events` stream. Staying at
|
|
1549
|
-
// NO_CONTROL is deliberate: the component's own inputs carry errors and
|
|
1561
|
+
// NO_CONTROL is deliberate: the component's own inputs carry errors and invalid there.
|
|
1550
1562
|
if (typeof control.events?.pipe !== 'function') {
|
|
1551
1563
|
return;
|
|
1552
1564
|
}
|
|
1553
1565
|
sync();
|
|
1554
|
-
control.events
|
|
1566
|
+
control.events
|
|
1567
|
+
.pipe(takeUntilDestroyed(destroyRef))
|
|
1568
|
+
.subscribe(syncNowAndAfterReset);
|
|
1555
1569
|
const parentSubmit = parentFormGroup?.ngSubmit ?? parentForm?.ngSubmit;
|
|
1556
1570
|
parentSubmit?.pipe(takeUntilDestroyed(destroyRef)).subscribe(sync);
|
|
1557
1571
|
});
|
|
@@ -1625,22 +1639,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
1625
1639
|
* @internal
|
|
1626
1640
|
*/
|
|
1627
1641
|
class DsFieldBase extends DsMessageBase {
|
|
1628
|
-
/** Validation errors, shown once the
|
|
1629
|
-
* reactive
|
|
1642
|
+
/** Validation errors, shown once the form is submitted (`[dsSubmitted]`, or `ngSubmit` of a
|
|
1643
|
+
* reactive or template-driven form). Bound by signal forms; reactive and template-driven
|
|
1644
|
+
* forms are read through `NgControl`. */
|
|
1630
1645
|
errors = input([], { ...(ngDevMode ? { debugName: "errors" } : /* istanbul ignore next */ {}), transform: normalizeFieldErrors });
|
|
1631
|
-
/** Paints the error state and sets `aria-invalid` WITHOUT a message; use `error` to show text.
|
|
1646
|
+
/** Paints the error state and sets `aria-invalid` WITHOUT a message; use `error` to show text.
|
|
1647
|
+
* Signal forms binds it alongside `errors`, and then it waits for the submit like them. */
|
|
1632
1648
|
invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1633
|
-
/** Whether the user has interacted with the field. Bound by signal forms; gates `errors`. */
|
|
1634
|
-
touched = input(false, { ...(ngDevMode ? { debugName: "touched" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1635
1649
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DsFieldBase, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1636
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: DsFieldBase, isStandalone: true, inputs: { errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }
|
|
1650
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: DsFieldBase, isStandalone: true, inputs: { errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
1637
1651
|
}
|
|
1638
1652
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DsFieldBase, decorators: [{
|
|
1639
1653
|
type: Directive
|
|
1640
|
-
}], propDecorators: { errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }]
|
|
1654
|
+
}], propDecorators: { errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }] } });
|
|
1641
1655
|
/**
|
|
1642
1656
|
* The form-state inputs of a DS value control: what signal forms binds by name beyond `errors`
|
|
1643
|
-
* and `
|
|
1657
|
+
* and `invalid`. Reactive and template-driven forms are read through `NgControl` instead.
|
|
1644
1658
|
* @internal
|
|
1645
1659
|
*/
|
|
1646
1660
|
class DsFormControlBase extends DsFieldBase {
|
|
@@ -1677,7 +1691,6 @@ const TRIGGER_ELEMENTS = `button${NOT_ROVED}, [tabindex="0"]${NOT_ROVED}`;
|
|
|
1677
1691
|
*/
|
|
1678
1692
|
function valueControlBridge(model) {
|
|
1679
1693
|
const formDisabled = signal(false, ...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
|
|
1680
|
-
const touchedSelf = signal(false, ...(ngDevMode ? [{ debugName: "touchedSelf" }] : /* istanbul ignore next */ []));
|
|
1681
1694
|
let onChange = () => { };
|
|
1682
1695
|
let onTouched = () => { };
|
|
1683
1696
|
// Stops the effect echoing a form-driven write back as a user change.
|
|
@@ -1698,11 +1711,7 @@ function valueControlBridge(model) {
|
|
|
1698
1711
|
});
|
|
1699
1712
|
return {
|
|
1700
1713
|
formDisabled,
|
|
1701
|
-
|
|
1702
|
-
markTouched: () => {
|
|
1703
|
-
touchedSelf.set(true);
|
|
1704
|
-
onTouched();
|
|
1705
|
-
},
|
|
1714
|
+
markTouched: () => onTouched(),
|
|
1706
1715
|
writeValue: (next) => {
|
|
1707
1716
|
hasSynced = true;
|
|
1708
1717
|
synced = next;
|
|
@@ -1719,6 +1728,11 @@ function valueControlBridge(model) {
|
|
|
1719
1728
|
},
|
|
1720
1729
|
};
|
|
1721
1730
|
}
|
|
1731
|
+
// Signal forms takes the ControlValueAccessor path for every DS control, and
|
|
1732
|
+
// focusBoundControl() then calls focus() on the unfocusable HOST.
|
|
1733
|
+
function delegateHostFocus(host, focus) {
|
|
1734
|
+
host.focus = focus;
|
|
1735
|
+
}
|
|
1722
1736
|
function focusOwnControl(host, options) {
|
|
1723
1737
|
const target = host.querySelector(VALUE_ELEMENTS) ??
|
|
1724
1738
|
host.querySelector(TRIGGER_ELEMENTS);
|
|
@@ -1740,7 +1754,11 @@ class DsControlValueAccessor extends DsFormControlBase {
|
|
|
1740
1754
|
/** Hides the control. Inline `display`: the `hidden` attribute loses to each control's `:host` display. */
|
|
1741
1755
|
hidden = input(false, { ...(ngDevMode ? { debugName: "hidden" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1742
1756
|
hostElement = inject(ElementRef);
|
|
1743
|
-
|
|
1757
|
+
constructor() {
|
|
1758
|
+
super();
|
|
1759
|
+
delegateHostFocus(this.hostElement.nativeElement, (options) => this.focus(options));
|
|
1760
|
+
}
|
|
1761
|
+
/** Focuses the control's own input or trigger; `focusBoundControl()` reaches it through the host. */
|
|
1744
1762
|
focus(options) {
|
|
1745
1763
|
focusOwnControl(this.hostElement.nativeElement, options);
|
|
1746
1764
|
}
|
|
@@ -1750,9 +1768,6 @@ class DsControlValueAccessor extends DsFormControlBase {
|
|
|
1750
1768
|
}
|
|
1751
1769
|
bridge = valueControlBridge(() => this.value);
|
|
1752
1770
|
formDisabled = this.bridge.formDisabled;
|
|
1753
|
-
// Separate from the control's `touched`, which only exists once `NgControl`
|
|
1754
|
-
// resolves: too late to gate the first blur.
|
|
1755
|
-
touchedSelf = this.bridge.touchedSelf;
|
|
1756
1771
|
markTouched() {
|
|
1757
1772
|
this.bridge.markTouched();
|
|
1758
1773
|
}
|
|
@@ -1768,7 +1783,7 @@ class DsControlValueAccessor extends DsFormControlBase {
|
|
|
1768
1783
|
setDisabledState(isDisabled) {
|
|
1769
1784
|
this.bridge.setDisabledState(isDisabled);
|
|
1770
1785
|
}
|
|
1771
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DsControlValueAccessor, deps:
|
|
1786
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DsControlValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1772
1787
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: DsControlValueAccessor, isStandalone: true, inputs: { hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.display": "hidden() ? \"none\" : null" } }, usesInheritance: true, ngImport: i0 });
|
|
1773
1788
|
}
|
|
1774
1789
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DsControlValueAccessor, decorators: [{
|
|
@@ -1776,7 +1791,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
1776
1791
|
args: [{
|
|
1777
1792
|
host: { '[style.display]': 'hidden() ? "none" : null' },
|
|
1778
1793
|
}]
|
|
1779
|
-
}], propDecorators: { hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }] } });
|
|
1794
|
+
}], ctorParameters: () => [], propDecorators: { hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }] } });
|
|
1780
1795
|
/**
|
|
1781
1796
|
* Shared `ControlValueAccessor` for DS boolean controls (checkbox, switch) whose state lives
|
|
1782
1797
|
* in a `checked` model. Subclasses must OR `formDisabled()` into their effective disabled
|
|
@@ -1796,13 +1811,13 @@ class DsBooleanControlValueAccessor extends DsFormControlBase {
|
|
|
1796
1811
|
blurOwnControl(this.hostElement.nativeElement);
|
|
1797
1812
|
}
|
|
1798
1813
|
formDisabled = signal(false, ...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
|
|
1799
|
-
touchedSelf = signal(false, ...(ngDevMode ? [{ debugName: "touchedSelf" }] : /* istanbul ignore next */ []));
|
|
1800
1814
|
onChange = () => { };
|
|
1801
1815
|
onTouched = () => { };
|
|
1802
1816
|
synced;
|
|
1803
1817
|
hasSynced = false;
|
|
1804
1818
|
constructor() {
|
|
1805
1819
|
super();
|
|
1820
|
+
delegateHostFocus(this.hostElement.nativeElement, (options) => this.focus(options));
|
|
1806
1821
|
effect(() => {
|
|
1807
1822
|
const next = this.checked();
|
|
1808
1823
|
if (!this.hasSynced) {
|
|
@@ -1818,7 +1833,6 @@ class DsBooleanControlValueAccessor extends DsFormControlBase {
|
|
|
1818
1833
|
});
|
|
1819
1834
|
}
|
|
1820
1835
|
markTouched() {
|
|
1821
|
-
this.touchedSelf.set(true);
|
|
1822
1836
|
this.onTouched();
|
|
1823
1837
|
}
|
|
1824
1838
|
writeValue(value) {
|
|
@@ -1986,6 +2000,7 @@ function resolveChartDefaults(inputs) {
|
|
|
1986
2000
|
tooltipLingerMs: resolveWithConfig(optional(() => inputs.tooltipLingerMs), (config) => config.chart?.tooltipLingerMs, CHART_TOOLTIP_LINGER_MS),
|
|
1987
2001
|
pinOnClick: resolveWithConfig(optional(() => inputs.pinOnClick), (config) => config.chart?.pinOnClick, true),
|
|
1988
2002
|
hoverDelayMs: chartHoverDelayMs(),
|
|
2003
|
+
highlightActive: resolveWithConfig(optional(() => inputs.highlightActive), (config) => config.chart?.highlightActive, true),
|
|
1989
2004
|
tooltipSwatches: resolveWithConfig(optional(() => inputs.tooltipSwatches), (config) => config.chart?.tooltipSwatches, 'auto'),
|
|
1990
2005
|
};
|
|
1991
2006
|
}
|
|
@@ -2024,18 +2039,27 @@ class DsChartBase {
|
|
|
2024
2039
|
/** Holds the clicked mark and its tooltip until a second click, Escape or a press outside.
|
|
2025
2040
|
* Unset falls back to `DS_CONFIG.chart.pinOnClick`, then `true`. The click output fires either way. */
|
|
2026
2041
|
pinOnClick = input(null, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
|
|
2042
|
+
/** Whether the hovered or focused column, bar or heatmap cell brightens. Unset falls back
|
|
2043
|
+
* to `DS_CONFIG.chart.highlightActive`, then `true`. */
|
|
2044
|
+
highlightActive = input(null, { ...(ngDevMode ? { debugName: "highlightActive" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
|
|
2027
2045
|
defaults = resolveChartDefaults(this);
|
|
2028
2046
|
intl = inject(DS_INTL);
|
|
2029
2047
|
frameResolved = this.defaults.frame;
|
|
2030
2048
|
emptyTextResolved = this.defaults.emptyText;
|
|
2031
2049
|
errorTextResolved = this.defaults.errorText;
|
|
2032
2050
|
valueFormatResolved = this.defaults.valueFormat;
|
|
2051
|
+
highlightActiveResolved = this.defaults.highlightActive;
|
|
2033
2052
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DsChartBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2034
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: DsChartBase, isStandalone: true, inputs: { frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, tooltipSwatches: { classPropertyName: "tooltipSwatches", publicName: "tooltipSwatches", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
2053
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: DsChartBase, isStandalone: true, inputs: { frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, tooltipSwatches: { classPropertyName: "tooltipSwatches", publicName: "tooltipSwatches", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null }, highlightActive: { classPropertyName: "highlightActive", publicName: "highlightActive", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--_chart-highlight": "highlightActiveResolved() ? null : 'none'" } }, ngImport: i0 });
|
|
2035
2054
|
}
|
|
2036
2055
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DsChartBase, decorators: [{
|
|
2037
|
-
type: Directive
|
|
2038
|
-
|
|
2056
|
+
type: Directive,
|
|
2057
|
+
args: [{
|
|
2058
|
+
host: {
|
|
2059
|
+
'[style.--_chart-highlight]': "highlightActiveResolved() ? null : 'none'",
|
|
2060
|
+
},
|
|
2061
|
+
}]
|
|
2062
|
+
}], propDecorators: { frame: [{ type: i0.Input, args: [{ isSignal: true, alias: "frame", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], tooltipSwatches: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipSwatches", required: false }] }], tooltipLingerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipLingerMs", required: false }] }], pinOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "pinOnClick", required: false }] }], highlightActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightActive", required: false }] }] } });
|
|
2039
2063
|
/** Whether the marks keyed `key` fade while `highlighted` is singled out: only under `dimOthers`,
|
|
2040
2064
|
* and never the highlighted marks themselves.
|
|
2041
2065
|
*
|
|
@@ -2231,6 +2255,13 @@ function panelClassesOf(panelClass) {
|
|
|
2231
2255
|
? panelClass.split(' ').filter((className) => className.length > 0)
|
|
2232
2256
|
: panelClass;
|
|
2233
2257
|
}
|
|
2258
|
+
/** The pane's floor: the trigger, or `--ds-dropdown-panel-min-width` when that is wider. Set on the
|
|
2259
|
+
* pane, not the panel inside it, so the overlay is placed by the width it is drawn at.
|
|
2260
|
+
* @internal
|
|
2261
|
+
*/
|
|
2262
|
+
function dropdownMinWidth(triggerWidth) {
|
|
2263
|
+
return `max(${triggerWidth}px, var(--_dropdown-panel-min-width))`;
|
|
2264
|
+
}
|
|
2234
2265
|
/**
|
|
2235
2266
|
* The geometry every DS dropdown shares. Width is NOT set here: each caller has its own policy.
|
|
2236
2267
|
* @internal
|
|
@@ -2661,5 +2692,5 @@ function createTypeAhead() {
|
|
|
2661
2692
|
* Generated bundle index. Do not edit.
|
|
2662
2693
|
*/
|
|
2663
2694
|
|
|
2664
|
-
export { CHART_GLIDE_HEAD_START_MS, CHART_HEAT_COLORS, CHART_RAMP_COLORS, CHART_RENDER_GATE_PASSED, CHART_SERIES_COLORS, CHART_SKELETON_COUNT, CHART_TOOLTIP_LINGER_MS, DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChartBase, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsFormControlBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, afterTwoFrames, announceOptionCount, areaPath, bandPath, bandScale, chartColors, chartDelay, chartDwell, chartHoverDelayMs, chartOf, chartRenderGate, chartTiming, chartValueFormat, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, decimationTarget, describeSeries, describeShare, dimmedBy, disposeWithLeave, domainMinOf, dropdownOverlay, dsAriaCurrent, dsDestination, dwellHighlight, elementWidth, focusIsInside, focusMark, focusRescue, formatPercent, formatTick, formatValue, formatWholePercent, forwardOverlayTokens, labelInterval, largestRemainder, leaveMark, leftMark, linePath, lineSegments, linearScale, listenForEscape, listenForMarkFocus, lttbDecimate, markAt, markOf, minMaxDecimate, moveFocusOutOf, needsDecimating, nextControlId, nextRovingIndex, niceDomain, overlayPlacementOf, panelClassesOf, prepareOverlayEnter, readOnHostResize, resolveBrandValue, resolveChartDefaults, resolveFieldMessage, rotationWouldFit, roundStepAtLeast, rovingMarks, scrollActiveOptionIntoView, shareOfTotal, skeletonColumnHeights, skeletonFunnelClips, skeletonLineClip, skeletonMarkCount, skeletonWaterfallSteps, staggerDelay, tickValues, trimmedText, tweenMarks, valueControlBridge, watchElementWidth };
|
|
2695
|
+
export { CHART_GLIDE_HEAD_START_MS, CHART_HEAT_COLORS, CHART_RAMP_COLORS, CHART_RENDER_GATE_PASSED, CHART_SERIES_COLORS, CHART_SKELETON_COUNT, CHART_TOOLTIP_LINGER_MS, DS_FIELD_WARNING_KIND, DS_SUBMITTED, DsBooleanControlValueAccessor, DsChartBase, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsFormControlBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, afterTwoFrames, announceOptionCount, areaPath, bandPath, bandScale, chartColors, chartDelay, chartDwell, chartHoverDelayMs, chartOf, chartRenderGate, chartTiming, chartValueFormat, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, decimationTarget, describeSeries, describeShare, dimmedBy, disposeWithLeave, domainMinOf, dropdownMinWidth, dropdownOverlay, dsAriaCurrent, dsDestination, dwellHighlight, elementWidth, focusIsInside, focusMark, focusRescue, formatPercent, formatTick, formatValue, formatWholePercent, forwardOverlayTokens, labelInterval, largestRemainder, leaveMark, leftMark, linePath, lineSegments, linearScale, listenForEscape, listenForMarkFocus, lttbDecimate, markAt, markOf, minMaxDecimate, moveFocusOutOf, needsDecimating, nextControlId, nextRovingIndex, niceDomain, overlayPlacementOf, panelClassesOf, prepareOverlayEnter, readOnHostResize, resolveBrandValue, resolveChartDefaults, resolveFieldMessage, rotationWouldFit, roundStepAtLeast, rovingMarks, scrollActiveOptionIntoView, shareOfTotal, skeletonColumnHeights, skeletonFunnelClips, skeletonLineClip, skeletonMarkCount, skeletonWaterfallSteps, staggerDelay, tickValues, trimmedText, tweenMarks, valueControlBridge, watchElementWidth };
|
|
2665
2696
|
//# sourceMappingURL=ids-group-ltd-ids-design-system-components.mjs.map
|