@ids-group-ltd/ids-design-system 0.14.4 → 0.14.5
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 +160 -0
- package/components.md +14 -14
- package/docs/agent/INDEX.md +1 -1
- package/docs/agent/charts/ds-bar-chart.md +1 -1
- 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-heatmap-chart.md +1 -1
- package/docs/agent/charts/ds-line-chart.md +1 -1
- package/docs/agent/charts/ds-pie-chart.md +3 -3
- package/docs/agent/charts/ds-scatter-chart.md +1 -1
- package/docs/agent/charts/ds-waterfall-chart.md +1 -1
- package/docs/agent/navigation/ds-breadcrumbs.md +1 -1
- package/docs/agent/overlays/ds-tooltip.md +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -6
- 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 -3
- 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 +58 -163
- 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 +21 -34
- 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 +34 -105
- 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 +3 -3
- 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 +22 -48
- 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 +7 -7
- 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 +6 -10
- 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 +28 -130
- 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 +11 -29
- 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 +10 -28
- 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 +16 -13
- 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 +3 -3
- 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 +42 -69
- 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 +15 -20
- 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 +6 -7
- 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 +3 -10
- 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 +12 -28
- 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 +58 -112
- 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 +182 -432
- 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 +8 -12
- 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 +8 -22
- 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 +28 -123
- 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 +45 -116
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
- 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 +4 -6
- 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 +7 -16
- 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 +7 -8
- 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 +3 -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 +16 -45
- 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 +10 -14
- 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 +19 -41
- 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 +48 -163
- 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 +27 -85
- 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 +17 -25
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +21 -41
- 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 +3 -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 +50 -166
- 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 +7 -7
- 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 +6 -11
- 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 +19 -36
- 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 +30 -57
- 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 +37 -103
- 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 +5 -6
- 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 +9 -15
- 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 +1 -1
- 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 +8 -12
- 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 +9 -24
- 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 +32 -120
- 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 +14 -24
- 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 +15 -24
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +9 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +27 -91
- 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 +16 -41
- 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 +8 -11
- 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 +18 -52
- 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 +4 -7
- 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 +30 -49
- 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 +8 -12
- 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 +6 -7
- 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 +29 -13
- 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 +3 -3
- 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 +8 -9
- 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 +5 -20
- 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 +4 -4
- 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 +3 -3
- 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 +5 -9
- 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 +11 -23
- 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-export.mjs +7 -16
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +9 -43
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +167 -353
- 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 +33 -86
- 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 +7 -7
- 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 +23 -47
- 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 +21 -49
- 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 +35 -63
- 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 -3
- 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 +38 -50
- 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 +3 -5
- 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 +3 -3
- 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 +28 -85
- 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 +325 -579
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +51 -85
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -21
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +4 -13
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +1 -2
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -1
- package/migrations/0.14.5.json +311 -0
- package/package.json +1 -1
- package/schematics/check-overrides/surface.json +17 -2
- package/styles/_breakpoints.scss +6 -23
- package/styles/_chart-data-table.scss +3 -11
- package/styles/_chart-frame.scss +14 -63
- package/styles/_chart-interactive.scss +8 -36
- package/styles/_chart-motion.scss +11 -39
- package/styles/_check-box.scss +7 -26
- package/styles/_check-mark.scss +7 -23
- package/styles/_chip-row.scss +3 -14
- package/styles/_clear-button.scss +2 -7
- package/styles/_control-label.scss +2 -13
- package/styles/_control-line.scss +2 -6
- package/styles/_dropdown-overlay.scss +8 -33
- package/styles/_ds-color.scss +9 -28
- package/styles/_field-box.scss +4 -16
- package/styles/_field-group-segment.scss +6 -6
- package/styles/_field-label.scss +3 -14
- package/styles/_field-state.scss +5 -10
- package/styles/_focus.scss +20 -60
- package/styles/_icon-base.scss +0 -2
- package/styles/_layout-utils.scss +0 -3
- package/styles/_link.scss +4 -18
- package/styles/_overlay-motion.scss +15 -38
- package/styles/_page-grid.scss +4 -29
- package/styles/_press.scss +5 -18
- package/styles/_reset.scss +1 -14
- package/styles/_scrollbar.scss +0 -2
- package/styles/_skeleton-shimmer.scss +3 -14
- package/styles/_status.scss +5 -13
- package/styles/_surface-motion.scss +7 -34
- package/styles/_table-controls.scss +3 -6
- package/styles/_text-clip.scss +2 -6
- package/styles/_theme-activation.scss +7 -20
- package/styles/_toast-overlay.scss +2 -6
- package/styles/_tokens-charts.scss +31 -90
- package/styles/_tokens.scss +111 -156
- package/styles/_typography.scss +6 -13
- package/styles/_visually-hidden.scss +2 -3
- package/styles/ds.scss +2 -10
- package/themes/_base-palette.scss +12 -35
- package/themes/_semantic.scss +29 -98
- package/themes/dark/_palette.scss +15 -29
- package/themes/dark/_theme.scss +14 -32
- package/themes/light/_palette.scss +2 -17
- package/themes/light/_theme.scss +1 -7
- package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +2 -6
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +2 -3
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +45 -119
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +19 -32
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +29 -92
- package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +23 -46
- package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +5 -5
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -8
- package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +27 -136
- package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +13 -32
- package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +6 -12
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +6 -9
- package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +36 -55
- package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +13 -18
- package/types/ids-group-ltd-ids-design-system-components-card.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +5 -11
- package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +10 -26
- package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +27 -49
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +161 -385
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -10
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +5 -14
- package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +29 -124
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +23 -70
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +3 -7
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +1 -3
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +6 -8
- package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +17 -50
- package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +8 -12
- package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +13 -28
- package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +25 -113
- package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +17 -85
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +15 -23
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +18 -37
- package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +51 -160
- package/types/ids-group-ltd-ids-design-system-components-list.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +4 -9
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +13 -21
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +15 -28
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +27 -83
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +5 -6
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +5 -7
- package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -10
- package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +8 -22
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +18 -102
- package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +7 -11
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +14 -25
- package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +7 -12
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +21 -96
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +12 -33
- package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +6 -7
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +12 -41
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +8 -15
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +23 -40
- package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +3 -5
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +4 -4
- package/types/ids-group-ltd-ids-design-system-components-sparkline.d.ts +14 -10
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +6 -7
- package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +2 -15
- package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +4 -6
- package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +5 -9
- package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +3 -7
- package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +4 -8
- package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +9 -43
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +160 -369
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +21 -49
- package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +5 -5
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +17 -34
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +17 -38
- package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +20 -37
- package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +2 -3
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +17 -36
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +21 -70
- package/types/ids-group-ltd-ids-design-system-components.d.ts +262 -415
- package/types/ids-group-ltd-ids-design-system-core.d.ts +133 -260
- package/types/ids-group-ltd-ids-design-system-icons.d.ts +2 -24
- package/types/ids-group-ltd-ids-design-system-overlay.d.ts +4 -13
- package/types/ids-group-ltd-ids-design-system-theme.d.ts +4 -6
|
@@ -12,12 +12,9 @@ import { nextControlId } from '@ids-group-ltd/ids-design-system/components';
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Measures the native scrollbar width per device and publishes it as
|
|
15
|
-
* `--ds-scrollbar-width` on `:root` (recomputed on debounced resize
|
|
16
|
-
* `ds-app-layout` subtracts it from the content region's
|
|
17
|
-
*
|
|
18
|
-
* bar (classic scrollbars), a reserved gutter, or nothing (overlay
|
|
19
|
-
* scrollbars, where the measured width is 0). Internal — instantiated by
|
|
20
|
-
* `ds-app-layout`; not part of the public API.
|
|
15
|
+
* `--ds-scrollbar-width` on `:root` (recomputed on debounced resize; 0 with
|
|
16
|
+
* overlay scrollbars). `ds-app-layout` subtracts it from the content region's
|
|
17
|
+
* right padding. Internal, instantiated by `ds-app-layout`.
|
|
21
18
|
*/
|
|
22
19
|
class ScrollbarWidthService {
|
|
23
20
|
document = inject(DOCUMENT);
|
|
@@ -58,17 +55,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
58
55
|
}], ctorParameters: () => [] });
|
|
59
56
|
|
|
60
57
|
/**
|
|
61
|
-
* Emits the new path whenever navigation lands on a DIFFERENT one
|
|
62
|
-
* fragment-only
|
|
63
|
-
*
|
|
64
|
-
* reset, the responsive rail, and now your own code — so they read one source
|
|
65
|
-
* instead of each deciding for itself.
|
|
66
|
-
*
|
|
67
|
-
* PUBLIC since 0.8.x, because consumers were re-deriving it and disagreeing: one
|
|
68
|
-
* consumer had three separate answers to "did the path change?" — route snapshots
|
|
69
|
-
* in a view-transition skip, this stream inside the layout, and a `split('?')`
|
|
70
|
-
* in a tab helper that ignored the fragment this one strips. Inject it and read
|
|
71
|
-
* `pathChanged` rather than writing a fourth:
|
|
58
|
+
* Emits the new path whenever navigation lands on a DIFFERENT one; query- or
|
|
59
|
+
* fragment-only navigations are ignored. Read `pathChanged` instead of
|
|
60
|
+
* re-deriving the path change:
|
|
72
61
|
*
|
|
73
62
|
* ```ts
|
|
74
63
|
* private readonly navigation = inject(AppLayoutNavigationService);
|
|
@@ -79,16 +68,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
79
68
|
* }
|
|
80
69
|
* ```
|
|
81
70
|
*
|
|
82
|
-
* A
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* and resetting the scroll there fights the user: the reset moves the scroll,
|
|
86
|
-
* the spy rewrites the path again, and the page ping-pongs. Such a navigation
|
|
87
|
-
* must carry `state: { dsSamePage: true }`, which is skipped here.
|
|
71
|
+
* A navigation that changes the path while staying on the same screen (a scroll
|
|
72
|
+
* spy rewriting the URL, a wizard step) must carry `state: { dsSamePage: true }`,
|
|
73
|
+
* which is skipped here; otherwise the scroll reset and the spy ping-pong.
|
|
88
74
|
*
|
|
89
|
-
*
|
|
90
|
-
* derived from the router and holds no state, so one instance serves every
|
|
91
|
-
* reader. `AppLayoutScrollService` depends on it, so a consumer providing THAT
|
|
75
|
+
* `AppLayoutScrollService` depends on it, so a consumer providing THAT
|
|
92
76
|
* outside `ds-app-layout` needs this one resolvable too.
|
|
93
77
|
*/
|
|
94
78
|
class AppLayoutNavigationService {
|
|
@@ -109,37 +93,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
109
93
|
}] });
|
|
110
94
|
|
|
111
95
|
const STORAGE_KEY = 'ds-app-layout:scroll';
|
|
112
|
-
// Enough for a reader's back-stack without letting one tab's history grow unbounded.
|
|
113
96
|
const MAX_ENTRIES = 20;
|
|
114
|
-
//
|
|
115
|
-
// for it would cancel the restore we are performing.
|
|
97
|
+
// NOT `scroll`: our own restore emits one and would cancel itself.
|
|
116
98
|
const CANCEL_EVENTS = ['wheel', 'touchstart', 'keydown'];
|
|
117
99
|
const pathOf = (url) => url.split(/[?#]/)[0];
|
|
118
100
|
/**
|
|
119
|
-
* Owns the layout's content scroller.
|
|
120
|
-
*
|
|
121
|
-
* resets the registered container
|
|
122
|
-
* PATH
|
|
123
|
-
* `
|
|
124
|
-
* that DO want the top after a filter change).
|
|
101
|
+
* Owns the layout's content scroller. The window never scrolls in the
|
|
102
|
+
* fixed-frame layout, so the router's window-based scrolling no-ops; this
|
|
103
|
+
* service resets the registered container when navigation lands on a different
|
|
104
|
+
* PATH. Provided by `ds-app-layout`; routed pages can inject it and call
|
|
105
|
+
* `scrollToTop()`.
|
|
125
106
|
*
|
|
126
|
-
* With `restoreScroll` on the layout it also restores the reader's place
|
|
127
|
-
* when
|
|
128
|
-
* where the reader was, while following a link into a new screen should not.
|
|
107
|
+
* With `restoreScroll` on the layout it also restores the reader's place, but
|
|
108
|
+
* only when armed: going BACK restores, following a link does not.
|
|
129
109
|
*/
|
|
130
110
|
class AppLayoutScrollService {
|
|
131
111
|
navigation = inject(AppLayoutNavigationService);
|
|
132
112
|
router = inject(Router);
|
|
133
113
|
destroyRef = inject(DestroyRef);
|
|
134
114
|
container = signal(null, ...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
|
|
135
|
-
/**
|
|
136
|
-
* The content scroller, once the layout has rendered it. Exposed so a host that
|
|
137
|
-
* must measure or drive the scroll itself — a scroll-spy, a virtualizer — can
|
|
138
|
-
* ask the layout for it instead of guessing the layout's internal markup with
|
|
139
|
-
* `document.querySelector`.
|
|
140
|
-
*/
|
|
115
|
+
/** The content scroller, once the layout has rendered it. */
|
|
141
116
|
scroller = this.container.asReadonly();
|
|
142
|
-
// null = restoration off
|
|
117
|
+
// null = restoration off.
|
|
143
118
|
restoreTimeoutMs = null;
|
|
144
119
|
resetStrategy = 'path';
|
|
145
120
|
armed = false;
|
|
@@ -149,8 +124,7 @@ class AppLayoutScrollService {
|
|
|
149
124
|
constructor() {
|
|
150
125
|
this.navigation.pathChanged
|
|
151
126
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
152
|
-
// Skipped while a restore is armed
|
|
153
|
-
// undo the offset we are about to apply.
|
|
127
|
+
// Skipped while a restore is armed: the reset would undo the offset about to be applied.
|
|
154
128
|
.subscribe(() => {
|
|
155
129
|
if (this.resetStrategy === 'path' && !this.armed) {
|
|
156
130
|
this.scrollToTop();
|
|
@@ -164,11 +138,7 @@ class AppLayoutScrollService {
|
|
|
164
138
|
.subscribe(() => this.onNavigationEnd());
|
|
165
139
|
this.destroyRef.onDestroy(() => this.finishRestore());
|
|
166
140
|
}
|
|
167
|
-
/**
|
|
168
|
-
* Wiring, called by `ds-app-layout` once its content region exists. Public only
|
|
169
|
-
* because the component and the service sit in different files - a consumer has
|
|
170
|
-
* no reason to call it, and calling it points the service at the wrong element.
|
|
171
|
-
*/
|
|
141
|
+
/** Wiring for `ds-app-layout`; not for consumers. */
|
|
172
142
|
setScrollContainer(element) {
|
|
173
143
|
this.container.set(element);
|
|
174
144
|
}
|
|
@@ -183,11 +153,7 @@ class AppLayoutScrollService {
|
|
|
183
153
|
scrollToTop() {
|
|
184
154
|
this.scrollTo(0);
|
|
185
155
|
}
|
|
186
|
-
/**
|
|
187
|
-
* Scroll the content region to an absolute offset. Assigns `scrollTop` rather
|
|
188
|
-
* than calling `scrollTo`, so a themed `scroll-behavior: smooth` cannot turn a
|
|
189
|
-
* positioning jump into an animation.
|
|
190
|
-
*/
|
|
156
|
+
/** Scrolls the content region to an absolute offset. Assigns `scrollTop`, so `scroll-behavior: smooth` cannot animate it. */
|
|
191
157
|
scrollTo(top) {
|
|
192
158
|
const element = this.container();
|
|
193
159
|
if (element) {
|
|
@@ -195,13 +161,9 @@ class AppLayoutScrollService {
|
|
|
195
161
|
}
|
|
196
162
|
}
|
|
197
163
|
/**
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
* offset BEFORE it decides which rows to build, so letting the service assign
|
|
202
|
-
* `scrollTop` afterwards would scroll a list that has not been built yet.
|
|
203
|
-
* Returns null when nothing is pending, which is every navigation that is not a
|
|
204
|
-
* back.
|
|
164
|
+
* Takes the offset this navigation is going to restore, and cancels the restore.
|
|
165
|
+
* For a host that must know the offset BEFORE it builds rows (a virtualizer).
|
|
166
|
+
* Returns null when nothing is pending.
|
|
205
167
|
*/
|
|
206
168
|
consumePendingOffset() {
|
|
207
169
|
const offset = this.pendingOffset;
|
|
@@ -211,12 +173,7 @@ class AppLayoutScrollService {
|
|
|
211
173
|
this.finishRestore();
|
|
212
174
|
return offset;
|
|
213
175
|
}
|
|
214
|
-
/**
|
|
215
|
-
* Optional accelerator: tell the layout the content for this route is in the
|
|
216
|
-
* DOM. Without it the restore still lands — it waits for the container to grow
|
|
217
|
-
* and clamps at the deadline — but a host that knows when its data arrived can
|
|
218
|
-
* end the wait early instead of paying the growth watch.
|
|
219
|
-
*/
|
|
176
|
+
/** Optional: tells the layout the route's content is in the DOM, ending the restore wait early. */
|
|
220
177
|
contentReady() {
|
|
221
178
|
if (this.pendingOffset !== null) {
|
|
222
179
|
this.applyClamped(this.pendingOffset);
|
|
@@ -229,12 +186,7 @@ class AppLayoutScrollService {
|
|
|
229
186
|
if (this.restoreTimeoutMs === null) {
|
|
230
187
|
return;
|
|
231
188
|
}
|
|
232
|
-
// Save where we are LEAVING from, while the old content is still mounted.
|
|
233
189
|
this.remember(pathOf(this.router.url), this.container()?.scrollTop ?? 0);
|
|
234
|
-
// Armed by a history traversal (back, forward, the mouse side button, Alt+←,
|
|
235
|
-
// an edge swipe — all arrive as popstate), by a host that pushes instead of
|
|
236
|
-
// traversing and says so, or by the first navigation of a reload, where the
|
|
237
|
-
// reader expects the page they left.
|
|
238
190
|
const explicit = this.router.currentNavigation()?.extras.state?.['dsRestoreScroll'] ===
|
|
239
191
|
true;
|
|
240
192
|
const offset = this.recall(pathOf(event.url));
|
|
@@ -244,9 +196,7 @@ class AppLayoutScrollService {
|
|
|
244
196
|
this.pendingOffset = this.armed ? offset : null;
|
|
245
197
|
}
|
|
246
198
|
onNavigationEnd() {
|
|
247
|
-
//
|
|
248
|
-
// or fragment step on the same screen. Guarded by `armed` for the same reason
|
|
249
|
-
// the path reset is: a restore about to run must not be undone first.
|
|
199
|
+
// `pathChanged` ignores query/fragment-only navigations, which 'always' still resets.
|
|
250
200
|
if (this.resetStrategy === 'always' && !this.armed) {
|
|
251
201
|
this.scrollToTop();
|
|
252
202
|
}
|
|
@@ -265,8 +215,6 @@ class AppLayoutScrollService {
|
|
|
265
215
|
return;
|
|
266
216
|
}
|
|
267
217
|
const deadline = window.setTimeout(() => {
|
|
268
|
-
// Out of patience: land as close as the content allows rather than not at
|
|
269
|
-
// all. A list that loaded 8 of 40 rows still returns near the reader's row.
|
|
270
218
|
this.applyClamped(target);
|
|
271
219
|
this.finishRestore();
|
|
272
220
|
}, this.restoreTimeoutMs ?? 0);
|
|
@@ -276,18 +224,14 @@ class AppLayoutScrollService {
|
|
|
276
224
|
this.finishRestore();
|
|
277
225
|
}
|
|
278
226
|
};
|
|
279
|
-
//
|
|
280
|
-
// does, which is what makes scrollHeight grow. No fixed frame count: native
|
|
281
|
-
// timing differs between engines, so watch for the growth instead of guessing
|
|
282
|
-
// how many frames it takes.
|
|
227
|
+
// Observe the child: the container's own box does not change as content arrives.
|
|
283
228
|
const growth = new ResizeObserver(settle);
|
|
284
229
|
growth.observe(element.firstElementChild ?? element);
|
|
285
230
|
const cancel = () => this.finishRestore();
|
|
286
231
|
for (const type of CANCEL_EVENTS) {
|
|
287
232
|
element.addEventListener(type, cancel, { passive: true });
|
|
288
233
|
}
|
|
289
|
-
// A bfcache restore brings its own scroll position back
|
|
290
|
-
// move the page under a reader who never asked.
|
|
234
|
+
// A bfcache restore brings its own scroll position back.
|
|
291
235
|
const onPageShow = (event) => {
|
|
292
236
|
if (event.persisted) {
|
|
293
237
|
this.finishRestore();
|
|
@@ -302,7 +246,6 @@ class AppLayoutScrollService {
|
|
|
302
246
|
}
|
|
303
247
|
window.removeEventListener('pageshow', onPageShow);
|
|
304
248
|
};
|
|
305
|
-
// The content may already be tall enough — a cached list renders synchronously.
|
|
306
249
|
settle();
|
|
307
250
|
}
|
|
308
251
|
applyClamped(target) {
|
|
@@ -319,9 +262,7 @@ class AppLayoutScrollService {
|
|
|
319
262
|
this.pendingOffset = null;
|
|
320
263
|
}
|
|
321
264
|
}
|
|
322
|
-
//
|
|
323
|
-
// tab that outlives the visit. Every access is guarded — Safari's private mode
|
|
324
|
-
// throws on write, and a quota error must not take the navigation down with it.
|
|
265
|
+
// Guarded: Safari private mode throws on write, and that must not break navigation.
|
|
325
266
|
read() {
|
|
326
267
|
try {
|
|
327
268
|
const raw = sessionStorage.getItem(STORAGE_KEY);
|
|
@@ -333,8 +274,7 @@ class AppLayoutScrollService {
|
|
|
333
274
|
}
|
|
334
275
|
remember(path, offset) {
|
|
335
276
|
const entries = this.read();
|
|
336
|
-
// Re-insert so the key moves to the end
|
|
337
|
-
// order, which is what makes the oldest entry droppable below.
|
|
277
|
+
// Re-insert so the key moves to the end and the oldest is dropped below.
|
|
338
278
|
delete entries[path];
|
|
339
279
|
entries[path] = Math.round(offset);
|
|
340
280
|
const keys = Object.keys(entries);
|
|
@@ -345,7 +285,7 @@ class AppLayoutScrollService {
|
|
|
345
285
|
sessionStorage.setItem(STORAGE_KEY, JSON.stringify(entries));
|
|
346
286
|
}
|
|
347
287
|
catch {
|
|
348
|
-
// Full or blocked:
|
|
288
|
+
// Full or blocked: losing the position is acceptable.
|
|
349
289
|
}
|
|
350
290
|
}
|
|
351
291
|
recall(path) {
|
|
@@ -360,10 +300,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
360
300
|
}], ctorParameters: () => [] });
|
|
361
301
|
|
|
362
302
|
/**
|
|
363
|
-
* Fixed-frame application layout: the host is pinned to the viewport
|
|
364
|
-
*
|
|
365
|
-
*
|
|
366
|
-
* viewport. Consumers project their own chrome into the slots:
|
|
303
|
+
* Fixed-frame application layout: the host is pinned to the viewport and ONLY
|
|
304
|
+
* the content region scrolls, so the sidenav rail and topbar stay put.
|
|
305
|
+
* Consumers project their own chrome into the slots:
|
|
367
306
|
*
|
|
368
307
|
* ```html
|
|
369
308
|
* <ds-app-layout>
|
|
@@ -373,32 +312,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
373
312
|
* </ds-app-layout>
|
|
374
313
|
* ```
|
|
375
314
|
*
|
|
376
|
-
* The layout renders the `<main>` landmark itself
|
|
315
|
+
* The layout renders the `<main>` landmark itself, so do not nest another
|
|
377
316
|
* `<main>` in the content. Scroll-to-top is built in (`AppLayoutScrollService`)
|
|
378
|
-
* and fires when navigation changes the PATH
|
|
379
|
-
*
|
|
380
|
-
*
|
|
381
|
-
*
|
|
382
|
-
* equals the left one. The layout requires the application router
|
|
383
|
-
* (`provideRouter`) because its scroll-to-top service subscribes to
|
|
384
|
-
* navigation events.
|
|
317
|
+
* and fires when navigation changes the PATH; call `scrollToTop()` for other
|
|
318
|
+
* changes that want the top. The content padding compensates the native
|
|
319
|
+
* scrollbar width so the right inset equals the left. Requires the application
|
|
320
|
+
* router (`provideRouter`).
|
|
385
321
|
*
|
|
386
322
|
* Below the `lg` breakpoint the rail becomes a modal overlay driven by
|
|
387
323
|
* `[(railOpen)]`; put the burger wherever the design wants it inside your own
|
|
388
324
|
* projected topbar.
|
|
389
325
|
*/
|
|
390
326
|
class AppLayoutComponent {
|
|
391
|
-
/**
|
|
392
|
-
* `'content'` (default): the rail spans the full viewport height on the
|
|
393
|
-
* left and the topbar sits above the content column only. `'full'`: the
|
|
394
|
-
* topbar spans the full width and the rail + content sit below it.
|
|
395
|
-
*/
|
|
327
|
+
/** `'content'` (default): rail spans the full height, topbar sits above the content only. `'full'`: topbar spans the full width. */
|
|
396
328
|
topbarSpan = input('content', ...(ngDevMode ? [{ debugName: "topbarSpan" }] : /* istanbul ignore next */ []));
|
|
397
|
-
/**
|
|
398
|
-
* Whether the rail is open as an overlay. Only meaningful below the `lg`
|
|
399
|
-
* breakpoint — above it the rail is always in the layout and this is
|
|
400
|
-
* ignored. Two-way, so a burger in your topbar can drive it.
|
|
401
|
-
*/
|
|
329
|
+
/** Whether the rail is open as an overlay. Ignored at and above the `lg` breakpoint. */
|
|
402
330
|
railOpen = model(false, ...(ngDevMode ? [{ debugName: "railOpen" }] : /* istanbul ignore next */ []));
|
|
403
331
|
/** Accessible name for the rail while it is a modal overlay. Unset falls back to
|
|
404
332
|
* `DS_INTL.appLayout.railLabel`. */
|
|
@@ -407,33 +335,15 @@ class AppLayoutComponent {
|
|
|
407
335
|
railLabelResolved = computed(() => this.railLabel() ?? this.intl().appLayout.railLabel, ...(ngDevMode ? [{ debugName: "railLabelResolved" }] : /* istanbul ignore next */ []));
|
|
408
336
|
/**
|
|
409
337
|
* Remember the content scroll per path and restore it on the way BACK. Off by
|
|
410
|
-
* default
|
|
411
|
-
*
|
|
412
|
-
* still lands at the top — plus a host that pushes its own "back to list" and
|
|
413
|
-
* says so with `state: { dsRestoreScroll: true }`, and the first navigation after
|
|
414
|
-
* a reload.
|
|
338
|
+
* default. Restores on a history traversal, on `state: { dsRestoreScroll: true }`,
|
|
339
|
+
* and on the first navigation after a reload.
|
|
415
340
|
*/
|
|
416
341
|
restoreScroll = input(false, { ...(ngDevMode ? { debugName: "restoreScroll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
417
|
-
/**
|
|
418
|
-
* How long to wait for the restored screen's content to grow tall enough before
|
|
419
|
-
* landing as close as it allows. Only meaningful with `restoreScroll`.
|
|
420
|
-
*/
|
|
342
|
+
/** Milliseconds to wait for the restored content to grow tall enough. Only with `restoreScroll`. */
|
|
421
343
|
restoreScrollTimeout = input(2000, ...(ngDevMode ? [{ debugName: "restoreScrollTimeout" }] : /* istanbul ignore next */ []));
|
|
422
|
-
/**
|
|
423
|
-
* When the content scroll resets to the top. `'path'` (default) is what the
|
|
424
|
-
* layout has always done; `'always'` also resets on a query- or fragment-only
|
|
425
|
-
* navigation, which is what a server-paged list wants; `'never'` hands the
|
|
426
|
-
* decision to the screen, which can still call `AppLayoutScrollService.scrollToTop()`.
|
|
427
|
-
*
|
|
428
|
-
* It exists because the layout owning the scroll CONTAINER also meant it owned
|
|
429
|
-
* the POLICY: a screen could add a reset but had no way to suppress one.
|
|
430
|
-
*/
|
|
344
|
+
/** When the content scroll resets to the top: on path change (`'path'`), also on query/fragment-only navigation (`'always'`), or never (`'never'`). */
|
|
431
345
|
scrollReset = input('path', ...(ngDevMode ? [{ debugName: "scrollReset" }] : /* istanbul ignore next */ []));
|
|
432
|
-
/**
|
|
433
|
-
* True only while the rail is an overlay. Gates the dialog semantics: above
|
|
434
|
-
* the breakpoint the rail is an ordinary region, and a permanent
|
|
435
|
-
* `role="dialog"` there would lie to a screen reader.
|
|
436
|
-
*/
|
|
346
|
+
/** True only while the rail is an overlay; gates the dialog semantics. */
|
|
437
347
|
compact = signal(false, ...(ngDevMode ? [{ debugName: "compact" }] : /* istanbul ignore next */ []));
|
|
438
348
|
/** Whether the rail is currently an overlay rather than part of the layout. */
|
|
439
349
|
railOverlay = this.compact.asReadonly();
|
|
@@ -454,9 +364,7 @@ class AppLayoutComponent {
|
|
|
454
364
|
this.layoutScroll.setScrollContainer(this.content().nativeElement);
|
|
455
365
|
this.watchDesktopBreakpoint();
|
|
456
366
|
});
|
|
457
|
-
// Not closeRail():
|
|
458
|
-
// so focus belongs wherever the router put it - handing it back to the burger
|
|
459
|
-
// would announce "Open navigation" instead of the page they asked for.
|
|
367
|
+
// Not closeRail(): returning focus to the burger would override where the router put it.
|
|
460
368
|
this.navigation.pathChanged
|
|
461
369
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
462
370
|
.subscribe(() => this.railOpen.set(false));
|
|
@@ -470,19 +378,13 @@ class AppLayoutComponent {
|
|
|
470
378
|
if (!this.compact()) {
|
|
471
379
|
return;
|
|
472
380
|
}
|
|
473
|
-
// cdkTrapFocusAutoCapture returns focus only
|
|
474
|
-
// off, so without this the caret stays inside the now off-canvas panel. Whatever control claims
|
|
475
|
-
// the rail through aria-controls owns it — dsRailTrigger and the DS-button forwarding both set it.
|
|
381
|
+
// cdkTrapFocusAutoCapture returns focus only on destroy, so focus would stay in the off-canvas panel.
|
|
476
382
|
this.content()
|
|
477
383
|
.nativeElement.ownerDocument.querySelector(`[aria-controls="${this.railId}"]`)
|
|
478
384
|
?.focus();
|
|
479
385
|
}
|
|
480
386
|
watchDesktopBreakpoint() {
|
|
481
|
-
//
|
|
482
|
-
// resolve to `--bp-lg`. There is deliberately NO literal fallback — one here
|
|
483
|
-
// could disagree with the scale and the rail would flip at a different width
|
|
484
|
-
// than the CSS, silently. A missing value means the DS global styles were
|
|
485
|
-
// never included, which breaks far more than this component, so say so.
|
|
387
|
+
// Same `--bp-lg` as the stylesheet; a literal fallback could flip the rail at a different width than the CSS.
|
|
486
388
|
const lg = getComputedStyle(document.documentElement)
|
|
487
389
|
.getPropertyValue('--bp-lg')
|
|
488
390
|
.trim();
|
|
@@ -495,10 +397,7 @@ class AppLayoutComponent {
|
|
|
495
397
|
const desktop = window.matchMedia(`(width >= ${lg})`);
|
|
496
398
|
const sync = () => {
|
|
497
399
|
this.compact.set(!desktop.matches);
|
|
498
|
-
//
|
|
499
|
-
// rail unprompted the next time the viewport narrows. Set the model
|
|
500
|
-
// directly rather than calling closeRail(), whose focus restore has no
|
|
501
|
-
// business firing here - the trigger it would focus is hidden on desktop.
|
|
400
|
+
// Not closeRail(): its focus restore targets a trigger hidden on desktop.
|
|
502
401
|
if (desktop.matches) {
|
|
503
402
|
this.railOpen.set(false);
|
|
504
403
|
}
|
|
@@ -533,20 +432,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
533
432
|
* </ds-app-layout>
|
|
534
433
|
* ```
|
|
535
434
|
*
|
|
536
|
-
* PUT IT ON THE FOCUSABLE CONTROL, not on a wrapper:
|
|
537
|
-
* host
|
|
538
|
-
*
|
|
539
|
-
* directive and bind its forwarding inputs instead —
|
|
435
|
+
* PUT IT ON THE FOCUSABLE CONTROL, not on a wrapper: on `<ds-icon-button>` the
|
|
436
|
+
* host is the wrapper, not the inner `<button>`. With a DS button, skip this
|
|
437
|
+
* directive and bind its forwarding inputs instead:
|
|
540
438
|
* `[ariaExpanded]="layout.railOverlay() ? layout.railOpen() : null"` and
|
|
541
439
|
* `[ariaControls]="layout.railId"` off a `<ds-app-layout #layout>` template ref.
|
|
542
440
|
*
|
|
543
|
-
* Both attributes are dropped while the rail is NOT an overlay
|
|
544
|
-
*
|
|
545
|
-
* would state the opposite of what the user sees.
|
|
441
|
+
* Both attributes are dropped while the rail is NOT an overlay, since
|
|
442
|
+
* `aria-expanded="false"` would misstate a permanently visible rail.
|
|
546
443
|
*
|
|
547
|
-
* Must sit inside a `ds-app-layout
|
|
548
|
-
* anywhere in the projected chrome works. Outside one, DI fails naming
|
|
549
|
-
* `AppLayoutComponent`, which says what is missing.
|
|
444
|
+
* Must sit inside a `ds-app-layout`.
|
|
550
445
|
*/
|
|
551
446
|
class RailTriggerDirective {
|
|
552
447
|
layout = inject(AppLayoutComponent);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-app-layout.mjs","sources":["../../../src/lib/components/app-layout/scrollbar-width.service.ts","../../../src/lib/components/app-layout/layout-navigation.service.ts","../../../src/lib/components/app-layout/layout-scroll.service.ts","../../../src/lib/components/app-layout/app-layout.component.ts","../../../src/lib/components/app-layout/app-layout.component.html","../../../src/lib/components/app-layout/rail-trigger.directive.ts","../../../src/lib/components/app-layout/ids-group-ltd-ids-design-system-components-app-layout.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { DestroyRef, inject, Injectable, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { debounceTime, fromEvent } from 'rxjs';\n\n/**\n * Measures the native scrollbar width per device and publishes it as\n * `--ds-scrollbar-width` on `:root` (recomputed on debounced resize).\n * `ds-app-layout` subtracts it from the content region's right padding so the\n * visual inset stays equal on both sides whether the scrollbar area is a real\n * bar (classic scrollbars), a reserved gutter, or nothing (overlay\n * scrollbars, where the measured width is 0). Internal — instantiated by\n * `ds-app-layout`; not part of the public API.\n */\n@Injectable({ providedIn: 'root' })\nexport class ScrollbarWidthService {\n private readonly document = inject(DOCUMENT);\n private readonly window = this.document.defaultView!;\n\n readonly width = signal(this.measureWidth());\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n this.applyToCss(this.width());\n\n fromEvent(this.window, 'resize')\n .pipe(debounceTime(200), takeUntilDestroyed(destroyRef))\n .subscribe(() => {\n const value = this.measureWidth();\n this.width.set(value);\n this.applyToCss(value);\n });\n }\n\n private measureWidth(): number {\n const probe = this.document.createElement('div');\n probe.style.cssText =\n 'overflow:scroll;width:100px;height:100px;position:absolute;top:-9999px';\n this.document.body.appendChild(probe);\n\n const inner = this.document.createElement('div');\n inner.style.cssText = 'width:100%;height:1px';\n probe.appendChild(inner);\n\n const width =\n probe.getBoundingClientRect().width - inner.getBoundingClientRect().width;\n\n probe.remove();\n\n return width;\n }\n\n private applyToCss(value: number): void {\n this.document.documentElement.style.setProperty(\n '--ds-scrollbar-width',\n `${value}px`,\n );\n }\n}\n","import { Injectable, inject } from '@angular/core';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { distinctUntilChanged, filter, map, type Observable } from 'rxjs';\n\n/**\n * Emits the new path whenever navigation lands on a DIFFERENT one. A query- or\n * fragment-only navigation is a search, sort or page step on the same screen, and\n * everything that reacts to \"went somewhere else\" must agree on that — the scroll\n * reset, the responsive rail, and now your own code — so they read one source\n * instead of each deciding for itself.\n *\n * PUBLIC since 0.8.x, because consumers were re-deriving it and disagreeing: one\n * consumer had three separate answers to \"did the path change?\" — route snapshots\n * in a view-transition skip, this stream inside the layout, and a `split('?')`\n * in a tab helper that ignored the fragment this one strips. Inject it and read\n * `pathChanged` rather than writing a fourth:\n *\n * ```ts\n * private readonly navigation = inject(AppLayoutNavigationService);\n * constructor() {\n * this.navigation.pathChanged\n * .pipe(takeUntilDestroyed())\n * .subscribe((path) => …);\n * }\n * ```\n *\n * A PATH change is not always a page change. An app whose URL mirrors the\n * reader's position — a docs layout rewriting `/area/section` from a scroll spy,\n * a wizard that names its step — changes the path while staying on the screen,\n * and resetting the scroll there fights the user: the reset moves the scroll,\n * the spy rewrites the path again, and the page ping-pongs. Such a navigation\n * must carry `state: { dsSamePage: true }`, which is skipped here.\n *\n * Root-provided, which is also what makes it safe to expose: the stream is\n * derived from the router and holds no state, so one instance serves every\n * reader. `AppLayoutScrollService` depends on it, so a consumer providing THAT\n * outside `ds-app-layout` needs this one resolvable too.\n */\n@Injectable({ providedIn: 'root' })\nexport class AppLayoutNavigationService {\n private readonly router = inject(Router);\n\n readonly pathChanged: Observable<string> = this.router.events.pipe(\n filter((event): event is NavigationEnd => event instanceof NavigationEnd),\n filter(() => !this.samePage()),\n map((event) => event.urlAfterRedirects.split(/[?#]/)[0]),\n distinctUntilChanged(),\n );\n\n // `lastSuccessfulNavigation`, not `getCurrentNavigation()`: the latter is\n // already cleared by the time NavigationEnd reaches a subscriber.\n private samePage(): boolean {\n const state = this.router.lastSuccessfulNavigation()?.extras.state;\n\n return state?.['dsSamePage'] === true;\n }\n}\n","import {\n DestroyRef,\n Injectable,\n type Signal,\n inject,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, NavigationStart, Router } from '@angular/router';\nimport { filter } from 'rxjs/operators';\nimport { AppLayoutNavigationService } from './layout-navigation.service';\n\nconst STORAGE_KEY = 'ds-app-layout:scroll';\n\n// Enough for a reader's back-stack without letting one tab's history grow unbounded.\nconst MAX_ENTRIES = 20;\n\n// Input events only. NOT `scroll`: our own restore writes emit one, so listening\n// for it would cancel the restore we are performing.\nconst CANCEL_EVENTS = ['wheel', 'touchstart', 'keydown'] as const;\n\nconst pathOf = (url: string): string => url.split(/[?#]/)[0];\n\n/**\n * When the layout resets the content scroll to the top.\n *\n * `'path'` (default) is today's behaviour: only when navigation lands on a\n * different PATH, so a search, a sort or a page step on the same screen keeps\n * the reader's place. `'always'` resets on every navigation, which is what a\n * server-paged list usually wants — a new page should start at the top.\n * `'never'` hands the decision back to the screen, which can still call\n * `AppLayoutScrollService.scrollToTop()` itself.\n */\nexport type DsAppLayoutScrollReset = 'path' | 'never' | 'always';\n\n/**\n * Owns the layout's content scroller. In the fixed-frame layout the window never\n * scrolls, so the router's built-in window-based scrolling no-ops — this service\n * resets the registered container to the top when navigation lands on a different\n * PATH instead. Provided by `ds-app-layout`, so routed pages can\n * `inject(AppLayoutScrollService)` and call `scrollToTop()` manually (e.g. list pages\n * that DO want the top after a filter change).\n *\n * With `restoreScroll` on the layout it also restores the reader's place. Only\n * when ARMED, which is the whole design: going BACK to a list should return to\n * where the reader was, while following a link into a new screen should not.\n */\n@Injectable()\nexport class AppLayoutScrollService {\n private readonly navigation = inject(AppLayoutNavigationService);\n private readonly router = inject(Router);\n private readonly destroyRef = inject(DestroyRef);\n private readonly container = signal<Element | null>(null);\n\n /**\n * The content scroller, once the layout has rendered it. Exposed so a host that\n * must measure or drive the scroll itself — a scroll-spy, a virtualizer — can\n * ask the layout for it instead of guessing the layout's internal markup with\n * `document.querySelector`.\n */\n readonly scroller: Signal<Element | null> = this.container.asReadonly();\n\n // null = restoration off, which is the default.\n private restoreTimeoutMs: number | null = null;\n private resetStrategy: DsAppLayoutScrollReset = 'path';\n private armed = false;\n private pendingOffset: number | null = null;\n private endRestore: (() => void) | null = null;\n private firstNavigation = true;\n\n constructor() {\n this.navigation.pathChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n // Skipped while a restore is armed for this very navigation: the reset would\n // undo the offset we are about to apply.\n .subscribe(() => {\n if (this.resetStrategy === 'path' && !this.armed) {\n this.scrollToTop();\n }\n });\n\n this.router.events\n .pipe(\n filter(\n (event): event is NavigationStart => event instanceof NavigationStart,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe((event) => this.onNavigationStart(event));\n\n this.router.events\n .pipe(\n filter(\n (event): event is NavigationEnd => event instanceof NavigationEnd,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => this.onNavigationEnd());\n\n this.destroyRef.onDestroy(() => this.finishRestore());\n }\n\n /**\n * Wiring, called by `ds-app-layout` once its content region exists. Public only\n * because the component and the service sit in different files - a consumer has\n * no reason to call it, and calling it points the service at the wrong element.\n */\n setScrollContainer(element: Element): void {\n this.container.set(element);\n }\n\n /** Wiring: `ds-app-layout` mirrors its `restoreScroll` inputs through here. */\n configureRestore(timeoutMs: number | null): void {\n this.restoreTimeoutMs = timeoutMs;\n }\n\n /** Wiring: `ds-app-layout` mirrors its `scrollReset` input through here. */\n configureReset(strategy: DsAppLayoutScrollReset): void {\n this.resetStrategy = strategy;\n }\n\n scrollToTop(): void {\n this.scrollTo(0);\n }\n\n /**\n * Scroll the content region to an absolute offset. Assigns `scrollTop` rather\n * than calling `scrollTo`, so a themed `scroll-behavior: smooth` cannot turn a\n * positioning jump into an animation.\n */\n scrollTo(top: number): void {\n const element = this.container();\n if (element) {\n element.scrollTop = top;\n }\n }\n\n /**\n * Take the offset this navigation is going to restore, and cancel the restore.\n *\n * For a host that renders its own scroll position — a virtualizer needs the\n * offset BEFORE it decides which rows to build, so letting the service assign\n * `scrollTop` afterwards would scroll a list that has not been built yet.\n * Returns null when nothing is pending, which is every navigation that is not a\n * back.\n */\n consumePendingOffset(): number | null {\n const offset = this.pendingOffset;\n if (offset === null) {\n return null;\n }\n this.finishRestore();\n\n return offset;\n }\n\n /**\n * Optional accelerator: tell the layout the content for this route is in the\n * DOM. Without it the restore still lands — it waits for the container to grow\n * and clamps at the deadline — but a host that knows when its data arrived can\n * end the wait early instead of paying the growth watch.\n */\n contentReady(): void {\n if (this.pendingOffset !== null) {\n this.applyClamped(this.pendingOffset);\n this.finishRestore();\n }\n }\n\n private onNavigationStart(event: NavigationStart): void {\n const wasFirst = this.firstNavigation;\n this.firstNavigation = false;\n if (this.restoreTimeoutMs === null) {\n return;\n }\n // Save where we are LEAVING from, while the old content is still mounted.\n this.remember(pathOf(this.router.url), this.container()?.scrollTop ?? 0);\n\n // Armed by a history traversal (back, forward, the mouse side button, Alt+←,\n // an edge swipe — all arrive as popstate), by a host that pushes instead of\n // traversing and says so, or by the first navigation of a reload, where the\n // reader expects the page they left.\n const explicit =\n this.router.currentNavigation()?.extras.state?.['dsRestoreScroll'] ===\n true;\n const offset = this.recall(pathOf(event.url));\n this.armed =\n offset !== null &&\n (event.navigationTrigger === 'popstate' || explicit || wasFirst);\n this.pendingOffset = this.armed ? offset : null;\n }\n\n private onNavigationEnd(): void {\n // 'always' resets on navigations `pathChanged` deliberately ignores — a query\n // or fragment step on the same screen. Guarded by `armed` for the same reason\n // the path reset is: a restore about to run must not be undone first.\n if (this.resetStrategy === 'always' && !this.armed) {\n this.scrollToTop();\n }\n if (!this.armed || this.pendingOffset === null) {\n this.armed = false;\n\n return;\n }\n this.armed = false;\n this.beginRestore(this.pendingOffset);\n }\n\n private beginRestore(target: number): void {\n this.finishRestore(/* keepPending */ true);\n const element = this.container();\n if (!element) {\n this.pendingOffset = null;\n\n return;\n }\n\n const deadline = window.setTimeout(() => {\n // Out of patience: land as close as the content allows rather than not at\n // all. A list that loaded 8 of 40 rows still returns near the reader's row.\n this.applyClamped(target);\n this.finishRestore();\n }, this.restoreTimeoutMs ?? 0);\n\n const settle = (): void => {\n if (element.scrollHeight - element.clientHeight >= target) {\n this.scrollTo(target);\n this.finishRestore();\n }\n };\n\n // The CONTAINER's own box does not change as content arrives — its child's\n // does, which is what makes scrollHeight grow. No fixed frame count: native\n // timing differs between engines, so watch for the growth instead of guessing\n // how many frames it takes.\n const growth = new ResizeObserver(settle);\n growth.observe(element.firstElementChild ?? element);\n\n const cancel = (): void => this.finishRestore();\n for (const type of CANCEL_EVENTS) {\n element.addEventListener(type, cancel, { passive: true });\n }\n // A bfcache restore brings its own scroll position back; fighting it would\n // move the page under a reader who never asked.\n const onPageShow = (event: PageTransitionEvent): void => {\n if (event.persisted) {\n this.finishRestore();\n }\n };\n window.addEventListener('pageshow', onPageShow);\n\n this.endRestore = () => {\n growth.disconnect();\n clearTimeout(deadline);\n for (const type of CANCEL_EVENTS) {\n element.removeEventListener(type, cancel);\n }\n window.removeEventListener('pageshow', onPageShow);\n };\n\n // The content may already be tall enough — a cached list renders synchronously.\n settle();\n }\n\n private applyClamped(target: number): void {\n const element = this.container();\n if (!element) {\n return;\n }\n this.scrollTo(\n Math.min(target, element.scrollHeight - element.clientHeight),\n );\n }\n\n private finishRestore(keepPending = false): void {\n this.endRestore?.();\n this.endRestore = null;\n if (!keepPending) {\n this.pendingOffset = null;\n }\n }\n\n // sessionStorage, not local: a remembered scroll position is worthless in a\n // tab that outlives the visit. Every access is guarded — Safari's private mode\n // throws on write, and a quota error must not take the navigation down with it.\n private read(): Record<string, number> {\n try {\n const raw = sessionStorage.getItem(STORAGE_KEY);\n\n return raw ? (JSON.parse(raw) as Record<string, number>) : {};\n } catch {\n return {};\n }\n }\n\n private remember(path: string, offset: number): void {\n const entries = this.read();\n // Re-insert so the key moves to the end: JSON object order is insertion\n // order, which is what makes the oldest entry droppable below.\n delete entries[path];\n entries[path] = Math.round(offset);\n const keys = Object.keys(entries);\n for (const stale of keys.slice(0, Math.max(0, keys.length - MAX_ENTRIES))) {\n delete entries[stale];\n }\n try {\n sessionStorage.setItem(STORAGE_KEY, JSON.stringify(entries));\n } catch {\n // Full or blocked: a lost scroll position is not worth an error.\n }\n }\n\n private recall(path: string): number | null {\n const offset = this.read()[path];\n\n return typeof offset === 'number' && offset > 0 ? offset : null;\n }\n}\n","import { A11yModule } from '@angular/cdk/a11y';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n isDevMode,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { ScrollbarWidthService } from './scrollbar-width.service';\nimport { AppLayoutNavigationService } from './layout-navigation.service';\nimport {\n AppLayoutScrollService,\n type DsAppLayoutScrollReset,\n} from './layout-scroll.service';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\n\n/**\n * Fixed-frame application layout: the host is pinned to the viewport\n * (`100dvh` + `overflow: hidden`) and ONLY the content region scrolls, so\n * the sidenav rail and the topbar stay put on pages taller than the\n * viewport. Consumers project their own chrome into the slots:\n *\n * ```html\n * <ds-app-layout>\n * <ds-sidenav sidenav>…</ds-sidenav>\n * <ds-topbar topbar>…</ds-topbar>\n * <router-outlet />\n * </ds-app-layout>\n * ```\n *\n * The layout renders the `<main>` landmark itself — do not nest another\n * `<main>` in the content. Scroll-to-top is built in (`AppLayoutScrollService`)\n * and fires when navigation changes the PATH, so a URL-driven list can page\n * and filter without losing the reader's place; inject the service and call\n * `scrollToTop()` for the changes that do want the top. The content padding\n * auto-compensates the native scrollbar width so the right inset always\n * equals the left one. The layout requires the application router\n * (`provideRouter`) because its scroll-to-top service subscribes to\n * navigation events.\n *\n * Below the `lg` breakpoint the rail becomes a modal overlay driven by\n * `[(railOpen)]`; put the burger wherever the design wants it inside your own\n * projected topbar.\n */\n@Component({\n selector: 'ds-app-layout',\n standalone: true,\n imports: [A11yModule],\n templateUrl: './app-layout.component.html',\n styleUrl: './app-layout.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.app-layout]': 'true',\n '[class.topbar-full]': \"topbarSpan() === 'full'\",\n '[class.rail-open]': 'railOpen()',\n '(document:keydown.escape)': 'closeRail()',\n },\n providers: [AppLayoutScrollService],\n})\nexport class AppLayoutComponent {\n /**\n * `'content'` (default): the rail spans the full viewport height on the\n * left and the topbar sits above the content column only. `'full'`: the\n * topbar spans the full width and the rail + content sit below it.\n */\n readonly topbarSpan = input<'content' | 'full'>('content');\n\n /**\n * Whether the rail is open as an overlay. Only meaningful below the `lg`\n * breakpoint — above it the rail is always in the layout and this is\n * ignored. Two-way, so a burger in your topbar can drive it.\n */\n readonly railOpen = model(false);\n\n /** Accessible name for the rail while it is a modal overlay. Unset falls back to\n * `DS_INTL.appLayout.railLabel`. */\n readonly railLabel = input<string | null>(null);\n private readonly intl = inject(DS_INTL);\n protected readonly railLabelResolved = computed(\n () => this.railLabel() ?? this.intl().appLayout.railLabel,\n );\n\n /**\n * Remember the content scroll per path and restore it on the way BACK. Off by\n * default: a layout that silently moved the scroll would surprise every existing\n * consumer. Only a history traversal restores — following a link into a screen\n * still lands at the top — plus a host that pushes its own \"back to list\" and\n * says so with `state: { dsRestoreScroll: true }`, and the first navigation after\n * a reload.\n */\n readonly restoreScroll = input(false, { transform: booleanAttribute });\n\n /**\n * How long to wait for the restored screen's content to grow tall enough before\n * landing as close as it allows. Only meaningful with `restoreScroll`.\n */\n readonly restoreScrollTimeout = input(2000);\n\n /**\n * When the content scroll resets to the top. `'path'` (default) is what the\n * layout has always done; `'always'` also resets on a query- or fragment-only\n * navigation, which is what a server-paged list wants; `'never'` hands the\n * decision to the screen, which can still call `AppLayoutScrollService.scrollToTop()`.\n *\n * It exists because the layout owning the scroll CONTAINER also meant it owned\n * the POLICY: a screen could add a reset but had no way to suppress one.\n */\n readonly scrollReset = input<DsAppLayoutScrollReset>('path');\n\n /**\n * True only while the rail is an overlay. Gates the dialog semantics: above\n * the breakpoint the rail is an ordinary region, and a permanent\n * `role=\"dialog\"` there would lie to a screen reader.\n */\n protected readonly compact = signal(false);\n\n /** Whether the rail is currently an overlay rather than part of the layout. */\n readonly railOverlay = this.compact.asReadonly();\n\n /** Id of the rail panel, for a trigger's `aria-controls`. */\n readonly railId = nextControlId('ds-rail');\n\n private readonly layoutScroll = inject(AppLayoutScrollService);\n private readonly navigation = inject(AppLayoutNavigationService);\n private readonly destroyRef = inject(DestroyRef);\n private readonly content =\n viewChild.required<ElementRef<HTMLElement>>('content');\n\n constructor() {\n // Root service: instantiating it publishes --ds-scrollbar-width.\n inject(ScrollbarWidthService);\n\n effect(() => {\n this.layoutScroll.configureRestore(\n this.restoreScroll() ? this.restoreScrollTimeout() : null,\n );\n this.layoutScroll.configureReset(this.scrollReset());\n });\n\n afterNextRender(() => {\n this.layoutScroll.setScrollContainer(this.content().nativeElement);\n this.watchDesktopBreakpoint();\n });\n\n // Not closeRail(): navigating is not a dismissal. The reader activated a link,\n // so focus belongs wherever the router put it - handing it back to the burger\n // would announce \"Open navigation\" instead of the page they asked for.\n this.navigation.pathChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.railOpen.set(false));\n }\n\n /** Dismissal: Escape or the scrim. Restores focus, which navigation must not. */\n protected closeRail(): void {\n if (!this.railOpen()) {\n return;\n }\n this.railOpen.set(false);\n if (!this.compact()) {\n return;\n }\n // cdkTrapFocusAutoCapture returns focus only when the directive is DESTROYED, not when it flips\n // off, so without this the caret stays inside the now off-canvas panel. Whatever control claims\n // the rail through aria-controls owns it — dsRailTrigger and the DS-button forwarding both set it.\n this.content()\n .nativeElement.ownerDocument.querySelector<HTMLElement>(\n `[aria-controls=\"${this.railId}\"]`,\n )\n ?.focus();\n }\n\n private watchDesktopBreakpoint(): void {\n // Single source of truth: the stylesheet's media block and this query both\n // resolve to `--bp-lg`. There is deliberately NO literal fallback — one here\n // could disagree with the scale and the rail would flip at a different width\n // than the CSS, silently. A missing value means the DS global styles were\n // never included, which breaks far more than this component, so say so.\n const lg = getComputedStyle(document.documentElement)\n .getPropertyValue('--bp-lg')\n .trim();\n if (!lg) {\n if (isDevMode()) {\n console.error(\n '[ds-app-layout] --bp-lg is not defined, so the responsive rail cannot know its breakpoint and stays in desktop layout. Include the DS global styles (@use \"…/styles/ds\") — or, à la carte, the partial that emits the breakpoint vars.',\n );\n }\n\n return;\n }\n const desktop = window.matchMedia(`(width >= ${lg})`);\n const sync = (): void => {\n this.compact.set(!desktop.matches);\n // Crossing UP drops the overlay state: leaving it set would re-open the\n // rail unprompted the next time the viewport narrows. Set the model\n // directly rather than calling closeRail(), whose focus restore has no\n // business firing here - the trigger it would focus is hidden on desktop.\n if (desktop.matches) {\n this.railOpen.set(false);\n }\n };\n sync();\n desktop.addEventListener('change', sync);\n this.destroyRef.onDestroy(() =>\n desktop.removeEventListener('change', sync),\n );\n }\n}\n","<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\">\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabelResolved() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\">\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\">\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n","import { Directive, inject } from '@angular/core';\nimport { AppLayoutComponent } from './app-layout.component';\n\n/**\n * Wires a consumer's own burger to the layout's overlay rail: toggles\n * `[(railOpen)]` on click and keeps `aria-expanded` / `aria-controls` in sync, so\n * the trigger and the panel are related for a screen reader.\n *\n * ```html\n * <ds-app-layout>\n * <ds-topbar topbar>\n * <button dsRailTrigger type=\"button\" aria-label=\"Navigation\">☰</button>\n * </ds-topbar>\n * </ds-app-layout>\n * ```\n *\n * PUT IT ON THE FOCUSABLE CONTROL, not on a wrapper: the attributes go on the\n * host element, and on `<ds-icon-button>` that is the wrapper, whose inner\n * `<button>` is what a screen reader actually reads. With a DS button, skip this\n * directive and bind its forwarding inputs instead —\n * `[ariaExpanded]=\"layout.railOverlay() ? layout.railOpen() : null\"` and\n * `[ariaControls]=\"layout.railId\"` off a `<ds-app-layout #layout>` template ref.\n *\n * Both attributes are dropped while the rail is NOT an overlay: above the\n * breakpoint the rail is permanently in the layout, so `aria-expanded=\"false\"`\n * would state the opposite of what the user sees.\n *\n * Must sit inside a `ds-app-layout` — the injector walks the declaration tree, so\n * anywhere in the projected chrome works. Outside one, DI fails naming\n * `AppLayoutComponent`, which says what is missing.\n */\n@Directive({\n selector: '[dsRailTrigger]',\n standalone: true,\n host: {\n '[attr.aria-expanded]': 'layout.railOverlay() ? layout.railOpen() : null',\n '[attr.aria-controls]': 'layout.railOverlay() ? layout.railId : null',\n '(click)': 'toggle()',\n },\n})\nexport class RailTriggerDirective {\n protected readonly layout = inject(AppLayoutComponent);\n\n protected toggle(): void {\n this.layout.railOpen.update((open) => !open);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["filter"],"mappings":";;;;;;;;;;;;AAKA;;;;;;;;AAQG;MAEU,qBAAqB,CAAA;AACf,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAY;IAE3C,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,4EAAC;AAE5C,IAAA,WAAA,GAAA;AACE,QAAA,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QAErC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;AAE7B,QAAA,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ;aAC5B,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC;aACtD,SAAS,CAAC,MAAK;AACd,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE;AACjC,YAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC;AACrB,YAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;AACxB,QAAA,CAAC,CAAC;IACN;IAEQ,YAAY,GAAA;QAClB,MAAM,KAAK,GAAG,IAAI,CA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BAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,UAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,iDAAA,EAAA,oBAAA,EAAA,6CAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAThC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,sBAAsB,EAAE,iDAAiD;AACzE,wBAAA,sBAAsB,EAAE,6CAA6C;AACrE,wBAAA,SAAS,EAAE,UAAU;AACtB,qBAAA;AACF,iBAAA;;;ACvCD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-app-layout.mjs","sources":["../../../src/lib/components/app-layout/scrollbar-width.service.ts","../../../src/lib/components/app-layout/layout-navigation.service.ts","../../../src/lib/components/app-layout/layout-scroll.service.ts","../../../src/lib/components/app-layout/app-layout.component.ts","../../../src/lib/components/app-layout/app-layout.component.html","../../../src/lib/components/app-layout/rail-trigger.directive.ts","../../../src/lib/components/app-layout/ids-group-ltd-ids-design-system-components-app-layout.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { DestroyRef, inject, Injectable, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { debounceTime, fromEvent } from 'rxjs';\n\n/**\n * Measures the native scrollbar width per device and publishes it as\n * `--ds-scrollbar-width` on `:root` (recomputed on debounced resize; 0 with\n * overlay scrollbars). `ds-app-layout` subtracts it from the content region's\n * right padding. Internal, instantiated by `ds-app-layout`.\n */\n@Injectable({ providedIn: 'root' })\nexport class ScrollbarWidthService {\n private readonly document = inject(DOCUMENT);\n private readonly window = this.document.defaultView!;\n\n readonly width = signal(this.measureWidth());\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n this.applyToCss(this.width());\n\n fromEvent(this.window, 'resize')\n .pipe(debounceTime(200), takeUntilDestroyed(destroyRef))\n .subscribe(() => {\n const value = this.measureWidth();\n this.width.set(value);\n this.applyToCss(value);\n });\n }\n\n private measureWidth(): number {\n const probe = this.document.createElement('div');\n probe.style.cssText =\n 'overflow:scroll;width:100px;height:100px;position:absolute;top:-9999px';\n this.document.body.appendChild(probe);\n\n const inner = this.document.createElement('div');\n inner.style.cssText = 'width:100%;height:1px';\n probe.appendChild(inner);\n\n const width =\n probe.getBoundingClientRect().width - inner.getBoundingClientRect().width;\n\n probe.remove();\n\n return width;\n }\n\n private applyToCss(value: number): void {\n this.document.documentElement.style.setProperty(\n '--ds-scrollbar-width',\n `${value}px`,\n );\n }\n}\n","import { Injectable, inject } from '@angular/core';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { distinctUntilChanged, filter, map, type Observable } from 'rxjs';\n\n/**\n * Emits the new path whenever navigation lands on a DIFFERENT one; query- or\n * fragment-only navigations are ignored. Read `pathChanged` instead of\n * re-deriving the path change:\n *\n * ```ts\n * private readonly navigation = inject(AppLayoutNavigationService);\n * constructor() {\n * this.navigation.pathChanged\n * .pipe(takeUntilDestroyed())\n * .subscribe((path) => …);\n * }\n * ```\n *\n * A navigation that changes the path while staying on the same screen (a scroll\n * spy rewriting the URL, a wizard step) must carry `state: { dsSamePage: true }`,\n * which is skipped here; otherwise the scroll reset and the spy ping-pong.\n *\n * `AppLayoutScrollService` depends on it, so a consumer providing THAT\n * outside `ds-app-layout` needs this one resolvable too.\n */\n@Injectable({ providedIn: 'root' })\nexport class AppLayoutNavigationService {\n private readonly router = inject(Router);\n\n readonly pathChanged: Observable<string> = this.router.events.pipe(\n filter((event): event is NavigationEnd => event instanceof NavigationEnd),\n filter(() => !this.samePage()),\n map((event) => event.urlAfterRedirects.split(/[?#]/)[0]),\n distinctUntilChanged(),\n );\n\n // `lastSuccessfulNavigation`, not `getCurrentNavigation()`: the latter is\n // already cleared by the time NavigationEnd reaches a subscriber.\n private samePage(): boolean {\n const state = this.router.lastSuccessfulNavigation()?.extras.state;\n\n return state?.['dsSamePage'] === true;\n }\n}\n","import {\n DestroyRef,\n Injectable,\n type Signal,\n inject,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, NavigationStart, Router } from '@angular/router';\nimport { filter } from 'rxjs/operators';\nimport { AppLayoutNavigationService } from './layout-navigation.service';\n\nconst STORAGE_KEY = 'ds-app-layout:scroll';\n\nconst MAX_ENTRIES = 20;\n\n// NOT `scroll`: our own restore emits one and would cancel itself.\nconst CANCEL_EVENTS = ['wheel', 'touchstart', 'keydown'] as const;\n\nconst pathOf = (url: string): string => url.split(/[?#]/)[0];\n\n/**\n * When the layout resets the content scroll to the top.\n *\n * `'path'` (default): only when navigation lands on a different PATH.\n * `'always'` resets on every navigation. `'never'` leaves it to the screen,\n * which can call `AppLayoutScrollService.scrollToTop()`.\n */\nexport type DsAppLayoutScrollReset = 'path' | 'never' | 'always';\n\n/**\n * Owns the layout's content scroller. The window never scrolls in the\n * fixed-frame layout, so the router's window-based scrolling no-ops; this\n * service resets the registered container when navigation lands on a different\n * PATH. Provided by `ds-app-layout`; routed pages can inject it and call\n * `scrollToTop()`.\n *\n * With `restoreScroll` on the layout it also restores the reader's place, but\n * only when armed: going BACK restores, following a link does not.\n */\n@Injectable()\nexport class AppLayoutScrollService {\n private readonly navigation = inject(AppLayoutNavigationService);\n private readonly router = inject(Router);\n private readonly destroyRef = inject(DestroyRef);\n private readonly container = signal<Element | null>(null);\n\n /** The content scroller, once the layout has rendered it. */\n readonly scroller: Signal<Element | null> = this.container.asReadonly();\n\n // null = restoration off.\n private restoreTimeoutMs: number | null = null;\n private resetStrategy: DsAppLayoutScrollReset = 'path';\n private armed = false;\n private pendingOffset: number | null = null;\n private endRestore: (() => void) | null = null;\n private firstNavigation = true;\n\n constructor() {\n this.navigation.pathChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n // Skipped while a restore is armed: the reset would undo the offset about to be applied.\n .subscribe(() => {\n if (this.resetStrategy === 'path' && !this.armed) {\n this.scrollToTop();\n }\n });\n\n this.router.events\n .pipe(\n filter(\n (event): event is NavigationStart => event instanceof NavigationStart,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe((event) => this.onNavigationStart(event));\n\n this.router.events\n .pipe(\n filter(\n (event): event is NavigationEnd => event instanceof NavigationEnd,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => this.onNavigationEnd());\n\n this.destroyRef.onDestroy(() => this.finishRestore());\n }\n\n /** Wiring for `ds-app-layout`; not for consumers. */\n setScrollContainer(element: Element): void {\n this.container.set(element);\n }\n\n /** Wiring: `ds-app-layout` mirrors its `restoreScroll` inputs through here. */\n configureRestore(timeoutMs: number | null): void {\n this.restoreTimeoutMs = timeoutMs;\n }\n\n /** Wiring: `ds-app-layout` mirrors its `scrollReset` input through here. */\n configureReset(strategy: DsAppLayoutScrollReset): void {\n this.resetStrategy = strategy;\n }\n\n scrollToTop(): void {\n this.scrollTo(0);\n }\n\n /** Scrolls the content region to an absolute offset. Assigns `scrollTop`, so `scroll-behavior: smooth` cannot animate it. */\n scrollTo(top: number): void {\n const element = this.container();\n if (element) {\n element.scrollTop = top;\n }\n }\n\n /**\n * Takes the offset this navigation is going to restore, and cancels the restore.\n * For a host that must know the offset BEFORE it builds rows (a virtualizer).\n * Returns null when nothing is pending.\n */\n consumePendingOffset(): number | null {\n const offset = this.pendingOffset;\n if (offset === null) {\n return null;\n }\n this.finishRestore();\n\n return offset;\n }\n\n /** Optional: tells the layout the route's content is in the DOM, ending the restore wait early. */\n contentReady(): void {\n if (this.pendingOffset !== null) {\n this.applyClamped(this.pendingOffset);\n this.finishRestore();\n }\n }\n\n private onNavigationStart(event: NavigationStart): void {\n const wasFirst = this.firstNavigation;\n this.firstNavigation = false;\n if (this.restoreTimeoutMs === null) {\n return;\n }\n this.remember(pathOf(this.router.url), this.container()?.scrollTop ?? 0);\n\n const explicit =\n this.router.currentNavigation()?.extras.state?.['dsRestoreScroll'] ===\n true;\n const offset = this.recall(pathOf(event.url));\n this.armed =\n offset !== null &&\n (event.navigationTrigger === 'popstate' || explicit || wasFirst);\n this.pendingOffset = this.armed ? offset : null;\n }\n\n private onNavigationEnd(): void {\n // `pathChanged` ignores query/fragment-only navigations, which 'always' still resets.\n if (this.resetStrategy === 'always' && !this.armed) {\n this.scrollToTop();\n }\n if (!this.armed || this.pendingOffset === null) {\n this.armed = false;\n\n return;\n }\n this.armed = false;\n this.beginRestore(this.pendingOffset);\n }\n\n private beginRestore(target: number): void {\n this.finishRestore(/* keepPending */ true);\n const element = this.container();\n if (!element) {\n this.pendingOffset = null;\n\n return;\n }\n\n const deadline = window.setTimeout(() => {\n this.applyClamped(target);\n this.finishRestore();\n }, this.restoreTimeoutMs ?? 0);\n\n const settle = (): void => {\n if (element.scrollHeight - element.clientHeight >= target) {\n this.scrollTo(target);\n this.finishRestore();\n }\n };\n\n // Observe the child: the container's own box does not change as content arrives.\n const growth = new ResizeObserver(settle);\n growth.observe(element.firstElementChild ?? element);\n\n const cancel = (): void => this.finishRestore();\n for (const type of CANCEL_EVENTS) {\n element.addEventListener(type, cancel, { passive: true });\n }\n // A bfcache restore brings its own scroll position back.\n const onPageShow = (event: PageTransitionEvent): void => {\n if (event.persisted) {\n this.finishRestore();\n }\n };\n window.addEventListener('pageshow', onPageShow);\n\n this.endRestore = () => {\n growth.disconnect();\n clearTimeout(deadline);\n for (const type of CANCEL_EVENTS) {\n element.removeEventListener(type, cancel);\n }\n window.removeEventListener('pageshow', onPageShow);\n };\n\n settle();\n }\n\n private applyClamped(target: number): void {\n const element = this.container();\n if (!element) {\n return;\n }\n this.scrollTo(\n Math.min(target, element.scrollHeight - element.clientHeight),\n );\n }\n\n private finishRestore(keepPending = false): void {\n this.endRestore?.();\n this.endRestore = null;\n if (!keepPending) {\n this.pendingOffset = null;\n }\n }\n\n // Guarded: Safari private mode throws on write, and that must not break navigation.\n private read(): Record<string, number> {\n try {\n const raw = sessionStorage.getItem(STORAGE_KEY);\n\n return raw ? (JSON.parse(raw) as Record<string, number>) : {};\n } catch {\n return {};\n }\n }\n\n private remember(path: string, offset: number): void {\n const entries = this.read();\n // Re-insert so the key moves to the end and the oldest is dropped below.\n delete entries[path];\n entries[path] = Math.round(offset);\n const keys = Object.keys(entries);\n for (const stale of keys.slice(0, Math.max(0, keys.length - MAX_ENTRIES))) {\n delete entries[stale];\n }\n try {\n sessionStorage.setItem(STORAGE_KEY, JSON.stringify(entries));\n } catch {\n // Full or blocked: losing the position is acceptable.\n }\n }\n\n private recall(path: string): number | null {\n const offset = this.read()[path];\n\n return typeof offset === 'number' && offset > 0 ? offset : null;\n }\n}\n","import { A11yModule } from '@angular/cdk/a11y';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n isDevMode,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { ScrollbarWidthService } from './scrollbar-width.service';\nimport { AppLayoutNavigationService } from './layout-navigation.service';\nimport {\n AppLayoutScrollService,\n type DsAppLayoutScrollReset,\n} from './layout-scroll.service';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\n\n/**\n * Fixed-frame application layout: the host is pinned to the viewport and ONLY\n * the content region scrolls, so the sidenav rail and topbar stay put.\n * Consumers project their own chrome into the slots:\n *\n * ```html\n * <ds-app-layout>\n * <ds-sidenav sidenav>…</ds-sidenav>\n * <ds-topbar topbar>…</ds-topbar>\n * <router-outlet />\n * </ds-app-layout>\n * ```\n *\n * The layout renders the `<main>` landmark itself, so do not nest another\n * `<main>` in the content. Scroll-to-top is built in (`AppLayoutScrollService`)\n * and fires when navigation changes the PATH; call `scrollToTop()` for other\n * changes that want the top. The content padding compensates the native\n * scrollbar width so the right inset equals the left. Requires the application\n * router (`provideRouter`).\n *\n * Below the `lg` breakpoint the rail becomes a modal overlay driven by\n * `[(railOpen)]`; put the burger wherever the design wants it inside your own\n * projected topbar.\n */\n@Component({\n selector: 'ds-app-layout',\n standalone: true,\n imports: [A11yModule],\n templateUrl: './app-layout.component.html',\n styleUrl: './app-layout.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.app-layout]': 'true',\n '[class.topbar-full]': \"topbarSpan() === 'full'\",\n '[class.rail-open]': 'railOpen()',\n '(document:keydown.escape)': 'closeRail()',\n },\n providers: [AppLayoutScrollService],\n})\nexport class AppLayoutComponent {\n /** `'content'` (default): rail spans the full height, topbar sits above the content only. `'full'`: topbar spans the full width. */\n readonly topbarSpan = input<'content' | 'full'>('content');\n\n /** Whether the rail is open as an overlay. Ignored at and above the `lg` breakpoint. */\n readonly railOpen = model(false);\n\n /** Accessible name for the rail while it is a modal overlay. Unset falls back to\n * `DS_INTL.appLayout.railLabel`. */\n readonly railLabel = input<string | null>(null);\n private readonly intl = inject(DS_INTL);\n protected readonly railLabelResolved = computed(\n () => this.railLabel() ?? this.intl().appLayout.railLabel,\n );\n\n /**\n * Remember the content scroll per path and restore it on the way BACK. Off by\n * default. Restores on a history traversal, on `state: { dsRestoreScroll: true }`,\n * and on the first navigation after a reload.\n */\n readonly restoreScroll = input(false, { transform: booleanAttribute });\n\n /** Milliseconds to wait for the restored content to grow tall enough. Only with `restoreScroll`. */\n readonly restoreScrollTimeout = input(2000);\n\n /** When the content scroll resets to the top: on path change (`'path'`), also on query/fragment-only navigation (`'always'`), or never (`'never'`). */\n readonly scrollReset = input<DsAppLayoutScrollReset>('path');\n\n /** True only while the rail is an overlay; gates the dialog semantics. */\n protected readonly compact = signal(false);\n\n /** Whether the rail is currently an overlay rather than part of the layout. */\n readonly railOverlay = this.compact.asReadonly();\n\n /** Id of the rail panel, for a trigger's `aria-controls`. */\n readonly railId = nextControlId('ds-rail');\n\n private readonly layoutScroll = inject(AppLayoutScrollService);\n private readonly navigation = inject(AppLayoutNavigationService);\n private readonly destroyRef = inject(DestroyRef);\n private readonly content =\n viewChild.required<ElementRef<HTMLElement>>('content');\n\n constructor() {\n // Root service: instantiating it publishes --ds-scrollbar-width.\n inject(ScrollbarWidthService);\n\n effect(() => {\n this.layoutScroll.configureRestore(\n this.restoreScroll() ? this.restoreScrollTimeout() : null,\n );\n this.layoutScroll.configureReset(this.scrollReset());\n });\n\n afterNextRender(() => {\n this.layoutScroll.setScrollContainer(this.content().nativeElement);\n this.watchDesktopBreakpoint();\n });\n\n // Not closeRail(): returning focus to the burger would override where the router put it.\n this.navigation.pathChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.railOpen.set(false));\n }\n\n /** Dismissal: Escape or the scrim. Restores focus, which navigation must not. */\n protected closeRail(): void {\n if (!this.railOpen()) {\n return;\n }\n this.railOpen.set(false);\n if (!this.compact()) {\n return;\n }\n // cdkTrapFocusAutoCapture returns focus only on destroy, so focus would stay in the off-canvas panel.\n this.content()\n .nativeElement.ownerDocument.querySelector<HTMLElement>(\n `[aria-controls=\"${this.railId}\"]`,\n )\n ?.focus();\n }\n\n private watchDesktopBreakpoint(): void {\n // Same `--bp-lg` as the stylesheet; a literal fallback could flip the rail at a different width than the CSS.\n const lg = getComputedStyle(document.documentElement)\n .getPropertyValue('--bp-lg')\n .trim();\n if (!lg) {\n if (isDevMode()) {\n console.error(\n '[ds-app-layout] --bp-lg is not defined, so the responsive rail cannot know its breakpoint and stays in desktop layout. Include the DS global styles (@use \"…/styles/ds\") — or, à la carte, the partial that emits the breakpoint vars.',\n );\n }\n\n return;\n }\n const desktop = window.matchMedia(`(width >= ${lg})`);\n const sync = (): void => {\n this.compact.set(!desktop.matches);\n // Not closeRail(): its focus restore targets a trigger hidden on desktop.\n if (desktop.matches) {\n this.railOpen.set(false);\n }\n };\n sync();\n desktop.addEventListener('change', sync);\n this.destroyRef.onDestroy(() =>\n desktop.removeEventListener('change', sync),\n );\n }\n}\n","<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\">\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabelResolved() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\">\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\">\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n","import { Directive, inject } from '@angular/core';\nimport { AppLayoutComponent } from './app-layout.component';\n\n/**\n * Wires a consumer's own burger to the layout's overlay rail: toggles\n * `[(railOpen)]` on click and keeps `aria-expanded` / `aria-controls` in sync, so\n * the trigger and the panel are related for a screen reader.\n *\n * ```html\n * <ds-app-layout>\n * <ds-topbar topbar>\n * <button dsRailTrigger type=\"button\" aria-label=\"Navigation\">☰</button>\n * </ds-topbar>\n * </ds-app-layout>\n * ```\n *\n * PUT IT ON THE FOCUSABLE CONTROL, not on a wrapper: on `<ds-icon-button>` the\n * host is the wrapper, not the inner `<button>`. With a DS button, skip this\n * directive and bind its forwarding inputs instead:\n * `[ariaExpanded]=\"layout.railOverlay() ? layout.railOpen() : null\"` and\n * `[ariaControls]=\"layout.railId\"` off a `<ds-app-layout #layout>` template ref.\n *\n * Both attributes are dropped while the rail is NOT an overlay, since\n * `aria-expanded=\"false\"` would misstate a permanently visible rail.\n *\n * Must sit inside a `ds-app-layout`.\n */\n@Directive({\n selector: '[dsRailTrigger]',\n standalone: true,\n host: {\n '[attr.aria-expanded]': 'layout.railOverlay() ? layout.railOpen() : null',\n '[attr.aria-controls]': 'layout.railOverlay() ? layout.railId : null',\n '(click)': 'toggle()',\n },\n})\nexport class RailTriggerDirective {\n protected readonly layout = inject(AppLayoutComponent);\n\n protected toggle(): void {\n this.layout.railOpen.update((open) => !open);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["filter"],"mappings":";;;;;;;;;;;;AAKA;;;;;AAKG;MAEU,qBAAqB,CAAA;AACf,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAY;IAE3C,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,4EAAC;AAE5C,IAAA,WAAA,GAAA;AACE,QAAA,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QAErC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;AAE7B,QAAA,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ;aAC5B,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC;aACtD,SAAS,CAAC,MAAK;AACd,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE;AACjC,YAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC;AACrB,YAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;AACxB,QAAA,CAAC,CAAC;IACN;IAEQ,YAAY,GAAA;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CA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