@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
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-7a477838.js');
|
|
6
|
-
const typographyHeadingJumboVariation_enum = require('./typography-heading-jumbo-variation.enum-8677e099.js');
|
|
7
|
-
|
|
8
|
-
const typographyHeadingJumboCss = ".sc-digi-typography-heading-jumbo-h{display:block}.sc-digi-typography-heading-jumbo-h .digi-typography-heading-jumbo.sc-digi-typography-heading-jumbo{font-size:var(--digi--typography--heading-jumbo--font-size--desktop);font-family:var(--digi--global--typography--font-family--default);color:var(--digi--color--text--primary);font-weight:var(--digi--typography--heading-jumbo--font-weight--desktop)}@media (min-width: 61.9375rem){.sc-digi-typography-heading-jumbo-h .digi-typography-heading-jumbo.sc-digi-typography-heading-jumbo{font-size:var(--digi--typography--heading-jumbo--font-size--desktop-large)}}.sc-digi-typography-heading-jumbo-h .digi-typography-heading-jumbo--secondary.sc-digi-typography-heading-jumbo{color:var(--digi--grayscale--0)}.sc-digi-typography-heading-jumbo-h .digi-typography-heading-jumbo.sc-digi-typography-heading-jumbo::after{content:\"\";width:11.875rem;height:0.4375rem;background:var(--digi--color--border--accent--primary);display:block;margin-top:var(--digi--padding--small)}@media (min-width: 61.9375rem){.sc-digi-typography-heading-jumbo-h .digi-typography-heading-jumbo.sc-digi-typography-heading-jumbo::after{width:13.75rem;margin-top:var(--digi--margin--h2-large);height:0.625rem}}.sc-digi-typography-heading-jumbo-h .digi-typography-heading-jumbo--secondary.sc-digi-typography-heading-jumbo::after{background:var(--digi--color--border--accent--secondary)}digi-typography .sc-digi-typography-heading-jumbo-h .digi-typography-heading-jumbo.sc-digi-typography-heading-jumbo{margin-bottom:var(--digi--margin--medium)}";
|
|
9
|
-
const DigiTypographyHeadingJumboStyle0 = typographyHeadingJumboCss;
|
|
10
|
-
|
|
11
|
-
const TypographyHeadingJumbo = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.afText = '';
|
|
15
|
-
this.afVariation = undefined;
|
|
16
|
-
this.afLevel = typographyHeadingJumboVariation_enum.TypographyHeadingJumboLevel.H1;
|
|
17
|
-
this.afLang = 'sv';
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Lyssnar på om fokus sätts på custom-elementet och propagerar ner det till själva rubrik-elementet.
|
|
21
|
-
* @en Listens for when focus is set on the custom element and propagates it down to the actual heading element.
|
|
22
|
-
*/
|
|
23
|
-
focusOnHeading() {
|
|
24
|
-
this.headingElement.focus();
|
|
25
|
-
}
|
|
26
|
-
get cssModifiers() {
|
|
27
|
-
return {
|
|
28
|
-
'digi-typography-heading-jumbo--primary': this.afVariation === typographyHeadingJumboVariation_enum.TypographyHeadingJumboVariation.PRIMARY,
|
|
29
|
-
'digi-typography-heading-jumbo--secondary': this.afVariation === typographyHeadingJumboVariation_enum.TypographyHeadingJumboVariation.SECONDARY
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
return (index.h(this.afLevel, { key: '9f5b33cb6882d1cb0c154c5f861e5c36ed82192f', ref: (el) => (this.headingElement = el), class: Object.assign({ 'digi-typography-heading-jumbo': true }, this.cssModifiers), lang: this.afLang, tabindex: -1 }, this.afText));
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
TypographyHeadingJumbo.style = DigiTypographyHeadingJumboStyle0;
|
|
37
|
-
|
|
38
|
-
exports.digi_typography_heading_jumbo = TypographyHeadingJumbo;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-7a477838.js');
|
|
6
|
-
|
|
7
|
-
const typographyPreambleCss = ".sc-digi-typography-preamble-h .digi-typography-preamble.sc-digi-typography-preamble{font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--preamble--font-size--mobile);font-weight:var(--digi--typography--preamble--font-weight--desktop);line-height:var(--digi--typography--preamble--line-height--mobile);color:var(--digi--color--text--primary);max-width:var(--digi--paragraph-width--medium)}@media (min-width: 61.9375rem){.sc-digi-typography-preamble-h .digi-typography-preamble.sc-digi-typography-preamble{font-size:var(--digi--typography--preamble--font-size--desktop);line-height:var(--digi--typography--preamble--line-height--desktop)}}";
|
|
8
|
-
const DigiTypographyPreambleStyle0 = typographyPreambleCss;
|
|
9
|
-
|
|
10
|
-
const TypographyPreamble = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
return (index.h("p", { key: '36309e9f92d69a4587a898c72453227a27650f5a', class: "digi-typography-preamble" }, index.h("slot", { key: '77e915bba6d272a6d6e6aca0820e598a2f29369b' })));
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
TypographyPreamble.style = DigiTypographyPreambleStyle0;
|
|
19
|
-
|
|
20
|
-
exports.digi_typography_preamble = TypographyPreamble;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-7a477838.js');
|
|
6
|
-
|
|
7
|
-
const typographyCss = "digi-typography{--digi--typography--h1--margin--small:var(--digi--margin--h1-small);--digi--typography--h1--margin--medium:var(--digi--margin--h1-medium);--digi--typography--h1--margin--large:var(--digi--margin--h1-large);--digi--typography--h2--margin--small:var(--digi--margin--h2-small);--digi--typography--h2--margin--large:var(--digi--margin--h2-large);--digi--typography--h3--margin--small:var(--digi--margin--h3-small);--digi--typography--h3--margin--large:var(--digi--margin--h3-large);--digi--typography--h4--margin--small:var(--digi--margin--h4-h6-small);--digi--typography--h4--margin--large:var(--digi--margin--h4-h6-large);--digi--typography--h5--margin--small:var(--digi--margin--h4-h6-small);--digi--typography--h6--margin--large:var(--digi--margin--h4-h6-large);--digi--typography--paragraph--margin--small:var(--digi--margin--text-small);--digi--typography--paragraph--margin--large:var(--digi--margin--text-large);--digi--typography--paragraph--margin-top:initial;--digi--typography--color--text:var(--digi--color--text--primary);--digi--typography--text-decoration-thickness--hover:0.156em;--digi--typography--text-decoration-thickness--default:0.05em;--digi--typography--text-underline-offset:3px;font-family:var(--digi--global--typography--font-family--default);color:var(--digi--typography--color--text);--FONT-SIZE--BODY:var(--digi--typography--body--font-size--mobile);--LINE-HEIGHT--BODY:var(--digi--typography--body--line-height--mobile);--FONT-WEIGHT--BODY:var(--digi--typography--body--font-weight--mobile);--TEXT-DECORATION--BODY:var(\n --digi--typography--body--text-decoration--mobile\n );--MARGIN--BODY:var(--digi--typography--paragraph--margin--small);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--mobile);--LINE-HEIGHT--LINK:var(--digi--typography--link--line-height--mobile);--FONT-WEIGHT--LINK:var(--digi--typography--link--font-weight--mobile);--TEXT-DECORATION--LINK:var(\n --digi--typography--link--text-decoration--mobile\n );--FONT-SIZE--HEADING-1:var(--digi--typography--heading-1--font-size--mobile);--LINE-HEIGHT--HEADING-1:var(\n --digi--typography--heading-1--line-height--mobile\n );--FONT-WEIGHT--HEADING-1:var(\n --digi--typography--heading-1--font-weight--mobile\n );--TEXT-DECORATION--HEADING-1:var(\n --digi--typography--heading-1--text-decoration--mobile\n );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--small);--FONT-SIZE--HEADING-2:var(--digi--typography--heading-2--font-size--mobile);--LINE-HEIGHT--HEADING-2:var(\n --digi--typography--heading-2--line-height--mobile\n );--FONT-WEIGHT--HEADING-2:var(\n --digi--typography--heading-2--font-weight--mobile\n );--TEXT-DECORATION--HEADING-2:var(\n --digi--typography--heading-2--text-decoration--mobile\n );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--small);--FONT-SIZE--HEADING-3:var(--digi--typography--heading-3--font-size--mobile);--LINE-HEIGHT--HEADING-3:var(\n --digi--typography--heading-3--line-height--mobile\n );--FONT-WEIGHT--HEADING-3:var(\n --digi--typography--heading-3--font-weight--mobile\n );--TEXT-DECORATION--HEADING-3:var(\n --digi--typography--heading-3--text-decoration--mobile\n );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--small);--FONT-SIZE--HEADING-4:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-4:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-4:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-4:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-5:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-5:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-5:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-5:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-5:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-6:var(--digi--typography--heading-4--font-size--mobile);--LINE-HEIGHT--HEADING-6:var(\n --digi--typography--heading-4--line-height--mobile\n );--FONT-WEIGHT--HEADING-6:var(\n --digi--typography--heading-4--font-weight--mobile\n );--TEXT-DECORATION--HEADING-6:var(\n --digi--typography--heading-4--text-decoration--mobile\n );--MARGIN--HEADING-6:var(--digi--typography--h4--margin--small);font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY)}@media (min-width: 61.9375rem){digi-typography{--FONT-SIZE--BODY:var(--digi--typography--body--font-size--desktop);--LINE-HEIGHT--BODY:var(--digi--typography--body--line-height--desktop);--FONT-WEIGHT--BODY:var(--digi--typography--body--font-weight--desktop);--TEXT-DECORATION--BODY:var(\n --digi--typography--body--text-decoration--desktop\n );--MARGIN--BODY:var(--digi--typography--paragraph--margin--small);--FONT-SIZE--LINK:var(--digi--typography--link--font-size--desktop);--LINE-HEIGHT--LINK:var(--digi--typography--link--line-height--desktop);--FONT-WEIGHT--LINK:var(--digi--typography--link--font-weight--desktop);--TEXT-DECORATION--LINK:var(\n --digi--typography--link--text-decoration--desktop\n );--FONT-SIZE--HEADING-1:var(\n --digi--typography--heading-1--font-size--desktop\n );--LINE-HEIGHT--HEADING-1:var(\n --digi--typography--heading-1--line-height--desktop\n );--FONT-WEIGHT--HEADING-1:var(\n --digi--typography--heading-1--font-weight--desktop\n );--TEXT-DECORATION--HEADING-1:var(\n --digi--typography--heading-1--text-decoration--desktop\n );--MARGIN--HEADING-1:var(--digi--typography--h1--margin--medium);--FONT-SIZE--HEADING-2:var(\n --digi--typography--heading-2--font-size--desktop\n );--LINE-HEIGHT--HEADING-2:var(\n --digi--typography--heading-2--line-height--desktop\n );--FONT-WEIGHT--HEADING-2:var(\n --digi--typography--heading-2--font-weight--desktop\n );--TEXT-DECORATION--HEADING-2:var(\n --digi--typography--heading-2--text-decoration--desktop\n );--MARGIN--HEADING-2:var(--digi--typography--h2--margin--small);--FONT-SIZE--HEADING-3:var(\n --digi--typography--heading-3--font-size--desktop\n );--LINE-HEIGHT--HEADING-3:var(\n --digi--typography--heading-3--line-height--desktop\n );--FONT-WEIGHT--HEADING-3:var(\n --digi--typography--heading-3--font-weight--desktop\n );--TEXT-DECORATION--HEADING-3:var(\n --digi--typography--heading-3--text-decoration--desktop\n );--MARGIN--HEADING-3:var(--digi--typography--h3--margin--small);--FONT-SIZE--HEADING-4:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-4:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-4:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-4:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-4:var(--digi--typography--h4--margin--small);--FONT-SIZE--HEADING-5:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-5:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-5:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-5:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-5:var(--digi--typography--h5--margin--small);--FONT-SIZE--HEADING-6:var(\n --digi--typography--heading-4--font-size--desktop\n );--LINE-HEIGHT--HEADING-6:var(\n --digi--typography--heading-4--line-height--desktop\n );--FONT-WEIGHT--HEADING-6:var(\n --digi--typography--heading-4--font-weight--desktop\n );--TEXT-DECORATION--HEADING-6:var(\n --digi--typography--heading-4--text-decoration--desktop\n );--MARGIN--HEADING-6:var(--digi--typography--h6--margin--small)}}digi-typography h1,digi-typography h2,digi-typography h3,digi-typography h4,digi-typography h5,digi-typography h6{margin-top:0;}digi-typography h1,digi-typography .digi-h1{font-size:var(--FONT-SIZE--HEADING-1);line-height:var(--LINE-HEIGHT--HEADING-1);font-weight:var(--FONT-WEIGHT--HEADING-1);text-decoration:var(--TEXT-DECORATION--HEADING-1);margin-bottom:var(--MARGIN--HEADING-1)}digi-typography h2,digi-typography .digi-h2{font-size:var(--FONT-SIZE--HEADING-2);line-height:var(--LINE-HEIGHT--HEADING-2);font-weight:var(--FONT-WEIGHT--HEADING-2);text-decoration:var(--TEXT-DECORATION--HEADING-2);margin-bottom:var(--MARGIN--HEADING-2)}digi-typography h3,digi-typography .digi-h3{font-size:var(--FONT-SIZE--HEADING-3);line-height:var(--LINE-HEIGHT--HEADING-3);font-weight:var(--FONT-WEIGHT--HEADING-3);text-decoration:var(--TEXT-DECORATION--HEADING-3);margin-bottom:var(--MARGIN--HEADING-3)}digi-typography h4,digi-typography .digi-h4{font-size:var(--FONT-SIZE--HEADING-4);line-height:var(--LINE-HEIGHT--HEADING-4);font-weight:var(--FONT-WEIGHT--HEADING-4);text-decoration:var(--TEXT-DECORATION--HEADING-4);margin-bottom:var(--MARGIN--HEADING-4)}digi-typography h5,digi-typography .digi-h5{font-size:var(--FONT-SIZE--HEADING-5);line-height:var(--LINE-HEIGHT--HEADING-5);font-weight:var(--FONT-WEIGHT--HEADING-5);text-decoration:var(--TEXT-DECORATION--HEADING-5);margin-bottom:var(--MARGIN--HEADING-5)}digi-typography h6,digi-typography .digi-h6{font-size:var(--FONT-SIZE--HEADING-6);line-height:var(--LINE-HEIGHT--HEADING-6);font-weight:var(--FONT-WEIGHT--HEADING-6);text-decoration:var(--TEXT-DECORATION--HEADING-6);margin-bottom:var(--MARGIN--HEADING-6)}digi-typography p,digi-typography blockquote{font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY);margin-top:initial;margin-bottom:var(--MARGIN--BODY);max-width:var(--digi--paragraph-width--medium)}digi-typography p:last-child,digi-typography blockquote:last-child{margin-bottom:0}digi-typography blockquote{margin-inline:0}digi-typography digi-typography-preamble{display:block;margin-bottom:var(--MARGIN--BODY)}digi-typography digi-typography-preamble:last-child{margin-bottom:0}digi-typography ul,digi-typography ol,digi-typography dl{font-size:var(--FONT-SIZE--BODY);line-height:var(--LINE-HEIGHT--BODY);font-weight:var(--FONT-WEIGHT--BODY);text-decoration:var(--TEXT-DECORATION--BODY);max-width:var(--digi--paragraph-width--medium);margin-bottom:var(--MARGIN--BODY)}digi-typography ul,digi-typography ol{margin:0 0 var(--MARGIN--BODY) 0;padding-inline-start:1.5rem}digi-typography ul li,digi-typography ol li{margin-top:initial;margin-bottom:0.5rem;box-sizing:border-box;width:100%;padding-left:0}digi-typography ul li:last-child,digi-typography ol li:last-child{margin-bottom:0}digi-typography a{font-size:1em;line-height:var(--LINE-HEIGHT--LINK);font-weight:inherit;text-decoration:var(--TEXT-DECORATION--LINK);color:var(--digi--color--text--interactive--primary);text-decoration-thickness:var(--digi--typography--text-decoration-thickness--default);text-underline-offset:var(--digi--typography--text-underline-offset)}digi-typography a:hover{text-decoration:var(--TEXT-DECORATION--LINK);text-decoration-thickness:var(--digi--typography--text-decoration-thickness--hover)}digi-typography a:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}digi-typography a:visited{color:var(--digi--color--text--interactive--visited)}digi-typography .digi-typography--hide-visited a:visited{color:var(--digi--color--text--interactive--primary)}digi-typography strong{font-weight:var(--digi--typography--label--font-weight--desktop)}";
|
|
8
|
-
const DigiTypographyStyle0 = typographyCss;
|
|
9
|
-
|
|
10
|
-
const Typography = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
this.hideVisitedColor = undefined;
|
|
14
|
-
}
|
|
15
|
-
get cssModifiers() {
|
|
16
|
-
return {
|
|
17
|
-
'digi-typography--hide-visited': this.hideVisitedColor
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
return (index.h("div", { key: 'cf498110850cb216e50617a0fa1ed4bfb7f466b8', class: Object.assign({ 'digi-typography': true }, this.cssModifiers) }, index.h("slot", { key: '01afbda49b816dd9bb02a76862b39a2ad83add15' })));
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
Typography.style = DigiTypographyStyle0;
|
|
25
|
-
|
|
26
|
-
exports.digi_typography = Typography;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-7a477838.js');
|
|
6
|
-
const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
|
|
7
|
-
|
|
8
|
-
const UtilMutationObserver = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
index.registerInstance(this, hostRef);
|
|
11
|
-
this.afOnChange = index.createEvent(this, "afOnChange", 7);
|
|
12
|
-
this._observer = null;
|
|
13
|
-
this._isObserving = false;
|
|
14
|
-
this.afId = randomIdGenerator_util.randomIdGenerator('digi-util-mutation-observer');
|
|
15
|
-
this.afOptions = {
|
|
16
|
-
attributes: false,
|
|
17
|
-
childList: true,
|
|
18
|
-
subtree: false,
|
|
19
|
-
characterData: false
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
afOptionsWatcher(newValue) {
|
|
23
|
-
this._afOptions =
|
|
24
|
-
typeof newValue === 'string' ? JSON.parse(newValue) : newValue;
|
|
25
|
-
}
|
|
26
|
-
componentWillLoad() {
|
|
27
|
-
this.afOptionsWatcher(this.afOptions);
|
|
28
|
-
this.initObserver();
|
|
29
|
-
}
|
|
30
|
-
disconnectedCallback() {
|
|
31
|
-
if (this._isObserving) {
|
|
32
|
-
this.removeObserver();
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
initObserver() {
|
|
36
|
-
this._observer = new MutationObserver((mutationsList) => {
|
|
37
|
-
for (const mutation of mutationsList) {
|
|
38
|
-
if (mutation.type === 'childList' ||
|
|
39
|
-
mutation.type === 'attributes' ||
|
|
40
|
-
mutation.type === 'characterData') {
|
|
41
|
-
this.changeHandler(mutation);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
this._observer.observe(this.$el, this._afOptions);
|
|
46
|
-
this._isObserving = true;
|
|
47
|
-
}
|
|
48
|
-
removeObserver() {
|
|
49
|
-
this._observer.disconnect();
|
|
50
|
-
this._isObserving = false;
|
|
51
|
-
}
|
|
52
|
-
changeHandler(e) {
|
|
53
|
-
this.afOnChange.emit(e);
|
|
54
|
-
}
|
|
55
|
-
render() {
|
|
56
|
-
index.h("div", { id: this.afId, ref: (el) => (this.$el = el) }, index.h("slot", null));
|
|
57
|
-
}
|
|
58
|
-
get $el() { return index.getElement(this); }
|
|
59
|
-
static get watchers() { return {
|
|
60
|
-
"afOptions": ["afOptionsWatcher"]
|
|
61
|
-
}; }
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
exports.digi_util_mutation_observer = UtilMutationObserver;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.ExpandableFaqItemHeadingLevel = void 0;
|
|
4
|
-
(function (ExpandableFaqItemHeadingLevel) {
|
|
5
|
-
ExpandableFaqItemHeadingLevel["H1"] = "h1";
|
|
6
|
-
ExpandableFaqItemHeadingLevel["H2"] = "h2";
|
|
7
|
-
ExpandableFaqItemHeadingLevel["H3"] = "h3";
|
|
8
|
-
ExpandableFaqItemHeadingLevel["H4"] = "h4";
|
|
9
|
-
ExpandableFaqItemHeadingLevel["H5"] = "h5";
|
|
10
|
-
ExpandableFaqItemHeadingLevel["H6"] = "h6";
|
|
11
|
-
})(exports.ExpandableFaqItemHeadingLevel || (exports.ExpandableFaqItemHeadingLevel = {}));
|
|
12
|
-
|
|
13
|
-
exports.ExpandableFaqItemVariation = void 0;
|
|
14
|
-
(function (ExpandableFaqItemVariation) {
|
|
15
|
-
ExpandableFaqItemVariation["PRIMARY"] = "primary";
|
|
16
|
-
ExpandableFaqItemVariation["SECONDARY"] = "secondary";
|
|
17
|
-
ExpandableFaqItemVariation["TERTIARY"] = "tertiary";
|
|
18
|
-
})(exports.ExpandableFaqItemVariation || (exports.ExpandableFaqItemVariation = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.FormCheckboxLayout = void 0;
|
|
4
|
-
(function (FormCheckboxLayout) {
|
|
5
|
-
FormCheckboxLayout["INLINE"] = "inline";
|
|
6
|
-
FormCheckboxLayout["BLOCK"] = "block";
|
|
7
|
-
})(exports.FormCheckboxLayout || (exports.FormCheckboxLayout = {}));
|
|
8
|
-
|
|
9
|
-
exports.FormCheckboxValidation = void 0;
|
|
10
|
-
(function (FormCheckboxValidation) {
|
|
11
|
-
FormCheckboxValidation["ERROR"] = "error";
|
|
12
|
-
FormCheckboxValidation["WARNING"] = "warning";
|
|
13
|
-
})(exports.FormCheckboxValidation || (exports.FormCheckboxValidation = {}));
|
|
14
|
-
|
|
15
|
-
exports.FormCheckboxVariation = void 0;
|
|
16
|
-
(function (FormCheckboxVariation) {
|
|
17
|
-
FormCheckboxVariation["PRIMARY"] = "primary";
|
|
18
|
-
FormCheckboxVariation["SECONDARY"] = "secondary";
|
|
19
|
-
})(exports.FormCheckboxVariation || (exports.FormCheckboxVariation = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.ButtonType = void 0;
|
|
4
|
-
(function (ButtonType) {
|
|
5
|
-
ButtonType["BUTTON"] = "button";
|
|
6
|
-
ButtonType["SUBMIT"] = "submit";
|
|
7
|
-
ButtonType["RESET"] = "reset";
|
|
8
|
-
})(exports.ButtonType || (exports.ButtonType = {}));
|
|
9
|
-
|
|
10
|
-
exports.FormInputSearchVariation = void 0;
|
|
11
|
-
(function (FormInputSearchVariation) {
|
|
12
|
-
FormInputSearchVariation["SMALL"] = "small";
|
|
13
|
-
FormInputSearchVariation["MEDIUM"] = "medium";
|
|
14
|
-
FormInputSearchVariation["LARGE"] = "large";
|
|
15
|
-
})(exports.FormInputSearchVariation || (exports.FormInputSearchVariation = {}));
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.FormInputMode = void 0;
|
|
4
|
-
(function (FormInputMode) {
|
|
5
|
-
FormInputMode["DEFAULT"] = "";
|
|
6
|
-
FormInputMode["NONE"] = "none";
|
|
7
|
-
FormInputMode["TEXT"] = "text";
|
|
8
|
-
FormInputMode["DECIMAL"] = "decimal";
|
|
9
|
-
FormInputMode["NUMERIC"] = "numeric";
|
|
10
|
-
FormInputMode["TEL"] = "tel";
|
|
11
|
-
FormInputMode["SEARCH"] = "search";
|
|
12
|
-
FormInputMode["EMAIL"] = "email";
|
|
13
|
-
FormInputMode["URL"] = "url";
|
|
14
|
-
})(exports.FormInputMode || (exports.FormInputMode = {}));
|
|
15
|
-
|
|
16
|
-
exports.FormInputValidation = void 0;
|
|
17
|
-
(function (FormInputValidation) {
|
|
18
|
-
FormInputValidation["SUCCESS"] = "success";
|
|
19
|
-
FormInputValidation["ERROR"] = "error";
|
|
20
|
-
FormInputValidation["WARNING"] = "warning";
|
|
21
|
-
FormInputValidation["NEUTRAL"] = "neutral";
|
|
22
|
-
})(exports.FormInputValidation || (exports.FormInputValidation = {}));
|
|
23
|
-
|
|
24
|
-
exports.FormInputVariation = void 0;
|
|
25
|
-
(function (FormInputVariation) {
|
|
26
|
-
FormInputVariation["SMALL"] = "small";
|
|
27
|
-
FormInputVariation["MEDIUM"] = "medium";
|
|
28
|
-
FormInputVariation["LARGE"] = "large";
|
|
29
|
-
})(exports.FormInputVariation || (exports.FormInputVariation = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.FormRadiogroupValidation = void 0;
|
|
4
|
-
(function (FormRadiogroupValidation) {
|
|
5
|
-
FormRadiogroupValidation["SUCCESS"] = "success";
|
|
6
|
-
FormRadiogroupValidation["ERROR"] = "error";
|
|
7
|
-
FormRadiogroupValidation["WARNING"] = "warning";
|
|
8
|
-
FormRadiogroupValidation["NEUTRAL"] = "neutral";
|
|
9
|
-
})(exports.FormRadiogroupValidation || (exports.FormRadiogroupValidation = {}));
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.FormSelectValidation = void 0;
|
|
4
|
-
(function (FormSelectValidation) {
|
|
5
|
-
FormSelectValidation["SUCCESS"] = "success";
|
|
6
|
-
FormSelectValidation["ERROR"] = "error";
|
|
7
|
-
FormSelectValidation["WARNING"] = "warning";
|
|
8
|
-
FormSelectValidation["NEUTRAL"] = "neutral";
|
|
9
|
-
})(exports.FormSelectValidation || (exports.FormSelectValidation = {}));
|
|
10
|
-
|
|
11
|
-
exports.FormSelectVariation = void 0;
|
|
12
|
-
(function (FormSelectVariation) {
|
|
13
|
-
FormSelectVariation["SMALL"] = "small";
|
|
14
|
-
FormSelectVariation["MEDIUM"] = "medium";
|
|
15
|
-
FormSelectVariation["LARGE"] = "large";
|
|
16
|
-
})(exports.FormSelectVariation || (exports.FormSelectVariation = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.FormValidationMessageVariation = void 0;
|
|
4
|
-
(function (FormValidationMessageVariation) {
|
|
5
|
-
FormValidationMessageVariation["SUCCESS"] = "success";
|
|
6
|
-
FormValidationMessageVariation["ERROR"] = "error";
|
|
7
|
-
FormValidationMessageVariation["WARNING"] = "warning";
|
|
8
|
-
})(exports.FormValidationMessageVariation || (exports.FormValidationMessageVariation = {}));
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const index = require('./index-e8333bcc.js');
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @name isAfter
|
|
7
|
-
* @category Common Helpers
|
|
8
|
-
* @summary Is the first date after the second one?
|
|
9
|
-
*
|
|
10
|
-
* @description
|
|
11
|
-
* Is the first date after the second one?
|
|
12
|
-
*
|
|
13
|
-
* ### v2.0.0 breaking changes:
|
|
14
|
-
*
|
|
15
|
-
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
16
|
-
*
|
|
17
|
-
* @param {Date|Number} date - the date that should be after the other one to return true
|
|
18
|
-
* @param {Date|Number} dateToCompare - the date to compare with
|
|
19
|
-
* @returns {Boolean} the first date is after the second date
|
|
20
|
-
* @throws {TypeError} 2 arguments required
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* // Is 10 July 1989 after 11 February 1987?
|
|
24
|
-
* var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
|
|
25
|
-
* //=> true
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
function isAfter(dirtyDate, dirtyDateToCompare) {
|
|
29
|
-
index.requiredArgs(2, arguments);
|
|
30
|
-
var date = index.toDate(dirtyDate);
|
|
31
|
-
var dateToCompare = index.toDate(dirtyDateToCompare);
|
|
32
|
-
return date.getTime() > dateToCompare.getTime();
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @name isBefore
|
|
37
|
-
* @category Common Helpers
|
|
38
|
-
* @summary Is the first date before the second one?
|
|
39
|
-
*
|
|
40
|
-
* @description
|
|
41
|
-
* Is the first date before the second one?
|
|
42
|
-
*
|
|
43
|
-
* ### v2.0.0 breaking changes:
|
|
44
|
-
*
|
|
45
|
-
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
46
|
-
*
|
|
47
|
-
* @param {Date|Number} date - the date that should be before the other one to return true
|
|
48
|
-
* @param {Date|Number} dateToCompare - the date to compare with
|
|
49
|
-
* @returns {Boolean} the first date is before the second date
|
|
50
|
-
* @throws {TypeError} 2 arguments required
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* // Is 10 July 1989 before 11 February 1987?
|
|
54
|
-
* var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
|
|
55
|
-
* //=> false
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
|
-
function isBefore(dirtyDate, dirtyDateToCompare) {
|
|
59
|
-
index.requiredArgs(2, arguments);
|
|
60
|
-
var date = index.toDate(dirtyDate);
|
|
61
|
-
var dateToCompare = index.toDate(dirtyDateToCompare);
|
|
62
|
-
return date.getTime() < dateToCompare.getTime();
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
exports.isAfter = isAfter;
|
|
66
|
-
exports.isBefore = isBefore;
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function requiredArgs(required, args) {
|
|
4
|
-
if (args.length < required) {
|
|
5
|
-
throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @name toDate
|
|
11
|
-
* @category Common Helpers
|
|
12
|
-
* @summary Convert the given argument to an instance of Date.
|
|
13
|
-
*
|
|
14
|
-
* @description
|
|
15
|
-
* Convert the given argument to an instance of Date.
|
|
16
|
-
*
|
|
17
|
-
* If the argument is an instance of Date, the function returns its clone.
|
|
18
|
-
*
|
|
19
|
-
* If the argument is a number, it is treated as a timestamp.
|
|
20
|
-
*
|
|
21
|
-
* If the argument is none of the above, the function returns Invalid Date.
|
|
22
|
-
*
|
|
23
|
-
* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
|
|
24
|
-
*
|
|
25
|
-
* @param {Date|Number} argument - the value to convert
|
|
26
|
-
* @returns {Date} the parsed date in the local time zone
|
|
27
|
-
* @throws {TypeError} 1 argument required
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* // Clone the date:
|
|
31
|
-
* const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
|
|
32
|
-
* //=> Tue Feb 11 2014 11:30:30
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* // Convert the timestamp to date:
|
|
36
|
-
* const result = toDate(1392098430000)
|
|
37
|
-
* //=> Tue Feb 11 2014 11:30:30
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
function toDate(argument) {
|
|
41
|
-
requiredArgs(1, arguments);
|
|
42
|
-
var argStr = Object.prototype.toString.call(argument); // Clone the date
|
|
43
|
-
|
|
44
|
-
if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {
|
|
45
|
-
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
|
|
46
|
-
return new Date(argument.getTime());
|
|
47
|
-
} else if (typeof argument === 'number' || argStr === '[object Number]') {
|
|
48
|
-
return new Date(argument);
|
|
49
|
-
} else {
|
|
50
|
-
if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
|
|
51
|
-
// eslint-disable-next-line no-console
|
|
52
|
-
console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"); // eslint-disable-next-line no-console
|
|
53
|
-
|
|
54
|
-
console.warn(new Error().stack);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return new Date(NaN);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @name isDate
|
|
63
|
-
* @category Common Helpers
|
|
64
|
-
* @summary Is the given value a date?
|
|
65
|
-
*
|
|
66
|
-
* @description
|
|
67
|
-
* Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
|
|
68
|
-
*
|
|
69
|
-
* ### v2.0.0 breaking changes:
|
|
70
|
-
*
|
|
71
|
-
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
72
|
-
*
|
|
73
|
-
* @param {*} value - the value to check
|
|
74
|
-
* @returns {boolean} true if the given value is a date
|
|
75
|
-
* @throws {TypeError} 1 arguments required
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* // For a valid date:
|
|
79
|
-
* const result = isDate(new Date())
|
|
80
|
-
* //=> true
|
|
81
|
-
*
|
|
82
|
-
* @example
|
|
83
|
-
* // For an invalid date:
|
|
84
|
-
* const result = isDate(new Date(NaN))
|
|
85
|
-
* //=> true
|
|
86
|
-
*
|
|
87
|
-
* @example
|
|
88
|
-
* // For some value:
|
|
89
|
-
* const result = isDate('2014-02-31')
|
|
90
|
-
* //=> false
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
* // For an object:
|
|
94
|
-
* const result = isDate({})
|
|
95
|
-
* //=> false
|
|
96
|
-
*/
|
|
97
|
-
|
|
98
|
-
function isDate(value) {
|
|
99
|
-
requiredArgs(1, arguments);
|
|
100
|
-
return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]';
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @name isValid
|
|
105
|
-
* @category Common Helpers
|
|
106
|
-
* @summary Is the given date valid?
|
|
107
|
-
*
|
|
108
|
-
* @description
|
|
109
|
-
* Returns false if argument is Invalid Date and true otherwise.
|
|
110
|
-
* Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
|
|
111
|
-
* Invalid Date is a Date, whose time value is NaN.
|
|
112
|
-
*
|
|
113
|
-
* Time value of Date: http://es5.github.io/#x15.9.1.1
|
|
114
|
-
*
|
|
115
|
-
* ### v2.0.0 breaking changes:
|
|
116
|
-
*
|
|
117
|
-
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
118
|
-
*
|
|
119
|
-
* - Now `isValid` doesn't throw an exception
|
|
120
|
-
* if the first argument is not an instance of Date.
|
|
121
|
-
* Instead, argument is converted beforehand using `toDate`.
|
|
122
|
-
*
|
|
123
|
-
* Examples:
|
|
124
|
-
*
|
|
125
|
-
* | `isValid` argument | Before v2.0.0 | v2.0.0 onward |
|
|
126
|
-
* |---------------------------|---------------|---------------|
|
|
127
|
-
* | `new Date()` | `true` | `true` |
|
|
128
|
-
* | `new Date('2016-01-01')` | `true` | `true` |
|
|
129
|
-
* | `new Date('')` | `false` | `false` |
|
|
130
|
-
* | `new Date(1488370835081)` | `true` | `true` |
|
|
131
|
-
* | `new Date(NaN)` | `false` | `false` |
|
|
132
|
-
* | `'2016-01-01'` | `TypeError` | `false` |
|
|
133
|
-
* | `''` | `TypeError` | `false` |
|
|
134
|
-
* | `1488370835081` | `TypeError` | `true` |
|
|
135
|
-
* | `NaN` | `TypeError` | `false` |
|
|
136
|
-
*
|
|
137
|
-
* We introduce this change to make *date-fns* consistent with ECMAScript behavior
|
|
138
|
-
* that try to coerce arguments to the expected type
|
|
139
|
-
* (which is also the case with other *date-fns* functions).
|
|
140
|
-
*
|
|
141
|
-
* @param {*} date - the date to check
|
|
142
|
-
* @returns {Boolean} the date is valid
|
|
143
|
-
* @throws {TypeError} 1 argument required
|
|
144
|
-
*
|
|
145
|
-
* @example
|
|
146
|
-
* // For the valid date:
|
|
147
|
-
* const result = isValid(new Date(2014, 1, 31))
|
|
148
|
-
* //=> true
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* // For the value, convertable into a date:
|
|
152
|
-
* const result = isValid(1393804800000)
|
|
153
|
-
* //=> true
|
|
154
|
-
*
|
|
155
|
-
* @example
|
|
156
|
-
* // For the invalid date:
|
|
157
|
-
* const result = isValid(new Date(''))
|
|
158
|
-
* //=> false
|
|
159
|
-
*/
|
|
160
|
-
|
|
161
|
-
function isValid(dirtyDate) {
|
|
162
|
-
requiredArgs(1, arguments);
|
|
163
|
-
|
|
164
|
-
if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
|
|
165
|
-
return false;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
var date = toDate(dirtyDate);
|
|
169
|
-
return !isNaN(Number(date));
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
exports.isValid = isValid;
|
|
173
|
-
exports.requiredArgs = requiredArgs;
|
|
174
|
-
exports.toDate = toDate;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.NavigationVerticalMenuActiveIndicatorSize = void 0;
|
|
4
|
-
(function (NavigationVerticalMenuActiveIndicatorSize) {
|
|
5
|
-
NavigationVerticalMenuActiveIndicatorSize["PRIMARY"] = "primary";
|
|
6
|
-
NavigationVerticalMenuActiveIndicatorSize["SECONDARY"] = "secondary";
|
|
7
|
-
})(exports.NavigationVerticalMenuActiveIndicatorSize || (exports.NavigationVerticalMenuActiveIndicatorSize = {}));
|
|
8
|
-
|
|
9
|
-
exports.NavigationVerticalMenuVariation = void 0;
|
|
10
|
-
(function (NavigationVerticalMenuVariation) {
|
|
11
|
-
NavigationVerticalMenuVariation["PRIMARY"] = "primary";
|
|
12
|
-
NavigationVerticalMenuVariation["SECONDARY"] = "secondary";
|
|
13
|
-
})(exports.NavigationVerticalMenuVariation || (exports.NavigationVerticalMenuVariation = {}));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.ProgressIndicatorRole = void 0;
|
|
4
|
-
(function (ProgressIndicatorRole) {
|
|
5
|
-
ProgressIndicatorRole["NONE"] = "";
|
|
6
|
-
ProgressIndicatorRole["STATUS"] = "status";
|
|
7
|
-
})(exports.ProgressIndicatorRole || (exports.ProgressIndicatorRole = {}));
|
|
8
|
-
|
|
9
|
-
exports.ProgressIndicatorVariation = void 0;
|
|
10
|
-
(function (ProgressIndicatorVariation) {
|
|
11
|
-
ProgressIndicatorVariation["PRIMARY"] = "primary";
|
|
12
|
-
ProgressIndicatorVariation["SECONDARY"] = "secondary";
|
|
13
|
-
})(exports.ProgressIndicatorVariation || (exports.ProgressIndicatorVariation = {}));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.ToolsThemeProviderBrandEnum = void 0;
|
|
4
|
-
(function (ToolsThemeProviderBrandEnum) {
|
|
5
|
-
ToolsThemeProviderBrandEnum["AF25"] = "AF25";
|
|
6
|
-
ToolsThemeProviderBrandEnum["AF18"] = "AF18";
|
|
7
|
-
})(exports.ToolsThemeProviderBrandEnum || (exports.ToolsThemeProviderBrandEnum = {}));
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.TypographyHeadingJumboLevel = void 0;
|
|
4
|
-
(function (TypographyHeadingJumboLevel) {
|
|
5
|
-
TypographyHeadingJumboLevel["H1"] = "h1";
|
|
6
|
-
TypographyHeadingJumboLevel["H2"] = "h2";
|
|
7
|
-
TypographyHeadingJumboLevel["H3"] = "h3";
|
|
8
|
-
TypographyHeadingJumboLevel["H4"] = "h4";
|
|
9
|
-
TypographyHeadingJumboLevel["H5"] = "h5";
|
|
10
|
-
TypographyHeadingJumboLevel["H6"] = "h6";
|
|
11
|
-
})(exports.TypographyHeadingJumboLevel || (exports.TypographyHeadingJumboLevel = {}));
|
|
12
|
-
|
|
13
|
-
exports.TypographyHeadingJumboVariation = void 0;
|
|
14
|
-
(function (TypographyHeadingJumboVariation) {
|
|
15
|
-
TypographyHeadingJumboVariation["PRIMARY"] = "primary";
|
|
16
|
-
TypographyHeadingJumboVariation["SECONDARY"] = "secondary";
|
|
17
|
-
})(exports.TypographyHeadingJumboVariation || (exports.TypographyHeadingJumboVariation = {}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as t,h as o,H as a,g as d}from"./p-52e3bb32.js";import{c as r,b as e,D as s}from"./p-9be9a291.js";import{r as n}from"./p-ffe5c0e8.js";import"./p-717306ef.js";import"./p-a4a001e1.js";import{B as g}from"./p-53d9556b.js";import"./p-4841b4e1.js";import{B as c}from"./p-cf3ce3c5.js";import"./p-7e32c40b.js";import"./p-dcdffb3c.js";import"./p-5d21a361.js";import"./p-ad16c7a1.js";import"./p-f40f4b2a.js";import"./p-1f68d501.js";import"./p-ee88e3f1.js";import"./p-8142cc73.js";import"./p-905ccb30.js";import"./p-88b4d03a.js";import"./p-1f956af8.js";import"./p-24fe2189.js";import"./p-f447b984.js";import"./p-9c5a93d8.js";import"./p-7933b555.js";import"./p-0f6c0360.js";import"./p-814ca2ad.js";import"./p-a39f86c9.js";import"./p-07303cb5.js";import"./p-2a023831.js";import"./p-5ba6737a.js";import"./p-e4a9f8f0.js";import"./p-f2a6768b.js";import"./p-290d1746.js";import"./p-40657c82.js";import"./p-f600576a.js";import"./p-3b20ec86.js";import"./p-9dd5d6c8.js";import"./p-77a93845.js";import"./p-06f939ab.js";import"./p-8cd2d6dd.js";import"./p-484a1d6d.js";import"./p-0f3fbb1e.js";import"./p-820e795b.js";import"./p-46cbbcb5.js";import"./p-d74742b8.js";import"./p-6e383896.js";import"./p-4bad4fb0.js";import"./p-d1886fff.js";import"./p-a6ca40fc.js";import"./p-b0e88537.js";import"./p-cdcaf0eb.js";const l=class{constructor(o){i(this,o),this.afPrimaryButtonClick=t(this,"afPrimaryButtonClick",7),this.afSecondaryButtonClick=t(this,"afSecondaryButtonClick",7),this.afOnClose=t(this,"afOnClose",7),this._focusableElementsSelectors='a, input, select, textarea, button, button:not(hidden), iframe, object, [tabindex="0"]',this.focusableElements=[],this.afId=n("digi-dialog"),this.afVariation=r.PRIMARY,this.afSize=e.MEDIUM,this.afShowDialog=void 0,this.afCloseButtonText="Stäng",this.afHeadingLevel=s.H2,this.afHeading=void 0,this.afPrimaryButtonText=void 0,this.afSecondaryButtonText=void 0,this.afFallbackElementSelector=void 0}primaryClickHandler(i){this.afPrimaryButtonClick.emit(i)}secondaryClickHandler(i){this.afSecondaryButtonClick.emit(i)}escHandler(i){this._closeButton&&this.closeDialog(i)}shiftHandler(i){let t;t="DIGI-DIALOG"===document.activeElement.tagName?document.activeElement.shadowRoot.activeElement:document.activeElement,this.shouldUseFocusTrap?t===this._dialogHeading&&this.closeButtonEl||t===this.firstFocusableEl&&this.closeButtonEl?(i.detail.preventDefault(),this.closeButtonEl.focus()):(t===this._dialogHeading&&!this.closeButtonEl||t===this.firstFocusableEl&&!this.closeButtonEl||t===this.closeButtonEl)&&(i.detail.preventDefault(),this.lastFocusableEl.focus()):i.detail.preventDefault()}tabHandler(i){let t;t="DIGI-DIALOG"===document.activeElement.tagName?document.activeElement.shadowRoot.activeElement:document.activeElement,this.shouldUseFocusTrap?t===this.lastFocusableEl&&this.closeButtonEl?(i.detail.preventDefault(),this.closeButtonEl.focus()):t!==this.closeButtonEl&&t!==this.lastFocusableEl||(i.detail.preventDefault(),this.firstFocusableEl.focus()):i.detail.preventDefault()}onActive(){document.body.style.overflow="hidden",this.afCloseButtonText||(this._wrapper.style.paddingTop="25px"),this._dialogHeading&&(this._dialogHeading.style.marginTop="0"),this.onResize(),setTimeout((()=>{this.setFallback(),this.getFocusableItems(),this.setFocus()}),50)}buttonWidthMaxContent(){this._primaryButton&&(this._primaryButton.style.width="max-content",this._primaryButton.querySelector("button").style.width="max-content"),this._secondaryButton&&(this._secondaryButton.style.width="max-content",this._secondaryButton.querySelector("button").style.width="max-content")}buttonWidth100Percent(){this._primaryButton&&(this._primaryButton.style.width="100%",this._primaryButton.querySelector("button").style.width="100%"),this._secondaryButton&&(this._secondaryButton.style.width="100%",this._secondaryButton.querySelector("button").style.width="100%")}onResize(){this.buttonContainerObserver=new ResizeObserver((()=>{this._buttonContainer.clientWidth<=313?this.buttonWidth100Percent():this.buttonWidthMaxContent()})),this.buttonContainerObserver.observe(this._buttonContainer)}onInactive(){const i=this.fallbackElement;i&&i.focus(),this.buttonContainerObserver.disconnect(),document.body.style.overflow=""}closeDialog(i){this.afShowDialog=!1,this.afOnClose.emit(i)}setFallback(){this.afFallbackElementSelector&&document.querySelector(this.afFallbackElementSelector)?(this.fallbackElement=document.querySelector(this.afFallbackElementSelector),this.fallbackElement instanceof HTMLHeadingElement&&this.fallbackElement.setAttribute("tabindex","-1")):this.fallbackElement=document.activeElement}setFocus(){if(this.afShowDialog){let i;this.afHeading?(i=this._dialogHeading,this._dialogHeading.style.outline="none"):this.firstFocusableEl?(i=this.firstFocusableEl,i.getAttribute("tabindex")||i.setAttribute("tabindex","0")):this.closeButtonEl?i=this.closeButtonEl:(i=this._wrapper,i.setAttribute("tabindex","0")),i&&i.focus()}}getFocusableItems(){let i;const t=this._host.querySelectorAll(this._focusableElementsSelectors),o=this._wrapper.querySelectorAll(this._focusableElementsSelectors);if(this._closeButton){this.closeButtonEl=this._closeButton.children[0];const a=Array.prototype.slice.call(o);a.shift(),i=Array.from(t).concat(Array.from(a))}else i=Array.from(t).concat(Array.from(o));this.focusableElements=i,this.focusableElements.length>0&&(this.firstFocusableEl=this.focusableElements[0],this.lastFocusableEl=this.focusableElements[this.focusableElements.length-1])}componentDidLoad(){this.afShowDialog&&this.onActive()}componentDidUpdate(){this.afShowDialog?this.onActive():!this.afShowDialog&&this.fallbackElement&&this.onInactive()}get shouldUseFocusTrap(){return this.afShowDialog&&this.focusableElements.length>0}get cssModifiers(){return{"digi-dialog--primary":this.afVariation==r.PRIMARY,"digi-dialog--secondary":this.afVariation==r.SECONDARY,"digi-dialog--small":this.afSize==e.SMALL,"digi-dialog--medium":this.afSize==e.MEDIUM,"digi-dialog--large":this.afSize==e.LARGE}}render(){return o(a,{key:"b6fa143b71709908623eda3f8fda037f523a4f90",ref:i=>{this._host=i}},this.afShowDialog&&o("div",{key:"46ae05735ed8f54c75a82b5cc5e23effae77e745",class:Object.assign({"digi-dialog":!0},this.cssModifiers)},o("digi-util-keydown-handler",{key:"0740b3466fc4a3ac52bfe0a3d5d58fe2399c4474",onAfOnEsc:i=>this.escHandler(i),onAfOnTab:i=>this.tabHandler(i),onAfOnShiftTab:i=>this.shiftHandler(i),class:"digi-dialog__keydown-handler"},o("div",{key:"d6da8ca0633774200dff4ade8fb170f2fd19b6b9",ref:i=>{this._wrapper=i},role:"dialog","aria-modal":"true",class:"digi-dialog__content"},o("digi-typography",{key:"e5532e07a112ba5cadc4f4ee012c7c0b1ebc7eac"},this.afCloseButtonText&&o("digi-button",{key:"e52c53a254adfca3c0e7d22500f381877feb798d",ref:i=>this._closeButton=i,class:"digi-dialog__close-button",afAriaLabel:this.afCloseButtonText,afSize:g.MEDIUM,"af-variation":"function",onAfOnClick:i=>this.closeDialog(i)},this.afCloseButtonText,o("digi-icon-x",{key:"78b867c769a5f170a7b09270f0a466358febd0df",class:"digi-dialog__close-icon",slot:"icon-secondary"})),o("slot",{key:"20b204bea4212367ed6202e73185ee0f63ab85f3",name:"over-heading"}),this.afHeadingLevel&&this.afHeading&&o(this.afHeadingLevel,{key:"20b227dc35ebe307589e097cb64bcd7c47913729",tabindex:"-1",ref:i=>this._dialogHeading=i},this.afHeading),o("slot",{key:"2c5f707d8a5db9957a252e1a6a454824521b6541"}),o("div",{key:"167c44e5b9827f66b9355180d6af6a9fc8f783ad",ref:i=>this._buttonContainer=i,class:"digi-dialog__button-container"},this.afSecondaryButtonText&&o("digi-button",{key:"bca5ce02a71c2c4b43ec7eaebcc70016c5ea1d98",ref:i=>this._secondaryButton=i,afVariation:c.SECONDARY,onAfOnClick:i=>this.secondaryClickHandler(i)},this.afSecondaryButtonText),this.afPrimaryButtonText&&o("digi-button",{key:"1208655a175f323aa4bff70b0cf8daa28e2f3e86",ref:i=>this._primaryButton=i,afVariation:c.PRIMARY,onAfOnClick:i=>this.primaryClickHandler(i)},this.afPrimaryButtonText)))))))}get hostElement(){return d(this)}};l.style=":host{--digi--dialog--backdrop--position:fixed;--digi--dialog--backdrop--opacity:1;--digi--dialog--backdrop--z--index:999;--digi--dialog--backdrop--left:0;--digi--dialog--backdrop--top:0;--digi--dialog--backdrop--width:100vw;--digi--dialog--backdrop--height:100vh;--digi--dialog--backdrop--display:flex;--digi--dialog--backdrop--justify--content:center;--digi--dialog--backdrop--align--items:center;--digi--dialog--close--button--display:grid;--digi--dialog--close--button--justify--content:end;--digi--dialog--close--button--margin--right:-1rem;--digi--dialog--button--container--display:flex;--digi--dialog--button--container--flex-wrap:wrap;--digi--dialog--button--container--gap:var(--digi--gutter--large);--digi--dialog--button--container--padding--top:var(--digi--gutter--largest-2);--digi--dialog--button--text--align--mobile:center;--digi--dialog--content--gutter:var(--digi--gutter--largest);--digi--dialog--content--margin:var(--digi--margin--large) auto;--digi--dialog--content--padding:var(--digi--padding--large);--digi--dialog--content--width--small:28.75rem;--digi--dialog--content--width--medium:42.1875rem;--digi--dialog--content--width--large:56.25rem;--digi--dialog--content--color--primary:var(--digi--color--text--primary);--digi--dialog--content--color--background--primary:var(--digi--color--background--primary);--digi--dialog--icon--color--primary:var(--digi--color--icon--primary);--digi--dialog--icon--color--primary--hover:var(--digi--color--icon--primary)}:host .digi-dialog{background:rgba(0, 0, 0, 0.7);overflow-x:hidden;overflow-y:auto;position:var(--digi--dialog--backdrop--position);opacity:var(--digi--dialog--backdrop--opacity);z-index:var(--digi--dialog--backdrop--z--index);left:var(--digi--dialog--backdrop--left);top:var(--digi--dialog--backdrop--top);width:var(--digi--dialog--backdrop--width);height:var(--digi--dialog--backdrop--height);display:var(--digi--dialog--backdrop--display);justify-content:var(--digi--dialog--backdrop--justify--content);align-items:var(--digi--dialog--backdrop--align--items);padding:var(--digi--padding--medium);box-sizing:border-box}:host .digi-dialog--primary{--DIGI--DIALOG--COLOR--BACKGROUND:var(\n --digi--dialog--content--color--background--primary\n );--DIGI--DIALOG--COLOR:var(--digi--dialog--content--color--primary);--DIGI--DIALOG--CONTENT--BUTTON--COLOR--BORDER--PRIMARY:initial}:host .digi-dialog--secondary{--digi--dialog--content--color--secondary:var(\n --digi--global--color--profile--white--base\n );--digi--dialog--content--color--background--secondary:var(\n --digi--global--color--profile--blue--base\n );--DIGI--DIALOG--COLOR--BACKGROUND:var(\n --digi--dialog--content--color--background--secondary\n );--DIGI--DIALOG--COLOR:var(--digi--dialog--content--color--secondary);--DIGI--DIALOG--CONTENT--BUTTON--COLOR--BORDER--PRIMARY:#b7b7ff;--digi--color--text--primary:var(--digi--dialog--content--color--secondary)}:host .digi-dialog--small{--DIGI--DIALOG--CONTENT--WIDTH:var(--digi--dialog--content--width--small)}:host .digi-dialog--medium{--DIGI--DIALOG--CONTENT--WIDTH:var(--digi--dialog--content--width--medium)}:host .digi-dialog--large{--DIGI--DIALOG--CONTENT--WIDTH:var(--digi--dialog--content--width--large)}:host .digi-dialog__keydown-handler{width:100%;max-height:100%}:host .digi-dialog__content{background:var(--DIGI--DIALOG--COLOR--BACKGROUND);color:var(--DIGI--DIALOG--COLOR);max-width:var(--DIGI--DIALOG--CONTENT--WIDTH);width:100%;margin:var(--digi--dialog--content--margin);padding:var(--digi--padding--smaller) var(--digi--dialog--content--padding) var(--digi--dialog--content--padding) var(--digi--dialog--content--padding);box-sizing:border-box}:host .digi-dialog__close-button{--digi--button--color--text--function--default:var(--DIGI--DIALOG--COLOR);--digi--button--color--text--function--hover:var(--DIGI--DIALOG--COLOR);--digi--button--color--icon--function--default:var(--digi--dialog--icon--color--primary);--digi--button--color--icon--function--hover:var(--digi--dialog--icon--color--primary--hover);display:var(--digi--dialog--close--button--display);justify-content:var(--digi--dialog--close--button--justify--content);margin-right:var(--digi--dialog--close--button--margin--right)}:host .digi-dialog__button-container{display:var(--digi--dialog--button--container--display);flex-wrap:var(--digi--dialog--button--container--flex-wrap);gap:var(--digi--dialog--button--container--gap);padding-top:var(--digi--dialog--button--container--padding--top)}:host .digi-dialog__button-container digi-button,:host .digi-dialog__button-container .digi-button--medium{text-align:var(--digi--dialog--button--text--align--mobile)}:host .digi-dialog__button-container digi-button :first-of-type,:host .digi-dialog__button-container .digi-button--medium :first-of-type{--digi--button--color--border--primary--default:var(--DIGI--DIALOG--CONTENT--BUTTON--COLOR--BORDER--PRIMARY);--digi--button--color--border--primary--hover:var(--DIGI--DIALOG--CONTENT--BUTTON--COLOR--BORDER--PRIMARY)}";export{l as digi_dialog}
|