@designsystem-se/af 32.3.1-beta.1 → 33.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/digi-bar-chart.js +1 -1
- package/components/digi-calendar-datepicker.js +3 -4
- package/components/digi-calendar-week-view.js +1 -1
- package/components/digi-calendar.js +1 -1
- package/components/digi-card.js +1 -1
- package/components/digi-chart-line.js +1 -1
- package/components/digi-code-block.js +1 -1
- package/components/digi-code-example.js +9 -7
- package/components/digi-context-menu.js +151 -52
- package/components/digi-dialog.js +3 -4
- package/components/digi-expandable-accordion.js +2 -3
- package/components/digi-expandable-faq-item.js +1 -1
- package/components/digi-footer.js +2 -3
- package/components/digi-form-error-list.js +3 -4
- package/components/digi-form-file-upload.js +1 -1
- package/components/digi-form-receipt.js +1 -2
- package/components/digi-form-select-filter.js +2 -3
- package/components/digi-header-avatar.js +2 -2
- package/components/digi-header-navigation.js +3 -4
- package/components/digi-header.js +3 -4
- package/components/digi-info-card-multi.js +4 -4
- package/components/digi-info-card.js +1 -1
- package/components/digi-list.js +1 -1
- package/components/digi-loader-spinner.js +1 -1
- package/components/digi-media-image.js +1 -1
- package/components/digi-navigation-context-menu.js +1 -1
- package/components/digi-navigation-pagination.js +9 -10
- package/components/digi-navigation-sidebar-button.js +1 -1
- package/components/digi-navigation-sidebar.js +4 -4
- package/components/digi-navigation-vertical-menu-item.js +6 -6
- package/components/digi-navigation-vertical-menu.js +1 -1
- package/components/digi-notification-alert.js +1 -1
- package/components/digi-notification-error-page.js +7 -15
- package/components/digi-progress-circle.js +12 -8
- package/components/digi-progress-indicator.js +7 -3
- package/components/digi-progress-list-item.js +5 -5
- package/components/digi-progress-list.js +2 -2
- package/components/digi-progressbar.js +2 -2
- package/components/digi-quote.js +3 -3
- package/components/digi-table.js +1 -1
- package/components/digi-tablist-panel.js +2 -2
- package/components/digi-tablist.js +5 -5
- package/components/digi-tag-media.js +1 -1
- package/components/digi-tag.js +5 -3
- package/components/digi-tools-feedback-banner.js +1 -1
- package/components/digi-tools-feedback-rating.js +3 -3
- package/components/digi-tools-feedback.js +2 -3
- package/components/digi-tools-languagepicker.js +5 -5
- package/components/digi-typography-heading-jumbo.js +6 -2
- package/components/digi-typography-meta.js +37 -1
- package/components/digi-typography-preamble.js +1 -1
- package/components/digi-typography-time.js +1 -1
- package/components/digi-typography.js +1 -1
- package/components/digi-util-breakpoint-observer.js +1 -1
- package/components/digi-util-detect-click-outside.js +1 -1
- package/components/digi-util-detect-focus-outside.js +1 -1
- package/components/digi-util-intersection-observer.js +1 -1
- package/components/digi-util-keydown-handler.js +1 -1
- package/components/digi-util-keyup-handler.js +1 -1
- package/components/digi-util-resize-observer.js +1 -1
- package/components/index.d.ts +0 -6
- package/components/index.js +1 -5
- package/components/{p-d7211fec.js → p-2b4c472b.js} +1 -11
- package/components/{p-1ee02c0b.js → p-38b0d0c7.js} +1 -2
- package/components/{p-e87d124f.js → p-4b8bc232.js} +1 -1
- package/components/{p-ed121585.js → p-50634baa.js} +1 -1
- package/components/{p-83e38978.js → p-5e487ed4.js} +1 -1
- package/components/{p-dfa85da0.js → p-8a1aaa8e.js} +6 -6
- package/components/{p-809fd710.js → p-918e9955.js} +2 -2
- package/components/{p-23d4119d.js → p-950b05b1.js} +1 -1
- package/components/{p-f034b64e.js → p-aa59e5c0.js} +1 -1
- package/components/{p-af7ab137.js → p-d08de295.js} +1 -1
- package/components/{p-648cd0b2.js → p-ef49c2f8.js} +4 -5
- package/components/{p-2bfb4163.js → p-f0bdf339.js} +1 -1
- package/components/{p-71554a36.js → p-f3c5a743.js} +1 -1
- package/custom-elements.json +11 -120
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/digi-button_6.cjs.entry.js +246 -2301
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +3 -4
- package/dist/cjs/digi-chart-line.cjs.entry.js +2314 -0
- package/dist/cjs/digi-code-block_3.cjs.entry.js +3 -4
- package/dist/cjs/digi-code-example.cjs.entry.js +7 -5
- package/dist/cjs/digi-dialog.cjs.entry.js +3 -4
- package/dist/cjs/digi-expandable-accordion.cjs.entry.js +3 -4
- package/dist/cjs/digi-footer.cjs.entry.js +3 -4
- package/dist/cjs/digi-form-error-list.cjs.entry.js +3 -4
- package/dist/cjs/digi-form-receipt.cjs.entry.js +3 -4
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +3 -4
- package/dist/cjs/digi-header-navigation.cjs.entry.js +3 -4
- package/dist/cjs/digi-header.cjs.entry.js +4 -5
- package/dist/cjs/digi-icon-chart_2.cjs.entry.js +53 -0
- package/dist/cjs/digi-icon-language-outline_4.cjs.entry.js +5 -5
- package/dist/cjs/digi-icon-x.cjs.entry.js +30 -0
- package/dist/cjs/digi-layout-block.cjs.entry.js +47 -0
- package/dist/cjs/digi-loader-spinner.cjs.entry.js +1 -1
- package/dist/cjs/digi-logo_2.cjs.entry.js +1 -1
- package/dist/cjs/digi-media-image_2.cjs.entry.js +1 -1
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +9 -10
- package/dist/cjs/digi-navigation-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +6 -6
- package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +1 -1
- package/dist/cjs/digi-notification-alert.cjs.entry.js +5 -6
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +7 -15
- package/dist/cjs/digi-progress-circle.cjs.entry.js +12 -8
- package/dist/cjs/digi-progress-indicator.cjs.entry.js +7 -3
- package/dist/cjs/digi-progress-list-item.cjs.entry.js +5 -5
- package/dist/cjs/digi-progress-list.cjs.entry.js +1 -1
- package/dist/cjs/digi-progressbar.cjs.entry.js +2 -2
- package/dist/cjs/digi-quote.cjs.entry.js +1 -1
- package/dist/cjs/digi-table.cjs.entry.js +1 -1
- package/dist/cjs/digi-tablist-panel.cjs.entry.js +2 -2
- package/dist/cjs/digi-tablist.cjs.entry.js +5 -5
- package/dist/cjs/digi-tag-media.cjs.entry.js +2 -2
- package/dist/cjs/digi-tag.cjs.entry.js +3 -2
- package/dist/cjs/digi-tools-feedback-banner.cjs.entry.js +1 -1
- package/dist/cjs/digi-tools-feedback-rating.cjs.entry.js +2 -2
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +4 -5
- package/dist/cjs/digi-tools-languagepicker.cjs.entry.js +3 -3
- package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +6 -2
- package/dist/cjs/digi-typography-meta.cjs.entry.js +1 -1
- package/dist/cjs/digi-typography-preamble.cjs.entry.js +1 -1
- package/dist/cjs/digi-typography-time.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-detect-click-outside.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-detect-focus-outside.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-keydown-handler.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-keyup-handler.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-resize-observer.cjs.entry.js +1 -1
- package/dist/cjs/index-cfa8e9be.js +18 -30
- package/dist/cjs/index.cjs.js +22 -35
- package/dist/cjs/layout-block-container.enum-52ae6994.js +8 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{tools-feedback-variation.enum-4547e1e3.js → tools-feedback-variation.enum-2ac9956e.js} +0 -10
- package/dist/cjs/{layout-container-max-width.enum-7e637f44.js → typography-variation.enum-d7083728.js} +6 -7
- package/dist/collection/collection-manifest.json +0 -3
- package/dist/collection/components/_code/code-example/code-example.js +7 -5
- package/dist/collection/components/_loader/loader-spinner/loader-spinner.css +1 -0
- package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.css +85 -172
- package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.js +190 -62
- package/dist/collection/components/_navigation/navigation-context-menu-legacy/navigation-context-menu.js +5 -5
- package/dist/collection/components/_navigation/navigation-pagination/navigation-pagination.js +6 -6
- package/dist/collection/components/_navigation/navigation-sidebar/navigation-sidebar.js +2 -2
- package/dist/collection/components/_navigation/navigation-sidebar-button/navigation-sidebar-button.js +1 -1
- package/dist/collection/components/_navigation/navigation-tablist/navigation-tablist.js +5 -5
- package/dist/collection/components/_navigation/navigation-tablist-panel/tablist-panel.js +2 -2
- package/dist/collection/components/_navigation/navigation-vertical-menu/navigation-vertical-menu.js +1 -1
- package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.js +6 -6
- package/dist/collection/components/_notification/notification-alert/notification-alert.js +2 -2
- package/dist/collection/components/_notification/notification-error-page/illustrations/illustrations.js +7 -7
- package/dist/collection/components/_notification/notification-error-page/notification-error-page.js +3 -3
- package/dist/collection/components/_progress/progress-circle/progress-circle.js +12 -8
- package/dist/collection/components/_progress/progress-indicator/progress-indicator.js +7 -3
- package/dist/collection/components/_progress/progress-list/progress-list.js +1 -1
- package/dist/collection/components/_progress/progress-list-item/progress-list-item.js +5 -5
- package/dist/collection/components/_progress/progressbar/progressbar.js +2 -2
- package/dist/collection/components/_quote/quote/quote.js +1 -2
- package/dist/collection/components/_table/table/table.js +1 -1
- package/dist/collection/components/_tag/tag/tag.css +10 -0
- package/dist/collection/components/_tag/tag/tag.js +25 -1
- package/dist/collection/components/_tag/tag-media/tag-media.js +2 -2
- package/dist/collection/components/_tools/tools-feedback/tools-feedback.js +1 -1
- package/dist/collection/components/_tools/tools-feedback-banner/tools-feedback-banner.js +1 -1
- package/dist/collection/components/_tools/tools-feedback-rating/tools-feedback-rating.js +2 -2
- package/dist/collection/components/_tools/tools-languagepicker/tools-languagepicker.js +4 -4
- package/dist/collection/components/_typography/typography/typography.js +1 -1
- package/dist/collection/components/_typography/typography-heading-jumbo/typography-heading-jumbo.js +6 -2
- package/dist/collection/components/_typography/typography-meta/typography-meta.js +1 -1
- package/dist/collection/components/_typography/typography-preamble/typography-preamble.js +1 -1
- package/dist/collection/components/_typography/typography-time/typography-time.js +1 -1
- package/dist/collection/components/_util/util-breakpoint-observer/util-breakpoint-observer.js +1 -1
- package/dist/collection/components/_util/util-detect-click-outside/util-detect-click-outside.js +1 -1
- package/dist/collection/components/_util/util-detect-focus-outside/util-detect-focus-outside.js +1 -1
- package/dist/collection/components/_util/util-intersection-observer/util-intersection-observer.js +1 -1
- package/dist/collection/components/_util/util-keydown-handler/util-keydown-handler.js +1 -1
- package/dist/collection/components/_util/util-keyup-handler/util-keyup-handler.js +1 -1
- package/dist/collection/components/_util/util-resize-observer/util-resize-observer.js +1 -1
- package/dist/collection/design-tokens/components/_navigation-context-menu.variables.scss +3 -47
- package/dist/collection/design-tokens/css/variables.css +3 -0
- package/dist/collection/design-tokens/scss/variables.scss +3 -0
- package/dist/collection/design-tokens/styleguide/web.json +57 -0
- package/dist/collection/design-tokens/styleguide/web.scss +3 -0
- package/dist/collection/enums.js +0 -2
- package/dist/collection/interfaces.js +0 -1
- package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-context-menu.variables.scss +41 -45
- package/dist/digi-arbetsformedlingen/design-tokens/css/variables.css +3 -0
- package/dist/digi-arbetsformedlingen/design-tokens/scss/variables.scss +3 -0
- package/dist/digi-arbetsformedlingen/design-tokens/styleguide/web.json +57 -0
- package/dist/digi-arbetsformedlingen/design-tokens/styleguide/web.scss +3 -0
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/p-005c72ca.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-028dd0d4.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-5a7a3e3d.entry.js → p-04ca1ba6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-0551a242.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-a64f6920.entry.js → p-0f485fa7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-14368210.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-16aa5a85.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-b1759898.entry.js → p-1d3f7336.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a4727186.entry.js → p-20a65f1c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-2af9b440.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-d3ad14b2.entry.js → p-2f79bfcc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-11a56b7a.entry.js → p-346297b2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-ca626e5c.entry.js → p-349f73d9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6b57023d.entry.js → p-3ee7d913.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-816ed242.entry.js → p-3fde4aec.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-40a81c4a.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-edda9cea.entry.js → p-419d99f0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-4638e6b1.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-c2bec230.entry.js → p-48664690.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-4fa41b6b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-bbad90a7.entry.js → p-57665401.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-59d1de44.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-64609e83.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-61e92fa9.entry.js → p-66b0d3c6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0a6f6df3.entry.js → p-68886e60.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-699e385a.entry.js → p-7bbee718.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-7f4f58d5.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-81cac8dd.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-860e37c2.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-8f42a48e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-9a53b638.entry.js → p-9657af86.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9d5f4dd0.entry.js → p-966ea804.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-9a06e85b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-cccdb2c8.entry.js → p-9d8d64fa.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-caf79640.entry.js → p-a6fcc0f7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-a7970fe3.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-eb7ca274.entry.js → p-affe6eac.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-b77ea3a1.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-70d542da.entry.js → p-ba740002.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-bad82d8a.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-bd56d622.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-c16371b2.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-7b7c092f.entry.js → p-c16e6afe.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-c2a5da97.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-8fc1143f.js → p-c2ee26cb.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c750cc28.entry.js → p-d630f2e9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9c72fecd.entry.js → p-e07fed59.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-e361c7bb.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-edd43c5d.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-ee5f2630.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-eedd8fdb.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-305a1547.entry.js → p-f0cdaac5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0873a381.entry.js → p-f427db52.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-22beda0f.entry.js → p-f84d9dea.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-fa7824e9.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-fa890d2b.entry.js +1 -0
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/digi-bar-chart.entry.js +1 -1
- package/dist/esm/digi-button_6.entry.js +243 -2298
- package/dist/esm/digi-calendar-datepicker.entry.js +3 -4
- package/dist/esm/digi-chart-line.entry.js +2310 -0
- package/dist/esm/digi-code-block_3.entry.js +3 -4
- package/dist/esm/digi-code-example.entry.js +7 -5
- package/dist/esm/digi-dialog.entry.js +3 -4
- package/dist/esm/digi-expandable-accordion.entry.js +3 -4
- package/dist/esm/digi-footer.entry.js +3 -4
- package/dist/esm/digi-form-error-list.entry.js +3 -4
- package/dist/esm/digi-form-receipt.entry.js +3 -4
- package/dist/esm/digi-form-select-filter.entry.js +3 -4
- package/dist/esm/digi-header-navigation.entry.js +3 -4
- package/dist/esm/digi-header.entry.js +3 -4
- package/dist/esm/digi-icon-chart_2.entry.js +48 -0
- package/dist/esm/digi-icon-language-outline_4.entry.js +5 -5
- package/dist/esm/digi-icon-x.entry.js +26 -0
- package/dist/esm/digi-layout-block.entry.js +43 -0
- package/dist/esm/digi-loader-spinner.entry.js +1 -1
- package/dist/esm/digi-logo_2.entry.js +1 -1
- package/dist/esm/digi-media-image_2.entry.js +1 -1
- package/dist/esm/digi-navigation-pagination.entry.js +9 -10
- package/dist/esm/digi-navigation-sidebar.entry.js +2 -2
- package/dist/esm/digi-navigation-vertical-menu-item.entry.js +6 -6
- package/dist/esm/digi-navigation-vertical-menu.entry.js +1 -1
- package/dist/esm/digi-notification-alert.entry.js +5 -6
- package/dist/esm/digi-notification-error-page.entry.js +7 -15
- package/dist/esm/digi-progress-circle.entry.js +12 -8
- package/dist/esm/digi-progress-indicator.entry.js +7 -3
- package/dist/esm/digi-progress-list-item.entry.js +5 -5
- package/dist/esm/digi-progress-list.entry.js +1 -1
- package/dist/esm/digi-progressbar.entry.js +2 -2
- package/dist/esm/digi-quote.entry.js +1 -1
- package/dist/esm/digi-table.entry.js +1 -1
- package/dist/esm/digi-tablist-panel.entry.js +2 -2
- package/dist/esm/digi-tablist.entry.js +5 -5
- package/dist/esm/digi-tag-media.entry.js +2 -2
- package/dist/esm/digi-tag.entry.js +3 -2
- package/dist/esm/digi-tools-feedback-banner.entry.js +1 -1
- package/dist/esm/digi-tools-feedback-rating.entry.js +2 -2
- package/dist/esm/digi-tools-feedback.entry.js +4 -5
- package/dist/esm/digi-tools-languagepicker.entry.js +3 -3
- package/dist/esm/digi-typography-heading-jumbo.entry.js +6 -2
- package/dist/esm/digi-typography-meta.entry.js +1 -1
- package/dist/esm/digi-typography-preamble.entry.js +1 -1
- package/dist/esm/digi-typography-time.entry.js +1 -1
- package/dist/esm/digi-util-breakpoint-observer.entry.js +1 -1
- package/dist/esm/digi-util-detect-click-outside.entry.js +1 -1
- package/dist/esm/digi-util-detect-focus-outside.entry.js +1 -1
- package/dist/esm/digi-util-keydown-handler.entry.js +1 -1
- package/dist/esm/digi-util-keyup-handler.entry.js +1 -1
- package/dist/esm/digi-util-resize-observer.entry.js +1 -1
- package/dist/esm/index-8e318bb2.js +18 -30
- package/dist/esm/index.js +3 -4
- package/dist/esm/layout-block-container.enum-29d52ee9.js +8 -0
- package/dist/esm/{linear-f59f8318.js → linear-ef018ffb.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tools-feedback-variation.enum-92d10df2.js → tools-feedback-variation.enum-45abb679.js} +1 -11
- package/dist/esm/{layout-container-max-width.enum-c40018ac.js → typography-variation.enum-d9fdbf06.js} +7 -8
- package/dist/types/components/_code/code-example/code-example.d.ts +1 -0
- package/dist/types/components/_navigation/navigation-context-menu/navigation-context-menu.d.ts +52 -14
- package/dist/types/components/_navigation/navigation-context-menu/navigation-context-menu.types.d.ts +7 -3
- package/dist/types/components/_progress/progress-circle/progress-circle.d.ts +4 -0
- package/dist/types/components/_progress/progress-indicator/progress-indicator.d.ts +4 -0
- package/dist/types/components/_quote/quote/quote.d.ts +0 -1
- package/dist/types/components/_tag/tag/tag.d.ts +4 -0
- package/dist/types/components/_tools/tools-languagepicker/tools-languagepicker.d.ts +1 -1
- package/dist/types/components/_typography/typography-heading-jumbo/typography-heading-jumbo.d.ts +4 -0
- package/dist/types/components.d.ts +77 -220
- package/dist/types/enums.d.ts +0 -2
- package/dist/types/interfaces.d.ts +0 -1
- package/hydrate/index.js +250 -451
- package/hydrate/index.mjs +250 -451
- package/package.json +1 -1
- package/components/digi-navigation-dropdown.d.ts +0 -11
- package/components/digi-navigation-dropdown.js +0 -6
- package/components/digi-quote-multi-container.d.ts +0 -11
- package/components/digi-quote-multi-container.js +0 -39
- package/components/digi-quote-single.d.ts +0 -11
- package/components/digi-quote-single.js +0 -63
- package/components/p-3f827c1d.js +0 -39
- package/components/p-8fa816d6.js +0 -8
- package/components/p-e308ef6b.js +0 -221
- package/dist/cjs/digi-context-menu.cjs.entry.js +0 -132
- package/dist/cjs/digi-icon-check.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +0 -30
- package/dist/cjs/digi-layout-block_2.cjs.entry.js +0 -92
- package/dist/cjs/digi-navigation-dropdown.cjs.entry.js +0 -188
- package/dist/cjs/digi-quote-multi-container.cjs.entry.js +0 -23
- package/dist/cjs/digi-quote-single.cjs.entry.js +0 -33
- package/dist/cjs/quote-single-variation.enum-53f94dbc.js +0 -8
- package/dist/cjs/typography-variation.enum-5b035b3b.js +0 -7
- package/dist/collection/components/_navigation/navigation-dropdown/navigation-dropdown.css +0 -319
- package/dist/collection/components/_navigation/navigation-dropdown/navigation-dropdown.js +0 -539
- package/dist/collection/components/_navigation/navigation-dropdown/navigation-dropdown.types.js +0 -1
- package/dist/collection/components/_quote/quote-multi-container/quote-multi-container-heading-level.enum.js +0 -9
- package/dist/collection/components/_quote/quote-multi-container/quote-multi-container.css +0 -26
- package/dist/collection/components/_quote/quote-multi-container/quote-multi-container.js +0 -86
- package/dist/collection/components/_quote/quote-single/quote-single-variation.enum.js +0 -6
- package/dist/collection/components/_quote/quote-single/quote.css +0 -324
- package/dist/collection/components/_quote/quote-single/quote.js +0 -141
- package/dist/collection/design-tokens/components/_quote-quote-multi-container.variables.scss +0 -5
- package/dist/collection/design-tokens/components/_quote-single.variables.scss +0 -14
- package/dist/digi-arbetsformedlingen/design-tokens/components/_quote-quote-multi-container.variables.scss +0 -5
- package/dist/digi-arbetsformedlingen/design-tokens/components/_quote-single.variables.scss +0 -14
- package/dist/digi-arbetsformedlingen/p-02646d18.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-0eac1bee.js +0 -1
- package/dist/digi-arbetsformedlingen/p-125dd887.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-167234fc.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-195cf497.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-25faef21.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-300aa9ef.js +0 -1
- package/dist/digi-arbetsformedlingen/p-331e95be.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4028ad65.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-45fe2828.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4c6f74fb.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4e9b1820.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-51706444.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7cb35359.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-81e86ac1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-848aa358.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-87c1f5c7.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-8fa816d6.js +0 -1
- package/dist/digi-arbetsformedlingen/p-903b00e6.js +0 -1
- package/dist/digi-arbetsformedlingen/p-994395cb.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a06dd644.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a272c883.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a6d806e5.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d7fe697e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-de4c4238.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e092908a.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e661462a.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e8ae7a8d.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f2339f8e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f4c3f47e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-fb8ac3de.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-fc4dc147.entry.js +0 -1
- package/dist/esm/digi-context-menu.entry.js +0 -128
- package/dist/esm/digi-icon-check.entry.js +0 -26
- package/dist/esm/digi-icon-chevron-down.entry.js +0 -26
- package/dist/esm/digi-layout-block_2.entry.js +0 -87
- package/dist/esm/digi-navigation-dropdown.entry.js +0 -184
- package/dist/esm/digi-quote-multi-container.entry.js +0 -19
- package/dist/esm/digi-quote-single.entry.js +0 -29
- package/dist/esm/quote-single-variation.enum-be92a9f7.js +0 -8
- package/dist/esm/typography-variation.enum-38d1ef90.js +0 -7
- package/dist/types/components/_navigation/navigation-dropdown/navigation-dropdown.d.ts +0 -44
- package/dist/types/components/_navigation/navigation-dropdown/navigation-dropdown.types.d.ts +0 -18
- package/dist/types/components/_quote/quote-multi-container/quote-multi-container-heading-level.enum.d.ts +0 -8
- package/dist/types/components/_quote/quote-multi-container/quote-multi-container.d.ts +0 -25
- package/dist/types/components/_quote/quote-single/quote-single-variation.enum.d.ts +0 -5
- package/dist/types/components/_quote/quote-single/quote.d.ts +0 -40
package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.js
CHANGED
|
@@ -15,6 +15,9 @@ function deserializeProp(prop) {
|
|
|
15
15
|
export class ContextMenu {
|
|
16
16
|
constructor() {
|
|
17
17
|
this.itemRefs = {};
|
|
18
|
+
this.visible = false;
|
|
19
|
+
this.activeItemIdx = undefined;
|
|
20
|
+
this.selectItemIdx = 0;
|
|
18
21
|
this.afId = randomIdGenerator('digi-context-menu');
|
|
19
22
|
this.afIcon = undefined;
|
|
20
23
|
this.afTitle = undefined;
|
|
@@ -24,9 +27,6 @@ export class ContextMenu {
|
|
|
24
27
|
this.afAriaLabel = undefined;
|
|
25
28
|
this.afMenuPosition = 'left-bottom';
|
|
26
29
|
this.afActiveItem = undefined;
|
|
27
|
-
this.items = [];
|
|
28
|
-
this.visible = false;
|
|
29
|
-
this.activeItemIdx = undefined;
|
|
30
30
|
}
|
|
31
31
|
clickHandler(e) {
|
|
32
32
|
const target = e.target;
|
|
@@ -43,6 +43,24 @@ export class ContextMenu {
|
|
|
43
43
|
this.afBlur.emit();
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
+
syncActiveItem() {
|
|
47
|
+
if (this.afActiveItem != null) {
|
|
48
|
+
const menuItems = this.afMenuItems;
|
|
49
|
+
this.activeItemIdx = menuItems.findIndex((item) => item.id.toString() === this.afActiveItem);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
syncItems() {
|
|
53
|
+
this.afMenuItems = deserializeProp(this.afMenuItems);
|
|
54
|
+
}
|
|
55
|
+
componentWillLoad() {
|
|
56
|
+
this.syncItems();
|
|
57
|
+
this.syncActiveItem();
|
|
58
|
+
}
|
|
59
|
+
get digiIcon() {
|
|
60
|
+
if (this.afIcon != null) {
|
|
61
|
+
return `digi-icon-${this.afIcon}`;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
46
64
|
hideMenu() {
|
|
47
65
|
this.visible = false;
|
|
48
66
|
this.afToggleMenu.emit(this.visible);
|
|
@@ -51,66 +69,155 @@ export class ContextMenu {
|
|
|
51
69
|
this.visible = true;
|
|
52
70
|
this.afToggleMenu.emit(this.visible);
|
|
53
71
|
}
|
|
54
|
-
|
|
55
|
-
|
|
72
|
+
isLink() {
|
|
73
|
+
if (this.afMenuItems && this.afMenuItems.length > 0) {
|
|
74
|
+
const itemToCheck = this.afMenuItems[0];
|
|
75
|
+
return itemToCheck.type && itemToCheck.type === 'link';
|
|
76
|
+
}
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
async handleToggle() {
|
|
56
80
|
if (this.visible) {
|
|
57
81
|
this.hideMenu();
|
|
58
|
-
|
|
82
|
+
this.focusOnButton();
|
|
59
83
|
}
|
|
60
84
|
else {
|
|
61
85
|
this.showMenu();
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
86
|
+
if (!this.isLink()) {
|
|
87
|
+
const idx = this.activeItemIdx || 0;
|
|
88
|
+
const item = this.afMenuItems[idx];
|
|
89
|
+
setTimeout(() => this.itemRefs[item.id].focus(), 25);
|
|
90
|
+
}
|
|
65
91
|
}
|
|
66
92
|
}
|
|
93
|
+
async focusOnButton() {
|
|
94
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
95
|
+
// @ts-expect-error
|
|
96
|
+
const digiButton = this.buttonRef;
|
|
97
|
+
const button = (await digiButton.afMGetButtonElement());
|
|
98
|
+
button.focus();
|
|
99
|
+
}
|
|
67
100
|
handleChangeItem(item, idx) {
|
|
68
101
|
this.activeItemIdx = idx;
|
|
69
102
|
this.handleToggle();
|
|
70
103
|
this.afChangeItem.emit({ item, idx });
|
|
71
104
|
}
|
|
72
|
-
handleFocusItem(item, idx) {
|
|
73
|
-
this.afFocusItem.emit({ item, idx });
|
|
74
|
-
}
|
|
75
105
|
handleRef(ref, refId, payload) {
|
|
76
106
|
if (refId === 'item') {
|
|
77
107
|
this.itemRefs[payload.id] = ref;
|
|
78
108
|
}
|
|
79
109
|
}
|
|
80
|
-
|
|
81
|
-
if (this.
|
|
82
|
-
this.activeItemIdx
|
|
110
|
+
isActive(idx) {
|
|
111
|
+
if ((this.activeItemIdx !== undefined || this.activeItemIdx !== null) &&
|
|
112
|
+
this.activeItemIdx === idx) {
|
|
113
|
+
return true;
|
|
83
114
|
}
|
|
115
|
+
return false;
|
|
84
116
|
}
|
|
85
|
-
|
|
86
|
-
this.
|
|
117
|
+
isSelected(idx) {
|
|
118
|
+
return this.selectItemIdx === idx;
|
|
87
119
|
}
|
|
88
|
-
|
|
89
|
-
this.
|
|
90
|
-
|
|
120
|
+
nextIdx(idx) {
|
|
121
|
+
if (idx > this.afMenuItems.length - 1) {
|
|
122
|
+
return 0;
|
|
123
|
+
}
|
|
124
|
+
else if (idx < 0) {
|
|
125
|
+
return this.afMenuItems.length - 1;
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
return idx;
|
|
129
|
+
}
|
|
91
130
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
131
|
+
activateItem(idx) {
|
|
132
|
+
const item = this.afMenuItems[idx];
|
|
133
|
+
this.activeItemIdx = idx;
|
|
134
|
+
this.focusItem(idx);
|
|
135
|
+
this.handleChangeItem(item, idx);
|
|
136
|
+
}
|
|
137
|
+
focusItem(idx) {
|
|
138
|
+
var _a;
|
|
139
|
+
const item = this.afMenuItems[idx];
|
|
140
|
+
this.selectItemIdx = idx;
|
|
141
|
+
(_a = this.itemRefs[item.id]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
142
|
+
this.afFocusItem.emit({ item, idx });
|
|
143
|
+
}
|
|
144
|
+
focusCaptured() {
|
|
145
|
+
const menuItems = this.afMenuItems;
|
|
146
|
+
return menuItems.some((item) => this.itemRefs[item.id] === document.activeElement);
|
|
147
|
+
}
|
|
148
|
+
handleKey(e) {
|
|
149
|
+
if (!this.focusCaptured())
|
|
150
|
+
return;
|
|
151
|
+
switch (e.key) {
|
|
152
|
+
case 'ArrowUp':
|
|
153
|
+
this.focusItem(this.nextIdx(this.selectItemIdx - 1));
|
|
154
|
+
break;
|
|
155
|
+
case 'ArrowDown':
|
|
156
|
+
this.focusItem(this.nextIdx(this.selectItemIdx + 1));
|
|
157
|
+
break;
|
|
158
|
+
case 'Escape':
|
|
159
|
+
this.hideMenu();
|
|
160
|
+
this.focusOnButton();
|
|
161
|
+
break;
|
|
162
|
+
case 'Enter':
|
|
163
|
+
case ' ':
|
|
164
|
+
e.preventDefault();
|
|
165
|
+
e.stopPropagation();
|
|
166
|
+
this.activateItem(this.selectItemIdx);
|
|
167
|
+
break;
|
|
168
|
+
default:
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
handleLinkClick(e, item, idx) {
|
|
173
|
+
if (!item.overrideLink) {
|
|
174
|
+
window.location.assign(item.href);
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
e.preventDefault();
|
|
178
|
+
this.handleChangeItem(item, idx);
|
|
95
179
|
}
|
|
96
180
|
}
|
|
181
|
+
renderLink(item, idx) {
|
|
182
|
+
const menuItem = this.afMenuItems[idx];
|
|
183
|
+
return (h("li", { id: `${this.afId}-listbox-item-${item.id}`, key: item.id, class: {
|
|
184
|
+
'digi-navigation-context-menu__item': true,
|
|
185
|
+
'digi-navigation-context-menu__item--link': true,
|
|
186
|
+
'digi-navigation-context-menu__item--active': this.isActive(idx)
|
|
187
|
+
}, dir: this.afDir, lang: this.afLang, ref: (ref) => { var _a; return (_a = this.handleRef) === null || _a === void 0 ? void 0 : _a.call(this, ref, 'item', item); } }, h("a", { "aria-label": item.ariaLabel ? item.ariaLabel : null, href: menuItem.href ? menuItem.href : null, onClick: (e) => this.handleLinkClick(e, item, idx) }, item.title)));
|
|
188
|
+
}
|
|
189
|
+
renderDiv(item, idx) {
|
|
190
|
+
return (h("div", { role: "option", id: `${this.afId}-listbox-item-${item.id}`, key: item.id, class: {
|
|
191
|
+
'digi-navigation-context-menu__item': true,
|
|
192
|
+
'digi-navigation-context-menu__item--active': this.isActive(idx)
|
|
193
|
+
}, dir: this.afDir, lang: this.afLang, "aria-selected": this.isActive(idx).toString(), tabIndex: this.isSelected(idx) ? 0 : -1, onClick: () => { var _a; return (_a = this.handleChangeItem) === null || _a === void 0 ? void 0 : _a.call(this, item, idx); }, ref: (ref) => { var _a; return (_a = this.handleRef) === null || _a === void 0 ? void 0 : _a.call(this, ref, 'item', item); } }, h("div", { class: "content-wrapper" }, h("digi-icon-check", { class: "digi-navigation-context-menu__button-icon", slot: "icon", style: {
|
|
194
|
+
visibility: idx === this.activeItemIdx && this.visible
|
|
195
|
+
? 'visible'
|
|
196
|
+
: 'hidden'
|
|
197
|
+
} }), h("span", { "aria-label": item.ariaLabel ? item.ariaLabel : null }, item.title)), ' '));
|
|
198
|
+
}
|
|
97
199
|
render() {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
const Container = menuItem.type === 'link' ? 'a' : 'div';
|
|
101
|
-
const containerArgs = menuItem.type === 'link'
|
|
102
|
-
? { href: menuItem.href, tabindex: -1 }
|
|
103
|
-
: {};
|
|
104
|
-
const showIcon = menuItem.type !== 'link';
|
|
105
|
-
return (h(Container, Object.assign({ class: "content-wrapper" }, containerArgs), showIcon && (h("digi-icon-check", { class: "digi-navigation-context-menu__button-icon", slot: "icon", style: {
|
|
106
|
-
visibility: idx === this.activeItemIdx && this.visible
|
|
107
|
-
? 'visible'
|
|
108
|
-
: 'hidden'
|
|
109
|
-
} })), h("p", null, item.title)));
|
|
110
|
-
} }, h("digi-button", { key: 'b8e22491a441218e7f2d47ff7a64acdbceb8291a', id: `${this.afId}-trigger`, afInputRef: (ref) => (this.buttonRef = ref), onClick: () => this.handleToggle(), afVariation: "function", afAriaControls: this.afId, afAriaExpanded: this.visible, afAriaLabel: this.afAriaLabel || null, class: {
|
|
200
|
+
const menuItems = this.afMenuItems;
|
|
201
|
+
return (h(Host, { key: '8b9ddb1d31e294505f5ae3f226510ba587ecfc04', class: 'digi-navigation-context-menu' }, h("div", { key: 'bcc94554eb00a58409b7cae6a5c3668767ddb26d', id: `${this.afId}-identifier`, class: "digi-navigation-context-menu--id-wrapper" }, h("digi-button", { key: '287e0f1f1afba43c8250185e5ea589aa26c5367c', id: `${this.afId}-trigger`, ref: (ref) => (this.buttonRef = ref), onClick: () => this.handleToggle(), afVariation: "function", afAriaControls: `${this.afId}-dropdown`, afAriaExpanded: this.visible, afAriaLabel: this.afAriaLabel || null, class: {
|
|
111
202
|
'digi-navigation-context-menu__trigger-button': true,
|
|
112
203
|
'digi-navigation-context-menu--active': this.visible
|
|
113
|
-
} }, !!this.afIcon && h(this.digiIcon, { key: '
|
|
204
|
+
} }, !!this.afIcon && h(this.digiIcon, { key: 'db42fdd3432f87096be2e5da8b3e05732b0aedf4', slot: "icon" }), this.afTitle, h("digi-icon-chevron-down", { key: '7977ded8cc5a7aa0aec7e2735dc38f95a4d31a06', class: "digi-navigation-context-menu__toggle-icon", slot: "icon-secondary" })), h("div", { key: '5ff21d52bb2f57c8777bd04bf906730c960bc054', class: "digi-navigation-context-menu__list" }, h("div", { key: 'a8e81ab1b3c371ef501bf96f7c14c11d54a97836', onKeyDown: (e) => {
|
|
205
|
+
this.handleKey(e);
|
|
206
|
+
}, id: `${this.afId}-dropdown`, style: {
|
|
207
|
+
visibility: this.visible ? 'visible' : 'hidden'
|
|
208
|
+
}, role: this.isLink() ? 'list' : 'listbox', "aria-labelledby": `${this.afId}-trigger`, class: {
|
|
209
|
+
'dropdown-wrapper': true,
|
|
210
|
+
'dropdown-wrapper--visible': this.visible,
|
|
211
|
+
'dropdown-wrapper--position-right': this.afMenuPosition === 'right-bottom',
|
|
212
|
+
'dropdown-wrapper--position-center': this.afMenuPosition === 'center-bottom'
|
|
213
|
+
} }, menuItems &&
|
|
214
|
+
menuItems.map((item, idx) => {
|
|
215
|
+
const menuItem = menuItems[idx];
|
|
216
|
+
if (menuItem.type && (menuItem === null || menuItem === void 0 ? void 0 : menuItem.type) === 'link') {
|
|
217
|
+
return this.renderLink(item, idx);
|
|
218
|
+
}
|
|
219
|
+
return this.renderDiv(item, idx);
|
|
220
|
+
}))))));
|
|
114
221
|
}
|
|
115
222
|
static get is() { return "digi-context-menu"; }
|
|
116
223
|
static get originalStyleUrls() {
|
|
@@ -136,8 +243,11 @@ export class ContextMenu {
|
|
|
136
243
|
"required": false,
|
|
137
244
|
"optional": false,
|
|
138
245
|
"docs": {
|
|
139
|
-
"tags": [
|
|
140
|
-
|
|
246
|
+
"tags": [{
|
|
247
|
+
"name": "en",
|
|
248
|
+
"text": "Sets a unique Id. If not set, one will be created"
|
|
249
|
+
}],
|
|
250
|
+
"text": "(Frivillig) Om du vill att komponenten ska ha ett unikt ID, kan du skicka in detta h\u00E4r, annars genereras ett automatiskt"
|
|
141
251
|
},
|
|
142
252
|
"getter": false,
|
|
143
253
|
"setter": false,
|
|
@@ -154,10 +264,13 @@ export class ContextMenu {
|
|
|
154
264
|
"references": {}
|
|
155
265
|
},
|
|
156
266
|
"required": false,
|
|
157
|
-
"optional":
|
|
267
|
+
"optional": true,
|
|
158
268
|
"docs": {
|
|
159
|
-
"tags": [
|
|
160
|
-
|
|
269
|
+
"tags": [{
|
|
270
|
+
"name": "en",
|
|
271
|
+
"text": "Sets which icon that should be shown"
|
|
272
|
+
}],
|
|
273
|
+
"text": "Anv\u00E4nds till att v\u00E4lja ikon som visas, skriv i namnet p\u00E5 ikonen"
|
|
161
274
|
},
|
|
162
275
|
"getter": false,
|
|
163
276
|
"setter": false,
|
|
@@ -175,8 +288,11 @@ export class ContextMenu {
|
|
|
175
288
|
"required": false,
|
|
176
289
|
"optional": false,
|
|
177
290
|
"docs": {
|
|
178
|
-
"tags": [
|
|
179
|
-
|
|
291
|
+
"tags": [{
|
|
292
|
+
"name": "en",
|
|
293
|
+
"text": "Sets the title of the button"
|
|
294
|
+
}],
|
|
295
|
+
"text": "S\u00E4tter titeln p\u00E5 knappen"
|
|
180
296
|
},
|
|
181
297
|
"getter": false,
|
|
182
298
|
"setter": false,
|
|
@@ -197,11 +313,14 @@ export class ContextMenu {
|
|
|
197
313
|
}
|
|
198
314
|
}
|
|
199
315
|
},
|
|
200
|
-
"required":
|
|
316
|
+
"required": true,
|
|
201
317
|
"optional": false,
|
|
202
318
|
"docs": {
|
|
203
|
-
"tags": [
|
|
204
|
-
|
|
319
|
+
"tags": [{
|
|
320
|
+
"name": "en",
|
|
321
|
+
"text": "Sets the title of the button"
|
|
322
|
+
}],
|
|
323
|
+
"text": "Lista av typen ContextMenuItem som"
|
|
205
324
|
},
|
|
206
325
|
"getter": false,
|
|
207
326
|
"setter": false,
|
|
@@ -217,16 +336,19 @@ export class ContextMenu {
|
|
|
217
336
|
"references": {
|
|
218
337
|
"HTMLDir": {
|
|
219
338
|
"location": "import",
|
|
220
|
-
"path": "
|
|
221
|
-
"id": "src/components/_navigation/navigation-
|
|
339
|
+
"path": "./navigation-context-menu.types",
|
|
340
|
+
"id": "src/components/_navigation/navigation-context-menu/navigation-context-menu.types.ts::HTMLDir"
|
|
222
341
|
}
|
|
223
342
|
}
|
|
224
343
|
},
|
|
225
344
|
"required": false,
|
|
226
345
|
"optional": true,
|
|
227
346
|
"docs": {
|
|
228
|
-
"tags": [
|
|
229
|
-
|
|
347
|
+
"tags": [{
|
|
348
|
+
"name": "en",
|
|
349
|
+
"text": "Sets dir-attribute"
|
|
350
|
+
}],
|
|
351
|
+
"text": "S\u00E4tter dir-attributet"
|
|
230
352
|
},
|
|
231
353
|
"getter": false,
|
|
232
354
|
"setter": false,
|
|
@@ -244,8 +366,11 @@ export class ContextMenu {
|
|
|
244
366
|
"required": false,
|
|
245
367
|
"optional": true,
|
|
246
368
|
"docs": {
|
|
247
|
-
"tags": [
|
|
248
|
-
|
|
369
|
+
"tags": [{
|
|
370
|
+
"name": "en",
|
|
371
|
+
"text": "Sets lang-attribute"
|
|
372
|
+
}],
|
|
373
|
+
"text": "S\u00E4tter lang-attributet"
|
|
249
374
|
},
|
|
250
375
|
"getter": false,
|
|
251
376
|
"setter": false,
|
|
@@ -261,10 +386,13 @@ export class ContextMenu {
|
|
|
261
386
|
"references": {}
|
|
262
387
|
},
|
|
263
388
|
"required": false,
|
|
264
|
-
"optional":
|
|
389
|
+
"optional": true,
|
|
265
390
|
"docs": {
|
|
266
|
-
"tags": [
|
|
267
|
-
|
|
391
|
+
"tags": [{
|
|
392
|
+
"name": "en",
|
|
393
|
+
"text": "Sets aria-label on expandable button"
|
|
394
|
+
}],
|
|
395
|
+
"text": "S\u00E4tter aria-label p\u00E5 expanderbar knapp"
|
|
268
396
|
},
|
|
269
397
|
"getter": false,
|
|
270
398
|
"setter": false,
|
|
@@ -275,13 +403,13 @@ export class ContextMenu {
|
|
|
275
403
|
"type": "string",
|
|
276
404
|
"mutable": false,
|
|
277
405
|
"complexType": {
|
|
278
|
-
"original": "
|
|
406
|
+
"original": "ContextMenuPosition",
|
|
279
407
|
"resolved": "\"center-bottom\" | \"left-bottom\" | \"right-bottom\"",
|
|
280
408
|
"references": {
|
|
281
|
-
"
|
|
409
|
+
"ContextMenuPosition": {
|
|
282
410
|
"location": "import",
|
|
283
|
-
"path": "
|
|
284
|
-
"id": "src/components/_navigation/navigation-
|
|
411
|
+
"path": "./navigation-context-menu.types",
|
|
412
|
+
"id": "src/components/_navigation/navigation-context-menu/navigation-context-menu.types.ts::ContextMenuPosition"
|
|
285
413
|
}
|
|
286
414
|
}
|
|
287
415
|
},
|
|
@@ -332,9 +460,9 @@ export class ContextMenu {
|
|
|
332
460
|
}
|
|
333
461
|
static get states() {
|
|
334
462
|
return {
|
|
335
|
-
"items": {},
|
|
336
463
|
"visible": {},
|
|
337
|
-
"activeItemIdx": {}
|
|
464
|
+
"activeItemIdx": {},
|
|
465
|
+
"selectItemIdx": {}
|
|
338
466
|
};
|
|
339
467
|
}
|
|
340
468
|
static get events() {
|
|
@@ -228,13 +228,13 @@ export class NavigationContextMenu {
|
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
render() {
|
|
231
|
-
return (h("div", { key: '
|
|
231
|
+
return (h("div", { key: 'c807f0ab3459be7e91d946e61293295181bcd80c', class: Object.assign({ 'digi-navigation-context-menu': true }, this.cssModifiers), id: `${this.afId}-identifier` }, h("digi-util-keydown-handler", { key: 'ff38f5fb09e9bdcf47d1c14385f9d6863e6f1d9f', onAfOnEsc: () => this.setInactive(true) }, h("digi-button", { key: '440a855733e0b2f6ff0c9729141eefa2e9a8b688', ref: (el) => (this._toggleButton = el), onClick: (e) => this.toggleMenu(e), id: `${this.afId}-trigger`, "af-variation": "function", "af-aria-controls": this.afId, "af-aria-expanded": this.isActive ? 'true' : 'false', class: {
|
|
232
232
|
'digi-navigation-context-menu__trigger-button': true,
|
|
233
233
|
'digi-navigation-context-menu--active': this.isActive
|
|
234
|
-
} }, !!this.afIcon && h(this.digiIcon, { key: '
|
|
234
|
+
} }, !!this.afIcon && h(this.digiIcon, { key: 'e36465dff1c19c4854982849be74c0075fe418b5', slot: "icon" }), this.afText, h("digi-icon-chevron-down", { key: 'f32eab5d3b948ceb36f933aa578d7f8be8deb171', class: "digi-navigation-context-menu__toggle-icon", slot: "icon-secondary" })), h("div", { key: '89b8b4d23790d590bcac9f1ab0992448a4300ebb', class: {
|
|
235
235
|
'digi-navigation-context-menu__content': true,
|
|
236
236
|
'digi-navigation-context-menu__content--hidden': !this.isActive
|
|
237
|
-
} }, h("digi-util-keydown-handler", { key: '
|
|
237
|
+
} }, h("digi-util-keydown-handler", { key: '5a0f489027f45983db0c8a56bf0894636874f53c', onAfOnHome: (e) => this.homeHandler(e), onAfOnEnd: (e) => this.endHandler(e), onAfOnUp: (e) => this.upHandler(e), onAfOnDown: (e) => this.downHandler(e), onAfOnTab: () => this.setInactive(), onAfOnShiftTab: () => this.setInactive() }, h("ul", { key: '117b0505fb7b85f60f325af7e0ea72a15a9ca827', id: this.afId, class: {
|
|
238
238
|
'digi-navigation-context-menu__items': true,
|
|
239
239
|
'digi-navigation-context-menu__items--bordered': this.listItems.length > 4
|
|
240
240
|
}, role: "menu", "aria-describedby": `${this.afId}-trigger` }, this.listItems.map((item) => {
|
|
@@ -245,9 +245,9 @@ export class NavigationContextMenu {
|
|
|
245
245
|
'digi-navigation-context-menu__item--selected': Number(item.index) ===
|
|
246
246
|
Number(this.selectedListItemIndex)
|
|
247
247
|
}, key: item.index, "data-key": item.index, dir: item.dir }, this.showCheckIcon(item.index, item.type) && (h("digi-icon-check", { class: "digi-navigation-context-menu__button-icon", slot: "icon" })), item.type === 'button' && (h("digi-button", { "af-tabindex": "-1", afRole: "menuitemradio", "data-type": item.type, "data-value": item.value, class: "digi-navigation-context-menu__button", afDir: item.dir, afLang: item.lang, onClick: (e) => this.itemClickHandler(e, true), afAriaChecked: this.showCheckIcon(item.index, item.type) }, item.text)), item.type === 'link' && (h("a", { tabindex: "-1", role: "menuitem", class: "digi-navigation-context-menu__link", href: item.href, "data-type": item.type, onClick: (e) => this.itemClickHandler(e), dir: item.dir, lang: item.lang }, item.text))));
|
|
248
|
-
}))))), h("digi-util-mutation-observer", { key: '
|
|
248
|
+
}))))), h("digi-util-mutation-observer", { key: 'fadd9063b8c46ce6d44dc51e7deb85bbdadabf23', hidden: true, ref: (el) => (this._observer = el), onAfOnChange: this.debounce(() => {
|
|
249
249
|
this.generateListItems(this._observer.children);
|
|
250
|
-
}) }, h("slot", { key: '
|
|
250
|
+
}) }, h("slot", { key: '65921a6880190a8fde38409994bae985511c12ba' }))));
|
|
251
251
|
}
|
|
252
252
|
static get is() { return "digi-navigation-context-menu"; }
|
|
253
253
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/_navigation/navigation-pagination/navigation-pagination.js
CHANGED
|
@@ -124,15 +124,15 @@ export class NavigationPagination {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
render() {
|
|
127
|
-
return (h("div", { key: '
|
|
127
|
+
return (h("div", { key: '78a0c9b0111a713414b6054516ca77e1ccbeb005', class: "digi-navigation-pagination" }, h("digi-util-resize-observer", { key: '1041fa4a1646b2fd15b2f1c727e9a660d2c315ec', onAfOnChange: (e) => {
|
|
128
128
|
this.handleResizeObserver(e);
|
|
129
|
-
} }), h("span", { key: '
|
|
129
|
+
} }), h("span", { key: 'ae9b310fe9445e675d0bdfa1a539e5f09144af4b', id: `${this.afId}-aria-label`, "aria-hidden": "true", class: "digi-navigation-pagination__aria-label" }, "Paginering"), h("nav", { key: 'a477d801bdb33ffd80d75d5c6e1620517ce380fc', "aria-labelledby": this.labelledby(), class: `digi-navigation-pagination__pagination ${this.twoRows ? 'digi-navigation-pagination--two-rows' : ''}` }, h("digi-button", { key: '6d484990a96b9922f06e9ec11b948755ae308b3c', onClick: () => this.prevPage(), class: {
|
|
130
130
|
'digi-navigation-pagination__button digi-navigation-pagination__button--previous': true,
|
|
131
131
|
'digi-navigation-pagination__button--hidden': this.currentPage === 1
|
|
132
|
-
}, afVariation: "secondary", afAriaLabel: "F\u00F6reg\u00E5ende" }, h("digi-icon-chevron-left", { key: '
|
|
132
|
+
}, afVariation: "secondary", afAriaLabel: "F\u00F6reg\u00E5ende" }, h("digi-icon-chevron-left", { key: 'a36537d8d5f333778d18be1d8616cd7a65bee6e7', slot: "icon" }), h("span", { key: '03290c16634c64d353378e062bc766e98b2e3044' }, "F\u00F6reg\u00E5ende")), h("digi-button", { key: '10c78fa592a81dc7cf647c1a5fd2c3d643ff2b89', onClick: () => this.nextPage(), class: {
|
|
133
133
|
'digi-navigation-pagination__button digi-navigation-pagination__button--next': true,
|
|
134
134
|
'digi-navigation-pagination__button--hidden': this.currentPage === this.afTotalPages
|
|
135
|
-
}, afVariation: "secondary", afAriaLabel: "N\u00E4sta" }, h("digi-icon-chevron-right", { key: '
|
|
135
|
+
}, afVariation: "secondary", afAriaLabel: "N\u00E4sta" }, h("digi-icon-chevron-right", { key: 'fe6384ea7c761d2ed8b98b973587a73db49d25cc', slot: "icon-secondary" }), h("span", { key: '359b1452f66b801192c0870c70673e3ea60d04fe' }, "N\u00E4sta")), h("div", { key: '9dbc2f31e802dfb49cd5b0ee42a39c72c46f557e', class: "digi-navigation-pagination__pages" }, h("ol", { key: '85e87ec458c7d48ea79f7cea88048bf1f1762fe2', class: "digi-navigation-pagination__page-list" }, this.currentInterval.map((pageValue) => {
|
|
136
136
|
const page = isNaN(pageValue)
|
|
137
137
|
? parseInt(pageValue.replace('…', ''))
|
|
138
138
|
: pageValue;
|
|
@@ -143,10 +143,10 @@ export class NavigationPagination {
|
|
|
143
143
|
}, afVariation: this.currentPage === page
|
|
144
144
|
? ButtonVariation.PRIMARY
|
|
145
145
|
: ButtonVariation.SECONDARY }, h("span", { class: `digi-navigation-pagination__page-text` }, page))));
|
|
146
|
-
})))), this.afTotalResults > 0 && (h("div", { key: '
|
|
146
|
+
})))), this.afTotalResults > 0 && (h("div", { key: '788a812309eb4f14ff76390f644e11820d420a5a', class: {
|
|
147
147
|
'digi-navigation-pagination__result': true,
|
|
148
148
|
'digi-navigation-pagination__result--pages': this.afTotalPages > 1
|
|
149
|
-
}, "aria-hidden": this.afTotalPages > 1 ? 'true' : 'false', id: `${this.afId}-result` }, h("digi-typography", { key: '
|
|
149
|
+
}, "aria-hidden": this.afTotalPages > 1 ? 'true' : 'false', id: `${this.afId}-result` }, h("digi-typography", { key: 'a48519e08c288a011d8f6a34606d650037aac21c' }, h("span", { key: '94205b0d38dd6d2cb980a9e78c9778f4d9a56bcc', id: `${this.afId}-result-show` }, "Visar "), h("strong", { key: '567b3490941c533fbda1b1463b55e4472779f13f', id: `${this.afId}-result-current` }, this.afCurrentResultStart, "-", this.afCurrentResultEnd), h("span", { key: '9189447acda031c0d6864dec369a78099c6f064a', id: `${this.afId}-result-of` }, " av "), h("strong", { key: '5aa4106a61c5bdd3c77033442b9a932b5d762bd0', id: `${this.afId}-result-total` }, this.afTotalResults), this.afResultName && (h("span", { key: 'f665e8c988854f35284242d48ee30923c4c421e2', id: `${this.afId}-result-name` }, ` ${this.afResultName}`)))))));
|
|
150
150
|
}
|
|
151
151
|
static get is() { return "digi-navigation-pagination"; }
|
|
152
152
|
static get encapsulation() { return "scoped"; }
|
|
@@ -278,7 +278,7 @@ export class NavigationSidebar {
|
|
|
278
278
|
};
|
|
279
279
|
}
|
|
280
280
|
render() {
|
|
281
|
-
return (h(Host, { key: '
|
|
281
|
+
return (h(Host, { key: '5626465a5b84eab9eeb95d78922990ed7e12d5e2' }, h("digi-util-breakpoint-observer", { key: '04a1bb4d90251f028d5486c2606f8b56fb9be132' }, h("digi-util-keydown-handler", { key: '0623f5974acc30ef8778d26ba9f3913eb4f04dab', onAfOnEsc: (e) => this.escHandler(e), onAfOnTab: (e) => this.tabHandler(e), onAfOnShiftTab: (e) => this.shiftHandler(e) }, h("div", { key: '9fc53cb121f03c4db8c81e3fc165e5b9a270ad5b', class: "digi-navigation-sidebar", "aria-hidden": !this.afActive ? 'true' : 'false' }, h("div", { key: 'c93b854b2c0d971983d22235258b58bbb08a36a2', "aria-hidden": "true", class: Object.assign({ 'digi-navigation-sidebar__backdrop': true }, this.cssModifiersBackdrop), onClick: (e) => this.backdropClickHandler(e) }), h("div", { key: 'd959f2bd96456de3a598447706da62264edb4ba9', class: Object.assign({ 'digi-navigation-sidebar__wrapper': true }, this.cssModifiers) }, h("div", { key: '7bf5238552a08738c449a3f4deb5f4b38d43c5d0', class: "digi-navigation-sidebar__inner", ref: (el) => {
|
|
282
282
|
this._wrapper = el;
|
|
283
283
|
} }, this.showHeader ? (h("div", { class: {
|
|
284
284
|
'digi-navigation-sidebar__header': true,
|
|
@@ -287,7 +287,7 @@ export class NavigationSidebar {
|
|
|
287
287
|
'digi-navigation-sidebar__header--close-button--end': this.afCloseButtonPosition ===
|
|
288
288
|
NavigationSidebarCloseButtonPosition.END,
|
|
289
289
|
'digi-navigation-sidebar__header--reversed': !!this.afHeading
|
|
290
|
-
} }, this.afHeading && (h(this.afHeadingLevel, { ref: (el) => (this._heading = el), class: "digi-navigation-sidebar__heading", tabindex: "-1" }, this.afHeading)), h("digi-button", { onClick: (e) => this.closeHandler(e), "af-variation": "function", "af-aria-label": this.afCloseButtonAriaLabel, class: "digi-navigation-sidebar__close-button" }, this.afCloseButtonText, h("digi-icon-x", { slot: "icon-secondary" })))) : (h("div", null)), h("div", { key: '
|
|
290
|
+
} }, this.afHeading && (h(this.afHeadingLevel, { ref: (el) => (this._heading = el), class: "digi-navigation-sidebar__heading", tabindex: "-1" }, this.afHeading)), h("digi-button", { onClick: (e) => this.closeHandler(e), "af-variation": "function", "af-aria-label": this.afCloseButtonAriaLabel, class: "digi-navigation-sidebar__close-button" }, this.afCloseButtonText, h("digi-icon-x", { slot: "icon-secondary" })))) : (h("div", null)), h("div", { key: '01acb6fe480569238677836cbe5cd5afa1afd81d', class: "digi-navigation-sidebar__content" }, h("div", { key: '8a174b798ef129fa9fe9ade633e8f7de8d952ae6', class: "digi-navigation-sidebar__nav-wrapper" }, h("slot", { key: 'f2e86c0bf80b36d1ff6c12a884abc16964c7c001' })), this._hasFooter && (h("div", { key: '4bc6ced8a6333bf05aefe623a5a000b75bd7b010', class: "digi-navigation-sidebar__footer" }, h("slot", { key: 'c04599b4192a266d4f631588b8b329c4ac2e7bef', name: "footer" })))))))))));
|
|
291
291
|
}
|
|
292
292
|
static get is() { return "digi-navigation-sidebar"; }
|
|
293
293
|
static get encapsulation() { return "scoped"; }
|
|
@@ -15,7 +15,7 @@ export class NavigationSidebarButton {
|
|
|
15
15
|
this.afOnToggle.emit(this.isActive);
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h("digi-button", { key: '
|
|
18
|
+
return (h("digi-button", { key: 'f90df32c8458d64c6460066c62c656aa5e75fa63', id: this.afId, class: "digi-navigation-sidebar-button", "af-variation": "function", "af-aria-label": this.afAriaLabel, onClick: () => this.toggleHandler() }, this.afText, h("digi-icon-bars", { key: '35681837fa0887f2614f9cf04621d89b9add6fbe', slot: "icon" })));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "digi-navigation-sidebar-button"; }
|
|
21
21
|
static get encapsulation() { return "scoped"; }
|
|
@@ -221,14 +221,14 @@ export class NavigationTablist {
|
|
|
221
221
|
cancelAnimationFrame(this._requestAnimationFrame);
|
|
222
222
|
}
|
|
223
223
|
render() {
|
|
224
|
-
return (h(Host, { key: '
|
|
224
|
+
return (h(Host, { key: 'b254db2497b74752d34aa4672ae38ac5a1051024' }, h("div", { key: '4028d5c2ee9954fb5755285dfe88029fec02d516', class: {
|
|
225
225
|
'digi-tablist': true,
|
|
226
226
|
'digi-tablist--overflow-scroll': this.afOverflowMode === OverflowMode.Scroll,
|
|
227
227
|
'digi-tablist--overflow-controls': this.afOverflowMode === OverflowMode.Controls
|
|
228
|
-
} }, h("div", { key: '
|
|
228
|
+
} }, h("div", { key: '1643904cc02630eb56f711b7decf3157cefab417', class: "control-wrapper", style: {
|
|
229
229
|
left: '0',
|
|
230
230
|
visibility: this.showPrev ? 'visible' : 'hidden'
|
|
231
|
-
} }, h("button", { key: '
|
|
231
|
+
} }, h("button", { key: 'd71bb576079e486f2bf197c1654e47ef81147455', tabIndex: -1, type: "button", "aria-hidden": "true", class: { 'tab-control-button': true }, onClick: () => this.handleTabControl(Direction.Previous) }, h("digi-icon-chevron-left", { key: 'e9d6cfbbb9aa6175d591db7fa67918b266506ed1' }))), h("div", { key: 'ae8db9b6af8276c07fef53b1e376ccf975dd1822', role: "tablist", ref: (ref) => (this.tablistRef = ref), "aria-labelledby": this.afAriaLabelledby, "aria-label": this.afAriaLabel }, this.tabs.map((tab) => {
|
|
232
232
|
const focusable = tab.id === this.tabs[this.selectedTab].id;
|
|
233
233
|
const isActive = tab.id === this.tabs[this.activeTab].id;
|
|
234
234
|
const Icon = `digi-icon-${tab.icon}`;
|
|
@@ -237,10 +237,10 @@ export class NavigationTablist {
|
|
|
237
237
|
'digi-tab': true,
|
|
238
238
|
'is-active': isActive
|
|
239
239
|
}, id: `tab-${tab.id}`, role: "tab", type: "button", tabindex: focusable ? '0' : '-1', "aria-label": tab.ariaLabel, "aria-selected": isActive.toString(), "aria-controls": `tabpanel-${tab.id}`, onClick: () => this.handleTabChange(tab) }, h("div", { class: "content-wrapper" }, h("span", { class: "tablist-content" }, tab.icon && h(Icon, { "aria-hidden": "true" }), h("span", { class: "title", "data-text": tab.title }, tab.title), tab.badgeValue && (h("digi-badge-notification", { afValue: badgeValue, "aria-hidden": "true" }))), h("div", { class: "indicator" }))));
|
|
240
|
-
})), h("div", { key: '
|
|
240
|
+
})), h("div", { key: 'fad2b3c44632c2354abef8c4a863654cfb44954a', class: "control-wrapper", style: {
|
|
241
241
|
right: '0',
|
|
242
242
|
visibility: this.showNext ? 'visible' : 'hidden'
|
|
243
|
-
} }, h("button", { key: '
|
|
243
|
+
} }, h("button", { key: '75df669a8a5693fb90755daccbb85a09478124cc', tabIndex: -1, type: "button", "aria-hidden": "true", class: { 'tab-control-button': true }, onClick: () => this.handleTabControl(Direction.Next) }, h("digi-icon-chevron-right", { key: 'b9d9fe9346d98fda9c97f999a1667645a58e3686' })))), h("div", { key: '03997499224b2d881c755eef234cee9dda4e2828', ref: (ref) => (this.panelsRef = ref), role: "presentation" }, h("slot", { key: '0d983ff976eb7a90b92030b3ef9a33c135aab90a' }))));
|
|
244
244
|
}
|
|
245
245
|
static get is() { return "digi-tablist"; }
|
|
246
246
|
static get encapsulation() { return "scoped"; }
|
|
@@ -9,11 +9,11 @@ export class NavigationTabPanel {
|
|
|
9
9
|
this.isVisible = false;
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '86f137cc5e2a52c59307d8efd21981606c84478e' }, h("div", { key: '642ae49a6b9c667b786acd732d30b5e62f0a629e', id: `tabpanel-${this.tab}`, role: "tabpanel", "aria-labelledby": `tab-${this.tab}`, style: {
|
|
13
13
|
display: this.isVisible ? 'initial' : 'none',
|
|
14
14
|
overflowX: 'hidden',
|
|
15
15
|
overflowY: 'auto'
|
|
16
|
-
} }, h("slot", { key: '
|
|
16
|
+
} }, h("slot", { key: '01cdafb4516423f5561fdf8d8128fc7370e4f9ec' }))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "digi-tablist-panel"; }
|
|
19
19
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/_navigation/navigation-vertical-menu/navigation-vertical-menu.js
CHANGED
|
@@ -168,7 +168,7 @@ export class NavigationVerticalMenu {
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
render() {
|
|
171
|
-
return (h("nav", { key: '
|
|
171
|
+
return (h("nav", { key: 'fbfc0638443d0632580c4ae2c53090b4e3f1e5a6', class: Object.assign({ 'digi-navigation-vertical-menu': true }, this.cssModifiers), id: this.afId, "aria-label": this.afAriaLabel }, h("slot", { key: '755eafab9d245bf601b28f3b5b5777920f344156' })));
|
|
172
172
|
}
|
|
173
173
|
static get is() { return "digi-navigation-vertical-menu"; }
|
|
174
174
|
static get encapsulation() { return "scoped"; }
|
|
@@ -115,24 +115,24 @@ export class NavigationVerticalMenuItem {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
render() {
|
|
118
|
-
return (h("host", { key: '
|
|
118
|
+
return (h("host", { key: '2f2359793d28c6ba0716683157208d17efc6251a', class: {
|
|
119
119
|
'digi-navigation-vertical-menu-item--has-subnav': this.hasSubnav,
|
|
120
120
|
'digi-navigation-vertical-menu-item--active-subnav': this.activeSubnav
|
|
121
|
-
} }, h("div", { key: '
|
|
121
|
+
} }, h("div", { key: 'b3bff02bdaf99cca35c2f4b17fe25b85ea816656', class: Object.assign({ 'digi-navigation-vertical-menu-item': true }, this.cssModifiers) }, this.hasSubnav && this.afHref && (h("div", { key: '7e312eeeec0f3f458208739d95856c32379da7c4', class: "digi-navigation-vertical-menu-item__inner digi-navigation-vertical-menu-item__inner--combined" }, h("a", { key: '1ab2faf7e35bc196d35521b27681a0bc7fc40774', id: `${this.afId}-link`, href: this.afHref, class: {
|
|
122
122
|
'digi-navigation-vertical-menu-item__link': true,
|
|
123
123
|
'digi-navigation-vertical-menu-item__has-subnav': true,
|
|
124
124
|
'digi-navigation-vertical-menu-item__link--active': this.isActive,
|
|
125
125
|
'digi-navigation-vertical-menu-item__link--expanded': this.activeSubnav
|
|
126
|
-
}, onClick: (e) => this.clickHandler(e) }, h("div", { key: '
|
|
126
|
+
}, onClick: (e) => this.clickHandler(e) }, h("div", { key: 'cd3f002b2f815b4408c98e8321d57475e24233de', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '5eadc9a85b08e5b6c543ce935c266d7b9151b4fb', name: "icon" })), h("span", { key: '759938bb34b8af5c480c6dd1e51ef42c6a79d0b8', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: '5c81f925ab25ed96e0819d55ee06daad4e47ae9a', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: '7b7dfe574e6355428823ce168911c6e03884797d', name: "badge" }))), h("button", { key: 'a0a7e83416fc0797ef8aca5ff0c612731901a03e', type: "button", id: `${this.afId}-toggle-button`, class: {
|
|
127
127
|
'digi-navigation-vertical-menu-item__button digi-navigation-vertical-menu-item__button--toggle': true,
|
|
128
128
|
'digi-navigation-vertical-menu-item__button--active': this.isActive
|
|
129
|
-
}, onClick: (e) => this.clickHandler(e), "aria-controls": `${this.afId}-collapse-menu`, "aria-expanded": this.activeSubnav ? 'true' : 'false', "aria-label": `${this.toggleButtonText} ${this.afText}` }, h("span", { key: '
|
|
129
|
+
}, onClick: (e) => this.clickHandler(e), "aria-controls": `${this.afId}-collapse-menu`, "aria-expanded": this.activeSubnav ? 'true' : 'false', "aria-label": `${this.toggleButtonText} ${this.afText}` }, h("span", { key: '9c42984717dee2b6eac09ff50611e63cea6e189b', class: "digi-navigation-vertical-menu-item__toggle-icon" }, h("span", { key: 'acd1fe02c6dcb6113f7849c4b0c29b7e5359da06', class: "icon" }, this.toggleIcon))))), this.hasSubnav && !this.afHref && (h("div", { key: '68c573eb24d342396f932b4474e704a85199dbf6', class: "digi-navigation-vertical-menu-item__inner" }, h("button", { key: '8510c79aa62ba83064b8ea1a464a4c973e96d83c', id: `${this.afId}-toggle-button`, class: "digi-navigation-vertical-menu-item__button digi-navigation-vertical-menu-item__button--only-toggle", onClick: (e) => this.clickHandler(e), "aria-controls": `${this.afId}-collapse-menu`, "aria-expanded": this.activeSubnav ? 'true' : 'false', type: "button" }, h("span", { key: '72bc6c4d86ff6c3999d1902adf5dbe516dde8863', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '16e2647a296b7021163381f8fa42c570167696ef', name: "icon" })), h("span", { key: '5c44a355878aaa6f5528ea9b220f25daf80f34f7', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: '42f91b15bb3d99347b93bc1c06adf3095f88c153', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: 'b016a90afff30650ebd88e86c2b52c32be67c209', name: "badge" })), h("span", { key: '35ae3a1d50831d977730d4fb7dea0b5ad90d0466', class: "digi-navigation-vertical-menu-item__toggle-icon" }, h("span", { key: '7b482d5ecab31c6d98e6cdfba5808b74c5dd050c' }, this.toggleIcon))))), !this.hasSubnav && (h("div", { key: '47a5658c6f6e049e4b52c5146130e1ea9f4de598', class: "digi-navigation-vertical-menu-item__inner" }, !this.isActive && (h("a", { key: '934f930abd86abf7014bfd59f737339714c82ff1', id: `${this.afId}-link`, href: this.afHref, class: {
|
|
130
130
|
'digi-navigation-vertical-menu-item__link': true,
|
|
131
131
|
'digi-navigation-vertical-menu-item__link--active': this.isActive
|
|
132
|
-
}, onClick: (e) => this.clickHandler(e) }, h("div", { key: '
|
|
132
|
+
}, onClick: (e) => this.clickHandler(e) }, h("div", { key: 'c112a0e8462e04be069feb62a4af311c150cbb18', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '8884a6a300bf211b177354ce34ce7aac8f49d228', name: "icon" })), h("span", { key: 'c26f8fd29f0b4a1d8612a5a576d6410ca930d754', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: 'ecad78e4ea28f5aaea194e2c84fd0c04b3c331d1', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: '734ba82ec71353f514a700921c8fe23d8c6ca2f5', name: "badge" })))), this.isActive && (h("a", { key: 'ccdff17960fe8d78d111435d11626f901c096f11', id: `${this.afId}-link`, href: this.afHref, "aria-current": this.afAriaCurrent, class: {
|
|
133
133
|
'digi-navigation-vertical-menu-item__link': true,
|
|
134
134
|
'digi-navigation-vertical-menu-item__link--active': this.isActive
|
|
135
|
-
}, onClick: (e) => this.clickHandler(e) }, h("div", { key: '
|
|
135
|
+
}, onClick: (e) => this.clickHandler(e) }, h("div", { key: '98b6ef79ab34656585aa442ea9a7004d845fa46c', class: "digi-navigation-vertical-menu-item__icon", "aria-hidden": "true", hidden: !this.hasIcon }, h("slot", { key: '5dc5abd4ec44aa243b07b8c30694560fec15c4b5', name: "icon" })), h("span", { key: '657145f6767c2ce1be8e2a9dab7489e5cfa694ef', class: "digi-navigation-vertical-menu-item__text", lang: this.afLang }, this.afText), h("div", { key: 'e868ca7ce91446e75a7850b1f65629167124db43', class: "digi-navigation-vertical-menu-item__badge", hidden: !this.hasBadge }, h("slot", { key: 'dee1d6d5c667890a005ed3f4c22eb1daee71f4e2', name: "badge" })))))))));
|
|
136
136
|
}
|
|
137
137
|
static get is() { return "digi-navigation-vertical-menu-item"; }
|
|
138
138
|
static get encapsulation() { return "scoped"; }
|