@ids-group-ltd/ids-design-system 0.14.7 → 0.15.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 +735 -230
- package/components.md +64 -25
- package/docs/agent/INDEX.md +3 -1
- package/docs/agent/charts/ds-bar-chart.md +7 -4
- package/docs/agent/charts/ds-chart.md +1 -1
- package/docs/agent/charts/ds-column-chart.md +1 -1
- package/docs/agent/charts/ds-funnel-chart.md +1 -1
- package/docs/agent/charts/ds-pie-chart.md +1 -1
- package/docs/agent/charts/ds-waterfall-chart.md +2 -2
- package/docs/agent/feedback/ds-loading-overlay.md +2 -0
- package/docs/agent/feedback/ds-skeleton.md +1 -1
- package/docs/agent/forms/ds-button.md +2 -2
- package/docs/agent/forms/ds-date-picker.md +1 -0
- package/docs/agent/foundations/global-helper-classes.md +3 -3
- package/docs/agent/overlays/ds-bottom-sheet.md +1 -1
- package/docs/agent/overlays/ds-definition-term.md +10 -0
- package/docs/agent/overlays/ds-drawer.md +1 -1
- package/docs/agent/overlays/ds-info-hint.md +10 -0
- package/docs/agent/overlays/ds-menu.md +1 -1
- package/docs/agent/overlays/ds-modal-card.md +1 -1
- package/docs/agent/overlays/ds-modal.md +19 -1
- package/docs/agent/overlays/ds-tooltip-panel.md +1 -1
- package/docs/agent/overlays/ds-tooltip.md +3 -3
- package/docs/agent/tables/ds-table.md +3 -2
- package/eslint/deprecated-api.json +889 -0
- package/eslint/index.mjs +394 -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 +6 -12
- 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 +19 -7
- 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 +169 -37
- 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 +195 -27
- 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 +23 -20
- 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 -2
- 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 -2
- 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 +9 -9
- 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 +2 -2
- 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 +107 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -0
- 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 +5 -15
- 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 +2 -2
- 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 +2 -2
- 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 +11 -8
- 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 +4 -3
- 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 +44 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
- 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 +10 -4
- 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 +2 -2
- 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 +136 -29
- 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 +21 -26
- 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 +19 -7
- 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 -2
- 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 +8 -6
- 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 -4
- 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 +19 -5
- 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 +2 -2
- 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 -2
- 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 +21 -7
- 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 +2 -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 -2
- 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 +2 -2
- 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-switch.mjs +2 -2
- 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 +223 -8
- 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 -2
- 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 +4 -4
- 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 +4 -4
- 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 +410 -145
- 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 +14 -11
- 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 +86 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +18 -81
- 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-overlay.mjs +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.10.0.json +79 -21
- package/migrations/0.10.1.json +38 -21
- package/migrations/0.10.2.json +44 -7
- package/migrations/0.10.3.json +7 -5
- package/migrations/0.11.0.json +10 -7
- package/migrations/0.11.1.json +25 -14
- package/migrations/0.11.2.json +3 -3
- package/migrations/0.11.3.json +9 -6
- package/migrations/0.11.4.json +13 -12
- package/migrations/0.12.1.json +41 -14
- package/migrations/0.12.2.json +7 -6
- package/migrations/0.12.3.json +3 -3
- package/migrations/0.13.0.json +11 -11
- package/migrations/0.13.1.json +60 -8
- package/migrations/0.13.2.json +98 -44
- package/migrations/0.13.3.json +46 -16
- package/migrations/0.13.4.json +23 -22
- package/migrations/0.14.0.json +5 -5
- package/migrations/0.14.1.json +5 -5
- package/migrations/0.14.2.json +1 -1
- package/migrations/0.14.4.json +6 -5
- package/migrations/0.14.5.json +13 -7
- package/migrations/0.14.6.json +2 -2
- package/migrations/0.14.8.json +56 -0
- package/migrations/0.15.0.json +999 -0
- package/migrations/0.2.0.json +2 -2
- package/migrations/0.3.0.json +43 -6
- package/migrations/0.4.0.json +95 -13
- package/migrations/0.5.0.json +116 -10
- package/migrations/0.5.1.json +97 -11
- package/migrations/0.6.0.json +30 -1
- package/migrations/0.6.1.json +22 -1
- package/migrations/0.6.2.json +8 -4
- package/migrations/0.6.3.json +17 -5
- package/migrations/0.7.0.json +58 -9
- package/migrations/0.7.1.json +62 -8
- package/migrations/0.8.0.json +60 -12
- package/migrations/0.9.0.json +68 -25
- package/migrations/0.9.1.json +1 -1
- package/migrations/README.md +57 -3
- package/package.json +19 -1
- package/schematics/check-overrides/index.cjs +4 -11
- package/schematics/check-overrides/scan.cjs +12 -1
- package/schematics/check-overrides/surface.json +51 -10
- package/schematics/ng-add/index.cjs +7 -1
- package/stylelint/deprecated-tokens.json +2697 -0
- package/stylelint/index.mjs +94 -0
- package/stylelint/since-version.mjs +26 -0
- package/styles/_chart-motion.scss +3 -9
- package/styles/_chip-row.scss +5 -2
- package/styles/_clear-button.scss +2 -0
- package/styles/_component-base.scss +56 -0
- package/styles/_dismiss-button.scss +16 -0
- package/styles/_dropdown-overlay.scss +19 -0
- package/styles/_focus.scss +4 -1
- package/styles/_overlay-motion.scss +4 -6
- package/styles/_pinned.scss +43 -0
- package/styles/_skeleton-shimmer.scss +2 -8
- package/styles/_table-controls.scss +4 -0
- package/styles/_target.scss +40 -0
- package/styles/_text-clip.scss +23 -4
- package/styles/_tokens.scss +0 -1
- package/styles/_typography.scss +2 -0
- package/styles/_visually-hidden.scss +2 -0
- package/styles/ds.scss +0 -1
- package/themes/README.md +7 -7
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +74 -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-tooltip.d.ts +40 -4
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +8 -3
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +4 -3
- package/types/ids-group-ltd-ids-design-system-components-definition-term.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +0 -1
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +7 -3
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-info-hint.d.ts +14 -0
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +5 -0
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +8 -3
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +0 -2
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +5 -3
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +13 -3
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +30 -3
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +48 -17
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +6 -2
- package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -2
- package/types/ids-group-ltd-ids-design-system-core.d.ts +7 -11
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -1
|
@@ -2,10 +2,12 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { input, computed, inject, ElementRef, afterRenderEffect, ChangeDetectionStrategy, ViewEncapsulation, Component, ViewContainerRef, effect, DestroyRef, Directive, signal, InjectionToken, output, booleanAttribute } from '@angular/core';
|
|
3
3
|
import { Overlay } from '@angular/cdk/overlay';
|
|
4
4
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
5
|
-
import { forwardOverlayTokens, closeOnScroll, disposeWithLeave, chartDwell } from '@ids-group-ltd/ids-design-system/components';
|
|
5
|
+
import { forwardOverlayTokens, closeOnScroll, listenForEscape, disposeWithLeave, chartDwell, skeletonWaterfallSteps, skeletonColumnHeights, skeletonLineClip } from '@ids-group-ltd/ids-design-system/components';
|
|
6
6
|
import { NgTemplateOutlet } from '@angular/common';
|
|
7
7
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
8
8
|
import { ICONS, DS_INTL } from '@ids-group-ltd/ids-design-system/core';
|
|
9
|
+
import { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';
|
|
10
|
+
import { LoadingOverlayComponent } from '@ids-group-ltd/ids-design-system/components/loading-overlay';
|
|
9
11
|
|
|
10
12
|
// Below this the dot reads as the panel itself, as the palest heat step does on a light panel (1.14:1).
|
|
11
13
|
// A merely low-contrast hue still reads as a colour next to its label and takes no ring.
|
|
@@ -87,14 +89,14 @@ class ChartTooltipPanelComponent {
|
|
|
87
89
|
});
|
|
88
90
|
}
|
|
89
91
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartTooltipPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
90
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ChartTooltipPanelComponent, isStandalone: true, selector: "ds-chart-tooltip-panel", inputs: { context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: true, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, swatches: { classPropertyName: "swatches", publicName: "swatches", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" } }, ngImport: i0, template: "@if (template(); as projected) {\n <ng-container\n [ngTemplateOutlet]=\"projected\"\n [ngTemplateOutletContext]=\"{ $implicit: context() }\" />\n} @else {\n @if (context().category) {\n <p class=\"category\">\n {{ context().category }}\n </p>\n }\n\n <ul\n class=\"entries\"\n [class.no-swatches]=\"!showsSwatches()\">\n @for (entry of context().entries; track $index) {\n <li class=\"entry\">\n @if (showsSwatches()) {\n <span\n class=\"swatch\"\n [class.hatched]=\"entry.hatched\"\n [style.background-color]=\"entry.color\">\n </span>\n }\n\n <span class=\"label\">\n {{ entry.label }}\n </span>\n\n <span class=\"value\">\n {{ entry.formatted }}\n </span>\n\n @if (entry.detail) {\n <span class=\"detail\">\n {{ entry.detail }}\n </span>\n }\n </li>\n }\n </ul>\n}\n", styles: [":host{--_chart-tooltip-bg-color: var(--ds-chart-tooltip-bg-color);--_chart-tooltip-text-color: var(--ds-chart-tooltip-text-color);--_chart-tooltip-border-color: var(--ds-chart-tooltip-border-color);--_chart-tooltip-hatch-color: var(--ds-chart-hatch-color, var(--surface-default));--_chart-tooltip-hatch-width: var(--ds-chart-hatch-width);display:block;background:var(--_chart-tooltip-bg-color);color:var(--_chart-tooltip-text-color);border:var(--border-width-default) solid var(--_chart-tooltip-border-color);border-radius:var(--ds-radius-control);box-shadow:var(--ds-elevation-overlay);padding:var(--space-2) var(--space-2-5);max-width:var(--tooltip-maxw);max-height:calc(100dvh - 2 * var(--space-3));overflow-y:auto;z-index:var(--layer-tooltip);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)
|
|
92
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ChartTooltipPanelComponent, isStandalone: true, selector: "ds-chart-tooltip-panel", inputs: { context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: true, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, swatches: { classPropertyName: "swatches", publicName: "swatches", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" } }, ngImport: i0, template: "@if (template(); as projected) {\n <ng-container\n [ngTemplateOutlet]=\"projected\"\n [ngTemplateOutletContext]=\"{ $implicit: context() }\" />\n} @else {\n @if (context().category) {\n <p class=\"category\">\n {{ context().category }}\n </p>\n }\n\n <ul\n class=\"entries\"\n [class.no-swatches]=\"!showsSwatches()\">\n @for (entry of context().entries; track $index) {\n <li class=\"entry\">\n @if (showsSwatches()) {\n <span\n class=\"swatch\"\n [class.hatched]=\"entry.hatched\"\n [style.background-color]=\"entry.color\">\n </span>\n }\n\n <span class=\"label\">\n {{ entry.label }}\n </span>\n\n <span class=\"value\">\n {{ entry.formatted }}\n </span>\n\n @if (entry.detail) {\n <span class=\"detail\">\n {{ entry.detail }}\n </span>\n }\n </li>\n }\n </ul>\n}\n", styles: ["@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{--_chart-tooltip-bg-color: var(--ds-chart-tooltip-bg-color);--_chart-tooltip-text-color: var(--ds-chart-tooltip-text-color);--_chart-tooltip-border-color: var(--ds-chart-tooltip-border-color);--_chart-tooltip-hatch-color: var(--ds-chart-hatch-color, var(--surface-default));--_chart-tooltip-hatch-width: var(--ds-chart-hatch-width);display:block;background:var(--_chart-tooltip-bg-color);color:var(--_chart-tooltip-text-color);border:var(--border-width-default) solid var(--_chart-tooltip-border-color);border-radius:var(--ds-radius-control);box-shadow:var(--ds-elevation-overlay);padding:var(--space-2) var(--space-2-5);max-width:var(--tooltip-maxw);max-height:calc(100dvh - 2 * var(--space-3));overflow-y:auto;z-index:var(--layer-tooltip);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}.category{margin:0 0 var(--space-1-5);font-weight:var(--font-weight-medium)}.entries{display:grid;gap:var(--space-1);margin:0;padding:0;list-style:none}.entry{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--space-2)}.no-swatches .entry{grid-template-columns:1fr auto}.detail{grid-column:2/-1;margin-block-start:calc(var(--space-1) * -1);color:var(--_chart-tooltip-text-color);opacity:.7;font-size:var(--font-size-2xs)}.no-swatches .detail{grid-column:1/-1}.swatch{inline-size:var(--space-3);block-size:var(--space-3);border-radius:var(--radius-pill)}.swatch.ringed{box-shadow:inset 0 0 0 1.5px var(--_chart-tooltip-text-color)}.swatch.hatched{background-image:linear-gradient(-45deg,transparent calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% + var(--_chart-tooltip-hatch-width) / 2),transparent calc(50% + var(--_chart-tooltip-hatch-width) / 2))}.value{font-variant-numeric:tabular-nums;font-weight:var(--font-weight-medium)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
91
93
|
}
|
|
92
94
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartTooltipPanelComponent, decorators: [{
|
|
93
95
|
type: Component,
|
|
94
96
|
args: [{ selector: 'ds-chart-tooltip-panel', standalone: true, imports: [NgTemplateOutlet], host: {
|
|
95
97
|
// Hidden from AT: every interactive mark's `aria-label` already carries the reading.
|
|
96
98
|
'aria-hidden': 'true',
|
|
97
|
-
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (template(); as projected) {\n <ng-container\n [ngTemplateOutlet]=\"projected\"\n [ngTemplateOutletContext]=\"{ $implicit: context() }\" />\n} @else {\n @if (context().category) {\n <p class=\"category\">\n {{ context().category }}\n </p>\n }\n\n <ul\n class=\"entries\"\n [class.no-swatches]=\"!showsSwatches()\">\n @for (entry of context().entries; track $index) {\n <li class=\"entry\">\n @if (showsSwatches()) {\n <span\n class=\"swatch\"\n [class.hatched]=\"entry.hatched\"\n [style.background-color]=\"entry.color\">\n </span>\n }\n\n <span class=\"label\">\n {{ entry.label }}\n </span>\n\n <span class=\"value\">\n {{ entry.formatted }}\n </span>\n\n @if (entry.detail) {\n <span class=\"detail\">\n {{ entry.detail }}\n </span>\n }\n </li>\n }\n </ul>\n}\n", styles: [":host{--_chart-tooltip-bg-color: var(--ds-chart-tooltip-bg-color);--_chart-tooltip-text-color: var(--ds-chart-tooltip-text-color);--_chart-tooltip-border-color: var(--ds-chart-tooltip-border-color);--_chart-tooltip-hatch-color: var(--ds-chart-hatch-color, var(--surface-default));--_chart-tooltip-hatch-width: var(--ds-chart-hatch-width);display:block;background:var(--_chart-tooltip-bg-color);color:var(--_chart-tooltip-text-color);border:var(--border-width-default) solid var(--_chart-tooltip-border-color);border-radius:var(--ds-radius-control);box-shadow:var(--ds-elevation-overlay);padding:var(--space-2) var(--space-2-5);max-width:var(--tooltip-maxw);max-height:calc(100dvh - 2 * var(--space-3));overflow-y:auto;z-index:var(--layer-tooltip);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)
|
|
99
|
+
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (template(); as projected) {\n <ng-container\n [ngTemplateOutlet]=\"projected\"\n [ngTemplateOutletContext]=\"{ $implicit: context() }\" />\n} @else {\n @if (context().category) {\n <p class=\"category\">\n {{ context().category }}\n </p>\n }\n\n <ul\n class=\"entries\"\n [class.no-swatches]=\"!showsSwatches()\">\n @for (entry of context().entries; track $index) {\n <li class=\"entry\">\n @if (showsSwatches()) {\n <span\n class=\"swatch\"\n [class.hatched]=\"entry.hatched\"\n [style.background-color]=\"entry.color\">\n </span>\n }\n\n <span class=\"label\">\n {{ entry.label }}\n </span>\n\n <span class=\"value\">\n {{ entry.formatted }}\n </span>\n\n @if (entry.detail) {\n <span class=\"detail\">\n {{ entry.detail }}\n </span>\n }\n </li>\n }\n </ul>\n}\n", styles: ["@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{--_chart-tooltip-bg-color: var(--ds-chart-tooltip-bg-color);--_chart-tooltip-text-color: var(--ds-chart-tooltip-text-color);--_chart-tooltip-border-color: var(--ds-chart-tooltip-border-color);--_chart-tooltip-hatch-color: var(--ds-chart-hatch-color, var(--surface-default));--_chart-tooltip-hatch-width: var(--ds-chart-hatch-width);display:block;background:var(--_chart-tooltip-bg-color);color:var(--_chart-tooltip-text-color);border:var(--border-width-default) solid var(--_chart-tooltip-border-color);border-radius:var(--ds-radius-control);box-shadow:var(--ds-elevation-overlay);padding:var(--space-2) var(--space-2-5);max-width:var(--tooltip-maxw);max-height:calc(100dvh - 2 * var(--space-3));overflow-y:auto;z-index:var(--layer-tooltip);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}.category{margin:0 0 var(--space-1-5);font-weight:var(--font-weight-medium)}.entries{display:grid;gap:var(--space-1);margin:0;padding:0;list-style:none}.entry{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--space-2)}.no-swatches .entry{grid-template-columns:1fr auto}.detail{grid-column:2/-1;margin-block-start:calc(var(--space-1) * -1);color:var(--_chart-tooltip-text-color);opacity:.7;font-size:var(--font-size-2xs)}.no-swatches .detail{grid-column:1/-1}.swatch{inline-size:var(--space-3);block-size:var(--space-3);border-radius:var(--radius-pill)}.swatch.ringed{box-shadow:inset 0 0 0 1.5px var(--_chart-tooltip-text-color)}.swatch.hatched{background-image:linear-gradient(-45deg,transparent calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% - var(--_chart-tooltip-hatch-width) / 2),var(--_chart-tooltip-hatch-color) calc(50% + var(--_chart-tooltip-hatch-width) / 2),transparent calc(50% + var(--_chart-tooltip-hatch-width) / 2))}.value{font-variant-numeric:tabular-nums;font-weight:var(--font-weight-medium)}\n"] }]
|
|
98
100
|
}], ctorParameters: () => [], propDecorators: { context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: true }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }], swatches: [{ type: i0.Input, args: [{ isSignal: true, alias: "swatches", required: false }] }] } });
|
|
99
101
|
|
|
100
102
|
const POINTER_GAP_PX = 10;
|
|
@@ -193,7 +195,8 @@ class ChartTooltipDirective {
|
|
|
193
195
|
this.detachScrollReposition = closeOnScroll(this.overlayRef, () => this.dsChartTooltipPinned()
|
|
194
196
|
? this.overlayRef?.updatePosition()
|
|
195
197
|
: this.close());
|
|
196
|
-
|
|
198
|
+
// WCAG 1.4.13: dismissable without moving pointer or focus. Stays closed until the context or origin changes.
|
|
199
|
+
this.detachEscape = listenForEscape(typeof document === 'undefined' ? null : document, () => this.close());
|
|
197
200
|
this.detachOffscreen = hideWhileOffscreen(this.overlayRef.overlayElement, this.host.nativeElement);
|
|
198
201
|
}
|
|
199
202
|
else {
|
|
@@ -242,19 +245,6 @@ class ChartTooltipDirective {
|
|
|
242
245
|
.withViewportMargin(VIEWPORT_MARGIN_PX)
|
|
243
246
|
.withPositions(positionsFor(gap));
|
|
244
247
|
}
|
|
245
|
-
// WCAG 1.4.13: dismissable without moving pointer or focus. Stays closed until the context or origin changes.
|
|
246
|
-
closeOnEscape() {
|
|
247
|
-
if (typeof document === 'undefined') {
|
|
248
|
-
return () => undefined;
|
|
249
|
-
}
|
|
250
|
-
const onKeydown = (event) => {
|
|
251
|
-
if (event.key === 'Escape') {
|
|
252
|
-
this.close();
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
document.addEventListener('keydown', onKeydown, true);
|
|
256
|
-
return () => document.removeEventListener('keydown', onKeydown, true);
|
|
257
|
-
}
|
|
258
248
|
close() {
|
|
259
249
|
this.detachEscape?.();
|
|
260
250
|
this.detachEscape = null;
|
|
@@ -575,7 +565,7 @@ class ChartUnpinComponent {
|
|
|
575
565
|
{{ intl().chart.unpin }}
|
|
576
566
|
</button>
|
|
577
567
|
}
|
|
578
|
-
`, isInline: true, styles: [":host{display:contents}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
568
|
+
`, isInline: true, styles: ["@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{display:contents}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
579
569
|
}
|
|
580
570
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartUnpinComponent, decorators: [{
|
|
581
571
|
type: Component,
|
|
@@ -587,9 +577,139 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
587
577
|
}
|
|
588
578
|
`, host: {
|
|
589
579
|
'[class.is-pinned]': 'pinned()',
|
|
590
|
-
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:contents}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}\n"] }]
|
|
580
|
+
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["@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{display:contents}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}\n"] }]
|
|
591
581
|
}], propDecorators: { pinned: [{ type: i0.Input, args: [{ isSignal: true, alias: "pinned", required: true }] }], release: [{ type: i0.Output, args: ["release"] }] } });
|
|
592
582
|
|
|
583
|
+
const TICK_POSITIONS = [0, 25, 50, 75, 100];
|
|
584
|
+
/** Height of the category label band under the plot, as the drawn chart budgets it. @internal */
|
|
585
|
+
const CHART_SKELETON_CATEGORY_BAND = 30;
|
|
586
|
+
/**
|
|
587
|
+
* The loading silhouette of a chart on a category axis: tick pills, the axis L, marks and category
|
|
588
|
+
* pills, laid out on the same value space, plot height and gutter as the drawn chart so the card
|
|
589
|
+
* keeps its height when the data lands.
|
|
590
|
+
*
|
|
591
|
+
* @internal
|
|
592
|
+
*/
|
|
593
|
+
class ChartSkeletonComponent {
|
|
594
|
+
marks = input('columns', ...(ngDevMode ? [{ debugName: "marks" }] : /* istanbul ignore next */ []));
|
|
595
|
+
count = input.required(...(ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []));
|
|
596
|
+
/** A CSS length, so a chart can pass its own height token. */
|
|
597
|
+
plotHeight = input.required(...(ngDevMode ? [{ debugName: "plotHeight" }] : /* istanbul ignore next */ []));
|
|
598
|
+
valueSpace = input.required(...(ngDevMode ? [{ debugName: "valueSpace" }] : /* istanbul ignore next */ []));
|
|
599
|
+
axisGutter = input.required(...(ngDevMode ? [{ debugName: "axisGutter" }] : /* istanbul ignore next */ []));
|
|
600
|
+
shimmer = input(true, ...(ngDevMode ? [{ debugName: "shimmer" }] : /* istanbul ignore next */ []));
|
|
601
|
+
ticks = TICK_POSITIONS;
|
|
602
|
+
categoryBand = CHART_SKELETON_CATEGORY_BAND;
|
|
603
|
+
bars = computed(() => this.marks() === 'steps'
|
|
604
|
+
? skeletonWaterfallSteps(this.count()).map(({ bottom, height }) => ({
|
|
605
|
+
bottom: `${bottom * 100}%`,
|
|
606
|
+
height: `${height * 100}%`,
|
|
607
|
+
}))
|
|
608
|
+
: skeletonColumnHeights(this.count()).map((height) => ({
|
|
609
|
+
bottom: '0',
|
|
610
|
+
height: `${height * 100}%`,
|
|
611
|
+
})), ...(ngDevMode ? [{ debugName: "bars" }] : /* istanbul ignore next */ []));
|
|
612
|
+
lineClip = computed(() => skeletonLineClip(this.count()), ...(ngDevMode ? [{ debugName: "lineClip" }] : /* istanbul ignore next */ []));
|
|
613
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartSkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
614
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ChartSkeletonComponent, isStandalone: true, selector: "ds-chart-skeleton", inputs: { marks: { classPropertyName: "marks", publicName: "marks", isSignal: true, isRequired: false, transformFunction: null }, count: { classPropertyName: "count", publicName: "count", isSignal: true, isRequired: true, transformFunction: null }, plotHeight: { classPropertyName: "plotHeight", publicName: "plotHeight", isSignal: true, isRequired: true, transformFunction: null }, valueSpace: { classPropertyName: "valueSpace", publicName: "valueSpace", isSignal: true, isRequired: true, transformFunction: null }, axisGutter: { classPropertyName: "axisGutter", publicName: "axisGutter", isSignal: true, isRequired: true, transformFunction: null }, shimmer: { classPropertyName: "shimmer", publicName: "shimmer", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true" }, properties: { "style.--_chart-skeleton-plot-height": "plotHeight()", "style.--_chart-skeleton-value-space.px": "valueSpace()", "style.--_chart-skeleton-axis-gutter.px": "axisGutter()", "style.--_chart-skeleton-category-band.px": "categoryBand" } }, ngImport: i0, template: `
|
|
615
|
+
<div class="ticks">
|
|
616
|
+
@for (tick of ticks; track tick) {
|
|
617
|
+
<ds-skeleton
|
|
618
|
+
class="pill"
|
|
619
|
+
height="var(--space-2)"
|
|
620
|
+
width="var(--space-6)"
|
|
621
|
+
[style.top.%]="tick"
|
|
622
|
+
[shimmer]="shimmer()" />
|
|
623
|
+
}
|
|
624
|
+
</div>
|
|
625
|
+
|
|
626
|
+
<div class="plot">
|
|
627
|
+
@if (marks() === 'line') {
|
|
628
|
+
<ds-skeleton
|
|
629
|
+
class="line"
|
|
630
|
+
[style.clip-path]="lineClip()"
|
|
631
|
+
[shimmer]="shimmer()" />
|
|
632
|
+
} @else {
|
|
633
|
+
@for (bar of bars(); track $index) {
|
|
634
|
+
<span class="band">
|
|
635
|
+
<ds-skeleton
|
|
636
|
+
class="bar"
|
|
637
|
+
width="50%"
|
|
638
|
+
[height]="bar.height"
|
|
639
|
+
[style.inset-block-end]="bar.bottom"
|
|
640
|
+
[shimmer]="shimmer()" />
|
|
641
|
+
</span>
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
</div>
|
|
645
|
+
|
|
646
|
+
<div class="categories">
|
|
647
|
+
@for (bar of bars(); track $index) {
|
|
648
|
+
<span class="band">
|
|
649
|
+
<ds-skeleton
|
|
650
|
+
class="pill"
|
|
651
|
+
height="var(--space-2)"
|
|
652
|
+
width="var(--space-8)"
|
|
653
|
+
[shimmer]="shimmer()" />
|
|
654
|
+
</span>
|
|
655
|
+
}
|
|
656
|
+
</div>
|
|
657
|
+
`, isInline: true, styles: ["@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{display:grid;grid-template-columns:var(--_chart-skeleton-axis-gutter) minmax(0,1fr);grid-template-rows:var(--_chart-skeleton-value-space) var(--_chart-skeleton-plot-height) var(--_chart-skeleton-category-band);padding-inline-end:12px}.ticks{grid-area:2/1;position:relative}.ticks .pill{position:absolute;inset-inline-end:var(--space-2);translate:0 -50%}.plot{grid-area:2/2;position:relative;display:flex;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.band{flex:1 1 0;display:flex;justify-content:center;align-items:flex-end;min-inline-size:0}.bar{border-end-start-radius:0;border-end-end-radius:0}.line{position:absolute;inset:0;border-radius:0}.categories{grid-area:3/2;display:flex}.categories .band{align-items:flex-start;padding-block-start:var(--space-2-5)}.pill{border-radius:var(--radius-pill)}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
658
|
+
}
|
|
659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartSkeletonComponent, decorators: [{
|
|
660
|
+
type: Component,
|
|
661
|
+
args: [{ selector: 'ds-chart-skeleton', standalone: true, imports: [SkeletonComponent], template: `
|
|
662
|
+
<div class="ticks">
|
|
663
|
+
@for (tick of ticks; track tick) {
|
|
664
|
+
<ds-skeleton
|
|
665
|
+
class="pill"
|
|
666
|
+
height="var(--space-2)"
|
|
667
|
+
width="var(--space-6)"
|
|
668
|
+
[style.top.%]="tick"
|
|
669
|
+
[shimmer]="shimmer()" />
|
|
670
|
+
}
|
|
671
|
+
</div>
|
|
672
|
+
|
|
673
|
+
<div class="plot">
|
|
674
|
+
@if (marks() === 'line') {
|
|
675
|
+
<ds-skeleton
|
|
676
|
+
class="line"
|
|
677
|
+
[style.clip-path]="lineClip()"
|
|
678
|
+
[shimmer]="shimmer()" />
|
|
679
|
+
} @else {
|
|
680
|
+
@for (bar of bars(); track $index) {
|
|
681
|
+
<span class="band">
|
|
682
|
+
<ds-skeleton
|
|
683
|
+
class="bar"
|
|
684
|
+
width="50%"
|
|
685
|
+
[height]="bar.height"
|
|
686
|
+
[style.inset-block-end]="bar.bottom"
|
|
687
|
+
[shimmer]="shimmer()" />
|
|
688
|
+
</span>
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
</div>
|
|
692
|
+
|
|
693
|
+
<div class="categories">
|
|
694
|
+
@for (bar of bars(); track $index) {
|
|
695
|
+
<span class="band">
|
|
696
|
+
<ds-skeleton
|
|
697
|
+
class="pill"
|
|
698
|
+
height="var(--space-2)"
|
|
699
|
+
width="var(--space-8)"
|
|
700
|
+
[shimmer]="shimmer()" />
|
|
701
|
+
</span>
|
|
702
|
+
}
|
|
703
|
+
</div>
|
|
704
|
+
`, host: {
|
|
705
|
+
'aria-hidden': 'true',
|
|
706
|
+
'[style.--_chart-skeleton-plot-height]': 'plotHeight()',
|
|
707
|
+
'[style.--_chart-skeleton-value-space.px]': 'valueSpace()',
|
|
708
|
+
'[style.--_chart-skeleton-axis-gutter.px]': 'axisGutter()',
|
|
709
|
+
'[style.--_chart-skeleton-category-band.px]': 'categoryBand',
|
|
710
|
+
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["@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{display:grid;grid-template-columns:var(--_chart-skeleton-axis-gutter) minmax(0,1fr);grid-template-rows:var(--_chart-skeleton-value-space) var(--_chart-skeleton-plot-height) var(--_chart-skeleton-category-band);padding-inline-end:12px}.ticks{grid-area:2/1;position:relative}.ticks .pill{position:absolute;inset-inline-end:var(--space-2);translate:0 -50%}.plot{grid-area:2/2;position:relative;display:flex;border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.band{flex:1 1 0;display:flex;justify-content:center;align-items:flex-end;min-inline-size:0}.bar{border-end-start-radius:0;border-end-end-radius:0}.line{position:absolute;inset:0;border-radius:0}.categories{grid-area:3/2;display:flex}.categories .band{align-items:flex-start;padding-block-start:var(--space-2-5)}.pill{border-radius:var(--radius-pill)}\n"] }]
|
|
711
|
+
}], propDecorators: { marks: [{ type: i0.Input, args: [{ isSignal: true, alias: "marks", required: false }] }], count: [{ type: i0.Input, args: [{ isSignal: true, alias: "count", required: true }] }], plotHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "plotHeight", required: true }] }], valueSpace: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueSpace", required: true }] }], axisGutter: [{ type: i0.Input, args: [{ isSignal: true, alias: "axisGutter", required: true }] }], shimmer: [{ type: i0.Input, args: [{ isSignal: true, alias: "shimmer", required: false }] }] } });
|
|
712
|
+
|
|
593
713
|
/**
|
|
594
714
|
* The Unpin control, caption and error / loading / empty states every chart draws, then `body`.
|
|
595
715
|
* It sits on the chart's own `<figure>` so the caption stays the figure's direct child, which is
|
|
@@ -606,7 +726,14 @@ class ChartStatesComponent {
|
|
|
606
726
|
caption = input(null, ...(ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []));
|
|
607
727
|
error = input(false, ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
608
728
|
errorText = input('', ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
729
|
+
/** Draws `skeleton` in place of `body`: there is nothing to draw yet. */
|
|
609
730
|
pending = input(false, ...(ngDevMode ? [{ debugName: "pending" }] : /* istanbul ignore next */ []));
|
|
731
|
+
/** Holds the room of the chart's data-table disclosure under the skeleton. */
|
|
732
|
+
dataTable = input(false, ...(ngDevMode ? [{ debugName: "dataTable" }] : /* istanbul ignore next */ []));
|
|
733
|
+
/** Whether the data-table placeholder shimmers, as the chart's own skeleton does. */
|
|
734
|
+
shimmer = input(true, ...(ngDevMode ? [{ debugName: "shimmer" }] : /* istanbul ignore next */ []));
|
|
735
|
+
/** Keeps `body` on screen under a loading overlay bound to it, the caption left uncovered. */
|
|
736
|
+
reloading = input(false, ...(ngDevMode ? [{ debugName: "reloading" }] : /* istanbul ignore next */ []));
|
|
610
737
|
empty = input(false, ...(ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []));
|
|
611
738
|
emptyText = input('', ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
|
|
612
739
|
/** Draws the axis L along the message box's start and bottom edges. */
|
|
@@ -616,7 +743,7 @@ class ChartStatesComponent {
|
|
|
616
743
|
/** Replaces the default error and empty paragraph. */
|
|
617
744
|
message = input(null, ...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
|
|
618
745
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartStatesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
619
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ChartStatesComponent, isStandalone: true, selector: "figure[dsChartStates]", inputs: { unpin: { classPropertyName: "unpin", publicName: "unpin", isSignal: true, isRequired: false, transformFunction: null }, pinned: { classPropertyName: "pinned", publicName: "pinned", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, pending: { classPropertyName: "pending", publicName: "pending", isSignal: true, isRequired: false, transformFunction: null }, empty: { classPropertyName: "empty", publicName: "empty", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, messageAxes: { classPropertyName: "messageAxes", publicName: "messageAxes", isSignal: true, isRequired: false, transformFunction: null }, skeleton: { classPropertyName: "skeleton", publicName: "skeleton", isSignal: true, isRequired: true, transformFunction: null }, body: { classPropertyName: "body", publicName: "body", isSignal: true, isRequired: true, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { release: "release" }, host: { properties: { "class.message-axes": "messageAxes()" } }, ngImport: i0, template: `
|
|
746
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ChartStatesComponent, isStandalone: true, selector: "figure[dsChartStates]", inputs: { unpin: { classPropertyName: "unpin", publicName: "unpin", isSignal: true, isRequired: false, transformFunction: null }, pinned: { classPropertyName: "pinned", publicName: "pinned", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, pending: { classPropertyName: "pending", publicName: "pending", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, shimmer: { classPropertyName: "shimmer", publicName: "shimmer", isSignal: true, isRequired: false, transformFunction: null }, reloading: { classPropertyName: "reloading", publicName: "reloading", isSignal: true, isRequired: false, transformFunction: null }, empty: { classPropertyName: "empty", publicName: "empty", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, messageAxes: { classPropertyName: "messageAxes", publicName: "messageAxes", isSignal: true, isRequired: false, transformFunction: null }, skeleton: { classPropertyName: "skeleton", publicName: "skeleton", isSignal: true, isRequired: true, transformFunction: null }, body: { classPropertyName: "body", publicName: "body", isSignal: true, isRequired: true, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { release: "release" }, host: { properties: { "class.message-axes": "messageAxes()" } }, ngImport: i0, template: `
|
|
620
747
|
@if (unpin()) {
|
|
621
748
|
<ds-chart-unpin [pinned]="pinned()" (release)="release.emit()" />
|
|
622
749
|
}
|
|
@@ -639,6 +766,19 @@ class ChartStatesComponent {
|
|
|
639
766
|
}
|
|
640
767
|
} @else if (pending()) {
|
|
641
768
|
<ng-container [ngTemplateOutlet]="skeleton()" />
|
|
769
|
+
|
|
770
|
+
@if (dataTable()) {
|
|
771
|
+
<details class="data-table" aria-hidden="true" inert>
|
|
772
|
+
<summary>
|
|
773
|
+
<ds-skeleton
|
|
774
|
+
inline
|
|
775
|
+
class="data-table-label"
|
|
776
|
+
width="var(--space-16)"
|
|
777
|
+
height="var(--space-2)"
|
|
778
|
+
[shimmer]="shimmer()" />
|
|
779
|
+
</summary>
|
|
780
|
+
</details>
|
|
781
|
+
}
|
|
642
782
|
} @else if (empty()) {
|
|
643
783
|
@if (message(); as messageTemplate) {
|
|
644
784
|
<ng-container
|
|
@@ -653,13 +793,23 @@ class ChartStatesComponent {
|
|
|
653
793
|
</p>
|
|
654
794
|
}
|
|
655
795
|
} @else {
|
|
656
|
-
<
|
|
796
|
+
<ds-loading-overlay
|
|
797
|
+
class="reload-overlay"
|
|
798
|
+
[loading]="reloading()"
|
|
799
|
+
[blur]="true">
|
|
800
|
+
<ng-container [ngTemplateOutlet]="body()" />
|
|
801
|
+
</ds-loading-overlay>
|
|
657
802
|
}
|
|
658
|
-
`, isInline: true, styles: ["figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}:host:has(>ds-chart-unpin.is-pinned)>figcaption{padding-inline-end:calc(5rem + var(--space-2))}.empty{display:grid;place-items:center;min-block-size:var(--_chart-message-height);margin:0;color:var(--text-secondary);text-align:center}.empty.is-error{color:var(--error)}:host(.message-axes) .empty{border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}\n"], dependencies: [{ kind: "component", type: ChartUnpinComponent, selector: "ds-chart-unpin", inputs: ["pinned"], outputs: ["release"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
803
|
+
`, isInline: true, styles: ["@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)}}}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.data-table-label{border-radius:var(--radius-pill)}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}:host:has(>ds-chart-unpin.is-pinned)>figcaption{padding-inline-end:calc(5rem + var(--space-2))}.empty{display:grid;place-items:center;min-block-size:var(--_chart-message-height);margin:0;color:var(--text-secondary);text-align:center}.empty.is-error{color:var(--error)}:host(.message-axes) .empty{border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.reload-overlay{--ds-loading-overlay-radius: var(--radius-md);margin:calc(-1 * var(--space-2));padding:var(--space-2)}:host(.funnel-chart) .reload-overlay{margin-inline:0;padding-inline:0}\n"], dependencies: [{ kind: "component", type: ChartUnpinComponent, selector: "ds-chart-unpin", inputs: ["pinned"], outputs: ["release"] }, { kind: "component", type: LoadingOverlayComponent, selector: "ds-loading-overlay", inputs: ["loading", "label", "blur", "spinnerSize", "insetTop", "inertContent"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
659
804
|
}
|
|
660
805
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ChartStatesComponent, decorators: [{
|
|
661
806
|
type: Component,
|
|
662
|
-
args: [{ selector: 'figure[dsChartStates]', standalone: true, imports: [
|
|
807
|
+
args: [{ selector: 'figure[dsChartStates]', standalone: true, imports: [
|
|
808
|
+
ChartUnpinComponent,
|
|
809
|
+
LoadingOverlayComponent,
|
|
810
|
+
NgTemplateOutlet,
|
|
811
|
+
SkeletonComponent,
|
|
812
|
+
], template: `
|
|
663
813
|
@if (unpin()) {
|
|
664
814
|
<ds-chart-unpin [pinned]="pinned()" (release)="release.emit()" />
|
|
665
815
|
}
|
|
@@ -682,6 +832,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
682
832
|
}
|
|
683
833
|
} @else if (pending()) {
|
|
684
834
|
<ng-container [ngTemplateOutlet]="skeleton()" />
|
|
835
|
+
|
|
836
|
+
@if (dataTable()) {
|
|
837
|
+
<details class="data-table" aria-hidden="true" inert>
|
|
838
|
+
<summary>
|
|
839
|
+
<ds-skeleton
|
|
840
|
+
inline
|
|
841
|
+
class="data-table-label"
|
|
842
|
+
width="var(--space-16)"
|
|
843
|
+
height="var(--space-2)"
|
|
844
|
+
[shimmer]="shimmer()" />
|
|
845
|
+
</summary>
|
|
846
|
+
</details>
|
|
847
|
+
}
|
|
685
848
|
} @else if (empty()) {
|
|
686
849
|
@if (message(); as messageTemplate) {
|
|
687
850
|
<ng-container
|
|
@@ -696,14 +859,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
696
859
|
</p>
|
|
697
860
|
}
|
|
698
861
|
} @else {
|
|
699
|
-
<
|
|
862
|
+
<ds-loading-overlay
|
|
863
|
+
class="reload-overlay"
|
|
864
|
+
[loading]="reloading()"
|
|
865
|
+
[blur]="true">
|
|
866
|
+
<ng-container [ngTemplateOutlet]="body()" />
|
|
867
|
+
</ds-loading-overlay>
|
|
700
868
|
}
|
|
701
|
-
`, host: { '[class.message-axes]': 'messageAxes()' }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}:host:has(>ds-chart-unpin.is-pinned)>figcaption{padding-inline-end:calc(5rem + var(--space-2))}.empty{display:grid;place-items:center;min-block-size:var(--_chart-message-height);margin:0;color:var(--text-secondary);text-align:center}.empty.is-error{color:var(--error)}:host(.message-axes) .empty{border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}\n"] }]
|
|
702
|
-
}], propDecorators: { unpin: [{ type: i0.Input, args: [{ isSignal: true, alias: "unpin", required: false }] }], pinned: [{ type: i0.Input, args: [{ isSignal: true, alias: "pinned", required: false }] }], release: [{ type: i0.Output, args: ["release"] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], pending: [{ type: i0.Input, args: [{ isSignal: true, alias: "pending", required: false }] }], empty: [{ type: i0.Input, args: [{ isSignal: true, alias: "empty", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], messageAxes: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageAxes", required: false }] }], skeleton: [{ type: i0.Input, args: [{ isSignal: true, alias: "skeleton", required: true }] }], body: [{ type: i0.Input, args: [{ isSignal: true, alias: "body", required: true }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }] } });
|
|
869
|
+
`, host: { '[class.message-axes]': 'messageAxes()' }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["@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)}}}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}.data-table-label{border-radius:var(--radius-pill)}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}:host:has(>ds-chart-unpin.is-pinned)>figcaption{padding-inline-end:calc(5rem + var(--space-2))}.empty{display:grid;place-items:center;min-block-size:var(--_chart-message-height);margin:0;color:var(--text-secondary);text-align:center}.empty.is-error{color:var(--error)}:host(.message-axes) .empty{border-inline-start:1px solid var(--ds-chart-axis-line-color);border-block-end:1px solid var(--ds-chart-axis-line-color)}.reload-overlay{--ds-loading-overlay-radius: var(--radius-md);margin:calc(-1 * var(--space-2));padding:var(--space-2)}:host(.funnel-chart) .reload-overlay{margin-inline:0;padding-inline:0}\n"] }]
|
|
870
|
+
}], propDecorators: { unpin: [{ type: i0.Input, args: [{ isSignal: true, alias: "unpin", required: false }] }], pinned: [{ type: i0.Input, args: [{ isSignal: true, alias: "pinned", required: false }] }], release: [{ type: i0.Output, args: ["release"] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], pending: [{ type: i0.Input, args: [{ isSignal: true, alias: "pending", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], shimmer: [{ type: i0.Input, args: [{ isSignal: true, alias: "shimmer", required: false }] }], reloading: [{ type: i0.Input, args: [{ isSignal: true, alias: "reloading", required: false }] }], empty: [{ type: i0.Input, args: [{ isSignal: true, alias: "empty", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], messageAxes: [{ type: i0.Input, args: [{ isSignal: true, alias: "messageAxes", required: false }] }], skeleton: [{ type: i0.Input, args: [{ isSignal: true, alias: "skeleton", required: true }] }], body: [{ type: i0.Input, args: [{ isSignal: true, alias: "body", required: true }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }] } });
|
|
703
871
|
|
|
704
872
|
/**
|
|
705
873
|
* Generated bundle index. Do not edit.
|
|
706
874
|
*/
|
|
707
875
|
|
|
708
|
-
export { CHART_PIN_GAP, CHART_PIN_RADIUS, CHART_UNPIN_DRAWN_BY_HOST, ChartPinMarkerComponent, ChartStatesComponent, ChartTooltipDirective, ChartUnpinComponent, chartActiveMark };
|
|
876
|
+
export { CHART_PIN_GAP, CHART_PIN_RADIUS, CHART_SKELETON_CATEGORY_BAND, CHART_UNPIN_DRAWN_BY_HOST, ChartPinMarkerComponent, ChartSkeletonComponent, ChartStatesComponent, ChartTooltipDirective, ChartUnpinComponent, chartActiveMark };
|
|
709
877
|
//# sourceMappingURL=ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map
|