@telia-ace/alliance-ui 1.0.14-next.1 → 1.0.15-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -2
- package/components/alliance-link.d.ts +2 -0
- package/components/alliance-link.js +4 -150
- package/components/alliance-link.js.map +1 -1
- package/components/alliance-modal.d.ts +12 -0
- package/components/alliance-modal.js +7 -237
- package/components/alliance-modal.js.map +1 -1
- package/components/alliance-paginator.d.ts +13 -0
- package/components/alliance-paginator.js +6 -308
- package/components/alliance-paginator.js.map +1 -1
- package/components/alliance-table.d.ts +2 -0
- package/components/alliance-table.js +6 -144
- package/components/alliance-table.js.map +1 -1
- package/components/alliance-view.d.ts +32 -0
- package/components/alliance-view.js +291 -0
- package/components/alliance-view.js.map +1 -0
- package/components/chunk-ADFC4JKF.js +315 -0
- package/components/chunk-ADFC4JKF.js.map +1 -0
- package/components/chunk-B6YHD7BN.js +4 -0
- package/components/chunk-B6YHD7BN.js.map +1 -0
- package/components/chunk-JQ76TOQT.js +4 -0
- package/components/chunk-JQ76TOQT.js.map +1 -0
- package/components/chunk-LYU2K33W.js +464 -0
- package/components/chunk-LYU2K33W.js.map +1 -0
- package/components/chunk-NB6ODBZJ.js +13 -0
- package/components/chunk-NB6ODBZJ.js.map +1 -0
- package/components/chunk-P2AWWJPH.js +3 -0
- package/components/chunk-P2AWWJPH.js.map +1 -0
- package/components/chunk-WYQTL7R3.js +167 -0
- package/components/chunk-WYQTL7R3.js.map +1 -0
- package/components/chunk-XPHFAKEI.js +164 -0
- package/components/chunk-XPHFAKEI.js.map +1 -0
- package/components/index.d.ts +2 -6
- package/components/index.js +10 -18
- package/components/index.js.map +1 -1
- package/package.json +9 -13
- package/voca/components/telia-accordion-item.d.ts +1 -1
- package/voca/components/telia-accordion-item.js +3 -70
- package/voca/components/telia-accordion-item.js.map +1 -1
- package/voca/components/telia-accordion.d.ts +2 -1
- package/voca/components/telia-accordion.js +3 -104
- package/voca/components/telia-accordion.js.map +1 -1
- package/voca/components/telia-badge.d.ts +2 -1
- package/voca/components/telia-badge.js +3 -83
- package/voca/components/telia-badge.js.map +1 -1
- package/voca/components/telia-button.d.ts +2 -1
- package/voca/components/telia-button.js +3 -6
- package/voca/components/telia-button.js.map +1 -1
- package/voca/components/telia-card-frame-link.d.ts +2 -1
- package/voca/components/telia-card-frame-link.js +3 -46
- package/voca/components/telia-card-frame-link.js.map +1 -1
- package/voca/components/telia-card-frame.d.ts +2 -1
- package/voca/components/telia-card-frame.js +3 -4
- package/voca/components/telia-card-frame.js.map +1 -1
- package/voca/components/telia-checkbox.d.ts +2 -1
- package/voca/components/telia-checkbox.js +3 -102
- package/voca/components/telia-checkbox.js.map +1 -1
- package/voca/components/telia-chip-choice.d.ts +2 -1
- package/voca/components/telia-chip-choice.js +3 -70
- package/voca/components/telia-chip-choice.js.map +1 -1
- package/voca/components/telia-chip-filter.d.ts +2 -1
- package/voca/components/telia-chip-filter.js +3 -50
- package/voca/components/telia-chip-filter.js.map +1 -1
- package/voca/components/telia-col.d.ts +2 -1
- package/voca/components/telia-col.js +3 -47
- package/voca/components/telia-col.js.map +1 -1
- package/voca/components/telia-color-dot.d.ts +2 -1
- package/voca/components/telia-color-dot.js +3 -39
- package/voca/components/telia-color-dot.js.map +1 -1
- package/voca/components/telia-counter-badge.d.ts +2 -1
- package/voca/components/telia-counter-badge.js +3 -45
- package/voca/components/telia-counter-badge.js.map +1 -1
- package/voca/components/telia-cta-link.d.ts +2 -1
- package/voca/components/telia-cta-link.js +3 -58
- package/voca/components/telia-cta-link.js.map +1 -1
- package/voca/components/telia-date-picker.d.ts +2 -1
- package/voca/components/telia-date-picker.js +3 -591
- package/voca/components/telia-date-picker.js.map +1 -1
- package/voca/components/telia-divider.d.ts +2 -1
- package/voca/components/telia-divider.js +3 -46
- package/voca/components/telia-divider.js.map +1 -1
- package/voca/components/telia-field-assistive-text.d.ts +2 -1
- package/voca/components/telia-field-assistive-text.js +3 -4
- package/voca/components/telia-field-assistive-text.js.map +1 -1
- package/voca/components/telia-field-error.d.ts +2 -1
- package/voca/components/telia-field-error.js +3 -7
- package/voca/components/telia-field-error.js.map +1 -1
- package/voca/components/telia-field-valid.d.ts +2 -1
- package/voca/components/telia-field-valid.js +3 -7
- package/voca/components/telia-field-valid.js.map +1 -1
- package/voca/components/telia-fieldset.d.ts +2 -1
- package/voca/components/telia-fieldset.js +3 -56
- package/voca/components/telia-fieldset.js.map +1 -1
- package/voca/components/telia-focus-trap.d.ts +2 -1
- package/voca/components/telia-focus-trap.js +3 -78
- package/voca/components/telia-focus-trap.js.map +1 -1
- package/voca/components/telia-form.d.ts +2 -1
- package/voca/components/telia-form.js +3 -59
- package/voca/components/telia-form.js.map +1 -1
- package/voca/components/telia-grid.d.ts +2 -1
- package/voca/components/telia-grid.js +3 -29
- package/voca/components/telia-grid.js.map +1 -1
- package/voca/components/telia-heading.d.ts +2 -1
- package/voca/components/telia-heading.js +3 -4
- package/voca/components/telia-heading.js.map +1 -1
- package/voca/components/telia-icon.d.ts +2 -1
- package/voca/components/telia-icon.js +3 -5
- package/voca/components/telia-icon.js.map +1 -1
- package/voca/components/telia-image.d.ts +2 -1
- package/voca/components/telia-image.js +3 -42
- package/voca/components/telia-image.js.map +1 -1
- package/voca/components/telia-label.d.ts +2 -1
- package/voca/components/telia-label.js +3 -4
- package/voca/components/telia-label.js.map +1 -1
- package/voca/components/telia-link-image.d.ts +2 -1
- package/voca/components/telia-link-image.js +3 -55
- package/voca/components/telia-link-image.js.map +1 -1
- package/voca/components/telia-link.d.ts +2 -1
- package/voca/components/telia-link.js +3 -5
- package/voca/components/telia-link.js.map +1 -1
- package/voca/components/telia-list.d.ts +2 -1
- package/voca/components/telia-list.js +3 -69
- package/voca/components/telia-list.js.map +1 -1
- package/voca/components/telia-logo.d.ts +2 -1
- package/voca/components/telia-logo.js +3 -54
- package/voca/components/telia-logo.js.map +1 -1
- package/voca/components/telia-notification.d.ts +2 -1
- package/voca/components/telia-notification.js +3 -87
- package/voca/components/telia-notification.js.map +1 -1
- package/voca/components/telia-overlay.d.ts +2 -1
- package/voca/components/telia-overlay.js +3 -31
- package/voca/components/telia-overlay.js.map +1 -1
- package/voca/components/telia-p.d.ts +2 -1
- package/voca/components/telia-p.js +3 -51
- package/voca/components/telia-p.js.map +1 -1
- package/voca/components/telia-pictogram.d.ts +2 -1
- package/voca/components/telia-pictogram.js +3 -112
- package/voca/components/telia-pictogram.js.map +1 -1
- package/voca/components/telia-radio-button.d.ts +2 -1
- package/voca/components/telia-radio-button.js +3 -54
- package/voca/components/telia-radio-button.js.map +1 -1
- package/voca/components/telia-row.d.ts +2 -1
- package/voca/components/telia-row.js +3 -37
- package/voca/components/telia-row.js.map +1 -1
- package/voca/components/telia-search-input.d.ts +2 -1
- package/voca/components/telia-search-input.js +3 -134
- package/voca/components/telia-search-input.js.map +1 -1
- package/voca/components/telia-select.d.ts +2 -1
- package/voca/components/telia-select.js +3 -114
- package/voca/components/telia-select.js.map +1 -1
- package/voca/components/telia-skeleton.d.ts +2 -1
- package/voca/components/telia-skeleton.js +3 -32
- package/voca/components/telia-skeleton.js.map +1 -1
- package/voca/components/telia-status-badge.d.ts +2 -1
- package/voca/components/telia-status-badge.js +3 -58
- package/voca/components/telia-status-badge.js.map +1 -1
- package/voca/components/telia-style-link.d.ts +2 -1
- package/voca/components/telia-style-link.js +3 -4
- package/voca/components/telia-style-link.js.map +1 -1
- package/voca/components/telia-tab-content.d.ts +2 -1
- package/voca/components/telia-tab-content.js +3 -44
- package/voca/components/telia-tab-content.js.map +1 -1
- package/voca/components/telia-tab-header.d.ts +2 -1
- package/voca/components/telia-tab-header.js +3 -6
- package/voca/components/telia-tab-header.js.map +1 -1
- package/voca/components/telia-tab.d.ts +2 -1
- package/voca/components/telia-tab.js +3 -160
- package/voca/components/telia-tab.js.map +1 -1
- package/voca/components/telia-text-input.d.ts +2 -1
- package/voca/components/telia-text-input.js +3 -14
- package/voca/components/telia-text-input.js.map +1 -1
- package/voca/components/telia-text-spacing.d.ts +2 -1
- package/voca/components/telia-text-spacing.js +3 -29
- package/voca/components/telia-text-spacing.js.map +1 -1
- package/voca/components/telia-textarea.d.ts +2 -1
- package/voca/components/telia-textarea.js +3 -111
- package/voca/components/telia-textarea.js.map +1 -1
- package/voca/components/telia-toggle.d.ts +2 -1
- package/voca/components/telia-toggle.js +3 -143
- package/voca/components/telia-toggle.js.map +1 -1
- package/voca/components/telia-visually-hidden.d.ts +2 -1
- package/voca/components/telia-visually-hidden.js +3 -4
- package/voca/components/telia-visually-hidden.js.map +1 -1
- package/voca/foundations/component-library-styling.d.ts +2 -1
- package/voca/foundations/component-library-styling.js +3 -3
- package/voca/foundations/component-library-styling.js.map +1 -1
- package/voca/foundations/index.d.ts +6 -4
- package/voca/foundations/index.js +161 -162
- package/voca/foundations/index.js.map +1 -1
- package/voca/icons/index.js +3 -338
- package/voca/icons/index.js.map +1 -1
- package/chunks/check-circle-filled-42095247.js +0 -5
- package/chunks/check-circle-filled-42095247.js.map +0 -1
- package/chunks/chevron-down-50d47dd6.js +0 -5
- package/chunks/chevron-down-50d47dd6.js.map +0 -1
- package/chunks/chevron-right-788ce8a9.js +0 -6
- package/chunks/chevron-right-788ce8a9.js.map +0 -1
- package/chunks/close-7d423291.js +0 -5
- package/chunks/close-7d423291.js.map +0 -1
- package/chunks/close-ac6e4f1c.js +0 -5
- package/chunks/close-ac6e4f1c.js.map +0 -1
- package/chunks/error-9925a844.js +0 -7
- package/chunks/error-9925a844.js.map +0 -1
- package/chunks/error-filled-8de50bdd.js +0 -5
- package/chunks/error-filled-8de50bdd.js.map +0 -1
- package/chunks/getSvgContent-f2389ce0.js +0 -14
- package/chunks/getSvgContent-f2389ce0.js.map +0 -1
- package/chunks/index-514c4fef.js +0 -213
- package/chunks/index-514c4fef.js.map +0 -1
- package/chunks/index-eef143db.js +0 -531
- package/chunks/index-eef143db.js.map +0 -1
- package/chunks/query-assigned-elements-ac91685f.js +0 -606
- package/chunks/query-assigned-elements-ac91685f.js.map +0 -1
- package/chunks/repeat-34adae9e.js +0 -143
- package/chunks/repeat-34adae9e.js.map +0 -1
- package/chunks/stringCombiner-10b57054.js +0 -50
- package/chunks/stringCombiner-10b57054.js.map +0 -1
- package/chunks/telia-button-c9ba09a9.js +0 -86
- package/chunks/telia-button-c9ba09a9.js.map +0 -1
- package/chunks/telia-card-frame-340f3315.js +0 -39
- package/chunks/telia-card-frame-340f3315.js.map +0 -1
- package/chunks/telia-field-assistive-text-173ba2fb.js +0 -32
- package/chunks/telia-field-assistive-text-173ba2fb.js.map +0 -1
- package/chunks/telia-field-error-f978aeb3.js +0 -40
- package/chunks/telia-field-error-f978aeb3.js.map +0 -1
- package/chunks/telia-field-valid-5d8f121e.js +0 -39
- package/chunks/telia-field-valid-5d8f121e.js.map +0 -1
- package/chunks/telia-heading-38ae44ae.js +0 -104
- package/chunks/telia-heading-38ae44ae.js.map +0 -1
- package/chunks/telia-icon-d0e7c715.js +0 -73
- package/chunks/telia-icon-d0e7c715.js.map +0 -1
- package/chunks/telia-label-f4c1eb47.js +0 -36
- package/chunks/telia-label-f4c1eb47.js.map +0 -1
- package/chunks/telia-link-42cb2e68.js +0 -51
- package/chunks/telia-link-42cb2e68.js.map +0 -1
- package/chunks/telia-style-link-bb7bfd94.js +0 -56
- package/chunks/telia-style-link-bb7bfd94.js.map +0 -1
- package/chunks/telia-tab-header-890fc7c8.js +0 -98
- package/chunks/telia-tab-header-890fc7c8.js.map +0 -1
- package/chunks/telia-text-input-289394d8.js +0 -169
- package/chunks/telia-text-input-289394d8.js.map +0 -1
- package/chunks/telia-visually-hidden-9015e8cd.js +0 -34
- package/chunks/telia-visually-hidden-9015e8cd.js.map +0 -1
- package/chunks/telia-vst2-dfb33a56.js +0 -41
- package/chunks/telia-vst2-dfb33a56.js.map +0 -1
- package/chunks/uniqueId-0daf01ec.js +0 -5
- package/chunks/uniqueId-0daf01ec.js.map +0 -1
- package/chunks/variables-ecb680f0.js +0 -8
- package/chunks/variables-ecb680f0.js.map +0 -1
- package/components/alliance-link/alliance-link.d.ts +0 -27
- package/components/alliance-link/index.d.ts +0 -1
- package/components/alliance-modal/alliance-modal.d.ts +0 -43
- package/components/alliance-modal/index.d.ts +0 -2
- package/components/alliance-paginator/alliance-page-selector.d.ts +0 -22
- package/components/alliance-paginator/alliance-paginator-button.d.ts +0 -17
- package/components/alliance-paginator/alliance-paginator.d.ts +0 -32
- package/components/alliance-paginator/index.d.ts +0 -4
- package/components/alliance-paginator/utils.d.ts +0 -13
- package/components/alliance-table/alliance-table-body.d.ts +0 -5
- package/components/alliance-table/alliance-table-data.d.ts +0 -5
- package/components/alliance-table/alliance-table-head.d.ts +0 -7
- package/components/alliance-table/alliance-table-row.d.ts +0 -6
- package/components/alliance-table/alliance-table.d.ts +0 -5
- package/components/alliance-table/index.d.ts +0 -5
- package/style.css +0 -1
|
@@ -1,591 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { c as E } from "../../chunks/chevron-down-50d47dd6.js";
|
|
5
|
-
import { c as j } from "../../chunks/close-ac6e4f1c.js";
|
|
6
|
-
import { d as J } from "../../chunks/telia-button-c9ba09a9.js";
|
|
7
|
-
import { d as U } from "../../chunks/telia-field-assistive-text-173ba2fb.js";
|
|
8
|
-
import { d as Q } from "../../chunks/telia-field-error-f978aeb3.js";
|
|
9
|
-
import { d as ee } from "../../chunks/telia-heading-38ae44ae.js";
|
|
10
|
-
import { d as te } from "../../chunks/telia-icon-d0e7c715.js";
|
|
11
|
-
import { d as ae } from "../../chunks/telia-label-f4c1eb47.js";
|
|
12
|
-
import { d as ie } from "../../chunks/telia-vst2-dfb33a56.js";
|
|
13
|
-
import "../../chunks/error-filled-8de50bdd.js";
|
|
14
|
-
import "../../chunks/getSvgContent-f2389ce0.js";
|
|
15
|
-
const re = { name: "calendar", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M58 51.3846V16.9231C57.9973 14.5451 56.0588 12.6181 53.6667 12.6154H49.3333V8.30769C49.3306 5.92975 47.3921 4.00272 45 4H40.6667C38.2746 4.00272 36.3361 5.92975 36.3333 8.30769V12.6154H27.6667V8.30769C27.6639 5.92975 25.7254 4.00272 23.3333 4H19C16.6079 4.00272 14.6694 5.92975 14.6667 8.30769V12.6154H10.3333C7.94123 12.6181 6.00273 14.5451 6 16.9231V51.3846C6.00547 56.1405 9.88247 59.9946 14.6667 60H49.3333C54.1175 59.9946 57.9945 56.1405 58 51.3846ZM44.9999 16.923H40.6666V8.30766H44.9999V16.923ZM23.3333 16.923H18.9999V8.30766H23.3333V16.923ZM49.3334 16.9231H53.6668V24.9852H10.3334V16.9231H14.6668C14.6695 19.301 16.608 21.228 19.0001 21.2307H23.3334C25.7255 21.228 27.664 19.301 27.6668 16.9231H36.3334C36.3362 19.301 38.2747 21.228 40.6668 21.2307H45.0001C47.3922 21.228 49.3307 19.301 49.3334 16.9231ZM10.3334 28.9852V51.3846C10.3362 53.7625 12.2747 55.6896 14.6668 55.6923H49.3334C51.7255 55.6896 53.664 53.7625 53.6668 51.3846V28.9852H10.3334Z"/><path d="M14.6949 35.3069C14.6949 34.2023 15.5957 33.3069 16.7068 33.3069H21.378C22.4891 33.3069 23.3899 34.2024 23.3899 35.3069V36.7091C23.3899 37.8137 22.4891 38.7091 21.378 38.7091H16.7068C15.5957 38.7091 14.6949 37.8137 14.6949 36.7091V35.3069Z"/><path d="M27.7374 35.3069C27.7374 34.2023 28.6381 33.3069 29.7493 33.3069H34.4204C35.5316 33.3069 36.4323 34.2024 36.4323 35.3069V36.7091C36.4323 37.8137 35.5316 38.7091 34.4204 38.7091H29.7493C28.6381 38.7091 27.7374 37.8137 27.7374 36.7091V35.3069Z"/><path d="M40.7798 35.3069C40.7798 34.2023 41.6806 33.3069 42.7917 33.3069H47.4629C48.574 33.3069 49.4748 34.2024 49.4748 35.3069V36.7091C49.4748 37.8137 48.574 38.7091 47.4629 38.7091H42.7917C41.6806 38.7091 40.7798 37.8137 40.7798 36.7091V35.3069Z"/><path d="M14.6949 46.1114C14.6949 45.0068 15.5957 44.1114 16.7068 44.1114H21.378C22.4891 44.1114 23.3899 45.0068 23.3899 46.1114V47.5136C23.3899 48.6181 22.4891 49.5136 21.378 49.5136H16.7068C15.5957 49.5136 14.6949 48.6181 14.6949 47.5136V46.1114Z"/><path d="M27.7374 46.1114C27.7374 45.0068 28.6381 44.1114 29.7493 44.1114H34.4204C35.5316 44.1114 36.4323 45.0068 36.4323 46.1114V47.5136C36.4323 48.6181 35.5316 49.5136 34.4204 49.5136H29.7493C28.6381 49.5136 27.7374 48.6181 27.7374 47.5136V46.1114Z"/><path d="M40.7798 46.1114C40.7798 45.0068 41.6806 44.1114 42.7917 44.1114H47.4629C48.574 44.1114 49.4748 45.0068 49.4748 46.1114V47.5136C49.4748 48.6181 48.574 49.5136 47.4629 49.5136H42.7917C41.6806 49.5136 40.7798 48.6181 40.7798 47.5136V46.1114Z"/></svg>' }, le = { name: "chevron-left", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M42.1162 49.8902C42.6915 50.4081 42.9468 51.1934 42.786 51.9505C42.6252 52.7076 42.0727 53.3214 41.3366 53.5607C40.6005 53.8 39.7927 53.6284 39.2174 53.1106L17.5508 33.6106C17.0942 33.1999 16.8335 32.6146 16.8335 32.0004C16.8335 31.3863 17.0942 30.801 17.5508 30.3902L39.2174 10.8902C40.1067 10.0898 41.4766 10.1618 42.277 11.0511C43.0775 11.9403 43.0055 13.3102 42.1162 14.1106L22.2385 32.0004L42.1162 49.8902Z"/></svg>' }, oe = { name: "chevron-right", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M47.1663 32.0005C47.1667 32.6147 46.9059 33.2001 46.449 33.6106L24.7824 53.1106C23.8931 53.9111 22.5233 53.8391 21.7228 52.9498C20.9223 52.0606 20.9943 50.6907 21.8836 49.8903L41.7613 32.0005L21.8836 14.1106C21.3083 13.5928 21.053 12.8075 21.2138 12.0503C21.3746 11.2932 21.9271 10.6794 22.6632 10.4402C23.3993 10.2009 24.2071 10.3724 24.7824 10.8903L46.449 30.3903C46.9059 30.8008 47.1667 31.3862 47.1663 32.0005Z"/></svg>' }, se = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
16
|
-
var y;
|
|
17
|
-
(function(e) {
|
|
18
|
-
e[e.Sunday = 0] = "Sunday", e[e.Monday = 1] = "Monday", e[e.Tuesday = 2] = "Tuesday", e[e.Wednesday = 3] = "Wednesday", e[e.Thursday = 4] = "Thursday", e[e.Friday = 5] = "Friday", e[e.Saturday = 6] = "Saturday";
|
|
19
|
-
})(y || (y = {}));
|
|
20
|
-
function x(e, t, a) {
|
|
21
|
-
const r = parseInt(a, 10), l = parseInt(t, 10), o = parseInt(e, 10);
|
|
22
|
-
if (Number.isInteger(o) && // all parts should be integers
|
|
23
|
-
Number.isInteger(l) && Number.isInteger(r) && l > 0 && // month must be 1-12
|
|
24
|
-
l <= 12 && r > 0 && // day must be 1-31
|
|
25
|
-
r <= 31 && o > 0)
|
|
26
|
-
return new Date(o, l - 1, r);
|
|
27
|
-
}
|
|
28
|
-
function v(e) {
|
|
29
|
-
if (!e)
|
|
30
|
-
return;
|
|
31
|
-
const t = e.match(se);
|
|
32
|
-
if (t !== null && t.length)
|
|
33
|
-
return x(t[1], t[2], t[3]);
|
|
34
|
-
}
|
|
35
|
-
function A(e) {
|
|
36
|
-
if (e === void 0)
|
|
37
|
-
return "";
|
|
38
|
-
let t = e.getDate().toString(10), a = (e.getMonth() + 1).toString(10), r = e.getFullYear().toString(10);
|
|
39
|
-
return e.getDate() < 10 && (t = `0${t}`), e.getMonth() < 9 && (a = `0${a}`), `${r}-${a}-${t}`;
|
|
40
|
-
}
|
|
41
|
-
function F(e, t) {
|
|
42
|
-
return e == null || t == null ? !1 : V(e, t) && e.getDate() === t.getDate();
|
|
43
|
-
}
|
|
44
|
-
function V(e, t) {
|
|
45
|
-
return e == null || t == null ? !1 : e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
|
|
46
|
-
}
|
|
47
|
-
function z(e, t) {
|
|
48
|
-
const a = new Date(e);
|
|
49
|
-
return a.setDate(a.getDate() + t), a;
|
|
50
|
-
}
|
|
51
|
-
function R(e, t = y.Monday) {
|
|
52
|
-
const a = new Date(e), r = a.getDay(), l = (r < t ? 7 : 0) + r - t;
|
|
53
|
-
return a.setDate(a.getDate() - l), a;
|
|
54
|
-
}
|
|
55
|
-
function P(e, t = y.Monday) {
|
|
56
|
-
const a = new Date(e), r = a.getDay(), l = (r < t ? -7 : 0) + 6 - (r - t);
|
|
57
|
-
return a.setDate(a.getDate() + l), a;
|
|
58
|
-
}
|
|
59
|
-
function w(e) {
|
|
60
|
-
return new Date(e.getFullYear(), e.getMonth(), 1);
|
|
61
|
-
}
|
|
62
|
-
function C(e) {
|
|
63
|
-
return new Date(e.getFullYear(), e.getMonth() + 1, 0);
|
|
64
|
-
}
|
|
65
|
-
function H(e, t) {
|
|
66
|
-
const a = new Date(e);
|
|
67
|
-
return a.setMonth(t), a;
|
|
68
|
-
}
|
|
69
|
-
function L(e, t) {
|
|
70
|
-
const a = new Date(e);
|
|
71
|
-
return a.setFullYear(t), a;
|
|
72
|
-
}
|
|
73
|
-
function M(e, t, a) {
|
|
74
|
-
return S(e, t, a) === e;
|
|
75
|
-
}
|
|
76
|
-
function S(e, t, a) {
|
|
77
|
-
const r = e.getTime();
|
|
78
|
-
return t && t instanceof Date && r < t.getTime() ? t : a && a instanceof Date && r > a.getTime() ? a : e;
|
|
79
|
-
}
|
|
80
|
-
function ne(e, t) {
|
|
81
|
-
const a = [];
|
|
82
|
-
let r = e;
|
|
83
|
-
for (; !F(r, t); )
|
|
84
|
-
a.push(r), r = z(r, 1);
|
|
85
|
-
return a.push(r), a;
|
|
86
|
-
}
|
|
87
|
-
function ce(e, t = y.Monday) {
|
|
88
|
-
const a = R(w(e), t), r = P(C(e), t);
|
|
89
|
-
return ne(a, r);
|
|
90
|
-
}
|
|
91
|
-
const de = ({ onClick: e, dateFormatter: t, describedBy: a, localization: r, name: l, formattedValue: o, valueAsDate: s, value: d, identifier: h, disabled: c, readonly: u, required: _, role: g, touched: b, buttonLabel: m, buttonRef: n, inputRef: f, onInput: B, onBlur: N, onFocus: O, makeTouched: T, htmlForm: q }) => {
|
|
92
|
-
const Z = u || c;
|
|
93
|
-
return i(
|
|
94
|
-
W,
|
|
95
|
-
null,
|
|
96
|
-
i("input", { class: {
|
|
97
|
-
"telia-date-picker__input": !0,
|
|
98
|
-
"telia-date-picker__input--touched": b
|
|
99
|
-
}, value: o, id: h, disabled: c, readonly: u, role: g, required: _ ? !0 : void 0, "aria-autocomplete": "none", "aria-describedby": a, onInput: B, onFocus: O, onBlur: (D) => {
|
|
100
|
-
T(), N(D);
|
|
101
|
-
}, autoComplete: "off", ref: f, onInvalid: (D) => {
|
|
102
|
-
T(), D.preventDefault();
|
|
103
|
-
}, form: q }),
|
|
104
|
-
i("input", { type: "hidden", name: l, value: d }),
|
|
105
|
-
i(
|
|
106
|
-
"div",
|
|
107
|
-
{ class: "telia-date-picker__input-icon-container" },
|
|
108
|
-
i(
|
|
109
|
-
"telia-button",
|
|
110
|
-
{ allyLabel: m, variant: "text", size: "sm", onClick: e, disabled: Z, ref: (D) => n(D), type: "button", "data-testid": "telia-date-picker__toggle-button" },
|
|
111
|
-
i("telia-icon", { class: "telia-date-picker__toggle-icon", svg: re.svg, size: "sm" }),
|
|
112
|
-
i(
|
|
113
|
-
"span",
|
|
114
|
-
{ class: "telia-date-picker__vhidden" },
|
|
115
|
-
r.buttonLabel,
|
|
116
|
-
s && i(
|
|
117
|
-
"span",
|
|
118
|
-
null,
|
|
119
|
-
", ",
|
|
120
|
-
r.selectedDateMessage,
|
|
121
|
-
" ",
|
|
122
|
-
t.format(s)
|
|
123
|
-
)
|
|
124
|
-
)
|
|
125
|
-
)
|
|
126
|
-
)
|
|
127
|
-
);
|
|
128
|
-
}, ue = ({ focusedDay: e, today: t, day: a, onDaySelect: r, onKeyboardNavigation: l, focusedDayRef: o, disabled: s, inRange: d, isSelected: h, dateFormatter: c }) => {
|
|
129
|
-
const u = F(a, t), _ = V(a, e), g = F(a, e), b = !d, m = s || b;
|
|
130
|
-
return i(
|
|
131
|
-
"button",
|
|
132
|
-
{
|
|
133
|
-
class: {
|
|
134
|
-
"telia-date-picker__day": !0,
|
|
135
|
-
"is-today": u,
|
|
136
|
-
"is-month": _,
|
|
137
|
-
"is-disabled": m
|
|
138
|
-
},
|
|
139
|
-
tabIndex: g ? 0 : -1,
|
|
140
|
-
onClick: (f) => {
|
|
141
|
-
r(f, a);
|
|
142
|
-
},
|
|
143
|
-
onKeyDown: l,
|
|
144
|
-
"aria-disabled": m ? "true" : void 0,
|
|
145
|
-
// disabled days have to be focusable for a11y purposes
|
|
146
|
-
disabled: b,
|
|
147
|
-
type: "button",
|
|
148
|
-
"aria-pressed": h ? "true" : "false",
|
|
149
|
-
ref: (f) => {
|
|
150
|
-
g && f && o && o(f);
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
i("span", { "aria-hidden": "true" }, a.getDate()),
|
|
154
|
-
i("span", { class: "telia-date-picker__vhidden" }, c.format(a))
|
|
155
|
-
);
|
|
156
|
-
};
|
|
157
|
-
function he(e, t) {
|
|
158
|
-
const a = [];
|
|
159
|
-
for (let r = 0; r < e.length; r += t)
|
|
160
|
-
a.push(e.slice(r, r + t));
|
|
161
|
-
return a;
|
|
162
|
-
}
|
|
163
|
-
function me(e, t, a) {
|
|
164
|
-
return e.map((r, l) => {
|
|
165
|
-
const o = (l + t) % e.length;
|
|
166
|
-
return a(e[o]);
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
const pe = ({ selectedDate: e, focusedDate: t, labelledById: a, localization: r, firstDayOfWeek: l, min: o, max: s, dateFormatter: d, isDateDisabled: h, onDateSelect: c, onKeyboardNavigation: u, focusedDayRef: _ }) => {
|
|
170
|
-
const g = /* @__PURE__ */ new Date(), b = ce(t, l);
|
|
171
|
-
return i(
|
|
172
|
-
"div",
|
|
173
|
-
{ class: "telia-date-picker__table-wrapper" },
|
|
174
|
-
i(
|
|
175
|
-
"table",
|
|
176
|
-
{ class: "telia-date-picker__table", "aria-labelledby": a },
|
|
177
|
-
i(
|
|
178
|
-
"thead",
|
|
179
|
-
null,
|
|
180
|
-
i("tr", null, me(r.dayNames, l, (m) => i(
|
|
181
|
-
"th",
|
|
182
|
-
{ class: "telia-date-picker__table-header", scope: "col" },
|
|
183
|
-
i("span", { "aria-hidden": "true" }, m.substr(0, 2)),
|
|
184
|
-
i("span", { class: "telia-date-picker__vhidden" }, m)
|
|
185
|
-
)))
|
|
186
|
-
),
|
|
187
|
-
i("tbody", null, he(b, 7).map((m) => i("tr", { class: "telia-date-picker__row" }, m.map((n) => i(
|
|
188
|
-
"td",
|
|
189
|
-
{ class: "telia-date-picker__cell" },
|
|
190
|
-
i(ue, { day: n, today: g, focusedDay: t, isSelected: F(n, e), disabled: h(n), inRange: M(n, o, s), onDaySelect: c, dateFormatter: d, onKeyboardNavigation: u, focusedDayRef: _ })
|
|
191
|
-
)))))
|
|
192
|
-
)
|
|
193
|
-
);
|
|
194
|
-
}, ve = {
|
|
195
|
-
buttonLabel: "Choose date",
|
|
196
|
-
placeholder: "YYYY-MM-DD",
|
|
197
|
-
selectedDateMessage: "Selected date is",
|
|
198
|
-
prevMonthLabel: "Previous month",
|
|
199
|
-
nextMonthLabel: "Next month",
|
|
200
|
-
monthSelectLabel: "Month",
|
|
201
|
-
yearSelectLabel: "Year",
|
|
202
|
-
closeLabel: "Close window",
|
|
203
|
-
calendarHeading: "Choose a date",
|
|
204
|
-
dayNames: [
|
|
205
|
-
"Sunday",
|
|
206
|
-
"Monday",
|
|
207
|
-
"Tuesday",
|
|
208
|
-
"Wednesday",
|
|
209
|
-
"Thursday",
|
|
210
|
-
"Friday",
|
|
211
|
-
"Saturday"
|
|
212
|
-
],
|
|
213
|
-
monthNames: [
|
|
214
|
-
"January",
|
|
215
|
-
"February",
|
|
216
|
-
"March",
|
|
217
|
-
"April",
|
|
218
|
-
"May",
|
|
219
|
-
"June",
|
|
220
|
-
"July",
|
|
221
|
-
"August",
|
|
222
|
-
"September",
|
|
223
|
-
"October",
|
|
224
|
-
"November",
|
|
225
|
-
"December"
|
|
226
|
-
],
|
|
227
|
-
monthNamesShort: [
|
|
228
|
-
"Jan",
|
|
229
|
-
"Feb",
|
|
230
|
-
"Mar",
|
|
231
|
-
"Apr",
|
|
232
|
-
"May",
|
|
233
|
-
"Jun",
|
|
234
|
-
"Jul",
|
|
235
|
-
"Aug",
|
|
236
|
-
"Sep",
|
|
237
|
-
"Oct",
|
|
238
|
-
"Nov",
|
|
239
|
-
"Dec"
|
|
240
|
-
],
|
|
241
|
-
locale: "en-GB"
|
|
242
|
-
}, fe = {
|
|
243
|
-
parse: v,
|
|
244
|
-
format: A
|
|
245
|
-
}, ge = (e, t) => {
|
|
246
|
-
const a = [];
|
|
247
|
-
for (var r = e; r <= t; r++)
|
|
248
|
-
a.push(r);
|
|
249
|
-
return a;
|
|
250
|
-
}, be = {
|
|
251
|
-
breakpointSm: "0",
|
|
252
|
-
breakpointMd: "37.5em",
|
|
253
|
-
breakpointLg: "64em",
|
|
254
|
-
breakpointXl: "90em",
|
|
255
|
-
fluidBreakpointMedium: "60rem",
|
|
256
|
-
fluidBreakpointXlarge: "144rem"
|
|
257
|
-
}, _e = '.telia-date-picker{display:flex;flex-direction:column;position:relative}.telia-date-picker__label{order:1}.telia-date-picker__label label{color:rgba(0, 0, 0, 0.85)}.telia-date-picker__input{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3);border-radius:calc(0.2rem * var(--voca-rem-multiplier));background-color:#ffffff;font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:normal;font-size:calc(1.6rem * var(--voca-rem-multiplier));line-height:1.5;-webkit-appearance:none;appearance:none;box-sizing:border-box;color:rgba(0, 0, 0, 0.85);display:block;margin:0;padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier));width:100%;color:rgba(0, 0, 0, 0.85);height:calc(4.6rem * var(--voca-rem-multiplier));margin:calc(0.4rem * var(--voca-rem-multiplier)) 0 0;order:2}.telia-date-picker__input:required{box-shadow:none}.telia-date-picker__input:hover{border:calc(0.2rem * var(--voca-rem-multiplier)) solid #29003e;padding:calc(calc(1rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(1.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-date-picker__input:hover:focus{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3)}.telia-date-picker__input:focus{outline:solid calc(0.3rem * var(--voca-rem-multiplier)) #0099ff;outline-offset:calc(0.2rem * var(--voca-rem-multiplier));padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-date-picker__input:focus:hover{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3)}.telia-date-picker__input:read-only{border:calc(0.1rem * var(--voca-rem-multiplier)) solid #c8c8cd;background-color:rgba(0, 0, 0, 0.05)}.telia-date-picker__input:read-only:hover{border:calc(0.1rem * var(--voca-rem-multiplier)) solid #c8c8cd;padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-date-picker__input:disabled{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.15);background-color:rgba(0, 0, 0, 0.1);color:rgba(0, 0, 0, 0.4);cursor:not-allowed;-webkit-text-fill-color:#606064}.telia-date-picker__input:disabled:hover{padding:calc(1rem * var(--voca-rem-multiplier)) calc(1.2rem * var(--voca-rem-multiplier))}.telia-date-picker__input:disabled~.telia-date-picker__label .telia-label{color:rgba(0, 0, 0, 0.4);cursor:not-allowed}.telia-date-picker__input:disabled~.telia-date-picker__additional{color:rgba(0, 0, 0, 0.4)}.telia-date-picker__input:invalid{box-shadow:none}.telia-date-picker__input--touched:invalid{border:calc(0.1rem * var(--voca-rem-multiplier)) solid #e4175c}.telia-date-picker__input--touched:invalid:focus{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3)}.telia-date-picker__input--touched:invalid:hover:not(:focus){border:calc(0.2rem * var(--voca-rem-multiplier)) solid #e4175c;padding:calc(calc(1rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier))) calc(calc(1.2rem * var(--voca-rem-multiplier)) - calc(0.1rem * var(--voca-rem-multiplier)))}.telia-date-picker__input-icon-container{align-items:center;display:flex;flex-direction:row;height:calc(4.6rem * var(--voca-rem-multiplier));justify-content:flex-end;margin:calc(-1 * calc(4.6rem * var(--voca-rem-multiplier))) 0 0 calc(100% - calc(1.2rem * var(--voca-rem-multiplier)));order:3}.telia-date-picker__additional{order:5}.telia-date-picker__error{margin:calc(0.4rem * var(--voca-rem-multiplier)) 0 0;order:6}.telia-date-picker__toggle-icon{margin:0 calc(1.2rem * var(--voca-rem-multiplier))}.telia-date-picker__input--touched:invalid~.telia-date-picker__input-icon-container .telia-date-picker__toggle-icon{color:#e4175c}.telia-date-picker__dialog-container{order:4}.telia-date-picker__dialog{z-index:300;background-color:rgba(0, 0, 0, 0.3);bottom:0;display:flex;left:0;min-width:calc(32rem * var(--voca-rem-multiplier));opacity:0;position:fixed;right:0;top:0;transform:translateZ(0);transform-origin:bottom center;transition:transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;visibility:hidden;width:100%;will-change:transform, opacity, visibility}@media screen and (min-width: 37.5em){.telia-date-picker__dialog{z-index:100;background:none;bottom:auto;position:absolute;right:auto;top:auto;transform:scale(0.96) translateZ(0) translateY(-2rem);transform-origin:top right}}.telia-date-picker__dialog.is-left{left:auto;right:0;width:auto}.telia-date-picker__dialog.is-active{opacity:1;transform:scale(1.0001) translateZ(0) translateY(0);visibility:visible}.telia-date-picker__dialog-content{background-color:#ffffff;border-radius:0;border-top-left-radius:calc(0.2rem * var(--voca-rem-multiplier));border-top-right-radius:calc(0.2rem * var(--voca-rem-multiplier));border-top:calc(0.1rem * var(--voca-rem-multiplier)) solid #606064;bottom:0;display:none;left:0;margin:0;max-width:none;padding:0;position:absolute;transform:translateZ(0) translateY(100%);width:100%}@media screen and (min-width: 37.5em){.telia-date-picker__dialog-content{border:calc(0.1rem * var(--voca-rem-multiplier)) solid rgba(0, 0, 0, 0.3);border-radius:calc(0.2rem * var(--voca-rem-multiplier));box-shadow:0 calc(1.2rem * var(--voca-rem-multiplier)) calc(2.4rem * var(--voca-rem-multiplier)) rgba(0, 0, 0, 0.1);margin:calc(0.8rem * var(--voca-rem-multiplier)) 0 0 auto;max-width:calc(31rem * var(--voca-rem-multiplier));min-width:calc(29rem * var(--voca-rem-multiplier));padding:0;position:relative;transform:none;transition:none;visibility:visible}}.is-active .telia-date-picker__dialog-content{display:block;transform:translateZ(0) translateY(0)}.telia-date-picker__table-wrapper{margin:calc(1.6rem * var(--voca-rem-multiplier)) 0 calc(2rem * var(--voca-rem-multiplier));padding:0 calc(1.6rem * var(--voca-rem-multiplier)) calc(0.8rem * var(--voca-rem-multiplier))}@media screen and (min-width: 37.5em){.telia-date-picker__table-wrapper{padding:0 calc(2rem * var(--voca-rem-multiplier))}}.telia-date-picker__table{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:normal;font-size:calc(1rem * var(--voca-rem-multiplier));color:#222222;border-collapse:collapse;border-spacing:0;line-height:1.25;margin:0;padding:0;text-align:center;width:100%}.telia-date-picker__table-header{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:bold;font-size:calc(1.2rem * var(--voca-rem-multiplier));color:#222222;letter-spacing:calc(0.1rem * var(--voca-rem-multiplier));line-height:1.4;padding-bottom:calc(0.8rem * var(--voca-rem-multiplier));text-decoration:none;text-transform:uppercase}.telia-date-picker__cell{text-align:center}.telia-date-picker__day{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:normal;font-size:calc(1.4rem * var(--voca-rem-multiplier));color:#29003e;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;border-radius:50%;cursor:pointer;display:inline-block;font-variant-numeric:tabular-nums;height:calc(3.2rem * var(--voca-rem-multiplier));line-height:calc(1.6rem * var(--voca-rem-multiplier));padding:0 0 calc(0.1rem * var(--voca-rem-multiplier));position:relative;text-align:center;vertical-align:middle;width:calc(3.2rem * var(--voca-rem-multiplier))}.telia-date-picker__day.is-today{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:500;color:#29003e;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #29003e}.telia-date-picker__day:hover{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:500;background-color:#edc8ff;color:#29003e}.telia-date-picker__day[aria-pressed=true]{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:bold;background-color:#29003e;color:#ffffff;box-shadow:none;outline:0}.telia-date-picker__day:focus-visible{outline:none}.telia-date-picker__day:focus{outline:none;}.telia-date-picker__day:focus::before{border-radius:calc(99.9rem * var(--voca-rem-multiplier));box-shadow:0 0 0 calc(0.3rem * var(--voca-rem-multiplier)) #0099ff;bottom:calc(-1 * calc(0.4rem * var(--voca-rem-multiplier)));content:"";display:block;left:calc(-1 * calc(0.4rem * var(--voca-rem-multiplier)));position:absolute;right:calc(-1 * calc(0.4rem * var(--voca-rem-multiplier)));top:calc(-1 * calc(0.4rem * var(--voca-rem-multiplier)));z-index:101}@media screen and (min-width: 37.5em){.telia-date-picker__day:focus::before{z-index:301}}.telia-date-picker__day:not(.is-month){font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:normal;box-shadow:none}.telia-date-picker__day:not(.is-month),.telia-date-picker__day[aria-disabled=true]{background:transparent;color:rgba(0, 0, 0, 0.4);cursor:default}.telia-date-picker__day[aria-disabled=true]{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:normal;background-color:rgba(0, 0, 0, 0.1);color:rgba(0, 0, 0, 0.6)}.telia-date-picker__header{border-bottom:calc(0.1rem * var(--voca-rem-multiplier)) solid #dcdce1;align-items:center;display:flex;justify-content:space-between;padding:calc(3.2rem * var(--voca-rem-multiplier)) calc(1.6rem * var(--voca-rem-multiplier)) calc(0.8rem * var(--voca-rem-multiplier)) calc(calc(1.6rem * var(--voca-rem-multiplier)) - calc(0.8rem * var(--voca-rem-multiplier)));width:100%}@media screen and (min-width: 37.5em){.telia-date-picker__header{padding:calc(0.8rem * var(--voca-rem-multiplier)) calc(2rem * var(--voca-rem-multiplier)) calc(0.8rem * var(--voca-rem-multiplier))}}.telia-date-picker__nav{white-space:nowrap}.telia-date-picker__prev,.telia-date-picker__next{color:#29003e;border:calc(0.1rem * var(--voca-rem-multiplier)) solid #29003e;align-items:center;-moz-appearance:none;-webkit-appearance:none;appearance:none;border-radius:50%;cursor:pointer;display:inline-flex;height:calc(3.2rem * var(--voca-rem-multiplier));justify-content:center;margin-left:calc(0.8rem * var(--voca-rem-multiplier));padding:0;width:calc(3.2rem * var(--voca-rem-multiplier))}.telia-date-picker__prev:not([disabled]):hover,.telia-date-picker__next:not([disabled]):hover{background-color:#edc8ff}.telia-date-picker__prev:focus,.telia-date-picker__next:focus{box-shadow:0 0 0 calc(0.3rem * var(--voca-rem-multiplier)) #0099ff;outline:none}.telia-date-picker__prev:active:focus,.telia-date-picker__next:active:focus{box-shadow:none}.telia-date-picker__prev:disabled,.telia-date-picker__next:disabled{cursor:default;opacity:0.5}.telia-date-picker__prev-icon{margin:0 auto}.telia-date-picker__next-icon{margin:0 auto}.telia-date-picker__select{display:inline-flex;margin-top:calc(0.4rem * var(--voca-rem-multiplier));position:relative}.telia-date-picker__select select{cursor:pointer;font-size:calc(1rem * var(--voca-rem-multiplier));height:100%;left:0;opacity:0;position:absolute;top:0;width:100%}.telia-date-picker__select select:focus+.telia-date-picker__select-label{box-shadow:0 0 0 calc(0.2rem * var(--voca-rem-multiplier)) #0099ff}.telia-date-picker__select-icon{margin:0 0 0 calc(0.4rem * var(--voca-rem-multiplier))}.telia-date-picker__select-label{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:bold;font-size:calc(1.6rem * var(--voca-rem-multiplier));color:#222222;border-radius:calc(0.2rem * var(--voca-rem-multiplier));align-items:center;display:flex;line-height:1.25;padding:0 calc(0.4rem * var(--voca-rem-multiplier)) 0 calc(0.8rem * var(--voca-rem-multiplier));pointer-events:none;position:relative;width:100%}.telia-date-picker__mobile{background-color:#fbf0ff;align-items:center;display:flex;justify-content:space-between;overflow:visible;padding:calc(1.6rem * var(--voca-rem-multiplier)) calc(1.6rem * var(--voca-rem-multiplier));position:relative;text-overflow:ellipsis;white-space:nowrap}@media screen and (min-width: 37.5em){.telia-date-picker__mobile{background-color:transparent;display:flex;justify-content:flex-end;padding:calc(0.8rem * var(--voca-rem-multiplier)) calc(1.6rem * var(--voca-rem-multiplier))}}.telia-date-picker__mobile-heading{color:#29003e;display:inline-block;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media screen and (min-width: 37.5em){.telia-date-picker__mobile-heading{display:none}}.telia-date-picker__close{color:#222222;border-radius:calc(99.9rem * var(--voca-rem-multiplier));align-items:center;-webkit-appearance:none;appearance:none;border:0;cursor:pointer;display:flex;height:calc(2.4rem * var(--voca-rem-multiplier));justify-content:center;padding:0;width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-date-picker__close:hover{color:#29003e}.telia-date-picker__close-icon{margin:0 auto}.telia-date-picker__vhidden{border:0;clip:rect(calc(0.1rem * var(--voca-rem-multiplier)), calc(0.1rem * var(--voca-rem-multiplier)), calc(0.1rem * var(--voca-rem-multiplier)), calc(0.1rem * var(--voca-rem-multiplier)));height:calc(0.1rem * var(--voca-rem-multiplier));overflow:hidden;padding:0;position:absolute;top:0;width:calc(0.1rem * var(--voca-rem-multiplier))}', p = {
|
|
258
|
-
TAB: 9,
|
|
259
|
-
ESC: 27,
|
|
260
|
-
SPACE: 32,
|
|
261
|
-
PAGE_UP: 33,
|
|
262
|
-
PAGE_DOWN: 34,
|
|
263
|
-
END: 35,
|
|
264
|
-
HOME: 36,
|
|
265
|
-
LEFT: 37,
|
|
266
|
-
UP: 38,
|
|
267
|
-
RIGHT: 39,
|
|
268
|
-
DOWN: 40
|
|
269
|
-
};
|
|
270
|
-
function ke(e, t) {
|
|
271
|
-
const a = e.value, r = e.selectionStart, l = a.slice(0, r), o = a.slice(r, a.length), s = l.replace(t, ""), d = o.replace(t, ""), h = s + d, c = s.length;
|
|
272
|
-
return e.value = h, e.selectionStart = e.selectionEnd = c, h;
|
|
273
|
-
}
|
|
274
|
-
const ye = /[^0-9\.\/\-]+/g, Y = 300, De = /* @__PURE__ */ G(class extends K {
|
|
275
|
-
constructor() {
|
|
276
|
-
super(), this.__registerHost(), this.vocaChange = I(this, "vocaChange", 7), this.vocaBlur = I(this, "vocaBlur", 7), this.vocaFocus = I(this, "vocaFocus", 7), this.monthSelectId = k("dateMonth"), this.yearSelectId = k("dateYear"), this.dialogLabelId = k("dateLabel"), this.body = document.body, this.initialTouchX = null, this.initialTouchY = null, this.dataTrackingId = "telia-date-picker", this.name = "date", this.additionalId = k("additional"), this.inputId = k("input"), this.disabled = !1, this.direction = "right", this.readonly = !1, this.required = !1, this.value = "", this.min = "", this.max = "", this.yearRange = { past: 10, future: 10 }, this.firstDayOfWeek = y.Monday, this.localization = ve, this.dateAdapter = fe, this.modalOpen = !1, this.isDateDisabled = () => !1, this.errorId = k("error"), this.activeFocus = !1, this.focusedDay = /* @__PURE__ */ new Date(), this.open = this.modalOpen, this.errorMessageState = "", this.touched = !1, this.toggleSmallScreenScroll = () => {
|
|
277
|
-
if (this.body.style.overflowY === "hidden") {
|
|
278
|
-
this.body.style.overflowY = "";
|
|
279
|
-
return;
|
|
280
|
-
}
|
|
281
|
-
const { matches: e } = window.matchMedia(`(max-width: ${be.breakpointMd})`);
|
|
282
|
-
e && (this.body.style.overflowY = "hidden");
|
|
283
|
-
}, this.enableActiveFocus = () => {
|
|
284
|
-
this.activeFocus = !0;
|
|
285
|
-
}, this.disableActiveFocus = () => {
|
|
286
|
-
this.activeFocus = !1;
|
|
287
|
-
}, this.toggleOpen = (e) => {
|
|
288
|
-
e.preventDefault(), this.open ? this.hide(!1) : this.show();
|
|
289
|
-
}, this.handleEscKey = (e) => {
|
|
290
|
-
e.keyCode === p.ESC && this.hide();
|
|
291
|
-
}, this.handleBlur = (e) => {
|
|
292
|
-
e.stopPropagation(), this.updateErrorState(), this.vocaBlur.emit({
|
|
293
|
-
component: "telia-date-picker"
|
|
294
|
-
});
|
|
295
|
-
}, this.handleFocus = (e) => {
|
|
296
|
-
e.stopPropagation(), this.vocaFocus.emit({
|
|
297
|
-
component: "telia-date-picker"
|
|
298
|
-
});
|
|
299
|
-
}, this.handleTouchStart = (e) => {
|
|
300
|
-
const t = e.changedTouches[0];
|
|
301
|
-
this.initialTouchX = t.pageX, this.initialTouchY = t.pageY;
|
|
302
|
-
}, this.handleTouchEnd = (e) => {
|
|
303
|
-
const t = e.changedTouches[0], a = t.pageX - this.initialTouchX, r = t.pageY - this.initialTouchY, l = 70, o = Math.abs(a) >= l && Math.abs(r) <= l, s = Math.abs(r) >= l && Math.abs(a) <= l && r > 0;
|
|
304
|
-
o ? this.addMonths(a < 0 ? 1 : -1) : s && (this.hide(!1), e.preventDefault()), this.initialTouchY = null, this.initialTouchX = null;
|
|
305
|
-
}, this.handleNextMonthClick = (e) => {
|
|
306
|
-
e.preventDefault(), this.addMonths(1);
|
|
307
|
-
}, this.handlePreviousMonthClick = (e) => {
|
|
308
|
-
e.preventDefault(), this.addMonths(-1);
|
|
309
|
-
}, this.handleFirstFocusableKeydown = (e) => {
|
|
310
|
-
e.keyCode === p.TAB && e.shiftKey && (this.focusedDayNode.focus(), e.preventDefault());
|
|
311
|
-
}, this.handleCloseButtonClick = () => {
|
|
312
|
-
this.hide();
|
|
313
|
-
}, this.handleKeyboardNavigation = (e) => {
|
|
314
|
-
if (e.keyCode === p.TAB && !e.shiftKey) {
|
|
315
|
-
e.preventDefault(), this.firstFocusableElement.querySelector("button").focus();
|
|
316
|
-
return;
|
|
317
|
-
}
|
|
318
|
-
var t = !0;
|
|
319
|
-
switch (e.keyCode) {
|
|
320
|
-
case p.RIGHT:
|
|
321
|
-
this.addDays(1);
|
|
322
|
-
break;
|
|
323
|
-
case p.LEFT:
|
|
324
|
-
this.addDays(-1);
|
|
325
|
-
break;
|
|
326
|
-
case p.DOWN:
|
|
327
|
-
this.addDays(7);
|
|
328
|
-
break;
|
|
329
|
-
case p.UP:
|
|
330
|
-
this.addDays(-7);
|
|
331
|
-
break;
|
|
332
|
-
case p.PAGE_UP:
|
|
333
|
-
e.shiftKey ? this.addYears(-1) : this.addMonths(-1);
|
|
334
|
-
break;
|
|
335
|
-
case p.PAGE_DOWN:
|
|
336
|
-
e.shiftKey ? this.addYears(1) : this.addMonths(1);
|
|
337
|
-
break;
|
|
338
|
-
case p.HOME:
|
|
339
|
-
this.startOfWeek();
|
|
340
|
-
break;
|
|
341
|
-
case p.END:
|
|
342
|
-
this.endOfWeek();
|
|
343
|
-
break;
|
|
344
|
-
default:
|
|
345
|
-
t = !1;
|
|
346
|
-
}
|
|
347
|
-
t && (e.preventDefault(), this.enableActiveFocus());
|
|
348
|
-
}, this.handleDaySelect = (e, t) => {
|
|
349
|
-
const a = M(t, v(this.min), v(this.max)), r = !this.isDateDisabled(t);
|
|
350
|
-
a && r ? (this.setValue(t), this.updateErrorMessage(""), this.hide()) : this.setFocusedDay(t);
|
|
351
|
-
}, this.handleMonthSelect = (e) => {
|
|
352
|
-
e.stopPropagation(), this.setMonth(parseInt(e.target.value, 10));
|
|
353
|
-
}, this.handleYearSelect = (e) => {
|
|
354
|
-
e.stopPropagation(), this.setYear(parseInt(e.target.value, 10));
|
|
355
|
-
}, this.handleInputChange = () => {
|
|
356
|
-
const e = this.datePickerInput;
|
|
357
|
-
ke(e, ye);
|
|
358
|
-
const t = this.dateAdapter.parse(e.value, x);
|
|
359
|
-
(t || e.value === "") && this.setValue(t);
|
|
360
|
-
}, this.processFocusedDayNode = (e) => {
|
|
361
|
-
this.focusedDayNode = e, this.activeFocus && this.open && setTimeout(() => e.focus(), 0);
|
|
362
|
-
}, this.makeTouched = () => {
|
|
363
|
-
this.touched = !0;
|
|
364
|
-
}, this.isValueValid = () => {
|
|
365
|
-
const e = this.datePickerInput.value, t = this.dateAdapter.parse(e, x);
|
|
366
|
-
return t === void 0 || !M(t, v(this.min), v(this.max)) ? !1 : !this.isDateDisabled(t);
|
|
367
|
-
}, this.updateErrorMessage = (e) => {
|
|
368
|
-
var t, a;
|
|
369
|
-
(a = (t = this.datePickerInput) === null || t === void 0 ? void 0 : t.setCustomValidity) === null || a === void 0 || a.call(t, e), this.errorMessageState = e;
|
|
370
|
-
}, this.isValueMissing = () => {
|
|
371
|
-
var e;
|
|
372
|
-
return ((e = this.datePickerInput) === null || e === void 0 ? void 0 : e.value.length) === 0;
|
|
373
|
-
}, this.updateErrorState = () => {
|
|
374
|
-
var e, t, a;
|
|
375
|
-
const r = !!(!((e = this.errorMessageState) === null || e === void 0) && e.length), l = this.required, o = !!(!((t = this.errorMessage) === null || t === void 0) && t.length), s = !!(!((a = this.invalidErrorMessage) === null || a === void 0) && a.length), d = !!this.datePickerInput;
|
|
376
|
-
if (o) {
|
|
377
|
-
this.updateErrorMessage(this.errorMessage), this.makeTouched();
|
|
378
|
-
return;
|
|
379
|
-
}
|
|
380
|
-
if (s && d && !this.isValueValid() && this.updateErrorMessage(this.invalidErrorMessage), l && this.touched && this.requiredErrorMessage && this.isValueMissing() && this.updateErrorMessage(this.requiredErrorMessage), r) {
|
|
381
|
-
if (o || s && !this.isValueValid())
|
|
382
|
-
return;
|
|
383
|
-
this.updateErrorMessage("");
|
|
384
|
-
}
|
|
385
|
-
}, this.setToggleRef = (e) => {
|
|
386
|
-
this.datePickerButton = e;
|
|
387
|
-
}, this.setTextInputRef = (e) => {
|
|
388
|
-
this.datePickerInput = e;
|
|
389
|
-
}, this.setDialogWrapperRef = (e) => {
|
|
390
|
-
this.dialogWrapperNode = e;
|
|
391
|
-
}, this.setCloseButtonRef = (e) => {
|
|
392
|
-
this.firstFocusableElement = e;
|
|
393
|
-
}, this.setMonthSelectRef = (e) => {
|
|
394
|
-
this.monthSelectNode = e;
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
connectedCallback() {
|
|
398
|
-
this.createDateFormatters();
|
|
399
|
-
}
|
|
400
|
-
componentWillLoad() {
|
|
401
|
-
this.updateErrorState(), this.yearRangeChanged(this.yearRange);
|
|
402
|
-
}
|
|
403
|
-
componentDidRender() {
|
|
404
|
-
var e, t;
|
|
405
|
-
(t = (e = this.datePickerInput) === null || e === void 0 ? void 0 : e.setCustomValidity) === null || t === void 0 || t.call(e, this.errorMessageState);
|
|
406
|
-
}
|
|
407
|
-
yearRangeChanged(e) {
|
|
408
|
-
let t = typeof e == "string" ? JSON.parse(e) : e;
|
|
409
|
-
Object.keys(t).map((a) => {
|
|
410
|
-
t[a] = parseInt(t[a]), t[a] = t[a] < 0 ? t[a] = 0 : t[a];
|
|
411
|
-
}), this.range = t;
|
|
412
|
-
}
|
|
413
|
-
createDateFormatters() {
|
|
414
|
-
this.dateFormatShort = new Intl.DateTimeFormat(this.localization.locale, {
|
|
415
|
-
day: "numeric",
|
|
416
|
-
month: "long"
|
|
417
|
-
}), this.dateFormatLong = new Intl.DateTimeFormat(this.localization.locale, {
|
|
418
|
-
day: "numeric",
|
|
419
|
-
month: "long",
|
|
420
|
-
year: "numeric"
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
/**
|
|
424
|
-
* Component event handling.
|
|
425
|
-
*/
|
|
426
|
-
handleDocumentClick(e) {
|
|
427
|
-
if (!this.open)
|
|
428
|
-
return;
|
|
429
|
-
e.composedPath().every((a) => a !== this.dialogWrapperNode && a !== this.datePickerButton) && this.hide(!1);
|
|
430
|
-
}
|
|
431
|
-
/**
|
|
432
|
-
* Public methods API
|
|
433
|
-
*/
|
|
434
|
-
/**
|
|
435
|
-
* Sets focus on the date picker's input. Use this method instead of the global `focus()`.
|
|
436
|
-
*/
|
|
437
|
-
async setFocus() {
|
|
438
|
-
return this.datePickerInput.focus();
|
|
439
|
-
}
|
|
440
|
-
/**
|
|
441
|
-
* Show the calendar modal, moving focus to the calendar inside.
|
|
442
|
-
*/
|
|
443
|
-
async show() {
|
|
444
|
-
this.open = !0, this.modalOpen = !0, this.setFocusedDay(v(this.value) || /* @__PURE__ */ new Date()), this.toggleSmallScreenScroll(), clearTimeout(this.focusTimeoutId), this.focusTimeoutId = setTimeout(() => this.monthSelectNode.focus(), Y);
|
|
445
|
-
}
|
|
446
|
-
/**
|
|
447
|
-
* Hide the calendar modal. Set `moveFocusToButton` to false to prevent focus
|
|
448
|
-
* returning to the date picker's button. Default is true.
|
|
449
|
-
*/
|
|
450
|
-
async hide(e = !0) {
|
|
451
|
-
this.open = !1, this.modalOpen = !1, this.toggleSmallScreenScroll(), clearTimeout(this.focusTimeoutId), e && setTimeout(
|
|
452
|
-
// TODO: querySelector as a workaround to focus native button inside telia-button, until telia-button doesn't handle that itself
|
|
453
|
-
() => this.datePickerButton.querySelector("button").focus(),
|
|
454
|
-
Y + 200
|
|
455
|
-
);
|
|
456
|
-
}
|
|
457
|
-
addDays(e) {
|
|
458
|
-
this.setFocusedDay(z(this.focusedDay, e));
|
|
459
|
-
}
|
|
460
|
-
addMonths(e) {
|
|
461
|
-
this.setMonth(this.focusedDay.getMonth() + e);
|
|
462
|
-
}
|
|
463
|
-
addYears(e) {
|
|
464
|
-
this.setYear(this.focusedDay.getFullYear() + e);
|
|
465
|
-
}
|
|
466
|
-
startOfWeek() {
|
|
467
|
-
this.setFocusedDay(R(this.focusedDay, this.firstDayOfWeek));
|
|
468
|
-
}
|
|
469
|
-
endOfWeek() {
|
|
470
|
-
this.setFocusedDay(P(this.focusedDay, this.firstDayOfWeek));
|
|
471
|
-
}
|
|
472
|
-
setMonth(e) {
|
|
473
|
-
const t = H(w(this.focusedDay), e), a = C(t), r = H(this.focusedDay, e);
|
|
474
|
-
this.setFocusedDay(S(r, t, a));
|
|
475
|
-
}
|
|
476
|
-
setYear(e) {
|
|
477
|
-
const t = L(w(this.focusedDay), e), a = C(t), r = L(this.focusedDay, e);
|
|
478
|
-
this.setFocusedDay(S(r, t, a));
|
|
479
|
-
}
|
|
480
|
-
setFocusedDay(e) {
|
|
481
|
-
this.focusedDay = S(e, v(this.min), v(this.max));
|
|
482
|
-
}
|
|
483
|
-
setValue(e) {
|
|
484
|
-
this.value = A(e), this.vocaChange.emit({
|
|
485
|
-
component: "telia-date-picker",
|
|
486
|
-
value: this.value,
|
|
487
|
-
valueAsDate: e
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
/**
|
|
491
|
-
* render() function
|
|
492
|
-
* Always the last one in the class.
|
|
493
|
-
*/
|
|
494
|
-
render() {
|
|
495
|
-
var e;
|
|
496
|
-
const t = !!this.additional, a = !!(!((e = this.errorMessageState) === null || e === void 0) && e.length), r = X({
|
|
497
|
-
[this.additionalId]: t,
|
|
498
|
-
[this.errorId]: a
|
|
499
|
-
}), l = v(this.value), o = l && this.dateAdapter.format(l), s = (l || this.focusedDay).getFullYear(), d = this.focusedDay.getMonth(), h = this.focusedDay.getFullYear(), c = v(this.min), u = v(this.max), _ = c !== void 0 && c.getMonth() === d && c.getFullYear() === h, g = u !== void 0 && u.getMonth() === d && u.getFullYear() === h, b = c !== void 0 ? c.getFullYear() : s - this.range.past, m = u !== void 0 ? u.getFullYear() : s + this.range.future;
|
|
500
|
-
return i($, null, i("telia-vst", { dataTrackingId: this.dataTrackingId }), i("div", { class: "telia-date-picker" }, i(de, { dateFormatter: this.dateFormatLong, describedBy: r, value: this.value, valueAsDate: l, formattedValue: o, onInput: this.handleInputChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.toggleOpen, name: this.name, disabled: this.disabled, readonly: this.readonly, role: this.role, required: this.required, identifier: this.inputId, localization: this.localization, buttonLabel: this.buttonLabel, buttonRef: this.setToggleRef, inputRef: this.setTextInputRef, touched: this.touched, makeTouched: this.makeTouched, htmlForm: this.htmlForm }), i("telia-label", { class: "telia-date-picker__label", htmlFor: this.inputId }, this.required && i("span", { "aria-hidden": "true" }, "* "), this.label), t && i("telia-field-assistive-text", { class: "telia-date-picker__additional", id: this.additionalId }, this.additional), a && i("telia-field-error", { class: "telia-date-picker__error", id: this.errorId }, this.errorMessageState), i("div", { class: "telia-date-picker__dialog-container" }, i("div", { class: {
|
|
501
|
-
"telia-date-picker__dialog": !0,
|
|
502
|
-
"is-left": this.direction === "left",
|
|
503
|
-
"is-active": this.open
|
|
504
|
-
}, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, i("div", { class: "telia-date-picker__dialog-content", onKeyDown: this.handleEscKey, ref: this.setDialogWrapperRef }, i("div", { class: "telia-date-picker__mobile", onFocusin: this.disableActiveFocus }, i("telia-heading", { tag: "h2", class: "telia-date-picker__mobile-heading", variant: "subsection-100" }, this.localization.calendarHeading), i("telia-button", { class: "telia-date-picker__close", ref: this.setCloseButtonRef, onKeyDown: this.handleFirstFocusableKeydown, onClick: this.handleCloseButtonClick, size: "sm", variant: "text", type: "button", allyLabel: this.localization.closeLabel }, i("telia-icon", { class: "telia-date-picker__close-icon", svg: j.svg, size: "sm" }))), i("div", { class: "telia-date-picker__header", onFocusin: this.disableActiveFocus }, i("div", null, i("h2", { id: this.dialogLabelId, class: "telia-date-picker__vhidden", "aria-live": "polite", "aria-atomic": "true" }, this.localization.monthNames[d], " ", this.focusedDay.getFullYear()), i("label", { htmlFor: this.monthSelectId, class: "telia-date-picker__vhidden" }, this.localization.monthSelectLabel), i("div", { class: "telia-date-picker__select" }, i("select", { id: this.monthSelectId, class: "telia-date-picker__select--month", ref: this.setMonthSelectRef, onChange: this.handleMonthSelect, onInput: (n) => {
|
|
505
|
-
n.stopPropagation();
|
|
506
|
-
} }, this.localization.monthNames.map((n, f) => i("option", { key: n, value: f, selected: f === d, disabled: !M(new Date(h, f, 1), c !== void 0 ? w(c) : null, u !== void 0 ? C(u) : null) }, n))), i("div", { class: "telia-date-picker__select-label", "aria-hidden": "true" }, i("span", null, this.localization.monthNamesShort[d]), i("telia-icon", { class: "telia-date-picker__select-icon", svg: E.svg, size: "sm" }))), i("label", { htmlFor: this.yearSelectId, class: "telia-date-picker__vhidden" }, this.localization.yearSelectLabel), i("div", { class: "telia-date-picker__select" }, i("select", { id: this.yearSelectId, class: "telia-date-picker__select--year", onChange: this.handleYearSelect, onInput: (n) => {
|
|
507
|
-
n.stopPropagation();
|
|
508
|
-
} }, ge(b, m).map((n) => i("option", { key: n, selected: n === h }, n))), i("div", { class: "telia-date-picker__select-label", "aria-hidden": "true" }, i("span", null, this.focusedDay.getFullYear()), i("telia-icon", { class: "telia-date-picker__select-icon", svg: E.svg, size: "sm" })))), i("div", { class: "telia-date-picker__nav" }, i("button", { class: "telia-date-picker__prev", onClick: this.handlePreviousMonthClick, disabled: _, type: "button", "aria-label": this.localization.prevMonthLabel }, i("telia-icon", { class: "telia-date-picker__prev-icon", svg: le.svg, size: "sm" })), i("button", { class: "telia-date-picker__next", onClick: this.handleNextMonthClick, disabled: g, type: "button", "aria-label": this.localization.nextMonthLabel }, i("telia-icon", { class: "telia-date-picker__next-icon", svg: oe.svg, size: "sm" })))), i(pe, { dateFormatter: this.dateFormatShort, selectedDate: l, focusedDate: this.focusedDay, onDateSelect: this.handleDaySelect, onKeyboardNavigation: this.handleKeyboardNavigation, labelledById: this.dialogLabelId, localization: this.localization, firstDayOfWeek: this.firstDayOfWeek, focusedDayRef: this.processFocusedDayNode, min: c, max: u, isDateDisabled: this.isDateDisabled }))))));
|
|
509
|
-
}
|
|
510
|
-
get element() {
|
|
511
|
-
return this;
|
|
512
|
-
}
|
|
513
|
-
static get watchers() {
|
|
514
|
-
return {
|
|
515
|
-
yearRange: ["yearRangeChanged"],
|
|
516
|
-
localization: ["createDateFormatters"]
|
|
517
|
-
};
|
|
518
|
-
}
|
|
519
|
-
static get style() {
|
|
520
|
-
return _e;
|
|
521
|
-
}
|
|
522
|
-
}, [0, "telia-date-picker", {
|
|
523
|
-
dataTestid: [1, "data-testid"],
|
|
524
|
-
htmlForm: [1, "html-form"],
|
|
525
|
-
name: [1],
|
|
526
|
-
label: [1],
|
|
527
|
-
additional: [1],
|
|
528
|
-
additionalId: [1, "additional-id"],
|
|
529
|
-
inputId: [1, "input-id"],
|
|
530
|
-
disabled: [516],
|
|
531
|
-
role: [1],
|
|
532
|
-
buttonLabel: [1, "button-label"],
|
|
533
|
-
direction: [1],
|
|
534
|
-
readonly: [4],
|
|
535
|
-
required: [4],
|
|
536
|
-
value: [1537],
|
|
537
|
-
min: [1],
|
|
538
|
-
max: [1],
|
|
539
|
-
yearRange: [1, "year-range"],
|
|
540
|
-
firstDayOfWeek: [2, "first-day-of-week"],
|
|
541
|
-
localization: [16],
|
|
542
|
-
dateAdapter: [16],
|
|
543
|
-
modalOpen: [1540, "modal-open"],
|
|
544
|
-
isDateDisabled: [16],
|
|
545
|
-
errorId: [1, "error-id"],
|
|
546
|
-
errorMessage: [1, "error-message"],
|
|
547
|
-
invalidErrorMessage: [1, "invalid-error-message"],
|
|
548
|
-
requiredErrorMessage: [1, "required-error-message"],
|
|
549
|
-
activeFocus: [32],
|
|
550
|
-
focusedDay: [32],
|
|
551
|
-
open: [32],
|
|
552
|
-
errorMessageState: [32],
|
|
553
|
-
touched: [32],
|
|
554
|
-
setFocus: [64],
|
|
555
|
-
show: [64],
|
|
556
|
-
hide: [64]
|
|
557
|
-
}, [[6, "click", "handleDocumentClick"]]]);
|
|
558
|
-
function we() {
|
|
559
|
-
if (typeof customElements > "u")
|
|
560
|
-
return;
|
|
561
|
-
["telia-date-picker", "telia-button", "telia-field-assistive-text", "telia-field-error", "telia-heading", "telia-icon", "telia-label", "telia-vst"].forEach((t) => {
|
|
562
|
-
switch (t) {
|
|
563
|
-
case "telia-date-picker":
|
|
564
|
-
customElements.get(t) || customElements.define(t, De);
|
|
565
|
-
break;
|
|
566
|
-
case "telia-button":
|
|
567
|
-
customElements.get(t) || J();
|
|
568
|
-
break;
|
|
569
|
-
case "telia-field-assistive-text":
|
|
570
|
-
customElements.get(t) || U();
|
|
571
|
-
break;
|
|
572
|
-
case "telia-field-error":
|
|
573
|
-
customElements.get(t) || Q();
|
|
574
|
-
break;
|
|
575
|
-
case "telia-heading":
|
|
576
|
-
customElements.get(t) || ee();
|
|
577
|
-
break;
|
|
578
|
-
case "telia-icon":
|
|
579
|
-
customElements.get(t) || te();
|
|
580
|
-
break;
|
|
581
|
-
case "telia-label":
|
|
582
|
-
customElements.get(t) || ae();
|
|
583
|
-
break;
|
|
584
|
-
case "telia-vst":
|
|
585
|
-
customElements.get(t) || ie();
|
|
586
|
-
break;
|
|
587
|
-
}
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
we();
|
|
591
|
-
//# sourceMappingURL=telia-date-picker.js.map
|
|
1
|
+
import '@teliads/components/dist/components/telia-date-picker';
|
|
2
|
+
//# sourceMappingURL=out.js.map
|
|
3
|
+
//# sourceMappingURL=telia-date-picker.js.map
|