@ids-group-ltd/ids-design-system 0.11.3 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +253 -13
- package/components/README.md +86 -0
- package/components.md +12 -4
- package/docs/agent/INDEX.md +1 -0
- package/docs/agent/platform/body-scroll-lock-service.md +12 -0
- package/docs/agent/platform/toast-service.md +4 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +70 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +573 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +86 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +615 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +30 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +188 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +59 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +92 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +204 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +100 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +23 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +180 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +78 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +49 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +73 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +397 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +1231 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +51 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +35 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +109 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +111 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +52 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +92 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +62 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +164 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +223 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +63 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +53 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +43 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +286 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +329 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +612 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +69 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +191 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +23 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +43 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +85 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +95 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +240 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +41 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +235 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +62 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +173 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +123 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +461 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +107 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +185 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +32 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +204 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +25 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +53 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +99 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +26 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +74 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +76 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +1802 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +381 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +44 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +158 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +671 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +41 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +547 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +34 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +218 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +18 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +153 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +48 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +1338 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +325 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +101 -0
- package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +56 -0
- package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +37 -0
- package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +72 -14030
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.11.0.json +0 -2
- package/migrations/0.11.1.json +2 -1
- package/migrations/0.11.2.json +2 -1
- package/migrations/0.11.3.json +3 -2
- package/migrations/0.11.4.json +247 -0
- package/migrations/0.12.0.json +22 -0
- package/migrations/0.4.0.json +2 -1
- package/migrations/0.7.1.json +2 -1
- package/migrations/0.8.0.json +6 -5
- package/package.json +573 -1
- package/styles/_control-label.scss +18 -0
- package/styles/_ds-color.scss +6 -0
- package/styles/_focus.scss +16 -0
- package/styles/_skeleton-shimmer.scss +10 -26
- package/themes/README.md +4 -4
- package/themes/_semantic.scss +11 -2
- package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +48 -0
- package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +260 -0
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +75 -0
- package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +226 -0
- package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +13 -0
- package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +99 -0
- package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +25 -0
- package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +61 -0
- package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +66 -0
- package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +10 -0
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +90 -0
- package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-card.d.ts +24 -0
- package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +41 -0
- package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +79 -0
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +251 -0
- package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +25 -0
- package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +38 -0
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +45 -0
- package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +73 -0
- package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +36 -0
- package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +83 -0
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +56 -0
- package/types/ids-group-ltd-ids-design-system-components-input.d.ts +121 -0
- package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +39 -0
- package/types/ids-group-ltd-ids-design-system-components-list.d.ts +29 -0
- package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +31 -0
- package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +82 -0
- package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +124 -0
- package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +213 -0
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +31 -0
- package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +52 -0
- package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +13 -0
- package/types/ids-group-ltd-ids-design-system-components-page-header.d.ts +21 -0
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +80 -0
- package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +48 -0
- package/types/ids-group-ltd-ids-design-system-components-progress.d.ts +22 -0
- package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +106 -0
- package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +33 -0
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +82 -0
- package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +40 -0
- package/types/ids-group-ltd-ids-design-system-components-select.d.ts +152 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +92 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +131 -0
- package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +16 -0
- package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +51 -0
- package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +11 -0
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +38 -0
- package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +44 -0
- package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +12 -0
- package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +40 -0
- package/types/ids-group-ltd-ids-design-system-components-table.d.ts +791 -0
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +118 -0
- package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +26 -0
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +85 -0
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +188 -0
- package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +24 -0
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +167 -0
- package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +18 -0
- package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +66 -0
- package/types/ids-group-ltd-ids-design-system-components-topbar.d.ts +8 -0
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +46 -0
- package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +18 -0
- package/types/ids-group-ltd-ids-design-system-components.d.ts +604 -0
- package/types/ids-group-ltd-ids-design-system-core.d.ts +428 -0
- package/types/ids-group-ltd-ids-design-system-icons.d.ts +52 -0
- package/types/ids-group-ltd-ids-design-system-overlay.d.ts +32 -0
- package/types/ids-group-ltd-ids-design-system-theme.d.ts +29 -0
- package/types/ids-group-ltd-ids-design-system.d.ts +72 -5544
- package/LICENSE +0 -21
- package/README.md +0 -73
|
@@ -1,32 +1,16 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Reduced-motion opt-out for the skeleton shimmer.
|
|
2
2
|
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
// every other — no per-element animation timers drifting against each other.
|
|
3
|
+
// The travel itself is a per-element animation declared in skeleton.component.scss. Only this rule
|
|
4
|
+
// has to be global: the media query is a document-level preference, and a component stylesheet
|
|
5
|
+
// cannot express "stop wherever a skeleton appears" without one.
|
|
7
6
|
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
syntax: '<length>';
|
|
14
|
-
inherits: true;
|
|
15
|
-
initial-value: 100vw;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:root {
|
|
19
|
-
animation: ds-skeleton-shimmer-loop var(--duration-loop-slow, 1400ms) linear infinite;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@keyframes ds-skeleton-shimmer-loop {
|
|
23
|
-
0% { --skeleton-shimmer-x: 100vw; }
|
|
24
|
-
100% { --skeleton-shimmer-x: -100vw; }
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Honour the user's reduced-motion preference — no shimmer travel.
|
|
7
|
+
// Do NOT drive it from one animated custom property on :root instead, however tempting the
|
|
8
|
+
// phase-lock between skeletons is: a REGISTERED custom property is a computed value, so animating
|
|
9
|
+
// one invalidates the style of every element that could inherit it — the whole document, every
|
|
10
|
+
// frame. And the phase-lock buys no viewport anchoring anyway, because `mask-position` measures
|
|
11
|
+
// from the host's own box.
|
|
28
12
|
@media (prefers-reduced-motion: reduce) {
|
|
29
|
-
|
|
13
|
+
ds-skeleton::after {
|
|
30
14
|
animation: none;
|
|
31
15
|
}
|
|
32
16
|
}
|
package/themes/README.md
CHANGED
|
@@ -4,11 +4,11 @@ Colour is layered in three concerns: a **base palette** (theme-independent primi
|
|
|
4
4
|
|
|
5
5
|
## Architecture: three layers
|
|
6
6
|
|
|
7
|
-
| Layer | Lives in | Examples
|
|
8
|
-
| ----------------------------- | ---------------------------------------------- |
|
|
7
|
+
| Layer | Lives in | Examples | Applied at |
|
|
8
|
+
| ----------------------------- | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
|
|
9
9
|
| **Base palette** (primitives) | `themes/_base-palette.scss` | `--blue-600`, `--cool-gray-*`, `--brand-gray-*`, `--red-h/s/l`, `--static-ink`, fonts, `--shadow-tint-h/s` | `:root` (theme-independent) |
|
|
10
|
-
| **Theme** (role map) | `themes/_semantic.scss` + `themes/<t>/_*.scss` | `--primary`, `--surface-canvas`, `--text-primary`, the `--neutral-*` slot, `--focus-ring`
|
|
11
|
-
| **Component / scale** | `styles/_tokens.scss`, `*.component.scss` | `--space-*`, `--radius-*`, `--ds-button-bg-color`, `--duration-fast`
|
|
10
|
+
| **Theme** (role map) | `themes/_semantic.scss` + `themes/<t>/_*.scss` | `--primary`, `--surface-canvas`, `--text-primary`, the `--neutral-*` slot, `--focus-ring` | `:root` (light) / `:root[data-theme='dark']` |
|
|
11
|
+
| **Component / scale** | `styles/_tokens.scss`, `*.component.scss` | `--space-*`, `--radius-*`, `--ds-button-bg-color`, `--duration-fast` | `:root` (theme-independent) |
|
|
12
12
|
|
|
13
13
|
**Hard rule:** components NEVER consume base-palette primitives directly. `var(--blue-600)` inside `button.component.scss` is a bug — use a Tier-2 role (`--primary`, `--text-secondary`) or a component token.
|
|
14
14
|
|
package/themes/_semantic.scss
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// =========================================================================
|
|
2
1
|
// Shared role structure — Tier 2 semantic role ASSIGNMENTS.
|
|
3
2
|
//
|
|
4
3
|
// Exposes @mixin roles: the role map whose structure is identical across
|
|
@@ -10,7 +9,6 @@
|
|
|
10
9
|
// This mixin is an authoring-DRY device. At runtime, exactly one theme block
|
|
11
10
|
// matches (`:not([data-theme='dark'])` vs `[data-theme='dark']`), and that
|
|
12
11
|
// block declares the complete token set itself (palette + roles + overrides).
|
|
13
|
-
// =========================================================================
|
|
14
12
|
|
|
15
13
|
@mixin roles {
|
|
16
14
|
/* Surfaces — six-stop scale.
|
|
@@ -219,6 +217,17 @@
|
|
|
219
217
|
--focus-ring-outer-l: var(--primary-l);
|
|
220
218
|
--focus-ring-outer-alpha: 1;
|
|
221
219
|
|
|
220
|
+
/* A flat focus colour, for components that draw an `outline` instead of a shadow (a row
|
|
221
|
+
inside a clipping list, a swatch grid). It must stay DEFINED: an `outline-color` that
|
|
222
|
+
falls through resolves to `currentColor`, so a row rings itself in its own text colour.
|
|
223
|
+
|
|
224
|
+
`--accent`, not the ring's own primary channels: outside a zone it IS `--primary`, and
|
|
225
|
+
inside `[ds-color="error"]` it becomes that family, which is the same adaptivity the
|
|
226
|
+
zone already gives the shadow ring through `--accent-focus-ring`. Composing it from
|
|
227
|
+
`--focus-ring-outer-*` would have pinned the outline to the brand hue in a zone whose
|
|
228
|
+
every other accent had moved. */
|
|
229
|
+
--focus-ring-color: var(--accent);
|
|
230
|
+
|
|
222
231
|
--focus-ring:
|
|
223
232
|
0 0 0 2px var(--focus-ring-inner),
|
|
224
233
|
0 0 0 4px hsl(var(--focus-ring-outer-h) var(--focus-ring-outer-s) var(--focus-ring-outer-l) / var(--focus-ring-outer-alpha));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/** Contract that ds-accordion-item reads from its parent ds-accordion. */
|
|
5
|
+
interface AccordionContract {
|
|
6
|
+
readonly multi: () => boolean;
|
|
7
|
+
/** Called when an item opens; coordinator may close other items. */
|
|
8
|
+
notifyOpen(item: AccordionItemRef): void;
|
|
9
|
+
}
|
|
10
|
+
/** Contract ds-accordion reads back from each projected item. */
|
|
11
|
+
interface AccordionItemRef {
|
|
12
|
+
/** Closes this item (sets expanded to false). */
|
|
13
|
+
closeItem(): void;
|
|
14
|
+
}
|
|
15
|
+
declare const ACCORDION: InjectionToken<AccordionContract>;
|
|
16
|
+
|
|
17
|
+
declare class AccordionComponent implements AccordionContract {
|
|
18
|
+
/** When false, opening one item automatically closes all others. */
|
|
19
|
+
readonly multi: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
private readonly items;
|
|
21
|
+
notifyOpen(opened: AccordionItemRef): void;
|
|
22
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AccordionComponent, never>;
|
|
23
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AccordionComponent, "ds-accordion", never, { "multi": { "alias": "multi"; "required": false; "isSignal": true; }; }, {}, ["items"], ["*"], true, never>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare class AccordionItemComponent implements AccordionItemRef {
|
|
27
|
+
/** Header text shown in the toggle button. */
|
|
28
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
29
|
+
/** Open state, two-way bound. */
|
|
30
|
+
readonly expanded: _angular_core.ModelSignal<boolean>;
|
|
31
|
+
/** Disables the toggle button; state stays as-is. */
|
|
32
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
33
|
+
protected readonly uid: string;
|
|
34
|
+
protected readonly headId: string;
|
|
35
|
+
protected readonly bodyId: string;
|
|
36
|
+
private readonly accordion;
|
|
37
|
+
/** Tracks last expanded state so we only notify on a true open transition. */
|
|
38
|
+
private previousExpanded;
|
|
39
|
+
constructor();
|
|
40
|
+
protected toggle(): void;
|
|
41
|
+
/** Called by the accordion coordinator to enforce single-open mode. */
|
|
42
|
+
closeItem(): void;
|
|
43
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AccordionItemComponent, never>;
|
|
44
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AccordionItemComponent, "ds-accordion-item", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["[badge]", "*"], true, never>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { ACCORDION, AccordionComponent, AccordionItemComponent };
|
|
48
|
+
export type { AccordionContract, AccordionItemRef };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
|
|
4
|
+
type AlertVariant = 'info' | 'success' | 'warning' | 'error' | 'neutral';
|
|
5
|
+
|
|
6
|
+
declare class AlertComponent {
|
|
7
|
+
/** Severity — drives colour, the default icon and the ARIA role/live. */
|
|
8
|
+
readonly variant: _angular_core.InputSignal<AlertVariant>;
|
|
9
|
+
/** Optional bold heading above the message. */
|
|
10
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
11
|
+
/** Show a close button that emits `closed`. */
|
|
12
|
+
readonly dismissible: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
/** Override the variant's default icon. */
|
|
14
|
+
readonly icon: _angular_core.InputSignal<IconName | null>;
|
|
15
|
+
/** Fires when the user dismisses the alert. */
|
|
16
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
17
|
+
/** Announce this alert to a screen reader when it appears. Off by default — see
|
|
18
|
+
* `ds-banner`'s `announce` for why, and prefer `ToastService` for anything
|
|
19
|
+
* transient. */
|
|
20
|
+
readonly announce: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
21
|
+
protected get ariaRole(): 'alert' | 'status' | null;
|
|
22
|
+
protected get ariaLive(): 'assertive' | 'polite' | null;
|
|
23
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
24
|
+
protected readonly defaultIcon: _angular_core.Signal<IconName>;
|
|
25
|
+
protected readonly resolvedIcon: _angular_core.Signal<IconName>;
|
|
26
|
+
protected onDismiss(): void;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
28
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AlertComponent, "ds-alert", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "announce": { "alias": "announce"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*", "[actions]"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { AlertComponent };
|
|
32
|
+
export type { AlertVariant };
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* When the layout resets the content scroll to the top.
|
|
7
|
+
*
|
|
8
|
+
* `'path'` (default) is today's behaviour: only when navigation lands on a
|
|
9
|
+
* different PATH, so a search, a sort or a page step on the same screen keeps
|
|
10
|
+
* the reader's place. `'always'` resets on every navigation, which is what a
|
|
11
|
+
* server-paged list usually wants — a new page should start at the top.
|
|
12
|
+
* `'never'` hands the decision back to the screen, which can still call
|
|
13
|
+
* `LayoutScrollService.scrollToTop()` itself.
|
|
14
|
+
*/
|
|
15
|
+
type DsScrollReset = 'path' | 'never' | 'always';
|
|
16
|
+
/**
|
|
17
|
+
* Owns the layout's content scroller. In the fixed-frame layout the window never
|
|
18
|
+
* scrolls, so the router's built-in window-based scrolling no-ops — this service
|
|
19
|
+
* resets the registered container to the top when navigation lands on a different
|
|
20
|
+
* PATH instead. Provided by `ds-app-layout`, so routed pages can
|
|
21
|
+
* `inject(LayoutScrollService)` and call `scrollToTop()` manually (e.g. list pages
|
|
22
|
+
* that DO want the top after a filter change).
|
|
23
|
+
*
|
|
24
|
+
* With `restoreScroll` on the layout it also restores the reader's place. Only
|
|
25
|
+
* when ARMED, which is the whole design: going BACK to a list should return to
|
|
26
|
+
* where the reader was, while following a link into a new screen should not.
|
|
27
|
+
*/
|
|
28
|
+
declare class LayoutScrollService {
|
|
29
|
+
private readonly navigation;
|
|
30
|
+
private readonly router;
|
|
31
|
+
private readonly destroyRef;
|
|
32
|
+
private readonly container;
|
|
33
|
+
/**
|
|
34
|
+
* The content scroller, once the layout has rendered it. Exposed so a host that
|
|
35
|
+
* must measure or drive the scroll itself — a scroll-spy, a virtualizer — can
|
|
36
|
+
* ask the layout for it instead of guessing the layout's internal markup with
|
|
37
|
+
* `document.querySelector`.
|
|
38
|
+
*/
|
|
39
|
+
readonly scroller: Signal<Element | null>;
|
|
40
|
+
private restoreTimeoutMs;
|
|
41
|
+
private resetStrategy;
|
|
42
|
+
private armed;
|
|
43
|
+
private pendingOffset;
|
|
44
|
+
private endRestore;
|
|
45
|
+
private firstNavigation;
|
|
46
|
+
constructor();
|
|
47
|
+
/**
|
|
48
|
+
* Wiring, called by `ds-app-layout` once its content region exists. Public only
|
|
49
|
+
* because the component and the service sit in different files - a consumer has
|
|
50
|
+
* no reason to call it, and calling it points the service at the wrong element.
|
|
51
|
+
*/
|
|
52
|
+
setScrollContainer(element: Element): void;
|
|
53
|
+
/** Wiring: `ds-app-layout` mirrors its `restoreScroll` inputs through here. */
|
|
54
|
+
configureRestore(timeoutMs: number | null): void;
|
|
55
|
+
/** Wiring: `ds-app-layout` mirrors its `scrollReset` input through here. */
|
|
56
|
+
configureReset(strategy: DsScrollReset): void;
|
|
57
|
+
scrollToTop(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Scroll the content region to an absolute offset. Assigns `scrollTop` rather
|
|
60
|
+
* than calling `scrollTo`, so a themed `scroll-behavior: smooth` cannot turn a
|
|
61
|
+
* positioning jump into an animation.
|
|
62
|
+
*/
|
|
63
|
+
scrollTo(top: number): void;
|
|
64
|
+
/**
|
|
65
|
+
* Take the offset this navigation is going to restore, and cancel the restore.
|
|
66
|
+
*
|
|
67
|
+
* For a host that renders its own scroll position — a virtualizer needs the
|
|
68
|
+
* offset BEFORE it decides which rows to build, so letting the service assign
|
|
69
|
+
* `scrollTop` afterwards would scroll a list that has not been built yet.
|
|
70
|
+
* Returns null when nothing is pending, which is every navigation that is not a
|
|
71
|
+
* back.
|
|
72
|
+
*/
|
|
73
|
+
consumePendingOffset(): number | null;
|
|
74
|
+
/**
|
|
75
|
+
* Optional accelerator: tell the layout the content for this route is in the
|
|
76
|
+
* DOM. Without it the restore still lands — it waits for the container to grow
|
|
77
|
+
* and clamps at the deadline — but a host that knows when its data arrived can
|
|
78
|
+
* end the wait early instead of paying the growth watch.
|
|
79
|
+
*/
|
|
80
|
+
contentReady(): void;
|
|
81
|
+
private onNavigationStart;
|
|
82
|
+
private onNavigationEnd;
|
|
83
|
+
private beginRestore;
|
|
84
|
+
private applyClamped;
|
|
85
|
+
private finishRestore;
|
|
86
|
+
private read;
|
|
87
|
+
private remember;
|
|
88
|
+
private recall;
|
|
89
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LayoutScrollService, never>;
|
|
90
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<LayoutScrollService>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Fixed-frame application layout: the host is pinned to the viewport
|
|
95
|
+
* (`100dvh` + `overflow: hidden`) and ONLY the content region scrolls, so
|
|
96
|
+
* the sidenav rail and the topbar stay put on pages taller than the
|
|
97
|
+
* viewport. Consumers project their own chrome into the slots:
|
|
98
|
+
*
|
|
99
|
+
* ```html
|
|
100
|
+
* <ds-app-layout>
|
|
101
|
+
* <ds-sidenav sidenav>…</ds-sidenav>
|
|
102
|
+
* <ds-topbar topbar>…</ds-topbar>
|
|
103
|
+
* <router-outlet />
|
|
104
|
+
* </ds-app-layout>
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* The layout renders the `<main>` landmark itself — do not nest another
|
|
108
|
+
* `<main>` in the content. Scroll-to-top is built in (`LayoutScrollService`)
|
|
109
|
+
* and fires when navigation changes the PATH, so a URL-driven list can page
|
|
110
|
+
* and filter without losing the reader's place; inject the service and call
|
|
111
|
+
* `scrollToTop()` for the changes that do want the top. The content padding
|
|
112
|
+
* auto-compensates the native scrollbar width so the right inset always
|
|
113
|
+
* equals the left one. The layout requires the application router
|
|
114
|
+
* (`provideRouter`) because its scroll-to-top service subscribes to
|
|
115
|
+
* navigation events.
|
|
116
|
+
*
|
|
117
|
+
* Below the `lg` breakpoint the rail becomes a modal overlay driven by
|
|
118
|
+
* `[(railOpen)]`; put the burger wherever the design wants it inside your own
|
|
119
|
+
* projected topbar.
|
|
120
|
+
*/
|
|
121
|
+
declare class AppLayoutComponent {
|
|
122
|
+
/**
|
|
123
|
+
* `'content'` (default): the rail spans the full viewport height on the
|
|
124
|
+
* left and the topbar sits above the content column only. `'full'`: the
|
|
125
|
+
* topbar spans the full width and the rail + content sit below it.
|
|
126
|
+
*/
|
|
127
|
+
readonly topbarSpan: _angular_core.InputSignal<"content" | "full">;
|
|
128
|
+
/**
|
|
129
|
+
* Whether the rail is open as an overlay. Only meaningful below the `lg`
|
|
130
|
+
* breakpoint — above it the rail is always in the layout and this is
|
|
131
|
+
* ignored. Two-way, so a burger in your topbar can drive it.
|
|
132
|
+
*/
|
|
133
|
+
readonly railOpen: _angular_core.ModelSignal<boolean>;
|
|
134
|
+
/** Accessible name for the rail while it is a modal overlay. */
|
|
135
|
+
readonly railLabel: _angular_core.InputSignal<string>;
|
|
136
|
+
/**
|
|
137
|
+
* Remember the content scroll per path and restore it on the way BACK. Off by
|
|
138
|
+
* default: a layout that silently moved the scroll would surprise every existing
|
|
139
|
+
* consumer. Only a history traversal restores — following a link into a screen
|
|
140
|
+
* still lands at the top — plus a host that pushes its own "back to list" and
|
|
141
|
+
* says so with `state: { dsRestoreScroll: true }`, and the first navigation after
|
|
142
|
+
* a reload.
|
|
143
|
+
*/
|
|
144
|
+
readonly restoreScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
145
|
+
/**
|
|
146
|
+
* How long to wait for the restored screen's content to grow tall enough before
|
|
147
|
+
* landing as close as it allows. Only meaningful with `restoreScroll`.
|
|
148
|
+
*/
|
|
149
|
+
readonly restoreScrollTimeout: _angular_core.InputSignal<number>;
|
|
150
|
+
/**
|
|
151
|
+
* When the content scroll resets to the top. `'path'` (default) is what the
|
|
152
|
+
* layout has always done; `'always'` also resets on a query- or fragment-only
|
|
153
|
+
* navigation, which is what a server-paged list wants; `'never'` hands the
|
|
154
|
+
* decision to the screen, which can still call `LayoutScrollService.scrollToTop()`.
|
|
155
|
+
*
|
|
156
|
+
* It exists because the layout owning the scroll CONTAINER also meant it owned
|
|
157
|
+
* the POLICY: a screen could add a reset but had no way to suppress one.
|
|
158
|
+
*/
|
|
159
|
+
readonly scrollReset: _angular_core.InputSignal<DsScrollReset>;
|
|
160
|
+
/**
|
|
161
|
+
* True only while the rail is an overlay. Gates the dialog semantics: above
|
|
162
|
+
* the breakpoint the rail is an ordinary region, and a permanent
|
|
163
|
+
* `role="dialog"` there would lie to a screen reader.
|
|
164
|
+
*/
|
|
165
|
+
protected readonly compact: _angular_core.WritableSignal<boolean>;
|
|
166
|
+
/** Whether the rail is currently an overlay rather than part of the layout. */
|
|
167
|
+
readonly railOverlay: _angular_core.Signal<boolean>;
|
|
168
|
+
/** Id of the rail panel, for a trigger's `aria-controls`. */
|
|
169
|
+
readonly railId: string;
|
|
170
|
+
private readonly layoutScroll;
|
|
171
|
+
private readonly navigation;
|
|
172
|
+
private readonly destroyRef;
|
|
173
|
+
private readonly content;
|
|
174
|
+
constructor();
|
|
175
|
+
/** Dismissal: Escape or the scrim. Restores focus, which navigation must not. */
|
|
176
|
+
protected closeRail(): void;
|
|
177
|
+
private watchDesktopBreakpoint;
|
|
178
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppLayoutComponent, never>;
|
|
179
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppLayoutComponent, "ds-app-layout", never, { "topbarSpan": { "alias": "topbarSpan"; "required": false; "isSignal": true; }; "railOpen": { "alias": "railOpen"; "required": false; "isSignal": true; }; "railLabel": { "alias": "railLabel"; "required": false; "isSignal": true; }; "restoreScroll": { "alias": "restoreScroll"; "required": false; "isSignal": true; }; "restoreScrollTimeout": { "alias": "restoreScrollTimeout"; "required": false; "isSignal": true; }; "scrollReset": { "alias": "scrollReset"; "required": false; "isSignal": true; }; }, { "railOpen": "railOpenChange"; }, never, ["[sidenav]", "[topbar]", "*"], true, never>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Wires a consumer's own burger to the layout's overlay rail: toggles
|
|
184
|
+
* `[(railOpen)]` on click and keeps `aria-expanded` / `aria-controls` in sync, so
|
|
185
|
+
* the trigger and the panel are related for a screen reader.
|
|
186
|
+
*
|
|
187
|
+
* ```html
|
|
188
|
+
* <ds-app-layout>
|
|
189
|
+
* <ds-topbar topbar>
|
|
190
|
+
* <button dsRailTrigger type="button" aria-label="Navigation">☰</button>
|
|
191
|
+
* </ds-topbar>
|
|
192
|
+
* </ds-app-layout>
|
|
193
|
+
* ```
|
|
194
|
+
*
|
|
195
|
+
* PUT IT ON THE FOCUSABLE CONTROL, not on a wrapper: the attributes go on the
|
|
196
|
+
* host element, and on `<ds-icon-button>` that is the wrapper, whose inner
|
|
197
|
+
* `<button>` is what a screen reader actually reads. With a DS button, skip this
|
|
198
|
+
* directive and bind its forwarding inputs instead —
|
|
199
|
+
* `[ariaExpanded]="layout.railOverlay() ? layout.railOpen() : null"` and
|
|
200
|
+
* `[ariaControls]="layout.railId"` off a `<ds-app-layout #layout>` template ref.
|
|
201
|
+
*
|
|
202
|
+
* Both attributes are dropped while the rail is NOT an overlay: above the
|
|
203
|
+
* breakpoint the rail is permanently in the layout, so `aria-expanded="false"`
|
|
204
|
+
* would state the opposite of what the user sees.
|
|
205
|
+
*
|
|
206
|
+
* Must sit inside a `ds-app-layout` — the injector walks the declaration tree, so
|
|
207
|
+
* anywhere in the projected chrome works. Outside one, DI fails naming
|
|
208
|
+
* `AppLayoutComponent`, which says what is missing.
|
|
209
|
+
*/
|
|
210
|
+
declare class RailTriggerDirective {
|
|
211
|
+
protected readonly layout: AppLayoutComponent;
|
|
212
|
+
protected toggle(): void;
|
|
213
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RailTriggerDirective, never>;
|
|
214
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RailTriggerDirective, "[dsRailTrigger]", never, {}, {}, never, never, true, never>;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Emits the new path whenever navigation lands on a DIFFERENT one. A query- or
|
|
219
|
+
* fragment-only navigation is a search, sort or page step on the same screen, and
|
|
220
|
+
* everything that reacts to "went somewhere else" must agree on that — the scroll
|
|
221
|
+
* reset, the responsive rail, and now your own code — so they read one source
|
|
222
|
+
* instead of each deciding for itself.
|
|
223
|
+
*
|
|
224
|
+
* PUBLIC since 0.8.x, because consumers were re-deriving it and disagreeing: one
|
|
225
|
+
* consumer had three separate answers to "did the path change?" — route snapshots
|
|
226
|
+
* in a view-transition skip, this stream inside the layout, and a `split('?')`
|
|
227
|
+
* in a tab helper that ignored the fragment this one strips. Inject it and read
|
|
228
|
+
* `pathChanged` rather than writing a fourth:
|
|
229
|
+
*
|
|
230
|
+
* ```ts
|
|
231
|
+
* private readonly navigation = inject(LayoutNavigationService);
|
|
232
|
+
* constructor() {
|
|
233
|
+
* this.navigation.pathChanged
|
|
234
|
+
* .pipe(takeUntilDestroyed())
|
|
235
|
+
* .subscribe((path) => …);
|
|
236
|
+
* }
|
|
237
|
+
* ```
|
|
238
|
+
*
|
|
239
|
+
* A PATH change is not always a page change. An app whose URL mirrors the
|
|
240
|
+
* reader's position — a docs layout rewriting `/area/section` from a scroll spy,
|
|
241
|
+
* a wizard that names its step — changes the path while staying on the screen,
|
|
242
|
+
* and resetting the scroll there fights the user: the reset moves the scroll,
|
|
243
|
+
* the spy rewrites the path again, and the page ping-pongs. Such a navigation
|
|
244
|
+
* must carry `state: { dsSamePage: true }`, which is skipped here.
|
|
245
|
+
*
|
|
246
|
+
* Root-provided, which is also what makes it safe to expose: the stream is
|
|
247
|
+
* derived from the router and holds no state, so one instance serves every
|
|
248
|
+
* reader. `LayoutScrollService` depends on it, so a consumer providing THAT
|
|
249
|
+
* outside `ds-app-layout` needs this one resolvable too.
|
|
250
|
+
*/
|
|
251
|
+
declare class LayoutNavigationService {
|
|
252
|
+
private readonly router;
|
|
253
|
+
readonly pathChanged: Observable<string>;
|
|
254
|
+
private samePage;
|
|
255
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LayoutNavigationService, never>;
|
|
256
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<LayoutNavigationService>;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export { AppLayoutComponent, LayoutNavigationService, LayoutScrollService, RailTriggerDirective };
|
|
260
|
+
export type { DsScrollReset };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { CardElevation, CardPadding } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
import { BrandNameDirective } from '@ids-group-ltd/ids-design-system/components/sidenav';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Scaffold for the UNauthenticated screens — sign-in, forgot password, reset,
|
|
7
|
+
* MFA — and the counterpart to `ds-app-layout`, which only ever covers the
|
|
8
|
+
* screens behind the login.
|
|
9
|
+
*
|
|
10
|
+
* The host is the ONLY full-height box — nesting a `100vh` wrapper inside a
|
|
11
|
+
* `100dvh` one scrolls a page whose content fits — and it carries the safe-area
|
|
12
|
+
* insets a notched phone in landscape needs.
|
|
13
|
+
*
|
|
14
|
+
* The brand row takes the same CONTRACT as `ds-sidenav` — a `brand` string gets a
|
|
15
|
+
* letter-mark tile plus wordmark, `logoLetter` overrides the glyph, `[dsBrandName]`
|
|
16
|
+
* projects a two-tone wordmark (import `BrandNameDirective` alongside this
|
|
17
|
+
* component, or the attribute is inert and the wordmark lands in the card), and
|
|
18
|
+
* `[brand]` projects a real logo. The two are not pixel-identical: the rail's tile
|
|
19
|
+
* is a fixed 28px at weight 800, this one 24-32px at 700, and each has its own
|
|
20
|
+
* `--ds-*-mark-*` hooks, so retinting the mark means setting both.
|
|
21
|
+
*
|
|
22
|
+
* Projecting into `[brand]` does NOT suppress the tile — leave `brand`/`logoLetter`
|
|
23
|
+
* unset when you supply a logo.
|
|
24
|
+
*
|
|
25
|
+
* ```html
|
|
26
|
+
* <ds-auth-layout brand="MyAdmin" logoLetter="A" tagline="Broker administration">
|
|
27
|
+
* <h1 class="title">Sign in</h1>
|
|
28
|
+
* <form class="form">…</form>
|
|
29
|
+
*
|
|
30
|
+
* <p dsAuthSupport>
|
|
31
|
+
* Need a hand? <a href="mailto:support@example.com">Contact support</a>
|
|
32
|
+
* </p>
|
|
33
|
+
* </ds-auth-layout>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
declare class AuthLayoutComponent {
|
|
37
|
+
/** Wordmark beside the letter-mark tile. For a logo image/SVG, project it into
|
|
38
|
+
* the `[brand]` slot instead; for a two-tone wordmark use `[dsBrandName]`.
|
|
39
|
+
* Unset falls back to `DS_CONFIG.brand.name`. Each field resolves on its own, so
|
|
40
|
+
* `brand=""` drops the wordmark but a `logoLetter` in the config still paints its
|
|
41
|
+
* tile; clear both to give one screen no brand row. */
|
|
42
|
+
readonly brand: _angular_core.InputSignal<string | null>;
|
|
43
|
+
/** Letter-mark glyph when it differs from the brand's first letter (e.g. an
|
|
44
|
+
* "A" tile beside the "MyAdmin" wordmark). Empty = first letter of `brand`;
|
|
45
|
+
* unset falls back to `DS_CONFIG.brand.logoLetter`. */
|
|
46
|
+
readonly logoLetter: _angular_core.InputSignal<string | null>;
|
|
47
|
+
/** One line under the wordmark naming the product or audience. Unset falls back
|
|
48
|
+
* to `DS_CONFIG.brand.tagline`. */
|
|
49
|
+
readonly tagline: _angular_core.InputSignal<string | null>;
|
|
50
|
+
/** The template must read THIS, never the input beside it — that one is null
|
|
51
|
+
* until bound, and the config default lives here. */
|
|
52
|
+
readonly brandName: _angular_core.Signal<string>;
|
|
53
|
+
readonly letterGlyph: _angular_core.Signal<string>;
|
|
54
|
+
readonly taglineText: _angular_core.Signal<string>;
|
|
55
|
+
/** Card treatment. `flat` suits a screen that already sits on a tinted canvas. */
|
|
56
|
+
readonly cardElevation: _angular_core.InputSignal<CardElevation>;
|
|
57
|
+
/** Card padding, passed through to `ds-card`. `md` tightens a short form. */
|
|
58
|
+
readonly cardPadding: _angular_core.InputSignal<CardPadding>;
|
|
59
|
+
/** Announce the card as the page's `main` landmark. `ds-card` renders an
|
|
60
|
+
* `<article>`, which is NOT a landmark, so by default a screen-reader user has
|
|
61
|
+
* nothing to jump to — set `'main'` on a standalone auth page. Opt-in because
|
|
62
|
+
* the layout is also embedded inside pages that already own a `main`, and two
|
|
63
|
+
* `main`s is its own violation. */
|
|
64
|
+
readonly landmark: _angular_core.InputSignal<"none" | "main">;
|
|
65
|
+
protected readonly brandNameRef: _angular_core.Signal<BrandNameDirective | undefined>;
|
|
66
|
+
protected readonly hasBrandName: _angular_core.Signal<boolean>;
|
|
67
|
+
/** Spread, not `charAt(0)`: the latter indexes UTF-16 code UNITS, so a brand
|
|
68
|
+
* starting with an astral character (an emoji, a rarer CJK glyph) yields half
|
|
69
|
+
* a surrogate pair and paints as tofu. */
|
|
70
|
+
protected readonly markGlyph: _angular_core.Signal<string>;
|
|
71
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AuthLayoutComponent, never>;
|
|
72
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AuthLayoutComponent, "ds-auth-layout", never, { "brand": { "alias": "brand"; "required": false; "isSignal": true; }; "logoLetter": { "alias": "logoLetter"; "required": false; "isSignal": true; }; "tagline": { "alias": "tagline"; "required": false; "isSignal": true; }; "cardElevation": { "alias": "cardElevation"; "required": false; "isSignal": true; }; "cardPadding": { "alias": "cardPadding"; "required": false; "isSignal": true; }; "landmark": { "alias": "landmark"; "required": false; "isSignal": true; }; }, {}, ["brandNameRef"], ["[brand]", "[dsBrandName]", "*", "[dsAuthSupport]"], true, never>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export { AuthLayoutComponent };
|