@designsystem-se/af 37.0.1 → 37.0.2-beta.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-button.js +1 -1
- package/components/digi-calendar-datepicker.js +4 -4
- package/components/digi-calendar-week-view.js +1 -1
- package/components/digi-calendar.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 +3 -3
- package/components/digi-context-menu.js +1 -1
- package/components/digi-dialog.js +3 -3
- package/components/digi-expandable-faq-item.js +1 -1
- package/components/digi-footer.js +1 -1
- package/components/digi-form-category-filter.js +1 -1
- package/components/digi-form-checkbox.js +1 -1
- package/components/digi-form-error-list.js +3 -3
- package/components/digi-form-file-upload.js +1 -1
- package/components/digi-form-filter.js +2 -2
- package/components/digi-form-input-search.js +1 -1
- package/components/digi-form-receipt.js +1 -1
- package/components/digi-form-select-filter.js +3 -3
- package/components/digi-form-select.js +1 -1
- package/components/digi-header-avatar.js +1 -1
- package/components/digi-header-navigation.js +2 -2
- package/components/digi-header.js +3 -3
- package/components/digi-info-card.js +2 -2
- package/components/digi-link-internal.js +1 -1
- package/components/digi-logo.js +1 -1
- package/components/digi-navigation-pagination.js +2 -2
- package/components/digi-navigation-sidebar-button.js +1 -1
- package/components/digi-navigation-sidebar.js +1 -1
- package/components/digi-navigation-vertical-menu-item.js +1 -1
- package/components/digi-notification-alert.js +1 -1
- package/components/digi-notification-error-page.js +1 -1
- package/components/digi-progress-indicator.js +1 -1
- package/components/digi-quote.js +1 -1
- package/components/digi-tag.js +1 -1
- package/components/digi-title-logo.js +1 -1
- package/components/digi-tools-feedback.js +3 -3
- package/components/digi-tools-theme-provider.js +18 -5
- package/components/index.js +1 -1
- package/components/p-0d568c4b.js +66 -0
- package/components/{p-9466c4e0.js → p-117e7b18.js} +1 -1
- package/components/{p-7ff04204.js → p-29f63312.js} +2 -2
- package/components/p-606ba731.js +165 -0
- package/components/{p-44f143ea.js → p-7d3fb535.js} +2 -2
- package/components/{p-2ac136a0.js → p-a79e144f.js} +1 -1
- package/components/{p-f53eb01a.js → p-d2a95a3e.js} +1 -1
- package/components/p-d7ef9cb1.js +13 -0
- package/components/{p-62a0008b.js → p-e756fda7.js} +2 -2
- package/components/p-f77cb7ae.js +163 -0
- package/custom-elements.json +4 -0
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/digi-button_38.cjs.entry.js +5759 -0
- package/dist/cjs/digi-calendar-week-view.cjs.entry.js +50 -51
- package/dist/cjs/{digi-code-block_3.cjs.entry.js → digi-code-block.cjs.entry.js} +3 -143
- package/dist/cjs/digi-code-example.cjs.entry.js +1 -1
- package/dist/cjs/digi-dialog.cjs.entry.js +4 -15
- package/dist/cjs/digi-footer.cjs.entry.js +3 -14
- package/dist/cjs/digi-form-error-list.cjs.entry.js +3 -14
- package/dist/cjs/digi-form-file-upload.cjs.entry.js +10 -11
- package/dist/cjs/digi-form-input-search.cjs.entry.js +6 -7
- package/dist/cjs/digi-form-receipt.cjs.entry.js +3 -14
- package/dist/cjs/digi-header-avatar.cjs.entry.js +114 -0
- package/dist/cjs/digi-header-navigation-item.cjs.entry.js +27 -0
- package/dist/cjs/digi-header-navigation.cjs.entry.js +218 -0
- package/dist/cjs/digi-header-notification.cjs.entry.js +23 -0
- package/dist/cjs/digi-header.cjs.entry.js +134 -0
- package/dist/cjs/{digi-icon-copy.cjs.entry.js → digi-icon-bars.cjs.entry.js} +7 -7
- package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +30 -0
- package/dist/cjs/digi-icon-x.cjs.entry.js +30 -0
- package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
- package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
- package/dist/cjs/digi-media-image_2.cjs.entry.js +167 -0
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +3 -14
- package/dist/cjs/digi-navigation-sidebar-button.cjs.entry.js +30 -0
- package/dist/cjs/digi-notification-alert.cjs.entry.js +3 -14
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +3 -14
- package/dist/cjs/digi-quote.cjs.entry.js +1 -1
- package/dist/cjs/digi-title-logo.cjs.entry.js +121 -0
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +4 -15
- package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +48 -0
- package/dist/cjs/{form-input-type.enum-9c8ee12a.js → form-input-type.enum-1fb2180a.js} +14 -0
- package/dist/cjs/{form-file-upload-variation.enum-634cfae8.js → form-validation-message-variation.enum-c5ec3e2d.js} +7 -0
- package/dist/cjs/index-7a477838.js +44 -96
- package/dist/cjs/{index-ac8e01b4.js → index-acb7b350.js} +189 -19
- package/dist/cjs/index.cjs.js +136 -141
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{typography-variation.enum-118ff8e5.js → typography-variation.enum-e41bd69d.js} +138 -0
- package/dist/collection/components/_button/button/button.css +6 -6
- package/dist/collection/components/_calendar/calendar/calendar.css +7 -2
- package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +347 -102
- package/dist/collection/components/_code/code-example/code-example.css +6 -0
- package/dist/collection/components/_dialog/dialog/dialog.css +1 -1
- package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.css +2 -2
- package/dist/collection/components/_form/form-checkbox/form-checkbox.css +347 -102
- package/dist/collection/components/_form/form-file-upload/form-file-upload.css +4 -3
- package/dist/collection/components/_form/form-select/form-select.css +2 -2
- package/dist/collection/components/_form/form-select-filter/form-select-filter.css +1 -1
- package/dist/collection/components/_header/header-avatar/header-avatar.css +346 -101
- package/dist/collection/components/_info-card/info-card/info-card.css +2 -2
- package/dist/collection/components/_link/link-internal/link-internal.css +346 -101
- package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.css +3 -3
- package/dist/collection/components/_progress/progress-indicator/progress-indicator.css +4 -3
- package/dist/collection/components/_quote/quote/quote.css +2 -2
- package/dist/collection/components/_tools/tools-feedback/tools-feedback.css +1 -1
- package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.css +113 -2
- package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +43 -2
- package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.js +5 -0
- package/dist/collection/design-tokens/components/_button.variables.scss +6 -6
- package/dist/collection/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
- package/dist/collection/design-tokens/components/_calendar.variables.scss +3 -2
- package/dist/collection/design-tokens/components/_dialog.variables.scss +1 -1
- package/dist/collection/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
- package/dist/collection/design-tokens/components/_form-checkbox.variables.scss +1 -1
- package/dist/collection/design-tokens/components/_form-file-upload.variables.scss +2 -0
- package/dist/collection/design-tokens/components/_form-select-filter.variables.scss +1 -1
- package/dist/collection/design-tokens/components/_form-select.variables.scss +2 -2
- package/dist/collection/design-tokens/components/_info-card.variables.scss +2 -2
- package/dist/collection/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
- package/dist/collection/design-tokens/components/_quote.variables.scss +2 -2
- package/dist/collection/design-tokens/components/_tools-feedback.variables.scss +1 -1
- package/dist/collection/enums.js +1 -0
- package/dist/collection/styles/src/_alias.mixin.scss +274 -128
- package/dist/collection/styles/src/themes/_common.mixin.scss +7 -0
- package/dist/collection/styles/src/themes/_theme-af25.mixin.scss +143 -0
- package/dist/collection/styles/src/tokens-documentation/web-AF25.json +1406 -323
- package/dist/digi-arbetsformedlingen/design-tokens/components/_button.variables.scss +6 -6
- package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
- package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar.variables.scss +3 -2
- package/dist/digi-arbetsformedlingen/design-tokens/components/_dialog.variables.scss +1 -1
- package/dist/digi-arbetsformedlingen/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
- package/dist/digi-arbetsformedlingen/design-tokens/components/_form-checkbox.variables.scss +1 -1
- package/dist/digi-arbetsformedlingen/design-tokens/components/_form-file-upload.variables.scss +2 -0
- package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select-filter.variables.scss +1 -1
- package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select.variables.scss +2 -2
- package/dist/digi-arbetsformedlingen/design-tokens/components/_info-card.variables.scss +2 -2
- package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
- package/dist/digi-arbetsformedlingen/design-tokens/components/_quote.variables.scss +2 -2
- package/dist/digi-arbetsformedlingen/design-tokens/components/_tools-feedback.variables.scss +1 -1
- 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-0f543000.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-13120f18.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-180663ef.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-1a619dd3.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-237cad1c.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-26e8ea70.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-3887bb40.js +1 -0
- package/dist/digi-arbetsformedlingen/p-52a3c86a.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-54d9bd3e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-5ca38506.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-64b65586.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-67e32cc2.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-73a6be41.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-76ec3619.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-780519ec.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-800b764b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-82225661.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-84719680.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-920aee36.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-9b6e8cf8.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-9e56568b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-a105d9fe.js +1 -0
- package/dist/digi-arbetsformedlingen/p-ac87daf1.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-b328f60b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-c64b4626.js +1 -0
- package/dist/digi-arbetsformedlingen/p-d9bcab5f.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-e2c92528.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-e540b80f.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-e5fee242.js +1 -0
- package/dist/digi-arbetsformedlingen/p-e7ee9bea.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-f601908d.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-fa44ce49.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-fe409f14.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/styles/src/_alias.mixin.scss +274 -128
- package/dist/digi-arbetsformedlingen/styles/src/themes/_common.mixin.scss +7 -0
- package/dist/digi-arbetsformedlingen/styles/src/themes/_theme-af25.mixin.scss +143 -0
- package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +1406 -323
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/digi-button_38.entry.js +5718 -0
- package/dist/esm/digi-calendar-week-view.entry.js +1 -2
- package/dist/esm/digi-code-block.entry.js +85 -0
- package/dist/esm/digi-code-example.entry.js +1 -1
- package/dist/esm/digi-dialog.entry.js +4 -15
- package/dist/esm/digi-footer.entry.js +3 -14
- package/dist/esm/digi-form-error-list.entry.js +3 -14
- package/dist/esm/digi-form-file-upload.entry.js +2 -3
- package/dist/esm/digi-form-input-search.entry.js +1 -2
- package/dist/esm/digi-form-receipt.entry.js +3 -14
- package/dist/esm/digi-header-avatar.entry.js +110 -0
- package/dist/esm/digi-header-navigation-item.entry.js +23 -0
- package/dist/esm/digi-header-navigation.entry.js +214 -0
- package/dist/esm/digi-header-notification.entry.js +19 -0
- package/dist/esm/digi-header.entry.js +130 -0
- package/dist/esm/digi-icon-bars.entry.js +26 -0
- package/dist/esm/digi-icon-bell-filled.entry.js +26 -0
- package/dist/esm/digi-icon-x.entry.js +26 -0
- package/dist/esm/digi-info-card.entry.js +1 -1
- package/dist/esm/digi-link-internal.entry.js +1 -1
- package/dist/esm/digi-media-image_2.entry.js +162 -0
- package/dist/esm/digi-navigation-pagination.entry.js +3 -14
- package/dist/esm/digi-navigation-sidebar-button.entry.js +26 -0
- package/dist/esm/digi-notification-alert.entry.js +3 -14
- package/dist/esm/digi-notification-error-page.entry.js +3 -14
- package/dist/esm/digi-quote.entry.js +1 -1
- package/dist/esm/digi-title-logo.entry.js +117 -0
- package/dist/esm/digi-tools-feedback.entry.js +4 -15
- package/dist/esm/digi-util-breakpoint-observer.entry.js +44 -0
- package/dist/esm/{form-input-type.enum-3da3db27.js → form-input-type.enum-a6bba983.js} +15 -1
- package/dist/esm/{form-file-upload-variation.enum-9c49ec5e.js → form-validation-message-variation.enum-f7835fc5.js} +8 -1
- package/dist/esm/index-148a7577.js +44 -96
- package/dist/esm/{index-2fce392f.js → index-dc6b83f7.js} +170 -3
- package/dist/esm/index.js +3 -14
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{typography-variation.enum-23eeecd2.js → typography-variation.enum-b07f76c9.js} +139 -1
- package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.d.ts +9 -0
- package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.d.ts +4 -0
- package/dist/types/components.d.ts +12 -0
- package/dist/types/enums.d.ts +1 -0
- package/hydrate/index.js +40 -21
- package/hydrate/index.mjs +40 -21
- package/package.json +1 -1
- package/components/p-4bad4fb0.js +0 -7
- package/components/p-b57677c1.js +0 -66
- package/components/p-e8fc33ed.js +0 -165
- package/components/p-ff4f4fb8.js +0 -163
- package/dist/cjs/digi-button_17.cjs.entry.js +0 -1120
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +0 -2600
- package/dist/cjs/digi-calendar_2.cjs.entry.js +0 -464
- package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +0 -97
- package/dist/cjs/digi-form-category-filter.cjs.entry.js +0 -121
- package/dist/cjs/digi-form-checkbox.cjs.entry.js +0 -127
- package/dist/cjs/digi-form-input.cjs.entry.js +0 -194
- package/dist/cjs/digi-form-label_3.cjs.entry.js +0 -129
- package/dist/cjs/digi-form-radiogroup.cjs.entry.js +0 -80
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +0 -565
- package/dist/cjs/digi-form-select_2.cjs.entry.js +0 -186
- 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-icon-chevron-left_2.cjs.entry.js +0 -53
- package/dist/cjs/digi-icon-minus_2.cjs.entry.js +0 -53
- package/dist/cjs/digi-icon-validation-error_2.cjs.entry.js +0 -53
- package/dist/cjs/digi-link.cjs.entry.js +0 -75
- package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +0 -150
- package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +0 -177
- package/dist/cjs/digi-progress-indicator.cjs.entry.js +0 -137
- package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +0 -28
- package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +0 -38
- package/dist/cjs/digi-typography-preamble.cjs.entry.js +0 -20
- package/dist/cjs/digi-typography.cjs.entry.js +0 -26
- package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +0 -64
- package/dist/cjs/expandable-faq-item-variation.enum-89427195.js +0 -18
- package/dist/cjs/form-checkbox-variation.enum-d2ca879e.js +0 -19
- package/dist/cjs/form-input-search-variation.enum-e0e025b1.js +0 -15
- package/dist/cjs/form-input-variation.enum-c750520c.js +0 -29
- package/dist/cjs/form-radiogroup-validation.enum-03a17d4d.js +0 -9
- package/dist/cjs/form-select-variation.enum-528c1bf0.js +0 -16
- package/dist/cjs/form-validation-message-variation.enum-855ae0be.js +0 -8
- package/dist/cjs/index-cad91a90.js +0 -66
- package/dist/cjs/index-e8333bcc.js +0 -174
- package/dist/cjs/navigation-vertical-menu-variation.enum-c237edd3.js +0 -13
- package/dist/cjs/progress-indicator-variation.enum-7cf8e0e4.js +0 -13
- package/dist/cjs/tools-theme-provider.brand.enum-bc855272.js +0 -7
- package/dist/cjs/typography-heading-jumbo-variation.enum-8677e099.js +0 -17
- package/dist/digi-arbetsformedlingen/p-029c4d40.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-07985aef.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-0c77050e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-1f3345e9.js +0 -1
- package/dist/digi-arbetsformedlingen/p-1f956af8.js +0 -1
- package/dist/digi-arbetsformedlingen/p-24fe2189.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2693c1d8.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2c698144.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-33349e7e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-3a76bfde.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-3b20ec86.js +0 -1
- package/dist/digi-arbetsformedlingen/p-3d7fff3c.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-41bc039f.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4841b4e1.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4bad4fb0.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4e36c467.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-51149879.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-51bfa2a9.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-57319a80.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-57a0cc63.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-583d40dc.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-5d3383f9.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-681e7beb.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6bd60ab6.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6d864e79.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7238fdb8.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7327f45d.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-750ff498.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-78c99e87.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7933b555.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7aacd45f.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7e125c6e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-8142cc73.js +0 -1
- package/dist/digi-arbetsformedlingen/p-88b4d03a.js +0 -1
- package/dist/digi-arbetsformedlingen/p-905ccb30.js +0 -1
- package/dist/digi-arbetsformedlingen/p-93766b5e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-96987381.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9a6ea3b7.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9b7f0707.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9be9a291.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9dd5d6c8.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a2561b9e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a34dfc04.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-bd55807c.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c29ab968.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c461917d.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c68bf2b3.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c7949525.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ccd617cc.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d055d564.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d1886fff.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d5376b7c.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d7aa8315.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e9abb2b1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-edcb61eb.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-eeca26b2.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f40f4b2a.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f447b984.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f94db846.entry.js +0 -1
- package/dist/esm/digi-button_17.entry.js +0 -1100
- package/dist/esm/digi-calendar-datepicker.entry.js +0 -2596
- package/dist/esm/digi-calendar_2.entry.js +0 -459
- package/dist/esm/digi-code-block_3.entry.js +0 -223
- package/dist/esm/digi-expandable-faq-item.entry.js +0 -93
- package/dist/esm/digi-form-category-filter.entry.js +0 -117
- package/dist/esm/digi-form-checkbox.entry.js +0 -123
- package/dist/esm/digi-form-input.entry.js +0 -190
- package/dist/esm/digi-form-label_3.entry.js +0 -123
- package/dist/esm/digi-form-radiogroup.entry.js +0 -76
- package/dist/esm/digi-form-select-filter.entry.js +0 -561
- package/dist/esm/digi-form-select_2.entry.js +0 -181
- 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-icon-chevron-left_2.entry.js +0 -48
- package/dist/esm/digi-icon-copy.entry.js +0 -26
- package/dist/esm/digi-icon-minus_2.entry.js +0 -48
- package/dist/esm/digi-icon-validation-error_2.entry.js +0 -48
- package/dist/esm/digi-link.entry.js +0 -71
- package/dist/esm/digi-navigation-vertical-menu-item.entry.js +0 -146
- package/dist/esm/digi-navigation-vertical-menu.entry.js +0 -173
- package/dist/esm/digi-progress-indicator.entry.js +0 -133
- package/dist/esm/digi-tools-theme-provider.entry.js +0 -24
- package/dist/esm/digi-typography-heading-jumbo.entry.js +0 -34
- package/dist/esm/digi-typography-preamble.entry.js +0 -16
- package/dist/esm/digi-typography.entry.js +0 -22
- package/dist/esm/digi-util-mutation-observer.entry.js +0 -60
- package/dist/esm/expandable-faq-item-variation.enum-a8cb225b.js +0 -18
- package/dist/esm/form-checkbox-variation.enum-83e906fc.js +0 -19
- package/dist/esm/form-input-search-variation.enum-6d8dc10a.js +0 -15
- package/dist/esm/form-input-variation.enum-64d9450f.js +0 -29
- package/dist/esm/form-radiogroup-validation.enum-d790fc66.js +0 -9
- package/dist/esm/form-select-variation.enum-f2f6098d.js +0 -16
- package/dist/esm/form-validation-message-variation.enum-bcef8a9d.js +0 -8
- package/dist/esm/index-5b6c95c6.js +0 -63
- package/dist/esm/index-8685f88d.js +0 -170
- package/dist/esm/navigation-vertical-menu-variation.enum-c30b0ea9.js +0 -13
- package/dist/esm/progress-indicator-variation.enum-b12ba50a.js +0 -13
- package/dist/esm/tools-theme-provider.brand.enum-8c5a98c9.js +0 -7
- package/dist/esm/typography-heading-jumbo-variation.enum-eb737f1b.js +0 -17
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index$
|
|
5
|
+
const index$1 = require('./index-7a477838.js');
|
|
6
6
|
const text = require('./text-65b1b58c.js');
|
|
7
|
-
const index
|
|
7
|
+
const index = require('./index-acb7b350.js');
|
|
8
8
|
const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
|
|
9
9
|
const buttonVariation_enum = require('./button-variation.enum-bc521499.js');
|
|
10
10
|
const calendarWeekViewHeadingLevel_enum = require('./calendar-week-view-heading-level.enum-fd0c841b.js');
|
|
11
|
-
const index = require('./index-e8333bcc.js');
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
13
|
* @name addDays
|
|
@@ -36,7 +35,7 @@ const index = require('./index-e8333bcc.js');
|
|
|
36
35
|
function addDays(dirtyDate, dirtyAmount) {
|
|
37
36
|
index.requiredArgs(2, arguments);
|
|
38
37
|
var date = index.toDate(dirtyDate);
|
|
39
|
-
var amount = index
|
|
38
|
+
var amount = index.toInteger(dirtyAmount);
|
|
40
39
|
|
|
41
40
|
if (isNaN(amount)) {
|
|
42
41
|
return new Date(NaN);
|
|
@@ -88,8 +87,8 @@ function startOfWeek(dirtyDate, dirtyOptions) {
|
|
|
88
87
|
var options = dirtyOptions || {};
|
|
89
88
|
var locale = options.locale;
|
|
90
89
|
var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
|
|
91
|
-
var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index
|
|
92
|
-
var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index
|
|
90
|
+
var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index.toInteger(localeWeekStartsOn);
|
|
91
|
+
var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index.toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
93
92
|
|
|
94
93
|
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
95
94
|
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
@@ -432,7 +431,7 @@ var formatters = {
|
|
|
432
431
|
},
|
|
433
432
|
// Local week-numbering year
|
|
434
433
|
Y: function (date, token, localize, options) {
|
|
435
|
-
var signedWeekYear = index
|
|
434
|
+
var signedWeekYear = index.getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)
|
|
436
435
|
|
|
437
436
|
var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year
|
|
438
437
|
|
|
@@ -453,7 +452,7 @@ var formatters = {
|
|
|
453
452
|
},
|
|
454
453
|
// ISO week-numbering year
|
|
455
454
|
R: function (date, token) {
|
|
456
|
-
var isoWeekYear = index
|
|
455
|
+
var isoWeekYear = index.getUTCISOWeekYear(date); // Padding
|
|
457
456
|
|
|
458
457
|
return addLeadingZeros(isoWeekYear, token.length);
|
|
459
458
|
},
|
|
@@ -636,7 +635,7 @@ var formatters = {
|
|
|
636
635
|
},
|
|
637
636
|
// Local week of year
|
|
638
637
|
w: function (date, token, localize, options) {
|
|
639
|
-
var week = index
|
|
638
|
+
var week = index.getUTCWeek(date, options);
|
|
640
639
|
|
|
641
640
|
if (token === 'wo') {
|
|
642
641
|
return localize.ordinalNumber(week, {
|
|
@@ -648,7 +647,7 @@ var formatters = {
|
|
|
648
647
|
},
|
|
649
648
|
// ISO week of year
|
|
650
649
|
I: function (date, token, localize) {
|
|
651
|
-
var isoWeek = index
|
|
650
|
+
var isoWeek = index.getUTCISOWeek(date);
|
|
652
651
|
|
|
653
652
|
if (token === 'Io') {
|
|
654
653
|
return localize.ordinalNumber(isoWeek, {
|
|
@@ -1526,18 +1525,18 @@ function format(dirtyDate, dirtyFormatStr, dirtyOptions) {
|
|
|
1526
1525
|
index.requiredArgs(2, arguments);
|
|
1527
1526
|
var formatStr = String(dirtyFormatStr);
|
|
1528
1527
|
var options = dirtyOptions || {};
|
|
1529
|
-
var locale = options.locale || index
|
|
1528
|
+
var locale = options.locale || index.defaultLocale;
|
|
1530
1529
|
var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
|
|
1531
|
-
var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : index
|
|
1532
|
-
var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : index
|
|
1530
|
+
var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : index.toInteger(localeFirstWeekContainsDate);
|
|
1531
|
+
var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : index.toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
|
|
1533
1532
|
|
|
1534
1533
|
if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
|
|
1535
1534
|
throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
|
|
1536
1535
|
}
|
|
1537
1536
|
|
|
1538
1537
|
var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
|
|
1539
|
-
var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index
|
|
1540
|
-
var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index
|
|
1538
|
+
var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index.toInteger(localeWeekStartsOn);
|
|
1539
|
+
var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index.toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
1541
1540
|
|
|
1542
1541
|
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
1543
1542
|
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
@@ -1560,8 +1559,8 @@ function format(dirtyDate, dirtyFormatStr, dirtyOptions) {
|
|
|
1560
1559
|
// See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
|
|
1561
1560
|
|
|
1562
1561
|
|
|
1563
|
-
var timezoneOffset = index
|
|
1564
|
-
var utcDate = index
|
|
1562
|
+
var timezoneOffset = index.getTimezoneOffsetInMilliseconds(originalDate);
|
|
1563
|
+
var utcDate = index.subMilliseconds(originalDate, timezoneOffset);
|
|
1565
1564
|
var formatterOptions = {
|
|
1566
1565
|
firstWeekContainsDate: firstWeekContainsDate,
|
|
1567
1566
|
weekStartsOn: weekStartsOn,
|
|
@@ -1572,7 +1571,7 @@ function format(dirtyDate, dirtyFormatStr, dirtyOptions) {
|
|
|
1572
1571
|
var firstCharacter = substring[0];
|
|
1573
1572
|
|
|
1574
1573
|
if (firstCharacter === 'p' || firstCharacter === 'P') {
|
|
1575
|
-
var longFormatter = index
|
|
1574
|
+
var longFormatter = index.longFormatters[firstCharacter];
|
|
1576
1575
|
return longFormatter(substring, locale.formatLong, formatterOptions);
|
|
1577
1576
|
}
|
|
1578
1577
|
|
|
@@ -1592,12 +1591,12 @@ function format(dirtyDate, dirtyFormatStr, dirtyOptions) {
|
|
|
1592
1591
|
var formatter = formatters$1[firstCharacter];
|
|
1593
1592
|
|
|
1594
1593
|
if (formatter) {
|
|
1595
|
-
if (!options.useAdditionalWeekYearTokens && index
|
|
1596
|
-
index
|
|
1594
|
+
if (!options.useAdditionalWeekYearTokens && index.isProtectedWeekYearToken(substring)) {
|
|
1595
|
+
index.throwProtectedError(substring, dirtyFormatStr, dirtyDate);
|
|
1597
1596
|
}
|
|
1598
1597
|
|
|
1599
|
-
if (!options.useAdditionalDayOfYearTokens && index
|
|
1600
|
-
index
|
|
1598
|
+
if (!options.useAdditionalDayOfYearTokens && index.isProtectedDayOfYearToken(substring)) {
|
|
1599
|
+
index.throwProtectedError(substring, dirtyFormatStr, dirtyDate);
|
|
1601
1600
|
}
|
|
1602
1601
|
|
|
1603
1602
|
return formatter(utcDate, substring, locale.localize, formatterOptions);
|
|
@@ -1676,7 +1675,7 @@ function getISOWeek(dirtyDate) {
|
|
|
1676
1675
|
|
|
1677
1676
|
function subDays(dirtyDate, dirtyAmount) {
|
|
1678
1677
|
index.requiredArgs(2, arguments);
|
|
1679
|
-
var amount = index
|
|
1678
|
+
var amount = index.toInteger(dirtyAmount);
|
|
1680
1679
|
return addDays(dirtyDate, -amount);
|
|
1681
1680
|
}
|
|
1682
1681
|
|
|
@@ -1716,15 +1715,15 @@ function setDay(dirtyDate, dirtyDay, dirtyOptions) {
|
|
|
1716
1715
|
var options = dirtyOptions || {};
|
|
1717
1716
|
var locale = options.locale;
|
|
1718
1717
|
var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
|
|
1719
|
-
var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index
|
|
1720
|
-
var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index
|
|
1718
|
+
var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index.toInteger(localeWeekStartsOn);
|
|
1719
|
+
var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index.toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
1721
1720
|
|
|
1722
1721
|
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
1723
1722
|
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
1724
1723
|
}
|
|
1725
1724
|
|
|
1726
1725
|
var date = index.toDate(dirtyDate);
|
|
1727
|
-
var day = index
|
|
1726
|
+
var day = index.toInteger(dirtyDay);
|
|
1728
1727
|
var currentDay = date.getDay();
|
|
1729
1728
|
var remainder = day % 7;
|
|
1730
1729
|
var dayIndex = (remainder + 7) % 7;
|
|
@@ -1846,15 +1845,15 @@ var dateTimeFormats = {
|
|
|
1846
1845
|
short: '{{date}} {{time}}'
|
|
1847
1846
|
};
|
|
1848
1847
|
var formatLong = {
|
|
1849
|
-
date: index
|
|
1848
|
+
date: index.buildFormatLongFn({
|
|
1850
1849
|
formats: dateFormats,
|
|
1851
1850
|
defaultWidth: 'full'
|
|
1852
1851
|
}),
|
|
1853
|
-
time: index
|
|
1852
|
+
time: index.buildFormatLongFn({
|
|
1854
1853
|
formats: timeFormats,
|
|
1855
1854
|
defaultWidth: 'full'
|
|
1856
1855
|
}),
|
|
1857
|
-
dateTime: index
|
|
1856
|
+
dateTime: index.buildFormatLongFn({
|
|
1858
1857
|
formats: dateTimeFormats,
|
|
1859
1858
|
defaultWidth: 'full'
|
|
1860
1859
|
})
|
|
@@ -1977,26 +1976,26 @@ function ordinalNumber(dirtyNumber) {
|
|
|
1977
1976
|
|
|
1978
1977
|
var localize = {
|
|
1979
1978
|
ordinalNumber: ordinalNumber,
|
|
1980
|
-
era: index
|
|
1979
|
+
era: index.buildLocalizeFn({
|
|
1981
1980
|
values: eraValues,
|
|
1982
1981
|
defaultWidth: 'wide'
|
|
1983
1982
|
}),
|
|
1984
|
-
quarter: index
|
|
1983
|
+
quarter: index.buildLocalizeFn({
|
|
1985
1984
|
values: quarterValues,
|
|
1986
1985
|
defaultWidth: 'wide',
|
|
1987
1986
|
argumentCallback: function (quarter) {
|
|
1988
1987
|
return Number(quarter) - 1;
|
|
1989
1988
|
}
|
|
1990
1989
|
}),
|
|
1991
|
-
month: index
|
|
1990
|
+
month: index.buildLocalizeFn({
|
|
1992
1991
|
values: monthValues,
|
|
1993
1992
|
defaultWidth: 'wide'
|
|
1994
1993
|
}),
|
|
1995
|
-
day: index
|
|
1994
|
+
day: index.buildLocalizeFn({
|
|
1996
1995
|
values: dayValues,
|
|
1997
1996
|
defaultWidth: 'wide'
|
|
1998
1997
|
}),
|
|
1999
|
-
dayPeriod: index
|
|
1998
|
+
dayPeriod: index.buildLocalizeFn({
|
|
2000
1999
|
values: dayPeriodValues,
|
|
2001
2000
|
defaultWidth: 'wide',
|
|
2002
2001
|
formattingValues: formattingDayPeriodValues,
|
|
@@ -2057,20 +2056,20 @@ var parseDayPeriodPatterns = {
|
|
|
2057
2056
|
}
|
|
2058
2057
|
};
|
|
2059
2058
|
var match = {
|
|
2060
|
-
ordinalNumber: index
|
|
2059
|
+
ordinalNumber: index.buildMatchPatternFn({
|
|
2061
2060
|
matchPattern: matchOrdinalNumberPattern,
|
|
2062
2061
|
parsePattern: parseOrdinalNumberPattern,
|
|
2063
2062
|
valueCallback: function (value) {
|
|
2064
2063
|
return parseInt(value, 10);
|
|
2065
2064
|
}
|
|
2066
2065
|
}),
|
|
2067
|
-
era: index
|
|
2066
|
+
era: index.buildMatchFn({
|
|
2068
2067
|
matchPatterns: matchEraPatterns,
|
|
2069
2068
|
defaultMatchWidth: 'wide',
|
|
2070
2069
|
parsePatterns: parseEraPatterns,
|
|
2071
2070
|
defaultParseWidth: 'any'
|
|
2072
2071
|
}),
|
|
2073
|
-
quarter: index
|
|
2072
|
+
quarter: index.buildMatchFn({
|
|
2074
2073
|
matchPatterns: matchQuarterPatterns,
|
|
2075
2074
|
defaultMatchWidth: 'wide',
|
|
2076
2075
|
parsePatterns: parseQuarterPatterns,
|
|
@@ -2079,19 +2078,19 @@ var match = {
|
|
|
2079
2078
|
return index + 1;
|
|
2080
2079
|
}
|
|
2081
2080
|
}),
|
|
2082
|
-
month: index
|
|
2081
|
+
month: index.buildMatchFn({
|
|
2083
2082
|
matchPatterns: matchMonthPatterns,
|
|
2084
2083
|
defaultMatchWidth: 'wide',
|
|
2085
2084
|
parsePatterns: parseMonthPatterns,
|
|
2086
2085
|
defaultParseWidth: 'any'
|
|
2087
2086
|
}),
|
|
2088
|
-
day: index
|
|
2087
|
+
day: index.buildMatchFn({
|
|
2089
2088
|
matchPatterns: matchDayPatterns,
|
|
2090
2089
|
defaultMatchWidth: 'wide',
|
|
2091
2090
|
parsePatterns: parseDayPatterns,
|
|
2092
2091
|
defaultParseWidth: 'any'
|
|
2093
2092
|
}),
|
|
2094
|
-
dayPeriod: index
|
|
2093
|
+
dayPeriod: index.buildMatchFn({
|
|
2095
2094
|
matchPatterns: matchDayPeriodPatterns,
|
|
2096
2095
|
defaultMatchWidth: 'any',
|
|
2097
2096
|
parsePatterns: parseDayPeriodPatterns,
|
|
@@ -2132,10 +2131,10 @@ const DigiCalendarWeekViewStyle0 = calendarWeekViewCss;
|
|
|
2132
2131
|
|
|
2133
2132
|
const CalendarWeekView = class {
|
|
2134
2133
|
constructor(hostRef) {
|
|
2135
|
-
index$
|
|
2136
|
-
this.afOnWeekChange = index$
|
|
2137
|
-
this.afOnDateChange = index$
|
|
2138
|
-
this.afOnReady = index$
|
|
2134
|
+
index$1.registerInstance(this, hostRef);
|
|
2135
|
+
this.afOnWeekChange = index$1.createEvent(this, "afOnWeekChange", 7);
|
|
2136
|
+
this.afOnDateChange = index$1.createEvent(this, "afOnDateChange", 7);
|
|
2137
|
+
this.afOnReady = index$1.createEvent(this, "afOnReady", 3);
|
|
2139
2138
|
this.minDate = new Date();
|
|
2140
2139
|
this.maxDate = new Date();
|
|
2141
2140
|
this.dates = [];
|
|
@@ -2235,7 +2234,7 @@ const CalendarWeekView = class {
|
|
|
2235
2234
|
format(new Date(lastDate), 'MMMM yyyy', { locale: svlocale });
|
|
2236
2235
|
}
|
|
2237
2236
|
render() {
|
|
2238
|
-
return (index$
|
|
2237
|
+
return (index$1.h("div", { key: '967ccb9710018973a960ae36d52157ba85dacfed', class: "digi-calendar-week-view" }, index$1.h("nav", { key: '6a9137d8f8a8e652d26d099ae652cb76e5665b51', class: "digi-calendar-week-view__timepicker" }, index$1.h("div", { key: 'a2b8aaeaa93e391e65847b2ea8f9b455e86474f1', class: "digi-calendar-week-view__dates" }, index$1.h("div", { key: '0cc675c0cd67d042e5e27a38a6665ab30e516cea', class: "digi-calendar-week-view__flex" }, index$1.h("digi-typography", { key: 'd47f59955354cb435dc80895059c6e4fd6eefa8a' }, index$1.h(this.afHeadingLevel, { key: 'f01725e82afff23b8ae357b30af909b325d85279', role: "status", class: "digi-calendar-week-view__heading" }, index$1.h("span", { key: 'bbfab19eec8776e640ed235654c0fd960faf5722', class: "digi-calendar-week-view__month" }, this.currentMonth), index$1.h("span", { key: 'a3a52801083cd83351056d474e01df926d8b0117', class: "digi-calendar-week-view__week" }, ' ', "v.", this.currentWeek))), index$1.h("ul", { key: 'a3f3703318fa5400cd32ee5d3af896900a032acd', class: "digi-calendar-week-view__date-list" }, this.weekDays.map((dateItem) => {
|
|
2239
2238
|
const date = format(new Date(dateItem), 'd', {
|
|
2240
2239
|
locale: svlocale
|
|
2241
2240
|
});
|
|
@@ -2245,25 +2244,25 @@ const CalendarWeekView = class {
|
|
|
2245
2244
|
const fullDay = format(new Date(dateItem), 'EEEE ', {
|
|
2246
2245
|
locale: svlocale
|
|
2247
2246
|
});
|
|
2248
|
-
return (index$
|
|
2247
|
+
return (index$1.h("li", { class: "digi-calendar-week-view__date-list-item", "aria-current": dateItem === this.todaysDate && 'date' }, index$1.h("digi-button", { onClick: () => (this.selectedDate = dateItem), afAriaLabel: `${fullDay} ${date}`, "aria-hidden": !this.dates.includes(dateItem) ? 'true' : 'false', "af-tabindex": !this.dates.includes(dateItem) ? -1 : null, "aria-pressed": this.selectedDate == dateItem ? 'true' : 'false', class: {
|
|
2249
2248
|
'digi-calendar-week-view__date-button': true,
|
|
2250
2249
|
'digi-calendar-week-view__date-button--active': this.selectedDate == dateItem,
|
|
2251
2250
|
'digi-calendar-week-view__date-button--no-value': !this.dates.includes(dateItem)
|
|
2252
|
-
}, "af-variation": buttonVariation_enum.ButtonVariation.SECONDARY }, index$
|
|
2251
|
+
}, "af-variation": buttonVariation_enum.ButtonVariation.SECONDARY }, index$1.h("span", { class: "digi-calendar-week-view__date-button-content", "aria-hidden": "true" }, index$1.h("span", { class: {
|
|
2253
2252
|
'digi-calendar-week-view__date-button-day': this.selectedDate != dateItem,
|
|
2254
2253
|
'digi-calendar-week-view__date-button-day--active': this.selectedDate == dateItem
|
|
2255
|
-
} }, day), index$
|
|
2254
|
+
} }, day), index$1.h("span", { class: "digi-calendar-week-view__date-button-date" }, date), index$1.h("span", { "aria-hidden": "true", class: {
|
|
2256
2255
|
'digi-calendar-week-view__date-button-circle': dateItem === this.todaysDate
|
|
2257
2256
|
} })))));
|
|
2258
|
-
})))), index$
|
|
2257
|
+
})))), index$1.h("digi-button", { key: '2edb685459c4cbf8a0120ab340672b17d0ea3f9f', onClick: () => this.prevWeek(), class: {
|
|
2259
2258
|
'digi-calendar-week-view__week-button digi-calendar-week-view__week-button--previous': true,
|
|
2260
2259
|
'digi-calendar-week-view__week-button--keep-left': this.currentWeek == getISOWeek(this.maxDate),
|
|
2261
2260
|
'digi-calendar-week-view__week-button--hidden': !(this.currentWeek > getISOWeek(this.minDate))
|
|
2262
|
-
}, "af-variation": "secondary" }, index$
|
|
2261
|
+
}, "af-variation": "secondary" }, index$1.h("digi-icon-chevron-left", { key: '8948b12a1654f9ef46728ea8de3b1df5f40addcd', slot: "icon" }), this.prevWeekText), index$1.h("digi-button", { key: '729ed8eebce68168b66c5365588a52b1279eec3f', onClick: () => this.nextWeek(), class: {
|
|
2263
2262
|
'digi-calendar-week-view__week-button digi-calendar-week-view__week-button--next': true,
|
|
2264
2263
|
'digi-calendar-week-view__week-button--keep-right': this.currentWeek == getISOWeek(this.minDate),
|
|
2265
2264
|
'digi-calendar-week-view__week-button--hidden': !(this.currentWeek < getISOWeek(this.maxDate))
|
|
2266
|
-
}, "af-variation": "secondary" }, index$
|
|
2265
|
+
}, "af-variation": "secondary" }, index$1.h("digi-icon-chevron-right", { key: '75bf1669a5d9dd3f618661c79202dc8e69f6c8ea', slot: "icon-secondary" }), this.nextWeekText)), index$1.h("div", { key: 'c7379a321936f28783d2f7a4e1e94d0b119de471', role: "status", "aria-live": "assertive", class: "digi-calendar-week-view__result", id: `${this.afId}-result` }, index$1.h("digi-typography", { key: 'f7e55435a94c5bff18a3b4b7bfa5d397291f7e8c' }, index$1.h("slot", { key: '7c59e144a47c721f5f4a454b9776c708f6d2f15c' })))));
|
|
2267
2266
|
}
|
|
2268
2267
|
static get watchers() { return {
|
|
2269
2268
|
"selectedDate": ["selectedDateChangeHandler"],
|
|
@@ -4,27 +4,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-7a477838.js');
|
|
6
6
|
const codeExampleVariation_enum = require('./code-example-variation.enum-1611825e.js');
|
|
7
|
-
const typographyVariation_enum = require('./typography-variation.enum-
|
|
7
|
+
const typographyVariation_enum = require('./typography-variation.enum-e41bd69d.js');
|
|
8
8
|
const prismGit = require('./prism-git-df985529.js');
|
|
9
9
|
require('./badge-notification-shape.enum-ff802554.js');
|
|
10
10
|
require('./badge-status-variation.enum-0a5adc21.js');
|
|
11
|
-
require('./form-input-
|
|
11
|
+
require('./form-input-type.enum-1fb2180a.js');
|
|
12
12
|
const buttonVariation_enum = require('./button-variation.enum-bc521499.js');
|
|
13
13
|
require('./calendar-week-view-heading-level.enum-fd0c841b.js');
|
|
14
14
|
require('./bar-chart-variation.enum-a4e866b6.js');
|
|
15
15
|
require('./code-variation.enum-c4a4e6fd.js');
|
|
16
16
|
require('./expandable-accordion-header-level.enum-45483252.js');
|
|
17
|
-
require('./expandable-faq-item-variation.enum-89427195.js');
|
|
18
17
|
require('./expandable-faq-variation.enum-af923f49.js');
|
|
19
18
|
require('./footer-card-variation.enum-99555edc.js');
|
|
20
|
-
require('./form-
|
|
21
|
-
require('./form-file-upload-variation.enum-634cfae8.js');
|
|
22
|
-
require('./form-input-type.enum-9c8ee12a.js');
|
|
23
|
-
require('./form-input-variation.enum-c750520c.js');
|
|
24
|
-
require('./form-radiogroup-validation.enum-03a17d4d.js');
|
|
25
|
-
require('./form-select-variation.enum-528c1bf0.js');
|
|
19
|
+
require('./form-validation-message-variation.enum-c5ec3e2d.js');
|
|
26
20
|
require('./form-textarea-variation.enum-9c90d40f.js');
|
|
27
|
-
require('./form-validation-message-variation.enum-855ae0be.js');
|
|
28
21
|
require('./info-card-multi-type.enum-14746572.js');
|
|
29
22
|
require('./info-card-variation.enum-64cef637.js');
|
|
30
23
|
require('./layout-block-variation.enum-f6102119.js');
|
|
@@ -36,8 +29,6 @@ require('./loader-spinner-size.enum-db2973f0.js');
|
|
|
36
29
|
require('./logo-variation.enum-607fadb4.js');
|
|
37
30
|
require('./media-figure-alignment.enum-3885aba5.js');
|
|
38
31
|
require('./navigation-sidebar-variation.enum-1c0c3064.js');
|
|
39
|
-
require('./navigation-vertical-menu-variation.enum-c237edd3.js');
|
|
40
|
-
require('./progress-indicator-variation.enum-7cf8e0e4.js');
|
|
41
32
|
require('./progress-list-item-variation.enum-90e4c874.js');
|
|
42
33
|
require('./progress-list-variation.enum-06d5ce27.js');
|
|
43
34
|
require('./progressbar-variation.enum-aff9fa80.js');
|
|
@@ -47,13 +38,10 @@ require('./tag-media-icon.enum-372563c5.js');
|
|
|
47
38
|
require('./tag-size.enum-387c516c.js');
|
|
48
39
|
require('./tools-feedback-banner-type.enum-de373ba0.js');
|
|
49
40
|
require('./tools-feedback-rating-variation.enum-2f71e84d.js');
|
|
50
|
-
require('./tools-theme-provider.brand.enum-bc855272.js');
|
|
51
|
-
require('./typography-heading-jumbo-variation.enum-8677e099.js');
|
|
52
41
|
require('./typography-meta-variation.enum-13ac3538.js');
|
|
53
42
|
require('./typography-time-variation.enum-bce1d87e.js');
|
|
54
43
|
require('./util-breakpoint-observer-breakpoints.enum-e96d3a84.js');
|
|
55
44
|
const text = require('./text-65b1b58c.js');
|
|
56
|
-
const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
|
|
57
45
|
|
|
58
46
|
const codeBlockCss = "digi-code-block{--digi--code-block--background:var(--digi--color--background--primary);--digi--code-block--border-radius:0.3rem;--digi--code-block--border:1px solid var(--digi--grayscale--900);display:block}digi-code-block .digi-code-block{border-radius:var(--digi--code-block--border-radius);border:var(--digi--code-block--border);overflow:hidden;position:relative}digi-code-block .digi-code-block pre{margin:0}digi-code-block .digi-code-block--light{}digi-code-block .digi-code-block--light code[class*=language-],digi-code-block .digi-code-block--light pre[class*=language-]{color:#545454;background:none;font-family:var(--digi--global--typography--font-family--mono);text-align:left;white-space:pre-wrap;word-spacing:normal;word-break:break-word;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}digi-code-block .digi-code-block--light pre[class*=language-]{padding:1em;overflow:auto}digi-code-block .digi-code-block--light :not(pre)>code[class*=language-],digi-code-block .digi-code-block--light pre[class*=language-]{background:#fefefe}digi-code-block .digi-code-block--light :not(pre)>code[class*=language-]{padding:0.1em;white-space:normal}digi-code-block .digi-code-block--light .token.comment,digi-code-block .digi-code-block--light .token.prolog,digi-code-block .digi-code-block--light .token.doctype,digi-code-block .digi-code-block--light .token.cdata{color:#696969}digi-code-block .digi-code-block--light .token.punctuation{color:#545454}digi-code-block .digi-code-block--light .token.property,digi-code-block .digi-code-block--light .token.tag,digi-code-block .digi-code-block--light .token.constant,digi-code-block .digi-code-block--light .token.symbol,digi-code-block .digi-code-block--light .token.deleted{color:#007faa}digi-code-block .digi-code-block--light .token.boolean,digi-code-block .digi-code-block--light .token.number{color:#008000}digi-code-block .digi-code-block--light .token.selector,digi-code-block .digi-code-block--light .token.attr-name,digi-code-block .digi-code-block--light .token.string,digi-code-block .digi-code-block--light .token.char,digi-code-block .digi-code-block--light .token.builtin,digi-code-block .digi-code-block--light .token.inserted{color:#aa5d00}digi-code-block .digi-code-block--light .token.operator,digi-code-block .digi-code-block--light .token.entity,digi-code-block .digi-code-block--light .token.url,digi-code-block .digi-code-block--light .language-css .token.string,digi-code-block .digi-code-block--light .style .token.string,digi-code-block .digi-code-block--light .token.variable{color:#008000}digi-code-block .digi-code-block--light .token.atrule,digi-code-block .digi-code-block--light .token.attr-value,digi-code-block .digi-code-block--light .token.function{color:#aa5d00}digi-code-block .digi-code-block--light .token.keyword{color:#d91e18}digi-code-block .digi-code-block--light .token.regex,digi-code-block .digi-code-block--light .token.important{color:#d91e18}digi-code-block .digi-code-block--light .token.important,digi-code-block .digi-code-block--light .token.bold{font-weight:bold}digi-code-block .digi-code-block--light .token.italic{font-style:italic}digi-code-block .digi-code-block--light .token.entity{cursor:help}@media screen and (-ms-high-contrast: active){digi-code-block .digi-code-block--light code[class*=language-],digi-code-block .digi-code-block--light pre[class*=language-]{color:windowText;background:window}digi-code-block .digi-code-block--light :not(pre)>code[class*=language-],digi-code-block .digi-code-block--light pre[class*=language-]{background:window}digi-code-block .digi-code-block--light .token.important{background:highlight;color:window;font-weight:normal}digi-code-block .digi-code-block--light .token.atrule,digi-code-block .digi-code-block--light .token.attr-value,digi-code-block .digi-code-block--light .token.function,digi-code-block .digi-code-block--light .token.keyword,digi-code-block .digi-code-block--light .token.operator,digi-code-block .digi-code-block--light .token.selector{font-weight:bold}digi-code-block .digi-code-block--light .token.attr-value,digi-code-block .digi-code-block--light .token.comment,digi-code-block .digi-code-block--light .token.doctype,digi-code-block .digi-code-block--light .token.function,digi-code-block .digi-code-block--light .token.keyword,digi-code-block .digi-code-block--light .token.operator,digi-code-block .digi-code-block--light .token.property,digi-code-block .digi-code-block--light .token.string{color:highlight}digi-code-block .digi-code-block--light .token.attr-value,digi-code-block .digi-code-block--light .token.url{font-weight:normal}}digi-code-block .digi-code-block--dark{}digi-code-block .digi-code-block--dark .digi-code-block__button{--digi--button--color--text--function--default:var(--digi--color--text--secondary);--digi--button--color--text--function--hover:var(--digi--color--text--secondary);--digi--button--color--icon--function--default:var(--digi--color--text--secondary);--digi--button--color--icon--function--hover:var(--digi--color--text--secondary);--digi--button--color--text--function--focus:var(--digi--color--text--secondary);--digi--button--color--icon--function--focus:var(--digi--color--text--secondary)}digi-code-block .digi-code-block--dark code[class*=language-],digi-code-block .digi-code-block--dark pre[class*=language-]{color:#f8f8f2;background:none;font-family:var(--digi--global--typography--font-family--mono);text-align:left;white-space:pre-wrap;word-spacing:normal;word-break:break-word;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}digi-code-block .digi-code-block--dark pre[class*=language-]{padding:1em;overflow:auto}digi-code-block .digi-code-block--dark :not(pre)>code[class*=language-],digi-code-block .digi-code-block--dark pre[class*=language-]{background:#272727}digi-code-block .digi-code-block--dark :not(pre)>code[class*=language-]{padding:0.1em;white-space:normal}digi-code-block .digi-code-block--dark .token.comment,digi-code-block .digi-code-block--dark .token.prolog,digi-code-block .digi-code-block--dark .token.doctype,digi-code-block .digi-code-block--dark .token.cdata{color:#d4d0ab}digi-code-block .digi-code-block--dark .token.punctuation{color:#fefefe}digi-code-block .digi-code-block--dark .token.property,digi-code-block .digi-code-block--dark .token.tag,digi-code-block .digi-code-block--dark .token.constant,digi-code-block .digi-code-block--dark .token.symbol,digi-code-block .digi-code-block--dark .token.deleted{color:#ffa07a}digi-code-block .digi-code-block--dark .token.boolean,digi-code-block .digi-code-block--dark .token.number{color:#00e0e0}digi-code-block .digi-code-block--dark .token.selector,digi-code-block .digi-code-block--dark .token.attr-name,digi-code-block .digi-code-block--dark .token.string,digi-code-block .digi-code-block--dark .token.char,digi-code-block .digi-code-block--dark .token.builtin,digi-code-block .digi-code-block--dark .token.inserted{color:#abe338}digi-code-block .digi-code-block--dark .token.operator,digi-code-block .digi-code-block--dark .token.entity,digi-code-block .digi-code-block--dark .token.url,digi-code-block .digi-code-block--dark .language-css .token.string,digi-code-block .digi-code-block--dark .style .token.string,digi-code-block .digi-code-block--dark .token.variable{color:#00e0e0}digi-code-block .digi-code-block--dark .token.atrule,digi-code-block .digi-code-block--dark .token.attr-value,digi-code-block .digi-code-block--dark .token.function{color:#ffd700}digi-code-block .digi-code-block--dark .token.keyword{color:#00e0e0}digi-code-block .digi-code-block--dark .token.regex,digi-code-block .digi-code-block--dark .token.important{color:#ffd700}digi-code-block .digi-code-block--dark .token.important,digi-code-block .digi-code-block--dark .token.bold{font-weight:bold}digi-code-block .digi-code-block--dark .token.italic{font-style:italic}digi-code-block .digi-code-block--dark .token.entity{cursor:help}@media screen and (-ms-high-contrast: active){digi-code-block .digi-code-block--dark code[class*=language-],digi-code-block .digi-code-block--dark pre[class*=language-]{color:windowText;background:window}digi-code-block .digi-code-block--dark :not(pre)>code[class*=language-],digi-code-block .digi-code-block--dark pre[class*=language-]{background:window}digi-code-block .digi-code-block--dark .token.important{background:highlight;color:window;font-weight:normal}digi-code-block .digi-code-block--dark .token.atrule,digi-code-block .digi-code-block--dark .token.attr-value,digi-code-block .digi-code-block--dark .token.function,digi-code-block .digi-code-block--dark .token.keyword,digi-code-block .digi-code-block--dark .token.operator,digi-code-block .digi-code-block--dark .token.selector{font-weight:bold}digi-code-block .digi-code-block--dark .token.attr-value,digi-code-block .digi-code-block--dark .token.comment,digi-code-block .digi-code-block--dark .token.doctype,digi-code-block .digi-code-block--dark .token.function,digi-code-block .digi-code-block--dark .token.keyword,digi-code-block .digi-code-block--dark .token.operator,digi-code-block .digi-code-block--dark .token.property,digi-code-block .digi-code-block--dark .token.string{color:highlight}digi-code-block .digi-code-block--dark .token.attr-value,digi-code-block .digi-code-block--dark .token.url{font-weight:normal}}digi-code-block .digi-code-block__toolbar{padding-bottom:0.5rem;display:flex;justify-content:flex-end;position:absolute;bottom:0;width:100%}digi-code-block .digi-code-block__button{margin-right:var(--digi--margin--smaller)}";
|
|
59
47
|
const DigiCodeBlockStyle0 = codeBlockCss;
|
|
@@ -98,132 +86,4 @@ const CodeBlock = class {
|
|
|
98
86
|
};
|
|
99
87
|
CodeBlock.style = DigiCodeBlockStyle0;
|
|
100
88
|
|
|
101
|
-
const formFieldsetCss = ".sc-digi-form-fieldset-h{--digi--form-fieldset--padding:0;--digi--form-fieldset--border:none;--digi--form-fieldset--legend--font-weight:var(--digi--typography--description--font-weight--desktop);--digi--form-fieldset--legend--font-family:var(--digi--global--typography--font-family--default);--digi--form-fieldset--legend--font-size:var(--digi--typography--description--font-size--desktop);--digi--form-fieldset--legend--color:var(--digi--color--text--primary);--digi--form-fieldset--legend--margin:var(--digi--margin--h2-large)}.sc-digi-form-fieldset-h .digi-form-fieldset.sc-digi-form-fieldset{margin:0px;padding:var(--digi--form-fieldset--padding);border:var(--digi--form-fieldset--border)}.sc-digi-form-fieldset-h .digi-form-fieldset__legend.sc-digi-form-fieldset{font-weight:var(--digi--form-fieldset--legend--font-weight);font-family:var(--digi--form-fieldset--legend--font-family);font-size:var(--digi--form-fieldset--legend--font-size);color:var(--digi--form-fieldset--legend--color);margin-block-end:var(--digi--form-fieldset--legend--margin);padding:0px}";
|
|
102
|
-
const DigiFormFieldsetStyle0 = formFieldsetCss;
|
|
103
|
-
|
|
104
|
-
const FormFieldset = class {
|
|
105
|
-
constructor(hostRef) {
|
|
106
|
-
index.registerInstance(this, hostRef);
|
|
107
|
-
this.afLegend = undefined;
|
|
108
|
-
this.afName = undefined;
|
|
109
|
-
this.afForm = undefined;
|
|
110
|
-
this.afId = randomIdGenerator_util.randomIdGenerator('digi-form-fieldset');
|
|
111
|
-
this.afValidation = typographyVariation_enum.FormFieldsetValidation.NEUTRAL;
|
|
112
|
-
this.afValidationText = undefined;
|
|
113
|
-
this.afErrorMessageIsAlert = true;
|
|
114
|
-
}
|
|
115
|
-
get errorMessageIsAlert() {
|
|
116
|
-
return (this.afErrorMessageIsAlert !== false &&
|
|
117
|
-
this.afErrorMessageIsAlert !== 'false');
|
|
118
|
-
}
|
|
119
|
-
render() {
|
|
120
|
-
return (index.h("fieldset", { key: '2a3aeddb712d49ff99f788867ac270f563f34454', class: "digi-form-fieldset", name: this.afName, form: this.afForm, id: this.afId }, this.afLegend && (index.h("legend", { key: 'a2e44584d821be6b1fd71a04d9313fdb572b8390', class: "digi-form-fieldset__legend" }, this.afLegend)), index.h("slot", { key: '072437bb8dd5064642f96c605388957016423360' }), index.h("div", { key: '57859d430e16c47b4fd70174f13b04b9dec61561', class: "digi-form-input__validation", "aria-atomic": "true", role: this.errorMessageIsAlert ? 'alert' : null, id: `${this.afId}--validation-text` }, this.afValidation != typographyVariation_enum.FormFieldsetValidation.NEUTRAL && (index.h("digi-form-validation-message", { key: 'b74841c651c2a9c0822b2eaeb3d21be617b279a8', class: "digi-form-input__validation-message", "af-variation": this.afValidation }, this.afValidationText)))));
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
FormFieldset.style = DigiFormFieldsetStyle0;
|
|
124
|
-
|
|
125
|
-
const formRadiobuttonCss = ".sc-digi-form-radiobutton-h{--digi--form-radiobutton--border-color:var(--digi--color--border--interactive--default--on-input);--digi--form-radiobutton--border-color--primary:var(--digi--color--border--interactive--selected--primary);--digi--form-radiobutton--border-color--secondary:var(--digi--color--border--interactive--selected--secondary);--digi--form-radiobutton--border-color--error:var(--digi--color--border--interactive--validation--error);--digi--form-radiobutton--box-shadow--error:var(--digi--color--border--interactive--validation--error);--digi--form-radiobutton--background-color:var(--digi--color--background--interactive--default--input-elements);--digi--form-radiobutton--background-color--primary:var(--digi--color--background--interactive--selected--primary);--digi--form-radiobutton--background-color--secondary:var(--digi--color--background--interactive--selected--secondary);--digi--form-radiobutton--background-color--error:var(--digi--color--background--interactive--validation--error);--digi--form-radiobutton--border-width:var(--digi--border-width--primary);--digi--form-radiobutton--color--marker:var(--digi--grayscale--0);--digi--form-radiobutton--size:1.25rem;--digi--form-radiobutton--marker--size:calc(var(--digi--typography--input--font-size--desktop-large) * 0.4);--digi--form-radiobutton--height:var(--digi--input-height--large);--digi--form-radiobutton--border-radius:var(--digi--border-radius--primary);--digi--form-radiobutton--padding:var(--digi--gutter--icon);--digi--form-radiobutton--padding--block:var(--digi--gutter--small);--digi--form-radiobutton--padding--inline:var(--digi--gutter--icon)}.sc-digi-form-radiobutton-h .digi-form-radiobutton.sc-digi-form-radiobutton{--BACKGROUND--DEFAULT:var(--digi--form-radiobutton--background-color);--BORDER-COLOR--DEFAULT:var(--digi--form-radiobutton--border-color);position:relative}.sc-digi-form-radiobutton-h .digi-form-radiobutton--primary.sc-digi-form-radiobutton{--BACKGROUND--CHECKED:var(--digi--form-radiobutton--background-color--primary);--BORDER-COLOR--CHECKED:var(--digi--form-radiobutton--border-color--primary)}.sc-digi-form-radiobutton-h .digi-form-radiobutton--secondary.sc-digi-form-radiobutton{--BACKGROUND--CHECKED:var(--digi--form-radiobutton--background-color--secondary);--BORDER-COLOR--CHECKED:var(--digi--form-radiobutton--border-color--secondary)}.sc-digi-form-radiobutton-h .digi-form-radiobutton--error.sc-digi-form-radiobutton .digi-form-radiobutton__input.sc-digi-form-radiobutton:not(:checked)~.digi-form-radiobutton__label.sc-digi-form-radiobutton .digi-form-radiobutton__circle.sc-digi-form-radiobutton{--BACKGROUND--CHECKED:var(--digi--form-radiobutton--background-color--error);--BORDER-COLOR--CHECKED:var(--digi--form-radiobutton--border-color--error)}.sc-digi-form-radiobutton-h .digi-form-radiobutton--error.sc-digi-form-radiobutton .digi-form-radiobutton__input.sc-digi-form-radiobutton~.digi-form-radiobutton__label.sc-digi-form-radiobutton .digi-form-radiobutton__circle.sc-digi-form-radiobutton{background-color:var(--BACKGROUND--CHECKED);border-color:var(--BORDER-COLOR--CHECKED);box-shadow:0 0 0 var(--digi--border-width--primary) var(--digi--form-radiobutton--box-shadow--error)}.digi-form-radiobutton__input.sc-digi-form-radiobutton{position:absolute;opacity:0;cursor:pointer;height:0;width:0;top:0;left:0}.digi-form-radiobutton__label.sc-digi-form-radiobutton{display:inline-flex;align-items:center;gap:var(--digi--gutter--icon);font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--body--font-size--desktop);color:var(--digi--color--text--primary);font-weight:var(--digi--typography--body--font-weight--desktop);cursor:pointer;margin-bottom:0.75rem}.digi-form-radiobutton__circle.sc-digi-form-radiobutton{flex-shrink:0;align-self:flex-start;cursor:pointer;background-color:var(--BACKGROUND--DEFAULT);border-color:var(--BORDER-COLOR--DEFAULT);border-width:var(--digi--form-radiobutton--border-width);border-style:solid;height:var(--digi--form-radiobutton--size);width:var(--digi--form-radiobutton--size);border-radius:var(--digi--form-radiobutton--size);position:relative;transform:translateY(1px)}.digi-form-radiobutton__input.sc-digi-form-radiobutton:focus-visible~.digi-form-radiobutton__label.sc-digi-form-radiobutton .digi-form-radiobutton__circle.sc-digi-form-radiobutton{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.digi-form-radiobutton__input.sc-digi-form-radiobutton:focus:not(:checked)~.digi-form-radiobutton__label.sc-digi-form-radiobutton .digi-form-radiobutton__circle.sc-digi-form-radiobutton{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.digi-form-radiobutton__input.sc-digi-form-radiobutton:checked~.digi-form-radiobutton__label.sc-digi-form-radiobutton .digi-form-radiobutton__circle.sc-digi-form-radiobutton{background-color:var(--BACKGROUND--CHECKED);border-color:var(--BORDER-COLOR--CHECKED)}.digi-form-radiobutton__input.sc-digi-form-radiobutton:checked~.digi-form-radiobutton__label.sc-digi-form-radiobutton .digi-form-radiobutton__circle.sc-digi-form-radiobutton::after{content:\"\";width:var(--digi--form-radiobutton--marker--size);height:var(--digi--form-radiobutton--marker--size);border-radius:var(--digi--form-radiobutton--marker--size);background:var(--digi--form-radiobutton--color--marker);position:absolute;left:calc(50% - var(--digi--form-radiobutton--marker--size) / 2);top:calc(50% - var(--digi--form-radiobutton--marker--size) / 2)}";
|
|
126
|
-
const DigiFormRadiobuttonStyle0 = formRadiobuttonCss;
|
|
127
|
-
|
|
128
|
-
const FormRadiobutton = class {
|
|
129
|
-
constructor(hostRef) {
|
|
130
|
-
index.registerInstance(this, hostRef);
|
|
131
|
-
this.afOnChange = index.createEvent(this, "afOnChange", 7);
|
|
132
|
-
this.afOnBlur = index.createEvent(this, "afOnBlur", 7);
|
|
133
|
-
this.afOnFocus = index.createEvent(this, "afOnFocus", 7);
|
|
134
|
-
this.afOnFocusout = index.createEvent(this, "afOnFocusout", 7);
|
|
135
|
-
this.afOnInput = index.createEvent(this, "afOnInput", 7);
|
|
136
|
-
this.afOnDirty = index.createEvent(this, "afOnDirty", 7);
|
|
137
|
-
this.afOnTouched = index.createEvent(this, "afOnTouched", 7);
|
|
138
|
-
this.afOnReady = index.createEvent(this, "afOnReady", 3);
|
|
139
|
-
this.dirty = false;
|
|
140
|
-
this.touched = false;
|
|
141
|
-
this.afLabel = undefined;
|
|
142
|
-
this.afVariation = typographyVariation_enum.FormRadiobuttonVariation.PRIMARY;
|
|
143
|
-
this.afLayout = typographyVariation_enum.FormRadiobuttonLayout.INLINE;
|
|
144
|
-
this.afName = undefined;
|
|
145
|
-
this.afId = randomIdGenerator_util.randomIdGenerator('digi-form-radiobutton');
|
|
146
|
-
this.afRequired = undefined;
|
|
147
|
-
this.value = undefined;
|
|
148
|
-
this.afValue = undefined;
|
|
149
|
-
this.checked = undefined;
|
|
150
|
-
this.afChecked = undefined;
|
|
151
|
-
this.afValidation = undefined;
|
|
152
|
-
this.afAriaLabelledby = undefined;
|
|
153
|
-
this.afAriaDescribedby = undefined;
|
|
154
|
-
this.afAutofocus = undefined;
|
|
155
|
-
}
|
|
156
|
-
onValueChanged(newValue) {
|
|
157
|
-
this.afChecked = newValue === this.afValue;
|
|
158
|
-
}
|
|
159
|
-
onCheckedChanged(checked) {
|
|
160
|
-
this.afChecked = checked;
|
|
161
|
-
}
|
|
162
|
-
onAfCheckedChanged(checked) {
|
|
163
|
-
this.checked = checked;
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Hämta en referens till inputelementet. Bra för att t.ex. sätta fokus programmatiskt.
|
|
167
|
-
* @en Returns a reference to the input element. Handy for setting focus programmatically.
|
|
168
|
-
*/
|
|
169
|
-
async afMGetFormControlElement() {
|
|
170
|
-
return this._input;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Lyssnar på om fokus sätts på custom-elementet och propagerar ner det till själva input-elementet.
|
|
174
|
-
* @en Listens for when focus is set on the custom element and propagates it down to the actual input element.
|
|
175
|
-
*/
|
|
176
|
-
focusOnInput() {
|
|
177
|
-
this._input.focus();
|
|
178
|
-
}
|
|
179
|
-
componentDidLoad() {
|
|
180
|
-
this.afOnReady.emit();
|
|
181
|
-
}
|
|
182
|
-
get cssModifiers() {
|
|
183
|
-
return {
|
|
184
|
-
'digi-form-radiobutton--error': this.afValidation === typographyVariation_enum.FormRadiobuttonValidation.ERROR,
|
|
185
|
-
'digi-form-radiobutton--primary': this.afVariation === typographyVariation_enum.FormRadiobuttonVariation.PRIMARY,
|
|
186
|
-
'digi-form-radiobutton--secondary': this.afVariation === typographyVariation_enum.FormRadiobuttonVariation.SECONDARY,
|
|
187
|
-
[`digi-form-radiobutton--layout-${this.afLayout}`]: !!this.afLayout
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
blurHandler(e) {
|
|
191
|
-
if (!this.touched) {
|
|
192
|
-
this.afOnTouched.emit(e);
|
|
193
|
-
this.touched = true;
|
|
194
|
-
}
|
|
195
|
-
this.afOnBlur.emit(e);
|
|
196
|
-
}
|
|
197
|
-
changeHandler(e) {
|
|
198
|
-
this.afOnChange.emit(e);
|
|
199
|
-
}
|
|
200
|
-
focusHandler(e) {
|
|
201
|
-
this.afOnFocus.emit(e);
|
|
202
|
-
}
|
|
203
|
-
focusoutHandler(e) {
|
|
204
|
-
this.afOnFocusout.emit(e);
|
|
205
|
-
}
|
|
206
|
-
inputHandler(e) {
|
|
207
|
-
if (!this.dirty) {
|
|
208
|
-
this.afOnDirty.emit(e);
|
|
209
|
-
this.dirty = true;
|
|
210
|
-
}
|
|
211
|
-
this.afOnInput.emit(e);
|
|
212
|
-
}
|
|
213
|
-
render() {
|
|
214
|
-
return (index.h(index.Host, { key: 'c219f20c710f23829a44887396b31f03860b5071', tabindex: -1 }, index.h("div", { key: '8a79373d73a6a2285694738d15e735dffa06f058', class: Object.assign({ 'digi-form-radiobutton': true }, this.cssModifiers) }, index.h("input", { key: 'eaf8472603390c55b3857f1918094494b0ff38f9', class: "digi-form-radiobutton__input", ref: (el) => (this._input = el), onInput: (e) => this.inputHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), "aria-describedby": this.afAriaDescribedby, "aria-labelledby": this.afAriaLabelledby, "aria-invalid": this.afValidation === typographyVariation_enum.FormRadiobuttonValidation.ERROR
|
|
215
|
-
? 'true'
|
|
216
|
-
: 'false', required: this.afRequired, id: this.afId, name: this.afName, type: "radio", checked: this.afChecked, value: this.afValue, autofocus: this.afAutofocus ? this.afAutofocus : null }), index.h("label", { key: 'f3049d0f425c3f756f6e157a0a9f243541dbd468', htmlFor: this.afId, class: "digi-form-radiobutton__label" }, index.h("span", { key: '3114e3bc85e870e916dd642a448bd4016e7b648e', class: "digi-form-radiobutton__circle" }), this.afLabel))));
|
|
217
|
-
}
|
|
218
|
-
get hostElement() { return index.getElement(this); }
|
|
219
|
-
static get watchers() { return {
|
|
220
|
-
"value": ["onValueChanged"],
|
|
221
|
-
"checked": ["onCheckedChanged"],
|
|
222
|
-
"afChecked": ["onAfCheckedChanged"]
|
|
223
|
-
}; }
|
|
224
|
-
};
|
|
225
|
-
FormRadiobutton.style = DigiFormRadiobuttonStyle0;
|
|
226
|
-
|
|
227
89
|
exports.digi_code_block = CodeBlock;
|
|
228
|
-
exports.digi_form_fieldset = FormFieldset;
|
|
229
|
-
exports.digi_form_radiobutton = FormRadiobutton;
|
|
@@ -8,7 +8,7 @@ const buttonVariation_enum = require('./button-variation.enum-bc521499.js');
|
|
|
8
8
|
const text = require('./text-65b1b58c.js');
|
|
9
9
|
const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
|
|
10
10
|
|
|
11
|
-
const codeExampleCss = ".sc-digi-code-example-h{--digi--code-example--background:var(--digi--color--background--primary);--digi--code-example--controls--width:16.25rem;display:block}.digi-code-example.sc-digi-code-example{background-size:20px 20px;background-position:0 0, 0 10px, 10px -10px, -10px 0px;border:var(--digi--border-width--primary) solid var(--digi--color--divider--primary--light);height:100%;display:flex;flex-direction:row;border-radius:0.3rem;position:relative}@media (max-width: 35.9375rem){.digi-code-example.sc-digi-code-example{min-width:360px}}.digi-code-example--light.sc-digi-code-example{background-color:#ffffff;background-image:linear-gradient(45deg, #efefef 25%, transparent 25%), linear-gradient(-45deg, #efefef 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #efefef 75%), linear-gradient(-45deg, transparent 75%, #efefef 75%)}.digi-code-example--dark.sc-digi-code-example{background-color:#787777;background-image:linear-gradient(45deg, #666666 25%, transparent 25%), linear-gradient(-45deg, #666666 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #666666 75%), linear-gradient(-45deg, transparent 75%, #666666 75%)}.digi-code-example__container.sc-digi-code-example{display:flex;flex-direction:column;justify-content:space-between;flex-grow:1;position:relative}.digi-code-example--no-controls.sc-digi-code-example{flex-direction:column}.digi-code-example--no-controls.sc-digi-code-example .digi-code-example__copy-button.sc-digi-code-example{margin-top:0;align-self:flex-end;margin-bottom:0.2rem;z-index:1;position:absolute;bottom:0;right:0}.digi-code-example--no-controls.sc-digi-code-example .digi-code-example__copy-button--dark.sc-digi-code-example{--digi--button--color--text--function--default:var(--digi--color--text--secondary);--digi--button--color--text--function--hover:var(--digi--color--text--secondary);--digi--button--color--icon--function--default:var(--digi--color--text--secondary);--digi--button--color--icon--function--hover:var(--digi--color--text--secondary)}.digi-code-example__example.sc-digi-code-example{padding:var(--digi--padding--largest-2);overflow-x:auto}@media (max-width: 48rem){.digi-code-example__example.sc-digi-code-example{padding:var(--digi--padding--medium)}}@media (max-width: 35.9375rem){.digi-code-example__example.sc-digi-code-example{padding:var(--digi--padding--small)}}.digi-code-example__copy-button.sc-digi-code-example{align-self:start;margin-top:var(--digi--padding--large);margin-right:var(--digi--padding--small)}.digi-code-example__codeblock.sc-digi-code-example digi-code-block.sc-digi-code-example{--digi--code-block--border-radius:0;--digi--code-block--border:none}.digi-code-example__controls.sc-digi-code-example{padding:var(--digi--padding--medium);background:var(--digi--color--background--secondary);display:flex;flex:0 var(--digi--code-example--controls--width);flex-direction:column;align-self:stretch;flex-shrink:0;justify-content:space-between;gap:var(--digi--gutter--medium)}@media (max-width: 48rem){.digi-code-example__controls.sc-digi-code-example{padding:var(--digi--padding--smaller)}}.digi-code-example__controls[hidden].sc-digi-code-example{display:none}.digi-code-example--inactive.sc-digi-code-example .digi-code-example__code.sc-digi-code-example{display:flex;flex-direction:column;flex-grow:1}.digi-code-example--inactive.sc-digi-code-example .digi-code-example__codeblock.sc-digi-code-example{flex-grow:1;height:64px;overflow-y:hidden;position:relative}.digi-code-example__code-expand.sc-digi-code-example{display:flex;align-items:center;justify-content:center;gap:var(--digi--gutter--icon);width:100%;padding:0.875rem 0;background:#272727;color:var(--digi--color--text--secondary);font-size:var(--digi--typography--body--font-size--desktop);font-family:var(--digi--global--typography--font-family--default);cursor:pointer;border:none}.digi-code-example__code-expand.sc-digi-code-example:hover{background:var(--digi--grayscale--900);text-decoration:underline}.digi-code-example__code-expand.sc-digi-code-example:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.digi-code-example--no-controls.digi-code-example--inactive.sc-digi-code-example .digi-code-example__codeblock.sc-digi-code-example{height:64px}.digi-code-example__copy-button.sc-digi-code-example{--digi--button--padding--small:0;--digi--button--padding--medium:0;--digi--button--padding--large:0}.digi-code-example__code-expand-icon.sc-digi-code-example{--digi--icon--color:var(--digi--color--text--secondary);transition:ease-in-out var(--digi--animation--duration--base) all}.digi-code-example__code-expand-icon--open.sc-digi-code-example{transform:rotate(180deg)}.digi-code-example__fade.sc-digi-code-example{position:absolute;width:100%;bottom:0;height:var(--digi--padding--largest-2)}.digi-code-example__fade--light.sc-digi-code-example{background-image:linear-gradient(0deg, white, transparent)}.digi-code-example__fade--dark.sc-digi-code-example{--digi--color--background--inverted-3:#272727;background-image:linear-gradient(0deg, var(--digi--grayscale--900), transparent)}.slot__controls.sc-digi-code-example{margin-bottom:var(--digi--padding--smaller)}.sc-digi-code-example-s .slot__controls{display:flex;flex-direction:column;gap:var(--digi--padding--smaller)}.sc-digi-code-example-s .slot__controls[hidden]{display:none}.sc-digi-code-example-s .slot__controls digi-form-fieldset,.sc-digi-code-example-s .slot__controls digi-form-select,.sc-digi-code-example-s .slot__controls digi-form-fieldset+digi-form-checkbox,.sc-digi-code-example-s .slot__controls .divider{display:block;border-bottom:1px solid var(--digi--color--divider--primary--light);padding-bottom:var(--digi--padding--smaller);margin-bottom:var(--digi--padding--medium)}";
|
|
11
|
+
const codeExampleCss = ".sc-digi-code-example-h{--digi--code-example--background:var(--digi--color--background--primary);--digi--code-example--controls--width:16.25rem;display:block}.digi-code-example.sc-digi-code-example{background-size:20px 20px;background-position:0 0, 0 10px, 10px -10px, -10px 0px;border:var(--digi--border-width--primary) solid var(--digi--color--divider--primary--light);height:100%;display:flex;flex-direction:row;border-radius:0.3rem;position:relative}@media (max-width: 35.9375rem){.digi-code-example.sc-digi-code-example{min-width:360px}}.digi-code-example--light.sc-digi-code-example{background-color:#ffffff;background-image:linear-gradient(45deg, #efefef 25%, transparent 25%), linear-gradient(-45deg, #efefef 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #efefef 75%), linear-gradient(-45deg, transparent 75%, #efefef 75%)}@media (prefers-color-scheme: dark){.digi-code-example--light.sc-digi-code-example{background-color:#787777;background-image:linear-gradient(45deg, #666666 25%, transparent 25%), linear-gradient(-45deg, #666666 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #666666 75%), linear-gradient(-45deg, transparent 75%, #666666 75%)}}.digi-code-example--dark.sc-digi-code-example{background-color:#787777;background-image:linear-gradient(45deg, #666666 25%, transparent 25%), linear-gradient(-45deg, #666666 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #666666 75%), linear-gradient(-45deg, transparent 75%, #666666 75%)}.digi-code-example__container.sc-digi-code-example{display:flex;flex-direction:column;justify-content:space-between;flex-grow:1;position:relative}.digi-code-example--no-controls.sc-digi-code-example{flex-direction:column}.digi-code-example--no-controls.sc-digi-code-example .digi-code-example__copy-button.sc-digi-code-example{margin-top:0;align-self:flex-end;margin-bottom:0.2rem;z-index:1;position:absolute;bottom:0;right:0}.digi-code-example--no-controls.sc-digi-code-example .digi-code-example__copy-button--dark.sc-digi-code-example{--digi--button--color--text--function--default:var(--digi--color--text--secondary);--digi--button--color--text--function--hover:var(--digi--color--text--secondary);--digi--button--color--icon--function--default:var(--digi--color--text--secondary);--digi--button--color--icon--function--hover:var(--digi--color--text--secondary)}.digi-code-example__example.sc-digi-code-example{padding:var(--digi--padding--largest-2);overflow-x:auto}@media (max-width: 48rem){.digi-code-example__example.sc-digi-code-example{padding:var(--digi--padding--medium)}}@media (max-width: 35.9375rem){.digi-code-example__example.sc-digi-code-example{padding:var(--digi--padding--small)}}.digi-code-example__copy-button.sc-digi-code-example{align-self:start;margin-top:var(--digi--padding--large);margin-right:var(--digi--padding--small)}.digi-code-example__codeblock.sc-digi-code-example digi-code-block.sc-digi-code-example{--digi--code-block--border-radius:0;--digi--code-block--border:none}.digi-code-example__controls.sc-digi-code-example{padding:var(--digi--padding--medium);background:var(--digi--color--background--secondary);display:flex;flex:0 var(--digi--code-example--controls--width);flex-direction:column;align-self:stretch;flex-shrink:0;justify-content:space-between;gap:var(--digi--gutter--medium)}@media (max-width: 48rem){.digi-code-example__controls.sc-digi-code-example{padding:var(--digi--padding--smaller)}}.digi-code-example__controls[hidden].sc-digi-code-example{display:none}.digi-code-example--inactive.sc-digi-code-example .digi-code-example__code.sc-digi-code-example{display:flex;flex-direction:column;flex-grow:1}.digi-code-example--inactive.sc-digi-code-example .digi-code-example__codeblock.sc-digi-code-example{flex-grow:1;height:64px;overflow-y:hidden;position:relative}.digi-code-example__code-expand.sc-digi-code-example{display:flex;align-items:center;justify-content:center;gap:var(--digi--gutter--icon);width:100%;padding:0.875rem 0;background:#272727;color:var(--digi--color--text--secondary);font-size:var(--digi--typography--body--font-size--desktop);font-family:var(--digi--global--typography--font-family--default);cursor:pointer;border:none}.digi-code-example__code-expand.sc-digi-code-example:hover{background:var(--digi--grayscale--900);text-decoration:underline}.digi-code-example__code-expand.sc-digi-code-example:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.digi-code-example--no-controls.digi-code-example--inactive.sc-digi-code-example .digi-code-example__codeblock.sc-digi-code-example{height:64px}.digi-code-example__copy-button.sc-digi-code-example{--digi--button--padding--small:0;--digi--button--padding--medium:0;--digi--button--padding--large:0}.digi-code-example__code-expand-icon.sc-digi-code-example{--digi--icon--color:var(--digi--color--text--secondary);transition:ease-in-out var(--digi--animation--duration--base) all}.digi-code-example__code-expand-icon--open.sc-digi-code-example{transform:rotate(180deg)}.digi-code-example__fade.sc-digi-code-example{position:absolute;width:100%;bottom:0;height:var(--digi--padding--largest-2)}.digi-code-example__fade--light.sc-digi-code-example{background-image:linear-gradient(0deg, white, transparent)}.digi-code-example__fade--dark.sc-digi-code-example{--digi--color--background--inverted-3:#272727;background-image:linear-gradient(0deg, var(--digi--grayscale--900), transparent)}.slot__controls.sc-digi-code-example{margin-bottom:var(--digi--padding--smaller)}.sc-digi-code-example-s .slot__controls{display:flex;flex-direction:column;gap:var(--digi--padding--smaller)}.sc-digi-code-example-s .slot__controls[hidden]{display:none}.sc-digi-code-example-s .slot__controls digi-form-fieldset,.sc-digi-code-example-s .slot__controls digi-form-select,.sc-digi-code-example-s .slot__controls digi-form-fieldset+digi-form-checkbox,.sc-digi-code-example-s .slot__controls .divider{display:block;border-bottom:1px solid var(--digi--color--divider--primary--light);padding-bottom:var(--digi--padding--smaller);margin-bottom:var(--digi--padding--medium)}";
|
|
12
12
|
const DigiCodeExampleStyle0 = codeExampleCss;
|
|
13
13
|
|
|
14
14
|
const CodeExample = class {
|