@designsystem-se/af 36.0.2-beta.1 → 36.0.3-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 +10 -10
- 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 +4 -4
- 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 +4 -4
- package/components/digi-form-input.js +1 -1
- package/components/digi-form-radiobutton.js +1 -1
- package/components/digi-form-radiogroup.js +2 -2
- package/components/digi-form-receipt.js +1 -1
- package/components/digi-form-select-filter.js +11 -11
- package/components/digi-form-select.js +1 -1
- package/components/digi-form-textarea.js +3 -3
- 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 +3 -3
- package/components/digi-link-button.js +1 -1
- package/components/digi-link-external.js +1 -1
- package/components/digi-link-internal.js +1 -1
- package/components/digi-link.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-banner.js +2 -2
- package/components/digi-tools-feedback-rating.js +2 -2
- 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-6f595199.js → p-0c919531.js} +1 -1
- package/components/{p-779eecac.js → p-117e7b18.js} +5 -5
- package/components/{p-c65795d8.js → p-358965ba.js} +2 -2
- package/components/{p-fb2fd84c.js → p-36dad6f1.js} +9 -9
- package/components/{p-cd0370eb.js → p-3fad7281.js} +2 -2
- package/components/{p-f18dbbea.js → p-5fd00d55.js} +2 -2
- package/components/p-606ba731.js +165 -0
- package/components/p-8fee3d97.js +163 -0
- package/components/{p-ad4aaaaf.js → p-a79e144f.js} +2 -2
- package/components/p-b8c862c0.js +66 -0
- package/components/{p-f53eb01a.js → p-d2a95a3e.js} +1 -1
- package/components/p-d7ef9cb1.js +13 -0
- package/components/{p-bb0ffb59.js → p-dedeb670.js} +3 -3
- package/components/{p-62a0008b.js → p-e756fda7.js} +2 -2
- package/custom-elements.json +4 -0
- package/dist/cjs/{code-example-variation.enum-c6557727.js → code-example-variation.enum-1611825e.js} +6 -0
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/digi-button_37.cjs.entry.js +5254 -0
- package/dist/cjs/digi-calendar-week-view.cjs.entry.js +50 -51
- package/dist/cjs/digi-code-block.cjs.entry.js +89 -0
- package/dist/cjs/digi-code-example.cjs.entry.js +4 -5
- package/dist/cjs/digi-dialog.cjs.entry.js +6 -20
- package/dist/cjs/digi-footer.cjs.entry.js +4 -18
- package/dist/cjs/digi-form-error-list.cjs.entry.js +4 -18
- package/dist/cjs/digi-form-file-upload.cjs.entry.js +10 -11
- package/dist/cjs/digi-form-input-search.cjs.entry.js +8 -10
- package/dist/cjs/digi-form-receipt.cjs.entry.js +4 -18
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +12 -26
- package/dist/cjs/digi-form-textarea.cjs.entry.js +3 -3
- package/dist/cjs/digi-header-avatar.cjs.entry.js +1 -1
- package/dist/cjs/digi-header-navigation.cjs.entry.js +4 -18
- package/dist/cjs/digi-header.cjs.entry.js +5 -19
- package/dist/cjs/digi-icon-external-link-alt_2.cjs.entry.js +1 -1
- package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
- package/dist/cjs/digi-link-button.cjs.entry.js +1 -1
- package/dist/cjs/digi-link-internal.cjs.entry.js +2 -2
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +4 -18
- package/dist/cjs/digi-notification-alert.cjs.entry.js +4 -18
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +4 -18
- package/dist/cjs/digi-quote.cjs.entry.js +1 -1
- package/dist/cjs/digi-title-logo.cjs.entry.js +5 -19
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +7 -21
- 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 +4 -92
- package/dist/cjs/{index-ac8e01b4.js → index-acb7b350.js} +189 -19
- package/dist/cjs/index.cjs.js +158 -166
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{typography-variation.enum-50512a4e.js → typography-variation.enum-e41bd69d.js} +158 -0
- package/dist/collection/components/_button/button/button.css +6 -6
- package/dist/collection/components/_calendar/calendar/calendar.css +5 -0
- package/dist/collection/components/_calendar/calendar/calendar.js +7 -7
- package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +339 -102
- package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.js +6 -5
- 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 +339 -102
- package/dist/collection/components/_form/form-checkbox/form-checkbox.js +3 -2
- package/dist/collection/components/_form/form-file-upload/form-file-upload.css +4 -3
- package/dist/collection/components/_form/form-input/form-input.js +4 -3
- package/dist/collection/components/_form/form-input-search/form-input-search.js +3 -2
- package/dist/collection/components/_form/form-radiobutton/form-radiobutton.js +3 -2
- package/dist/collection/components/_form/form-radiogroup/form-radiogroup.js +3 -2
- package/dist/collection/components/_form/form-select/form-select.css +2 -2
- package/dist/collection/components/_form/form-select/form-select.js +5 -4
- package/dist/collection/components/_form/form-select-filter/form-select-filter.css +1 -1
- package/dist/collection/components/_form/form-select-filter/form-select-filter.js +8 -7
- package/dist/collection/components/_form/form-textarea/form-textarea.js +4 -3
- package/dist/collection/components/_header/header-avatar/header-avatar.css +338 -101
- package/dist/collection/components/_info-card/info-card/info-card.css +2 -2
- package/dist/collection/components/_link/link/link.js +2 -2
- package/dist/collection/components/_link/link-button/link-button.js +2 -2
- package/dist/collection/components/_link/link-external/link-external.js +2 -2
- package/dist/collection/components/_link/link-internal/link-internal.css +338 -101
- package/dist/collection/components/_link/link-internal/link-internal.js +2 -2
- package/dist/collection/components/_logo/title-logo/title-logo.js +1 -1
- 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 +105 -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 +1 -0
- 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 +270 -128
- package/dist/collection/styles/src/themes/_common.mixin.scss +7 -0
- package/dist/collection/styles/src/themes/_theme-af25.mixin.scss +139 -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 +1 -0
- 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-014a7047.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-c30f5cbf.entry.js → p-030e608e.entry.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-158037f8.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-180663ef.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-1887ef59.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-1a619dd3.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-53d9556b.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-6bf36a39.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-7a6a447c.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-a105d9fe.js +1 -0
- package/dist/digi-arbetsformedlingen/p-a7372448.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-eada91bf.entry.js → p-c0b39654.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-c64b4626.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-864542b1.entry.js → p-cc9a96ff.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-cd77a916.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-f358d8b2.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/styles/src/_alias.mixin.scss +270 -128
- package/dist/digi-arbetsformedlingen/styles/src/themes/_common.mixin.scss +7 -0
- package/dist/digi-arbetsformedlingen/styles/src/themes/_theme-af25.mixin.scss +139 -0
- package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +1406 -323
- package/dist/esm/{code-example-variation.enum-e9f9fced.js → code-example-variation.enum-e656d235.js} +7 -1
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/digi-button_37.entry.js +5214 -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 +2 -3
- package/dist/esm/digi-dialog.entry.js +5 -19
- package/dist/esm/digi-footer.entry.js +4 -18
- package/dist/esm/digi-form-error-list.entry.js +4 -18
- package/dist/esm/digi-form-file-upload.entry.js +2 -3
- package/dist/esm/digi-form-input-search.entry.js +3 -5
- package/dist/esm/digi-form-receipt.entry.js +4 -18
- package/dist/esm/digi-form-select-filter.entry.js +12 -26
- package/dist/esm/digi-form-textarea.entry.js +3 -3
- package/dist/esm/digi-header-avatar.entry.js +1 -1
- package/dist/esm/digi-header-navigation.entry.js +4 -18
- package/dist/esm/digi-header.entry.js +4 -18
- package/dist/esm/digi-icon-external-link-alt_2.entry.js +1 -1
- package/dist/esm/digi-info-card.entry.js +1 -1
- package/dist/esm/digi-link-button.entry.js +1 -1
- package/dist/esm/digi-link-internal.entry.js +2 -2
- package/dist/esm/digi-navigation-pagination.entry.js +4 -18
- package/dist/esm/digi-notification-alert.entry.js +4 -18
- package/dist/esm/digi-notification-error-page.entry.js +4 -18
- package/dist/esm/digi-quote.entry.js +1 -1
- package/dist/esm/digi-title-logo.entry.js +5 -19
- package/dist/esm/digi-tools-feedback.entry.js +5 -19
- 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 +4 -92
- package/dist/esm/{index-2fce392f.js → index-dc6b83f7.js} +170 -3
- package/dist/esm/index.js +4 -18
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{typography-variation.enum-8c3ff25c.js → typography-variation.enum-b07f76c9.js} +159 -1
- package/dist/types/components/_calendar/calendar/calendar.d.ts +1 -1
- package/dist/types/components/_calendar/calendar-datepicker/calendar-datepicker.d.ts +1 -0
- package/dist/types/components/_form/form-checkbox/form-checkbox.d.ts +1 -0
- package/dist/types/components/_form/form-input/form-input.d.ts +1 -0
- package/dist/types/components/_form/form-input-search/form-input-search.d.ts +1 -0
- package/dist/types/components/_form/form-radiobutton/form-radiobutton.d.ts +1 -0
- package/dist/types/components/_form/form-radiogroup/form-radiogroup.d.ts +1 -0
- package/dist/types/components/_form/form-select/form-select.d.ts +1 -0
- package/dist/types/components/_form/form-select-filter/form-select-filter.d.ts +1 -0
- package/dist/types/components/_form/form-textarea/form-textarea.d.ts +1 -0
- 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 +52 -4
- package/dist/types/enums.d.ts +1 -0
- package/hydrate/index.js +91 -63
- package/hydrate/index.mjs +91 -63
- package/package.json +1 -1
- package/components/p-4bad4fb0.js +0 -7
- package/components/p-93e21f44.js +0 -66
- package/components/p-c236a69d.js +0 -163
- package/components/p-e8fc33ed.js +0 -165
- package/dist/cjs/button-size.enum-1fd86b9e.js +0 -7
- package/dist/cjs/button-type.enum-406723db.js +0 -8
- package/dist/cjs/digi-button_9.cjs.entry.js +0 -533
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +0 -2603
- package/dist/cjs/digi-calendar_2.cjs.entry.js +0 -464
- package/dist/cjs/digi-code-block_3.cjs.entry.js +0 -232
- 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-radiogroup.cjs.entry.js +0 -80
- 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-copy.cjs.entry.js +0 -30
- package/dist/cjs/digi-icon-minus_2.cjs.entry.js +0 -53
- package/dist/cjs/digi-layout-block_2.cjs.entry.js +0 -92
- 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-keydown-handler.cjs.entry.js +0 -83
- 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-c50239bc.js +0 -8
- 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/layout-container-max-width.enum-7e637f44.js +0 -21
- 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-011d5a78.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-0436c516.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-04413bed.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-0461e19a.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-14731327.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-2698dd2a.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2a86cc73.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-300aa9ef.js +0 -1
- package/dist/digi-arbetsformedlingen/p-33349e7e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-38627816.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-3d0c3803.entry.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-43178277.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4452f871.entry.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-501697cd.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-55f525dd.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-57319a80.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-5a602122.js +0 -1
- package/dist/digi-arbetsformedlingen/p-67d28f76.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-681e7beb.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6d864e79.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6efa0bd8.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-8142cc73.js +0 -1
- package/dist/digi-arbetsformedlingen/p-88b4d03a.js +0 -1
- package/dist/digi-arbetsformedlingen/p-89b457e8.entry.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-95330112.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-96987381.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-98eece1b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9dcedec5.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9dd5d6c8.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a34dfc04.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a3cea8b4.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-b6048dc7.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-bc3d2778.js +0 -1
- package/dist/digi-arbetsformedlingen/p-bf53daba.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-c7949525.js +0 -1
- package/dist/digi-arbetsformedlingen/p-cdf86efc.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-dc13eeeb.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e7e39ee7.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e9656bf8.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e9abb2b1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ee4cb21a.js +0 -1
- package/dist/digi-arbetsformedlingen/p-ee9589e6.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-f8391f37.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-fdecd798.entry.js +0 -1
- package/dist/esm/button-size.enum-d5ff6ff3.js +0 -7
- package/dist/esm/button-type.enum-5250ae0b.js +0 -8
- package/dist/esm/digi-button_9.entry.js +0 -521
- package/dist/esm/digi-calendar-datepicker.entry.js +0 -2599
- package/dist/esm/digi-calendar_2.entry.js +0 -459
- package/dist/esm/digi-code-block_3.entry.js +0 -226
- 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-radiogroup.entry.js +0 -76
- 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-layout-block_2.entry.js +0 -87
- 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-keydown-handler.entry.js +0 -79
- 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-f9d669f2.js +0 -8
- 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/layout-container-max-width.enum-c40018ac.js +0 -21
- 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,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,8 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.FormInputSearchVariation = void 0;
|
|
4
|
-
(function (FormInputSearchVariation) {
|
|
5
|
-
FormInputSearchVariation["SMALL"] = "small";
|
|
6
|
-
FormInputSearchVariation["MEDIUM"] = "medium";
|
|
7
|
-
FormInputSearchVariation["LARGE"] = "large";
|
|
8
|
-
})(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,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.LayoutBlockContainer = void 0;
|
|
4
|
-
(function (LayoutBlockContainer) {
|
|
5
|
-
LayoutBlockContainer["STATIC"] = "static";
|
|
6
|
-
LayoutBlockContainer["FLUID"] = "fluid";
|
|
7
|
-
LayoutBlockContainer["NONE"] = "none";
|
|
8
|
-
})(exports.LayoutBlockContainer || (exports.LayoutBlockContainer = {}));
|
|
9
|
-
|
|
10
|
-
exports.LayoutContainerVariation = void 0;
|
|
11
|
-
(function (LayoutContainerVariation) {
|
|
12
|
-
LayoutContainerVariation["STATIC"] = "static";
|
|
13
|
-
LayoutContainerVariation["FLUID"] = "fluid";
|
|
14
|
-
LayoutContainerVariation["NONE"] = "none";
|
|
15
|
-
})(exports.LayoutContainerVariation || (exports.LayoutContainerVariation = {}));
|
|
16
|
-
|
|
17
|
-
exports.LayoutContainerMaxWidth = void 0;
|
|
18
|
-
(function (LayoutContainerMaxWidth) {
|
|
19
|
-
LayoutContainerMaxWidth["WIDTH_1200"] = "1200";
|
|
20
|
-
LayoutContainerMaxWidth["WIDTH_1400"] = "1400";
|
|
21
|
-
})(exports.LayoutContainerMaxWidth || (exports.LayoutContainerMaxWidth = {}));
|
|
@@ -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 e,c as a,h as i}from"./p-52e3bb32.js";import{r as d}from"./p-ffe5c0e8.js";import{d as t}from"./p-430607cb.js";import{d as r}from"./p-ee33960b.js";import{l as n}from"./p-e3d2e899.js";import{_ as c}from"./p-903a27d9.js";import{i as l}from"./p-7aacd45f.js";import{i as s,a as o}from"./p-1f3345e9.js";import"./p-bdd811bc.js";const h=class{constructor(i){e(this,i),this.afOnDateSelectedChange=a(this,"afOnDateSelectedChange",7),this.afOnFocusOutside=a(this,"afOnFocusOutside",7),this.afOnClickOutside=a(this,"afOnClickOutside",7),this.afOnDirty=a(this,"afOnDirty",7),this.selectedDates=[],this.focusedDate=void 0,this.dirty=!1,this.afId=d("digi-calendar"),this.afOpenCalendarTo=void 0,this.afShowWeekNumber=!1,this.afSelectedDate=void 0,this.afSelectedDates=[],this.afActive=!0,this.afMinDate=void 0,this.afMaxDate=void 0,this.afMultipleDates=!1,this.afYearSelect=!1,this.activeCalendar=[]}focusedDateChanged(){this.drawCalendar(this.focusedDate)}afOpenCalendarToChangeHandler(){this.determineFocusedDate()}afShowWeekNumberChangeHandler(){this.drawCalendar(this.focusedDate)}afSelectedDateChangeHandler(){this.afSelectedDates=l(this.afSelectedDate)?[this.afSelectedDate]:[]}afSelectedDatesChangeHandler(){this.afSelectedDates.length>0?this.afMultipleDates?void 0===this.afSelectedDates.find((e=>!l(e)))&&(this.selectedDates=this.afSelectedDates,this.determineFocusedDate()):l(this.afSelectedDates[0])&&(this.selectedDates=[this.afSelectedDates[0]],this.determineFocusedDate()):this.selectedDates=[]}focusoutHandler(e){r(e.target,`#${this.afId}-calendar`)&&this.afOnFocusOutside.emit(e)}clickHandler(e){t(e.target,`#${this.afId}-calendar`)&&this.afOnClickOutside.emit(e)}determineFocusedDate(){this.dirty||(this.focusedDate=this.afOpenCalendarTo&&l(this.afOpenCalendarTo)?this.afOpenCalendarTo:this.selectedDates.length>0?this.selectedDates[0]:new Date)}drawCalendar(e){const a={year:e.getFullYear(),month:e.getMonth()};this.lastWeekOfPreviousMonth=this.getWeekDays(this.getLastDayOfPrevMonth(a)),this.firstWeekOfNextMonth=this.getWeekDays(this.getFirstDayOfNextMonth(a)),this.weeksBetween=this.getWeeksBetween(this.getLastDayOfPrevMonth(a),this.getFirstDayOfNextMonth(a)),this.weekDaysbetween=this.getWeekdaysOfMonth(this.weeksBetween),this.activeCalendar=this.appendFirstWeekOfNextMonth()?[this.lastWeekOfPreviousMonth,...this.weekDaysbetween,this.appendFirstWeekOfNextMonth()]:[this.lastWeekOfPreviousMonth,...this.weekDaysbetween],this.appendFirstWeekOfNextMonth(),this.afShowWeekNumber&&this.activeCalendar.forEach(((e,a)=>{this.activeCalendar[a].unshift(this.getWeekNumbers(e[0]))}))}appendFirstWeekOfNextMonth(){const e=JSON.stringify(this.weekDaysbetween.slice(-1)[0]),a=JSON.stringify(this.firstWeekOfNextMonth);if(this.firstWeekOfNextMonth.some((e=>this.isSameMonth(e,this.focusedDate))))return e!==a?this.firstWeekOfNextMonth:void 0}getLastDayOfPrevMonth(e){return new Date(e.year,e.month,0)}getWeekDays(e){const a=e||new Date,i=[],d=a.getDay();for(let e=1;e<=7;e++)i.push(new Date(a.getFullYear(),a.getMonth(),a.getDate()-d+e));return i}getFirstDayOfNextMonth(e){return new Date(e.year,e.month+1,1)}getWeeksBetween(e,a){const i=e.getTime(),d=a.getTime(),t=Math.abs(d-i);return Math.floor(t/6048e5)}getWeekdaysOfMonth(e){let a=[];for(let i=1;i<=e;i++)a=[...a,this.getWeekDays(this.getUpcoming(i))];return a}getUpcoming(e){return new Date(this.focusedDate.getFullYear(),this.focusedDate.getMonth(),7*e)}onDirty(){this.dirty||(this.dirty=!0,this.afOnDirty.emit(this.dirty))}selectDateHandler(e){this.onDirty(),this.isDateSelectable(e)&&(this.selectedDates=this.isDateSelected(e)?this.afMultipleDates?this.selectedDates.filter((a=>!this.isSameDate(a,e))):[]:this.afMultipleDates?[...this.selectedDates,e]:[e],this.focusedDate=new Date(e),this.afOnDateSelectedChange.emit(this.selectedDates))}getMonthName(e){return new Date(1992,e,1).toLocaleDateString(c.locale,{month:"short"}).replace(".","")}getFullMonthName(e){return new Date(this.focusedDate.getFullYear(),e,1).toLocaleDateString(c.locale,{month:"long",year:"numeric"})}getWeekNumbers(e){const a=new Date(e);a.getTime(),a.setHours(0,0,0,0),a.setDate(a.getDate()+3-(a.getDay()+6)%7);const i=new Date(a.getFullYear(),0,4);return 1+Math.round(((a.getTime()-i.getTime())/864e5-3+(i.getDay()+6)%7)/7)}isSameMonth(e,a){return e instanceof Date&&e instanceof Date&&`${e.getFullYear()}${e.getMonth()}`==`${a.getFullYear()}${a.getMonth()}`}isSameDate(e,a){return this.getDateString(e)===this.getDateString(a)}getDateString(e){return`${e.getDate()}${e.getMonth()}${e.getFullYear()}`}isDateSelected(e){return!!this.selectedDates.find((a=>this.isSameDate(e,a)))}isDateSelectable(e){return!(this.afMinDate&&this.isBefore(e,this.afMinDate)||this.afMaxDate&&this.isAfter(e,this.afMaxDate))}isBefore(e,a){return s(this.dateWithoutTime(e),this.dateWithoutTime(a))}isAfter(e,a){return o(this.dateWithoutTime(e),this.dateWithoutTime(a))}dateWithoutTime(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}isInAnotherMonth(e){return!this.isSameMonth(e,this.focusedDate)}subtractMonth(){this.onDirty();const e=new Date(this.focusedDate),a=e.getDate();e.setMonth(e.getMonth()-1,1);const i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();e.setDate(Math.min(a,i)),this.focusedDate=e}addMonth(){this.onDirty();const e=new Date(this.focusedDate),a=e.getDate();e.setMonth(e.getMonth()+1,1);const i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();e.setDate(Math.min(a,i)),this.focusedDate=e}getCurrent(e){return this.isSameDate(e,new Date)?"date":null}setTabIndex(e){return this.isFocused(e)?0:-1}navigateHandler(e,a){if(e.detail&&e.detail.preventDefault(),"Tab"===e.detail.key)return;this.onDirty();const i=new Date(e.detail.target.dataset.date),d=new Date(i.setDate(i.getDate()+a));this.focusedDate=d,this.resetFocus()}resetFocus(){setTimeout((()=>{const e=this._tbody.querySelectorAll(".digi-calendar__date");e.length<=0?n.warn("Could not find an element with data-date attribute matching navigated date.",this._tbody):Array.from(e).map((e=>{const a=e;a.tabIndex=-1,a.classList.remove("digi-calendar__date--focused"),a.dataset.date===this.getFullDate(this.focusedDate)&&(a.focus(),a.tabIndex=0,a.classList.add("digi-calendar__date--focused"))}))}),100)}getFullDate(e){return e.toLocaleString(c.locale,{day:"numeric",month:"numeric",year:"numeric"})}getDateName(e){return e.toLocaleString(c.locale,{year:"numeric",month:"long",day:"numeric"})}isFocused(e){return this.dirty?this.isSameDate(e,this.focusedDate):this.afOpenCalendarTo?this.isSameDate(e,this.afOpenCalendarTo):this.isSameMonth(e,new Date)?this.isSameDate(e,new Date):this.isSameMonth(e,this.focusedDate)&&1===e.getDate()}ariaPressed(e){return this.selectedDates.length>0&&this.selectedDates.find((a=>this.isSameDate(a,e)))?"true":"false"}selectMonth(e){this.onDirty();const a=new Date(this.focusedDate),i=parseInt(e.target.value,10),d=a.getDate();a.setMonth(i,1);const t=new Date(a.getFullYear(),i+1,0).getDate();a.setDate(Math.min(d,t)),this.focusedDate=a}selectYear(e){this.onDirty();const a=parseInt(e.target.value,10),i=Math.min(this.focusedDate.getDate(),new Date(a,this.focusedDate.getMonth()+1,0).getDate()),d=new Date(a,this.focusedDate.getMonth(),i);this.focusedDate=d}earliestSelectableYear(){return this.afMinDate?this.afMinDate.getFullYear():1900}latestSelectableYear(){return this.afMaxDate?this.afMaxDate.getFullYear():new Date(Date.now()).getFullYear()+10}allSelectableYears(){const e=[];let a=this.earliestSelectableYear();for(;a<=this.latestSelectableYear();)e.push(a++);return e}componentWillLoad(){var e;if(l(this.afSelectedDate))this.selectedDates=[this.afSelectedDate];else if((null===(e=this.afSelectedDates)||void 0===e?void 0:e.length)>0){const e=this.afSelectedDates.filter((e=>l(e)));e.length>0&&(this.selectedDates=e)}this.determineFocusedDate(),this.drawCalendar(this.focusedDate)}async componentDidLoad(){l(this.afSelectedDate)?this.selectedDates=[this.afSelectedDate]:this.afSelectedDatesChangeHandler(),await customElements.whenDefined("digi-form-select")}cssDateModifiers(e){const a=this.focusedDate.getMonth();return{"digi-calendar__date--today":this.isSameDate(e,new Date)&&!this.isInAnotherMonth(e),"digi-calendar__date--disabled":this.isInAnotherMonth(e),"digi-calendar__date--focused":this.isFocused(e),"digi-calendar__date--selected":this.isDateSelected(e)&&e.getMonth()===a,"digi-calendar__date--not-selectable":!this.isInAnotherMonth(e)&&!this.isDateSelectable(e)}}render(){return i("div",{key:"81de98957bdf9f87d97dd6946fc3c653e432e100",class:{"digi-calendar":!0,"digi-calendar--hide":!this.afActive},id:`${this.afId}-calendar`},this.afYearSelect&&i("div",{key:"d9667abd52111f456358d9e6a9adafca0d4ee1a0",class:"digi-calendar__header"},i("div",{key:"98602c8c03ae35a5c2eca0f245b4d16a894fed23",class:"digi-calendar__header--year-select"},i("digi-form-select",{key:"5027e489a562e88cc3887e1899fa05c95d80c724",afLabel:c.calendar.month,"af-variation":"small",afValue:this.focusedDate.getMonth().toString(),onAfOnSelect:e=>{this.selectMonth(e)}},c.calendar.months.map(((e,a)=>i("option",{value:a},e)))),i("digi-form-select",{key:"22727ccd4d99cb1de6e075c86433b713d6c97238",afLabel:c.calendar.year,"af-variation":"small",afValue:this.focusedDate.getFullYear().toString(),onAfOnSelect:e=>{this.selectYear(e)}},this.allSelectableYears().map((e=>i("option",{value:e.toString()},e)))))),!this.afYearSelect&&i("div",{key:"2a29c58612f574163fa45dbbcc488deb797827ff",class:"digi-calendar__header"},i("div",{key:"6dfda3eeac53ef081aa7b4853c5a79b7b1cac390",class:"digi-calendar__header--month-step"},i("button",{key:"a5455fadeb481f8fe1db5094023c84c5c7392e6c",class:"digi-calendar__month-select-button",type:"button","aria-label":this.getFullMonthName(this.focusedDate.getMonth()-1)+", "+c.calendar.previousMonth,onClick:()=>this.subtractMonth()},i("digi-icon-chevron-left",{key:"116d16bbd8efc4c67c71fc1faf910a9ac9e628d6",slot:"icon","aria-hidden":"true"}),i("span",{key:"a187702c9817ad145dbbfff26a708cf6528ac619",class:"digi-calendar__month-select-name"},this.getMonthName(this.focusedDate.getMonth()-1))),i("div",{key:"953f6e9d74ab935796b3c45e056c2b96242d1fae",class:"digi-calendar__month"},this.getFullMonthName(this.focusedDate.getMonth())),i("button",{key:"e3b41587612b97e9a7a370c1c5d3316a83d3adde",class:"digi-calendar__month-select-button",type:"button","aria-label":this.getFullMonthName(this.focusedDate.getMonth()+1)+", "+c.calendar.nextMonth,onClick:()=>this.addMonth()},i("span",{key:"ab0f3e5fc595b0116e1c09ab511788ce312ece42",class:"digi-calendar__month-select-name"},this.getMonthName(this.focusedDate.getMonth()+1)),i("digi-icon-chevron-right",{key:"38816a1cba510a4d86585abb602f0616887eb4c8",slot:"icon","aria-hidden":"true"})))),i("digi-util-keydown-handler",{key:"75b0c5dc7c567e7129064231739d96454c20fa23",onAfOnDown:e=>this.navigateHandler(e,7),onAfOnUp:e=>this.navigateHandler(e,-7),onAfOnLeft:e=>this.navigateHandler(e,-1),onAfOnRight:e=>this.navigateHandler(e,1)},i("table",{key:"1bc547fce844da11ca0c60cf6349316619b1830f",role:"grid",class:"digi-calendar__table"},i("thead",{key:"bc0c43868dfd448df74d6bba3e1037cffabf9b34"},i("tr",{key:"f90539a88f628bf9e4b2fe9ab057f0010571f71d",role:"row"},this.afShowWeekNumber&&i("th",{key:"2f9eeddc560473fd2da253db45e516e68f80b865",role:"columnheader",abbr:c.calendar.week,class:"digi-calendar__table-header-week"},c.calendar.week.toLowerCase()),Object.keys(c.calendar.weekdays).map((e=>i("th",{role:"columnheader","aria-label":c.calendar.weekdays[e],abbr:c.calendar.weekdays[e],class:"digi-calendar__table-header"},c.calendar.weekdays_short[e].toLowerCase()))))),i("tbody",{key:"249e8d2f8d0426d78371d07f8216efb7a3313fb8",ref:e=>this._tbody=e},this.activeCalendar.map((e=>i("tr",null,e.map(((e,a)=>this.afShowWeekNumber&&0===a?i("th",{role:"rowheader","aria-label":c.calendar.week+" "+e,class:"digi-calendar__td-week digi-calendar__date--week-number",id:"digi-calendar__week-"+e},e):this.isInAnotherMonth(e)?i("td",null):i("td",{role:"gridcell",class:"digi-calendar__td"},i("button",{key:this.getFullDate(e),type:"button",class:Object.assign(Object.assign({},this.cssDateModifiers(e)),{"digi-calendar__date":!0}),onClick:()=>this.selectDateHandler(e),"aria-current":this.isSameDate(e,new Date)?"date":null,"aria-label":`\n ${this.isDateSelectable(e)?"":c.calendar.disabledDate} ${this.getDateName(e)}\n `,"aria-disabled":this.isDateSelectable(e)?null:"true",tabindex:this.setTabIndex(e),"data-date":this.getFullDate(e),"aria-pressed":this.isDateSelectable(e)?this.ariaPressed(e):null},i("span",{"aria-hidden":"true"},e.getDate()))))))))))),i("slot",{key:"3c98da93386f651fcd91a1cd1b18fa7dc9c9b1fb",name:"calendar-footer"}))}static get watchers(){return{focusedDate:["focusedDateChanged"],afOpenCalendarTo:["afOpenCalendarToChangeHandler"],afShowWeekNumber:["afShowWeekNumberChangeHandler"],afSelectedDate:["afSelectedDateChangeHandler"],afSelectedDates:["afSelectedDatesChangeHandler"]}}};h.style='.sc-digi-calendar-h{--digi--calendar--display:inline-block;--digi--calendar--header--font-family:var(--digi--global--typography--font-family--default);--digi--calendar--header--font-weight:var(--digi--global--typography--font-weight--semibold);--digi--calendar--header--display:flex;--digi--calendar--header--align-items:center;--digi--calendar--header--justify-content:space-between;--digi--calendar--header--text-align:center;--digi--calendar--header--button--padding:var(--digi--gutter--medium) var(--digi--gutter--largest);--digi--calendar--header--button--background:transparent;--digi--calendar--header--button--box-shadow:none;--digi--calendar--header--button--background--hover:var(--digi--color--background--interactive--hover--secondary);--digi--calendar--table--border-spacing:0;--digi--calendar--table--border-collapse:collapse;--digi--calendar--table--font-family:var(--digi--global--typography--font-family--default);--digi--calendar--table--font-weight:var(--digi--global--typography--font-weight--semibold);--digi--calendar--table-header--padding:var(--digi--gutter--larger) 0;--digi--calendar--table-header--font-weight-normal:var(--digi--typography--body--font-weight--desktop);--digi--calendar--date--border-color:none;--digi--calendar--date--box-shadow:none;--digi--calendar--date--background-color:var(--digi--color--background--interactive--default--secondary);--digi--calendar--date--background-color--hover:var(--digi--color--background--interactive--hover--secondary);--digi--calendar--date--padding:var(--digi--gutter--large);--digi--calendar--date--color:var(--digi--color--text--primary);--digi--calendar--date--focused--background-color:var(--digi--color--background--interactive--hover--secondary);--digi--calendar--date--today--circle-border:2px solid var(--digi--color--marking--indication--secondary);--digi--calendar--date--today--circle-margin:10%;--digi--calendar--date--selected--color:var(--digi--color--text--interactive--secondary);--digi--calendar--date--selected--background-color:var(--digi--color--background--interactive--selected--primary);--digi--calendar--date--not-selectable-strike--color:var(--digi--color--marking--indication--tertiary);--digi--calendar--week--font-style:italic;--digi--calendar--week--font-size:var(--digi--global--typography--font-size--small);--digi--calendar--week--border-color:var(--digi--color--divider--primary);--digi--calendar--week--border-width:var(--digi--border-width--primary)}.sc-digi-calendar-h .digi-calendar.sc-digi-calendar{display:var(--digi--calendar--display);background:var(--digi--calendar--header--button--background);padding:0px 1px 3px 1px;overflow:hidden;max-width:23.4375rem}.sc-digi-calendar-h .digi-calendar--hide.sc-digi-calendar{--digi--calendar--display:none}.sc-digi-calendar-h .digi-calendar__header.sc-digi-calendar{display:var(--digi--calendar--header--display);align-items:var(--digi--calendar--header--align-items);justify-content:var(--digi--calendar--header--justify-content);text-align:var(--digi--calendar--header--text-align);font-size:var(--digi--global--typography--font-size--base);font-family:var(--digi--calendar--header--font-family);font-weight:var(--digi--calendar--header--font-weight)}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar{display:inherit;justify-content:center;margin:0 auto}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar:first-child{margin-right:var(--digi--padding--smaller)}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar:last-child{width:5rem}.sc-digi-calendar-h .digi-calendar__header--year-select.sc-digi-calendar digi-form-select.sc-digi-calendar select.sc-digi-calendar{padding-inline-end:2rem}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar{flex:auto;display:inherit;align-items:inherit;justify-content:inherit}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-name.sc-digi-calendar{padding-inline:var(--digi--padding--smaller)}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar{font-family:inherit;font-size:inherit;font-weight:inherit;color:var(--digi--calendar--date--color);display:flex;align-items:center;background:var(--digi--calendar--header--button--background);border:var(--digi--calendar--date--box-shadow);padding:var(--digi--calendar--header--button--padding)}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:last-child{border-radius:0 4px 0 0}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:first-child{border-radius:4px 0 0 0}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:focus-visible:not(.digi-calendar__date--not-selectable),.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:active:not(.digi-calendar__date--not-selectable){--digi--calendar--header--button--background:var(\n --digi--calendar--header--button--background--hover\n );text-decoration:underline;cursor:pointer}@media (any-hover: hover){.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable){--digi--calendar--header--button--background:var(\n --digi--calendar--header--button--background--hover\n );text-decoration:underline;cursor:pointer}}.sc-digi-calendar-h .digi-calendar__header--month-step.sc-digi-calendar .digi-calendar__month-select-button.sc-digi-calendar:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-h .digi-calendar__table.sc-digi-calendar{border-collapse:var(--digi--calendar--table--border-collapse);border-spacing:var(--digi--calendar--table--border-spacing);font-family:var(--digi--calendar--table--font-family);table-layout:fixed;margin-bottom:var(--digi--margin--medium)}.sc-digi-calendar-h .digi-calendar__table-header-week.sc-digi-calendar{font-style:italic;padding:var(--digi--calendar--table-header--padding);font-weight:var(--digi--calendar--table-header--font-weight-normal);width:50px}.sc-digi-calendar-h .digi-calendar__table-header.sc-digi-calendar{padding:var(--digi--calendar--table-header--padding);font-weight:var(--digi--calendar--table--font-weight);width:46px}.sc-digi-calendar-h .digi-calendar__td-week.sc-digi-calendar{border-right:var(--digi--calendar--week--border-width) solid var(--digi--calendar--week--border-color)}.sc-digi-calendar-h .digi-calendar__td.sc-digi-calendar{text-align:right}.sc-digi-calendar-h .digi-calendar__date--week-number.sc-digi-calendar{font-style:var(--digi--calendar--week--font-style);font-size:var(--digi--calendar--week--font-size);display:table-cell;text-align:center}.sc-digi-calendar-h .digi-calendar__date--week-number.sc-digi-calendar:hover{cursor:default}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar{position:relative;padding:var(--digi--calendar--date--padding);color:var(--digi--calendar--date--color);background-color:var(--digi--calendar--date--background-color);border-color:var(--digi--calendar--date--border-color);border-radius:var(--digi--border-radius--secondary);font-family:inherit;font-size:inherit;font-weight:inherit;text-align:center;border:none;width:44px;height:44px}.sc-digi-calendar-h .digi-calendar__date--disabled.sc-digi-calendar{--digi--calendar--date--color:transparent;pointer-events:none}.sc-digi-calendar-h .digi-calendar__date--today.sc-digi-calendar{position:relative}.sc-digi-calendar-h .digi-calendar__date--today.sc-digi-calendar::after{display:block;content:" ";position:absolute;top:var(--digi--calendar--date--today--circle-margin);bottom:var(--digi--calendar--date--today--circle-margin);left:var(--digi--calendar--date--today--circle-margin);right:var(--digi--calendar--date--today--circle-margin);border:var(--digi--calendar--date--today--circle-border);border-radius:50%}.sc-digi-calendar-h .digi-calendar__date--today.digi-calendar__date--selected.sc-digi-calendar::after{border-color:var(--digi--color--icon--secondary)}@media (any-hover: hover){.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable){cursor:pointer}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable):not(.digi-calendar__date--selected){--digi--calendar--date--box-shadow:var(--digi--calendar--date--box-shadow--hover);--digi--calendar--date--background-color:var(--digi--calendar--date--background-color--hover)}.sc-digi-calendar-h .digi-calendar__date.sc-digi-calendar:hover:not(.digi-calendar__date--not-selectable) span.sc-digi-calendar{text-decoration:underline}}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar{--digi--calendar--date--background-color:var(--digi--calendar--date--selected--background-color);--digi--calendar--date--color:var(--digi--calendar--date--selected--color)}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:hover{--digi--calendar--date--background-color:var(--digi--calendar--date--selected--background-color)}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:hover span.sc-digi-calendar{text-decoration:none}.sc-digi-calendar-h .digi-calendar__date--selected.sc-digi-calendar:focus-visible{outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-h .digi-calendar__date--not-selectable.sc-digi-calendar{cursor:not-allowed}.sc-digi-calendar-h .digi-calendar__date--not-selectable.sc-digi-calendar::after{display:block;content:" ";width:0px;height:100%;border:1px solid #757575;transform:rotate(-45deg);position:absolute;top:0%;left:50%}.sc-digi-calendar-h .digi-calendar__date--focused.sc-digi-calendar:focus-visible:not(.digi-calendar__date--selected):not(.digi-calendar__date--not-selectable){--digi--calendar--date--background-color:var(--digi--calendar--date--focused--background-color);outline:2px solid black;outline-offset:-3px;box-shadow:0px 0px 0px 5px inset white}.sc-digi-calendar-s digi-form-label{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}';const g=class{constructor(a){e(this,a),this.afTitle=void 0,this.afDesc=void 0,this.afSvgAriaHidden=!0,this.afSvgAriaLabelledby=void 0,this.titleId=d("icontitle")}render(){return i("svg",{key:"87e379017e361b0e21f2ea5eeeb865aa9d406c58",class:"digi-icon-calendar-alt",width:"22",height:"26",viewBox:"0 0 22 26","aria-hidden":this.afSvgAriaHidden?"true":"false","aria-labelledby":this.afSvgAriaLabelledby?this.afSvgAriaLabelledby:this.afTitle?this.titleId:void 0,xmlns:"http://www.w3.org/2000/svg"},this.afTitle&&i("title",{key:"2bfb6fba555a94a63b1f2e2cc398c8993807852a",id:this.titleId},this.afTitle),this.afDesc&&i("desc",{key:"adff2ed4fb53f4ae4e0ec6b5dd1b51e2e12a0b2e"},this.afDesc),i("path",{key:"0928cefdc9310488322b5ce6b5ee334fdee1778b",class:"digi-icon-calendar-alt__shape",d:"M21.41 8.125H.59a.601.601 0 01-.59-.61V5.689C0 4.341 1.056 3.25 2.357 3.25h2.357V.61c0-.336.265-.61.59-.61h1.964c.324 0 .59.274.59.61v2.64h6.285V.61c0-.336.265-.61.59-.61h1.963c.325 0 .59.274.59.61v2.64h2.357C20.944 3.25 22 4.342 22 5.688v1.828c0 .335-.265.609-.59.609zM.59 9.75h20.82c.325 0 .59.274.59.61v13.203C22 24.907 20.944 26 19.643 26H2.357C1.056 26 0 24.908 0 23.562V10.36c0-.335.265-.609.59-.609zm5.696 10.36a.601.601 0 00-.59-.61H3.732a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.325 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.59-.61H3.732a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.325 0 .59-.274.59-.61v-2.03zm6.285 6.5a.601.601 0 00-.589-.61h-1.964a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.589-.61h-1.964a.601.601 0 00-.59.61v2.03c0 .336.266.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm6.286 6.5a.601.601 0 00-.59-.61h-1.963a.601.601 0 00-.59.61v2.03c0 .336.265.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03zm0-6.5a.601.601 0 00-.59-.61h-1.963a.601.601 0 00-.59.61v2.03c0 .336.265.61.59.61h1.964c.324 0 .59-.274.59-.61v-2.03z",fill:"currentColor","fill-rule":"nonzero"}))}};g.style=".sc-digi-icon-calendar-alt-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-calendar-alt-h svg.sc-digi-icon-calendar-alt{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";export{h as digi_calendar,g as digi_icon_calendar_alt}
|