@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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, booleanAttribute, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
+
import { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';
|
|
4
|
+
|
|
5
|
+
class LoadingOverlayComponent {
|
|
6
|
+
/** Show the scrim + spinner over the projected region. */
|
|
7
|
+
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
8
|
+
/** Optional caption beneath the spinner. */
|
|
9
|
+
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
10
|
+
/** Backdrop-blur the projected content behind the scrim. */
|
|
11
|
+
blur = input(true, { ...(ngDevMode ? { debugName: "blur" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
12
|
+
/** Size of the spinner shown in the scrim. */
|
|
13
|
+
spinnerSize = input('md', ...(ngDevMode ? [{ debugName: "spinnerSize" }] : /* istanbul ignore next */ []));
|
|
14
|
+
/** Offset the scrim top edge — useful when a sticky header should stay uncovered. */
|
|
15
|
+
insetTop = input('0', ...(ngDevMode ? [{ debugName: "insetTop" }] : /* istanbul ignore next */ []));
|
|
16
|
+
/**
|
|
17
|
+
* Whether the projected content goes `inert` while the scrim is up. On by
|
|
18
|
+
* default, because a scrim that only stops the POINTER is the bug this exists
|
|
19
|
+
* to prevent: focus walks straight under it, and a keyboard user activates a
|
|
20
|
+
* control the mouse cannot even reach.
|
|
21
|
+
*
|
|
22
|
+
* Turn it off only when the scrim covers part of the content (`insetTop`), and
|
|
23
|
+
* then mark the covered subtree `inert` yourself — a blanket flag would take
|
|
24
|
+
* the uncovered part with it. `ds-table` does exactly that: the scrim starts
|
|
25
|
+
* below the header, so sorting during a refresh stays possible.
|
|
26
|
+
*/
|
|
27
|
+
inertContent = input(true, { ...(ngDevMode ? { debugName: "inertContent" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LoadingOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LoadingOverlayComponent, isStandalone: true, selector: "ds-loading-overlay", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, blur: { classPropertyName: "blur", publicName: "blur", isSignal: true, isRequired: false, transformFunction: null }, spinnerSize: { classPropertyName: "spinnerSize", publicName: "spinnerSize", isSignal: true, isRequired: false, transformFunction: null }, insetTop: { classPropertyName: "insetTop", publicName: "insetTop", isSignal: true, isRequired: false, transformFunction: null }, inertContent: { classPropertyName: "inertContent", publicName: "inertContent", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-busy": "loading() ? \"true\" : null" } }, ngImport: i0, template: "<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\"\n>\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\"\n >\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{display:block;position:relative;--_scrim-color: var(--ds-loading-overlay-scrim-color, color-mix( in srgb, var(--surface-canvas) calc(var(--opacity-scrim) * 100%), transparent ));--_label-color: var(--ds-loading-overlay-label-color, var(--text-secondary));--_enter-keyframes: var(--ds-loading-overlay-enter-keyframes, ds-fade-in);--_enter-duration: var(--ds-loading-overlay-enter-duration, var(--duration-fast));--_enter-easing: var(--ds-loading-overlay-enter-easing, var(--ease-standard));--_ds-enter-scale: var(--ds-loading-overlay-enter-scale, .96)}@media(prefers-reduced-motion:reduce){:host{--_enter-duration: 0ms}}.content{display:contents}.scrim{position:absolute;inset:0;z-index:var(--layer-raised);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);background-color:var(--_scrim-color);animation-name:var(--_enter-keyframes);animation-duration:var(--_enter-duration);animation-timing-function:var(--_enter-easing)}.scrim.blur{-webkit-backdrop-filter:blur(var(--blur-sm));backdrop-filter:blur(var(--blur-sm))}.label{color:var(--_label-color);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"], dependencies: [{ kind: "component", type: SpinnerComponent, selector: "ds-spinner", inputs: ["size"] }] });
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LoadingOverlayComponent, decorators: [{
|
|
32
|
+
type: Component,
|
|
33
|
+
args: [{ selector: 'ds-loading-overlay', standalone: true, imports: [SpinnerComponent], encapsulation: ViewEncapsulation.Emulated, host: {
|
|
34
|
+
'[attr.aria-busy]': 'loading() ? "true" : null',
|
|
35
|
+
}, template: "<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\"\n>\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\"\n >\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{display:block;position:relative;--_scrim-color: var(--ds-loading-overlay-scrim-color, color-mix( in srgb, var(--surface-canvas) calc(var(--opacity-scrim) * 100%), transparent ));--_label-color: var(--ds-loading-overlay-label-color, var(--text-secondary));--_enter-keyframes: var(--ds-loading-overlay-enter-keyframes, ds-fade-in);--_enter-duration: var(--ds-loading-overlay-enter-duration, var(--duration-fast));--_enter-easing: var(--ds-loading-overlay-enter-easing, var(--ease-standard));--_ds-enter-scale: var(--ds-loading-overlay-enter-scale, .96)}@media(prefers-reduced-motion:reduce){:host{--_enter-duration: 0ms}}.content{display:contents}.scrim{position:absolute;inset:0;z-index:var(--layer-raised);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);background-color:var(--_scrim-color);animation-name:var(--_enter-keyframes);animation-duration:var(--_enter-duration);animation-timing-function:var(--_enter-easing)}.scrim.blur{-webkit-backdrop-filter:blur(var(--blur-sm));backdrop-filter:blur(var(--blur-sm))}.label{color:var(--_label-color);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"] }]
|
|
36
|
+
}], propDecorators: { loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], blur: [{ type: i0.Input, args: [{ isSignal: true, alias: "blur", required: false }] }], spinnerSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "spinnerSize", required: false }] }], insetTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "insetTop", required: false }] }], inertContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "inertContent", required: false }] }] } });
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Generated bundle index. Do not edit.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
export { LoadingOverlayComponent };
|
|
43
|
+
//# sourceMappingURL=ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-loading-overlay.mjs","sources":["../../../src/lib/components/loading-overlay/loading-overlay.component.ts","../../../src/lib/components/loading-overlay/loading-overlay.component.html","../../../src/lib/components/loading-overlay/ids-group-ltd-ids-design-system-components-loading-overlay.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-loading-overlay',\n standalone: true,\n imports: [SpinnerComponent],\n templateUrl: './loading-overlay.component.html',\n styleUrl: './loading-overlay.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.aria-busy]': 'loading() ? \"true\" : null',\n },\n})\nexport class LoadingOverlayComponent {\n /** Show the scrim + spinner over the projected region. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Optional caption beneath the spinner. */\n readonly label = input<string>('');\n /** Backdrop-blur the projected content behind the scrim. */\n readonly blur = input(true, { transform: booleanAttribute });\n /** Size of the spinner shown in the scrim. */\n readonly spinnerSize = input<DsSize>('md');\n /** Offset the scrim top edge — useful when a sticky header should stay uncovered. */\n readonly insetTop = input<string>('0');\n\n /**\n * Whether the projected content goes `inert` while the scrim is up. On by\n * default, because a scrim that only stops the POINTER is the bug this exists\n * to prevent: focus walks straight under it, and a keyboard user activates a\n * control the mouse cannot even reach.\n *\n * Turn it off only when the scrim covers part of the content (`insetTop`), and\n * then mark the covered subtree `inert` yourself — a blanket flag would take\n * the uncovered part with it. `ds-table` does exactly that: the scrim starts\n * below the header, so sorting during a refresh stays possible.\n */\n readonly inertContent = input(true, { transform: booleanAttribute });\n}\n","<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\"\n>\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\"\n >\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAoBa,uBAAuB,CAAA;;IAEzB,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAEvD,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;IAEzB,IAAI,GAAG,KAAK,CAAC,IAAI,4EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAEnD,IAAA,WAAW,GAAG,KAAK,CAAS,IAAI,kFAAC;;AAEjC,IAAA,QAAQ,GAAG,KAAK,CAAS,GAAG,+EAAC;AAEtC;;;;;;;;;;AAUG;IACM,YAAY,GAAG,KAAK,CAAC,IAAI,oFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGAvBzD,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,YAAA,EAAA,EAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,cAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,gBAAA,EAAA,6BAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECpBpC,iZAsBA,EAAA,MAAA,EAAA,CAAA,8rCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDVY,gBAAgB,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAQf,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAXnC,SAAS;+BACE,oBAAoB,EAAA,UAAA,EAClB,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,CAAC,EAAA,aAAA,EAGZ,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,kBAAkB,EAAE,2BAA2B;AAChD,qBAAA,EAAA,QAAA,EAAA,iZAAA,EAAA,MAAA,EAAA,CAAA,8rCAAA,CAAA,EAAA;;;AElBH;;AAEG;;;;"}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, ViewContainerRef, ElementRef, viewChild, input, booleanAttribute, output, signal, ViewEncapsulation, Component, contentChildren, effect } from '@angular/core';
|
|
3
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
4
|
+
import { TemplatePortal } from '@angular/cdk/portal';
|
|
5
|
+
import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
|
|
6
|
+
import { nextControlId, prepareOverlayEnter } from '@ids-group-ltd/ids-design-system/components';
|
|
7
|
+
import { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';
|
|
8
|
+
import { isTextEntryTarget } from '@ids-group-ltd/ids-design-system/core';
|
|
9
|
+
|
|
10
|
+
class MenuItemComponent {
|
|
11
|
+
// The containing overlay (e.g. popover), if any — selecting an item closes it.
|
|
12
|
+
// Optional, so menu-items also work standalone.
|
|
13
|
+
closeRef = inject(DsOverlayCloseRef, { optional: true });
|
|
14
|
+
overlay = inject(Overlay);
|
|
15
|
+
vcr = inject(ViewContainerRef);
|
|
16
|
+
hostElement = inject((ElementRef));
|
|
17
|
+
button = viewChild.required('button');
|
|
18
|
+
/** Leading icon shown before the projected label. */
|
|
19
|
+
icon = input(null, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
20
|
+
/** Blocks activation and styles the item as inactive. It stays
|
|
21
|
+
* keyboard-focusable (`aria-disabled`, ARIA menu practice) and in `ds-menu`'s
|
|
22
|
+
* roving order, so a `[dsTooltip]` explaining why can be reached and shown. */
|
|
23
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
24
|
+
/** Renders the item in an error/destructive style. */
|
|
25
|
+
error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
26
|
+
/** Renders the item muted — a secondary row like "Sign out" under a divider,
|
|
27
|
+
* still actionable but not competing with the items above it. */
|
|
28
|
+
quiet = input(false, { ...(ngDevMode ? { debugName: "quiet" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
29
|
+
/** A standing second line under the label — a limitation the action carries
|
|
30
|
+
* ("will not be saved", "read-only in this workspace"). Visible without hover
|
|
31
|
+
* or focus, which is what separates it from a `[dsTooltip]`.
|
|
32
|
+
*
|
|
33
|
+
* Reaches assistive tech as `aria-describedby`, NOT as part of the item's name:
|
|
34
|
+
* the projected label names the action, and a caveat is a description of it.
|
|
35
|
+
* That is why the line is `aria-hidden` in the DOM and referenced by id — inside
|
|
36
|
+
* the button and visible, it would otherwise be concatenated into the name. */
|
|
37
|
+
description = input('', ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
|
|
38
|
+
/** Optional submenu template — renders a nested `ds-menu` on hover / ArrowRight. */
|
|
39
|
+
submenu = input(null, ...(ngDevMode ? [{ debugName: "submenu" }] : /* istanbul ignore next */ []));
|
|
40
|
+
/** Fires on click, unless the item is disabled or opens a submenu. */
|
|
41
|
+
pressed = output();
|
|
42
|
+
descriptionId = nextControlId('ds-menu-item-desc');
|
|
43
|
+
/** Roving tabindex, owned by ds-menu — exactly one item is tabbable (0), the
|
|
44
|
+
* rest -1. Defaults true so a standalone item (outside ds-menu) stays
|
|
45
|
+
* reachable. */
|
|
46
|
+
tabbable = signal(true, ...(ngDevMode ? [{ debugName: "tabbable" }] : /* istanbul ignore next */ []));
|
|
47
|
+
submenuOpen = signal(false, ...(ngDevMode ? [{ debugName: "submenuOpen" }] : /* istanbul ignore next */ []));
|
|
48
|
+
submenuRef = null;
|
|
49
|
+
openTimer = null;
|
|
50
|
+
closeTimer = null;
|
|
51
|
+
/** Move keyboard focus to this item's control. */
|
|
52
|
+
focus() {
|
|
53
|
+
this.button().nativeElement.focus();
|
|
54
|
+
}
|
|
55
|
+
/** Whether `node` lives inside this item's control (used by ds-menu to find
|
|
56
|
+
* the currently focused item during keyboard nav). */
|
|
57
|
+
contains(node) {
|
|
58
|
+
return !!node && this.button().nativeElement.contains(node);
|
|
59
|
+
}
|
|
60
|
+
/** Visible label text — used by ds-menu's type-ahead. */
|
|
61
|
+
label() {
|
|
62
|
+
return this.button().nativeElement.textContent?.trim() ?? '';
|
|
63
|
+
}
|
|
64
|
+
hasSubmenu() {
|
|
65
|
+
return this.submenu() !== null;
|
|
66
|
+
}
|
|
67
|
+
onClick(event) {
|
|
68
|
+
if (this.disabled()) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (this.hasSubmenu()) {
|
|
72
|
+
this.openSubmenu();
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
this.pressed.emit(event);
|
|
76
|
+
this.closeRef?.close();
|
|
77
|
+
}
|
|
78
|
+
onKeydown(event) {
|
|
79
|
+
if (this.disabled() || !this.hasSubmenu()) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (event.key === 'ArrowRight') {
|
|
83
|
+
event.preventDefault();
|
|
84
|
+
event.stopPropagation();
|
|
85
|
+
this.openSubmenu();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
onMouseEnter() {
|
|
89
|
+
if (!this.hasSubmenu() || this.disabled()) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
this.clearCloseTimer();
|
|
93
|
+
this.openTimer = setTimeout(() => this.openSubmenu(), 120);
|
|
94
|
+
}
|
|
95
|
+
onMouseLeave(event) {
|
|
96
|
+
if (!this.hasSubmenu()) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
this.clearOpenTimer();
|
|
100
|
+
// Delay close so moving into the submenu panel doesn't close it immediately.
|
|
101
|
+
this.closeTimer = setTimeout(() => {
|
|
102
|
+
// If focus/mouse is now inside the submenu panel, keep it open.
|
|
103
|
+
const submenuElement = this.submenuRef?.overlayElement;
|
|
104
|
+
if (submenuElement &&
|
|
105
|
+
submenuElement.contains(event.relatedTarget)) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
this.closeSubmenu();
|
|
109
|
+
}, 150);
|
|
110
|
+
}
|
|
111
|
+
openSubmenu() {
|
|
112
|
+
if (this.disabled() || this.submenuRef || !this.submenu()) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const trigger = this.hostElement.nativeElement;
|
|
116
|
+
const positionStrategy = this.overlay
|
|
117
|
+
.position()
|
|
118
|
+
.flexibleConnectedTo(trigger)
|
|
119
|
+
.withPositions([
|
|
120
|
+
{
|
|
121
|
+
originX: 'end',
|
|
122
|
+
originY: 'top',
|
|
123
|
+
overlayX: 'start',
|
|
124
|
+
overlayY: 'top',
|
|
125
|
+
offsetX: 2,
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
originX: 'start',
|
|
129
|
+
originY: 'top',
|
|
130
|
+
overlayX: 'end',
|
|
131
|
+
overlayY: 'top',
|
|
132
|
+
offsetX: -2,
|
|
133
|
+
},
|
|
134
|
+
]);
|
|
135
|
+
this.submenuRef = this.overlay.create({
|
|
136
|
+
positionStrategy,
|
|
137
|
+
hasBackdrop: false,
|
|
138
|
+
panelClass: 'ds-overlay-pane',
|
|
139
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition(),
|
|
140
|
+
});
|
|
141
|
+
prepareOverlayEnter(this.submenuRef, this.hostElement.nativeElement, positionStrategy);
|
|
142
|
+
this.submenuRef.keydownEvents().subscribe((event) => {
|
|
143
|
+
if (event.key === 'Escape' || event.key === 'ArrowLeft') {
|
|
144
|
+
event.preventDefault();
|
|
145
|
+
this.closeSubmenu();
|
|
146
|
+
this.focus();
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
this.submenuRef.outsidePointerEvents().subscribe(() => this.closeSubmenu());
|
|
150
|
+
this.submenuRef.attach(new TemplatePortal(this.submenu(), this.vcr));
|
|
151
|
+
this.submenuRef.overlayElement.addEventListener('mouseenter', () => this.clearCloseTimer());
|
|
152
|
+
this.submenuRef.overlayElement.addEventListener('mouseleave', () => this.closeSubmenu());
|
|
153
|
+
this.submenuOpen.set(true);
|
|
154
|
+
}
|
|
155
|
+
closeSubmenu() {
|
|
156
|
+
this.submenuRef?.dispose();
|
|
157
|
+
this.submenuRef = null;
|
|
158
|
+
this.submenuOpen.set(false);
|
|
159
|
+
}
|
|
160
|
+
ngOnDestroy() {
|
|
161
|
+
this.submenuRef?.dispose();
|
|
162
|
+
this.clearOpenTimer();
|
|
163
|
+
this.clearCloseTimer();
|
|
164
|
+
}
|
|
165
|
+
clearOpenTimer() {
|
|
166
|
+
if (this.openTimer !== null) {
|
|
167
|
+
clearTimeout(this.openTimer);
|
|
168
|
+
this.openTimer = null;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
clearCloseTimer() {
|
|
172
|
+
if (this.closeTimer !== null) {
|
|
173
|
+
clearTimeout(this.closeTimer);
|
|
174
|
+
this.closeTimer = null;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: MenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
178
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: MenuItemComponent, isStandalone: true, selector: "ds-menu-item", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, quiet: { classPropertyName: "quiet", publicName: "quiet", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, submenu: { classPropertyName: "submenu", publicName: "submenu", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pressed: "pressed" }, host: { attributes: { "role": "none" } }, viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, isSignal: true }], ngImport: i0, template: "<button\n #button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [attr.tabindex]=\"tabbable() ? 0 : -1\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [class.disabled]=\"disabled()\"\n [class.error]=\"error()\"\n [class.quiet]=\"quiet()\"\n [class.has-submenu]=\"hasSubmenu()\"\n [attr.aria-haspopup]=\"hasSubmenu() ? 'menu' : null\"\n [attr.aria-expanded]=\"hasSubmenu() ? submenuOpen() : null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave($event)\"\n>\n @if (icon()) {\n <ds-icon\n [name]=\"icon()!\"\n [size]=\"16\"\n >\n </ds-icon>\n } @else {\n <span class=\"menu-item-icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n <span class=\"menu-item-body\">\n <ng-content></ng-content>\n\n @if (description()) {\n <span\n class=\"menu-item-description\"\n aria-hidden=\"true\"\n [id]=\"descriptionId\"\n >\n {{ description() }}\n </span>\n }\n </span>\n\n @if (hasSubmenu()) {\n <ds-icon\n class=\"submenu-chevron\"\n name=\"chevronRight\"\n [size]=\"14\"\n />\n }\n</button>\n", styles: ["@charset \"UTF-8\";:host{--_menu-item-label-color: var(--ds-menu-item-label-color, var(--text-primary));--_menu-item-focus-shadow: var(--ds-menu-item-focus-shadow, var(--ds-control-focus-shadow));--_menu-item-hover-bg-color: var(--ds-menu-item-hover-bg-color, var(--surface-secondary));--_menu-item-error-label-color: var(--ds-menu-item-error-label-color, var(--error-text));--_menu-item-quiet-label-color: var(--ds-menu-item-quiet-label-color, var(--text-secondary));--_menu-item-pad-x: var(--ds-menu-item-pad-x, var(--space-3));--_menu-item-pad-y: var(--ds-menu-item-pad-y, var(--space-2));--_menu-item-label-weight: var(--ds-menu-item-label-weight, var(--font-weight-medium));--_menu-item-label-font-size: var(--ds-menu-item-label-font-size, var(--font-size-s));--_menu-item-description-color: var(--ds-menu-item-description-color, var(--text-tertiary));--_menu-item-description-font-size: var(--ds-menu-item-description-font-size, var(--font-size-2xs));--_menu-item-description-max-width: var(--ds-menu-item-description-max-width, 14rem);display:block}.menu-item-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.menu-item-description{display:block;max-width:var(--_menu-item-description-max-width);color:var(--_menu-item-description-color);font-size:var(--_menu-item-description-font-size);line-height:var(--line-height-snug);font-weight:var(--font-weight-regular);text-wrap:pretty}.menu-item{display:flex;align-items:center;gap:var(--space-2-5);width:100%;padding:var(--_menu-item-pad-y) var(--_menu-item-pad-x);background:transparent;border:0;border-radius:var(--ds-menu-item-radius, 0);font:var(--_menu-item-label-weight) var(--_menu-item-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_menu-item-label-color);cursor:pointer;text-align:left;transition:background-color var(--duration-fast) var(--ease-standard)}.menu-item:hover{background:var(--_menu-item-hover-bg-color)}.menu-item:active:not(.disabled){background:var(--surface-muted)}.menu-item:focus-visible{outline:none;box-shadow:inset var(--_menu-item-focus-shadow)}.menu-item.disabled{color:var(--text-disabled);cursor:not-allowed}.menu-item.disabled:hover{background:transparent}.menu-item.quiet{color:var(--_menu-item-quiet-label-color)}.menu-item.error{color:var(--_menu-item-error-label-color)}.menu-item.error:hover{background:var(--error-subtitle)}.menu-item .submenu-chevron{margin-left:auto;color:var(--icon-muted);flex-shrink:0}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
|
|
179
|
+
}
|
|
180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: MenuItemComponent, decorators: [{
|
|
181
|
+
type: Component,
|
|
182
|
+
args: [{ selector: 'ds-menu-item', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, host: { role: 'none' }, template: "<button\n #button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [attr.tabindex]=\"tabbable() ? 0 : -1\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [class.disabled]=\"disabled()\"\n [class.error]=\"error()\"\n [class.quiet]=\"quiet()\"\n [class.has-submenu]=\"hasSubmenu()\"\n [attr.aria-haspopup]=\"hasSubmenu() ? 'menu' : null\"\n [attr.aria-expanded]=\"hasSubmenu() ? submenuOpen() : null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave($event)\"\n>\n @if (icon()) {\n <ds-icon\n [name]=\"icon()!\"\n [size]=\"16\"\n >\n </ds-icon>\n } @else {\n <span class=\"menu-item-icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n <span class=\"menu-item-body\">\n <ng-content></ng-content>\n\n @if (description()) {\n <span\n class=\"menu-item-description\"\n aria-hidden=\"true\"\n [id]=\"descriptionId\"\n >\n {{ description() }}\n </span>\n }\n </span>\n\n @if (hasSubmenu()) {\n <ds-icon\n class=\"submenu-chevron\"\n name=\"chevronRight\"\n [size]=\"14\"\n />\n }\n</button>\n", styles: ["@charset \"UTF-8\";:host{--_menu-item-label-color: var(--ds-menu-item-label-color, var(--text-primary));--_menu-item-focus-shadow: var(--ds-menu-item-focus-shadow, var(--ds-control-focus-shadow));--_menu-item-hover-bg-color: var(--ds-menu-item-hover-bg-color, var(--surface-secondary));--_menu-item-error-label-color: var(--ds-menu-item-error-label-color, var(--error-text));--_menu-item-quiet-label-color: var(--ds-menu-item-quiet-label-color, var(--text-secondary));--_menu-item-pad-x: var(--ds-menu-item-pad-x, var(--space-3));--_menu-item-pad-y: var(--ds-menu-item-pad-y, var(--space-2));--_menu-item-label-weight: var(--ds-menu-item-label-weight, var(--font-weight-medium));--_menu-item-label-font-size: var(--ds-menu-item-label-font-size, var(--font-size-s));--_menu-item-description-color: var(--ds-menu-item-description-color, var(--text-tertiary));--_menu-item-description-font-size: var(--ds-menu-item-description-font-size, var(--font-size-2xs));--_menu-item-description-max-width: var(--ds-menu-item-description-max-width, 14rem);display:block}.menu-item-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.menu-item-description{display:block;max-width:var(--_menu-item-description-max-width);color:var(--_menu-item-description-color);font-size:var(--_menu-item-description-font-size);line-height:var(--line-height-snug);font-weight:var(--font-weight-regular);text-wrap:pretty}.menu-item{display:flex;align-items:center;gap:var(--space-2-5);width:100%;padding:var(--_menu-item-pad-y) var(--_menu-item-pad-x);background:transparent;border:0;border-radius:var(--ds-menu-item-radius, 0);font:var(--_menu-item-label-weight) var(--_menu-item-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_menu-item-label-color);cursor:pointer;text-align:left;transition:background-color var(--duration-fast) var(--ease-standard)}.menu-item:hover{background:var(--_menu-item-hover-bg-color)}.menu-item:active:not(.disabled){background:var(--surface-muted)}.menu-item:focus-visible{outline:none;box-shadow:inset var(--_menu-item-focus-shadow)}.menu-item.disabled{color:var(--text-disabled);cursor:not-allowed}.menu-item.disabled:hover{background:transparent}.menu-item.quiet{color:var(--_menu-item-quiet-label-color)}.menu-item.error{color:var(--_menu-item-error-label-color)}.menu-item.error:hover{background:var(--error-subtitle)}.menu-item .submenu-chevron{margin-left:auto;color:var(--icon-muted);flex-shrink:0}\n"] }]
|
|
183
|
+
}], propDecorators: { button: [{ type: i0.ViewChild, args: ['button', { isSignal: true }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], quiet: [{ type: i0.Input, args: [{ isSignal: true, alias: "quiet", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], submenu: [{ type: i0.Input, args: [{ isSignal: true, alias: "submenu", required: false }] }], pressed: [{ type: i0.Output, args: ["pressed"] }] } });
|
|
184
|
+
|
|
185
|
+
class MenuComponent {
|
|
186
|
+
items = contentChildren(MenuItemComponent, ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
187
|
+
/** Index of the roving-focus item — the single item reachable via Tab. */
|
|
188
|
+
activeIndex = signal(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
|
|
189
|
+
constructor() {
|
|
190
|
+
// Roving tabindex: exactly one item is tabbable (0), the rest -1. Disabled
|
|
191
|
+
// items stay in the order (APG menu practice) — they're focusable so a
|
|
192
|
+
// tooltip explaining why can be read; activation is blocked in menu-item.
|
|
193
|
+
effect(() => {
|
|
194
|
+
const items = this.items();
|
|
195
|
+
if (!items.length) {
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
let index = this.activeIndex();
|
|
199
|
+
if (index >= items.length) {
|
|
200
|
+
index = 0;
|
|
201
|
+
}
|
|
202
|
+
items.forEach((item, i) => item.tabbable.set(i === index));
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
onKeydown(event) {
|
|
206
|
+
const items = this.items();
|
|
207
|
+
// A projected search/filter field owns its typing — type-ahead below would
|
|
208
|
+
// eat every character it receives.
|
|
209
|
+
if (!items.length || isTextEntryTarget(event)) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
const count = items.length;
|
|
213
|
+
const focused = items.findIndex((item) => item.contains(event.target));
|
|
214
|
+
const from = focused >= 0 ? focused : this.activeIndex();
|
|
215
|
+
// Single-character type-ahead: jump to the next item whose label starts
|
|
216
|
+
// with the typed character.
|
|
217
|
+
if (event.key.length === 1 &&
|
|
218
|
+
/\S/.test(event.key) &&
|
|
219
|
+
!event.ctrlKey &&
|
|
220
|
+
!event.metaKey &&
|
|
221
|
+
!event.altKey) {
|
|
222
|
+
this.typeAhead(event.key, from, items);
|
|
223
|
+
event.preventDefault();
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
let next;
|
|
227
|
+
switch (event.key) {
|
|
228
|
+
case 'ArrowDown':
|
|
229
|
+
next = (from + 1) % count;
|
|
230
|
+
break;
|
|
231
|
+
case 'ArrowUp':
|
|
232
|
+
next = (from - 1 + count) % count;
|
|
233
|
+
break;
|
|
234
|
+
case 'Home':
|
|
235
|
+
next = 0;
|
|
236
|
+
break;
|
|
237
|
+
case 'End':
|
|
238
|
+
next = count - 1;
|
|
239
|
+
break;
|
|
240
|
+
default:
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
event.preventDefault();
|
|
244
|
+
// Disabled items are NOT skipped — they stay reachable (APG); onClick blocks
|
|
245
|
+
// their activation.
|
|
246
|
+
this.focusItem(next);
|
|
247
|
+
}
|
|
248
|
+
typeAhead(char, from, items) {
|
|
249
|
+
const needle = char.toLowerCase();
|
|
250
|
+
const count = items.length;
|
|
251
|
+
for (let offset = 1; offset <= count; offset++) {
|
|
252
|
+
const i = (from + offset) % count;
|
|
253
|
+
const item = items[i];
|
|
254
|
+
if (item.label().toLowerCase().startsWith(needle)) {
|
|
255
|
+
this.focusItem(i);
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
focusItem(index) {
|
|
261
|
+
this.activeIndex.set(index);
|
|
262
|
+
this.items()[index].focus();
|
|
263
|
+
}
|
|
264
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: MenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
265
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.22", type: MenuComponent, isStandalone: true, selector: "ds-menu", host: { listeners: { "keydown": "onKeydown($event)" } }, queries: [{ propertyName: "items", predicate: MenuItemComponent, isSignal: true }], ngImport: i0, template: "<ul\n class=\"menu\"\n role=\"menu\"\n>\n <ng-content></ng-content>\n</ul>\n", styles: [":host{--_menu-bg-color: var(--ds-menu-bg-color, var(--surface-default));--_menu-border-color: var(--ds-menu-border-color, var(--border-divider));--_menu-min-width: var(--ds-menu-min-width, auto);--_menu-max-width: var(--ds-menu-max-width, none);--_menu-gap: var(--ds-menu-gap, var(--space-0-5));display:block;min-width:var(--_menu-min-width);max-width:var(--_menu-max-width);background:var(--_menu-bg-color);border:var(--border-width-default) solid var(--_menu-border-color);border-radius:var(--ds-menu-radius, var(--radius-md));padding:0;overflow:hidden}:host-context(.popover){background:transparent;border:0;padding:0;border-radius:var(--ds-menu-clip-radius, var(--radius-flat))}.menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--_menu-gap)}\n"] });
|
|
266
|
+
}
|
|
267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: MenuComponent, decorators: [{
|
|
268
|
+
type: Component,
|
|
269
|
+
args: [{ selector: 'ds-menu', standalone: true, encapsulation: ViewEncapsulation.Emulated, host: { '(keydown)': 'onKeydown($event)' }, template: "<ul\n class=\"menu\"\n role=\"menu\"\n>\n <ng-content></ng-content>\n</ul>\n", styles: [":host{--_menu-bg-color: var(--ds-menu-bg-color, var(--surface-default));--_menu-border-color: var(--ds-menu-border-color, var(--border-divider));--_menu-min-width: var(--ds-menu-min-width, auto);--_menu-max-width: var(--ds-menu-max-width, none);--_menu-gap: var(--ds-menu-gap, var(--space-0-5));display:block;min-width:var(--_menu-min-width);max-width:var(--_menu-max-width);background:var(--_menu-bg-color);border:var(--border-width-default) solid var(--_menu-border-color);border-radius:var(--ds-menu-radius, var(--radius-md));padding:0;overflow:hidden}:host-context(.popover){background:transparent;border:0;padding:0;border-radius:var(--ds-menu-clip-radius, var(--radius-flat))}.menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--_menu-gap)}\n"] }]
|
|
270
|
+
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MenuItemComponent), { isSignal: true }] }] } });
|
|
271
|
+
|
|
272
|
+
class MenuDividerComponent {
|
|
273
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: MenuDividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
274
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.22", type: MenuDividerComponent, isStandalone: true, selector: "ds-menu-divider", host: { attributes: { "role": "separator", "aria-orientation": "horizontal" } }, ngImport: i0, template: '<hr class="divider" aria-hidden="true" />', isInline: true, styles: [":host{--_menu-divider-color: var(--ds-menu-divider-color, var(--border-divider));--_menu-divider-spacing: var(--ds-menu-divider-spacing, 0px);display:block;padding:var(--_menu-divider-spacing) 0;margin-block:calc(-1 * var(--_menu-gap, 0px))}.divider{margin:0;border:0;border-top:var(--border-width-default) solid var(--_menu-divider-color)}\n"] });
|
|
275
|
+
}
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: MenuDividerComponent, decorators: [{
|
|
277
|
+
type: Component,
|
|
278
|
+
args: [{ selector: 'ds-menu-divider', standalone: true, template: '<hr class="divider" aria-hidden="true" />', encapsulation: ViewEncapsulation.Emulated, host: { role: 'separator', 'aria-orientation': 'horizontal' }, styles: [":host{--_menu-divider-color: var(--ds-menu-divider-color, var(--border-divider));--_menu-divider-spacing: var(--ds-menu-divider-spacing, 0px);display:block;padding:var(--_menu-divider-spacing) 0;margin-block:calc(-1 * var(--_menu-gap, 0px))}.divider{margin:0;border:0;border-top:var(--border-width-default) solid var(--_menu-divider-color)}\n"] }]
|
|
279
|
+
}] });
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Generated bundle index. Do not edit.
|
|
283
|
+
*/
|
|
284
|
+
|
|
285
|
+
export { MenuComponent, MenuDividerComponent, MenuItemComponent };
|
|
286
|
+
//# sourceMappingURL=ids-group-ltd-ids-design-system-components-menu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-menu.mjs","sources":["../../../src/lib/components/menu/menu-item.component.ts","../../../src/lib/components/menu/menu-item.component.html","../../../src/lib/components/menu/menu.component.ts","../../../src/lib/components/menu/menu.component.html","../../../src/lib/components/menu/menu-divider.component.ts","../../../src/lib/components/menu/ids-group-ltd-ids-design-system-components-menu.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';\nimport { prepareOverlayEnter } from '@ids-group-ltd/ids-design-system/components';\n\n@Component({\n selector: 'ds-menu-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './menu-item.component.html',\n styleUrl: './menu-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // The host sits between the role=\"menu\" <ul> and the role=\"menuitem\" button,\n // so mark it presentational to keep the menu→menuitem ownership intact.\n host: { role: 'none' },\n})\nexport class MenuItemComponent implements OnDestroy {\n // The containing overlay (e.g. popover), if any — selecting an item closes it.\n // Optional, so menu-items also work standalone.\n private readonly closeRef = inject(DsOverlayCloseRef, { optional: true });\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly hostElement = inject(ElementRef<HTMLElement>);\n private readonly button =\n viewChild.required<ElementRef<HTMLButtonElement>>('button');\n\n /** Leading icon shown before the projected label. */\n readonly icon = input<IconName | null>(null);\n /** Blocks activation and styles the item as inactive. It stays\n * keyboard-focusable (`aria-disabled`, ARIA menu practice) and in `ds-menu`'s\n * roving order, so a `[dsTooltip]` explaining why can be reached and shown. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Renders the item in an error/destructive style. */\n readonly error = input(false, { transform: booleanAttribute });\n /** Renders the item muted — a secondary row like \"Sign out\" under a divider,\n * still actionable but not competing with the items above it. */\n readonly quiet = input(false, { transform: booleanAttribute });\n /** A standing second line under the label — a limitation the action carries\n * (\"will not be saved\", \"read-only in this workspace\"). Visible without hover\n * or focus, which is what separates it from a `[dsTooltip]`.\n *\n * Reaches assistive tech as `aria-describedby`, NOT as part of the item's name:\n * the projected label names the action, and a caveat is a description of it.\n * That is why the line is `aria-hidden` in the DOM and referenced by id — inside\n * the button and visible, it would otherwise be concatenated into the name. */\n readonly description = input<string>('');\n /** Optional submenu template — renders a nested `ds-menu` on hover / ArrowRight. */\n readonly submenu = input<TemplateRef<unknown> | null>(null);\n /** Fires on click, unless the item is disabled or opens a submenu. */\n readonly pressed = output<MouseEvent>();\n\n protected readonly descriptionId = nextControlId('ds-menu-item-desc');\n\n /** Roving tabindex, owned by ds-menu — exactly one item is tabbable (0), the\n * rest -1. Defaults true so a standalone item (outside ds-menu) stays\n * reachable. */\n readonly tabbable = signal(true);\n readonly submenuOpen = signal(false);\n\n private submenuRef: OverlayRef | null = null;\n private openTimer: ReturnType<typeof setTimeout> | null = null;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n\n /** Move keyboard focus to this item's control. */\n focus(): void {\n this.button().nativeElement.focus();\n }\n\n /** Whether `node` lives inside this item's control (used by ds-menu to find\n * the currently focused item during keyboard nav). */\n contains(node: Node | null): boolean {\n return !!node && this.button().nativeElement.contains(node);\n }\n\n /** Visible label text — used by ds-menu's type-ahead. */\n label(): string {\n return this.button().nativeElement.textContent?.trim() ?? '';\n }\n\n protected hasSubmenu(): boolean {\n return this.submenu() !== null;\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n if (this.hasSubmenu()) {\n this.openSubmenu();\n\n return;\n }\n this.pressed.emit(event);\n this.closeRef?.close();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.disabled() || !this.hasSubmenu()) {\n return;\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n event.stopPropagation();\n this.openSubmenu();\n }\n }\n\n protected onMouseEnter(): void {\n if (!this.hasSubmenu() || this.disabled()) {\n return;\n }\n this.clearCloseTimer();\n this.openTimer = setTimeout(() => this.openSubmenu(), 120);\n }\n\n protected onMouseLeave(event: MouseEvent): void {\n if (!this.hasSubmenu()) {\n return;\n }\n this.clearOpenTimer();\n // Delay close so moving into the submenu panel doesn't close it immediately.\n this.closeTimer = setTimeout(() => {\n // If focus/mouse is now inside the submenu panel, keep it open.\n const submenuElement = this.submenuRef?.overlayElement;\n if (\n submenuElement &&\n submenuElement.contains(event.relatedTarget as Node)\n ) {\n return;\n }\n this.closeSubmenu();\n }, 150);\n }\n\n openSubmenu(): void {\n if (this.disabled() || this.submenuRef || !this.submenu()) {\n return;\n }\n const trigger = this.hostElement.nativeElement;\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(trigger)\n .withPositions([\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n offsetX: 2,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -2,\n },\n ]);\n\n this.submenuRef = this.overlay.create({\n positionStrategy,\n hasBackdrop: false,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n });\n prepareOverlayEnter(\n this.submenuRef,\n this.hostElement.nativeElement,\n positionStrategy,\n );\n\n this.submenuRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.closeSubmenu();\n this.focus();\n }\n });\n\n this.submenuRef.outsidePointerEvents().subscribe(() => this.closeSubmenu());\n\n this.submenuRef.attach(new TemplatePortal(this.submenu()!, this.vcr));\n\n this.submenuRef.overlayElement.addEventListener('mouseenter', () =>\n this.clearCloseTimer(),\n );\n this.submenuRef.overlayElement.addEventListener('mouseleave', () =>\n this.closeSubmenu(),\n );\n\n this.submenuOpen.set(true);\n }\n\n closeSubmenu(): void {\n this.submenuRef?.dispose();\n this.submenuRef = null;\n this.submenuOpen.set(false);\n }\n\n ngOnDestroy(): void {\n this.submenuRef?.dispose();\n this.clearOpenTimer();\n this.clearCloseTimer();\n }\n\n private clearOpenTimer(): void {\n if (this.openTimer !== null) {\n clearTimeout(this.openTimer);\n this.openTimer = null;\n }\n }\n\n private clearCloseTimer(): void {\n if (this.closeTimer !== null) {\n clearTimeout(this.closeTimer);\n this.closeTimer = null;\n }\n }\n}\n","<button\n #button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [attr.tabindex]=\"tabbable() ? 0 : -1\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [class.disabled]=\"disabled()\"\n [class.error]=\"error()\"\n [class.quiet]=\"quiet()\"\n [class.has-submenu]=\"hasSubmenu()\"\n [attr.aria-haspopup]=\"hasSubmenu() ? 'menu' : null\"\n [attr.aria-expanded]=\"hasSubmenu() ? submenuOpen() : null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave($event)\"\n>\n @if (icon()) {\n <ds-icon\n [name]=\"icon()!\"\n [size]=\"16\"\n >\n </ds-icon>\n } @else {\n <span class=\"menu-item-icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n <span class=\"menu-item-body\">\n <ng-content></ng-content>\n\n @if (description()) {\n <span\n class=\"menu-item-description\"\n aria-hidden=\"true\"\n [id]=\"descriptionId\"\n >\n {{ description() }}\n </span>\n }\n </span>\n\n @if (hasSubmenu()) {\n <ds-icon\n class=\"submenu-chevron\"\n name=\"chevronRight\"\n [size]=\"14\"\n />\n }\n</button>\n","import {\n Component,\n ViewEncapsulation,\n contentChildren,\n effect,\n signal,\n} from '@angular/core';\nimport { MenuItemComponent } from './menu-item.component';\nimport { isTextEntryTarget } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-menu',\n standalone: true,\n templateUrl: './menu.component.html',\n styleUrl: './menu.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // Keyboard nav bubbles up from the focused menuitem button. Hand-rolled roving\n // (mirrors ds-tabs) — kept signal-based and consistent with the rest of the DS.\n host: { '(keydown)': 'onKeydown($event)' },\n})\nexport class MenuComponent {\n private readonly items = contentChildren(MenuItemComponent);\n /** Index of the roving-focus item — the single item reachable via Tab. */\n private readonly activeIndex = signal(0);\n\n constructor() {\n // Roving tabindex: exactly one item is tabbable (0), the rest -1. Disabled\n // items stay in the order (APG menu practice) — they're focusable so a\n // tooltip explaining why can be read; activation is blocked in menu-item.\n effect(() => {\n const items = this.items();\n if (!items.length) {\n return;\n }\n let index = this.activeIndex();\n if (index >= items.length) {\n index = 0;\n }\n items.forEach((item, i) => item.tabbable.set(i === index));\n });\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const items = this.items();\n // A projected search/filter field owns its typing — type-ahead below would\n // eat every character it receives.\n if (!items.length || isTextEntryTarget(event)) {\n return;\n }\n const count = items.length;\n const focused = items.findIndex((item) =>\n item.contains(event.target as Node | null),\n );\n const from = focused >= 0 ? focused : this.activeIndex();\n\n // Single-character type-ahead: jump to the next item whose label starts\n // with the typed character.\n if (\n event.key.length === 1 &&\n /\\S/.test(event.key) &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey\n ) {\n this.typeAhead(event.key, from, items);\n event.preventDefault();\n\n return;\n }\n\n let next: number;\n switch (event.key) {\n case 'ArrowDown':\n next = (from + 1) % count;\n break;\n case 'ArrowUp':\n next = (from - 1 + count) % count;\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = count - 1;\n break;\n default:\n return;\n }\n event.preventDefault();\n // Disabled items are NOT skipped — they stay reachable (APG); onClick blocks\n // their activation.\n this.focusItem(next);\n }\n\n private typeAhead(\n char: string,\n from: number,\n items: readonly MenuItemComponent[],\n ): void {\n const needle = char.toLowerCase();\n const count = items.length;\n for (let offset = 1; offset <= count; offset++) {\n const i = (from + offset) % count;\n const item = items[i];\n if (item.label().toLowerCase().startsWith(needle)) {\n this.focusItem(i);\n\n return;\n }\n }\n }\n\n private focusItem(index: number): void {\n this.activeIndex.set(index);\n this.items()[index].focus();\n }\n}\n","<ul\n class=\"menu\"\n role=\"menu\"\n>\n <ng-content></ng-content>\n</ul>\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ds-menu-divider',\n standalone: true,\n template: '<hr class=\"divider\" aria-hidden=\"true\" />',\n styleUrl: './menu-divider.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: { role: 'separator', 'aria-orientation': 'horizontal' },\n})\nexport class MenuDividerComponent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAiCa,iBAAiB,CAAA;;;IAGX,QAAQ,GAAG,MAAM,CAAC,iBAAiB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACxD,IAAA,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AACzB,IAAA,GAAG,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC9B,IAAA,WAAW,GAAG,MAAM,EAAC,UAAuB,EAAC;AAC7C,IAAA,MAAM,GACrB,SAAS,CAAC,QAAQ,CAAgC,QAAQ,CAAC;;AAGpD,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;AAC5C;;AAEgF;IACvE,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC9D;AACkE;IACzD,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC9D;;;;;;;AAOgF;AACvE,IAAA,WAAW,GAAG,KAAK,CAAS,EAAE,kFAAC;;AAE/B,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