@designsystem-se/af 35.2.0 → 35.2.1-beta.1
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 +8 -8
- package/components/digi-calendar-datepicker.js +155 -70
- package/components/digi-calendar-week-view.js +7 -7
- package/components/digi-calendar.js +1 -1
- package/components/digi-chart-line.js +6 -6
- package/components/digi-code-block.js +1 -1
- package/components/digi-code-example.js +41 -17
- package/components/digi-code.js +1 -1
- package/components/digi-context-menu.js +5 -5
- package/components/digi-dialog.js +8 -6
- package/components/digi-expandable-accordion.js +3 -3
- package/components/digi-expandable-faq-item.js +6 -6
- package/components/digi-expandable-faq.js +2 -2
- package/components/digi-footer-card.js +1 -1
- package/components/digi-footer.js +6 -4
- package/components/digi-form-category-filter.js +4 -4
- package/components/digi-form-checkbox.js +1 -1
- package/components/digi-form-error-list.js +15 -13
- package/components/digi-form-fieldset.js +1 -1
- package/components/digi-form-file-upload.js +18 -18
- package/components/digi-form-filter.js +7 -7
- package/components/digi-form-input-search.js +9 -9
- package/components/digi-form-input.js +1 -1
- package/components/digi-form-label.js +1 -1
- package/components/digi-form-radiobutton.js +1 -1
- package/components/digi-form-radiogroup.js +34 -3
- package/components/digi-form-receipt.js +5 -3
- package/components/digi-form-select-filter.js +18 -16
- package/components/digi-form-select.js +1 -1
- package/components/digi-form-textarea.js +13 -10
- package/components/digi-form-validation-message.js +1 -1
- package/components/digi-header-avatar.js +3 -3
- package/components/digi-header-navigation-item.js +1 -1
- package/components/digi-header-navigation.js +9 -7
- package/components/digi-header-notification.js +2 -2
- package/components/digi-header.js +10 -8
- package/components/digi-icon-accessibility-deaf.js +2 -2
- package/components/digi-icon-accessibility-universal.js +2 -2
- package/components/digi-icon-apple.js +2 -2
- package/components/digi-icon-archive-outline.js +2 -2
- package/components/digi-icon-archive.js +2 -2
- package/components/digi-icon-arrow-back.js +2 -2
- package/components/digi-icon-arrow-down.js +2 -2
- package/components/digi-icon-arrow-left.js +2 -2
- package/components/digi-icon-arrow-right.js +1 -1
- package/components/digi-icon-arrow-sign-in.js +2 -2
- package/components/digi-icon-arrow-sign-out.js +2 -2
- package/components/digi-icon-arrow-up.js +2 -2
- package/components/digi-icon-at.js +2 -2
- package/components/digi-icon-bars.js +1 -1
- package/components/digi-icon-bell-filled.js +2 -2
- package/components/digi-icon-bell.js +2 -2
- package/components/digi-icon-book.js +2 -2
- package/components/digi-icon-bookmark-outline.js +2 -2
- package/components/digi-icon-bookmark-solid.js +2 -2
- package/components/digi-icon-bubble-ellipsis.js +2 -2
- package/components/digi-icon-bubble.js +2 -2
- package/components/digi-icon-building-outline.js +2 -2
- package/components/digi-icon-building-solid.js +2 -2
- package/components/digi-icon-bullseye.js +2 -2
- package/components/digi-icon-calculator-solid.js +2 -2
- package/components/digi-icon-calendar-alt-alert.js +2 -2
- package/components/digi-icon-calendar-alt.js +1 -1
- package/components/digi-icon-calendar.js +2 -2
- package/components/digi-icon-caret-circle-right.js +2 -2
- package/components/digi-icon-caret-down.js +1 -1
- package/components/digi-icon-caret-left.js +2 -2
- package/components/digi-icon-caret-right.js +2 -2
- package/components/digi-icon-caret-up.js +1 -1
- package/components/digi-icon-chart.js +1 -1
- package/components/digi-icon-chat.js +2 -2
- package/components/digi-icon-check-circle-reg-alt.js +2 -2
- package/components/digi-icon-check-circle-solid.js +1 -1
- package/components/digi-icon-check.js +1 -1
- package/components/digi-icon-checklist.js +2 -2
- package/components/digi-icon-chevron-down.js +1 -1
- package/components/digi-icon-chevron-left.js +1 -1
- package/components/digi-icon-chevron-right.js +1 -1
- package/components/digi-icon-chevron-up.js +2 -2
- package/components/digi-icon-clock.js +2 -2
- package/components/digi-icon-communication-play-solid.js +2 -2
- package/components/digi-icon-compress-alt.js +2 -2
- package/components/digi-icon-comunication-case.js +2 -2
- package/components/digi-icon-comunication-flag.js +2 -2
- package/components/digi-icon-comunication-graduate.js +2 -2
- package/components/digi-icon-comunication-play.js +2 -2
- package/components/digi-icon-cooperation.js +2 -2
- package/components/digi-icon-copy.js +1 -1
- package/components/digi-icon-danger-outline.js +2 -2
- package/components/digi-icon-download.js +2 -2
- package/components/digi-icon-dxa.js +2 -2
- package/components/digi-icon-edit.js +2 -2
- package/components/digi-icon-ellipsis.js +2 -2
- package/components/digi-icon-envelope-filled.js +2 -2
- package/components/digi-icon-envelope.js +2 -2
- package/components/digi-icon-exclamation-circle-filled.js +2 -2
- package/components/digi-icon-exclamation-triangle-filled.js +2 -2
- package/components/digi-icon-exclamation-triangle-warning.js +2 -2
- package/components/digi-icon-exclamation-triangle.js +2 -2
- package/components/digi-icon-expand-alt.js +2 -2
- package/components/digi-icon-external-link-alt.js +1 -1
- package/components/digi-icon-eye-slash.js +2 -2
- package/components/digi-icon-eye.js +2 -2
- package/components/digi-icon-facebook-square.js +2 -2
- package/components/digi-icon-file-add.js +1 -1
- package/components/digi-icon-file-document.js +2 -2
- package/components/digi-icon-file-excel.js +2 -2
- package/components/digi-icon-file-export.js +1 -1
- package/components/digi-icon-file-governing.js +2 -2
- package/components/digi-icon-file-pdf.js +2 -2
- package/components/digi-icon-file-powerpoint.js +2 -2
- package/components/digi-icon-file-remove.js +1 -1
- package/components/digi-icon-file-word.js +2 -2
- package/components/digi-icon-film.js +2 -2
- package/components/digi-icon-filter.js +2 -2
- package/components/digi-icon-folder-add.js +1 -1
- package/components/digi-icon-folder-directory.js +1 -1
- package/components/digi-icon-folder-open.js +1 -1
- package/components/digi-icon-folder.js +1 -1
- package/components/digi-icon-globe-filled.js +2 -2
- package/components/digi-icon-globe.js +2 -2
- package/components/digi-icon-headphones.js +2 -2
- package/components/digi-icon-heart-solid.js +2 -2
- package/components/digi-icon-heart.js +2 -2
- package/components/digi-icon-history.js +2 -2
- package/components/digi-icon-home.js +2 -2
- package/components/digi-icon-image.js +2 -2
- package/components/digi-icon-info-circle-solid.js +2 -2
- package/components/digi-icon-input-select-marker.js +1 -1
- package/components/digi-icon-instagram.js +2 -2
- package/components/digi-icon-job-suggestion.js +2 -2
- package/components/digi-icon-language-outline.js +2 -2
- package/components/digi-icon-language.js +2 -2
- package/components/digi-icon-laptop-phone.js +2 -2
- package/components/digi-icon-lattlast.js +2 -2
- package/components/digi-icon-licence-bus.js +2 -2
- package/components/digi-icon-licence-car.js +2 -2
- package/components/digi-icon-licence-motorcycle.js +2 -2
- package/components/digi-icon-licence-truck.js +2 -2
- package/components/digi-icon-lightbulb.js +2 -2
- package/components/digi-icon-linkedin-in.js +2 -2
- package/components/digi-icon-list-ul.js +1 -1
- package/components/digi-icon-lock.js +2 -2
- package/components/digi-icon-marker-filled.js +2 -2
- package/components/digi-icon-marker.js +2 -2
- package/components/digi-icon-media-course.js +2 -2
- package/components/digi-icon-media-podcast.js +2 -2
- package/components/digi-icon-microphone-off.js +2 -2
- package/components/digi-icon-microphone.js +2 -2
- package/components/digi-icon-minus.js +1 -1
- package/components/digi-icon-move.js +2 -2
- package/components/digi-icon-news.js +1 -1
- package/components/digi-icon-notification-error.js +1 -1
- package/components/digi-icon-notification-info.js +1 -1
- package/components/digi-icon-notification-succes.js +1 -1
- package/components/digi-icon-notification-warning.js +1 -1
- package/components/digi-icon-online-computervideo.js +1 -1
- package/components/digi-icon-online-interview.js +2 -2
- package/components/digi-icon-online-meeting.js +2 -2
- package/components/digi-icon-online-task.js +2 -2
- package/components/digi-icon-online-video.js +1 -1
- package/components/digi-icon-open-source.js +2 -2
- package/components/digi-icon-palette.js +2 -2
- package/components/digi-icon-paperclip.js +1 -1
- package/components/digi-icon-paste.js +1 -1
- package/components/digi-icon-pen.js +2 -2
- package/components/digi-icon-phone-hangup.js +2 -2
- package/components/digi-icon-phone.js +2 -2
- package/components/digi-icon-plus.js +1 -1
- package/components/digi-icon-pod.js +1 -1
- package/components/digi-icon-print.js +2 -2
- package/components/digi-icon-read.js +2 -2
- package/components/digi-icon-redo.js +2 -2
- package/components/digi-icon-scale.js +1 -1
- package/components/digi-icon-screensharing-off.js +2 -2
- package/components/digi-icon-screensharing.js +2 -2
- package/components/digi-icon-search.js +1 -1
- package/components/digi-icon-send-outline.js +2 -2
- package/components/digi-icon-send-solid.js +2 -2
- package/components/digi-icon-settings.js +2 -2
- package/components/digi-icon-share-alt.js +2 -2
- package/components/digi-icon-share-chain.js +2 -2
- package/components/digi-icon-sign.js +2 -2
- package/components/digi-icon-sliders-h.js +2 -2
- package/components/digi-icon-sokkandidat.js +2 -2
- package/components/digi-icon-sort-down.js +2 -2
- package/components/digi-icon-sort-up.js +2 -2
- package/components/digi-icon-sort.js +2 -2
- package/components/digi-icon-spinner.js +1 -1
- package/components/digi-icon-star-reg.js +2 -2
- package/components/digi-icon-star.js +2 -2
- package/components/digi-icon-suitcase-outline.js +2 -2
- package/components/digi-icon-suitcase-solid.js +2 -2
- package/components/digi-icon-system-assistance.js +2 -2
- package/components/digi-icon-table-column.js +2 -2
- package/components/digi-icon-table-row.js +2 -2
- package/components/digi-icon-table.js +1 -1
- package/components/digi-icon-task-done.js +2 -2
- package/components/digi-icon-toggle-off.js +2 -2
- package/components/digi-icon-toggle-on.js +2 -2
- package/components/digi-icon-trash.js +1 -1
- package/components/digi-icon-twitter.js +2 -2
- package/components/digi-icon-tyck-till.js +2 -2
- package/components/digi-icon-unlock.js +2 -2
- package/components/digi-icon-update.js +2 -2
- package/components/digi-icon-upload.js +2 -2
- package/components/digi-icon-user-add.js +1 -1
- package/components/digi-icon-user-alt.js +2 -2
- package/components/digi-icon-user-edit.js +1 -1
- package/components/digi-icon-users-solid.js +2 -2
- package/components/digi-icon-validation-error.js +1 -1
- package/components/digi-icon-validation-success.js +1 -1
- package/components/digi-icon-validation-warning.js +1 -1
- package/components/digi-icon-videocamera-off.js +2 -2
- package/components/digi-icon-videocamera.js +2 -2
- package/components/digi-icon-volume.js +2 -2
- package/components/digi-icon-web-tv.js +2 -2
- package/components/digi-icon-webinar.js +1 -1
- package/components/digi-icon-wifi-signal0.js +2 -2
- package/components/digi-icon-wifi-signal1.js +2 -2
- package/components/digi-icon-wifi-signal2.js +2 -2
- package/components/digi-icon-wifi-signal3.js +2 -2
- package/components/digi-icon-window.js +2 -2
- package/components/digi-icon-x-button-outline.js +1 -1
- package/components/digi-icon-x-button.js +2 -2
- package/components/digi-icon-x.js +1 -1
- package/components/digi-icon-youtube.js +2 -2
- package/components/digi-info-card-multi-container.js +2 -2
- package/components/digi-info-card-multi.js +11 -11
- package/components/digi-info-card.js +5 -5
- package/components/digi-layout-block.js +1 -1
- package/components/digi-layout-columns.js +1 -1
- package/components/digi-layout-container.js +1 -1
- package/components/digi-link-button.js +2 -2
- 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-list.js +3 -3
- package/components/digi-loader-skeleton.js +3 -3
- package/components/digi-loader-spinner.js +2 -2
- package/components/digi-logo.js +1 -1
- package/components/digi-media-figure.js +1 -1
- package/components/digi-media-image.js +1 -1
- package/components/digi-navigation-breadcrumbs.js +2 -2
- package/components/digi-navigation-pagination.js +12 -10
- package/components/digi-navigation-sidebar-button.js +1 -1
- package/components/digi-navigation-sidebar.js +5 -5
- package/components/digi-navigation-vertical-menu-item.js +8 -8
- package/components/digi-navigation-vertical-menu.js +1 -1
- package/components/digi-notification-alert.js +1 -1
- package/components/digi-notification-error-page.js +8 -6
- package/components/digi-progress-circle.js +10 -10
- package/components/digi-progress-indicator.js +6 -6
- package/components/digi-progress-list-item.js +8 -8
- package/components/digi-progress-list.js +2 -2
- package/components/digi-progressbar.js +2 -2
- package/components/digi-quote.js +3 -3
- package/components/digi-table.js +1 -1
- package/components/digi-tablist-panel.js +2 -2
- package/components/digi-tablist.js +7 -7
- package/components/digi-tag-media.js +1 -1
- package/components/digi-tag.js +2 -2
- package/components/digi-tools-feedback-banner.js +6 -6
- package/components/digi-tools-feedback-rating.js +7 -7
- package/components/digi-tools-feedback.js +5 -3
- package/components/digi-tools-theme-provider.js +1 -1
- package/components/digi-typography-heading-jumbo.js +1 -1
- package/components/digi-typography-meta.js +1 -1
- package/components/digi-typography-preamble.js +1 -1
- package/components/digi-typography-time.js +1 -1
- package/components/digi-typography.js +1 -1
- package/components/digi-util-breakpoint-observer.js +1 -1
- package/components/digi-util-detect-click-outside.js +1 -1
- package/components/digi-util-detect-focus-outside.js +1 -1
- package/components/digi-util-intersection-observer.js +1 -1
- package/components/digi-util-keydown-handler.js +1 -1
- package/components/digi-util-keyup-handler.js +1 -1
- package/components/digi-util-resize-observer.js +1 -1
- package/components/index.js +2 -0
- package/components/{p-01cea686.js → p-009ccd8f.js} +1 -1
- package/components/{p-70c75bb4.js → p-05a97800.js} +10 -10
- package/components/{p-4e502a39.js → p-0b2715fc.js} +2 -2
- package/components/{p-1aa45674.js → p-0dd35954.js} +71 -60
- package/components/{p-3ac2fc43.js → p-11b08081.js} +2 -2
- package/components/{p-fe656b9c.js → p-13b75296.js} +2 -2
- package/components/{p-8fb59b4c.js → p-1e698eb3.js} +2 -2
- package/components/{p-fa261fc5.js → p-24b1f799.js} +2 -2
- package/components/p-24fe2189.js +9 -0
- package/components/{p-2cc8b8c6.js → p-2839514b.js} +2 -2
- package/components/{p-f4d1fd7b.js → p-2d6d5d42.js} +2 -2
- package/components/{p-a9e5122c.js → p-30fb34b5.js} +2 -2
- package/components/{p-cf067b12.js → p-329e6541.js} +2 -2
- package/components/{p-3d66192c.js → p-40b0ebf4.js} +2 -2
- package/components/{p-8119b6bf.js → p-49a67d97.js} +4 -4
- package/components/{p-bfe87591.js → p-4ca3dd51.js} +2 -2
- package/components/{p-59298e69.js → p-4e3fdb06.js} +1 -1
- package/components/{p-041052ac.js → p-5010c1e6.js} +4 -2
- package/components/{p-14b2e1af.js → p-522414d8.js} +2 -2
- package/components/{p-09d68212.js → p-611a745a.js} +2 -2
- package/components/{p-c1c86b27.js → p-65c2673b.js} +3 -3
- package/components/{p-b5abbe63.js → p-6bc29b39.js} +2 -2
- package/components/{p-a9905ef0.js → p-6bc2f864.js} +2 -2
- package/components/{p-95623a07.js → p-6c504a38.js} +2 -2
- package/components/{p-d3a9e60e.js → p-6e5c73ee.js} +1 -1
- package/components/{p-eb083618.js → p-71172b7c.js} +2 -2
- package/components/{p-49e6bfcb.js → p-71cbe0c4.js} +2 -2
- package/components/{p-04f5c096.js → p-74689bb5.js} +32 -3
- package/components/{p-c8d59539.js → p-75659814.js} +1 -1
- package/components/{p-8ee014e4.js → p-7575d15f.js} +2 -2
- package/components/{p-4afc187f.js → p-796665d9.js} +2 -2
- package/components/{p-237ae1a6.js → p-7b43a6b7.js} +2 -2
- package/components/{p-138df592.js → p-7c894f75.js} +2 -2
- package/components/{p-7a373292.js → p-82193a3f.js} +2 -2
- package/components/{p-7a2c7d03.js → p-8eb92ef0.js} +8 -8
- package/components/{p-9d9a5398.js → p-93713d0c.js} +2 -2
- package/components/{p-d2a0e169.js → p-95690ca9.js} +2 -2
- package/components/{p-49ac8720.js → p-9839cf46.js} +2 -2
- package/components/{p-21f933d4.js → p-98765f91.js} +1 -1
- package/components/p-9a1bec0e.js +9 -0
- package/components/{p-1738c25d.js → p-a1607b17.js} +2 -2
- package/components/{p-cba2f67a.js → p-a3fc7580.js} +2 -2
- package/components/{p-c2ee26cb.js → p-a47b6b5c.js} +10 -11
- package/components/{p-5307ea3a.js → p-aab9351c.js} +3 -3
- package/components/{p-37236ecd.js → p-b14bdfcc.js} +2 -2
- package/components/{p-7f89b7c1.js → p-b54d76b7.js} +2 -2
- package/components/{p-3bb5cab3.js → p-b681f6d7.js} +2 -2
- package/components/{p-71e4140f.js → p-bd19f8cd.js} +2 -2
- package/components/{p-acc41c81.js → p-be3cec41.js} +2 -2
- package/components/{p-47e4b963.js → p-c17548a3.js} +2 -2
- package/components/{p-441c40e2.js → p-c28459e5.js} +2 -2
- package/components/{p-190471e7.js → p-c3f7a643.js} +1 -1
- package/components/{p-a539bedc.js → p-cc72fc59.js} +2 -2
- package/components/{p-64b015d3.js → p-cf25df6f.js} +1 -1
- package/components/{p-8ee680ac.js → p-d6503492.js} +3 -3
- package/components/{p-c0826f29.js → p-d96a2a60.js} +2 -2
- package/components/{p-f4648872.js → p-dde470f1.js} +2 -2
- package/components/{p-3d502734.js → p-de18b1d6.js} +1 -1
- package/components/{p-e411b9c2.js → p-de5a26e5.js} +2 -2
- package/components/{p-27daae72.js → p-e3961597.js} +13 -10
- package/components/{p-f3e23e66.js → p-e795bd84.js} +2 -2
- package/components/{p-f6cf1bc0.js → p-ee1fd6ad.js} +10 -8
- package/components/{p-f797f649.js → p-f1059907.js} +1 -1
- package/components/{p-218fb88e.js → p-f3e636c8.js} +2 -2
- package/custom-elements.json +34 -18
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/digi-bar-chart.cjs.entry.js +2 -2
- package/dist/cjs/digi-button_19.cjs.entry.js +4066 -0
- package/dist/cjs/digi-calendar-week-view.cjs.entry.js +50 -51
- package/dist/cjs/digi-chart-line.cjs.entry.js +2 -2
- package/dist/cjs/digi-code-block_3.cjs.entry.js +15 -12
- package/dist/cjs/digi-code-example.cjs.entry.js +5 -5
- package/dist/cjs/digi-code.cjs.entry.js +1 -1
- package/dist/cjs/digi-context-menu.cjs.entry.js +3 -3
- package/dist/cjs/digi-dialog.cjs.entry.js +12 -11
- package/dist/cjs/digi-expandable-accordion.cjs.entry.js +95 -0
- package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +97 -0
- package/dist/cjs/digi-expandable-faq.cjs.entry.js +2 -2
- package/dist/cjs/digi-footer-card.cjs.entry.js +1 -1
- package/dist/cjs/digi-footer.cjs.entry.js +10 -9
- package/dist/cjs/digi-form-category-filter.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-error-list.cjs.entry.js +12 -11
- package/dist/cjs/digi-form-file-upload.cjs.entry.js +14 -15
- package/dist/cjs/digi-form-filter.cjs.entry.js +5 -5
- package/dist/cjs/digi-form-input-search.cjs.entry.js +8 -9
- package/dist/cjs/digi-form-radiogroup.cjs.entry.js +6 -2
- package/dist/cjs/digi-form-receipt.cjs.entry.js +10 -9
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +16 -15
- package/dist/cjs/digi-header-avatar.cjs.entry.js +1 -1
- package/dist/cjs/digi-header-navigation-item.cjs.entry.js +27 -0
- package/dist/cjs/digi-header-navigation.cjs.entry.js +224 -0
- package/dist/cjs/digi-header-notification.cjs.entry.js +23 -0
- package/dist/cjs/digi-header.cjs.entry.js +92 -0
- package/dist/cjs/digi-icon-accessibility-deaf.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-accessibility-universal.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-apple.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-archive-outline.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-archive.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-arrow-back.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-arrow-down.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-arrow-left.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-arrow-right.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-arrow-sign-in.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-arrow-sign-out.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-arrow-up.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-at.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-bars.cjs.entry.js +30 -0
- package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +30 -0
- package/dist/cjs/digi-icon-bell.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-book.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-bookmark-outline.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-bookmark-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-bubble-ellipsis.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-bubble.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-building-outline.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-building-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-bullseye.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-calculator-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-calendar-alt-alert.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-calendar.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-caret-circle-right.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-caret-down_2.cjs.entry.js +4 -4
- package/dist/cjs/digi-icon-caret-left.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-caret-right.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-chart_2.cjs.entry.js +4 -4
- package/dist/cjs/digi-icon-chat.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-check-circle-reg-alt.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-check-circle-solid_4.cjs.entry.js +8 -8
- package/dist/cjs/digi-icon-check.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-checklist.cjs.entry.js +2 -2
- package/dist/cjs/{digi-icon-chevron-left.cjs.entry.js → digi-icon-chevron-down.cjs.entry.js} +7 -7
- package/dist/cjs/digi-icon-chevron-up.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-clock.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-communication-play-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-compress-alt.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-comunication-case.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-comunication-flag.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-comunication-graduate.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-comunication-play.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-cooperation.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-copy.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-danger-outline.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-download.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-dxa.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-edit.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-ellipsis.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-envelope-filled.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-envelope.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-exclamation-circle-filled.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-exclamation-triangle-filled.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-exclamation-triangle-warning.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-exclamation-triangle.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-expand-alt.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-external-link-alt_2.cjs.entry.js +3 -3
- package/dist/cjs/digi-icon-eye-slash.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-eye.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-facebook-square.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-file-add.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-file-document.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-file-excel.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-file-export.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-file-governing.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-file-pdf.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-file-powerpoint.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-file-remove.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-file-word.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-film.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-filter.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-folder-add.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-folder-directory.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-folder-open.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-folder.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-globe-filled.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-globe.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-headphones.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-heart-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-heart.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-history.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-home.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-image.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-info-circle-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-instagram.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-job-suggestion.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-language-outline.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-language.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-laptop-phone.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-lattlast.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-licence-bus.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-licence-car.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-licence-motorcycle.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-licence-truck.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-lightbulb.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-linkedin-in.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-list-ul_6.cjs.entry.js +12 -12
- package/dist/cjs/digi-icon-lock.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-marker-filled.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-marker.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-media-course.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-media-podcast.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-microphone-off.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-microphone.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-minus_2.cjs.entry.js +4 -4
- package/dist/cjs/digi-icon-move.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-notification-error_4.cjs.entry.js +8 -8
- package/dist/cjs/digi-icon-online-interview.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-online-meeting.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-online-task.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-open-source.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-palette.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-paste.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-pen.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-phone-hangup.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-phone.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-print.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-read.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-redo.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-scale.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-screensharing-off.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-screensharing.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-search.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-send-outline.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-send-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-settings.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-share-alt.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-share-chain.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-sign.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-sliders-h.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-sokkandidat.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-sort-down.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-sort-up.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-sort.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-spinner.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-star-reg.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-star.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-suitcase-outline.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-suitcase-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-system-assistance.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-table-column.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-table-row.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-task-done.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-toggle-off.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-toggle-on.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-twitter.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-tyck-till.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-unlock.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-update.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-upload.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-user-add.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-user-alt.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-user-edit.cjs.entry.js +1 -1
- package/dist/cjs/digi-icon-users-solid.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-videocamera-off.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-videocamera.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-volume.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-web-tv.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-wifi-signal0.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-wifi-signal1.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-wifi-signal2.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-wifi-signal3.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-window.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-x-button.cjs.entry.js +2 -2
- package/dist/cjs/digi-icon-youtube.cjs.entry.js +2 -2
- package/dist/cjs/digi-info-card-multi-container.cjs.entry.js +1 -1
- package/dist/cjs/digi-info-card-multi.cjs.entry.js +1 -1
- package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
- package/dist/cjs/digi-layout-block_2.cjs.entry.js +92 -0
- package/dist/cjs/digi-layout-columns.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 +1 -1
- package/dist/cjs/digi-link.cjs.entry.js +1 -1
- package/dist/cjs/digi-list.cjs.entry.js +1 -1
- package/dist/cjs/digi-loader-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/digi-loader-spinner.cjs.entry.js +1 -1
- package/dist/cjs/digi-logo_2.cjs.entry.js +64 -0
- package/dist/cjs/digi-media-figure.cjs.entry.js +1 -1
- package/dist/cjs/digi-media-image_2.cjs.entry.js +3 -3
- package/dist/cjs/digi-navigation-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +15 -14
- package/dist/cjs/digi-navigation-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +6 -6
- package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +1 -1
- package/dist/cjs/digi-notification-alert.cjs.entry.js +11 -10
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +12 -11
- package/dist/cjs/digi-progress-circle.cjs.entry.js +8 -8
- package/dist/cjs/digi-progress-indicator.cjs.entry.js +3 -3
- package/dist/cjs/digi-progress-list-item.cjs.entry.js +5 -5
- package/dist/cjs/digi-progress-list.cjs.entry.js +1 -1
- package/dist/cjs/digi-progressbar.cjs.entry.js +2 -2
- package/dist/cjs/digi-quote.cjs.entry.js +1 -1
- package/dist/cjs/digi-table.cjs.entry.js +1 -1
- package/dist/cjs/digi-tablist-panel.cjs.entry.js +2 -2
- package/dist/cjs/digi-tablist.cjs.entry.js +5 -5
- package/dist/cjs/digi-tag-media.cjs.entry.js +2 -2
- package/dist/cjs/digi-tag.cjs.entry.js +1 -1
- package/dist/cjs/digi-tools-feedback-banner.cjs.entry.js +1 -1
- package/dist/cjs/digi-tools-feedback-rating.cjs.entry.js +1 -1
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +10 -9
- package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +1 -1
- package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +38 -0
- package/dist/cjs/digi-typography-meta.cjs.entry.js +1 -1
- package/dist/cjs/digi-typography-preamble.cjs.entry.js +20 -0
- package/dist/cjs/digi-typography-time.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +48 -0
- package/dist/cjs/digi-util-detect-click-outside.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-detect-focus-outside.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-keyup-handler.cjs.entry.js +1 -1
- package/dist/cjs/digi-util-resize-observer.cjs.entry.js +1 -1
- package/dist/cjs/expandable-accordion-header-level.enum-45483252.js +11 -0
- package/dist/cjs/expandable-faq-item-variation.enum-89427195.js +18 -0
- package/dist/cjs/{form-input-type.enum-9c8ee12a.js → form-input-type.enum-1fb2180a.js} +14 -0
- package/dist/cjs/form-radiogroup-validation.enum-03a17d4d.js +9 -0
- package/dist/cjs/{form-file-upload-variation.enum-634cfae8.js → form-validation-message-variation.enum-c5ec3e2d.js} +7 -0
- package/dist/cjs/index-81fc5a97.js +48 -28
- package/dist/cjs/{index-ac8e01b4.js → index-acb7b350.js} +189 -19
- package/dist/cjs/index.cjs.js +124 -111
- package/dist/cjs/layout-container-max-width.enum-7e637f44.js +21 -0
- package/dist/cjs/{linear-ac0c97a7.js → linear-86314cb2.js} +10 -11
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/logo-variation.enum-607fadb4.js +13 -0
- package/dist/cjs/typography-heading-jumbo-variation.enum-8677e099.js +17 -0
- package/dist/cjs/{typography-variation.enum-d803f3a6.js → typography-variation.enum-c6bb12f2.js} +67 -75
- package/dist/collection/components/_calendar/calendar/calendar.css +3 -0
- package/dist/collection/components/_calendar/calendar/calendar.js +67 -79
- package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +19 -16
- package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.js +207 -93
- package/dist/collection/components/_calendar/week-view/calendar-week-view.js +4 -4
- package/dist/collection/components/_chart/bar-chart/bar-chart.js +1 -1
- package/dist/collection/components/_chart/chart-line/chart-line.js +1 -1
- package/dist/collection/components/_code/code/code.js +1 -1
- package/dist/collection/components/_code/code-block/code-block.js +1 -1
- package/dist/collection/components/_code/code-example/code-example.css +1 -0
- package/dist/collection/components/_code/code-example/code-example.js +4 -4
- package/dist/collection/components/_dialog/dialog/dialog.js +3 -3
- package/dist/collection/components/_expandable/expandable-accordion/expandable-accordion.js +1 -1
- package/dist/collection/components/_expandable/expandable-faq/expandable-faq.js +2 -2
- package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.js +4 -4
- package/dist/collection/components/_footer/footer/footer.js +1 -1
- package/dist/collection/components/_footer/footer-card/footer-card.js +1 -1
- package/dist/collection/components/_form/form-category-filter/form-category-filter.js +2 -2
- package/dist/collection/components/_form/form-checkbox/form-checkbox.js +2 -2
- package/dist/collection/components/_form/form-error-list/form-error-list.js +3 -3
- package/dist/collection/components/_form/form-fieldset/form-fieldset-validation.enum.js +7 -0
- package/dist/collection/components/_form/form-fieldset/form-fieldset.js +59 -5
- package/dist/collection/components/_form/form-file-upload/form-file-upload.js +7 -7
- package/dist/collection/components/_form/form-filter/form-filter.js +5 -5
- package/dist/collection/components/_form/form-input/form-input.js +9 -6
- package/dist/collection/components/_form/form-input-search/form-input-search.js +2 -2
- package/dist/collection/components/_form/form-label/form-label.js +1 -1
- package/dist/collection/components/_form/form-radiobutton/form-radiobutton.js +2 -2
- package/dist/collection/components/_form/form-radiogroup/form-radiogroup-validation.enum.js +7 -0
- package/dist/collection/components/_form/form-radiogroup/form-radiogroup.js +80 -2
- package/dist/collection/components/_form/form-receipt/form-receipt.js +1 -1
- package/dist/collection/components/_form/form-select/form-select.js +4 -4
- package/dist/collection/components/_form/form-select-filter/form-select-filter.js +7 -7
- package/dist/collection/components/_form/form-textarea/form-textarea.js +9 -6
- package/dist/collection/components/_form/form-validation-message/form-validation-message.js +1 -1
- package/dist/collection/components/_header/header/header.js +2 -2
- package/dist/collection/components/_header/header-avatar/header-avatar.js +1 -1
- package/dist/collection/components/_header/header-navigation/header-navigation.js +3 -3
- package/dist/collection/components/_header/header-navigation-item/header-navigation-item.js +1 -1
- package/dist/collection/components/_header/header-notification/header-notification.js +2 -2
- package/dist/collection/components/_icon/icon-accessibility-deaf/icon-accessibility-deaf.js +2 -2
- package/dist/collection/components/_icon/icon-accessibility-universal/icon-accessibility-universal.js +2 -2
- package/dist/collection/components/_icon/icon-apple/icon-apple.js +2 -2
- package/dist/collection/components/_icon/icon-archive/icon-archive.js +2 -2
- package/dist/collection/components/_icon/icon-archive-outline/icon-archive-outline.js +2 -2
- package/dist/collection/components/_icon/icon-arrow-back/icon-arrow-back.js +2 -2
- package/dist/collection/components/_icon/icon-arrow-down/icon-arrow-down.js +2 -2
- package/dist/collection/components/_icon/icon-arrow-left/icon-arrow-left.js +2 -2
- package/dist/collection/components/_icon/icon-arrow-right/icon-arrow-right.js +2 -2
- package/dist/collection/components/_icon/icon-arrow-sign-in/icon-arrow-sign-in.js +2 -2
- package/dist/collection/components/_icon/icon-arrow-sign-out/icon-arrow-sign-out.js +2 -2
- package/dist/collection/components/_icon/icon-arrow-up/icon-arrow-up.js +2 -2
- package/dist/collection/components/_icon/icon-at/icon-at.js +2 -2
- package/dist/collection/components/_icon/icon-bars/icon-bars.js +2 -2
- package/dist/collection/components/_icon/icon-bell/icon-bell.js +2 -2
- package/dist/collection/components/_icon/icon-bell-filled/icon-bell-filled.js +2 -2
- package/dist/collection/components/_icon/icon-book/icon-book.js +2 -2
- package/dist/collection/components/_icon/icon-bookmark-outline/icon-bookmark-outline.js +2 -2
- package/dist/collection/components/_icon/icon-bookmark-solid/icon-bookmark-solid.js +2 -2
- package/dist/collection/components/_icon/icon-bubble/icon-bubble.js +2 -2
- package/dist/collection/components/_icon/icon-bubble-ellipsis/icon-bubble-ellipsis.js +2 -2
- package/dist/collection/components/_icon/icon-building-outline/icon-building-outline.js +2 -2
- package/dist/collection/components/_icon/icon-building-solid/icon-building-solid.js +2 -2
- package/dist/collection/components/_icon/icon-bullseye/icon-bullseye.js +2 -2
- package/dist/collection/components/_icon/icon-calculator-solid/icon-calculator-solid.js +2 -2
- package/dist/collection/components/_icon/icon-calendar/icon-calendar.js +2 -2
- package/dist/collection/components/_icon/icon-calendar-alt/icon-calendar-alt.js +2 -2
- package/dist/collection/components/_icon/icon-calendar-alt-alert/icon-calendar-alt-alert.js +2 -2
- package/dist/collection/components/_icon/icon-caret-circle-right/icon-caret-circle-right.js +2 -2
- package/dist/collection/components/_icon/icon-caret-down/icon-caret-down.js +2 -2
- package/dist/collection/components/_icon/icon-caret-left/icon-caret-left.js +2 -2
- package/dist/collection/components/_icon/icon-caret-right/icon-caret-right.js +2 -2
- package/dist/collection/components/_icon/icon-caret-up/icon-caret-up.js +2 -2
- package/dist/collection/components/_icon/icon-chart/icon-chart.js +2 -2
- package/dist/collection/components/_icon/icon-chat/icon-chat.js +2 -2
- package/dist/collection/components/_icon/icon-check/icon-check.js +2 -2
- package/dist/collection/components/_icon/icon-check-circle-reg-alt/icon-check-circle-reg-alt.js +2 -2
- package/dist/collection/components/_icon/icon-check-circle-solid/icon-check-circle-solid.js +2 -2
- package/dist/collection/components/_icon/icon-checklist/icon-checklist.js +2 -2
- package/dist/collection/components/_icon/icon-chevron-down/icon-chevron-down.js +2 -2
- package/dist/collection/components/_icon/icon-chevron-left/icon-chevron-left.js +2 -2
- package/dist/collection/components/_icon/icon-chevron-right/icon-chevron-right.js +2 -2
- package/dist/collection/components/_icon/icon-chevron-up/icon-chevron-up.js +2 -2
- package/dist/collection/components/_icon/icon-clock/icon-clock.js +2 -2
- package/dist/collection/components/_icon/icon-communication-play-solid/icon-communication-play-solid.js +2 -2
- package/dist/collection/components/_icon/icon-compress-alt/icon-compress-alt.js +2 -2
- package/dist/collection/components/_icon/icon-comunication-case/icon-comunication-case.js +2 -2
- package/dist/collection/components/_icon/icon-comunication-flag/icon-comunication-flag.js +2 -2
- package/dist/collection/components/_icon/icon-comunication-graduate/icon-comunication-graduate.js +2 -2
- package/dist/collection/components/_icon/icon-comunication-play/icon-comunication-play.js +2 -2
- package/dist/collection/components/_icon/icon-cooperation/icon-cooperation.js +2 -2
- package/dist/collection/components/_icon/icon-copy/icon-copy.js +2 -2
- package/dist/collection/components/_icon/icon-danger-outline/icon-danger-outline.js +2 -2
- package/dist/collection/components/_icon/icon-download/icon-download.js +2 -2
- package/dist/collection/components/_icon/icon-dxa/icon-dxa.js +2 -2
- package/dist/collection/components/_icon/icon-edit/icon-edit.js +2 -2
- package/dist/collection/components/_icon/icon-ellipsis/icon-ellipsis.js +2 -2
- package/dist/collection/components/_icon/icon-envelope/icon-envelope.js +2 -2
- package/dist/collection/components/_icon/icon-envelope-filled/icon-envelope-filled.js +2 -2
- package/dist/collection/components/_icon/icon-exclamation-circle-filled/icon-exclamation-circle-filled.js +2 -2
- package/dist/collection/components/_icon/icon-exclamation-triangle/icon-exclamation-triangle.js +2 -2
- package/dist/collection/components/_icon/icon-exclamation-triangle-filled/icon-exclamation-triangle-filled.js +2 -2
- package/dist/collection/components/_icon/icon-exclamation-triangle-warning/icon-exclamation-triangle-warning.js +2 -2
- package/dist/collection/components/_icon/icon-expand-alt/icon-expand-alt.js +2 -2
- package/dist/collection/components/_icon/icon-external-link-alt/icon-external-link-alt.js +2 -2
- package/dist/collection/components/_icon/icon-eye/icon-eye.js +2 -2
- package/dist/collection/components/_icon/icon-eye-slash/icon-eye-slash.js +2 -2
- package/dist/collection/components/_icon/icon-facebook-square/icon-facebook-square.js +2 -2
- package/dist/collection/components/_icon/icon-file-add/icon-file-add.js +1 -1
- package/dist/collection/components/_icon/icon-file-document/icon-file-document.js +2 -2
- package/dist/collection/components/_icon/icon-file-excel/icon-file-excel.js +2 -2
- package/dist/collection/components/_icon/icon-file-export/icon-file-export.js +1 -1
- package/dist/collection/components/_icon/icon-file-governing/icon-file-governing.js +2 -2
- package/dist/collection/components/_icon/icon-file-pdf/icon-file-pdf.js +2 -2
- package/dist/collection/components/_icon/icon-file-powerpoint/icon-file-powerpoint.js +2 -2
- package/dist/collection/components/_icon/icon-file-remove/icon-file-remove.js +1 -1
- package/dist/collection/components/_icon/icon-file-word/icon-file-word.js +2 -2
- package/dist/collection/components/_icon/icon-film/icon-film.js +2 -2
- package/dist/collection/components/_icon/icon-filter/icon-filter.js +2 -2
- package/dist/collection/components/_icon/icon-folder/icon-folder.js +1 -1
- package/dist/collection/components/_icon/icon-folder-add/icon-folder-add.js +1 -1
- package/dist/collection/components/_icon/icon-folder-directory/icon-folder-directory.js +1 -1
- package/dist/collection/components/_icon/icon-folder-open/icon-folder-open.js +1 -1
- package/dist/collection/components/_icon/icon-globe/icon-globe.js +2 -2
- package/dist/collection/components/_icon/icon-globe-filled/icon-globe-filled.js +2 -2
- package/dist/collection/components/_icon/icon-headphones/icon-headphones.js +2 -2
- package/dist/collection/components/_icon/icon-heart/icon-heart.js +2 -2
- package/dist/collection/components/_icon/icon-heart-solid/icon-heart-solid.js +2 -2
- package/dist/collection/components/_icon/icon-history/icon-history.js +2 -2
- package/dist/collection/components/_icon/icon-home/icon-home.js +2 -2
- package/dist/collection/components/_icon/icon-image/icon-image.js +2 -2
- package/dist/collection/components/_icon/icon-info-circle-solid/icon-info-circle-solid.js +2 -2
- package/dist/collection/components/_icon/icon-input-select-marker/icon-input-select-marker.js +2 -2
- package/dist/collection/components/_icon/icon-instagram/icon-instagram.js +2 -2
- package/dist/collection/components/_icon/icon-job-suggestion/icon-job-suggestion.js +2 -2
- package/dist/collection/components/_icon/icon-language/icon-language.js +2 -2
- package/dist/collection/components/_icon/icon-language-outline/icon-language-outline.js +2 -2
- package/dist/collection/components/_icon/icon-laptop-phone/icon-laptop-phone.js +2 -2
- package/dist/collection/components/_icon/icon-lattlast/icon-lattlast.js +2 -2
- package/dist/collection/components/_icon/icon-licence-bus/icon-licence-bus.js +2 -2
- package/dist/collection/components/_icon/icon-licence-car/icon-licence-car.js +2 -2
- package/dist/collection/components/_icon/icon-licence-motorcycle/icon-licence-motorcycle.js +2 -2
- package/dist/collection/components/_icon/icon-licence-truck/icon-licence-truck.js +2 -2
- package/dist/collection/components/_icon/icon-lightbulb/icon-lightbulb.js +2 -2
- package/dist/collection/components/_icon/icon-linkedin-in/icon-linkedin-in.js +2 -2
- package/dist/collection/components/_icon/icon-list-ul/icon-list-ul.js +2 -2
- package/dist/collection/components/_icon/icon-lock/icon-lock.js +2 -2
- package/dist/collection/components/_icon/icon-marker/icon-marker.js +2 -2
- package/dist/collection/components/_icon/icon-marker-filled/icon-marker-filled.js +2 -2
- package/dist/collection/components/_icon/icon-media-course/icon-media-course.js +2 -2
- package/dist/collection/components/_icon/icon-media-podcast/icon-media-podcast.js +2 -2
- package/dist/collection/components/_icon/icon-microphone/icon-microphone.js +2 -2
- package/dist/collection/components/_icon/icon-microphone-off/icon-microphone-off.js +2 -2
- package/dist/collection/components/_icon/icon-minus/icon-minus.js +2 -2
- package/dist/collection/components/_icon/icon-move/icon-move.js +2 -2
- package/dist/collection/components/_icon/icon-news/icon-news.js +2 -2
- package/dist/collection/components/_icon/icon-notification-error/icon-notification-error.js +2 -2
- package/dist/collection/components/_icon/icon-notification-info/icon-notification-info.js +2 -2
- package/dist/collection/components/_icon/icon-notification-succes/icon-notification-succes.js +2 -2
- package/dist/collection/components/_icon/icon-notification-warning/icon-notification-warning.js +2 -2
- package/dist/collection/components/_icon/icon-online-computervideo/icon-online-computervideo.js +2 -2
- package/dist/collection/components/_icon/icon-online-interview/icon-online-interview.js +2 -2
- package/dist/collection/components/_icon/icon-online-meeting/icon-online-meeting.js +2 -2
- package/dist/collection/components/_icon/icon-online-task/icon-online-task.js +2 -2
- package/dist/collection/components/_icon/icon-online-video/icon-online-video.js +2 -2
- package/dist/collection/components/_icon/icon-open-source/icon-open-source.js +2 -2
- package/dist/collection/components/_icon/icon-palette/icon-palette.js +2 -2
- package/dist/collection/components/_icon/icon-paperclip/icon-paperclip.js +2 -2
- package/dist/collection/components/_icon/icon-paste/icon-paste.js +1 -1
- package/dist/collection/components/_icon/icon-pen/icon-pen.js +2 -2
- package/dist/collection/components/_icon/icon-phone/icon-phone.js +2 -2
- package/dist/collection/components/_icon/icon-phone-hangup/icon-phone-hangup.js +2 -2
- package/dist/collection/components/_icon/icon-plus/icon-plus.js +2 -2
- package/dist/collection/components/_icon/icon-pod/icon-pod.js +2 -2
- package/dist/collection/components/_icon/icon-print/icon-print.js +2 -2
- package/dist/collection/components/_icon/icon-read/icon-read.js +2 -2
- package/dist/collection/components/_icon/icon-redo/icon-redo.js +2 -2
- package/dist/collection/components/_icon/icon-scale/icon-scale.js +1 -1
- package/dist/collection/components/_icon/icon-screensharing/icon-screensharing.js +2 -2
- package/dist/collection/components/_icon/icon-screensharing-off/icon-screensharing-off.js +2 -2
- package/dist/collection/components/_icon/icon-search/icon-search.js +2 -2
- package/dist/collection/components/_icon/icon-send-outline/icon-send-outline.js +2 -2
- package/dist/collection/components/_icon/icon-send-solid/icon-send-solid.js +2 -2
- package/dist/collection/components/_icon/icon-settings/icon-settings.js +2 -2
- package/dist/collection/components/_icon/icon-share-alt/icon-share-alt.js +2 -2
- package/dist/collection/components/_icon/icon-share-chain/icon-share-chain.js +2 -2
- package/dist/collection/components/_icon/icon-sign/icon-sign.js +2 -2
- package/dist/collection/components/_icon/icon-sliders-h/icon-sliders-h.js +2 -2
- package/dist/collection/components/_icon/icon-sokkandidat/icon-sokkandidat.js +2 -2
- package/dist/collection/components/_icon/icon-sort/icon-sort.js +2 -2
- package/dist/collection/components/_icon/icon-sort-down/icon-sort-down.js +2 -2
- package/dist/collection/components/_icon/icon-sort-up/icon-sort-up.js +2 -2
- package/dist/collection/components/_icon/icon-spinner/icon-spinner.js +2 -2
- package/dist/collection/components/_icon/icon-star/icon-star.js +2 -2
- package/dist/collection/components/_icon/icon-star-reg/icon-star-reg.js +2 -2
- package/dist/collection/components/_icon/icon-suitcase-outline/icon-suitcase-outline.js +2 -2
- package/dist/collection/components/_icon/icon-suitcase-solid/icon-suitcase-solid.js +2 -2
- package/dist/collection/components/_icon/icon-system-assistance/icon-system-assistance.js +2 -2
- package/dist/collection/components/_icon/icon-table/icon-table.js +2 -2
- package/dist/collection/components/_icon/icon-table-column/icon-table-column.js +2 -2
- package/dist/collection/components/_icon/icon-table-row/icon-table-row.js +2 -2
- package/dist/collection/components/_icon/icon-task-done/icon-task-done.js +2 -2
- package/dist/collection/components/_icon/icon-toggle-off/icon-toggle-off.js +2 -2
- package/dist/collection/components/_icon/icon-toggle-on/icon-toggle-on.js +2 -2
- package/dist/collection/components/_icon/icon-trash/icon-trash.js +2 -2
- package/dist/collection/components/_icon/icon-twitter/icon-twitter.js +2 -2
- package/dist/collection/components/_icon/icon-tyck-till/icon-tyck-till.js +2 -2
- package/dist/collection/components/_icon/icon-unlock/icon-unlock.js +2 -2
- package/dist/collection/components/_icon/icon-update/icon-update.js +2 -2
- package/dist/collection/components/_icon/icon-upload/icon-upload.js +2 -2
- package/dist/collection/components/_icon/icon-user-add/icon-user-add.js +1 -1
- package/dist/collection/components/_icon/icon-user-alt/icon-user-alt.js +2 -2
- package/dist/collection/components/_icon/icon-user-edit/icon-user-edit.js +1 -1
- package/dist/collection/components/_icon/icon-users-solid/icon-users-solid.js +2 -2
- package/dist/collection/components/_icon/icon-validation-error/icon-validation-error.js +2 -2
- package/dist/collection/components/_icon/icon-validation-success/icon-validation-success.js +2 -2
- package/dist/collection/components/_icon/icon-validation-warning/icon-validation-warning.js +2 -2
- package/dist/collection/components/_icon/icon-videocamera/icon-videocamera.js +2 -2
- package/dist/collection/components/_icon/icon-videocamera-off/icon-videocamera-off.js +2 -2
- package/dist/collection/components/_icon/icon-volume/icon-volume.js +2 -2
- package/dist/collection/components/_icon/icon-web-tv/icon-web-tv.js +2 -2
- package/dist/collection/components/_icon/icon-webinar/icon-webinar.js +2 -2
- package/dist/collection/components/_icon/icon-wifi-signal0/icon-wifi-signal0.js +2 -2
- package/dist/collection/components/_icon/icon-wifi-signal1/icon-wifi-signal1.js +2 -2
- package/dist/collection/components/_icon/icon-wifi-signal2/icon-wifi-signal2.js +2 -2
- package/dist/collection/components/_icon/icon-wifi-signal3/icon-wifi-signal3.js +2 -2
- package/dist/collection/components/_icon/icon-window/icon-window.js +2 -2
- package/dist/collection/components/_icon/icon-x/icon-x.js +2 -2
- package/dist/collection/components/_icon/icon-x-button/icon-x-button.js +2 -2
- package/dist/collection/components/_icon/icon-x-button-outline/icon-x-button-outline.js +2 -2
- package/dist/collection/components/_icon/icon-youtube/icon-youtube.js +2 -2
- package/dist/collection/components/_info-card/info-card/info-card.js +1 -1
- package/dist/collection/components/_info-card/info-card-multi/info-card-multi.js +1 -1
- package/dist/collection/components/_info-card/info-card-multi-container/info-card-multi-container.js +1 -1
- package/dist/collection/components/_layout/layout-block/layout-block.js +1 -1
- package/dist/collection/components/_layout/layout-columns/layout-columns.js +1 -1
- package/dist/collection/components/_layout/layout-container/layout-container.js +1 -1
- package/dist/collection/components/_link/link/link.js +1 -1
- package/dist/collection/components/_link/link-button/link-button.js +1 -1
- package/dist/collection/components/_link/link-external/link-external.js +1 -1
- package/dist/collection/components/_link/link-internal/link-internal.js +1 -1
- package/dist/collection/components/_list/list/list.js +1 -1
- package/dist/collection/components/_loader/loader-skeleton/loader-skeleton.js +3 -3
- package/dist/collection/components/_loader/loader-spinner/loader-spinner.js +1 -1
- package/dist/collection/components/_logo/logo/logo.js +2 -2
- package/dist/collection/components/_media/media-figure/media-figure.js +1 -1
- package/dist/collection/components/_media/media-image/media-image.js +2 -2
- package/dist/collection/components/_navigation/navigation-breadcrumbs/navigation-breadcrumbs.js +2 -2
- package/dist/collection/components/_navigation/navigation-context-menu/navigation-context-menu.js +3 -3
- package/dist/collection/components/_navigation/navigation-pagination/navigation-pagination.js +6 -6
- package/dist/collection/components/_navigation/navigation-sidebar/navigation-sidebar.js +2 -2
- package/dist/collection/components/_navigation/navigation-sidebar-button/navigation-sidebar-button.js +1 -1
- package/dist/collection/components/_navigation/navigation-tablist/navigation-tablist.js +5 -5
- package/dist/collection/components/_navigation/navigation-tablist-panel/tablist-panel.js +2 -2
- package/dist/collection/components/_navigation/navigation-vertical-menu/navigation-vertical-menu.js +1 -1
- package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.js +6 -6
- package/dist/collection/components/_notification/notification-alert/notification-alert.js +2 -2
- package/dist/collection/components/_notification/notification-error-page/notification-error-page.js +3 -3
- package/dist/collection/components/_progress/progress-circle/progress-circle.js +8 -8
- package/dist/collection/components/_progress/progress-indicator/progress-indicator.js +3 -3
- package/dist/collection/components/_progress/progress-list/progress-list.js +1 -1
- package/dist/collection/components/_progress/progress-list-item/progress-list-item.js +5 -5
- package/dist/collection/components/_progress/progressbar/progressbar.js +2 -2
- package/dist/collection/components/_quote/quote/quote.js +1 -1
- package/dist/collection/components/_table/table/table.js +1 -1
- package/dist/collection/components/_tag/tag/tag.js +1 -1
- package/dist/collection/components/_tag/tag-media/tag-media.js +2 -2
- package/dist/collection/components/_tools/tools-feedback/tools-feedback.js +1 -1
- package/dist/collection/components/_tools/tools-feedback-banner/tools-feedback-banner.js +1 -1
- package/dist/collection/components/_tools/tools-feedback-rating/tools-feedback-rating.js +1 -1
- package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +1 -1
- package/dist/collection/components/_typography/typography/typography.js +1 -1
- package/dist/collection/components/_typography/typography-heading-jumbo/typography-heading-jumbo.js +1 -1
- package/dist/collection/components/_typography/typography-meta/typography-meta.js +1 -1
- package/dist/collection/components/_typography/typography-preamble/typography-preamble.js +1 -1
- package/dist/collection/components/_typography/typography-time/typography-time.js +1 -1
- package/dist/collection/components/_util/util-breakpoint-observer/util-breakpoint-observer.js +1 -1
- package/dist/collection/components/_util/util-detect-click-outside/util-detect-click-outside.js +1 -1
- package/dist/collection/components/_util/util-detect-focus-outside/util-detect-focus-outside.js +1 -1
- package/dist/collection/components/_util/util-intersection-observer/util-intersection-observer.js +1 -1
- package/dist/collection/components/_util/util-keydown-handler/util-keydown-handler.js +1 -1
- package/dist/collection/components/_util/util-keyup-handler/util-keyup-handler.js +1 -1
- package/dist/collection/components/_util/util-resize-observer/util-resize-observer.js +1 -1
- package/dist/collection/design-tokens/components/_calendar-datepicker.variables.scss +2 -2
- package/dist/collection/enums.js +2 -0
- package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar-datepicker.variables.scss +2 -2
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/{p-cd300eda.entry.js → p-025cabb6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-02a6c3e6.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-0a91a8f1.entry.js → p-03c89967.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2922c4e3.entry.js → p-03f2c12b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7b12847b.entry.js → p-04aa20f8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-023f4bda.entry.js → p-05645b1e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0991b9f2.entry.js → p-05da2430.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-84a9aebe.entry.js → p-05fe8358.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b6526de7.entry.js → p-0674a72b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9012b101.entry.js → p-07527c31.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0832154f.entry.js → p-0ba0b367.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-28baa4c7.entry.js → p-0dabfbf2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-0db17f9e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-2b24fa0e.entry.js → p-0ec8853f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-11035a85.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-3c89a642.entry.js → p-115ed01d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3523fa6e.entry.js → p-133eb88c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9631cae6.entry.js → p-13f62d12.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f31585e7.entry.js → p-1400a7db.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0aea7377.entry.js → p-1426e071.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8a9bf1a8.entry.js → p-1443ee18.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-14565bc4.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-52c77416.entry.js → p-1611b5c5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e655da3d.entry.js → p-18d4fcd2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-08a94a64.entry.js → p-1991cbd6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-cb436756.entry.js → p-19bc2782.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3a226f8c.entry.js → p-1a12faea.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d2a91ed1.entry.js → p-1b26e051.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-67fdb16d.entry.js → p-1b568bfe.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2984f613.entry.js → p-1cd949af.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-1e7ead36.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-d93fe1ea.entry.js → p-20e42b63.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2c4638c0.entry.js → p-210f07d5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d6d94fc5.entry.js → p-212c9b16.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-2242582b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-a5c09ae7.entry.js → p-24cd5148.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7933b555.js → p-24fe2189.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-112f97ee.entry.js → p-26983270.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c5388795.entry.js → p-282615d5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-290d1746.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-dbb96a16.entry.js → p-29a7704c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-13fefc71.entry.js → p-29c21aa2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a09dc196.entry.js → p-2a814ab4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-437f552e.entry.js → p-2a86430e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-31f2c2ca.entry.js → p-2bafc4e6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f3a1ab8a.entry.js → p-2bc12345.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b6bfec4a.entry.js → p-2c063933.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2c8e7d2f.entry.js → p-2c657d2a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0da22e3e.entry.js → p-2c714af4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-dee413d2.entry.js → p-2e622d7a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-2f57b6f7.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-300aa9ef.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-33b3a500.entry.js → p-309cc07e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5ce242aa.entry.js → p-30fe9410.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-67bd2530.entry.js → p-34eb2bfc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9eb710b4.entry.js → p-35085329.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-76ca2acc.entry.js → p-35360e65.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c41b2073.entry.js → p-354ee792.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4a2c398b.entry.js → p-356cd33f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f8714d1d.entry.js → p-3656e551.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-713712e5.entry.js → p-38380fae.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-24883c8d.entry.js → p-385e1afb.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-3887bb40.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-d9200703.entry.js → p-3add0508.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a5fbc4bc.entry.js → p-3ae0fb97.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-890df953.entry.js → p-3ca255fb.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-4101f8a9.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-62a70960.entry.js → p-45caeb11.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5aafc88b.entry.js → p-45d194e8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-460572d9.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-4659accd.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-22baa268.entry.js → p-4898e3e1.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a3cb8bd5.entry.js → p-4899b39e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3e5ce51b.entry.js → p-48f60428.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f5ac3db8.entry.js → p-4a1af082.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7220e396.entry.js → p-4a92afba.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-4b87e336.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-e543d03e.entry.js → p-4efff0ca.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-4f68f34d.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-bef58a07.entry.js → p-51354379.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-372d7bd9.entry.js → p-51b3e6b7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-039393bb.entry.js → p-5520c068.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fbf17865.entry.js → p-5762d73d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c80f61a6.entry.js → p-578a5503.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-abf33d72.entry.js → p-57932243.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-926a78e0.entry.js → p-580403f8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6d811a52.entry.js → p-58a86b5f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-5990798b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-2b87cc19.entry.js → p-59ed9a08.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-5bd4feb1.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-5c6726e4.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-104309d9.entry.js → p-5ccb12cc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d6b9964e.entry.js → p-5d851fc7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0c326b9b.entry.js → p-5f8404ac.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0e02bb2a.entry.js → p-5f8a3b26.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2f9031f7.entry.js → p-5ff83bb2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1ad93128.entry.js → p-5ffc1490.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b9b4f6d6.entry.js → p-6079b98f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b8333c34.entry.js → p-61134ea0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-614d0764.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-49bd9a2a.entry.js → p-62908311.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-646ed366.entry.js → p-62ff3ed7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-648ed420.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-a3f6b784.entry.js → p-6682c011.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7510909c.entry.js → p-693e33b2.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8d612225.entry.js → p-6b4f5007.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-6c701c64.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-70cd00fd.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-90d0b2a0.entry.js → p-70d5b6d8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-72f982ac.entry.js → p-716522cc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e047cab4.entry.js → p-7194b6d4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f8b58391.entry.js → p-72be21a0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-64268e59.entry.js → p-73358d64.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-13be39e9.entry.js → p-765c940e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e672129d.entry.js → p-76dda986.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-7899fdd3.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-e09c1259.entry.js → p-79c08614.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-79c6ecc6.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-530e1dbc.entry.js → p-7b077861.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-dcbaedc5.entry.js → p-7b144af0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-09d1b818.entry.js → p-7bc209b0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d22e7ce0.entry.js → p-7c4a57bc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-7f574281.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-9db66f32.entry.js → p-7f5ccb4b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3b6a966f.entry.js → p-8042dd80.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0a5ad15e.entry.js → p-8186b82c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a2c1a827.entry.js → p-82998dc8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-48311e32.entry.js → p-842f7414.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fc16296d.entry.js → p-8638aeba.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-871eb27f.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-fa472c4e.entry.js → p-88d89422.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-158386cf.entry.js → p-89266d02.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-8a89811e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-ff2d1cce.entry.js → p-8b112e8e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5ed649d9.entry.js → p-8d51bf4a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-8dde1275.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-2419fc24.entry.js → p-8f398e56.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-07592e80.entry.js → p-8fde626d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-903cd4b7.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-27eadc08.entry.js → p-91071734.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-bc2d0736.entry.js → p-91bd565a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-94170a0d.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-eed8bc06.entry.js → p-95f0541d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5bbb243b.entry.js → p-97df6bb5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-65739f3e.entry.js → p-98aa180e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c60cb60b.entry.js → p-98b9f757.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0bb9dd8c.entry.js → p-99eae5f5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-57127791.entry.js → p-9acaa089.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-63890399.entry.js → p-9d07a6b7.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-9eed8e11.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-6402ba40.entry.js → p-9f76ceae.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-18456f8a.entry.js → p-a05d9a25.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e49431bb.entry.js → p-a0ed9e6c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-a105d9fe.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-ac04eb33.entry.js → p-a25dfae6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f10afb2c.entry.js → p-a2c089de.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-193c59b4.entry.js → p-a31b7db8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-62c3ac1c.entry.js → p-a3a748b1.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c2ee26cb.js → p-a47b6b5c.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2abea8f9.entry.js → p-a4cecc24.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b0d40e5f.entry.js → p-a4f63acf.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c60fd5e0.entry.js → p-a6925231.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0ac679be.entry.js → p-a69d8ad3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fd82e06b.entry.js → p-a8b5f553.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0277f185.entry.js → p-a9364824.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-efb6fb96.entry.js → p-aa3e3eef.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-aa63b05a.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-aa7b3a21.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-ec693ff5.entry.js → p-ab1f9fa3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-05fc7690.entry.js → p-ab807393.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-fb154704.entry.js → p-ab83e07e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-ad16c7a1.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-87de059b.entry.js → p-ad3bc89a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-60a1ce28.entry.js → p-afc03fe9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6b803e1c.entry.js → p-afc4494d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-557eea42.entry.js → p-b1f046bc.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e3186a36.entry.js → p-b2258360.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-422e3afc.entry.js → p-b4894794.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-23f747cc.entry.js → p-b7f51664.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f9ae5c3c.entry.js → p-ba1f3c21.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-006e4bb1.entry.js → p-ba74fb18.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-bb92f2eb.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-99b1b203.entry.js → p-bba72c14.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-bfd1f048.entry.js → p-bda62d83.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7437e228.entry.js → p-bfb78e9e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-b5d8061e.entry.js → p-bfe515b0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-c1da0c35.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-3c8d03e7.entry.js → p-c1f1614f.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-eb322163.entry.js → p-c2084f44.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4b62866d.entry.js → p-c2c56530.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4bc71fe7.entry.js → p-c34defe4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-c3cda078.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-6b2c90fc.entry.js → p-c4363e1e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6aa5d975.entry.js → p-c571715c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-c64b4626.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-efe019c1.entry.js → p-c6ebe45b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-1971bc16.entry.js → p-c6ec95b6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-692dac39.entry.js → p-c8012cef.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-8b0e96ac.entry.js → p-ca226329.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5def336d.entry.js → p-cb694b2c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a6d09b0e.entry.js → p-cb94f90d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-a0281aca.entry.js → p-cdfc6b9e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-75158811.entry.js → p-cf22ea4c.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-cf66e56b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-2dfb2ea7.entry.js → p-cf8705ff.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c02a877b.entry.js → p-d09d6e4e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4b6c9172.entry.js → p-d10d9f6b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-d1886fff.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-1938ed5c.entry.js → p-d2f05c30.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-51e86d4b.entry.js → p-d3a16cd3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-902cec9c.entry.js → p-d4a3672b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-6ae39bdf.entry.js → p-d4f972c0.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7eac3e90.entry.js → p-d974fef4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-af939b8f.entry.js → p-d997189d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-272c5665.entry.js → p-da86828e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-3bd13a58.entry.js → p-db548ef5.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-db5a83cf.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-db5be953.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-2e5dac09.entry.js → p-dc571b83.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-f275221f.entry.js → p-dd5d6b5b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-9513f1a6.entry.js → p-de04fc95.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0589cf6f.entry.js → p-deb342fa.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-21da2693.entry.js → p-df144f4a.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7be05ba5.entry.js → p-df2dbad3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-37bb51e7.entry.js → p-dfebd13b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-ccb5f0b0.entry.js → p-e09a3a9b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-390c1406.entry.js → p-e0ddaa32.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2f27ae63.entry.js → p-e2fe3edf.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e607cf69.entry.js → p-e4f6a021.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d839d59a.entry.js → p-e6313314.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-288e5a09.entry.js → p-e9f759f9.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-187ec823.entry.js → p-ee95a46b.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d00c62e6.entry.js → p-eec05f58.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-7f3c5825.entry.js → p-eece0f27.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-c2ea3253.entry.js → p-ef5ef502.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4240e680.entry.js → p-f066ad62.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-191602bf.entry.js → p-f0679d19.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2ae1e08f.entry.js → p-f1fa6847.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5dbe64f9.entry.js → p-f24018e3.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-25c673e0.entry.js → p-f2f2ddc8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-35fbe0fb.entry.js → p-f36104b8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-e6878d7f.entry.js → p-f3b8ef49.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-f40f4b2a.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-fe177649.entry.js → p-f5ab5a6d.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-f6ceba96.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-539987bb.entry.js → p-f80bf0cf.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0e5ce032.entry.js → p-f8460123.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-26e6cb1a.entry.js → p-fb73b450.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-d46da8fe.entry.js → p-fc609ae4.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-aaae4e3b.entry.js → p-fdddbfc8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-4806e3a5.entry.js → p-fefd78cb.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-0837b46c.entry.js → p-ff3847ca.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-5c473979.entry.js → p-ffe543c2.entry.js} +1 -1
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/digi-bar-chart.entry.js +2 -2
- package/dist/esm/digi-button_19.entry.js +4044 -0
- package/dist/esm/digi-calendar-week-view.entry.js +5 -6
- package/dist/esm/digi-chart-line.entry.js +2 -2
- package/dist/esm/digi-code-block_3.entry.js +15 -12
- package/dist/esm/digi-code-example.entry.js +5 -5
- package/dist/esm/digi-code.entry.js +1 -1
- package/dist/esm/digi-context-menu.entry.js +3 -3
- package/dist/esm/digi-dialog.entry.js +12 -11
- package/dist/esm/digi-expandable-accordion.entry.js +91 -0
- package/dist/esm/digi-expandable-faq-item.entry.js +93 -0
- package/dist/esm/digi-expandable-faq.entry.js +2 -2
- package/dist/esm/digi-footer-card.entry.js +1 -1
- package/dist/esm/digi-footer.entry.js +10 -9
- package/dist/esm/digi-form-category-filter.entry.js +2 -2
- package/dist/esm/digi-form-checkbox.entry.js +2 -2
- package/dist/esm/digi-form-error-list.entry.js +12 -11
- package/dist/esm/digi-form-file-upload.entry.js +8 -9
- package/dist/esm/digi-form-filter.entry.js +5 -5
- package/dist/esm/digi-form-input-search.entry.js +3 -4
- package/dist/esm/digi-form-radiogroup.entry.js +6 -2
- package/dist/esm/digi-form-receipt.entry.js +10 -9
- package/dist/esm/digi-form-select-filter.entry.js +16 -15
- package/dist/esm/digi-header-avatar.entry.js +1 -1
- package/dist/esm/digi-header-navigation-item.entry.js +23 -0
- package/dist/esm/digi-header-navigation.entry.js +220 -0
- package/dist/esm/digi-header-notification.entry.js +19 -0
- package/dist/esm/digi-header.entry.js +88 -0
- package/dist/esm/digi-icon-accessibility-deaf.entry.js +2 -2
- package/dist/esm/digi-icon-accessibility-universal.entry.js +2 -2
- package/dist/esm/digi-icon-apple.entry.js +2 -2
- package/dist/esm/digi-icon-archive-outline.entry.js +2 -2
- package/dist/esm/digi-icon-archive.entry.js +2 -2
- package/dist/esm/digi-icon-arrow-back.entry.js +2 -2
- package/dist/esm/digi-icon-arrow-down.entry.js +2 -2
- package/dist/esm/digi-icon-arrow-left.entry.js +2 -2
- package/dist/esm/digi-icon-arrow-right.entry.js +2 -2
- package/dist/esm/digi-icon-arrow-sign-in.entry.js +2 -2
- package/dist/esm/digi-icon-arrow-sign-out.entry.js +2 -2
- package/dist/esm/digi-icon-arrow-up.entry.js +2 -2
- package/dist/esm/digi-icon-at.entry.js +2 -2
- 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-bell.entry.js +2 -2
- package/dist/esm/digi-icon-book.entry.js +2 -2
- package/dist/esm/digi-icon-bookmark-outline.entry.js +2 -2
- package/dist/esm/digi-icon-bookmark-solid.entry.js +2 -2
- package/dist/esm/digi-icon-bubble-ellipsis.entry.js +2 -2
- package/dist/esm/digi-icon-bubble.entry.js +2 -2
- package/dist/esm/digi-icon-building-outline.entry.js +2 -2
- package/dist/esm/digi-icon-building-solid.entry.js +2 -2
- package/dist/esm/digi-icon-bullseye.entry.js +2 -2
- package/dist/esm/digi-icon-calculator-solid.entry.js +2 -2
- package/dist/esm/digi-icon-calendar-alt-alert.entry.js +2 -2
- package/dist/esm/digi-icon-calendar.entry.js +2 -2
- package/dist/esm/digi-icon-caret-circle-right.entry.js +2 -2
- package/dist/esm/digi-icon-caret-down_2.entry.js +4 -4
- package/dist/esm/digi-icon-caret-left.entry.js +2 -2
- package/dist/esm/digi-icon-caret-right.entry.js +2 -2
- package/dist/esm/digi-icon-chart_2.entry.js +4 -4
- package/dist/esm/digi-icon-chat.entry.js +2 -2
- package/dist/esm/digi-icon-check-circle-reg-alt.entry.js +2 -2
- package/dist/esm/digi-icon-check-circle-solid_4.entry.js +8 -8
- package/dist/esm/digi-icon-check.entry.js +2 -2
- package/dist/esm/digi-icon-checklist.entry.js +2 -2
- package/dist/esm/{digi-icon-chevron-left.entry.js → digi-icon-chevron-down.entry.js} +7 -7
- package/dist/esm/digi-icon-chevron-up.entry.js +2 -2
- package/dist/esm/digi-icon-clock.entry.js +2 -2
- package/dist/esm/digi-icon-communication-play-solid.entry.js +2 -2
- package/dist/esm/digi-icon-compress-alt.entry.js +2 -2
- package/dist/esm/digi-icon-comunication-case.entry.js +2 -2
- package/dist/esm/digi-icon-comunication-flag.entry.js +2 -2
- package/dist/esm/digi-icon-comunication-graduate.entry.js +2 -2
- package/dist/esm/digi-icon-comunication-play.entry.js +2 -2
- package/dist/esm/digi-icon-cooperation.entry.js +2 -2
- package/dist/esm/digi-icon-copy.entry.js +2 -2
- package/dist/esm/digi-icon-danger-outline.entry.js +2 -2
- package/dist/esm/digi-icon-download.entry.js +2 -2
- package/dist/esm/digi-icon-dxa.entry.js +2 -2
- package/dist/esm/digi-icon-edit.entry.js +2 -2
- package/dist/esm/digi-icon-ellipsis.entry.js +2 -2
- package/dist/esm/digi-icon-envelope-filled.entry.js +2 -2
- package/dist/esm/digi-icon-envelope.entry.js +2 -2
- package/dist/esm/digi-icon-exclamation-circle-filled.entry.js +2 -2
- package/dist/esm/digi-icon-exclamation-triangle-filled.entry.js +2 -2
- package/dist/esm/digi-icon-exclamation-triangle-warning.entry.js +2 -2
- package/dist/esm/digi-icon-exclamation-triangle.entry.js +2 -2
- package/dist/esm/digi-icon-expand-alt.entry.js +2 -2
- package/dist/esm/digi-icon-external-link-alt_2.entry.js +3 -3
- package/dist/esm/digi-icon-eye-slash.entry.js +2 -2
- package/dist/esm/digi-icon-eye.entry.js +2 -2
- package/dist/esm/digi-icon-facebook-square.entry.js +2 -2
- package/dist/esm/digi-icon-file-add.entry.js +1 -1
- package/dist/esm/digi-icon-file-document.entry.js +2 -2
- package/dist/esm/digi-icon-file-excel.entry.js +2 -2
- package/dist/esm/digi-icon-file-export.entry.js +1 -1
- package/dist/esm/digi-icon-file-governing.entry.js +2 -2
- package/dist/esm/digi-icon-file-pdf.entry.js +2 -2
- package/dist/esm/digi-icon-file-powerpoint.entry.js +2 -2
- package/dist/esm/digi-icon-file-remove.entry.js +1 -1
- package/dist/esm/digi-icon-file-word.entry.js +2 -2
- package/dist/esm/digi-icon-film.entry.js +2 -2
- package/dist/esm/digi-icon-filter.entry.js +2 -2
- package/dist/esm/digi-icon-folder-add.entry.js +1 -1
- package/dist/esm/digi-icon-folder-directory.entry.js +1 -1
- package/dist/esm/digi-icon-folder-open.entry.js +1 -1
- package/dist/esm/digi-icon-folder.entry.js +1 -1
- package/dist/esm/digi-icon-globe-filled.entry.js +2 -2
- package/dist/esm/digi-icon-globe.entry.js +2 -2
- package/dist/esm/digi-icon-headphones.entry.js +2 -2
- package/dist/esm/digi-icon-heart-solid.entry.js +2 -2
- package/dist/esm/digi-icon-heart.entry.js +2 -2
- package/dist/esm/digi-icon-history.entry.js +2 -2
- package/dist/esm/digi-icon-home.entry.js +2 -2
- package/dist/esm/digi-icon-image.entry.js +2 -2
- package/dist/esm/digi-icon-info-circle-solid.entry.js +2 -2
- package/dist/esm/digi-icon-instagram.entry.js +2 -2
- package/dist/esm/digi-icon-job-suggestion.entry.js +2 -2
- package/dist/esm/digi-icon-language-outline.entry.js +2 -2
- package/dist/esm/digi-icon-language.entry.js +2 -2
- package/dist/esm/digi-icon-laptop-phone.entry.js +2 -2
- package/dist/esm/digi-icon-lattlast.entry.js +2 -2
- package/dist/esm/digi-icon-licence-bus.entry.js +2 -2
- package/dist/esm/digi-icon-licence-car.entry.js +2 -2
- package/dist/esm/digi-icon-licence-motorcycle.entry.js +2 -2
- package/dist/esm/digi-icon-licence-truck.entry.js +2 -2
- package/dist/esm/digi-icon-lightbulb.entry.js +2 -2
- package/dist/esm/digi-icon-linkedin-in.entry.js +2 -2
- package/dist/esm/digi-icon-list-ul_6.entry.js +12 -12
- package/dist/esm/digi-icon-lock.entry.js +2 -2
- package/dist/esm/digi-icon-marker-filled.entry.js +2 -2
- package/dist/esm/digi-icon-marker.entry.js +2 -2
- package/dist/esm/digi-icon-media-course.entry.js +2 -2
- package/dist/esm/digi-icon-media-podcast.entry.js +2 -2
- package/dist/esm/digi-icon-microphone-off.entry.js +2 -2
- package/dist/esm/digi-icon-microphone.entry.js +2 -2
- package/dist/esm/digi-icon-minus_2.entry.js +4 -4
- package/dist/esm/digi-icon-move.entry.js +2 -2
- package/dist/esm/digi-icon-notification-error_4.entry.js +8 -8
- package/dist/esm/digi-icon-online-interview.entry.js +2 -2
- package/dist/esm/digi-icon-online-meeting.entry.js +2 -2
- package/dist/esm/digi-icon-online-task.entry.js +2 -2
- package/dist/esm/digi-icon-open-source.entry.js +2 -2
- package/dist/esm/digi-icon-palette.entry.js +2 -2
- package/dist/esm/digi-icon-paste.entry.js +1 -1
- package/dist/esm/digi-icon-pen.entry.js +2 -2
- package/dist/esm/digi-icon-phone-hangup.entry.js +2 -2
- package/dist/esm/digi-icon-phone.entry.js +2 -2
- package/dist/esm/digi-icon-print.entry.js +2 -2
- package/dist/esm/digi-icon-read.entry.js +2 -2
- package/dist/esm/digi-icon-redo.entry.js +2 -2
- package/dist/esm/digi-icon-scale.entry.js +1 -1
- package/dist/esm/digi-icon-screensharing-off.entry.js +2 -2
- package/dist/esm/digi-icon-screensharing.entry.js +2 -2
- package/dist/esm/digi-icon-search.entry.js +2 -2
- package/dist/esm/digi-icon-send-outline.entry.js +2 -2
- package/dist/esm/digi-icon-send-solid.entry.js +2 -2
- package/dist/esm/digi-icon-settings.entry.js +2 -2
- package/dist/esm/digi-icon-share-alt.entry.js +2 -2
- package/dist/esm/digi-icon-share-chain.entry.js +2 -2
- package/dist/esm/digi-icon-sign.entry.js +2 -2
- package/dist/esm/digi-icon-sliders-h.entry.js +2 -2
- package/dist/esm/digi-icon-sokkandidat.entry.js +2 -2
- package/dist/esm/digi-icon-sort-down.entry.js +2 -2
- package/dist/esm/digi-icon-sort-up.entry.js +2 -2
- package/dist/esm/digi-icon-sort.entry.js +2 -2
- package/dist/esm/digi-icon-spinner.entry.js +2 -2
- package/dist/esm/digi-icon-star-reg.entry.js +2 -2
- package/dist/esm/digi-icon-star.entry.js +2 -2
- package/dist/esm/digi-icon-suitcase-outline.entry.js +2 -2
- package/dist/esm/digi-icon-suitcase-solid.entry.js +2 -2
- package/dist/esm/digi-icon-system-assistance.entry.js +2 -2
- package/dist/esm/digi-icon-table-column.entry.js +2 -2
- package/dist/esm/digi-icon-table-row.entry.js +2 -2
- package/dist/esm/digi-icon-task-done.entry.js +2 -2
- package/dist/esm/digi-icon-toggle-off.entry.js +2 -2
- package/dist/esm/digi-icon-toggle-on.entry.js +2 -2
- package/dist/esm/digi-icon-twitter.entry.js +2 -2
- package/dist/esm/digi-icon-tyck-till.entry.js +2 -2
- package/dist/esm/digi-icon-unlock.entry.js +2 -2
- package/dist/esm/digi-icon-update.entry.js +2 -2
- package/dist/esm/digi-icon-upload.entry.js +2 -2
- package/dist/esm/digi-icon-user-add.entry.js +1 -1
- package/dist/esm/digi-icon-user-alt.entry.js +2 -2
- package/dist/esm/digi-icon-user-edit.entry.js +1 -1
- package/dist/esm/digi-icon-users-solid.entry.js +2 -2
- package/dist/esm/digi-icon-videocamera-off.entry.js +2 -2
- package/dist/esm/digi-icon-videocamera.entry.js +2 -2
- package/dist/esm/digi-icon-volume.entry.js +2 -2
- package/dist/esm/digi-icon-web-tv.entry.js +2 -2
- package/dist/esm/digi-icon-wifi-signal0.entry.js +2 -2
- package/dist/esm/digi-icon-wifi-signal1.entry.js +2 -2
- package/dist/esm/digi-icon-wifi-signal2.entry.js +2 -2
- package/dist/esm/digi-icon-wifi-signal3.entry.js +2 -2
- package/dist/esm/digi-icon-window.entry.js +2 -2
- package/dist/esm/digi-icon-x-button.entry.js +2 -2
- package/dist/esm/digi-icon-youtube.entry.js +2 -2
- package/dist/esm/digi-info-card-multi-container.entry.js +1 -1
- package/dist/esm/digi-info-card-multi.entry.js +1 -1
- package/dist/esm/digi-info-card.entry.js +1 -1
- package/dist/esm/digi-layout-block_2.entry.js +87 -0
- package/dist/esm/digi-layout-columns.entry.js +1 -1
- package/dist/esm/digi-link-button.entry.js +1 -1
- package/dist/esm/digi-link-internal.entry.js +1 -1
- package/dist/esm/digi-link.entry.js +1 -1
- package/dist/esm/digi-list.entry.js +1 -1
- package/dist/esm/digi-loader-skeleton.entry.js +3 -3
- package/dist/esm/digi-loader-spinner.entry.js +1 -1
- package/dist/esm/digi-logo_2.entry.js +59 -0
- package/dist/esm/digi-media-figure.entry.js +1 -1
- package/dist/esm/digi-media-image_2.entry.js +3 -3
- package/dist/esm/digi-navigation-breadcrumbs.entry.js +2 -2
- package/dist/esm/digi-navigation-pagination.entry.js +15 -14
- package/dist/esm/digi-navigation-sidebar.entry.js +2 -2
- package/dist/esm/digi-navigation-vertical-menu-item.entry.js +6 -6
- package/dist/esm/digi-navigation-vertical-menu.entry.js +1 -1
- package/dist/esm/digi-notification-alert.entry.js +11 -10
- package/dist/esm/digi-notification-error-page.entry.js +12 -11
- package/dist/esm/digi-progress-circle.entry.js +8 -8
- package/dist/esm/digi-progress-indicator.entry.js +3 -3
- package/dist/esm/digi-progress-list-item.entry.js +5 -5
- package/dist/esm/digi-progress-list.entry.js +1 -1
- package/dist/esm/digi-progressbar.entry.js +2 -2
- package/dist/esm/digi-quote.entry.js +1 -1
- package/dist/esm/digi-table.entry.js +1 -1
- package/dist/esm/digi-tablist-panel.entry.js +2 -2
- package/dist/esm/digi-tablist.entry.js +5 -5
- package/dist/esm/digi-tag-media.entry.js +2 -2
- package/dist/esm/digi-tag.entry.js +1 -1
- package/dist/esm/digi-tools-feedback-banner.entry.js +1 -1
- package/dist/esm/digi-tools-feedback-rating.entry.js +1 -1
- package/dist/esm/digi-tools-feedback.entry.js +10 -9
- package/dist/esm/digi-tools-theme-provider.entry.js +1 -1
- package/dist/esm/digi-typography-heading-jumbo.entry.js +34 -0
- package/dist/esm/digi-typography-meta.entry.js +1 -1
- package/dist/esm/digi-typography-preamble.entry.js +16 -0
- package/dist/esm/digi-typography-time.entry.js +1 -1
- package/dist/esm/digi-util-breakpoint-observer.entry.js +44 -0
- package/dist/esm/digi-util-detect-click-outside.entry.js +1 -1
- package/dist/esm/digi-util-detect-focus-outside.entry.js +1 -1
- package/dist/esm/digi-util-keyup-handler.entry.js +1 -1
- package/dist/esm/digi-util-resize-observer.entry.js +1 -1
- package/dist/esm/expandable-accordion-header-level.enum-85681e2f.js +11 -0
- package/dist/esm/expandable-faq-item-variation.enum-a8cb225b.js +18 -0
- package/dist/esm/{form-input-type.enum-3da3db27.js → form-input-type.enum-a6bba983.js} +15 -1
- package/dist/esm/form-radiogroup-validation.enum-d790fc66.js +9 -0
- package/dist/esm/{form-file-upload-variation.enum-9c49ec5e.js → form-validation-message-variation.enum-f7835fc5.js} +8 -1
- package/dist/esm/index-bfea2cc5.js +48 -28
- package/dist/esm/{index-2fce392f.js → index-dc6b83f7.js} +170 -3
- package/dist/esm/index.js +9 -8
- package/dist/esm/layout-container-max-width.enum-c40018ac.js +21 -0
- package/dist/esm/{linear-ef018ffb.js → linear-0246aaea.js} +10 -11
- package/dist/esm/loader.js +1 -1
- package/dist/esm/logo-variation.enum-5b68b79f.js +13 -0
- package/dist/esm/typography-heading-jumbo-variation.enum-eb737f1b.js +17 -0
- package/dist/esm/{typography-variation.enum-b65edac6.js → typography-variation.enum-dea0fe69.js} +68 -76
- package/dist/types/components/_calendar/calendar/calendar.d.ts +9 -13
- package/dist/types/components/_calendar/calendar-datepicker/calendar-datepicker.d.ts +36 -15
- package/dist/types/components/_form/form-fieldset/form-fieldset-validation.enum.d.ts +6 -0
- package/dist/types/components/_form/form-fieldset/form-fieldset.d.ts +15 -4
- package/dist/types/components/_form/form-input/form-input.d.ts +1 -0
- package/dist/types/components/_form/form-radiogroup/form-radiogroup-validation.enum.d.ts +6 -0
- package/dist/types/components/_form/form-radiogroup/form-radiogroup.d.ts +16 -0
- package/dist/types/components/_form/form-textarea/form-textarea.d.ts +1 -0
- package/dist/types/components.d.ts +112 -56
- package/dist/types/enums.d.ts +2 -0
- package/hydrate/index.js +771 -656
- package/hydrate/index.mjs +771 -656
- package/package.json +1 -1
- package/dist/cjs/digi-button_20.cjs.entry.js +0 -1015
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +0 -2494
- package/dist/cjs/digi-calendar_2.cjs.entry.js +0 -469
- package/dist/cjs/digi-form-input.cjs.entry.js +0 -177
- package/dist/cjs/digi-form-label_5.cjs.entry.js +0 -175
- package/dist/cjs/digi-form-select_2.cjs.entry.js +0 -176
- package/dist/cjs/digi-form-textarea.cjs.entry.js +0 -133
- package/dist/cjs/digi-icon-chevron-right.cjs.entry.js +0 -30
- package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +0 -64
- 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-select-variation.enum-528c1bf0.js +0 -16
- package/dist/cjs/form-textarea-variation.enum-9c90d40f.js +0 -17
- 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/digi-arbetsformedlingen/p-02f4434f.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-11b321b4.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-12fb439b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-1f3345e9.js +0 -1
- package/dist/digi-arbetsformedlingen/p-1f92c549.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-1f956af8.js +0 -1
- package/dist/digi-arbetsformedlingen/p-218afb6c.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-2aaaa89f.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-35584c62.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-3cbe6f0e.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-431f839b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-46a49bec.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4841b4e1.js +0 -1
- package/dist/digi-arbetsformedlingen/p-50ec408c.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-60e11c26.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6790fbc1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6cb99f24.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-71b47bfe.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-73c5b323.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7767f5e5.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-7aacd45f.js +0 -1
- package/dist/digi-arbetsformedlingen/p-831ee484.entry.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-92b7af4f.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9c5a93d8.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a21a3600.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a3a5a7e7.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-bfe909ee.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c603e927.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-c7949525.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d043b821.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d60d472c.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-d612e424.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-dace73d6.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-deab75f5.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e1f569c1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e9225a0c.js +0 -1
- package/dist/digi-arbetsformedlingen/p-eaa7b7e2.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f08cd095.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-f447b984.js +0 -1
- package/dist/esm/digi-button_20.entry.js +0 -992
- package/dist/esm/digi-calendar-datepicker.entry.js +0 -2490
- package/dist/esm/digi-calendar_2.entry.js +0 -464
- package/dist/esm/digi-form-input.entry.js +0 -173
- package/dist/esm/digi-form-label_5.entry.js +0 -167
- package/dist/esm/digi-form-select_2.entry.js +0 -171
- package/dist/esm/digi-form-textarea.entry.js +0 -129
- package/dist/esm/digi-icon-chevron-right.entry.js +0 -26
- package/dist/esm/digi-util-mutation-observer.entry.js +0 -60
- 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-select-variation.enum-f2f6098d.js +0 -16
- package/dist/esm/form-textarea-variation.enum-05017e8e.js +0 -17
- 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
|
@@ -1,2494 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index$2 = require('./index-81fc5a97.js');
|
|
6
|
-
const text = require('./text-3157012b.js');
|
|
7
|
-
require('./badge-notification-shape.enum-ff802554.js');
|
|
8
|
-
const typographyVariation_enum = require('./typography-variation.enum-d803f3a6.js');
|
|
9
|
-
require('./badge-status-variation.enum-0a5adc21.js');
|
|
10
|
-
require('./code-example-variation.enum-1611825e.js');
|
|
11
|
-
require('./form-input-search-variation.enum-e0e025b1.js');
|
|
12
|
-
require('./button-variation.enum-bc521499.js');
|
|
13
|
-
require('./calendar-week-view-heading-level.enum-fd0c841b.js');
|
|
14
|
-
require('./bar-chart-variation.enum-a4e866b6.js');
|
|
15
|
-
require('./code-variation.enum-c4a4e6fd.js');
|
|
16
|
-
require('./expandable-faq-variation.enum-af923f49.js');
|
|
17
|
-
require('./footer-card-variation.enum-99555edc.js');
|
|
18
|
-
require('./form-checkbox-variation.enum-d2ca879e.js');
|
|
19
|
-
require('./form-file-upload-variation.enum-634cfae8.js');
|
|
20
|
-
require('./form-input-type.enum-9c8ee12a.js');
|
|
21
|
-
const formInputVariation_enum = require('./form-input-variation.enum-c750520c.js');
|
|
22
|
-
require('./form-select-variation.enum-528c1bf0.js');
|
|
23
|
-
require('./form-textarea-variation.enum-9c90d40f.js');
|
|
24
|
-
require('./form-validation-message-variation.enum-855ae0be.js');
|
|
25
|
-
require('./info-card-multi-type.enum-14746572.js');
|
|
26
|
-
require('./info-card-variation.enum-64cef637.js');
|
|
27
|
-
require('./layout-block-variation.enum-f6102119.js');
|
|
28
|
-
require('./layout-columns-variation.enum-65675649.js');
|
|
29
|
-
require('./link-button-variation.enum-137785e3.js');
|
|
30
|
-
require('./list-type.enum-aea4d012.js');
|
|
31
|
-
require('./loader-skeleton-variation.enum-d52ba55e.js');
|
|
32
|
-
require('./loader-spinner-size.enum-db2973f0.js');
|
|
33
|
-
require('./media-figure-alignment.enum-3885aba5.js');
|
|
34
|
-
require('./navigation-sidebar-variation.enum-1c0c3064.js');
|
|
35
|
-
require('./navigation-vertical-menu-variation.enum-c237edd3.js');
|
|
36
|
-
require('./progress-indicator-variation.enum-7cf8e0e4.js');
|
|
37
|
-
require('./progress-list-item-variation.enum-90e4c874.js');
|
|
38
|
-
require('./progress-list-variation.enum-06d5ce27.js');
|
|
39
|
-
require('./progressbar-variation.enum-aff9fa80.js');
|
|
40
|
-
require('./quote-image-inner-position.enum-e64e7a6d.js');
|
|
41
|
-
require('./table-variation.enum-25df2ad7.js');
|
|
42
|
-
require('./tag-media-icon.enum-372563c5.js');
|
|
43
|
-
require('./tag-size.enum-387c516c.js');
|
|
44
|
-
require('./tools-feedback-banner-type.enum-de373ba0.js');
|
|
45
|
-
require('./tools-feedback-rating-variation.enum-2f71e84d.js');
|
|
46
|
-
require('./tools-theme-provider.brand.enum-bc855272.js');
|
|
47
|
-
require('./typography-meta-variation.enum-13ac3538.js');
|
|
48
|
-
require('./typography-time-variation.enum-bce1d87e.js');
|
|
49
|
-
require('./util-breakpoint-observer-breakpoints.enum-e96d3a84.js');
|
|
50
|
-
const randomIdGenerator_util = require('./randomIdGenerator.util-e7f4b6de.js');
|
|
51
|
-
const detectClickOutside_util = require('./detectClickOutside.util-3e764eb3.js');
|
|
52
|
-
const index = require('./index-e8333bcc.js');
|
|
53
|
-
const index$1 = require('./index-ac8e01b4.js');
|
|
54
|
-
const index$3 = require('./index-cad91a90.js');
|
|
55
|
-
require('./detectClosest.util-85b3507b.js');
|
|
56
|
-
|
|
57
|
-
function assign(target, dirtyObject) {
|
|
58
|
-
if (target == null) {
|
|
59
|
-
throw new TypeError('assign requires that input parameter not be null or undefined');
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
dirtyObject = dirtyObject || {};
|
|
63
|
-
|
|
64
|
-
for (var property in dirtyObject) {
|
|
65
|
-
if (Object.prototype.hasOwnProperty.call(dirtyObject, property)) {
|
|
66
|
-
target[property] = dirtyObject[property];
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return target;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// See issue: https://github.com/date-fns/date-fns/issues/376
|
|
74
|
-
|
|
75
|
-
function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) {
|
|
76
|
-
index.requiredArgs(2, arguments);
|
|
77
|
-
var options = dirtyOptions || {};
|
|
78
|
-
var locale = options.locale;
|
|
79
|
-
var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
|
|
80
|
-
var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index$1.toInteger(localeWeekStartsOn);
|
|
81
|
-
var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index$1.toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
82
|
-
|
|
83
|
-
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
84
|
-
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
var date = index.toDate(dirtyDate);
|
|
88
|
-
var day = index$1.toInteger(dirtyDay);
|
|
89
|
-
var currentDay = date.getUTCDay();
|
|
90
|
-
var remainder = day % 7;
|
|
91
|
-
var dayIndex = (remainder + 7) % 7;
|
|
92
|
-
var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
|
|
93
|
-
date.setUTCDate(date.getUTCDate() + diff);
|
|
94
|
-
return date;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// See issue: https://github.com/date-fns/date-fns/issues/376
|
|
98
|
-
|
|
99
|
-
function setUTCISODay(dirtyDate, dirtyDay) {
|
|
100
|
-
index.requiredArgs(2, arguments);
|
|
101
|
-
var day = index$1.toInteger(dirtyDay);
|
|
102
|
-
|
|
103
|
-
if (day % 7 === 0) {
|
|
104
|
-
day = day - 7;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
var weekStartsOn = 1;
|
|
108
|
-
var date = index.toDate(dirtyDate);
|
|
109
|
-
var currentDay = date.getUTCDay();
|
|
110
|
-
var remainder = day % 7;
|
|
111
|
-
var dayIndex = (remainder + 7) % 7;
|
|
112
|
-
var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
|
|
113
|
-
date.setUTCDate(date.getUTCDate() + diff);
|
|
114
|
-
return date;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// See issue: https://github.com/date-fns/date-fns/issues/376
|
|
118
|
-
|
|
119
|
-
function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
|
|
120
|
-
index.requiredArgs(2, arguments);
|
|
121
|
-
var date = index.toDate(dirtyDate);
|
|
122
|
-
var isoWeek = index$1.toInteger(dirtyISOWeek);
|
|
123
|
-
var diff = index$1.getUTCISOWeek(date) - isoWeek;
|
|
124
|
-
date.setUTCDate(date.getUTCDate() - diff * 7);
|
|
125
|
-
return date;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// See issue: https://github.com/date-fns/date-fns/issues/376
|
|
129
|
-
|
|
130
|
-
function setUTCWeek(dirtyDate, dirtyWeek, options) {
|
|
131
|
-
index.requiredArgs(2, arguments);
|
|
132
|
-
var date = index.toDate(dirtyDate);
|
|
133
|
-
var week = index$1.toInteger(dirtyWeek);
|
|
134
|
-
var diff = index$1.getUTCWeek(date, options) - week;
|
|
135
|
-
date.setUTCDate(date.getUTCDate() - diff * 7);
|
|
136
|
-
return date;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
var MILLISECONDS_IN_HOUR = 3600000;
|
|
140
|
-
var MILLISECONDS_IN_MINUTE = 60000;
|
|
141
|
-
var MILLISECONDS_IN_SECOND = 1000;
|
|
142
|
-
var numericPatterns = {
|
|
143
|
-
month: /^(1[0-2]|0?\d)/,
|
|
144
|
-
// 0 to 12
|
|
145
|
-
date: /^(3[0-1]|[0-2]?\d)/,
|
|
146
|
-
// 0 to 31
|
|
147
|
-
dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
|
|
148
|
-
// 0 to 366
|
|
149
|
-
week: /^(5[0-3]|[0-4]?\d)/,
|
|
150
|
-
// 0 to 53
|
|
151
|
-
hour23h: /^(2[0-3]|[0-1]?\d)/,
|
|
152
|
-
// 0 to 23
|
|
153
|
-
hour24h: /^(2[0-4]|[0-1]?\d)/,
|
|
154
|
-
// 0 to 24
|
|
155
|
-
hour11h: /^(1[0-1]|0?\d)/,
|
|
156
|
-
// 0 to 11
|
|
157
|
-
hour12h: /^(1[0-2]|0?\d)/,
|
|
158
|
-
// 0 to 12
|
|
159
|
-
minute: /^[0-5]?\d/,
|
|
160
|
-
// 0 to 59
|
|
161
|
-
second: /^[0-5]?\d/,
|
|
162
|
-
// 0 to 59
|
|
163
|
-
singleDigit: /^\d/,
|
|
164
|
-
// 0 to 9
|
|
165
|
-
twoDigits: /^\d{1,2}/,
|
|
166
|
-
// 0 to 99
|
|
167
|
-
threeDigits: /^\d{1,3}/,
|
|
168
|
-
// 0 to 999
|
|
169
|
-
fourDigits: /^\d{1,4}/,
|
|
170
|
-
// 0 to 9999
|
|
171
|
-
anyDigitsSigned: /^-?\d+/,
|
|
172
|
-
singleDigitSigned: /^-?\d/,
|
|
173
|
-
// 0 to 9, -0 to -9
|
|
174
|
-
twoDigitsSigned: /^-?\d{1,2}/,
|
|
175
|
-
// 0 to 99, -0 to -99
|
|
176
|
-
threeDigitsSigned: /^-?\d{1,3}/,
|
|
177
|
-
// 0 to 999, -0 to -999
|
|
178
|
-
fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999
|
|
179
|
-
|
|
180
|
-
};
|
|
181
|
-
var timezonePatterns = {
|
|
182
|
-
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
183
|
-
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
184
|
-
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
185
|
-
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
186
|
-
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
function parseNumericPattern(pattern, string, valueCallback) {
|
|
190
|
-
var matchResult = string.match(pattern);
|
|
191
|
-
|
|
192
|
-
if (!matchResult) {
|
|
193
|
-
return null;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
var value = parseInt(matchResult[0], 10);
|
|
197
|
-
return {
|
|
198
|
-
value: valueCallback ? valueCallback(value) : value,
|
|
199
|
-
rest: string.slice(matchResult[0].length)
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
function parseTimezonePattern(pattern, string) {
|
|
204
|
-
var matchResult = string.match(pattern);
|
|
205
|
-
|
|
206
|
-
if (!matchResult) {
|
|
207
|
-
return null;
|
|
208
|
-
} // Input is 'Z'
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
if (matchResult[0] === 'Z') {
|
|
212
|
-
return {
|
|
213
|
-
value: 0,
|
|
214
|
-
rest: string.slice(1)
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
var sign = matchResult[1] === '+' ? 1 : -1;
|
|
219
|
-
var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
|
|
220
|
-
var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
|
|
221
|
-
var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
|
|
222
|
-
return {
|
|
223
|
-
value: sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND),
|
|
224
|
-
rest: string.slice(matchResult[0].length)
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
function parseAnyDigitsSigned(string, valueCallback) {
|
|
229
|
-
return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
function parseNDigits(n, string, valueCallback) {
|
|
233
|
-
switch (n) {
|
|
234
|
-
case 1:
|
|
235
|
-
return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback);
|
|
236
|
-
|
|
237
|
-
case 2:
|
|
238
|
-
return parseNumericPattern(numericPatterns.twoDigits, string, valueCallback);
|
|
239
|
-
|
|
240
|
-
case 3:
|
|
241
|
-
return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback);
|
|
242
|
-
|
|
243
|
-
case 4:
|
|
244
|
-
return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback);
|
|
245
|
-
|
|
246
|
-
default:
|
|
247
|
-
return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), string, valueCallback);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
function parseNDigitsSigned(n, string, valueCallback) {
|
|
252
|
-
switch (n) {
|
|
253
|
-
case 1:
|
|
254
|
-
return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback);
|
|
255
|
-
|
|
256
|
-
case 2:
|
|
257
|
-
return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback);
|
|
258
|
-
|
|
259
|
-
case 3:
|
|
260
|
-
return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback);
|
|
261
|
-
|
|
262
|
-
case 4:
|
|
263
|
-
return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback);
|
|
264
|
-
|
|
265
|
-
default:
|
|
266
|
-
return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), string, valueCallback);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
function dayPeriodEnumToHours(enumValue) {
|
|
271
|
-
switch (enumValue) {
|
|
272
|
-
case 'morning':
|
|
273
|
-
return 4;
|
|
274
|
-
|
|
275
|
-
case 'evening':
|
|
276
|
-
return 17;
|
|
277
|
-
|
|
278
|
-
case 'pm':
|
|
279
|
-
case 'noon':
|
|
280
|
-
case 'afternoon':
|
|
281
|
-
return 12;
|
|
282
|
-
|
|
283
|
-
case 'am':
|
|
284
|
-
case 'midnight':
|
|
285
|
-
case 'night':
|
|
286
|
-
default:
|
|
287
|
-
return 0;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
function normalizeTwoDigitYear(twoDigitYear, currentYear) {
|
|
292
|
-
var isCommonEra = currentYear > 0; // Absolute number of the current year:
|
|
293
|
-
// 1 -> 1 AC
|
|
294
|
-
// 0 -> 1 BC
|
|
295
|
-
// -1 -> 2 BC
|
|
296
|
-
|
|
297
|
-
var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
|
|
298
|
-
var result;
|
|
299
|
-
|
|
300
|
-
if (absCurrentYear <= 50) {
|
|
301
|
-
result = twoDigitYear || 100;
|
|
302
|
-
} else {
|
|
303
|
-
var rangeEnd = absCurrentYear + 50;
|
|
304
|
-
var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;
|
|
305
|
-
var isPreviousCentury = twoDigitYear >= rangeEnd % 100;
|
|
306
|
-
result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
return isCommonEra ? result : 1 - result;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
313
|
-
var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // User for validation
|
|
314
|
-
|
|
315
|
-
function isLeapYearIndex(year) {
|
|
316
|
-
return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
|
|
317
|
-
}
|
|
318
|
-
/*
|
|
319
|
-
* | | Unit | | Unit |
|
|
320
|
-
* |-----|--------------------------------|-----|--------------------------------|
|
|
321
|
-
* | a | AM, PM | A* | Milliseconds in day |
|
|
322
|
-
* | b | AM, PM, noon, midnight | B | Flexible day period |
|
|
323
|
-
* | c | Stand-alone local day of week | C* | Localized hour w/ day period |
|
|
324
|
-
* | d | Day of month | D | Day of year |
|
|
325
|
-
* | e | Local day of week | E | Day of week |
|
|
326
|
-
* | f | | F* | Day of week in month |
|
|
327
|
-
* | g* | Modified Julian day | G | Era |
|
|
328
|
-
* | h | Hour [1-12] | H | Hour [0-23] |
|
|
329
|
-
* | i! | ISO day of week | I! | ISO week of year |
|
|
330
|
-
* | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
|
|
331
|
-
* | k | Hour [1-24] | K | Hour [0-11] |
|
|
332
|
-
* | l* | (deprecated) | L | Stand-alone month |
|
|
333
|
-
* | m | Minute | M | Month |
|
|
334
|
-
* | n | | N | |
|
|
335
|
-
* | o! | Ordinal number modifier | O* | Timezone (GMT) |
|
|
336
|
-
* | p | | P | |
|
|
337
|
-
* | q | Stand-alone quarter | Q | Quarter |
|
|
338
|
-
* | r* | Related Gregorian year | R! | ISO week-numbering year |
|
|
339
|
-
* | s | Second | S | Fraction of second |
|
|
340
|
-
* | t! | Seconds timestamp | T! | Milliseconds timestamp |
|
|
341
|
-
* | u | Extended year | U* | Cyclic year |
|
|
342
|
-
* | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
|
|
343
|
-
* | w | Local week of year | W* | Week of month |
|
|
344
|
-
* | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
|
|
345
|
-
* | y | Year (abs) | Y | Local week-numbering year |
|
|
346
|
-
* | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
|
|
347
|
-
*
|
|
348
|
-
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
349
|
-
*
|
|
350
|
-
* Letters marked by ! are non-standard, but implemented by date-fns:
|
|
351
|
-
* - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)
|
|
352
|
-
* - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
|
|
353
|
-
* i.e. 7 for Sunday, 1 for Monday, etc.
|
|
354
|
-
* - `I` is ISO week of year, as opposed to `w` which is local week of year.
|
|
355
|
-
* - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
|
|
356
|
-
* `R` is supposed to be used in conjunction with `I` and `i`
|
|
357
|
-
* for universal ISO week-numbering date, whereas
|
|
358
|
-
* `Y` is supposed to be used in conjunction with `w` and `e`
|
|
359
|
-
* for week-numbering date specific to the locale.
|
|
360
|
-
*/
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
var parsers = {
|
|
364
|
-
// Era
|
|
365
|
-
G: {
|
|
366
|
-
priority: 140,
|
|
367
|
-
parse: function (string, token, match, _options) {
|
|
368
|
-
switch (token) {
|
|
369
|
-
// AD, BC
|
|
370
|
-
case 'G':
|
|
371
|
-
case 'GG':
|
|
372
|
-
case 'GGG':
|
|
373
|
-
return match.era(string, {
|
|
374
|
-
width: 'abbreviated'
|
|
375
|
-
}) || match.era(string, {
|
|
376
|
-
width: 'narrow'
|
|
377
|
-
});
|
|
378
|
-
// A, B
|
|
379
|
-
|
|
380
|
-
case 'GGGGG':
|
|
381
|
-
return match.era(string, {
|
|
382
|
-
width: 'narrow'
|
|
383
|
-
});
|
|
384
|
-
// Anno Domini, Before Christ
|
|
385
|
-
|
|
386
|
-
case 'GGGG':
|
|
387
|
-
default:
|
|
388
|
-
return match.era(string, {
|
|
389
|
-
width: 'wide'
|
|
390
|
-
}) || match.era(string, {
|
|
391
|
-
width: 'abbreviated'
|
|
392
|
-
}) || match.era(string, {
|
|
393
|
-
width: 'narrow'
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
set: function (date, flags, value, _options) {
|
|
398
|
-
flags.era = value;
|
|
399
|
-
date.setUTCFullYear(value, 0, 1);
|
|
400
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
401
|
-
return date;
|
|
402
|
-
},
|
|
403
|
-
incompatibleTokens: ['R', 'u', 't', 'T']
|
|
404
|
-
},
|
|
405
|
-
// Year
|
|
406
|
-
y: {
|
|
407
|
-
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
|
|
408
|
-
// | Year | y | yy | yyy | yyyy | yyyyy |
|
|
409
|
-
// |----------|-------|----|-------|-------|-------|
|
|
410
|
-
// | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
|
|
411
|
-
// | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
|
|
412
|
-
// | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
|
|
413
|
-
// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
|
|
414
|
-
// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
|
|
415
|
-
priority: 130,
|
|
416
|
-
parse: function (string, token, match, _options) {
|
|
417
|
-
var valueCallback = function (year) {
|
|
418
|
-
return {
|
|
419
|
-
year: year,
|
|
420
|
-
isTwoDigitYear: token === 'yy'
|
|
421
|
-
};
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
switch (token) {
|
|
425
|
-
case 'y':
|
|
426
|
-
return parseNDigits(4, string, valueCallback);
|
|
427
|
-
|
|
428
|
-
case 'yo':
|
|
429
|
-
return match.ordinalNumber(string, {
|
|
430
|
-
unit: 'year',
|
|
431
|
-
valueCallback: valueCallback
|
|
432
|
-
});
|
|
433
|
-
|
|
434
|
-
default:
|
|
435
|
-
return parseNDigits(token.length, string, valueCallback);
|
|
436
|
-
}
|
|
437
|
-
},
|
|
438
|
-
validate: function (_date, value, _options) {
|
|
439
|
-
return value.isTwoDigitYear || value.year > 0;
|
|
440
|
-
},
|
|
441
|
-
set: function (date, flags, value, _options) {
|
|
442
|
-
var currentYear = date.getUTCFullYear();
|
|
443
|
-
|
|
444
|
-
if (value.isTwoDigitYear) {
|
|
445
|
-
var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
|
|
446
|
-
date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);
|
|
447
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
448
|
-
return date;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
|
|
452
|
-
date.setUTCFullYear(year, 0, 1);
|
|
453
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
454
|
-
return date;
|
|
455
|
-
},
|
|
456
|
-
incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']
|
|
457
|
-
},
|
|
458
|
-
// Local week-numbering year
|
|
459
|
-
Y: {
|
|
460
|
-
priority: 130,
|
|
461
|
-
parse: function (string, token, match, _options) {
|
|
462
|
-
var valueCallback = function (year) {
|
|
463
|
-
return {
|
|
464
|
-
year: year,
|
|
465
|
-
isTwoDigitYear: token === 'YY'
|
|
466
|
-
};
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
switch (token) {
|
|
470
|
-
case 'Y':
|
|
471
|
-
return parseNDigits(4, string, valueCallback);
|
|
472
|
-
|
|
473
|
-
case 'Yo':
|
|
474
|
-
return match.ordinalNumber(string, {
|
|
475
|
-
unit: 'year',
|
|
476
|
-
valueCallback: valueCallback
|
|
477
|
-
});
|
|
478
|
-
|
|
479
|
-
default:
|
|
480
|
-
return parseNDigits(token.length, string, valueCallback);
|
|
481
|
-
}
|
|
482
|
-
},
|
|
483
|
-
validate: function (_date, value, _options) {
|
|
484
|
-
return value.isTwoDigitYear || value.year > 0;
|
|
485
|
-
},
|
|
486
|
-
set: function (date, flags, value, options) {
|
|
487
|
-
var currentYear = index$1.getUTCWeekYear(date, options);
|
|
488
|
-
|
|
489
|
-
if (value.isTwoDigitYear) {
|
|
490
|
-
var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
|
|
491
|
-
date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
|
|
492
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
493
|
-
return index$1.startOfUTCWeek(date, options);
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
|
|
497
|
-
date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
|
|
498
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
499
|
-
return index$1.startOfUTCWeek(date, options);
|
|
500
|
-
},
|
|
501
|
-
incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
|
|
502
|
-
},
|
|
503
|
-
// ISO week-numbering year
|
|
504
|
-
R: {
|
|
505
|
-
priority: 130,
|
|
506
|
-
parse: function (string, token, _match, _options) {
|
|
507
|
-
if (token === 'R') {
|
|
508
|
-
return parseNDigitsSigned(4, string);
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
return parseNDigitsSigned(token.length, string);
|
|
512
|
-
},
|
|
513
|
-
set: function (_date, _flags, value, _options) {
|
|
514
|
-
var firstWeekOfYear = new Date(0);
|
|
515
|
-
firstWeekOfYear.setUTCFullYear(value, 0, 4);
|
|
516
|
-
firstWeekOfYear.setUTCHours(0, 0, 0, 0);
|
|
517
|
-
return index$1.startOfUTCISOWeek(firstWeekOfYear);
|
|
518
|
-
},
|
|
519
|
-
incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
|
|
520
|
-
},
|
|
521
|
-
// Extended year
|
|
522
|
-
u: {
|
|
523
|
-
priority: 130,
|
|
524
|
-
parse: function (string, token, _match, _options) {
|
|
525
|
-
if (token === 'u') {
|
|
526
|
-
return parseNDigitsSigned(4, string);
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
return parseNDigitsSigned(token.length, string);
|
|
530
|
-
},
|
|
531
|
-
set: function (date, _flags, value, _options) {
|
|
532
|
-
date.setUTCFullYear(value, 0, 1);
|
|
533
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
534
|
-
return date;
|
|
535
|
-
},
|
|
536
|
-
incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']
|
|
537
|
-
},
|
|
538
|
-
// Quarter
|
|
539
|
-
Q: {
|
|
540
|
-
priority: 120,
|
|
541
|
-
parse: function (string, token, match, _options) {
|
|
542
|
-
switch (token) {
|
|
543
|
-
// 1, 2, 3, 4
|
|
544
|
-
case 'Q':
|
|
545
|
-
case 'QQ':
|
|
546
|
-
// 01, 02, 03, 04
|
|
547
|
-
return parseNDigits(token.length, string);
|
|
548
|
-
// 1st, 2nd, 3rd, 4th
|
|
549
|
-
|
|
550
|
-
case 'Qo':
|
|
551
|
-
return match.ordinalNumber(string, {
|
|
552
|
-
unit: 'quarter'
|
|
553
|
-
});
|
|
554
|
-
// Q1, Q2, Q3, Q4
|
|
555
|
-
|
|
556
|
-
case 'QQQ':
|
|
557
|
-
return match.quarter(string, {
|
|
558
|
-
width: 'abbreviated',
|
|
559
|
-
context: 'formatting'
|
|
560
|
-
}) || match.quarter(string, {
|
|
561
|
-
width: 'narrow',
|
|
562
|
-
context: 'formatting'
|
|
563
|
-
});
|
|
564
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
565
|
-
|
|
566
|
-
case 'QQQQQ':
|
|
567
|
-
return match.quarter(string, {
|
|
568
|
-
width: 'narrow',
|
|
569
|
-
context: 'formatting'
|
|
570
|
-
});
|
|
571
|
-
// 1st quarter, 2nd quarter, ...
|
|
572
|
-
|
|
573
|
-
case 'QQQQ':
|
|
574
|
-
default:
|
|
575
|
-
return match.quarter(string, {
|
|
576
|
-
width: 'wide',
|
|
577
|
-
context: 'formatting'
|
|
578
|
-
}) || match.quarter(string, {
|
|
579
|
-
width: 'abbreviated',
|
|
580
|
-
context: 'formatting'
|
|
581
|
-
}) || match.quarter(string, {
|
|
582
|
-
width: 'narrow',
|
|
583
|
-
context: 'formatting'
|
|
584
|
-
});
|
|
585
|
-
}
|
|
586
|
-
},
|
|
587
|
-
validate: function (_date, value, _options) {
|
|
588
|
-
return value >= 1 && value <= 4;
|
|
589
|
-
},
|
|
590
|
-
set: function (date, _flags, value, _options) {
|
|
591
|
-
date.setUTCMonth((value - 1) * 3, 1);
|
|
592
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
593
|
-
return date;
|
|
594
|
-
},
|
|
595
|
-
incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
|
|
596
|
-
},
|
|
597
|
-
// Stand-alone quarter
|
|
598
|
-
q: {
|
|
599
|
-
priority: 120,
|
|
600
|
-
parse: function (string, token, match, _options) {
|
|
601
|
-
switch (token) {
|
|
602
|
-
// 1, 2, 3, 4
|
|
603
|
-
case 'q':
|
|
604
|
-
case 'qq':
|
|
605
|
-
// 01, 02, 03, 04
|
|
606
|
-
return parseNDigits(token.length, string);
|
|
607
|
-
// 1st, 2nd, 3rd, 4th
|
|
608
|
-
|
|
609
|
-
case 'qo':
|
|
610
|
-
return match.ordinalNumber(string, {
|
|
611
|
-
unit: 'quarter'
|
|
612
|
-
});
|
|
613
|
-
// Q1, Q2, Q3, Q4
|
|
614
|
-
|
|
615
|
-
case 'qqq':
|
|
616
|
-
return match.quarter(string, {
|
|
617
|
-
width: 'abbreviated',
|
|
618
|
-
context: 'standalone'
|
|
619
|
-
}) || match.quarter(string, {
|
|
620
|
-
width: 'narrow',
|
|
621
|
-
context: 'standalone'
|
|
622
|
-
});
|
|
623
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
624
|
-
|
|
625
|
-
case 'qqqqq':
|
|
626
|
-
return match.quarter(string, {
|
|
627
|
-
width: 'narrow',
|
|
628
|
-
context: 'standalone'
|
|
629
|
-
});
|
|
630
|
-
// 1st quarter, 2nd quarter, ...
|
|
631
|
-
|
|
632
|
-
case 'qqqq':
|
|
633
|
-
default:
|
|
634
|
-
return match.quarter(string, {
|
|
635
|
-
width: 'wide',
|
|
636
|
-
context: 'standalone'
|
|
637
|
-
}) || match.quarter(string, {
|
|
638
|
-
width: 'abbreviated',
|
|
639
|
-
context: 'standalone'
|
|
640
|
-
}) || match.quarter(string, {
|
|
641
|
-
width: 'narrow',
|
|
642
|
-
context: 'standalone'
|
|
643
|
-
});
|
|
644
|
-
}
|
|
645
|
-
},
|
|
646
|
-
validate: function (_date, value, _options) {
|
|
647
|
-
return value >= 1 && value <= 4;
|
|
648
|
-
},
|
|
649
|
-
set: function (date, _flags, value, _options) {
|
|
650
|
-
date.setUTCMonth((value - 1) * 3, 1);
|
|
651
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
652
|
-
return date;
|
|
653
|
-
},
|
|
654
|
-
incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
|
|
655
|
-
},
|
|
656
|
-
// Month
|
|
657
|
-
M: {
|
|
658
|
-
priority: 110,
|
|
659
|
-
parse: function (string, token, match, _options) {
|
|
660
|
-
var valueCallback = function (value) {
|
|
661
|
-
return value - 1;
|
|
662
|
-
};
|
|
663
|
-
|
|
664
|
-
switch (token) {
|
|
665
|
-
// 1, 2, ..., 12
|
|
666
|
-
case 'M':
|
|
667
|
-
return parseNumericPattern(numericPatterns.month, string, valueCallback);
|
|
668
|
-
// 01, 02, ..., 12
|
|
669
|
-
|
|
670
|
-
case 'MM':
|
|
671
|
-
return parseNDigits(2, string, valueCallback);
|
|
672
|
-
// 1st, 2nd, ..., 12th
|
|
673
|
-
|
|
674
|
-
case 'Mo':
|
|
675
|
-
return match.ordinalNumber(string, {
|
|
676
|
-
unit: 'month',
|
|
677
|
-
valueCallback: valueCallback
|
|
678
|
-
});
|
|
679
|
-
// Jan, Feb, ..., Dec
|
|
680
|
-
|
|
681
|
-
case 'MMM':
|
|
682
|
-
return match.month(string, {
|
|
683
|
-
width: 'abbreviated',
|
|
684
|
-
context: 'formatting'
|
|
685
|
-
}) || match.month(string, {
|
|
686
|
-
width: 'narrow',
|
|
687
|
-
context: 'formatting'
|
|
688
|
-
});
|
|
689
|
-
// J, F, ..., D
|
|
690
|
-
|
|
691
|
-
case 'MMMMM':
|
|
692
|
-
return match.month(string, {
|
|
693
|
-
width: 'narrow',
|
|
694
|
-
context: 'formatting'
|
|
695
|
-
});
|
|
696
|
-
// January, February, ..., December
|
|
697
|
-
|
|
698
|
-
case 'MMMM':
|
|
699
|
-
default:
|
|
700
|
-
return match.month(string, {
|
|
701
|
-
width: 'wide',
|
|
702
|
-
context: 'formatting'
|
|
703
|
-
}) || match.month(string, {
|
|
704
|
-
width: 'abbreviated',
|
|
705
|
-
context: 'formatting'
|
|
706
|
-
}) || match.month(string, {
|
|
707
|
-
width: 'narrow',
|
|
708
|
-
context: 'formatting'
|
|
709
|
-
});
|
|
710
|
-
}
|
|
711
|
-
},
|
|
712
|
-
validate: function (_date, value, _options) {
|
|
713
|
-
return value >= 0 && value <= 11;
|
|
714
|
-
},
|
|
715
|
-
set: function (date, _flags, value, _options) {
|
|
716
|
-
date.setUTCMonth(value, 1);
|
|
717
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
718
|
-
return date;
|
|
719
|
-
},
|
|
720
|
-
incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
|
|
721
|
-
},
|
|
722
|
-
// Stand-alone month
|
|
723
|
-
L: {
|
|
724
|
-
priority: 110,
|
|
725
|
-
parse: function (string, token, match, _options) {
|
|
726
|
-
var valueCallback = function (value) {
|
|
727
|
-
return value - 1;
|
|
728
|
-
};
|
|
729
|
-
|
|
730
|
-
switch (token) {
|
|
731
|
-
// 1, 2, ..., 12
|
|
732
|
-
case 'L':
|
|
733
|
-
return parseNumericPattern(numericPatterns.month, string, valueCallback);
|
|
734
|
-
// 01, 02, ..., 12
|
|
735
|
-
|
|
736
|
-
case 'LL':
|
|
737
|
-
return parseNDigits(2, string, valueCallback);
|
|
738
|
-
// 1st, 2nd, ..., 12th
|
|
739
|
-
|
|
740
|
-
case 'Lo':
|
|
741
|
-
return match.ordinalNumber(string, {
|
|
742
|
-
unit: 'month',
|
|
743
|
-
valueCallback: valueCallback
|
|
744
|
-
});
|
|
745
|
-
// Jan, Feb, ..., Dec
|
|
746
|
-
|
|
747
|
-
case 'LLL':
|
|
748
|
-
return match.month(string, {
|
|
749
|
-
width: 'abbreviated',
|
|
750
|
-
context: 'standalone'
|
|
751
|
-
}) || match.month(string, {
|
|
752
|
-
width: 'narrow',
|
|
753
|
-
context: 'standalone'
|
|
754
|
-
});
|
|
755
|
-
// J, F, ..., D
|
|
756
|
-
|
|
757
|
-
case 'LLLLL':
|
|
758
|
-
return match.month(string, {
|
|
759
|
-
width: 'narrow',
|
|
760
|
-
context: 'standalone'
|
|
761
|
-
});
|
|
762
|
-
// January, February, ..., December
|
|
763
|
-
|
|
764
|
-
case 'LLLL':
|
|
765
|
-
default:
|
|
766
|
-
return match.month(string, {
|
|
767
|
-
width: 'wide',
|
|
768
|
-
context: 'standalone'
|
|
769
|
-
}) || match.month(string, {
|
|
770
|
-
width: 'abbreviated',
|
|
771
|
-
context: 'standalone'
|
|
772
|
-
}) || match.month(string, {
|
|
773
|
-
width: 'narrow',
|
|
774
|
-
context: 'standalone'
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
},
|
|
778
|
-
validate: function (_date, value, _options) {
|
|
779
|
-
return value >= 0 && value <= 11;
|
|
780
|
-
},
|
|
781
|
-
set: function (date, _flags, value, _options) {
|
|
782
|
-
date.setUTCMonth(value, 1);
|
|
783
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
784
|
-
return date;
|
|
785
|
-
},
|
|
786
|
-
incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
|
|
787
|
-
},
|
|
788
|
-
// Local week of year
|
|
789
|
-
w: {
|
|
790
|
-
priority: 100,
|
|
791
|
-
parse: function (string, token, match, _options) {
|
|
792
|
-
switch (token) {
|
|
793
|
-
case 'w':
|
|
794
|
-
return parseNumericPattern(numericPatterns.week, string);
|
|
795
|
-
|
|
796
|
-
case 'wo':
|
|
797
|
-
return match.ordinalNumber(string, {
|
|
798
|
-
unit: 'week'
|
|
799
|
-
});
|
|
800
|
-
|
|
801
|
-
default:
|
|
802
|
-
return parseNDigits(token.length, string);
|
|
803
|
-
}
|
|
804
|
-
},
|
|
805
|
-
validate: function (_date, value, _options) {
|
|
806
|
-
return value >= 1 && value <= 53;
|
|
807
|
-
},
|
|
808
|
-
set: function (date, _flags, value, options) {
|
|
809
|
-
return index$1.startOfUTCWeek(setUTCWeek(date, value, options), options);
|
|
810
|
-
},
|
|
811
|
-
incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
|
|
812
|
-
},
|
|
813
|
-
// ISO week of year
|
|
814
|
-
I: {
|
|
815
|
-
priority: 100,
|
|
816
|
-
parse: function (string, token, match, _options) {
|
|
817
|
-
switch (token) {
|
|
818
|
-
case 'I':
|
|
819
|
-
return parseNumericPattern(numericPatterns.week, string);
|
|
820
|
-
|
|
821
|
-
case 'Io':
|
|
822
|
-
return match.ordinalNumber(string, {
|
|
823
|
-
unit: 'week'
|
|
824
|
-
});
|
|
825
|
-
|
|
826
|
-
default:
|
|
827
|
-
return parseNDigits(token.length, string);
|
|
828
|
-
}
|
|
829
|
-
},
|
|
830
|
-
validate: function (_date, value, _options) {
|
|
831
|
-
return value >= 1 && value <= 53;
|
|
832
|
-
},
|
|
833
|
-
set: function (date, _flags, value, options) {
|
|
834
|
-
return index$1.startOfUTCISOWeek(setUTCISOWeek(date, value, options), options);
|
|
835
|
-
},
|
|
836
|
-
incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
|
|
837
|
-
},
|
|
838
|
-
// Day of the month
|
|
839
|
-
d: {
|
|
840
|
-
priority: 90,
|
|
841
|
-
subPriority: 1,
|
|
842
|
-
parse: function (string, token, match, _options) {
|
|
843
|
-
switch (token) {
|
|
844
|
-
case 'd':
|
|
845
|
-
return parseNumericPattern(numericPatterns.date, string);
|
|
846
|
-
|
|
847
|
-
case 'do':
|
|
848
|
-
return match.ordinalNumber(string, {
|
|
849
|
-
unit: 'date'
|
|
850
|
-
});
|
|
851
|
-
|
|
852
|
-
default:
|
|
853
|
-
return parseNDigits(token.length, string);
|
|
854
|
-
}
|
|
855
|
-
},
|
|
856
|
-
validate: function (date, value, _options) {
|
|
857
|
-
var year = date.getUTCFullYear();
|
|
858
|
-
var isLeapYear = isLeapYearIndex(year);
|
|
859
|
-
var month = date.getUTCMonth();
|
|
860
|
-
|
|
861
|
-
if (isLeapYear) {
|
|
862
|
-
return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
|
|
863
|
-
} else {
|
|
864
|
-
return value >= 1 && value <= DAYS_IN_MONTH[month];
|
|
865
|
-
}
|
|
866
|
-
},
|
|
867
|
-
set: function (date, _flags, value, _options) {
|
|
868
|
-
date.setUTCDate(value);
|
|
869
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
870
|
-
return date;
|
|
871
|
-
},
|
|
872
|
-
incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
|
|
873
|
-
},
|
|
874
|
-
// Day of year
|
|
875
|
-
D: {
|
|
876
|
-
priority: 90,
|
|
877
|
-
subPriority: 1,
|
|
878
|
-
parse: function (string, token, match, _options) {
|
|
879
|
-
switch (token) {
|
|
880
|
-
case 'D':
|
|
881
|
-
case 'DD':
|
|
882
|
-
return parseNumericPattern(numericPatterns.dayOfYear, string);
|
|
883
|
-
|
|
884
|
-
case 'Do':
|
|
885
|
-
return match.ordinalNumber(string, {
|
|
886
|
-
unit: 'date'
|
|
887
|
-
});
|
|
888
|
-
|
|
889
|
-
default:
|
|
890
|
-
return parseNDigits(token.length, string);
|
|
891
|
-
}
|
|
892
|
-
},
|
|
893
|
-
validate: function (date, value, _options) {
|
|
894
|
-
var year = date.getUTCFullYear();
|
|
895
|
-
var isLeapYear = isLeapYearIndex(year);
|
|
896
|
-
|
|
897
|
-
if (isLeapYear) {
|
|
898
|
-
return value >= 1 && value <= 366;
|
|
899
|
-
} else {
|
|
900
|
-
return value >= 1 && value <= 365;
|
|
901
|
-
}
|
|
902
|
-
},
|
|
903
|
-
set: function (date, _flags, value, _options) {
|
|
904
|
-
date.setUTCMonth(0, value);
|
|
905
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
906
|
-
return date;
|
|
907
|
-
},
|
|
908
|
-
incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']
|
|
909
|
-
},
|
|
910
|
-
// Day of week
|
|
911
|
-
E: {
|
|
912
|
-
priority: 90,
|
|
913
|
-
parse: function (string, token, match, _options) {
|
|
914
|
-
switch (token) {
|
|
915
|
-
// Tue
|
|
916
|
-
case 'E':
|
|
917
|
-
case 'EE':
|
|
918
|
-
case 'EEE':
|
|
919
|
-
return match.day(string, {
|
|
920
|
-
width: 'abbreviated',
|
|
921
|
-
context: 'formatting'
|
|
922
|
-
}) || match.day(string, {
|
|
923
|
-
width: 'short',
|
|
924
|
-
context: 'formatting'
|
|
925
|
-
}) || match.day(string, {
|
|
926
|
-
width: 'narrow',
|
|
927
|
-
context: 'formatting'
|
|
928
|
-
});
|
|
929
|
-
// T
|
|
930
|
-
|
|
931
|
-
case 'EEEEE':
|
|
932
|
-
return match.day(string, {
|
|
933
|
-
width: 'narrow',
|
|
934
|
-
context: 'formatting'
|
|
935
|
-
});
|
|
936
|
-
// Tu
|
|
937
|
-
|
|
938
|
-
case 'EEEEEE':
|
|
939
|
-
return match.day(string, {
|
|
940
|
-
width: 'short',
|
|
941
|
-
context: 'formatting'
|
|
942
|
-
}) || match.day(string, {
|
|
943
|
-
width: 'narrow',
|
|
944
|
-
context: 'formatting'
|
|
945
|
-
});
|
|
946
|
-
// Tuesday
|
|
947
|
-
|
|
948
|
-
case 'EEEE':
|
|
949
|
-
default:
|
|
950
|
-
return match.day(string, {
|
|
951
|
-
width: 'wide',
|
|
952
|
-
context: 'formatting'
|
|
953
|
-
}) || match.day(string, {
|
|
954
|
-
width: 'abbreviated',
|
|
955
|
-
context: 'formatting'
|
|
956
|
-
}) || match.day(string, {
|
|
957
|
-
width: 'short',
|
|
958
|
-
context: 'formatting'
|
|
959
|
-
}) || match.day(string, {
|
|
960
|
-
width: 'narrow',
|
|
961
|
-
context: 'formatting'
|
|
962
|
-
});
|
|
963
|
-
}
|
|
964
|
-
},
|
|
965
|
-
validate: function (_date, value, _options) {
|
|
966
|
-
return value >= 0 && value <= 6;
|
|
967
|
-
},
|
|
968
|
-
set: function (date, _flags, value, options) {
|
|
969
|
-
date = setUTCDay(date, value, options);
|
|
970
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
971
|
-
return date;
|
|
972
|
-
},
|
|
973
|
-
incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T']
|
|
974
|
-
},
|
|
975
|
-
// Local day of week
|
|
976
|
-
e: {
|
|
977
|
-
priority: 90,
|
|
978
|
-
parse: function (string, token, match, options) {
|
|
979
|
-
var valueCallback = function (value) {
|
|
980
|
-
var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
|
|
981
|
-
return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
|
|
982
|
-
};
|
|
983
|
-
|
|
984
|
-
switch (token) {
|
|
985
|
-
// 3
|
|
986
|
-
case 'e':
|
|
987
|
-
case 'ee':
|
|
988
|
-
// 03
|
|
989
|
-
return parseNDigits(token.length, string, valueCallback);
|
|
990
|
-
// 3rd
|
|
991
|
-
|
|
992
|
-
case 'eo':
|
|
993
|
-
return match.ordinalNumber(string, {
|
|
994
|
-
unit: 'day',
|
|
995
|
-
valueCallback: valueCallback
|
|
996
|
-
});
|
|
997
|
-
// Tue
|
|
998
|
-
|
|
999
|
-
case 'eee':
|
|
1000
|
-
return match.day(string, {
|
|
1001
|
-
width: 'abbreviated',
|
|
1002
|
-
context: 'formatting'
|
|
1003
|
-
}) || match.day(string, {
|
|
1004
|
-
width: 'short',
|
|
1005
|
-
context: 'formatting'
|
|
1006
|
-
}) || match.day(string, {
|
|
1007
|
-
width: 'narrow',
|
|
1008
|
-
context: 'formatting'
|
|
1009
|
-
});
|
|
1010
|
-
// T
|
|
1011
|
-
|
|
1012
|
-
case 'eeeee':
|
|
1013
|
-
return match.day(string, {
|
|
1014
|
-
width: 'narrow',
|
|
1015
|
-
context: 'formatting'
|
|
1016
|
-
});
|
|
1017
|
-
// Tu
|
|
1018
|
-
|
|
1019
|
-
case 'eeeeee':
|
|
1020
|
-
return match.day(string, {
|
|
1021
|
-
width: 'short',
|
|
1022
|
-
context: 'formatting'
|
|
1023
|
-
}) || match.day(string, {
|
|
1024
|
-
width: 'narrow',
|
|
1025
|
-
context: 'formatting'
|
|
1026
|
-
});
|
|
1027
|
-
// Tuesday
|
|
1028
|
-
|
|
1029
|
-
case 'eeee':
|
|
1030
|
-
default:
|
|
1031
|
-
return match.day(string, {
|
|
1032
|
-
width: 'wide',
|
|
1033
|
-
context: 'formatting'
|
|
1034
|
-
}) || match.day(string, {
|
|
1035
|
-
width: 'abbreviated',
|
|
1036
|
-
context: 'formatting'
|
|
1037
|
-
}) || match.day(string, {
|
|
1038
|
-
width: 'short',
|
|
1039
|
-
context: 'formatting'
|
|
1040
|
-
}) || match.day(string, {
|
|
1041
|
-
width: 'narrow',
|
|
1042
|
-
context: 'formatting'
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1045
|
-
},
|
|
1046
|
-
validate: function (_date, value, _options) {
|
|
1047
|
-
return value >= 0 && value <= 6;
|
|
1048
|
-
},
|
|
1049
|
-
set: function (date, _flags, value, options) {
|
|
1050
|
-
date = setUTCDay(date, value, options);
|
|
1051
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
1052
|
-
return date;
|
|
1053
|
-
},
|
|
1054
|
-
incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']
|
|
1055
|
-
},
|
|
1056
|
-
// Stand-alone local day of week
|
|
1057
|
-
c: {
|
|
1058
|
-
priority: 90,
|
|
1059
|
-
parse: function (string, token, match, options) {
|
|
1060
|
-
var valueCallback = function (value) {
|
|
1061
|
-
var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
|
|
1062
|
-
return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
|
|
1063
|
-
};
|
|
1064
|
-
|
|
1065
|
-
switch (token) {
|
|
1066
|
-
// 3
|
|
1067
|
-
case 'c':
|
|
1068
|
-
case 'cc':
|
|
1069
|
-
// 03
|
|
1070
|
-
return parseNDigits(token.length, string, valueCallback);
|
|
1071
|
-
// 3rd
|
|
1072
|
-
|
|
1073
|
-
case 'co':
|
|
1074
|
-
return match.ordinalNumber(string, {
|
|
1075
|
-
unit: 'day',
|
|
1076
|
-
valueCallback: valueCallback
|
|
1077
|
-
});
|
|
1078
|
-
// Tue
|
|
1079
|
-
|
|
1080
|
-
case 'ccc':
|
|
1081
|
-
return match.day(string, {
|
|
1082
|
-
width: 'abbreviated',
|
|
1083
|
-
context: 'standalone'
|
|
1084
|
-
}) || match.day(string, {
|
|
1085
|
-
width: 'short',
|
|
1086
|
-
context: 'standalone'
|
|
1087
|
-
}) || match.day(string, {
|
|
1088
|
-
width: 'narrow',
|
|
1089
|
-
context: 'standalone'
|
|
1090
|
-
});
|
|
1091
|
-
// T
|
|
1092
|
-
|
|
1093
|
-
case 'ccccc':
|
|
1094
|
-
return match.day(string, {
|
|
1095
|
-
width: 'narrow',
|
|
1096
|
-
context: 'standalone'
|
|
1097
|
-
});
|
|
1098
|
-
// Tu
|
|
1099
|
-
|
|
1100
|
-
case 'cccccc':
|
|
1101
|
-
return match.day(string, {
|
|
1102
|
-
width: 'short',
|
|
1103
|
-
context: 'standalone'
|
|
1104
|
-
}) || match.day(string, {
|
|
1105
|
-
width: 'narrow',
|
|
1106
|
-
context: 'standalone'
|
|
1107
|
-
});
|
|
1108
|
-
// Tuesday
|
|
1109
|
-
|
|
1110
|
-
case 'cccc':
|
|
1111
|
-
default:
|
|
1112
|
-
return match.day(string, {
|
|
1113
|
-
width: 'wide',
|
|
1114
|
-
context: 'standalone'
|
|
1115
|
-
}) || match.day(string, {
|
|
1116
|
-
width: 'abbreviated',
|
|
1117
|
-
context: 'standalone'
|
|
1118
|
-
}) || match.day(string, {
|
|
1119
|
-
width: 'short',
|
|
1120
|
-
context: 'standalone'
|
|
1121
|
-
}) || match.day(string, {
|
|
1122
|
-
width: 'narrow',
|
|
1123
|
-
context: 'standalone'
|
|
1124
|
-
});
|
|
1125
|
-
}
|
|
1126
|
-
},
|
|
1127
|
-
validate: function (_date, value, _options) {
|
|
1128
|
-
return value >= 0 && value <= 6;
|
|
1129
|
-
},
|
|
1130
|
-
set: function (date, _flags, value, options) {
|
|
1131
|
-
date = setUTCDay(date, value, options);
|
|
1132
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
1133
|
-
return date;
|
|
1134
|
-
},
|
|
1135
|
-
incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']
|
|
1136
|
-
},
|
|
1137
|
-
// ISO day of week
|
|
1138
|
-
i: {
|
|
1139
|
-
priority: 90,
|
|
1140
|
-
parse: function (string, token, match, _options) {
|
|
1141
|
-
var valueCallback = function (value) {
|
|
1142
|
-
if (value === 0) {
|
|
1143
|
-
return 7;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
return value;
|
|
1147
|
-
};
|
|
1148
|
-
|
|
1149
|
-
switch (token) {
|
|
1150
|
-
// 2
|
|
1151
|
-
case 'i':
|
|
1152
|
-
case 'ii':
|
|
1153
|
-
// 02
|
|
1154
|
-
return parseNDigits(token.length, string);
|
|
1155
|
-
// 2nd
|
|
1156
|
-
|
|
1157
|
-
case 'io':
|
|
1158
|
-
return match.ordinalNumber(string, {
|
|
1159
|
-
unit: 'day'
|
|
1160
|
-
});
|
|
1161
|
-
// Tue
|
|
1162
|
-
|
|
1163
|
-
case 'iii':
|
|
1164
|
-
return match.day(string, {
|
|
1165
|
-
width: 'abbreviated',
|
|
1166
|
-
context: 'formatting',
|
|
1167
|
-
valueCallback: valueCallback
|
|
1168
|
-
}) || match.day(string, {
|
|
1169
|
-
width: 'short',
|
|
1170
|
-
context: 'formatting',
|
|
1171
|
-
valueCallback: valueCallback
|
|
1172
|
-
}) || match.day(string, {
|
|
1173
|
-
width: 'narrow',
|
|
1174
|
-
context: 'formatting',
|
|
1175
|
-
valueCallback: valueCallback
|
|
1176
|
-
});
|
|
1177
|
-
// T
|
|
1178
|
-
|
|
1179
|
-
case 'iiiii':
|
|
1180
|
-
return match.day(string, {
|
|
1181
|
-
width: 'narrow',
|
|
1182
|
-
context: 'formatting',
|
|
1183
|
-
valueCallback: valueCallback
|
|
1184
|
-
});
|
|
1185
|
-
// Tu
|
|
1186
|
-
|
|
1187
|
-
case 'iiiiii':
|
|
1188
|
-
return match.day(string, {
|
|
1189
|
-
width: 'short',
|
|
1190
|
-
context: 'formatting',
|
|
1191
|
-
valueCallback: valueCallback
|
|
1192
|
-
}) || match.day(string, {
|
|
1193
|
-
width: 'narrow',
|
|
1194
|
-
context: 'formatting',
|
|
1195
|
-
valueCallback: valueCallback
|
|
1196
|
-
});
|
|
1197
|
-
// Tuesday
|
|
1198
|
-
|
|
1199
|
-
case 'iiii':
|
|
1200
|
-
default:
|
|
1201
|
-
return match.day(string, {
|
|
1202
|
-
width: 'wide',
|
|
1203
|
-
context: 'formatting',
|
|
1204
|
-
valueCallback: valueCallback
|
|
1205
|
-
}) || match.day(string, {
|
|
1206
|
-
width: 'abbreviated',
|
|
1207
|
-
context: 'formatting',
|
|
1208
|
-
valueCallback: valueCallback
|
|
1209
|
-
}) || match.day(string, {
|
|
1210
|
-
width: 'short',
|
|
1211
|
-
context: 'formatting',
|
|
1212
|
-
valueCallback: valueCallback
|
|
1213
|
-
}) || match.day(string, {
|
|
1214
|
-
width: 'narrow',
|
|
1215
|
-
context: 'formatting',
|
|
1216
|
-
valueCallback: valueCallback
|
|
1217
|
-
});
|
|
1218
|
-
}
|
|
1219
|
-
},
|
|
1220
|
-
validate: function (_date, value, _options) {
|
|
1221
|
-
return value >= 1 && value <= 7;
|
|
1222
|
-
},
|
|
1223
|
-
set: function (date, _flags, value, options) {
|
|
1224
|
-
date = setUTCISODay(date, value, options);
|
|
1225
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
1226
|
-
return date;
|
|
1227
|
-
},
|
|
1228
|
-
incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']
|
|
1229
|
-
},
|
|
1230
|
-
// AM or PM
|
|
1231
|
-
a: {
|
|
1232
|
-
priority: 80,
|
|
1233
|
-
parse: function (string, token, match, _options) {
|
|
1234
|
-
switch (token) {
|
|
1235
|
-
case 'a':
|
|
1236
|
-
case 'aa':
|
|
1237
|
-
case 'aaa':
|
|
1238
|
-
return match.dayPeriod(string, {
|
|
1239
|
-
width: 'abbreviated',
|
|
1240
|
-
context: 'formatting'
|
|
1241
|
-
}) || match.dayPeriod(string, {
|
|
1242
|
-
width: 'narrow',
|
|
1243
|
-
context: 'formatting'
|
|
1244
|
-
});
|
|
1245
|
-
|
|
1246
|
-
case 'aaaaa':
|
|
1247
|
-
return match.dayPeriod(string, {
|
|
1248
|
-
width: 'narrow',
|
|
1249
|
-
context: 'formatting'
|
|
1250
|
-
});
|
|
1251
|
-
|
|
1252
|
-
case 'aaaa':
|
|
1253
|
-
default:
|
|
1254
|
-
return match.dayPeriod(string, {
|
|
1255
|
-
width: 'wide',
|
|
1256
|
-
context: 'formatting'
|
|
1257
|
-
}) || match.dayPeriod(string, {
|
|
1258
|
-
width: 'abbreviated',
|
|
1259
|
-
context: 'formatting'
|
|
1260
|
-
}) || match.dayPeriod(string, {
|
|
1261
|
-
width: 'narrow',
|
|
1262
|
-
context: 'formatting'
|
|
1263
|
-
});
|
|
1264
|
-
}
|
|
1265
|
-
},
|
|
1266
|
-
set: function (date, _flags, value, _options) {
|
|
1267
|
-
date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
|
|
1268
|
-
return date;
|
|
1269
|
-
},
|
|
1270
|
-
incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']
|
|
1271
|
-
},
|
|
1272
|
-
// AM, PM, midnight
|
|
1273
|
-
b: {
|
|
1274
|
-
priority: 80,
|
|
1275
|
-
parse: function (string, token, match, _options) {
|
|
1276
|
-
switch (token) {
|
|
1277
|
-
case 'b':
|
|
1278
|
-
case 'bb':
|
|
1279
|
-
case 'bbb':
|
|
1280
|
-
return match.dayPeriod(string, {
|
|
1281
|
-
width: 'abbreviated',
|
|
1282
|
-
context: 'formatting'
|
|
1283
|
-
}) || match.dayPeriod(string, {
|
|
1284
|
-
width: 'narrow',
|
|
1285
|
-
context: 'formatting'
|
|
1286
|
-
});
|
|
1287
|
-
|
|
1288
|
-
case 'bbbbb':
|
|
1289
|
-
return match.dayPeriod(string, {
|
|
1290
|
-
width: 'narrow',
|
|
1291
|
-
context: 'formatting'
|
|
1292
|
-
});
|
|
1293
|
-
|
|
1294
|
-
case 'bbbb':
|
|
1295
|
-
default:
|
|
1296
|
-
return match.dayPeriod(string, {
|
|
1297
|
-
width: 'wide',
|
|
1298
|
-
context: 'formatting'
|
|
1299
|
-
}) || match.dayPeriod(string, {
|
|
1300
|
-
width: 'abbreviated',
|
|
1301
|
-
context: 'formatting'
|
|
1302
|
-
}) || match.dayPeriod(string, {
|
|
1303
|
-
width: 'narrow',
|
|
1304
|
-
context: 'formatting'
|
|
1305
|
-
});
|
|
1306
|
-
}
|
|
1307
|
-
},
|
|
1308
|
-
set: function (date, _flags, value, _options) {
|
|
1309
|
-
date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
|
|
1310
|
-
return date;
|
|
1311
|
-
},
|
|
1312
|
-
incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']
|
|
1313
|
-
},
|
|
1314
|
-
// in the morning, in the afternoon, in the evening, at night
|
|
1315
|
-
B: {
|
|
1316
|
-
priority: 80,
|
|
1317
|
-
parse: function (string, token, match, _options) {
|
|
1318
|
-
switch (token) {
|
|
1319
|
-
case 'B':
|
|
1320
|
-
case 'BB':
|
|
1321
|
-
case 'BBB':
|
|
1322
|
-
return match.dayPeriod(string, {
|
|
1323
|
-
width: 'abbreviated',
|
|
1324
|
-
context: 'formatting'
|
|
1325
|
-
}) || match.dayPeriod(string, {
|
|
1326
|
-
width: 'narrow',
|
|
1327
|
-
context: 'formatting'
|
|
1328
|
-
});
|
|
1329
|
-
|
|
1330
|
-
case 'BBBBB':
|
|
1331
|
-
return match.dayPeriod(string, {
|
|
1332
|
-
width: 'narrow',
|
|
1333
|
-
context: 'formatting'
|
|
1334
|
-
});
|
|
1335
|
-
|
|
1336
|
-
case 'BBBB':
|
|
1337
|
-
default:
|
|
1338
|
-
return match.dayPeriod(string, {
|
|
1339
|
-
width: 'wide',
|
|
1340
|
-
context: 'formatting'
|
|
1341
|
-
}) || match.dayPeriod(string, {
|
|
1342
|
-
width: 'abbreviated',
|
|
1343
|
-
context: 'formatting'
|
|
1344
|
-
}) || match.dayPeriod(string, {
|
|
1345
|
-
width: 'narrow',
|
|
1346
|
-
context: 'formatting'
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
},
|
|
1350
|
-
set: function (date, _flags, value, _options) {
|
|
1351
|
-
date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
|
|
1352
|
-
return date;
|
|
1353
|
-
},
|
|
1354
|
-
incompatibleTokens: ['a', 'b', 't', 'T']
|
|
1355
|
-
},
|
|
1356
|
-
// Hour [1-12]
|
|
1357
|
-
h: {
|
|
1358
|
-
priority: 70,
|
|
1359
|
-
parse: function (string, token, match, _options) {
|
|
1360
|
-
switch (token) {
|
|
1361
|
-
case 'h':
|
|
1362
|
-
return parseNumericPattern(numericPatterns.hour12h, string);
|
|
1363
|
-
|
|
1364
|
-
case 'ho':
|
|
1365
|
-
return match.ordinalNumber(string, {
|
|
1366
|
-
unit: 'hour'
|
|
1367
|
-
});
|
|
1368
|
-
|
|
1369
|
-
default:
|
|
1370
|
-
return parseNDigits(token.length, string);
|
|
1371
|
-
}
|
|
1372
|
-
},
|
|
1373
|
-
validate: function (_date, value, _options) {
|
|
1374
|
-
return value >= 1 && value <= 12;
|
|
1375
|
-
},
|
|
1376
|
-
set: function (date, _flags, value, _options) {
|
|
1377
|
-
var isPM = date.getUTCHours() >= 12;
|
|
1378
|
-
|
|
1379
|
-
if (isPM && value < 12) {
|
|
1380
|
-
date.setUTCHours(value + 12, 0, 0, 0);
|
|
1381
|
-
} else if (!isPM && value === 12) {
|
|
1382
|
-
date.setUTCHours(0, 0, 0, 0);
|
|
1383
|
-
} else {
|
|
1384
|
-
date.setUTCHours(value, 0, 0, 0);
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
return date;
|
|
1388
|
-
},
|
|
1389
|
-
incompatibleTokens: ['H', 'K', 'k', 't', 'T']
|
|
1390
|
-
},
|
|
1391
|
-
// Hour [0-23]
|
|
1392
|
-
H: {
|
|
1393
|
-
priority: 70,
|
|
1394
|
-
parse: function (string, token, match, _options) {
|
|
1395
|
-
switch (token) {
|
|
1396
|
-
case 'H':
|
|
1397
|
-
return parseNumericPattern(numericPatterns.hour23h, string);
|
|
1398
|
-
|
|
1399
|
-
case 'Ho':
|
|
1400
|
-
return match.ordinalNumber(string, {
|
|
1401
|
-
unit: 'hour'
|
|
1402
|
-
});
|
|
1403
|
-
|
|
1404
|
-
default:
|
|
1405
|
-
return parseNDigits(token.length, string);
|
|
1406
|
-
}
|
|
1407
|
-
},
|
|
1408
|
-
validate: function (_date, value, _options) {
|
|
1409
|
-
return value >= 0 && value <= 23;
|
|
1410
|
-
},
|
|
1411
|
-
set: function (date, _flags, value, _options) {
|
|
1412
|
-
date.setUTCHours(value, 0, 0, 0);
|
|
1413
|
-
return date;
|
|
1414
|
-
},
|
|
1415
|
-
incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T']
|
|
1416
|
-
},
|
|
1417
|
-
// Hour [0-11]
|
|
1418
|
-
K: {
|
|
1419
|
-
priority: 70,
|
|
1420
|
-
parse: function (string, token, match, _options) {
|
|
1421
|
-
switch (token) {
|
|
1422
|
-
case 'K':
|
|
1423
|
-
return parseNumericPattern(numericPatterns.hour11h, string);
|
|
1424
|
-
|
|
1425
|
-
case 'Ko':
|
|
1426
|
-
return match.ordinalNumber(string, {
|
|
1427
|
-
unit: 'hour'
|
|
1428
|
-
});
|
|
1429
|
-
|
|
1430
|
-
default:
|
|
1431
|
-
return parseNDigits(token.length, string);
|
|
1432
|
-
}
|
|
1433
|
-
},
|
|
1434
|
-
validate: function (_date, value, _options) {
|
|
1435
|
-
return value >= 0 && value <= 11;
|
|
1436
|
-
},
|
|
1437
|
-
set: function (date, _flags, value, _options) {
|
|
1438
|
-
var isPM = date.getUTCHours() >= 12;
|
|
1439
|
-
|
|
1440
|
-
if (isPM && value < 12) {
|
|
1441
|
-
date.setUTCHours(value + 12, 0, 0, 0);
|
|
1442
|
-
} else {
|
|
1443
|
-
date.setUTCHours(value, 0, 0, 0);
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
return date;
|
|
1447
|
-
},
|
|
1448
|
-
incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']
|
|
1449
|
-
},
|
|
1450
|
-
// Hour [1-24]
|
|
1451
|
-
k: {
|
|
1452
|
-
priority: 70,
|
|
1453
|
-
parse: function (string, token, match, _options) {
|
|
1454
|
-
switch (token) {
|
|
1455
|
-
case 'k':
|
|
1456
|
-
return parseNumericPattern(numericPatterns.hour24h, string);
|
|
1457
|
-
|
|
1458
|
-
case 'ko':
|
|
1459
|
-
return match.ordinalNumber(string, {
|
|
1460
|
-
unit: 'hour'
|
|
1461
|
-
});
|
|
1462
|
-
|
|
1463
|
-
default:
|
|
1464
|
-
return parseNDigits(token.length, string);
|
|
1465
|
-
}
|
|
1466
|
-
},
|
|
1467
|
-
validate: function (_date, value, _options) {
|
|
1468
|
-
return value >= 1 && value <= 24;
|
|
1469
|
-
},
|
|
1470
|
-
set: function (date, _flags, value, _options) {
|
|
1471
|
-
var hours = value <= 24 ? value % 24 : value;
|
|
1472
|
-
date.setUTCHours(hours, 0, 0, 0);
|
|
1473
|
-
return date;
|
|
1474
|
-
},
|
|
1475
|
-
incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T']
|
|
1476
|
-
},
|
|
1477
|
-
// Minute
|
|
1478
|
-
m: {
|
|
1479
|
-
priority: 60,
|
|
1480
|
-
parse: function (string, token, match, _options) {
|
|
1481
|
-
switch (token) {
|
|
1482
|
-
case 'm':
|
|
1483
|
-
return parseNumericPattern(numericPatterns.minute, string);
|
|
1484
|
-
|
|
1485
|
-
case 'mo':
|
|
1486
|
-
return match.ordinalNumber(string, {
|
|
1487
|
-
unit: 'minute'
|
|
1488
|
-
});
|
|
1489
|
-
|
|
1490
|
-
default:
|
|
1491
|
-
return parseNDigits(token.length, string);
|
|
1492
|
-
}
|
|
1493
|
-
},
|
|
1494
|
-
validate: function (_date, value, _options) {
|
|
1495
|
-
return value >= 0 && value <= 59;
|
|
1496
|
-
},
|
|
1497
|
-
set: function (date, _flags, value, _options) {
|
|
1498
|
-
date.setUTCMinutes(value, 0, 0);
|
|
1499
|
-
return date;
|
|
1500
|
-
},
|
|
1501
|
-
incompatibleTokens: ['t', 'T']
|
|
1502
|
-
},
|
|
1503
|
-
// Second
|
|
1504
|
-
s: {
|
|
1505
|
-
priority: 50,
|
|
1506
|
-
parse: function (string, token, match, _options) {
|
|
1507
|
-
switch (token) {
|
|
1508
|
-
case 's':
|
|
1509
|
-
return parseNumericPattern(numericPatterns.second, string);
|
|
1510
|
-
|
|
1511
|
-
case 'so':
|
|
1512
|
-
return match.ordinalNumber(string, {
|
|
1513
|
-
unit: 'second'
|
|
1514
|
-
});
|
|
1515
|
-
|
|
1516
|
-
default:
|
|
1517
|
-
return parseNDigits(token.length, string);
|
|
1518
|
-
}
|
|
1519
|
-
},
|
|
1520
|
-
validate: function (_date, value, _options) {
|
|
1521
|
-
return value >= 0 && value <= 59;
|
|
1522
|
-
},
|
|
1523
|
-
set: function (date, _flags, value, _options) {
|
|
1524
|
-
date.setUTCSeconds(value, 0);
|
|
1525
|
-
return date;
|
|
1526
|
-
},
|
|
1527
|
-
incompatibleTokens: ['t', 'T']
|
|
1528
|
-
},
|
|
1529
|
-
// Fraction of second
|
|
1530
|
-
S: {
|
|
1531
|
-
priority: 30,
|
|
1532
|
-
parse: function (string, token, _match, _options) {
|
|
1533
|
-
var valueCallback = function (value) {
|
|
1534
|
-
return Math.floor(value * Math.pow(10, -token.length + 3));
|
|
1535
|
-
};
|
|
1536
|
-
|
|
1537
|
-
return parseNDigits(token.length, string, valueCallback);
|
|
1538
|
-
},
|
|
1539
|
-
set: function (date, _flags, value, _options) {
|
|
1540
|
-
date.setUTCMilliseconds(value);
|
|
1541
|
-
return date;
|
|
1542
|
-
},
|
|
1543
|
-
incompatibleTokens: ['t', 'T']
|
|
1544
|
-
},
|
|
1545
|
-
// Timezone (ISO-8601. +00:00 is `'Z'`)
|
|
1546
|
-
X: {
|
|
1547
|
-
priority: 10,
|
|
1548
|
-
parse: function (string, token, _match, _options) {
|
|
1549
|
-
switch (token) {
|
|
1550
|
-
case 'X':
|
|
1551
|
-
return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
|
|
1552
|
-
|
|
1553
|
-
case 'XX':
|
|
1554
|
-
return parseTimezonePattern(timezonePatterns.basic, string);
|
|
1555
|
-
|
|
1556
|
-
case 'XXXX':
|
|
1557
|
-
return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
|
|
1558
|
-
|
|
1559
|
-
case 'XXXXX':
|
|
1560
|
-
return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
|
|
1561
|
-
|
|
1562
|
-
case 'XXX':
|
|
1563
|
-
default:
|
|
1564
|
-
return parseTimezonePattern(timezonePatterns.extended, string);
|
|
1565
|
-
}
|
|
1566
|
-
},
|
|
1567
|
-
set: function (date, flags, value, _options) {
|
|
1568
|
-
if (flags.timestampIsSet) {
|
|
1569
|
-
return date;
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
return new Date(date.getTime() - value);
|
|
1573
|
-
},
|
|
1574
|
-
incompatibleTokens: ['t', 'T', 'x']
|
|
1575
|
-
},
|
|
1576
|
-
// Timezone (ISO-8601)
|
|
1577
|
-
x: {
|
|
1578
|
-
priority: 10,
|
|
1579
|
-
parse: function (string, token, _match, _options) {
|
|
1580
|
-
switch (token) {
|
|
1581
|
-
case 'x':
|
|
1582
|
-
return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);
|
|
1583
|
-
|
|
1584
|
-
case 'xx':
|
|
1585
|
-
return parseTimezonePattern(timezonePatterns.basic, string);
|
|
1586
|
-
|
|
1587
|
-
case 'xxxx':
|
|
1588
|
-
return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);
|
|
1589
|
-
|
|
1590
|
-
case 'xxxxx':
|
|
1591
|
-
return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);
|
|
1592
|
-
|
|
1593
|
-
case 'xxx':
|
|
1594
|
-
default:
|
|
1595
|
-
return parseTimezonePattern(timezonePatterns.extended, string);
|
|
1596
|
-
}
|
|
1597
|
-
},
|
|
1598
|
-
set: function (date, flags, value, _options) {
|
|
1599
|
-
if (flags.timestampIsSet) {
|
|
1600
|
-
return date;
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
return new Date(date.getTime() - value);
|
|
1604
|
-
},
|
|
1605
|
-
incompatibleTokens: ['t', 'T', 'X']
|
|
1606
|
-
},
|
|
1607
|
-
// Seconds timestamp
|
|
1608
|
-
t: {
|
|
1609
|
-
priority: 40,
|
|
1610
|
-
parse: function (string, _token, _match, _options) {
|
|
1611
|
-
return parseAnyDigitsSigned(string);
|
|
1612
|
-
},
|
|
1613
|
-
set: function (_date, _flags, value, _options) {
|
|
1614
|
-
return [new Date(value * 1000), {
|
|
1615
|
-
timestampIsSet: true
|
|
1616
|
-
}];
|
|
1617
|
-
},
|
|
1618
|
-
incompatibleTokens: '*'
|
|
1619
|
-
},
|
|
1620
|
-
// Milliseconds timestamp
|
|
1621
|
-
T: {
|
|
1622
|
-
priority: 20,
|
|
1623
|
-
parse: function (string, _token, _match, _options) {
|
|
1624
|
-
return parseAnyDigitsSigned(string);
|
|
1625
|
-
},
|
|
1626
|
-
set: function (_date, _flags, value, _options) {
|
|
1627
|
-
return [new Date(value), {
|
|
1628
|
-
timestampIsSet: true
|
|
1629
|
-
}];
|
|
1630
|
-
},
|
|
1631
|
-
incompatibleTokens: '*'
|
|
1632
|
-
}
|
|
1633
|
-
};
|
|
1634
|
-
const parsers$1 = parsers;
|
|
1635
|
-
|
|
1636
|
-
var TIMEZONE_UNIT_PRIORITY = 10; // This RegExp consists of three parts separated by `|`:
|
|
1637
|
-
// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
|
|
1638
|
-
// (one of the certain letters followed by `o`)
|
|
1639
|
-
// - (\w)\1* matches any sequences of the same letter
|
|
1640
|
-
// - '' matches two quote characters in a row
|
|
1641
|
-
// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
|
|
1642
|
-
// except a single quote symbol, which ends the sequence.
|
|
1643
|
-
// Two quote characters do not end the sequence.
|
|
1644
|
-
// If there is no matching single quote
|
|
1645
|
-
// then the sequence will continue until the end of the string.
|
|
1646
|
-
// - . matches any single character unmatched by previous parts of the RegExps
|
|
1647
|
-
|
|
1648
|
-
var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
|
|
1649
|
-
// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
|
|
1650
|
-
|
|
1651
|
-
var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
|
|
1652
|
-
var escapedStringRegExp = /^'([^]*?)'?$/;
|
|
1653
|
-
var doubleQuoteRegExp = /''/g;
|
|
1654
|
-
var notWhitespaceRegExp = /\S/;
|
|
1655
|
-
var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
1656
|
-
/**
|
|
1657
|
-
* @name parse
|
|
1658
|
-
* @category Common Helpers
|
|
1659
|
-
* @summary Parse the date.
|
|
1660
|
-
*
|
|
1661
|
-
* @description
|
|
1662
|
-
* Return the date parsed from string using the given format string.
|
|
1663
|
-
*
|
|
1664
|
-
* > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
|
|
1665
|
-
* > See: https://git.io/fxCyr
|
|
1666
|
-
*
|
|
1667
|
-
* The characters in the format string wrapped between two single quotes characters (') are escaped.
|
|
1668
|
-
* Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
|
|
1669
|
-
*
|
|
1670
|
-
* Format of the format string is based on Unicode Technical Standard #35:
|
|
1671
|
-
* https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
1672
|
-
* with a few additions (see note 5 below the table).
|
|
1673
|
-
*
|
|
1674
|
-
* Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited
|
|
1675
|
-
* and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:
|
|
1676
|
-
*
|
|
1677
|
-
* ```javascript
|
|
1678
|
-
* parse('23 AM', 'HH a', new Date())
|
|
1679
|
-
* //=> RangeError: The format string mustn't contain `HH` and `a` at the same time
|
|
1680
|
-
* ```
|
|
1681
|
-
*
|
|
1682
|
-
* See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true
|
|
1683
|
-
*
|
|
1684
|
-
* Accepted format string patterns:
|
|
1685
|
-
* | Unit |Prior| Pattern | Result examples | Notes |
|
|
1686
|
-
* |---------------------------------|-----|---------|-----------------------------------|-------|
|
|
1687
|
-
* | Era | 140 | G..GGG | AD, BC | |
|
|
1688
|
-
* | | | GGGG | Anno Domini, Before Christ | 2 |
|
|
1689
|
-
* | | | GGGGG | A, B | |
|
|
1690
|
-
* | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |
|
|
1691
|
-
* | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |
|
|
1692
|
-
* | | | yy | 44, 01, 00, 17 | 4 |
|
|
1693
|
-
* | | | yyy | 044, 001, 123, 999 | 4 |
|
|
1694
|
-
* | | | yyyy | 0044, 0001, 1900, 2017 | 4 |
|
|
1695
|
-
* | | | yyyyy | ... | 2,4 |
|
|
1696
|
-
* | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |
|
|
1697
|
-
* | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |
|
|
1698
|
-
* | | | YY | 44, 01, 00, 17 | 4,6 |
|
|
1699
|
-
* | | | YYY | 044, 001, 123, 999 | 4 |
|
|
1700
|
-
* | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |
|
|
1701
|
-
* | | | YYYYY | ... | 2,4 |
|
|
1702
|
-
* | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |
|
|
1703
|
-
* | | | RR | -43, 01, 00, 17 | 4,5 |
|
|
1704
|
-
* | | | RRR | -043, 001, 123, 999, -999 | 4,5 |
|
|
1705
|
-
* | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |
|
|
1706
|
-
* | | | RRRRR | ... | 2,4,5 |
|
|
1707
|
-
* | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |
|
|
1708
|
-
* | | | uu | -43, 01, 99, -99 | 4 |
|
|
1709
|
-
* | | | uuu | -043, 001, 123, 999, -999 | 4 |
|
|
1710
|
-
* | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |
|
|
1711
|
-
* | | | uuuuu | ... | 2,4 |
|
|
1712
|
-
* | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |
|
|
1713
|
-
* | | | Qo | 1st, 2nd, 3rd, 4th | 5 |
|
|
1714
|
-
* | | | QQ | 01, 02, 03, 04 | |
|
|
1715
|
-
* | | | QQQ | Q1, Q2, Q3, Q4 | |
|
|
1716
|
-
* | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
|
|
1717
|
-
* | | | QQQQQ | 1, 2, 3, 4 | 4 |
|
|
1718
|
-
* | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |
|
|
1719
|
-
* | | | qo | 1st, 2nd, 3rd, 4th | 5 |
|
|
1720
|
-
* | | | qq | 01, 02, 03, 04 | |
|
|
1721
|
-
* | | | qqq | Q1, Q2, Q3, Q4 | |
|
|
1722
|
-
* | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
|
|
1723
|
-
* | | | qqqqq | 1, 2, 3, 4 | 3 |
|
|
1724
|
-
* | Month (formatting) | 110 | M | 1, 2, ..., 12 | |
|
|
1725
|
-
* | | | Mo | 1st, 2nd, ..., 12th | 5 |
|
|
1726
|
-
* | | | MM | 01, 02, ..., 12 | |
|
|
1727
|
-
* | | | MMM | Jan, Feb, ..., Dec | |
|
|
1728
|
-
* | | | MMMM | January, February, ..., December | 2 |
|
|
1729
|
-
* | | | MMMMM | J, F, ..., D | |
|
|
1730
|
-
* | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |
|
|
1731
|
-
* | | | Lo | 1st, 2nd, ..., 12th | 5 |
|
|
1732
|
-
* | | | LL | 01, 02, ..., 12 | |
|
|
1733
|
-
* | | | LLL | Jan, Feb, ..., Dec | |
|
|
1734
|
-
* | | | LLLL | January, February, ..., December | 2 |
|
|
1735
|
-
* | | | LLLLL | J, F, ..., D | |
|
|
1736
|
-
* | Local week of year | 100 | w | 1, 2, ..., 53 | |
|
|
1737
|
-
* | | | wo | 1st, 2nd, ..., 53th | 5 |
|
|
1738
|
-
* | | | ww | 01, 02, ..., 53 | |
|
|
1739
|
-
* | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |
|
|
1740
|
-
* | | | Io | 1st, 2nd, ..., 53th | 5 |
|
|
1741
|
-
* | | | II | 01, 02, ..., 53 | 5 |
|
|
1742
|
-
* | Day of month | 90 | d | 1, 2, ..., 31 | |
|
|
1743
|
-
* | | | do | 1st, 2nd, ..., 31st | 5 |
|
|
1744
|
-
* | | | dd | 01, 02, ..., 31 | |
|
|
1745
|
-
* | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |
|
|
1746
|
-
* | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |
|
|
1747
|
-
* | | | DD | 01, 02, ..., 365, 366 | 7 |
|
|
1748
|
-
* | | | DDD | 001, 002, ..., 365, 366 | |
|
|
1749
|
-
* | | | DDDD | ... | 2 |
|
|
1750
|
-
* | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |
|
|
1751
|
-
* | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
|
|
1752
|
-
* | | | EEEEE | M, T, W, T, F, S, S | |
|
|
1753
|
-
* | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
1754
|
-
* | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |
|
|
1755
|
-
* | | | io | 1st, 2nd, ..., 7th | 5 |
|
|
1756
|
-
* | | | ii | 01, 02, ..., 07 | 5 |
|
|
1757
|
-
* | | | iii | Mon, Tue, Wed, ..., Sun | 5 |
|
|
1758
|
-
* | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |
|
|
1759
|
-
* | | | iiiii | M, T, W, T, F, S, S | 5 |
|
|
1760
|
-
* | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |
|
|
1761
|
-
* | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |
|
|
1762
|
-
* | | | eo | 2nd, 3rd, ..., 1st | 5 |
|
|
1763
|
-
* | | | ee | 02, 03, ..., 01 | |
|
|
1764
|
-
* | | | eee | Mon, Tue, Wed, ..., Sun | |
|
|
1765
|
-
* | | | eeee | Monday, Tuesday, ..., Sunday | 2 |
|
|
1766
|
-
* | | | eeeee | M, T, W, T, F, S, S | |
|
|
1767
|
-
* | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
1768
|
-
* | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |
|
|
1769
|
-
* | | | co | 2nd, 3rd, ..., 1st | 5 |
|
|
1770
|
-
* | | | cc | 02, 03, ..., 01 | |
|
|
1771
|
-
* | | | ccc | Mon, Tue, Wed, ..., Sun | |
|
|
1772
|
-
* | | | cccc | Monday, Tuesday, ..., Sunday | 2 |
|
|
1773
|
-
* | | | ccccc | M, T, W, T, F, S, S | |
|
|
1774
|
-
* | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
|
|
1775
|
-
* | AM, PM | 80 | a..aaa | AM, PM | |
|
|
1776
|
-
* | | | aaaa | a.m., p.m. | 2 |
|
|
1777
|
-
* | | | aaaaa | a, p | |
|
|
1778
|
-
* | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |
|
|
1779
|
-
* | | | bbbb | a.m., p.m., noon, midnight | 2 |
|
|
1780
|
-
* | | | bbbbb | a, p, n, mi | |
|
|
1781
|
-
* | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |
|
|
1782
|
-
* | | | BBBB | at night, in the morning, ... | 2 |
|
|
1783
|
-
* | | | BBBBB | at night, in the morning, ... | |
|
|
1784
|
-
* | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |
|
|
1785
|
-
* | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |
|
|
1786
|
-
* | | | hh | 01, 02, ..., 11, 12 | |
|
|
1787
|
-
* | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |
|
|
1788
|
-
* | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |
|
|
1789
|
-
* | | | HH | 00, 01, 02, ..., 23 | |
|
|
1790
|
-
* | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |
|
|
1791
|
-
* | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |
|
|
1792
|
-
* | | | KK | 01, 02, ..., 11, 00 | |
|
|
1793
|
-
* | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |
|
|
1794
|
-
* | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |
|
|
1795
|
-
* | | | kk | 24, 01, 02, ..., 23 | |
|
|
1796
|
-
* | Minute | 60 | m | 0, 1, ..., 59 | |
|
|
1797
|
-
* | | | mo | 0th, 1st, ..., 59th | 5 |
|
|
1798
|
-
* | | | mm | 00, 01, ..., 59 | |
|
|
1799
|
-
* | Second | 50 | s | 0, 1, ..., 59 | |
|
|
1800
|
-
* | | | so | 0th, 1st, ..., 59th | 5 |
|
|
1801
|
-
* | | | ss | 00, 01, ..., 59 | |
|
|
1802
|
-
* | Seconds timestamp | 40 | t | 512969520 | |
|
|
1803
|
-
* | | | tt | ... | 2 |
|
|
1804
|
-
* | Fraction of second | 30 | S | 0, 1, ..., 9 | |
|
|
1805
|
-
* | | | SS | 00, 01, ..., 99 | |
|
|
1806
|
-
* | | | SSS | 000, 0001, ..., 999 | |
|
|
1807
|
-
* | | | SSSS | ... | 2 |
|
|
1808
|
-
* | Milliseconds timestamp | 20 | T | 512969520900 | |
|
|
1809
|
-
* | | | TT | ... | 2 |
|
|
1810
|
-
* | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |
|
|
1811
|
-
* | | | XX | -0800, +0530, Z | |
|
|
1812
|
-
* | | | XXX | -08:00, +05:30, Z | |
|
|
1813
|
-
* | | | XXXX | -0800, +0530, Z, +123456 | 2 |
|
|
1814
|
-
* | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
|
|
1815
|
-
* | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |
|
|
1816
|
-
* | | | xx | -0800, +0530, +0000 | |
|
|
1817
|
-
* | | | xxx | -08:00, +05:30, +00:00 | 2 |
|
|
1818
|
-
* | | | xxxx | -0800, +0530, +0000, +123456 | |
|
|
1819
|
-
* | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
|
|
1820
|
-
* | Long localized date | NA | P | 05/29/1453 | 5,8 |
|
|
1821
|
-
* | | | PP | May 29, 1453 | |
|
|
1822
|
-
* | | | PPP | May 29th, 1453 | |
|
|
1823
|
-
* | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |
|
|
1824
|
-
* | Long localized time | NA | p | 12:00 AM | 5,8 |
|
|
1825
|
-
* | | | pp | 12:00:00 AM | |
|
|
1826
|
-
* | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |
|
|
1827
|
-
* | | | PPpp | May 29, 1453, 12:00:00 AM | |
|
|
1828
|
-
* | | | PPPpp | May 29th, 1453 at ... | |
|
|
1829
|
-
* | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |
|
|
1830
|
-
* Notes:
|
|
1831
|
-
* 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
|
|
1832
|
-
* are the same as "stand-alone" units, but are different in some languages.
|
|
1833
|
-
* "Formatting" units are declined according to the rules of the language
|
|
1834
|
-
* in the context of a date. "Stand-alone" units are always nominative singular.
|
|
1835
|
-
* In `format` function, they will produce different result:
|
|
1836
|
-
*
|
|
1837
|
-
* `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
|
|
1838
|
-
*
|
|
1839
|
-
* `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
|
|
1840
|
-
*
|
|
1841
|
-
* `parse` will try to match both formatting and stand-alone units interchangably.
|
|
1842
|
-
*
|
|
1843
|
-
* 2. Any sequence of the identical letters is a pattern, unless it is escaped by
|
|
1844
|
-
* the single quote characters (see below).
|
|
1845
|
-
* If the sequence is longer than listed in table:
|
|
1846
|
-
* - for numerical units (`yyyyyyyy`) `parse` will try to match a number
|
|
1847
|
-
* as wide as the sequence
|
|
1848
|
-
* - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.
|
|
1849
|
-
* These variations are marked with "2" in the last column of the table.
|
|
1850
|
-
*
|
|
1851
|
-
* 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
|
|
1852
|
-
* These tokens represent the shortest form of the quarter.
|
|
1853
|
-
*
|
|
1854
|
-
* 4. The main difference between `y` and `u` patterns are B.C. years:
|
|
1855
|
-
*
|
|
1856
|
-
* | Year | `y` | `u` |
|
|
1857
|
-
* |------|-----|-----|
|
|
1858
|
-
* | AC 1 | 1 | 1 |
|
|
1859
|
-
* | BC 1 | 1 | 0 |
|
|
1860
|
-
* | BC 2 | 2 | -1 |
|
|
1861
|
-
*
|
|
1862
|
-
* Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:
|
|
1863
|
-
*
|
|
1864
|
-
* `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`
|
|
1865
|
-
*
|
|
1866
|
-
* `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`
|
|
1867
|
-
*
|
|
1868
|
-
* while `uu` will just assign the year as is:
|
|
1869
|
-
*
|
|
1870
|
-
* `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`
|
|
1871
|
-
*
|
|
1872
|
-
* `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`
|
|
1873
|
-
*
|
|
1874
|
-
* The same difference is true for local and ISO week-numbering years (`Y` and `R`),
|
|
1875
|
-
* except local week-numbering years are dependent on `options.weekStartsOn`
|
|
1876
|
-
* and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}
|
|
1877
|
-
* and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).
|
|
1878
|
-
*
|
|
1879
|
-
* 5. These patterns are not in the Unicode Technical Standard #35:
|
|
1880
|
-
* - `i`: ISO day of week
|
|
1881
|
-
* - `I`: ISO week of year
|
|
1882
|
-
* - `R`: ISO week-numbering year
|
|
1883
|
-
* - `o`: ordinal number modifier
|
|
1884
|
-
* - `P`: long localized date
|
|
1885
|
-
* - `p`: long localized time
|
|
1886
|
-
*
|
|
1887
|
-
* 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
|
|
1888
|
-
* You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
|
|
1889
|
-
*
|
|
1890
|
-
* 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
|
|
1891
|
-
* You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
|
|
1892
|
-
*
|
|
1893
|
-
* 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based
|
|
1894
|
-
* on the given locale.
|
|
1895
|
-
*
|
|
1896
|
-
* using `en-US` locale: `P` => `MM/dd/yyyy`
|
|
1897
|
-
* using `en-US` locale: `p` => `hh:mm a`
|
|
1898
|
-
* using `pt-BR` locale: `P` => `dd/MM/yyyy`
|
|
1899
|
-
* using `pt-BR` locale: `p` => `HH:mm`
|
|
1900
|
-
*
|
|
1901
|
-
* Values will be assigned to the date in the descending order of its unit's priority.
|
|
1902
|
-
* Units of an equal priority overwrite each other in the order of appearance.
|
|
1903
|
-
*
|
|
1904
|
-
* If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),
|
|
1905
|
-
* the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.
|
|
1906
|
-
*
|
|
1907
|
-
* `referenceDate` must be passed for correct work of the function.
|
|
1908
|
-
* If you're not sure which `referenceDate` to supply, create a new instance of Date:
|
|
1909
|
-
* `parse('02/11/2014', 'MM/dd/yyyy', new Date())`
|
|
1910
|
-
* In this case parsing will be done in the context of the current date.
|
|
1911
|
-
* If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,
|
|
1912
|
-
* then `Invalid Date` will be returned.
|
|
1913
|
-
*
|
|
1914
|
-
* The result may vary by locale.
|
|
1915
|
-
*
|
|
1916
|
-
* If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.
|
|
1917
|
-
*
|
|
1918
|
-
* If parsing failed, `Invalid Date` will be returned.
|
|
1919
|
-
* Invalid Date is a Date, whose time value is NaN.
|
|
1920
|
-
* Time value of Date: http://es5.github.io/#x15.9.1.1
|
|
1921
|
-
*
|
|
1922
|
-
* ### v2.0.0 breaking changes:
|
|
1923
|
-
*
|
|
1924
|
-
* - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
|
|
1925
|
-
*
|
|
1926
|
-
* - Old `parse` was renamed to `toDate`.
|
|
1927
|
-
* Now `parse` is a new function which parses a string using a provided format.
|
|
1928
|
-
*
|
|
1929
|
-
* ```javascript
|
|
1930
|
-
* // Before v2.0.0
|
|
1931
|
-
* parse('2016-01-01')
|
|
1932
|
-
*
|
|
1933
|
-
* // v2.0.0 onward (toDate no longer accepts a string)
|
|
1934
|
-
* toDate(1392098430000) // Unix to timestamp
|
|
1935
|
-
* toDate(new Date(2014, 1, 11, 11, 30, 30)) // Cloning the date
|
|
1936
|
-
* parse('2016-01-01', 'yyyy-MM-dd', new Date())
|
|
1937
|
-
* ```
|
|
1938
|
-
*
|
|
1939
|
-
* @param {String} dateString - the string to parse
|
|
1940
|
-
* @param {String} formatString - the string of tokens
|
|
1941
|
-
* @param {Date|Number} referenceDate - defines values missing from the parsed dateString
|
|
1942
|
-
* @param {Object} [options] - an object with options.
|
|
1943
|
-
* @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
|
|
1944
|
-
* @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
|
|
1945
|
-
* @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year
|
|
1946
|
-
* @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
|
|
1947
|
-
* see: https://git.io/fxCyr
|
|
1948
|
-
* @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
|
|
1949
|
-
* see: https://git.io/fxCyr
|
|
1950
|
-
* @returns {Date} the parsed date
|
|
1951
|
-
* @throws {TypeError} 3 arguments required
|
|
1952
|
-
* @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
|
|
1953
|
-
* @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
|
|
1954
|
-
* @throws {RangeError} `options.locale` must contain `match` property
|
|
1955
|
-
* @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
|
|
1956
|
-
* @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
|
|
1957
|
-
* @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
|
|
1958
|
-
* @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
|
|
1959
|
-
* @throws {RangeError} format string contains an unescaped latin alphabet character
|
|
1960
|
-
*
|
|
1961
|
-
* @example
|
|
1962
|
-
* // Parse 11 February 2014 from middle-endian format:
|
|
1963
|
-
* var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())
|
|
1964
|
-
* //=> Tue Feb 11 2014 00:00:00
|
|
1965
|
-
*
|
|
1966
|
-
* @example
|
|
1967
|
-
* // Parse 28th of February in Esperanto locale in the context of 2010 year:
|
|
1968
|
-
* import eo from 'date-fns/locale/eo'
|
|
1969
|
-
* var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), {
|
|
1970
|
-
* locale: eo
|
|
1971
|
-
* })
|
|
1972
|
-
* //=> Sun Feb 28 2010 00:00:00
|
|
1973
|
-
*/
|
|
1974
|
-
|
|
1975
|
-
function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOptions) {
|
|
1976
|
-
index.requiredArgs(3, arguments);
|
|
1977
|
-
var dateString = String(dirtyDateString);
|
|
1978
|
-
var formatString = String(dirtyFormatString);
|
|
1979
|
-
var options = dirtyOptions || {};
|
|
1980
|
-
var locale = options.locale || index$1.defaultLocale;
|
|
1981
|
-
|
|
1982
|
-
if (!locale.match) {
|
|
1983
|
-
throw new RangeError('locale must contain match property');
|
|
1984
|
-
}
|
|
1985
|
-
|
|
1986
|
-
var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
|
|
1987
|
-
var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : index$1.toInteger(localeFirstWeekContainsDate);
|
|
1988
|
-
var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : index$1.toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
|
|
1989
|
-
|
|
1990
|
-
if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
|
|
1991
|
-
throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
|
|
1995
|
-
var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : index$1.toInteger(localeWeekStartsOn);
|
|
1996
|
-
var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : index$1.toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
1997
|
-
|
|
1998
|
-
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
1999
|
-
throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
|
|
2000
|
-
}
|
|
2001
|
-
|
|
2002
|
-
if (formatString === '') {
|
|
2003
|
-
if (dateString === '') {
|
|
2004
|
-
return index.toDate(dirtyReferenceDate);
|
|
2005
|
-
} else {
|
|
2006
|
-
return new Date(NaN);
|
|
2007
|
-
}
|
|
2008
|
-
}
|
|
2009
|
-
|
|
2010
|
-
var subFnOptions = {
|
|
2011
|
-
firstWeekContainsDate: firstWeekContainsDate,
|
|
2012
|
-
weekStartsOn: weekStartsOn,
|
|
2013
|
-
locale: locale
|
|
2014
|
-
}; // If timezone isn't specified, it will be set to the system timezone
|
|
2015
|
-
|
|
2016
|
-
var setters = [{
|
|
2017
|
-
priority: TIMEZONE_UNIT_PRIORITY,
|
|
2018
|
-
subPriority: -1,
|
|
2019
|
-
set: dateToSystemTimezone,
|
|
2020
|
-
index: 0
|
|
2021
|
-
}];
|
|
2022
|
-
var i;
|
|
2023
|
-
var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {
|
|
2024
|
-
var firstCharacter = substring[0];
|
|
2025
|
-
|
|
2026
|
-
if (firstCharacter === 'p' || firstCharacter === 'P') {
|
|
2027
|
-
var longFormatter = index$1.longFormatters[firstCharacter];
|
|
2028
|
-
return longFormatter(substring, locale.formatLong, subFnOptions);
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
|
-
return substring;
|
|
2032
|
-
}).join('').match(formattingTokensRegExp);
|
|
2033
|
-
var usedTokens = [];
|
|
2034
|
-
|
|
2035
|
-
for (i = 0; i < tokens.length; i++) {
|
|
2036
|
-
var token = tokens[i];
|
|
2037
|
-
|
|
2038
|
-
if (!options.useAdditionalWeekYearTokens && index$1.isProtectedWeekYearToken(token)) {
|
|
2039
|
-
index$1.throwProtectedError(token, formatString, dirtyDateString);
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
if (!options.useAdditionalDayOfYearTokens && index$1.isProtectedDayOfYearToken(token)) {
|
|
2043
|
-
index$1.throwProtectedError(token, formatString, dirtyDateString);
|
|
2044
|
-
}
|
|
2045
|
-
|
|
2046
|
-
var firstCharacter = token[0];
|
|
2047
|
-
var parser = parsers$1[firstCharacter];
|
|
2048
|
-
|
|
2049
|
-
if (parser) {
|
|
2050
|
-
var incompatibleTokens = parser.incompatibleTokens;
|
|
2051
|
-
|
|
2052
|
-
if (Array.isArray(incompatibleTokens)) {
|
|
2053
|
-
var incompatibleToken = void 0;
|
|
2054
|
-
|
|
2055
|
-
for (var _i = 0; _i < usedTokens.length; _i++) {
|
|
2056
|
-
var usedToken = usedTokens[_i].token;
|
|
2057
|
-
|
|
2058
|
-
if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) {
|
|
2059
|
-
incompatibleToken = usedTokens[_i];
|
|
2060
|
-
break;
|
|
2061
|
-
}
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
|
-
if (incompatibleToken) {
|
|
2065
|
-
throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time"));
|
|
2066
|
-
}
|
|
2067
|
-
} else if (parser.incompatibleTokens === '*' && usedTokens.length) {
|
|
2068
|
-
throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time"));
|
|
2069
|
-
}
|
|
2070
|
-
|
|
2071
|
-
usedTokens.push({
|
|
2072
|
-
token: firstCharacter,
|
|
2073
|
-
fullToken: token
|
|
2074
|
-
});
|
|
2075
|
-
var parseResult = parser.parse(dateString, token, locale.match, subFnOptions);
|
|
2076
|
-
|
|
2077
|
-
if (!parseResult) {
|
|
2078
|
-
return new Date(NaN);
|
|
2079
|
-
}
|
|
2080
|
-
|
|
2081
|
-
setters.push({
|
|
2082
|
-
priority: parser.priority,
|
|
2083
|
-
subPriority: parser.subPriority || 0,
|
|
2084
|
-
set: parser.set,
|
|
2085
|
-
validate: parser.validate,
|
|
2086
|
-
value: parseResult.value,
|
|
2087
|
-
index: setters.length
|
|
2088
|
-
});
|
|
2089
|
-
dateString = parseResult.rest;
|
|
2090
|
-
} else {
|
|
2091
|
-
if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
|
|
2092
|
-
throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
|
|
2093
|
-
} // Replace two single quote characters with one single quote character
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
if (token === "''") {
|
|
2097
|
-
token = "'";
|
|
2098
|
-
} else if (firstCharacter === "'") {
|
|
2099
|
-
token = cleanEscapedString(token);
|
|
2100
|
-
} // Cut token from string, or, if string doesn't match the token, return Invalid Date
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
if (dateString.indexOf(token) === 0) {
|
|
2104
|
-
dateString = dateString.slice(token.length);
|
|
2105
|
-
} else {
|
|
2106
|
-
return new Date(NaN);
|
|
2107
|
-
}
|
|
2108
|
-
}
|
|
2109
|
-
} // Check if the remaining input contains something other than whitespace
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {
|
|
2113
|
-
return new Date(NaN);
|
|
2114
|
-
}
|
|
2115
|
-
|
|
2116
|
-
var uniquePrioritySetters = setters.map(function (setter) {
|
|
2117
|
-
return setter.priority;
|
|
2118
|
-
}).sort(function (a, b) {
|
|
2119
|
-
return b - a;
|
|
2120
|
-
}).filter(function (priority, index, array) {
|
|
2121
|
-
return array.indexOf(priority) === index;
|
|
2122
|
-
}).map(function (priority) {
|
|
2123
|
-
return setters.filter(function (setter) {
|
|
2124
|
-
return setter.priority === priority;
|
|
2125
|
-
}).sort(function (a, b) {
|
|
2126
|
-
return b.subPriority - a.subPriority;
|
|
2127
|
-
});
|
|
2128
|
-
}).map(function (setterArray) {
|
|
2129
|
-
return setterArray[0];
|
|
2130
|
-
});
|
|
2131
|
-
var date = index.toDate(dirtyReferenceDate);
|
|
2132
|
-
|
|
2133
|
-
if (isNaN(date)) {
|
|
2134
|
-
return new Date(NaN);
|
|
2135
|
-
} // Convert the date in system timezone to the same date in UTC+00:00 timezone.
|
|
2136
|
-
// This ensures that when UTC functions will be implemented, locales will be compatible with them.
|
|
2137
|
-
// See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
var utcDate = index$1.subMilliseconds(date, index$1.getTimezoneOffsetInMilliseconds(date));
|
|
2141
|
-
var flags = {};
|
|
2142
|
-
|
|
2143
|
-
for (i = 0; i < uniquePrioritySetters.length; i++) {
|
|
2144
|
-
var setter = uniquePrioritySetters[i];
|
|
2145
|
-
|
|
2146
|
-
if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) {
|
|
2147
|
-
return new Date(NaN);
|
|
2148
|
-
}
|
|
2149
|
-
|
|
2150
|
-
var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags)
|
|
2151
|
-
|
|
2152
|
-
if (result[0]) {
|
|
2153
|
-
utcDate = result[0];
|
|
2154
|
-
assign(flags, result[1]); // Result is date
|
|
2155
|
-
} else {
|
|
2156
|
-
utcDate = result;
|
|
2157
|
-
}
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
return utcDate;
|
|
2161
|
-
}
|
|
2162
|
-
|
|
2163
|
-
function dateToSystemTimezone(date, flags) {
|
|
2164
|
-
if (flags.timestampIsSet) {
|
|
2165
|
-
return date;
|
|
2166
|
-
}
|
|
2167
|
-
|
|
2168
|
-
var convertedDate = new Date(0);
|
|
2169
|
-
convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
|
|
2170
|
-
convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());
|
|
2171
|
-
return convertedDate;
|
|
2172
|
-
}
|
|
2173
|
-
|
|
2174
|
-
function cleanEscapedString(input) {
|
|
2175
|
-
return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
|
|
2176
|
-
}
|
|
2177
|
-
|
|
2178
|
-
const calendarDatepickerCss = ".sc-digi-calendar-datepicker:root{--digi--grayscale--0:#ffffff;--digi--grayscale--50:#fbfbfb;--digi--grayscale--100:#f4f4f4;--digi--grayscale--200:#ededed;--digi--grayscale--300:#e4e4e4;--digi--grayscale--400:#dddddd;--digi--grayscale--500:#cacaca;--digi--grayscale--600:#acacac;--digi--grayscale--700:#757575;--digi--grayscale--800:#5c5c5c;--digi--grayscale--900:#333333;--digi--grayscale--1000:#000000;--digi--sentiment--informative--200:#e9e9ff;--digi--sentiment--informative--500:#0A4DD1;--digi--sentiment--informative--700:#0058a3;--digi--sentiment--error--200:#fdeded;--digi--sentiment--error--500:#da0000;--digi--sentiment--error--700:#c7311a;--digi--sentiment--success--200:#e9f6ec;--digi--sentiment--success--500:#008A20;--digi--sentiment--success--700:#02703c;--digi--sentiment--warning--200:#fff398;--digi--sentiment--warning--50:#fffbdd;--digi--sentiment--warning--500:#ffe200;--digi--sentiment--warning--700:#ffc108;--digi--sentiment--warning--900:#664d00;--digi--misc--transparent:#ffffff00;--digi--animation--duration--base:var(--digi--global--animation--duration--base);--digi--animation--duration--small:var(--digi--global--animation--duration--short);--digi--animation--duration--large:var(--digi--global--animation--duration--longer);--digi--animation--duration--reduced:var(--digi--global--animation--duration--shortest);--digi--animation--duration--sweep:var(--digi--global--animation--duration--longest);--digi--animation--rotation--45:var(--digi--global--animation--rotation--smallest-2);--digi--animation--rotation--90:var(--digi--global--animation--rotation--smallest);--digi--animation--rotation--135:var(--digi--global--animation--rotation--smaller);--digi--animation--rotation--180:var(--digi--global--animation--rotation--small);--digi--animation--rotation--225:var(--digi--global--animation--rotation--base);--digi--animation--rotation--270:var(--digi--global--animation--rotation--large);--digi--animation--rotation--315:var(--digi--global--animation--rotation--larger);--digi--animation--rotation--360:var(--digi--global--animation--rotation--largest);--digi--global--animation--duration--base:.3s;--digi--global--animation--duration--short:.2s;--digi--global--animation--duration--shorter:.1s;--digi--global--animation--duration--shortest:.01s;--digi--global--animation--duration--long:.4s;--digi--global--animation--duration--longer:.5s;--digi--global--animation--duration--longest:4s;--digi--global--animation--rotation--smallest-2:0deg;--digi--global--animation--rotation--smallest:45deg;--digi--global--animation--rotation--smaller:90deg;--digi--global--animation--rotation--small:135deg;--digi--global--animation--rotation--base:180deg;--digi--global--animation--rotation--large:225deg;--digi--global--animation--rotation--larger:270deg;--digi--global--animation--rotation--largest:315deg;--digi--global--animation--rotation--largest-2:360deg;--digi--global--border-radius--base:6px;--digi--global--border-radius--small:4px;--digi--global--border-radius--smaller:3px;--digi--global--border-radius--smallest:2px;--digi--global--border-radius--smallest-2:1px;--digi--global--border-radius--smallest-3:0px;--digi--global--border-radius--large:8px;--digi--global--border-radius--larger:16px;--digi--global--border-radius--largest:32px;--digi--global--border-radius--largest-2:64px;--digi--global--border-width--base:2px;--digi--global--border-width--small:1px;--digi--global--border-width--smaller:0px;--digi--global--border-width--large:4px;--digi--global--border-width--larger:6px;--digi--global--border-width--largest:8px;--digi--global--border-width--largest-2:10px;--digi--global--border-style--solid:solid;--digi--global--border-style--none:none;--digi--global--border-style--dashed:dashed;--digi--global--spacing--base:16px;--digi--global--spacing--small:14px;--digi--global--spacing--smaller:12px;--digi--global--spacing--smallest:10px;--digi--global--spacing--smallest-2:8px;--digi--global--spacing--smallest-3:6px;--digi--global--spacing--smallest-4:4px;--digi--global--spacing--smallest-5:3px;--digi--global--spacing--smallest-6:2px;--digi--global--spacing--smallest-7:1px;--digi--global--spacing--large:18px;--digi--global--spacing--larger:20px;--digi--global--spacing---:22px;--digi--global--spacing--largest-2:24px;--digi--global--spacing--largest-3:28px;--digi--global--spacing--largest-4:32px;--digi--global--spacing--largest-5:40px;--digi--global--spacing--largest-6:48px;--digi--global--spacing--largest-7:56px;--digi--global--spacing--largest-8:64px;--digi--global--spacing--largest:22px;--digi--global--spacing--largest-3-5:30px;--digi--global--spacing--largest-9:72px;--digi--global--spacing--largest-10:80px;--digi--global--breakpoint--smallest-3:374px;--digi--global--breakpoint--smallest-2:375px;--digi--global--breakpoint--smallest:575px;--digi--global--breakpoint--smaller:576px;--digi--global--breakpoint--small:767px;--digi--global--breakpoint--medium:768px;--digi--global--breakpoint--large:991px;--digi--global--breakpoint--larger:992px;--digi--global--breakpoint--largest:1199px;--digi--global--breakpoint--largest-2:1200px;--digi--global--breakpoint--largest-3:1399px;--digi--global--breakpoint--largest-4:1400px;--digi--global--size--smaller:auto;--digi--global--size--small:36rem;--digi--global--size--base:48rem;--digi--global--size--large:62rem;--digi--global--size--larger:75rem;--digi--global--size--largest:87.5rem;--digi--global--text-width--small:31rem;--digi--global--text-width--base:35rem;--digi--global--text-width--large:40rem;--digi--global--text-width--larger:44rem;--digi--global--text-width--largest:48rem;--digi--global--text-width--largest-2:53rem;--digi--global--text-width--largest-3:61rem;--digi--global--text-width--largest-4:70rem;--digi--global--typography--line-height--base:1.5;--digi--global--typography--line-height--small:1;--digi--global--typography--line-height--large:2;--digi--global--typography--font-size--base:1rem;--digi--global--typography--font-size--small:0.875rem;--digi--global--typography--font-size--smaller:0.75rem;--digi--global--typography--font-size--large:1.125rem;--digi--global--typography--font-size--larger:1.25rem;--digi--global--typography--font-size--largest:1.375rem;--digi--global--typography--font-size--largest-2:1.5rem;--digi--global--typography--font-size--largest-3:1.75rem;--digi--global--typography--font-size--largest-4:2rem;--digi--global--typography--font-size--largest-5:2.25rem;--digi--global--typography--font-size--interaction-small:0.875rem;--digi--global--typography--font-size--interaction-medium:1rem;--digi--global--typography--font-size--interaction-large:1.125rem;--digi--global--typography--font-size--largest-6:2.5rem;--digi--global--typography--font-weight--regular:400;--digi--global--typography--font-weight--light:300;--digi--global--typography--font-weight--semibold:600;--digi--global--typography--font-weight--bold:700;--digi--global--typography--font-family--default:\"Open Sans\";--digi--global--typography--font-family--mono:Consolas, Monaco, \"Andale Mono\", \"Ubuntu Mono\", monospace;--digi--global--typography--text-decoration--default:none;--digi--global--typography--text-decoration--link:underline;--digi--border-radius--primary:var(--digi--global--border-radius--smallest-3);--digi--border-radius--secondary:var(--digi--global--border-radius--base);--digi--border-radius--tertiary:var(--digi--global--border-radius--smaller);--digi--border-radius--complementary-1:var(--digi--global--border-radius--largest);--digi--border-radius--complementary-2:var(--digi--global--border-radius--largest-2);--digi--border-radius--button:var(--digi--global--border-radius--base);--digi--border-radius--input:var(--digi--global--border-radius--smallest-3);--digi--border-radius--input-search:var(--digi--global--border-radius--base);--digi--border-radius--complementary-3:var(--digi--global--border-radius--larger);--digi--border-width--primary:var(--digi--global--border-width--small);--digi--border-width--secondary:var(--digi--global--border-width--base);--digi--border-width--complementary-1:var(--digi--global--border-width--largest);--digi--border-width--complementary-2:var(--digi--global--border-width--largest-2);--digi--border-width--input-regular:var(--digi--global--border-width--small);--digi--border-width--input-validation:var(--digi--global--border-width--base);--digi--border-width--button:var(--digi--global--border-width--small);--digi--border-style--primary:var(--digi--global--border-style--solid);--digi--border-style--secondary:var(--digi--global--border-style--none);--digi--padding--medium:var(--digi--global--spacing--base);--digi--padding--smaller:var(--digi--global--spacing--smallest-2);--digi--padding--small:var(--digi--global--spacing--smaller);--digi--padding--large:var(--digi--global--spacing--largest-2);--digi--padding--larger:var(--digi--global--spacing--largest-3);--digi--padding--largest:var(--digi--global--spacing--largest-4);--digi--padding--largest-2:var(--digi--global--spacing--largest-5);--digi--padding--largest-3:var(--digi--global--spacing--largest-6);--digi--margin--smaller:var(--digi--global--spacing--smallest-2);--digi--margin--small:var(--digi--global--spacing--smallest);--digi--margin--medium:var(--digi--global--spacing--base);--digi--margin--large:var(--digi--global--spacing--largest-2);--digi--margin--larger:var(--digi--global--spacing--largest-3);--digi--margin--largest:var(--digi--global--spacing--largest-4);--digi--margin--h1-small:var(--digi--global--spacing--base);--digi--margin--h1-medium:var(--digi--global--spacing--largest-2);--digi--margin--h1-large:var(--digi--global--spacing--largest-4);--digi--margin--h2-small:var(--digi--global--spacing--base);--digi--margin--h2-large:var(--digi--global--spacing--base);--digi--margin--h3-small:var(--digi--global--spacing--smallest-2);--digi--margin--h3-large:var(--digi--global--spacing--smallest-2);--digi--margin--h4-h6-small:var(--digi--global--spacing--smallest-2);--digi--margin--h4-h6-large:var(--digi--global--spacing--smallest-2);--digi--margin--text-small:var(--digi--global--spacing--largest-2);--digi--margin--text-large:var(--digi--global--spacing--largest-2);--digi--gutter--largest-3:var(--digi--global--spacing--largest-2);--digi--gutter--largest-2:var(--digi--global--spacing--larger);--digi--gutter--largest:var(--digi--global--spacing--base);--digi--gutter--larger:var(--digi--global--spacing--smaller);--digi--gutter--large:var(--digi--global--spacing--smallest);--digi--gutter--medium:var(--digi--global--spacing--smallest-2);--digi--gutter--small:var(--digi--global--spacing--smallest-3);--digi--gutter--smaller:var(--digi--global--spacing--smallest-4);--digi--gutter--smallest:var(--digi--global--spacing--smallest-5);--digi--gutter--smallest-2:var(--digi--global--spacing--smallest-6);--digi--gutter--smallest-3:var(--digi--global--spacing--smallest-7);--digi--gutter--button-block-small:var(--digi--global--spacing--smallest-3);--digi--gutter--button-block-medium:var(--digi--global--spacing--smallest-2);--digi--gutter--button-block-large:var(--digi--global--spacing--smallest);--digi--gutter--button-inline-small:var(--digi--global--spacing--smallest-2);--digi--gutter--button-inline-medium:var(--digi--global--spacing--base);--digi--gutter--button-inline-large:var(--digi--global--spacing--largest-2);--digi--gutter--icon:var(--digi--global--spacing--smallest);--digi--breakpoint--small-below:var(--digi--global--breakpoint--smallest);--digi--breakpoint--small:var(--digi--global--breakpoint--smaller);--digi--breakpoint--medium-below:var(--digi--global--breakpoint--small);--digi--breakpoint--medium:var(--digi--global--breakpoint--medium);--digi--breakpoint--large-below:var(--digi--global--breakpoint--large);--digi--breakpoint--large:var(--digi--global--breakpoint--larger);--digi--breakpoint--x-large-below:var(--digi--global--breakpoint--largest);--digi--breakpoint--x-large:var(--digi--global--breakpoint--largest-2);--digi--breakpoint--xx-large-below:var(--digi--global--breakpoint--largest-3);--digi--breakpoint--xx-large:var(--digi--global--breakpoint--largest-4);--digi--container-width--smaller:var(--digi--global--size--smaller);--digi--container-width--small:var(--digi--global--size--small);--digi--container-width--base:var(--digi--global--size--base);--digi--container-width--medium:var(--digi--global--size--base);--digi--container-width--large:var(--digi--global--size--large);--digi--container-width--larger:var(--digi--global--size--larger);--digi--container-width--largest:var(--digi--global--size--largest);--digi--container-gutter--smaller:var(--digi--global--spacing--base);--digi--container-gutter--small:var(--digi--global--spacing--large);--digi--container-gutter--base:var(--digi--global--spacing--base);--digi--container-gutter--medium:var(--digi--global--spacing--largest-2);--digi--container-gutter--large:var(--digi--global--spacing--base);--digi--container-gutter--larger:var(--digi--global--spacing--largest-3-5);--digi--container-gutter--largest:var(--digi--global--spacing--largest-5);--digi--paragraph-width--medium:var(--digi--global--text-width--base);--digi--paragraph-width--large:var(--digi--global--text-width--large);--digi--input-height--small:var(--digi--global--spacing--largest-4);--digi--input-height--medium:var(--digi--global--spacing--largest-5);--digi--input-height--large:var(--digi--global--spacing--largest-6);--digi--typography--body--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--body--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--body--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--body--font-weight--desktop:var(--digi--global--typography--font-weight--regular);--digi--typography--body--font-weight--desktop-large:var(--digi--global--typography--font-weight--regular);--digi--typography--body--font-weight--mobile:var(--digi--global--typography--font-weight--regular);--digi--typography--body--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--body--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--body--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--body--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--body--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--body--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--description--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--description--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--description--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-1--font-size--desktop:var(--digi--global--typography--font-size--largest-4);--digi--typography--heading-1--font-size--desktop-large:var(--digi--global--typography--font-size--largest-6);--digi--typography--heading-1--font-size--mobile:var(--digi--global--typography--font-size--largest-3);--digi--typography--heading-1--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-1--font-weight--desktop-large:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-1--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-1--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--heading-1--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--heading-1--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--heading-1--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-1--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-1--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-2--font-size--desktop:var(--digi--global--typography--font-size--largest-2);--digi--typography--heading-2--font-size--desktop-large:var(--digi--global--typography--font-size--largest-3);--digi--typography--heading-2--font-size--mobile:var(--digi--global--typography--font-size--largest);--digi--typography--heading-2--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-2--font-weight--desktop-large:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-2--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-2--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--heading-2--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--heading-2--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--heading-2--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-2--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-2--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-3--font-size--desktop:var(--digi--global--typography--font-size--larger);--digi--typography--heading-3--font-size--desktop-large:var(--digi--global--typography--font-size--largest);--digi--typography--heading-3--font-size--mobile:var(--digi--global--typography--font-size--large);--digi--typography--heading-3--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-3--font-weight--desktop-large:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-3--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-3--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--heading-3--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--heading-3--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--heading-3--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-3--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-3--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-4--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--heading-4--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--heading-4--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--heading-4--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-4--font-weight--desktop-large:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-4--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--heading-4--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--heading-4--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--heading-4--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--heading-4--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-4--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-4--text-decoration--mobile:var(--digi--global--typography--text-decoration--default);--digi--typography--heading-jumbo--font-size--desktop:var(--digi--global--typography--font-size--largest-4);--digi--typography--heading-jumbo--font-size--desktop-large:var(--digi--global--typography--font-size--largest-6);--digi--typography--heading-jumbo--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--input--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--label--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--label--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--label--font-weight--mobile:var(--digi--global--typography--font-weight--semibold);--digi--typography--label--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--label-description--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--label-description--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--link--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--link--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--link--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--link--font-weight--desktop:var(--digi--global--typography--font-weight--regular);--digi--typography--link--font-weight--desktop-large:var(--digi--global--typography--font-weight--regular);--digi--typography--link--font-weight--mobile:var(--digi--global--typography--font-weight--regular);--digi--typography--link--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--link--line-height--desktop-large:var(--digi--global--typography--line-height--base);--digi--typography--link--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--link--text-decoration--desktop:var(--digi--global--typography--text-decoration--link);--digi--typography--link--text-decoration--desktop-large:var(--digi--global--typography--text-decoration--link);--digi--typography--link--text-decoration--mobile:var(--digi--global--typography--text-decoration--link);--digi--typography--link-bold--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--preamble--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--preamble--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--preamble--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--preamble--line-height--mobile:var(--digi--global--typography--line-height--base);--digi--typography--preamble--line-height--desktop:var(--digi--global--typography--line-height--base);--digi--typography--accordion--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--accordion--font-size--mobile:var(--digi--global--typography--font-size--base);--digi--typography--accordion--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--typography--tag--font-size--desktop:var(--digi--global--typography--font-size--small);--digi--typography--tag--font-size--mobile:var(--digi--global--typography--font-size--small);--digi--typography--tag--font-weight--desktop:var(--digi--global--typography--font-weight--regular);--digi--typography--breadcrumbs--font-size--desktop:var(--digi--global--typography--font-size--small);--digi--typography--breadcrumbs--text-decoration--desktop:var(--digi--global--typography--text-decoration--default);--digi--typography--title-logo--font-size--desktop:var(--digi--global--typography--font-size--largest-5);--digi--typography--title-logo--font-size--desktop-large:var(--digi--global--typography--font-size--largest-5);--digi--typography--title-logo--font-size--mobile:var(--digi--global--typography--font-size--largest-3);--digi--typography--title-logo--font-weight--desktop:var(--digi--global--typography--font-weight--bold);--digi--typography--button--font-size--desktop:var(--digi--global--typography--font-size--base);--digi--typography--button--font-size--desktop-large:var(--digi--global--typography--font-size--large);--digi--typography--button--font-weight--desktop:var(--digi--global--typography--font-weight--semibold);--digi--color--logotype-color:var(--digi--color--logotype-color--light);--digi--color--infographic--lineart:var(--digi--color--infographic--lineart--light);--digi--color--infographic--background:var(--digi--color--infographic--background--light);--digi--color--infographic--brand--primary:var(--digi--color--infographic--brand--primary--light);--digi--color--infographic--brand--secondary:var(--digi--color--infographic--brand--secondary--light);--digi--color--infographic--brand--tertiary:var(--digi--color--infographic--brand--tertiary--light);--digi--color--text--primary:var(--digi--color--text--primary--light);--digi--color--text--secondary:var(--digi--color--text--secondary--light);--digi--color--text--description:var(--digi--color--text--description--light);--digi--color--text--interactive--primary:var(--digi--color--text--interactive--primary--light);--digi--color--text--interactive--secondary:var(--digi--color--text--interactive--secondary--light);--digi--color--text--interactive--tertiary:var(--digi--color--text--interactive--tertiary--light);--digi--color--text--interactive--brand-primary:var(--digi--color--text--interactive--brand-primary--light);--digi--color--text--interactive--brand-secondary:var(--digi--color--text--interactive--brand-secondary--light);--digi--color--text--interactive--visited:var(--digi--color--text--interactive--visited--light);--digi--color--background--primary:var(--digi--color--background--primary--light);--digi--color--background--secondary:var(--digi--color--background--secondary--light);--digi--color--background--secondary-muted:var(--digi--color--background--secondary-muted--light);--digi--color--background--secondary-accent:var(--digi--color--background--secondary-accent--light);--digi--color--background--pop-out:var(--digi--color--background--pop-out--light);--digi--color--background--brand-primary:var(--digi--color--background--brand-primary--light);--digi--color--background--transparent:var(--digi--color--background--transparent--light);--digi--color--background--notification:var(--digi--color--background--notification--light);--digi--color--background--interactive--default--primary:var(--digi--color--background--interactive--default--primary--light);--digi--color--background--interactive--default--primary-inverted:var(--digi--color--background--interactive--default--primary-inverted--light);--digi--color--background--interactive--default--secondary:var(--digi--color--background--interactive--default--secondary--light);--digi--color--background--interactive--default--secondary-inverted:var(--digi--color--background--interactive--default--secondary-inverted--light);--digi--color--background--interactive--default--tertiary:var(--digi--color--background--interactive--default--tertiary--light);--digi--color--background--interactive--default--quaternary:var(--digi--color--background--interactive--default--quaternary--light);--digi--color--background--interactive--default--input-elements:var(--digi--color--background--interactive--default--input-elements--light);--digi--color--background--interactive--default--pop-out:var(--digi--color--background--interactive--default--pop-out--light);--digi--color--background--interactive--hover--primary:var(--digi--color--background--interactive--hover--primary--light);--digi--color--background--interactive--hover--secondary:var(--digi--color--background--interactive--hover--secondary--light);--digi--color--background--interactive--hover--tertiary:var(--digi--color--background--interactive--hover--tertiary--light);--digi--color--background--interactive--hover--quarternary:var(--digi--color--background--interactive--hover--quarternary--light);--digi--color--background--interactive--hover--inverted:var(--digi--color--background--interactive--hover--inverted--light);--digi--color--background--interactive--selected--primary:var(--digi--color--background--interactive--selected--primary--light);--digi--color--background--interactive--selected--secondary:var(--digi--color--background--interactive--selected--secondary--light);--digi--color--background--interactive--selected--tertiary:var(--digi--color--background--interactive--selected--tertiary--light);--digi--color--background--interactive--selected--on-menu-minus-button:var(--digi--color--background--interactive--selected--on-menu-minus-button--light);--digi--color--background--interactive--validation--success:var(--digi--color--background--interactive--validation--success--light);--digi--color--background--interactive--validation--warning:var(--digi--color--background--interactive--validation--warning--light);--digi--color--background--interactive--validation--error:var(--digi--color--background--interactive--validation--error--light);--digi--color--background--sentiment--error--primary:var(--digi--color--background--sentiment--error--primary--light);--digi--color--background--sentiment--error--secondary:var(--digi--color--background--sentiment--error--secondary--light);--digi--color--background--sentiment--error--tertiary:var(--digi--color--background--sentiment--error--tertiary--light);--digi--color--background--sentiment--success--primary:var(--digi--color--background--sentiment--success--primary--light);--digi--color--background--sentiment--success--secondary:var(--digi--color--background--sentiment--success--secondary--light);--digi--color--background--sentiment--success--tertiary:var(--digi--color--background--sentiment--success--tertiary--light);--digi--color--background--sentiment--warning--primary:var(--digi--color--background--sentiment--warning--primary--light);--digi--color--background--sentiment--warning--secondary:var(--digi--color--background--sentiment--warning--secondary--light);--digi--color--background--sentiment--warning--tertiary:var(--digi--color--background--sentiment--warning--tertiary--light);--digi--color--background--sentiment--warning--quarternary:var(--digi--color--background--sentiment--warning--quarternary--light);--digi--color--background--sentiment--info--primary:var(--digi--color--background--sentiment--info--primary--light);--digi--color--background--sentiment--info--secondary:var(--digi--color--background--sentiment--info--secondary--light);--digi--color--background--sentiment--info--tertiary:var(--digi--color--background--sentiment--info--tertiary--light);--digi--color--background--sentiment--neutral--primary:var(--digi--color--background--sentiment--neutral--primary--light);--digi--color--background--sentiment--neutral--secondary:var(--digi--color--background--sentiment--neutral--secondary--light);--digi--color--background--sentiment--neutral--tertiary:var(--digi--color--background--sentiment--neutral--tertiary--light);--digi--color--background--sentiment--beta--primary:var(--digi--color--background--sentiment--beta--primary--light);--digi--color--background--sentiment--beta--secondary:var(--digi--color--background--sentiment--beta--secondary--light);--digi--color--border--notification:var(--digi--color--border--notification--light);--digi--color--border--transparent:var(--digi--color--border--transparent--light);--digi--color--border--interactive--default--primary:var(--digi--color--border--interactive--default--primary--light);--digi--color--border--interactive--default--on-input:var(--digi--color--border--interactive--default--on-input--light);--digi--color--border--interactive--default--on-input-nuance:var(--digi--color--border--interactive--default--on-input-nuance--light);--digi--color--border--interactive--default--inverted:var(--digi--color--border--interactive--default--inverted--light);--digi--color--border--interactive--hover--primary:var(--digi--color--border--interactive--hover--primary--light);--digi--color--border--interactive--hover--secondary:var(--digi--color--border--interactive--hover--secondary--light);--digi--color--border--interactive--hover--inverted:var(--digi--color--border--interactive--hover--inverted--light);--digi--color--border--interactive--validation--success:var(--digi--color--border--interactive--validation--success--light);--digi--color--border--interactive--validation--warning:var(--digi--color--border--interactive--validation--warning--light);--digi--color--border--interactive--validation--error:var(--digi--color--border--interactive--validation--error--light);--digi--color--border--interactive--selected--primary:var(--digi--color--border--interactive--selected--primary--light);--digi--color--border--interactive--selected--secondary:var(--digi--color--border--interactive--selected--secondary--light);--digi--color--border--sentiment--error:var(--digi--color--border--sentiment--error--light);--digi--color--border--sentiment--success:var(--digi--color--border--sentiment--success--light);--digi--color--border--sentiment--warning:var(--digi--color--border--sentiment--warning--light);--digi--color--border--sentiment--info:var(--digi--color--border--sentiment--info--light);--digi--color--border--accent--primary:var(--digi--color--border--accent--primary--light);--digi--color--border--accent--secondary:var(--digi--color--border--accent--secondary--light);--digi--color--marking--navigation--selected:var(--digi--color--marking--navigation--selected--light);--digi--color--marking--navigation--level-active:var(--digi--color--marking--navigation--level-active--light);--digi--color--marking--navigation--level-inactive:var(--digi--color--marking--navigation--level-inactive--light);--digi--color--marking--indication--primary:var(--digi--color--marking--indication--primary--light);--digi--color--marking--indication--secondary:var(--digi--color--marking--indication--secondary--light);--digi--color--marking--indication--tertiary:var(--digi--color--marking--indication--tertiary--light);--digi--color--divider--primary:var(--digi--color--divider--primary--light);--digi--color--divider--secondary:var(--digi--color--divider--secondary--light);--digi--color--divider--on-brand-primary:var(--digi--color--divider--on-brand-primary--light);--digi--color--divider--cta:var(--digi--color--divider--cta--light);--digi--color--icon--primary:var(--digi--color--icon--primary--light);--digi--color--icon--secondary:var(--digi--color--icon--secondary--light);--digi--color--icon--cta:var(--digi--color--icon--cta--light);--digi--color--icon--brand-primary:var(--digi--color--icon--brand-primary--light);--digi--color--icon--brand-secondary:var(--digi--color--icon--brand-secondary--light);--digi--color--icon--validation--success:var(--digi--color--icon--validation--success--light);--digi--color--icon--validation--warning:var(--digi--color--icon--validation--warning--light);--digi--color--icon--validation--error:var(--digi--color--icon--validation--error--light);--digi--color--misc--spinner-path:var(--digi--color--misc--spinner-path--light);--digi--color--misc--skeleton:var(--digi--color--misc--skeleton--light);--digi--amethyst--500:#822998;--digi--granskott--150:#f2faf2;--digi--granskott--200:#ebf8eb;--digi--granskott--250:#ddf4dd;--digi--granskott--300:#cbecc9;--digi--granskott--350:#ace4ad;--digi--granskott--650:#1db920;--digi--granskott--700:#02a704;--digi--granskott--750:#018903;--digi--granskott--800:#016503;--digi--natthimmel--200:#e9f6fd;--digi--natthimmel--250:#ddf1fc;--digi--natthimmel--300:#c9e9fa;--digi--natthimmel--350:#abdef7;--digi--natthimmel--700:#043982;--digi--natthimmel--800:#091d54;--digi--natthimmel--900:#071744;--digi--norrsken--400:#aaf5ab;--digi--norrsken--500:#67ee6a;--digi--rallarros--300:#f8ddf5;--digi--rallarros--500:#ce1cbd;--digi--sapphire--500:#1616b2;--digi--color--logotype-color--light:var(--digi--granskott--700);--digi--color--infographic--lineart--light:var(--digi--grayscale--900);--digi--color--infographic--background--light:var(--digi--grayscale--0);--digi--color--infographic--brand--primary--light:var(--digi--granskott--700);--digi--color--infographic--brand--secondary--light:var(--digi--granskott--250);--digi--color--infographic--brand--tertiary--light:var(--digi--rallarros--500);--digi--color--text--primary--light:var(--digi--grayscale--900);--digi--color--text--secondary--light:var(--digi--grayscale--0);--digi--color--text--description--light:var(--digi--grayscale--800);--digi--color--text--interactive--primary--light:var(--digi--sapphire--500);--digi--color--text--interactive--secondary--light:var(--digi--grayscale--0);--digi--color--text--interactive--tertiary--light:var(--digi--grayscale--900);--digi--color--text--interactive--brand-primary--light:var(--digi--natthimmel--800);--digi--color--text--interactive--brand-secondary--light:var(--digi--norrsken--500);--digi--color--text--interactive--visited--light:var(--digi--amethyst--500);--digi--color--background--primary--light:var(--digi--grayscale--0);--digi--color--background--secondary--light:var(--digi--grayscale--100);--digi--color--background--secondary-muted--light:var(--digi--grayscale--50);--digi--color--background--secondary-accent--light:var(--digi--grayscale--400);--digi--color--background--pop-out--light:var(--digi--granskott--200);--digi--color--background--brand-primary--light:var(--digi--natthimmel--800);--digi--color--background--transparent--light:var(--digi--misc--transparent);--digi--color--background--notification--light:var(--digi--sentiment--error--500);--digi--color--background--interactive--default--primary--light:var(--digi--natthimmel--800);--digi--color--background--interactive--default--primary-inverted--light:var(--digi--norrsken--500);--digi--color--background--interactive--default--secondary--light:var(--digi--grayscale--0);--digi--color--background--interactive--default--secondary-inverted--light:var(--digi--misc--transparent);--digi--color--background--interactive--default--tertiary--light:var(--digi--grayscale--200);--digi--color--background--interactive--default--quaternary--light:var(--digi--grayscale--100);--digi--color--background--interactive--default--input-elements--light:var(--digi--grayscale--0);--digi--color--background--interactive--default--pop-out--light:var(--digi--granskott--150);--digi--color--background--interactive--hover--primary--light:var(--digi--natthimmel--700);--digi--color--background--interactive--hover--secondary--light:var(--digi--natthimmel--250);--digi--color--background--interactive--hover--tertiary--light:var(--digi--sapphire--500);--digi--color--background--interactive--hover--quarternary--light:var(--digi--grayscale--200);--digi--color--background--interactive--hover--inverted--light:var(--digi--norrsken--400);--digi--color--background--interactive--selected--primary--light:var(--digi--sentiment--success--500);--digi--color--background--interactive--selected--secondary--light:var(--digi--natthimmel--800);--digi--color--background--interactive--selected--tertiary--light:var(--digi--grayscale--200);--digi--color--background--interactive--selected--on-menu-minus-button--light:var(--digi--granskott--250);--digi--color--background--interactive--validation--success--light:var(--digi--sentiment--success--200);--digi--color--background--interactive--validation--warning--light:var(--digi--sentiment--warning--50);--digi--color--background--interactive--validation--error--light:var(--digi--sentiment--error--200);--digi--color--background--sentiment--error--primary--light:var(--digi--sentiment--error--500);--digi--color--background--sentiment--error--secondary--light:var(--digi--sentiment--error--700);--digi--color--background--sentiment--error--tertiary--light:var(--digi--sentiment--error--200);--digi--color--background--sentiment--success--primary--light:var(--digi--sentiment--success--500);--digi--color--background--sentiment--success--secondary--light:var(--digi--sentiment--success--700);--digi--color--background--sentiment--success--tertiary--light:var(--digi--sentiment--success--200);--digi--color--background--sentiment--warning--primary--light:var(--digi--sentiment--warning--500);--digi--color--background--sentiment--warning--secondary--light:var(--digi--sentiment--warning--700);--digi--color--background--sentiment--warning--tertiary--light:var(--digi--sentiment--warning--200);--digi--color--background--sentiment--warning--quarternary--light:var(--digi--sentiment--warning--50);--digi--color--background--sentiment--info--primary--light:var(--digi--sentiment--informative--500);--digi--color--background--sentiment--info--secondary--light:var(--digi--sentiment--informative--700);--digi--color--background--sentiment--info--tertiary--light:var(--digi--sentiment--informative--200);--digi--color--background--sentiment--neutral--primary--light:var(--digi--grayscale--700);--digi--color--background--sentiment--neutral--secondary--light:var(--digi--grayscale--400);--digi--color--background--sentiment--neutral--tertiary--light:var(--digi--grayscale--900);--digi--color--background--sentiment--beta--primary--light:var(--digi--rallarros--500);--digi--color--background--sentiment--beta--secondary--light:var(--digi--rallarros--300);--digi--color--border--notification--light:var(--digi--grayscale--0);--digi--color--border--transparent--light:var(--digi--misc--transparent);--digi--color--border--interactive--default--primary--light:var(--digi--natthimmel--800);--digi--color--border--interactive--default--on-input--light:var(--digi--grayscale--900);--digi--color--border--interactive--default--on-input-nuance--light:var(--digi--grayscale--800);--digi--color--border--interactive--default--inverted--light:var(--digi--norrsken--500);--digi--color--border--interactive--hover--primary--light:var(--digi--natthimmel--700);--digi--color--border--interactive--hover--secondary--light:var(--digi--natthimmel--800);--digi--color--border--interactive--hover--inverted--light:var(--digi--norrsken--400);--digi--color--border--interactive--validation--success--light:var(--digi--sentiment--success--500);--digi--color--border--interactive--validation--warning--light:var(--digi--sentiment--warning--900);--digi--color--border--interactive--validation--error--light:var(--digi--sentiment--error--500);--digi--color--border--interactive--selected--primary--light:var(--digi--sentiment--success--500);--digi--color--border--interactive--selected--secondary--light:var(--digi--natthimmel--800);--digi--color--border--sentiment--error--light:var(--digi--sentiment--error--500);--digi--color--border--sentiment--success--light:var(--digi--sentiment--success--500);--digi--color--border--sentiment--warning--light:var(--digi--sentiment--warning--500);--digi--color--border--sentiment--info--light:var(--digi--sentiment--informative--500);--digi--color--border--accent--primary--light:var(--digi--natthimmel--800);--digi--color--border--accent--secondary--light:var(--digi--granskott--700);--digi--color--marking--navigation--selected--light:var(--digi--granskott--700);--digi--color--marking--navigation--level-active--light:var(--digi--granskott--250);--digi--color--marking--navigation--level-inactive--light:var(--digi--grayscale--100);--digi--color--marking--indication--primary--light:var(--digi--sentiment--success--500);--digi--color--marking--indication--secondary--light:var(--digi--natthimmel--800);--digi--color--marking--indication--tertiary--light:var(--digi--grayscale--700);--digi--color--divider--primary--light:var(--digi--grayscale--400);--digi--color--divider--secondary--light:var(--digi--grayscale--200);--digi--color--divider--on-brand-primary--light:var(--digi--natthimmel--350);--digi--color--divider--cta--light:var(--digi--sapphire--500);--digi--color--icon--primary--light:var(--digi--grayscale--900);--digi--color--icon--secondary--light:var(--digi--grayscale--0);--digi--color--icon--cta--light:var(--digi--sapphire--500);--digi--color--icon--brand-primary--light:var(--digi--natthimmel--800);--digi--color--icon--brand-secondary--light:var(--digi--granskott--700);--digi--color--icon--validation--success--light:var(--digi--sentiment--success--500);--digi--color--icon--validation--warning--light:var(--digi--sentiment--warning--500);--digi--color--icon--validation--error--light:var(--digi--sentiment--error--500);--digi--color--misc--spinner-path--light:var(--digi--grayscale--400);--digi--color--misc--skeleton--light:var(--digi--grayscale--400);--digi--color--amber--200:#fff398;--digi--color--amber--50:#fffbdd;--digi--color--amber--500:#ffe200;--digi--color--amber--700:#ffc108;--digi--color--amber--900:#664d00;--digi--color--amethyst--500:#822998;--digi--color--forest--200:#e9f6ec;--digi--color--forest--500:#009322;--digi--color--forest--700:#02703c;--digi--color--indigo--200:#e9e9ff;--digi--color--indigo--500:#0000ff;--digi--color--indigo--700:#0058a3;--digi--color--jade--100:#bddfda;--digi--color--jade--200:#7fc1b6;--digi--color--jade--400:#379d8d;--digi--color--jade--50:#ddeeec;--digi--color--jade--500:#058470;--digi--color--jade--600:#046a5a;--digi--color--jade--700:#035548;--digi--color--jade--900:#02372f;--digi--color--leaf--100:#f1f7e5;--digi--color--leaf--200:#ddebc1;--digi--color--leaf--400:#aace65;--digi--color--leaf--500:#95c23e;--digi--color--leaf--600:#779b32;--digi--color--moon--0:#ffffff;--digi--color--pear--500:#b7ee4a;--digi--color--pear--600:#a7d943;--digi--color--rose--100:#f4cada;--digi--color--rose--200:#e997b7;--digi--color--rose--400:#dd5c8e;--digi--color--rose--50:#f9e4ec;--digi--color--rose--500:#d43372;--digi--color--rose--600:#bd2e65;--digi--color--rose--700:#882149;--digi--color--rose--900:#54172e;--digi--color--ruby--200:#fdeded;--digi--color--ruby--500:#da0000;--digi--color--ruby--700:#c7311a;--digi--color--sapphire--500:#1616b2;--digi--color--stratos--100:#dddde9;--digi--color--stratos--400:#33337b;--digi--color--stratos--500:#00005a;--digi--color--stratos--600:#000048;--digi--color--water--200:#f1f8fe;--digi--color--water--500:#bdd3e7;--digi--color--water--700:#0058a3;--digi--color--logotype-color--light--af18:var(--digi--color--leaf--500);--digi--color--infographic--lineart--light--af18:var(--digi--grayscale--900);--digi--color--infographic--background--light--af18:var(--digi--grayscale--0);--digi--color--infographic--brand--primary--light--af18:var(--digi--color--leaf--500);--digi--color--infographic--brand--secondary--light--af18:var(--digi--color--leaf--200);--digi--color--infographic--brand--tertiary--light--af18:var(--digi--color--rose--500);--digi--color--text--primary--light--af18:var(--digi--grayscale--900);--digi--color--text--secondary--light--af18:var(--digi--grayscale--0);--digi--color--text--description--light--af18:var(--digi--grayscale--800);--digi--color--text--interactive--primary--light--af18:var(--digi--color--sapphire--500);--digi--color--text--interactive--secondary--light--af18:var(--digi--grayscale--0);--digi--color--text--interactive--tertiary--light--af18:var(--digi--grayscale--900);--digi--color--text--interactive--brand-primary--light--af18:var(--digi--color--stratos--500);--digi--color--text--interactive--brand-secondary--light--af18:var(--digi--color--leaf--500);--digi--color--text--interactive--visited--light--af18:var(--digi--color--amethyst--500);--digi--color--background--primary--light--af18:var(--digi--grayscale--0);--digi--color--background--secondary--light--af18:var(--digi--grayscale--100);--digi--color--background--secondary-muted--light--af18:var(--digi--grayscale--50);--digi--color--background--secondary-accent--light--af18:var(--digi--grayscale--400);--digi--color--background--pop-out--light--af18:var(--digi--color--leaf--100);--digi--color--background--brand-primary--light--af18:var(--digi--color--stratos--500);--digi--color--background--transparent--light--af18:var(--digi--misc--transparent);--digi--color--background--notification--light--af18:var(--digi--sentiment--error--500);--digi--color--background--interactive--default--primary--light--af18:var(--digi--color--stratos--500);--digi--color--background--interactive--default--primary-inverted--light--af18:var(--digi--color--leaf--500);--digi--color--background--interactive--default--secondary--light--af18:var(--digi--grayscale--0);--digi--color--background--interactive--default--secondary-inverted--light--af18:var(--digi--misc--transparent);--digi--color--background--interactive--default--tertiary--light--af18:var(--digi--grayscale--200);--digi--color--background--interactive--default--quaternary--light--af18:var(--digi--grayscale--100);--digi--color--background--interactive--default--input-elements--light--af18:var(--digi--grayscale--0);--digi--color--background--interactive--default--pop-out--light--af18:var(--digi--color--leaf--100);--digi--color--background--interactive--hover--primary--light--af18:var(--digi--color--water--700);--digi--color--background--interactive--hover--secondary--light--af18:var(--digi--color--water--500);--digi--color--background--interactive--hover--tertiary--light--af18:var(--digi--color--sapphire--500);--digi--color--background--interactive--hover--quarternary--light--af18:var(--digi--grayscale--200);--digi--color--background--interactive--hover--inverted--light--af18:var(--digi--color--pear--500);--digi--color--background--interactive--selected--primary--light--af18:var(--digi--sentiment--success--500);--digi--color--background--interactive--selected--secondary--light--af18:var(--digi--color--stratos--500);--digi--color--background--interactive--selected--tertiary--light--af18:var(--digi--grayscale--200);--digi--color--background--interactive--selected--on-menu-minus-button--light--af18:var(--digi--color--leaf--200);--digi--color--background--interactive--validation--success--light--af18:var(--digi--sentiment--success--200);--digi--color--background--interactive--validation--warning--light--af18:var(--digi--sentiment--warning--50);--digi--color--background--interactive--validation--error--light--af18:var(--digi--sentiment--error--200);--digi--color--background--sentiment--error--primary--light--af18:var(--digi--sentiment--error--500);--digi--color--background--sentiment--error--secondary--light--af18:var(--digi--sentiment--error--700);--digi--color--background--sentiment--error--tertiary--light--af18:var(--digi--sentiment--error--200);--digi--color--background--sentiment--success--primary--light--af18:var(--digi--sentiment--success--500);--digi--color--background--sentiment--success--secondary--light--af18:var(--digi--sentiment--success--700);--digi--color--background--sentiment--success--tertiary--light--af18:var(--digi--sentiment--success--200);--digi--color--background--sentiment--warning--primary--light--af18:var(--digi--sentiment--warning--500);--digi--color--background--sentiment--warning--secondary--light--af18:var(--digi--sentiment--warning--700);--digi--color--background--sentiment--warning--tertiary--light--af18:var(--digi--sentiment--warning--200);--digi--color--background--sentiment--warning--quarternary--light--af18:var(--digi--sentiment--warning--50);--digi--color--background--sentiment--info--primary--light--af18:var(--digi--sentiment--informative--500);--digi--color--background--sentiment--info--secondary--light--af18:var(--digi--sentiment--informative--700);--digi--color--background--sentiment--info--tertiary--light--af18:var(--digi--sentiment--informative--200);--digi--color--background--sentiment--neutral--primary--light--af18:var(--digi--grayscale--700);--digi--color--background--sentiment--neutral--secondary--light--af18:var(--digi--grayscale--400);--digi--color--background--sentiment--neutral--tertiary--light--af18:var(--digi--grayscale--900);--digi--color--background--sentiment--beta--primary--light--af18:var(--digi--color--rose--500);--digi--color--background--sentiment--beta--secondary--light--af18:var(--digi--color--rose--100);--digi--color--border--notification--light--af18:var(--digi--grayscale--0);--digi--color--border--transparent--light--af18:var(--digi--misc--transparent);--digi--color--border--interactive--default--primary--light--af18:var(--digi--color--stratos--500);--digi--color--border--interactive--default--on-input--light--af18:var(--digi--grayscale--900);--digi--color--border--interactive--default--on-input-nuance--light--af18:var(--digi--grayscale--800);--digi--color--border--interactive--default--inverted--light--af18:var(--digi--color--leaf--500);--digi--color--border--interactive--hover--primary--light--af18:var(--digi--color--water--700);--digi--color--border--interactive--hover--secondary--light--af18:var(--digi--color--stratos--500);--digi--color--border--interactive--hover--inverted--light--af18:var(--digi--color--pear--500);--digi--color--border--interactive--validation--success--light--af18:var(--digi--sentiment--success--500);--digi--color--border--interactive--validation--warning--light--af18:var(--digi--sentiment--warning--900);--digi--color--border--interactive--validation--error--light--af18:var(--digi--sentiment--error--500);--digi--color--border--interactive--selected--primary--light--af18:var(--digi--sentiment--success--500);--digi--color--border--interactive--selected--secondary--light--af18:var(--digi--color--stratos--500);--digi--color--border--sentiment--error--light--af18:var(--digi--sentiment--error--500);--digi--color--border--sentiment--success--light--af18:var(--digi--sentiment--success--500);--digi--color--border--sentiment--warning--light--af18:var(--digi--sentiment--warning--500);--digi--color--border--sentiment--info--light--af18:var(--digi--sentiment--informative--500);--digi--color--border--accent--primary--light--af18:var(--digi--color--stratos--500);--digi--color--border--accent--secondary--light--af18:var(--digi--color--leaf--500);--digi--color--marking--navigation--selected--light--af18:var(--digi--color--leaf--500);--digi--color--marking--navigation--level-active--light--af18:var(--digi--color--leaf--200);--digi--color--marking--navigation--level-inactive--light--af18:var(--digi--grayscale--100);--digi--color--marking--indication--primary--light--af18:var(--digi--sentiment--success--500);--digi--color--marking--indication--secondary--light--af18:var(--digi--color--stratos--500);--digi--color--marking--indication--tertiary--light--af18:var(--digi--grayscale--700);--digi--color--divider--primary--light--af18:var(--digi--grayscale--400);--digi--color--divider--secondary--light--af18:var(--digi--grayscale--200);--digi--color--divider--on-brand-primary--light--af18:var(--digi--color--stratos--400);--digi--color--divider--cta--light--af18:var(--digi--color--sapphire--500);--digi--color--icon--primary--light--af18:var(--digi--grayscale--900);--digi--color--icon--secondary--light--af18:var(--digi--grayscale--0);--digi--color--icon--cta--light--af18:var(--digi--color--sapphire--500);--digi--color--icon--brand-primary--light--af18:var(--digi--color--stratos--500);--digi--color--icon--brand-secondary--light--af18:var(--digi--color--leaf--500);--digi--color--icon--validation--success--light--af18:var(--digi--sentiment--success--500);--digi--color--icon--validation--warning--light--af18:var(--digi--sentiment--warning--500);--digi--color--icon--validation--error--light--af18:var(--digi--sentiment--error--500);--digi--color--misc--spinner-path--light--af18:var(--digi--grayscale--400);--digi--color--misc--skeleton--light--af18:var(--digi--grayscale--400)}body.sc-digi-calendar-datepicker{font-size:1rem;font-family:\"Open Sans\", Arial, sans-serif}.sc-digi-calendar-datepicker-h{--digi--datepicker--max-width:18.75rem;--digi--datepicker--border-radius:0.25rem;--digi--datepicker--calendar--max-width:20.25rem;--digi--datepicker--calendar--show-week--max-width:23.375rem;--digi--datepicker--calendar-shadow:0 0.125rem 0.375rem 0 rgba(0, 0, 0, 0.7);--digi--datepicker--calendar--background-color:var(--digi--color--background--interactive--default--secondary);--digi--datepicker--input-icon--width:1.125rem;--digi--datepicker--input-icon--horizontal-padding:1.25rem;--digi--datepicker--input-icon--vertical-padding:var(--digi--global--spacing--smallest-2);--digi--datepicker--input--inline-start:var(--digi--gutter--medium);--digi--datepicker--input--inline-end:calc(var(--digi--datepicker--input-icon--width) + var(--digi--datepicker--input-icon--horizontal-padding) * 2);box-sizing:content-box}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker{position:relative;max-width:var(--digi--datepicker--max-width)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__inactive.sc-digi-calendar-datepicker{--digi--form-input--background--empty:var(\n --digi--datepicker--input--inactive-background\n )}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker{position:absolute;top:0px;bottom:0px;right:0px;background:none;color:inherit;border:none;padding:0;font:inherit;outline:inherit;cursor:pointer}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker .digi-calendar-datepicker__button-icon.sc-digi-calendar-datepicker{box-sizing:content-box;width:var(--digi--datepicker--input-icon--width);padding:var(--digi--datepicker--input-icon--vertical-padding) var(--digi--datepicker--input-icon--horizontal-padding)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-field.sc-digi-calendar-datepicker .digi-calendar-datepicker__input-button.sc-digi-calendar-datepicker:focus-visible{outline:2px solid black;outline-offset:2px;box-shadow:0px 0px 0px 5px white}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{max-width:var(--digi--datepicker--calendar--max-width);height:0px;border-radius:var(--digi--datepicker--border-radius);overflow:hidden;z-index:1}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__show-week-numbers.sc-digi-calendar-datepicker .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{max-width:var(--digi--datepicker--calendar--show-week--max-width)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__show-error.sc-digi-calendar-datepicker .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{margin-top:var(--digi--gutter--medium)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__show-calendar.sc-digi-calendar-datepicker .digi-calendar-datepicker__calendar.sc-digi-calendar-datepicker{height:auto;background-color:var(--digi--datepicker--calendar--background-color);box-shadow:var(--digi--datepicker--calendar-shadow);position:absolute}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__input-component.sc-digi-calendar-datepicker{--digi--form-input--padding:0 var(--digi--datepicker--input--inline-end)\n 0 var(--digi--datepicker--input--inline-start)}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__selected-date-alert.sc-digi-calendar-datepicker{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}.sc-digi-calendar-datepicker-h .digi-calendar-datepicker__sr-instructions.sc-digi-calendar-datepicker{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}";
|
|
2179
|
-
const DigiCalendarDatepickerStyle0 = calendarDatepickerCss;
|
|
2180
|
-
|
|
2181
|
-
const CalendarDatepicker = class {
|
|
2182
|
-
constructor(hostRef) {
|
|
2183
|
-
index$2.registerInstance(this, hostRef);
|
|
2184
|
-
this.afOnDateChange = index$2.createEvent(this, "afOnDateChange", 7);
|
|
2185
|
-
this.futureYears = 10;
|
|
2186
|
-
this.screenReaderUpdateTrigger = false;
|
|
2187
|
-
this.showWrongFormatError = false;
|
|
2188
|
-
this.showDisabledDateError = false;
|
|
2189
|
-
this.showCalendar = false;
|
|
2190
|
-
this.userInput = '';
|
|
2191
|
-
this.afId = randomIdGenerator_util.randomIdGenerator('digi-calendar-datepicker');
|
|
2192
|
-
this.afLabel = text._t.calendar.datepicker.label;
|
|
2193
|
-
this.afLabelDescription = text._t.calendar.datepicker.description;
|
|
2194
|
-
this.afOpenCalendarAriaLabel = text._t.calendar.datepicker.openCalendarAriaLabel;
|
|
2195
|
-
this.afCloseCalendarAriaLabel = text._t.calendar.datepicker.closeCalendarAriaLabel;
|
|
2196
|
-
this.afValidation = typographyVariation_enum.CalendarDatepickerValidation.NEUTRAL;
|
|
2197
|
-
this.afValidationText = undefined;
|
|
2198
|
-
this.afInvalid = false;
|
|
2199
|
-
this.afValidationMessage = text._t.calendar.datepicker.validationMessage;
|
|
2200
|
-
this.afValidationWrongFormat = text._t.calendar.datepicker.validationWrongFormat;
|
|
2201
|
-
this.afValidationDisabledDate = text._t.calendar.datepicker.validationDisabledDate;
|
|
2202
|
-
this.afRequired = undefined;
|
|
2203
|
-
this.afDisableValidation = undefined;
|
|
2204
|
-
this.afRequiredText = undefined;
|
|
2205
|
-
this.afSelectedDates = [];
|
|
2206
|
-
this.value = [];
|
|
2207
|
-
this.afMinDate = undefined;
|
|
2208
|
-
this.afMaxDate = undefined;
|
|
2209
|
-
this.afShowWeekNumber = false;
|
|
2210
|
-
this.afMultipleDates = false;
|
|
2211
|
-
this.afCloseOnSelect = false;
|
|
2212
|
-
}
|
|
2213
|
-
valueChangeHandler(newVal) {
|
|
2214
|
-
if (this.afDisableValidation && this.afSelectedDates.length > 0) {
|
|
2215
|
-
this.afSelectedDates = [];
|
|
2216
|
-
}
|
|
2217
|
-
/**
|
|
2218
|
-
* Behövde lägga till den här förändringen för att angular med value accessor betedde sig märkligt vid onBlur av input-fält. Den reagerade när man lämnade fältet även fast fältet var tomt (pratar om watchern). Så behövde bygga en guard/gatekeeper som kontrollerar värdet först. Ska inte påverka manuell-, eller autovalidering.
|
|
2219
|
-
*/
|
|
2220
|
-
if (Array.isArray(newVal) &&
|
|
2221
|
-
newVal.every((d) => d instanceof Date && !isNaN(d.getTime()))) {
|
|
2222
|
-
this.afSelectedDates = newVal;
|
|
2223
|
-
this.userInput = '';
|
|
2224
|
-
}
|
|
2225
|
-
}
|
|
2226
|
-
afMultipleDatesChangeHandler() {
|
|
2227
|
-
var _a;
|
|
2228
|
-
if (!this.afMultipleDates && this.afSelectedDates.length > 1) {
|
|
2229
|
-
this.afSelectedDates = this.afSelectedDates.slice(-1);
|
|
2230
|
-
this.value = (_a = this.afSelectedDates) !== null && _a !== void 0 ? _a : [];
|
|
2231
|
-
}
|
|
2232
|
-
}
|
|
2233
|
-
clickHandler(e) {
|
|
2234
|
-
const target = e.target;
|
|
2235
|
-
const selector = `#${this.afId}-datepicker`;
|
|
2236
|
-
if (detectClickOutside_util.detectClickOutside(target, selector)) {
|
|
2237
|
-
this.showCalendar = false;
|
|
2238
|
-
}
|
|
2239
|
-
}
|
|
2240
|
-
connectedCallback() {
|
|
2241
|
-
this.hostElement.addEventListener('keyup', this.keyUpHandler.bind(this));
|
|
2242
|
-
}
|
|
2243
|
-
disconnectedCallback() {
|
|
2244
|
-
this.hostElement.removeEventListener('keyup', this.keyUpHandler.bind(this));
|
|
2245
|
-
}
|
|
2246
|
-
componentDidLoad() {
|
|
2247
|
-
var _a;
|
|
2248
|
-
if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2249
|
-
this.setValue(this.value);
|
|
2250
|
-
}
|
|
2251
|
-
}
|
|
2252
|
-
get cssModifiers() {
|
|
2253
|
-
return {
|
|
2254
|
-
'digi-calendar-datepicker__show-week-numbers': this.afShowWeekNumber,
|
|
2255
|
-
'digi-calendar-datepicker__show-error': this.getShowError(),
|
|
2256
|
-
'digi-calendar-datepicker__show-calendar': this.showCalendar
|
|
2257
|
-
};
|
|
2258
|
-
}
|
|
2259
|
-
keyUpHandler(e) {
|
|
2260
|
-
if (e.key === 'Escape' && this.showCalendar) {
|
|
2261
|
-
this.showCalendar = false;
|
|
2262
|
-
this.focusOnCalendarButton();
|
|
2263
|
-
e.stopPropagation();
|
|
2264
|
-
}
|
|
2265
|
-
}
|
|
2266
|
-
focusOnCalendarButton() {
|
|
2267
|
-
const calendarButton = this.hostElement.querySelector(`#${this.afId}-button`);
|
|
2268
|
-
calendarButton.focus();
|
|
2269
|
-
}
|
|
2270
|
-
toggleCalendar() {
|
|
2271
|
-
this.showCalendar = !this.showCalendar;
|
|
2272
|
-
if (this.showCalendar) {
|
|
2273
|
-
this.screenReaderUpdateTrigger = !this.screenReaderUpdateTrigger;
|
|
2274
|
-
}
|
|
2275
|
-
}
|
|
2276
|
-
parseInputString(value) {
|
|
2277
|
-
return value
|
|
2278
|
-
.split(/[&,]|och/g)
|
|
2279
|
-
.map((text) => this.parseDateString(text.trim()));
|
|
2280
|
-
}
|
|
2281
|
-
resetValueAndState() {
|
|
2282
|
-
this.showWrongFormatError = false;
|
|
2283
|
-
this.showDisabledDateError = false;
|
|
2284
|
-
this.setValue([]);
|
|
2285
|
-
this.afOnDateChange.emit(['']);
|
|
2286
|
-
this.afSelectedDates = [];
|
|
2287
|
-
}
|
|
2288
|
-
validateInputAndShowErrors(dates) {
|
|
2289
|
-
this.showWrongFormatError = !!dates.find((date) => !index.isValid(date));
|
|
2290
|
-
this.showDisabledDateError = !!dates.find((date) => !this.isDateSelectable(date));
|
|
2291
|
-
}
|
|
2292
|
-
setValue(value) {
|
|
2293
|
-
this.afSelectedDates = value;
|
|
2294
|
-
this.value = value;
|
|
2295
|
-
}
|
|
2296
|
-
/*
|
|
2297
|
-
|
|
2298
|
-
Metoden tar både Stencil-specifika och vanliga DOM-event, extraherar texten användaren matat in, hanterar tom inmatning, parsar till Date[], kör intern validering, uppdaterar komponentens state och slutligen emitterar alltid en string[] med exakt det användaren skrev – vilket gör det smidigare för Angular-value-accessorn att jobba vidare med.
|
|
2299
|
-
|
|
2300
|
-
*/
|
|
2301
|
-
parseInput(evt) {
|
|
2302
|
-
let newValue = '';
|
|
2303
|
-
if (evt.detail && typeof evt.detail.value === 'string') {
|
|
2304
|
-
newValue = evt.detail.value;
|
|
2305
|
-
}
|
|
2306
|
-
else if (evt.target && evt.target.value != null) {
|
|
2307
|
-
newValue = evt.target.value;
|
|
2308
|
-
}
|
|
2309
|
-
this.userInput = newValue;
|
|
2310
|
-
if (newValue === '') {
|
|
2311
|
-
this.resetValueAndState();
|
|
2312
|
-
return;
|
|
2313
|
-
}
|
|
2314
|
-
const dates = this.parseInputString(newValue);
|
|
2315
|
-
this.setValue(dates); // target.value
|
|
2316
|
-
if (!this.afDisableValidation) {
|
|
2317
|
-
this.validateInputAndShowErrors(dates);
|
|
2318
|
-
if (this.getShowError()) {
|
|
2319
|
-
this.afOnDateChange.emit([]);
|
|
2320
|
-
}
|
|
2321
|
-
else {
|
|
2322
|
-
this.afOnDateChange.emit(this.afSelectedDates);
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
else {
|
|
2326
|
-
const dateStrs = newValue.split(/[&,]|och/g).map((s) => s.trim());
|
|
2327
|
-
this.afOnDateChange.emit([...dateStrs]); // evt.detail
|
|
2328
|
-
}
|
|
2329
|
-
}
|
|
2330
|
-
parseCalendar(evt) {
|
|
2331
|
-
if (!(evt === null || evt === void 0 ? void 0 : evt.detail))
|
|
2332
|
-
return;
|
|
2333
|
-
if (!this.afDisableValidation) {
|
|
2334
|
-
this.afInvalid = false;
|
|
2335
|
-
this.showWrongFormatError = false;
|
|
2336
|
-
this.showDisabledDateError = false;
|
|
2337
|
-
}
|
|
2338
|
-
this.userInput = '';
|
|
2339
|
-
this.setValue(evt.detail);
|
|
2340
|
-
if (this.afCloseOnSelect) {
|
|
2341
|
-
this.toggleCalendar();
|
|
2342
|
-
this.focusOnCalendarButton();
|
|
2343
|
-
}
|
|
2344
|
-
this.afOnDateChange.emit(this.afSelectedDates);
|
|
2345
|
-
}
|
|
2346
|
-
/*
|
|
2347
|
-
|
|
2348
|
-
Metoden överskrider JavaScripts inbyggda "isValid"-funktion, då den tillåter att ex., "1" är rätt format medans ex., "13" är fel format vid YYYY-MM-DD krav på inmatat format.
|
|
2349
|
-
|
|
2350
|
-
*/
|
|
2351
|
-
parseDateString(s) {
|
|
2352
|
-
const raw = s.trim().replace(/[./]/g, '-');
|
|
2353
|
-
// 1) yyyy-MM-dd
|
|
2354
|
-
if (/^\d{4}-\d{2}-\d{2}$/.test(raw)) {
|
|
2355
|
-
const d = parse(raw, 'yyyy-MM-dd', new Date());
|
|
2356
|
-
return index.isValid(d) ? d : new Date(NaN);
|
|
2357
|
-
}
|
|
2358
|
-
// 2) yyyymmdd
|
|
2359
|
-
if (/^\d{8}$/.test(raw)) {
|
|
2360
|
-
const yyyy = raw.slice(0, 4);
|
|
2361
|
-
const mm = raw.slice(4, 6);
|
|
2362
|
-
const dd = raw.slice(6, 8);
|
|
2363
|
-
const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
|
|
2364
|
-
return index.isValid(d) ? d : new Date(NaN);
|
|
2365
|
-
}
|
|
2366
|
-
// 3) yymmdd (map to full year using the previous futureYears logic)
|
|
2367
|
-
if (/^\d{6}$/.test(raw)) {
|
|
2368
|
-
const yy = raw.slice(0, 2);
|
|
2369
|
-
const mm = raw.slice(2, 4);
|
|
2370
|
-
const dd = raw.slice(4, 6);
|
|
2371
|
-
const yyyy = this.getFullYear(yy);
|
|
2372
|
-
const d = parse(`${yyyy}-${mm}-${dd}`, 'yyyy-MM-dd', new Date());
|
|
2373
|
-
return index.isValid(d) ? d : new Date(NaN);
|
|
2374
|
-
}
|
|
2375
|
-
// Everything else is invalid (so "1" and "25" will now be "Fel format")
|
|
2376
|
-
return new Date(NaN);
|
|
2377
|
-
}
|
|
2378
|
-
getFullYear(s) {
|
|
2379
|
-
if (s.length === 4)
|
|
2380
|
-
return s;
|
|
2381
|
-
const y = new Date().getFullYear().toString();
|
|
2382
|
-
return parseInt(s) > parseInt(y.slice(-2)) + this.futureYears
|
|
2383
|
-
? parseInt(y.slice(0, -2)) - 1 + s
|
|
2384
|
-
: y.slice(0, -2) + s;
|
|
2385
|
-
}
|
|
2386
|
-
isDateSelectable(date) {
|
|
2387
|
-
if (this.afMinDate && this.isBefore(date, this.afMinDate))
|
|
2388
|
-
return false;
|
|
2389
|
-
if (this.afMaxDate && this.isAfter(date, this.afMaxDate))
|
|
2390
|
-
return false;
|
|
2391
|
-
return true;
|
|
2392
|
-
}
|
|
2393
|
-
isBefore(a, b) {
|
|
2394
|
-
return index$3.isBefore(this.dateWithoutTime(a), this.dateWithoutTime(b));
|
|
2395
|
-
}
|
|
2396
|
-
isAfter(a, b) {
|
|
2397
|
-
return index$3.isAfter(this.dateWithoutTime(a), this.dateWithoutTime(b));
|
|
2398
|
-
}
|
|
2399
|
-
dateWithoutTime(date) {
|
|
2400
|
-
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
2401
|
-
}
|
|
2402
|
-
getShowError() {
|
|
2403
|
-
return (this.afInvalid || this.showWrongFormatError || this.showDisabledDateError);
|
|
2404
|
-
}
|
|
2405
|
-
getErrorText() {
|
|
2406
|
-
var _a;
|
|
2407
|
-
if (this.afInvalid) {
|
|
2408
|
-
return (_a = this.afValidationText) !== null && _a !== void 0 ? _a : this.afValidationMessage;
|
|
2409
|
-
}
|
|
2410
|
-
return this.showWrongFormatError
|
|
2411
|
-
? this.afValidationWrongFormat
|
|
2412
|
-
: this.afValidationDisabledDate;
|
|
2413
|
-
}
|
|
2414
|
-
get inputValue() {
|
|
2415
|
-
if (this.userInput !== '') {
|
|
2416
|
-
return this.userInput;
|
|
2417
|
-
}
|
|
2418
|
-
// otherwise format your real selected dates
|
|
2419
|
-
const sorted = this.afSelectedDates
|
|
2420
|
-
.slice()
|
|
2421
|
-
.sort((a, b) => (this.isBefore(a, b) ? -1 : 1));
|
|
2422
|
-
return this.datesToInputString(sorted);
|
|
2423
|
-
}
|
|
2424
|
-
datesToInputString(dates) {
|
|
2425
|
-
return dates.every((date) => date instanceof Date && !isNaN(date.getTime()))
|
|
2426
|
-
? dates
|
|
2427
|
-
.map((date) => date.toLocaleDateString('sv-SE'))
|
|
2428
|
-
.flatMap((date, index, all) => {
|
|
2429
|
-
const isLast = index == all.length - 1;
|
|
2430
|
-
const isFirst = index === 0;
|
|
2431
|
-
if (isFirst) {
|
|
2432
|
-
return date;
|
|
2433
|
-
}
|
|
2434
|
-
else if (isLast) {
|
|
2435
|
-
return [' och ', date];
|
|
2436
|
-
}
|
|
2437
|
-
else {
|
|
2438
|
-
return [', ', date];
|
|
2439
|
-
}
|
|
2440
|
-
})
|
|
2441
|
-
.join('')
|
|
2442
|
-
: '';
|
|
2443
|
-
}
|
|
2444
|
-
get getSelectedDates() {
|
|
2445
|
-
if (this.afDisableValidation && this.getShowError()) {
|
|
2446
|
-
return this.afSelectedDates;
|
|
2447
|
-
}
|
|
2448
|
-
if (this.getShowError()) {
|
|
2449
|
-
return [];
|
|
2450
|
-
}
|
|
2451
|
-
return this.afSelectedDates;
|
|
2452
|
-
}
|
|
2453
|
-
render() {
|
|
2454
|
-
return (index$2.h(index$2.Host, { key: '8112725ba8c875e94cc556da8921a74390d9c31e' }, index$2.h("div", { key: '4c3df5468b902a4d26fea152ebaeaea0c9bf3dd9', class: Object.assign({ 'digi-calendar-datepicker': true }, this.cssModifiers), id: `${this.afId}-datepicker` }, index$2.h("div", { key: 'bcc79305b5bb0911e5f33f2ca8641ba1a3a5c588', class: "digi-calendar-datepicker__input-field" }, index$2.h("digi-form-input", { key: 'cfe6189b8a529db4bda725f483ec899fe66b87cc', class: 'digi-calendar-datepicker__input-component', afLabel: this.afLabel, afLabelDescription: this.afLabelDescription, afValue: this.inputValue, afValidation: this.getShowError()
|
|
2455
|
-
? formInputVariation_enum.FormInputValidation.ERROR
|
|
2456
|
-
: formInputVariation_enum.FormInputValidation.NEUTRAL, afValidationText: this.getErrorText(), afId: this.afId, afAriaDescribedby: `${this.afId}--validation-message`, afRequired: this.afRequired, afRequiredText: this.afRequiredText, onAfOnChange: (evt) => {
|
|
2457
|
-
evt.stopImmediatePropagation();
|
|
2458
|
-
this.parseInput(evt);
|
|
2459
|
-
} }, index$2.h("button", { key: '3126acc01f2f9aef0a02990ef22acbde7c3ed3c7', id: this.afId + '-button', class: "digi-calendar-datepicker__input-button", slot: "button", "aria-label": this.showCalendar
|
|
2460
|
-
? this.afCloseCalendarAriaLabel
|
|
2461
|
-
: this.afOpenCalendarAriaLabel, "aria-controls": "calendar-popup", "aria-expanded": this.showCalendar ? 'true' : 'false', onClick: () => this.toggleCalendar(), type: "button" }, index$2.h("digi-icon-calendar-alt", { key: 'b48fc72cea6c3a94bd9821f2ec9416a4707e13d1', class: "digi-calendar-datepicker__button-icon", slot: "icon" })))), index$2.h("div", { key: 'd7c78a170d2d855cca3c001427d1c64ebab48fb3', class: "digi-calendar-datepicker__calendar", id: "calendar-popup" }, index$2.h("p", { key: '5651e12f6e3e06bfc879bb5c2aaf9920f9faf2e7', role: "alert", class: "digi-calendar-datepicker__sr-instructions" }, this.showCalendar
|
|
2462
|
-
? `${text._t.calendar.screenReaderInstructions}${this.screenReaderUpdateTrigger ? '\u200B' : ''}`
|
|
2463
|
-
: ''), index$2.h("digi-calendar", { key: '952ce82bb05beae68436d6a1a86bb00fefa2c3cb', afActive: this.showCalendar, afShowWeekNumber: this.afShowWeekNumber, afMultipleDates: this.afMultipleDates, afSelectedDates: this.getSelectedDates, afMinDate: this.afMinDate, afMaxDate: this.afMaxDate, "aria-hidden": !this.showCalendar, onAfOnDateSelectedChange: (evt) => {
|
|
2464
|
-
evt.stopImmediatePropagation();
|
|
2465
|
-
this.parseCalendar(evt);
|
|
2466
|
-
}, onAfOnFocusOutside: (evt) => {
|
|
2467
|
-
if (this.showCalendar) {
|
|
2468
|
-
const relatedTarget = evt.detail.relatedTarget;
|
|
2469
|
-
if (!relatedTarget)
|
|
2470
|
-
return;
|
|
2471
|
-
evt.preventDefault();
|
|
2472
|
-
const isDateButton = relatedTarget.classList.contains('digi-calendar__date');
|
|
2473
|
-
const isToggleButton = relatedTarget.id === `${this.afId}-button`;
|
|
2474
|
-
if (isDateButton) {
|
|
2475
|
-
this.focusOnCalendarButton();
|
|
2476
|
-
}
|
|
2477
|
-
else if (isToggleButton) {
|
|
2478
|
-
const focusableDateButton = this.hostElement.querySelector('.digi-calendar__date[tabindex="0"]');
|
|
2479
|
-
focusableDateButton === null || focusableDateButton === void 0 ? void 0 : focusableDateButton.focus();
|
|
2480
|
-
}
|
|
2481
|
-
}
|
|
2482
|
-
} })), this.afCloseOnSelect && !this.afMultipleDates && (index$2.h("div", { key: '53f3d90d7a8864b323f9e23ffaf78330babf191e', class: "digi-calendar-datepicker__selected-date-alert", role: "alert" }, this.afSelectedDates.length > 0
|
|
2483
|
-
? `${text._t.calendar.datepicker.selectedDate}: ${this.datesToInputString(this.afSelectedDates)}`
|
|
2484
|
-
: '')))));
|
|
2485
|
-
}
|
|
2486
|
-
get hostElement() { return index$2.getElement(this); }
|
|
2487
|
-
static get watchers() { return {
|
|
2488
|
-
"value": ["valueChangeHandler"],
|
|
2489
|
-
"afMultipleDates": ["afMultipleDatesChangeHandler"]
|
|
2490
|
-
}; }
|
|
2491
|
-
};
|
|
2492
|
-
CalendarDatepicker.style = DigiCalendarDatepickerStyle0;
|
|
2493
|
-
|
|
2494
|
-
exports.digi_calendar_datepicker = CalendarDatepicker;
|