@rededor/cura 1.7.1 → 1.8.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/dist/cjs/cura-accordion_20.cjs.entry.js +485 -138
- package/dist/cjs/cura-accordion_20.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-alert.cjs.entry.js +9 -12
- package/dist/cjs/cura-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-alert.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-badge-counter.cjs.entry.js +16 -8
- package/dist/cjs/cura-badge-counter.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-badge-counter.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-badge-dot.cjs.entry.js +14 -5
- package/dist/cjs/cura-badge-dot.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-badge-dot.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-badge-pill.cjs.entry.js +23 -7
- package/dist/cjs/cura-badge-pill.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-badge-pill.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-button-outline.cjs.entry.js +46 -8
- package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-button-outline.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-button-select.cjs.entry.js +7 -12
- package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-button-select.entry.cjs.js.map +1 -0
- package/dist/cjs/{cura-button.definitions-f036371c.js → cura-button.definitions-B3SK8MaV.js} +2 -1
- package/dist/cjs/cura-button.definitions-B3SK8MaV.js.map +1 -0
- package/dist/cjs/cura-calendar.cjs.entry.js +203 -94
- package/dist/cjs/cura-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-calendar.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-card.cjs.entry.js +34 -6
- package/dist/cjs/cura-card.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-card.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-checkbox.cjs.entry.js +72 -20
- package/dist/cjs/cura-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-checkbox.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-display.cjs.entry.js +25 -7
- package/dist/cjs/cura-display.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-display.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js +5 -6
- package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-dropdown-search-not-found.entry.cjs.js.map +1 -0
- package/dist/cjs/{cura-forms.definitions-c164f1b8.js → cura-forms.definitions-DVLuO67c.js} +2 -1
- package/dist/cjs/cura-forms.definitions-DVLuO67c.js.map +1 -0
- package/dist/cjs/{cura-icon.definitions-5223028b.js → cura-icon.definitions-DT0wF67y.js} +2 -1
- package/dist/cjs/cura-icon.definitions-DT0wF67y.js.map +1 -0
- package/dist/cjs/cura-icons-view.cjs.entry.js +7 -8
- package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-icons-view.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-input-date.cjs.entry.js +32 -15
- package/dist/cjs/cura-input-date.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-input-date.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-loader-bar.cjs.entry.js +4 -5
- package/dist/cjs/cura-loader-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-loader-bar.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-modal.cjs.entry.js +46 -15
- package/dist/cjs/cura-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-modal.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-progress-bar.cura-stepper-item.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-progress-bar_2.cjs.entry.js +25 -15
- package/dist/cjs/cura-progress-bar_2.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-radio.cjs.entry.js +73 -21
- package/dist/cjs/cura-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-radio.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-stepper.cjs.entry.js +23 -6
- package/dist/cjs/cura-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-stepper.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-switch.cjs.entry.js +61 -18
- package/dist/cjs/cura-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-switch.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-tabs-button.cjs.entry.js +6 -9
- package/dist/cjs/cura-tabs-button.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-tabs-button.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-tabs-transparent.cjs.entry.js +6 -9
- package/dist/cjs/cura-tabs-transparent.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-tabs-transparent.entry.cjs.js.map +1 -0
- package/dist/cjs/{cura-tabs.definitions-b8955ad4.js → cura-tabs.definitions-CGqqGE2e.js} +2 -1
- package/dist/cjs/cura-tabs.definitions-CGqqGE2e.js.map +1 -0
- package/dist/cjs/{cura-theme-module-09bb63a4.js → cura-theme-module-CJkmAxBA.js} +94 -9
- package/dist/cjs/cura-theme-module-CJkmAxBA.js.map +1 -0
- package/dist/cjs/cura-toast.cjs.entry.js +8 -11
- package/dist/cjs/cura-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-toast.entry.cjs.js.map +1 -0
- package/dist/cjs/cura-tooltip.cjs.entry.js +9 -11
- package/dist/cjs/cura-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-tooltip.entry.cjs.js.map +1 -0
- package/dist/cjs/cura.cjs.js +9 -10
- package/dist/cjs/cura.cjs.js.map +1 -1
- package/dist/cjs/{index-60783089.js → index-BK9MSAiE.js} +947 -289
- package/dist/cjs/index-BK9MSAiE.js.map +1 -0
- package/dist/cjs/{index-6dc29195.js → index-EyP6Zlkd.js} +2 -1
- package/dist/cjs/index-EyP6Zlkd.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -4
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +5 -8
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js +57 -18
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.js.map +1 -1
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js +45 -9
- package/dist/collection/components/accordion/cura-accordion-item/cura-accordion-item.js.map +1 -1
- package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js +24 -7
- package/dist/collection/components/badges/cura-badge-counter/cura-badge-counter.js.map +1 -1
- package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js +8 -4
- package/dist/collection/components/badges/cura-badge-distance/cura-badge-distance.js.map +1 -1
- package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js +19 -3
- package/dist/collection/components/badges/cura-badge-dot/cura-badge-dot.js.map +1 -1
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +40 -9
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +1 -1
- package/dist/collection/components/buttons/cura-button/cura-button.js +86 -17
- package/dist/collection/components/buttons/cura-button/cura-button.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +86 -17
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +25 -13
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +81 -16
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +1 -1
- package/dist/collection/components/cura-alert/cura-alert.js +19 -11
- package/dist/collection/components/cura-alert/cura-alert.js.map +1 -1
- package/dist/collection/components/cura-avatar/cura-avatar.js +48 -13
- package/dist/collection/components/cura-avatar/cura-avatar.js.map +1 -1
- package/dist/collection/components/cura-calendar/cura-calendar.js +196 -24
- package/dist/collection/components/cura-calendar/cura-calendar.js.map +1 -1
- package/dist/collection/components/cura-card/cura-card.js +48 -7
- package/dist/collection/components/cura-card/cura-card.js.map +1 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +31 -9
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js.map +1 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js +91 -28
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
- package/dist/collection/components/cura-icon/cura-icon.js +15 -6
- package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.js +1 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.js.map +1 -1
- package/dist/collection/components/cura-modal/cura-modal.css +0 -1
- package/dist/collection/components/cura-modal/cura-modal.js +65 -17
- package/dist/collection/components/cura-modal/cura-modal.js.map +1 -1
- package/dist/collection/components/cura-page-template/cura-page-template.js +3 -1
- package/dist/collection/components/cura-page-template/cura-page-template.js.map +1 -1
- package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +21 -8
- package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js.map +1 -1
- package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +26 -9
- package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js.map +1 -1
- package/dist/collection/components/cura-stepper/cura-stepper.js +34 -6
- package/dist/collection/components/cura-stepper/cura-stepper.js.map +1 -1
- package/dist/collection/components/cura-toast/cura-toast.js +24 -12
- package/dist/collection/components/cura-toast/cura-toast.js.map +1 -1
- package/dist/collection/components/cura-tooltip/cura-tooltip.js +25 -12
- package/dist/collection/components/cura-tooltip/cura-tooltip.js.map +1 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +114 -29
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +1 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.css +1 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.js +74 -16
- package/dist/collection/components/forms/cura-input-date/cura-input-date.js.map +1 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js +13 -0
- package/dist/collection/components/forms/cura-input-date/cura-input-date.stories.js.map +1 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js +132 -28
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
- package/dist/collection/components/forms/cura-label/cura-label.js +46 -9
- package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.js +109 -28
- package/dist/collection/components/forms/cura-radio/cura-radio.js.map +1 -1
- package/dist/collection/components/forms/cura-select/cura-select.js +114 -34
- package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -1
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js +13 -6
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js.map +1 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.js +85 -21
- package/dist/collection/components/forms/cura-switch/cura-switch.js.map +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +6 -2
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js.map +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +14 -4
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +1 -1
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +21 -9
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.js.map +1 -1
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +21 -9
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js.map +1 -1
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +9 -3
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js.map +1 -1
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +21 -9
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js.map +1 -1
- package/dist/collection/components/text/cura-display/cura-display.js +39 -8
- package/dist/collection/components/text/cura-display/cura-display.js.map +1 -1
- package/dist/collection/components/text/cura-heading/cura-heading.js +53 -10
- package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +39 -8
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
- package/dist/components/cura-accordion-item.js +24 -6
- package/dist/components/cura-accordion-item.js.map +1 -1
- package/dist/components/cura-accordion.js +34 -13
- package/dist/components/cura-accordion.js.map +1 -1
- package/dist/components/cura-alert.js +12 -14
- package/dist/components/cura-alert.js.map +1 -1
- package/dist/components/cura-avatar.js +25 -8
- package/dist/components/cura-avatar.js.map +1 -1
- package/dist/components/cura-badge-counter.js +2 -1
- package/dist/components/cura-badge-distance.js +7 -7
- package/dist/components/cura-badge-distance.js.map +1 -1
- package/dist/components/cura-badge-dot.js +14 -4
- package/dist/components/cura-badge-dot.js.map +1 -1
- package/dist/components/cura-badge-pill.js +2 -1
- package/dist/components/cura-button-outline.js +49 -10
- package/dist/components/cura-button-outline.js.map +1 -1
- package/dist/components/cura-button-select.js +10 -14
- package/dist/components/cura-button-select.js.map +1 -1
- package/dist/components/cura-button-transparent.js +2 -1
- package/dist/components/cura-button.js +49 -10
- package/dist/components/cura-button.js.map +1 -1
- package/dist/components/cura-calendar.js +2 -1
- package/dist/components/cura-card.js +34 -5
- package/dist/components/cura-card.js.map +1 -1
- package/dist/components/cura-checkbox.js +75 -22
- package/dist/components/cura-checkbox.js.map +1 -1
- package/dist/components/cura-display.js +25 -6
- package/dist/components/cura-display.js.map +1 -1
- package/dist/components/cura-dropdown-search-category.js +5 -5
- package/dist/components/cura-dropdown-search-category.js.map +1 -1
- package/dist/components/cura-dropdown-search-not-found.js +6 -6
- package/dist/components/cura-dropdown-search-not-found.js.map +1 -1
- package/dist/components/cura-dropdown-search-option.js +22 -10
- package/dist/components/cura-dropdown-search-option.js.map +1 -1
- package/dist/components/cura-dropdown-search.js +66 -27
- package/dist/components/cura-dropdown-search.js.map +1 -1
- package/dist/components/cura-heading.js +2 -1
- package/dist/components/cura-icon.js +2 -1
- package/dist/components/cura-icons-view.js +9 -9
- package/dist/components/cura-icons-view.js.map +1 -1
- package/dist/components/cura-input-date.js +40 -21
- package/dist/components/cura-input-date.js.map +1 -1
- package/dist/components/cura-input-text.js +2 -1
- package/dist/components/cura-label.js +2 -1
- package/dist/components/cura-loader-bar.js +2 -1
- package/dist/components/cura-loader-circle.js +2 -1
- package/dist/components/cura-modal.js +50 -18
- package/dist/components/cura-modal.js.map +1 -1
- package/dist/components/cura-page-template.js +4 -4
- package/dist/components/cura-page-template.js.map +1 -1
- package/dist/components/cura-paragraph.js +2 -1
- package/dist/components/cura-progress-bar.js +2 -1
- package/dist/components/cura-radio.js +75 -22
- package/dist/components/cura-radio.js.map +1 -1
- package/dist/components/cura-select-option.js +2 -1
- package/dist/components/cura-select.js +2 -1
- package/dist/components/cura-stepper-item.js +2 -1
- package/dist/components/cura-stepper.js +30 -12
- package/dist/components/cura-stepper.js.map +1 -1
- package/dist/components/cura-switch.js +62 -18
- package/dist/components/cura-switch.js.map +1 -1
- package/dist/components/cura-tabs-button.js +9 -11
- package/dist/components/cura-tabs-button.js.map +1 -1
- package/dist/components/cura-tabs-group.js +5 -5
- package/dist/components/cura-tabs-group.js.map +1 -1
- package/dist/components/cura-tabs-transparent.js +8 -10
- package/dist/components/cura-tabs-transparent.js.map +1 -1
- package/dist/components/cura-tabs.js +8 -10
- package/dist/components/cura-tabs.js.map +1 -1
- package/dist/components/cura-toast.js +12 -14
- package/dist/components/cura-toast.js.map +1 -1
- package/dist/components/cura-tooltip.js +15 -16
- package/dist/components/cura-tooltip.js.map +1 -1
- package/dist/components/index.js +3 -547
- package/dist/components/index.js.map +1 -1
- package/dist/components/{cura-icon2.js → p-B5aO1chh.js} +5 -6
- package/dist/components/p-B5aO1chh.js.map +1 -0
- package/dist/components/{cura-heading2.js → p-BHEafDKD.js} +34 -7
- package/dist/components/p-BHEafDKD.js.map +1 -0
- package/dist/components/{cura-button-transparent2.js → p-BRDqwZ4N.js} +48 -11
- package/dist/components/p-BRDqwZ4N.js.map +1 -0
- package/dist/{esm/cura-button.definitions-617d3bad.js → components/p-BSI2FkNn.js} +2 -1
- package/dist/components/p-BSI2FkNn.js.map +1 -0
- package/dist/components/{cura-badge-counter2.js → p-C72aF-gL.js} +18 -9
- package/dist/components/p-C72aF-gL.js.map +1 -0
- package/dist/components/{cura-tabs.definitions.js → p-CHcd-uKK.js} +2 -1
- package/dist/components/p-CHcd-uKK.js.map +1 -0
- package/dist/components/p-D1cPOZpG.js +2617 -0
- package/dist/components/p-D1cPOZpG.js.map +1 -0
- package/dist/components/{cura-paragraph2.js → p-DI4g-ZH4.js} +26 -7
- package/dist/components/p-DI4g-ZH4.js.map +1 -0
- package/dist/components/{cura-label2.js → p-DR1RHrEX.js} +30 -7
- package/dist/components/p-DR1RHrEX.js.map +1 -0
- package/dist/components/{cura-stepper-item2.js → p-DaPc6Dxl.js} +23 -14
- package/dist/components/p-DaPc6Dxl.js.map +1 -0
- package/dist/components/{cura-forms.definitions.js → p-Dot54hbB.js} +2 -1
- package/dist/components/p-Dot54hbB.js.map +1 -0
- package/dist/components/{cura-select-option2.js → p-DpIu_Oxz.js} +8 -9
- package/dist/components/p-DpIu_Oxz.js.map +1 -0
- package/dist/components/{cura-loader-circle2.js → p-Dqm2sAwv.js} +13 -7
- package/dist/components/p-Dqm2sAwv.js.map +1 -0
- package/dist/components/{cura-progress-bar2.js → p-FTSrgi0q.js} +11 -8
- package/dist/components/p-FTSrgi0q.js.map +1 -0
- package/dist/components/{cura-loader-bar2.js → p-KIQMkSRF.js} +5 -5
- package/dist/components/p-KIQMkSRF.js.map +1 -0
- package/dist/components/{cura-badge-pill2.js → p-cOEGtL9C.js} +26 -9
- package/dist/components/p-cOEGtL9C.js.map +1 -0
- package/dist/components/{cura-calendar2.js → p-e-P5qR3J.js} +210 -100
- package/dist/components/p-e-P5qR3J.js.map +1 -0
- package/dist/components/{cura-select2.js → p-y6Cly9DJ.js} +87 -31
- package/dist/components/p-y6Cly9DJ.js.map +1 -0
- package/dist/components/{cura-input-text2.js → p-zz_zOPBZ.js} +75 -102
- package/dist/components/p-zz_zOPBZ.js.map +1 -0
- package/dist/cura/cura-alert.entry.esm.js.map +1 -0
- package/dist/cura/cura-badge-counter.entry.esm.js.map +1 -0
- package/dist/cura/cura-badge-dot.entry.esm.js.map +1 -0
- package/dist/cura/cura-badge-pill.entry.esm.js.map +1 -0
- package/dist/cura/cura-button-outline.entry.esm.js.map +1 -0
- package/dist/cura/cura-button-select.entry.esm.js.map +1 -0
- package/dist/cura/{p-12a4ae7e.entry.js.map → cura-calendar.entry.esm.js.map} +1 -1
- package/dist/cura/{p-53d68d72.entry.js.map → cura-card.entry.esm.js.map} +1 -1
- package/dist/cura/cura-checkbox.entry.esm.js.map +1 -0
- package/dist/cura/cura-display.entry.esm.js.map +1 -0
- package/dist/cura/cura-dropdown-search-not-found.entry.esm.js.map +1 -0
- package/dist/cura/cura-icons-view.entry.esm.js.map +1 -0
- package/dist/cura/cura-input-date.entry.esm.js.map +1 -0
- package/dist/cura/cura-loader-bar.entry.esm.js.map +1 -0
- package/dist/cura/{p-1ef21ae9.entry.js.map → cura-modal.entry.esm.js.map} +1 -1
- package/dist/cura/cura-progress-bar.cura-stepper-item.entry.esm.js.map +1 -0
- package/dist/cura/cura-radio.entry.esm.js.map +1 -0
- package/dist/cura/cura-stepper.entry.esm.js.map +1 -0
- package/dist/cura/cura-switch.entry.esm.js.map +1 -0
- package/dist/cura/cura-tabs-button.entry.esm.js.map +1 -0
- package/dist/cura/cura-tabs-transparent.entry.esm.js.map +1 -0
- package/dist/cura/cura-toast.entry.esm.js.map +1 -0
- package/dist/cura/cura-tooltip.entry.esm.js.map +1 -0
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/cura.esm.js.map +1 -1
- package/dist/cura/index.esm.js +1 -1
- package/dist/cura/index.esm.js.map +1 -1
- package/dist/cura/loader.esm.js.map +1 -0
- package/dist/cura/p-077019da.entry.js +2 -0
- package/dist/cura/p-077019da.entry.js.map +1 -0
- package/dist/cura/p-07783235.entry.js +2 -0
- package/dist/cura/p-07783235.entry.js.map +1 -0
- package/dist/cura/p-090e297c.entry.js +2 -0
- package/dist/cura/p-090e297c.entry.js.map +1 -0
- package/dist/cura/p-16c0b52c.entry.js +2 -0
- package/dist/cura/p-16c0b52c.entry.js.map +1 -0
- package/dist/cura/p-2632183e.entry.js +2 -0
- package/dist/cura/p-2632183e.entry.js.map +1 -0
- package/dist/cura/p-32015dcc.entry.js +2 -0
- package/dist/cura/p-32015dcc.entry.js.map +1 -0
- package/dist/cura/p-32f94709.entry.js +2 -0
- package/dist/cura/p-32f94709.entry.js.map +1 -0
- package/dist/cura/p-3d6040e2.entry.js +2 -0
- package/dist/cura/p-3d6040e2.entry.js.map +1 -0
- package/dist/cura/p-4ac578a6.entry.js +2 -0
- package/dist/cura/p-4ac578a6.entry.js.map +1 -0
- package/dist/cura/p-4bde448e.entry.js +2 -0
- package/dist/cura/p-4bde448e.entry.js.map +1 -0
- package/dist/cura/p-6feba852.entry.js +2 -0
- package/dist/cura/p-6feba852.entry.js.map +1 -0
- package/dist/cura/p-7586fd07.entry.js +2 -0
- package/dist/cura/p-7586fd07.entry.js.map +1 -0
- package/dist/cura/p-76cbb798.entry.js +2 -0
- package/dist/cura/p-76cbb798.entry.js.map +1 -0
- package/dist/cura/p-7fd143aa.entry.js +2 -0
- package/dist/cura/p-7fd143aa.entry.js.map +1 -0
- package/dist/cura/p-8c83f259.entry.js +2 -0
- package/dist/cura/p-8c83f259.entry.js.map +1 -0
- package/dist/cura/p-95cd7918.entry.js +2 -0
- package/dist/cura/p-95cd7918.entry.js.map +1 -0
- package/dist/cura/{p-272c784a.js → p-964stZ3D.js} +1 -1
- package/dist/cura/p-964stZ3D.js.map +1 -0
- package/dist/cura/p-9ef5444e.entry.js +2 -0
- package/dist/cura/p-9ef5444e.entry.js.map +1 -0
- package/dist/cura/p-BPKQjAwN.js +2 -0
- package/dist/cura/p-BPKQjAwN.js.map +1 -0
- package/dist/cura/{p-53c18ed4.js → p-BSI2FkNn.js} +1 -1
- package/dist/cura/p-BSI2FkNn.js.map +1 -0
- package/dist/cura/{p-efcb32eb.js → p-CHcd-uKK.js} +1 -1
- package/dist/cura/p-CHcd-uKK.js.map +1 -0
- package/dist/cura/{p-f9b8f665.js → p-Dot54hbB.js} +1 -1
- package/dist/cura/p-Dot54hbB.js.map +1 -0
- package/dist/cura/p-PPMZr_VE.js +3 -0
- package/dist/cura/p-PPMZr_VE.js.map +1 -0
- package/dist/cura/p-c6f240f0.entry.js +2 -0
- package/dist/cura/p-c6f240f0.entry.js.map +1 -0
- package/dist/cura/p-ceb646df.entry.js +2 -0
- package/dist/cura/p-ceb646df.entry.js.map +1 -0
- package/dist/cura/p-d040f8b9.entry.js +2 -0
- package/dist/cura/p-d040f8b9.entry.js.map +1 -0
- package/dist/cura/p-deb0b764.entry.js +2 -0
- package/dist/cura/p-deb0b764.entry.js.map +1 -0
- package/dist/cura/p-df7cb250.entry.js +2 -0
- package/dist/cura/p-df7cb250.entry.js.map +1 -0
- package/dist/cura/p-f9af3a3b.entry.js +2 -0
- package/dist/cura/p-f9af3a3b.entry.js.map +1 -0
- package/dist/cura/p-fc3b57a8.entry.js +2 -0
- package/dist/cura/p-fc3b57a8.entry.js.map +1 -0
- package/dist/cura/{p-48f9289b.js → p-sjLA93YY.js} +1 -1
- package/dist/cura/p-sjLA93YY.js.map +1 -0
- package/dist/esm/cura-accordion_20.entry.js +484 -135
- package/dist/esm/cura-accordion_20.entry.js.map +1 -1
- package/dist/esm/cura-alert.entry.js +9 -10
- package/dist/esm/cura-alert.entry.js.map +1 -1
- package/dist/esm/cura-badge-counter.entry.js +16 -6
- package/dist/esm/cura-badge-counter.entry.js.map +1 -1
- package/dist/esm/cura-badge-dot.entry.js +14 -3
- package/dist/esm/cura-badge-dot.entry.js.map +1 -1
- package/dist/esm/cura-badge-pill.entry.js +23 -5
- package/dist/esm/cura-badge-pill.entry.js.map +1 -1
- package/dist/esm/cura-button-outline.entry.js +46 -6
- package/dist/esm/cura-button-outline.entry.js.map +1 -1
- package/dist/esm/cura-button-select.entry.js +7 -10
- package/dist/esm/cura-button-select.entry.js.map +1 -1
- package/dist/{components/cura-button.definitions.js → esm/cura-button.definitions-BSI2FkNn.js} +2 -1
- package/dist/esm/cura-button.definitions-BSI2FkNn.js.map +1 -0
- package/dist/esm/cura-calendar.entry.js +203 -92
- package/dist/esm/cura-calendar.entry.js.map +1 -1
- package/dist/esm/cura-card.entry.js +34 -4
- package/dist/esm/cura-card.entry.js.map +1 -1
- package/dist/esm/cura-checkbox.entry.js +72 -18
- package/dist/esm/cura-checkbox.entry.js.map +1 -1
- package/dist/esm/cura-display.entry.js +25 -5
- package/dist/esm/cura-display.entry.js.map +1 -1
- package/dist/esm/cura-dropdown-search-not-found.entry.js +5 -4
- package/dist/esm/cura-dropdown-search-not-found.entry.js.map +1 -1
- package/dist/esm/{cura-forms.definitions-2f963167.js → cura-forms.definitions-Dot54hbB.js} +2 -1
- package/dist/esm/cura-forms.definitions-Dot54hbB.js.map +1 -0
- package/dist/esm/{cura-icon.definitions-a892c0e2.js → cura-icon.definitions-sjLA93YY.js} +2 -1
- package/dist/esm/cura-icon.definitions-sjLA93YY.js.map +1 -0
- package/dist/esm/cura-icons-view.entry.js +7 -6
- package/dist/esm/cura-icons-view.entry.js.map +1 -1
- package/dist/esm/cura-input-date.entry.js +32 -13
- package/dist/esm/cura-input-date.entry.js.map +1 -1
- package/dist/esm/cura-loader-bar.entry.js +4 -3
- package/dist/esm/cura-loader-bar.entry.js.map +1 -1
- package/dist/esm/cura-modal.entry.js +46 -13
- package/dist/esm/cura-modal.entry.js.map +1 -1
- package/dist/esm/cura-progress-bar.cura-stepper-item.entry.js.map +1 -0
- package/dist/esm/cura-progress-bar_2.entry.js +25 -13
- package/dist/esm/cura-progress-bar_2.entry.js.map +1 -1
- package/dist/esm/cura-radio.entry.js +73 -19
- package/dist/esm/cura-radio.entry.js.map +1 -1
- package/dist/esm/cura-stepper.entry.js +23 -4
- package/dist/esm/cura-stepper.entry.js.map +1 -1
- package/dist/esm/cura-switch.entry.js +61 -16
- package/dist/esm/cura-switch.entry.js.map +1 -1
- package/dist/esm/cura-tabs-button.entry.js +6 -7
- package/dist/esm/cura-tabs-button.entry.js.map +1 -1
- package/dist/esm/cura-tabs-transparent.entry.js +6 -7
- package/dist/esm/cura-tabs-transparent.entry.js.map +1 -1
- package/dist/esm/{cura-tabs.definitions-a017126e.js → cura-tabs.definitions-CHcd-uKK.js} +2 -1
- package/dist/esm/cura-tabs.definitions-CHcd-uKK.js.map +1 -0
- package/dist/esm/{cura-theme-module-bf286f68.js → cura-theme-module-BPKQjAwN.js} +88 -4
- package/dist/esm/cura-theme-module-BPKQjAwN.js.map +1 -0
- package/dist/esm/cura-toast.entry.js +8 -9
- package/dist/esm/cura-toast.entry.js.map +1 -1
- package/dist/esm/cura-tooltip.entry.js +9 -9
- package/dist/esm/cura-tooltip.entry.js.map +1 -1
- package/dist/esm/cura.js +7 -7
- package/dist/esm/cura.js.map +1 -1
- package/dist/esm/{index-fbee309a.js → index-964stZ3D.js} +2 -1
- package/dist/esm/index-964stZ3D.js.map +1 -0
- package/dist/esm/{index-21683715.js → index-OdKytJIH.js} +947 -270
- package/dist/esm/index-OdKytJIH.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +5 -6
- package/dist/esm/loader.js.map +1 -1
- package/dist/types/components/forms/cura-input-date/cura-input-date.d.ts +4 -0
- package/dist/types/components/forms/cura-input-date/cura-input-date.stories.d.ts +14 -0
- package/dist/types/components.d.ts +718 -0
- package/dist/types/stencil-public-runtime.d.ts +25 -1
- package/package.json +5 -5
- package/dist/cjs/app-globals-6d5b51b6.js +0 -70
- package/dist/cjs/app-globals-6d5b51b6.js.map +0 -1
- package/dist/cjs/cura-button.definitions-f036371c.js.map +0 -1
- package/dist/cjs/cura-forms.definitions-c164f1b8.js.map +0 -1
- package/dist/cjs/cura-icon.definitions-5223028b.js.map +0 -1
- package/dist/cjs/cura-tabs.definitions-b8955ad4.js.map +0 -1
- package/dist/cjs/cura-theme-module-09bb63a4.js.map +0 -1
- package/dist/cjs/index-60783089.js.map +0 -1
- package/dist/cjs/index-6dc29195.js.map +0 -1
- package/dist/cjs/static-44199808.js +0 -90
- package/dist/cjs/static-44199808.js.map +0 -1
- package/dist/components/cura-badge-counter2.js.map +0 -1
- package/dist/components/cura-badge-pill2.js.map +0 -1
- package/dist/components/cura-button-transparent2.js.map +0 -1
- package/dist/components/cura-button.definitions.js.map +0 -1
- package/dist/components/cura-calendar2.js.map +0 -1
- package/dist/components/cura-forms.definitions.js.map +0 -1
- package/dist/components/cura-heading2.js.map +0 -1
- package/dist/components/cura-icon2.js.map +0 -1
- package/dist/components/cura-input-text2.js.map +0 -1
- package/dist/components/cura-label2.js.map +0 -1
- package/dist/components/cura-loader-bar2.js.map +0 -1
- package/dist/components/cura-loader-circle2.js.map +0 -1
- package/dist/components/cura-paragraph2.js.map +0 -1
- package/dist/components/cura-progress-bar2.js.map +0 -1
- package/dist/components/cura-select-option2.js.map +0 -1
- package/dist/components/cura-select2.js.map +0 -1
- package/dist/components/cura-stepper-item2.js.map +0 -1
- package/dist/components/cura-tabs.definitions.js.map +0 -1
- package/dist/cura/p-0aeaf57a.entry.js +0 -2
- package/dist/cura/p-0aeaf57a.entry.js.map +0 -1
- package/dist/cura/p-0b872499.entry.js +0 -2
- package/dist/cura/p-0b872499.entry.js.map +0 -1
- package/dist/cura/p-0ccde0ff.entry.js +0 -2
- package/dist/cura/p-0ccde0ff.entry.js.map +0 -1
- package/dist/cura/p-12a4ae7e.entry.js +0 -2
- package/dist/cura/p-137f003b.entry.js +0 -2
- package/dist/cura/p-137f003b.entry.js.map +0 -1
- package/dist/cura/p-197213c0.entry.js +0 -2
- package/dist/cura/p-197213c0.entry.js.map +0 -1
- package/dist/cura/p-1ef21ae9.entry.js +0 -2
- package/dist/cura/p-202dc01a.entry.js +0 -2
- package/dist/cura/p-202dc01a.entry.js.map +0 -1
- package/dist/cura/p-20b05d8f.entry.js +0 -2
- package/dist/cura/p-20b05d8f.entry.js.map +0 -1
- package/dist/cura/p-272c784a.js.map +0 -1
- package/dist/cura/p-2db4deb3.js +0 -2
- package/dist/cura/p-2db4deb3.js.map +0 -1
- package/dist/cura/p-48f9289b.js.map +0 -1
- package/dist/cura/p-4ee8efca.js +0 -3
- package/dist/cura/p-4ee8efca.js.map +0 -1
- package/dist/cura/p-53c18ed4.js.map +0 -1
- package/dist/cura/p-53d68d72.entry.js +0 -2
- package/dist/cura/p-5a43e745.entry.js +0 -2
- package/dist/cura/p-5a43e745.entry.js.map +0 -1
- package/dist/cura/p-633c13cd.entry.js +0 -2
- package/dist/cura/p-633c13cd.entry.js.map +0 -1
- package/dist/cura/p-6cbd49dd.js +0 -2
- package/dist/cura/p-6cbd49dd.js.map +0 -1
- package/dist/cura/p-7a68835f.entry.js +0 -2
- package/dist/cura/p-7a68835f.entry.js.map +0 -1
- package/dist/cura/p-7e10b146.entry.js +0 -2
- package/dist/cura/p-7e10b146.entry.js.map +0 -1
- package/dist/cura/p-7e2d1229.entry.js +0 -2
- package/dist/cura/p-7e2d1229.entry.js.map +0 -1
- package/dist/cura/p-8aade007.entry.js +0 -2
- package/dist/cura/p-8aade007.entry.js.map +0 -1
- package/dist/cura/p-9f460031.js +0 -2
- package/dist/cura/p-9f460031.js.map +0 -1
- package/dist/cura/p-ac0c90af.entry.js +0 -2
- package/dist/cura/p-ac0c90af.entry.js.map +0 -1
- package/dist/cura/p-b254bbe4.entry.js +0 -2
- package/dist/cura/p-b254bbe4.entry.js.map +0 -1
- package/dist/cura/p-b4ee956b.entry.js +0 -2
- package/dist/cura/p-b4ee956b.entry.js.map +0 -1
- package/dist/cura/p-b60a6aaa.entry.js +0 -2
- package/dist/cura/p-b60a6aaa.entry.js.map +0 -1
- package/dist/cura/p-b6ff8ac1.entry.js +0 -2
- package/dist/cura/p-b6ff8ac1.entry.js.map +0 -1
- package/dist/cura/p-d8e1e182.entry.js +0 -2
- package/dist/cura/p-d8e1e182.entry.js.map +0 -1
- package/dist/cura/p-d97719bc.entry.js +0 -2
- package/dist/cura/p-d97719bc.entry.js.map +0 -1
- package/dist/cura/p-daf422ce.entry.js +0 -2
- package/dist/cura/p-daf422ce.entry.js.map +0 -1
- package/dist/cura/p-efcb32eb.js.map +0 -1
- package/dist/cura/p-f9b8f665.js.map +0 -1
- package/dist/esm/app-globals-c2abb41c.js +0 -68
- package/dist/esm/app-globals-c2abb41c.js.map +0 -1
- package/dist/esm/cura-button.definitions-617d3bad.js.map +0 -1
- package/dist/esm/cura-forms.definitions-2f963167.js.map +0 -1
- package/dist/esm/cura-icon.definitions-a892c0e2.js.map +0 -1
- package/dist/esm/cura-tabs.definitions-a017126e.js.map +0 -1
- package/dist/esm/cura-theme-module-bf286f68.js.map +0 -1
- package/dist/esm/index-21683715.js.map +0 -1
- package/dist/esm/index-fbee309a.js.map +0 -1
- package/dist/esm/static-090f0088.js +0 -88
- package/dist/esm/static-090f0088.js.map +0 -1
- package/dist/loader/package.json +0 -11
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const index = require('./index-6dc29195.js');
|
|
3
|
+
var index$1 = require('./index-BK9MSAiE.js');
|
|
4
|
+
var index = require('./index-EyP6Zlkd.js');
|
|
5
|
+
require('./cura-theme-module-CJkmAxBA.js');
|
|
7
6
|
|
|
8
7
|
function toInteger(dirtyNumber) {
|
|
9
8
|
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
@@ -474,7 +473,7 @@ function eachDayOfInterval(dirtyInterval, options) {
|
|
|
474
473
|
var dates = [];
|
|
475
474
|
var currentDate = startDate;
|
|
476
475
|
currentDate.setHours(0, 0, 0, 0);
|
|
477
|
-
var step = Number((_options$step =
|
|
476
|
+
var step = Number((_options$step = void 0 ) !== null && _options$step !== void 0 ? _options$step : 1);
|
|
478
477
|
if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1');
|
|
479
478
|
while (currentDate.getTime() <= endTime) {
|
|
480
479
|
dates.push(index.toDate(currentDate));
|
|
@@ -817,7 +816,7 @@ function addLeadingZeros(number, targetLength) {
|
|
|
817
816
|
*
|
|
818
817
|
* Letters marked by * are not implemented but reserved by Unicode standard.
|
|
819
818
|
*/
|
|
820
|
-
var formatters$
|
|
819
|
+
var formatters$1 = {
|
|
821
820
|
// Year
|
|
822
821
|
y: function y(date, token) {
|
|
823
822
|
// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
|
|
@@ -883,11 +882,8 @@ var formatters$2 = {
|
|
|
883
882
|
return addLeadingZeros(fractionalSeconds, token.length);
|
|
884
883
|
}
|
|
885
884
|
};
|
|
886
|
-
const formatters$3 = formatters$2;
|
|
887
885
|
|
|
888
886
|
var dayPeriodEnum = {
|
|
889
|
-
am: 'am',
|
|
890
|
-
pm: 'pm',
|
|
891
887
|
midnight: 'midnight',
|
|
892
888
|
noon: 'noon',
|
|
893
889
|
morning: 'morning',
|
|
@@ -977,7 +973,7 @@ var formatters = {
|
|
|
977
973
|
unit: 'year'
|
|
978
974
|
});
|
|
979
975
|
}
|
|
980
|
-
return formatters$
|
|
976
|
+
return formatters$1.y(date, token);
|
|
981
977
|
},
|
|
982
978
|
// Local week-numbering year
|
|
983
979
|
Y: function Y(date, token, localize, options) {
|
|
@@ -1099,7 +1095,7 @@ var formatters = {
|
|
|
1099
1095
|
switch (token) {
|
|
1100
1096
|
case 'M':
|
|
1101
1097
|
case 'MM':
|
|
1102
|
-
return formatters$
|
|
1098
|
+
return formatters$1.M(date, token);
|
|
1103
1099
|
// 1st, 2nd, ..., 12th
|
|
1104
1100
|
case 'Mo':
|
|
1105
1101
|
return localize.ordinalNumber(month + 1, {
|
|
@@ -1189,7 +1185,7 @@ var formatters = {
|
|
|
1189
1185
|
unit: 'date'
|
|
1190
1186
|
});
|
|
1191
1187
|
}
|
|
1192
|
-
return formatters$
|
|
1188
|
+
return formatters$1.d(date, token);
|
|
1193
1189
|
},
|
|
1194
1190
|
// Day of year
|
|
1195
1191
|
D: function D(date, token, localize) {
|
|
@@ -1469,7 +1465,7 @@ var formatters = {
|
|
|
1469
1465
|
unit: 'hour'
|
|
1470
1466
|
});
|
|
1471
1467
|
}
|
|
1472
|
-
return formatters$
|
|
1468
|
+
return formatters$1.h(date, token);
|
|
1473
1469
|
},
|
|
1474
1470
|
// Hour [0-23]
|
|
1475
1471
|
H: function H(date, token, localize) {
|
|
@@ -1478,7 +1474,7 @@ var formatters = {
|
|
|
1478
1474
|
unit: 'hour'
|
|
1479
1475
|
});
|
|
1480
1476
|
}
|
|
1481
|
-
return formatters$
|
|
1477
|
+
return formatters$1.H(date, token);
|
|
1482
1478
|
},
|
|
1483
1479
|
// Hour [0-11]
|
|
1484
1480
|
K: function K(date, token, localize) {
|
|
@@ -1508,7 +1504,7 @@ var formatters = {
|
|
|
1508
1504
|
unit: 'minute'
|
|
1509
1505
|
});
|
|
1510
1506
|
}
|
|
1511
|
-
return formatters$
|
|
1507
|
+
return formatters$1.m(date, token);
|
|
1512
1508
|
},
|
|
1513
1509
|
// Second
|
|
1514
1510
|
s: function s(date, token, localize) {
|
|
@@ -1517,11 +1513,11 @@ var formatters = {
|
|
|
1517
1513
|
unit: 'second'
|
|
1518
1514
|
});
|
|
1519
1515
|
}
|
|
1520
|
-
return formatters$
|
|
1516
|
+
return formatters$1.s(date, token);
|
|
1521
1517
|
},
|
|
1522
1518
|
// Fraction of second
|
|
1523
1519
|
S: function S(date, token) {
|
|
1524
|
-
return formatters$
|
|
1520
|
+
return formatters$1.S(date, token);
|
|
1525
1521
|
},
|
|
1526
1522
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1527
1523
|
X: function X(date, token, _localize, options) {
|
|
@@ -1631,7 +1627,7 @@ function formatTimezoneShort(offset, dirtyDelimiter) {
|
|
|
1631
1627
|
if (minutes === 0) {
|
|
1632
1628
|
return sign + String(hours);
|
|
1633
1629
|
}
|
|
1634
|
-
var delimiter = dirtyDelimiter
|
|
1630
|
+
var delimiter = dirtyDelimiter;
|
|
1635
1631
|
return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
|
|
1636
1632
|
}
|
|
1637
1633
|
function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
|
|
@@ -1649,7 +1645,6 @@ function formatTimezone(offset, dirtyDelimiter) {
|
|
|
1649
1645
|
var minutes = addLeadingZeros(absOffset % 60, 2);
|
|
1650
1646
|
return sign + hours + delimiter + minutes;
|
|
1651
1647
|
}
|
|
1652
|
-
const formatters$1 = formatters;
|
|
1653
1648
|
|
|
1654
1649
|
var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
|
|
1655
1650
|
switch (pattern) {
|
|
@@ -1730,7 +1725,6 @@ var longFormatters = {
|
|
|
1730
1725
|
p: timeLongFormatter,
|
|
1731
1726
|
P: dateTimeLongFormatter
|
|
1732
1727
|
};
|
|
1733
|
-
const longFormatters$1 = longFormatters;
|
|
1734
1728
|
|
|
1735
1729
|
var protectedDayOfYearTokens = ['D', 'DD'];
|
|
1736
1730
|
var protectedWeekYearTokens = ['YY', 'YYYY'];
|
|
@@ -1815,7 +1809,7 @@ var formatDistanceLocale$1 = {
|
|
|
1815
1809
|
other: 'almost {{count}} years'
|
|
1816
1810
|
}
|
|
1817
1811
|
};
|
|
1818
|
-
var formatDistance$
|
|
1812
|
+
var formatDistance$1 = function formatDistance(token, count, options) {
|
|
1819
1813
|
var result;
|
|
1820
1814
|
var tokenValue = formatDistanceLocale$1[token];
|
|
1821
1815
|
if (typeof tokenValue === 'string') {
|
|
@@ -1834,7 +1828,6 @@ var formatDistance$2 = function formatDistance(token, count, options) {
|
|
|
1834
1828
|
}
|
|
1835
1829
|
return result;
|
|
1836
1830
|
};
|
|
1837
|
-
const formatDistance$3 = formatDistance$2;
|
|
1838
1831
|
|
|
1839
1832
|
function buildFormatLongFn(args) {
|
|
1840
1833
|
return function () {
|
|
@@ -1864,7 +1857,7 @@ var dateTimeFormats$2 = {
|
|
|
1864
1857
|
medium: '{{date}}, {{time}}',
|
|
1865
1858
|
short: '{{date}}, {{time}}'
|
|
1866
1859
|
};
|
|
1867
|
-
var formatLong$
|
|
1860
|
+
var formatLong$2 = {
|
|
1868
1861
|
date: buildFormatLongFn({
|
|
1869
1862
|
formats: dateFormats$2,
|
|
1870
1863
|
defaultWidth: 'full'
|
|
@@ -1878,7 +1871,6 @@ var formatLong$4 = {
|
|
|
1878
1871
|
defaultWidth: 'full'
|
|
1879
1872
|
})
|
|
1880
1873
|
};
|
|
1881
|
-
const formatLong$5 = formatLong$4;
|
|
1882
1874
|
|
|
1883
1875
|
var formatRelativeLocale$1 = {
|
|
1884
1876
|
lastWeek: "'last' eeee 'at' p",
|
|
@@ -1888,10 +1880,9 @@ var formatRelativeLocale$1 = {
|
|
|
1888
1880
|
nextWeek: "eeee 'at' p",
|
|
1889
1881
|
other: 'P'
|
|
1890
1882
|
};
|
|
1891
|
-
var formatRelative$
|
|
1883
|
+
var formatRelative$1 = function formatRelative(token, _date, _baseDate, _options) {
|
|
1892
1884
|
return formatRelativeLocale$1[token];
|
|
1893
1885
|
};
|
|
1894
|
-
const formatRelative$3 = formatRelative$2;
|
|
1895
1886
|
|
|
1896
1887
|
function buildLocalizeFn(args) {
|
|
1897
1888
|
return function (dirtyIndex, options) {
|
|
@@ -2025,7 +2016,7 @@ var ordinalNumber$1 = function ordinalNumber(dirtyNumber, _options) {
|
|
|
2025
2016
|
}
|
|
2026
2017
|
return number + 'th';
|
|
2027
2018
|
};
|
|
2028
|
-
var localize$
|
|
2019
|
+
var localize$1 = {
|
|
2029
2020
|
ordinalNumber: ordinalNumber$1,
|
|
2030
2021
|
era: buildLocalizeFn({
|
|
2031
2022
|
values: eraValues$1,
|
|
@@ -2053,7 +2044,6 @@ var localize$2 = {
|
|
|
2053
2044
|
defaultFormattingWidth: 'wide'
|
|
2054
2045
|
})
|
|
2055
2046
|
};
|
|
2056
|
-
const localize$3 = localize$2;
|
|
2057
2047
|
|
|
2058
2048
|
function buildMatchFn(args) {
|
|
2059
2049
|
return function (string) {
|
|
@@ -2169,7 +2159,7 @@ var parseDayPeriodPatterns$1 = {
|
|
|
2169
2159
|
night: /night/i
|
|
2170
2160
|
}
|
|
2171
2161
|
};
|
|
2172
|
-
var match$
|
|
2162
|
+
var match$1 = {
|
|
2173
2163
|
ordinalNumber: buildMatchPatternFn({
|
|
2174
2164
|
matchPattern: matchOrdinalNumberPattern$1,
|
|
2175
2165
|
parsePattern: parseOrdinalNumberPattern$1,
|
|
@@ -2211,7 +2201,6 @@ var match$2 = {
|
|
|
2211
2201
|
defaultParseWidth: 'any'
|
|
2212
2202
|
})
|
|
2213
2203
|
};
|
|
2214
|
-
const match$3 = match$2;
|
|
2215
2204
|
|
|
2216
2205
|
/**
|
|
2217
2206
|
* @type {Locale}
|
|
@@ -2224,17 +2213,16 @@ const match$3 = match$2;
|
|
|
2224
2213
|
*/
|
|
2225
2214
|
var locale$2 = {
|
|
2226
2215
|
code: 'en-US',
|
|
2227
|
-
formatDistance: formatDistance$
|
|
2228
|
-
formatLong: formatLong$
|
|
2229
|
-
formatRelative: formatRelative$
|
|
2230
|
-
localize: localize$
|
|
2231
|
-
match: match$
|
|
2216
|
+
formatDistance: formatDistance$1,
|
|
2217
|
+
formatLong: formatLong$2,
|
|
2218
|
+
formatRelative: formatRelative$1,
|
|
2219
|
+
localize: localize$1,
|
|
2220
|
+
match: match$1,
|
|
2232
2221
|
options: {
|
|
2233
2222
|
weekStartsOn: 0 /* Sunday */,
|
|
2234
2223
|
firstWeekContainsDate: 1
|
|
2235
2224
|
}
|
|
2236
2225
|
};
|
|
2237
|
-
const defaultLocale = locale$2;
|
|
2238
2226
|
|
|
2239
2227
|
// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
|
|
2240
2228
|
// (one of the certain letters followed by `o`)
|
|
@@ -2552,7 +2540,7 @@ function format(dirtyDate, dirtyFormatStr, options) {
|
|
|
2552
2540
|
index.requiredArgs(2, arguments);
|
|
2553
2541
|
var formatStr = String(dirtyFormatStr);
|
|
2554
2542
|
var defaultOptions = getDefaultOptions();
|
|
2555
|
-
var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref :
|
|
2543
|
+
var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : locale$2;
|
|
2556
2544
|
var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1);
|
|
2557
2545
|
|
|
2558
2546
|
// Test if weekStartsOn is between 1 and 7 _and_ is not NaN
|
|
@@ -2590,7 +2578,7 @@ function format(dirtyDate, dirtyFormatStr, options) {
|
|
|
2590
2578
|
var result = formatStr.match(longFormattingTokensRegExp$1).map(function (substring) {
|
|
2591
2579
|
var firstCharacter = substring[0];
|
|
2592
2580
|
if (firstCharacter === 'p' || firstCharacter === 'P') {
|
|
2593
|
-
var longFormatter = longFormatters
|
|
2581
|
+
var longFormatter = longFormatters[firstCharacter];
|
|
2594
2582
|
return longFormatter(substring, locale.formatLong);
|
|
2595
2583
|
}
|
|
2596
2584
|
return substring;
|
|
@@ -2603,7 +2591,7 @@ function format(dirtyDate, dirtyFormatStr, options) {
|
|
|
2603
2591
|
if (firstCharacter === "'") {
|
|
2604
2592
|
return cleanEscapedString$1(substring);
|
|
2605
2593
|
}
|
|
2606
|
-
var formatter = formatters
|
|
2594
|
+
var formatter = formatters[firstCharacter];
|
|
2607
2595
|
if (formatter) {
|
|
2608
2596
|
if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
|
|
2609
2597
|
throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
|
|
@@ -2727,7 +2715,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
2727
2715
|
function _createForOfIteratorHelper(r, e) {
|
|
2728
2716
|
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
2729
2717
|
if (!t) {
|
|
2730
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e
|
|
2718
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
|
|
2731
2719
|
t && (r = t);
|
|
2732
2720
|
var _n = 0,
|
|
2733
2721
|
F = function F() {};
|
|
@@ -2735,9 +2723,9 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
2735
2723
|
s: F,
|
|
2736
2724
|
n: function n() {
|
|
2737
2725
|
return _n >= r.length ? {
|
|
2738
|
-
done:
|
|
2726
|
+
done: true
|
|
2739
2727
|
} : {
|
|
2740
|
-
done:
|
|
2728
|
+
done: false,
|
|
2741
2729
|
value: r[_n++]
|
|
2742
2730
|
};
|
|
2743
2731
|
},
|
|
@@ -2750,8 +2738,8 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
2750
2738
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2751
2739
|
}
|
|
2752
2740
|
var o,
|
|
2753
|
-
a =
|
|
2754
|
-
u =
|
|
2741
|
+
a = true,
|
|
2742
|
+
u = false;
|
|
2755
2743
|
return {
|
|
2756
2744
|
s: function s() {
|
|
2757
2745
|
t = t.call(r);
|
|
@@ -2761,7 +2749,7 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
2761
2749
|
return a = r.done, r;
|
|
2762
2750
|
},
|
|
2763
2751
|
e: function e(r) {
|
|
2764
|
-
u =
|
|
2752
|
+
u = true, o = r;
|
|
2765
2753
|
},
|
|
2766
2754
|
f: function f() {
|
|
2767
2755
|
try {
|
|
@@ -2789,11 +2777,11 @@ function _inherits(t, e) {
|
|
|
2789
2777
|
t.prototype = Object.create(e && e.prototype, {
|
|
2790
2778
|
constructor: {
|
|
2791
2779
|
value: t,
|
|
2792
|
-
writable:
|
|
2793
|
-
configurable:
|
|
2780
|
+
writable: true,
|
|
2781
|
+
configurable: true
|
|
2794
2782
|
}
|
|
2795
2783
|
}), Object.defineProperty(t, "prototype", {
|
|
2796
|
-
writable:
|
|
2784
|
+
writable: false
|
|
2797
2785
|
}), e && _setPrototypeOf(t, e);
|
|
2798
2786
|
}
|
|
2799
2787
|
|
|
@@ -2839,11 +2827,11 @@ function toPrimitive(t, r) {
|
|
|
2839
2827
|
if ("object" != index._typeof(t) || !t) return t;
|
|
2840
2828
|
var e = t[Symbol.toPrimitive];
|
|
2841
2829
|
if (void 0 !== e) {
|
|
2842
|
-
var i = e.call(t, r
|
|
2830
|
+
var i = e.call(t, r);
|
|
2843
2831
|
if ("object" != index._typeof(i)) return i;
|
|
2844
2832
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2845
2833
|
}
|
|
2846
|
-
return (
|
|
2834
|
+
return (String )(t);
|
|
2847
2835
|
}
|
|
2848
2836
|
|
|
2849
2837
|
function toPropertyKey(t) {
|
|
@@ -2854,21 +2842,21 @@ function toPropertyKey(t) {
|
|
|
2854
2842
|
function _defineProperties(e, r) {
|
|
2855
2843
|
for (var t = 0; t < r.length; t++) {
|
|
2856
2844
|
var o = r[t];
|
|
2857
|
-
o.enumerable = o.enumerable ||
|
|
2845
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
2858
2846
|
}
|
|
2859
2847
|
}
|
|
2860
2848
|
function _createClass(e, r, t) {
|
|
2861
|
-
return r && _defineProperties(e.prototype, r),
|
|
2862
|
-
writable:
|
|
2849
|
+
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
2850
|
+
writable: false
|
|
2863
2851
|
}), e;
|
|
2864
2852
|
}
|
|
2865
2853
|
|
|
2866
2854
|
function _defineProperty(e, r, t) {
|
|
2867
2855
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
2868
2856
|
value: t,
|
|
2869
|
-
enumerable:
|
|
2870
|
-
configurable:
|
|
2871
|
-
writable:
|
|
2857
|
+
enumerable: true,
|
|
2858
|
+
configurable: true,
|
|
2859
|
+
writable: true
|
|
2872
2860
|
}) : e[r] = t, e;
|
|
2873
2861
|
}
|
|
2874
2862
|
|
|
@@ -5312,22 +5300,22 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
|
5312
5300
|
* //=> Sun Feb 28 2010 00:00:00
|
|
5313
5301
|
*/
|
|
5314
5302
|
function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options) {
|
|
5315
|
-
var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon,
|
|
5303
|
+
var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _defaultOptions$local3, _defaultOptions$local4;
|
|
5316
5304
|
index.requiredArgs(3, arguments);
|
|
5317
5305
|
var dateString = String(dirtyDateString);
|
|
5318
5306
|
var formatString = String(dirtyFormatString);
|
|
5319
5307
|
var defaultOptions = getDefaultOptions();
|
|
5320
|
-
var locale = (_ref = (_options$locale =
|
|
5308
|
+
var locale = (_ref = (_options$locale = void 0 ) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : locale$2;
|
|
5321
5309
|
if (!locale.match) {
|
|
5322
5310
|
throw new RangeError('locale must contain match property');
|
|
5323
5311
|
}
|
|
5324
|
-
var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon =
|
|
5312
|
+
var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = void 0 ) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : void 0 ) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1);
|
|
5325
5313
|
|
|
5326
5314
|
// Test if weekStartsOn is between 1 and 7 _and_ is not NaN
|
|
5327
5315
|
if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
|
|
5328
5316
|
throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
|
|
5329
5317
|
}
|
|
5330
|
-
var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn =
|
|
5318
|
+
var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = void 0 ) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : void 0 ) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0);
|
|
5331
5319
|
|
|
5332
5320
|
// Test if weekStartsOn is between 0 and 6 _and_ is not NaN
|
|
5333
5321
|
if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
|
|
@@ -5350,8 +5338,8 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options)
|
|
|
5350
5338
|
var setters = [new DateToSystemTimezoneSetter()];
|
|
5351
5339
|
var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {
|
|
5352
5340
|
var firstCharacter = substring[0];
|
|
5353
|
-
if (firstCharacter in longFormatters
|
|
5354
|
-
var longFormatter = longFormatters
|
|
5341
|
+
if (firstCharacter in longFormatters) {
|
|
5342
|
+
var longFormatter = longFormatters[firstCharacter];
|
|
5355
5343
|
return longFormatter(substring, locale.formatLong);
|
|
5356
5344
|
}
|
|
5357
5345
|
return substring;
|
|
@@ -5362,10 +5350,10 @@ function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options)
|
|
|
5362
5350
|
try {
|
|
5363
5351
|
var _loop = function _loop() {
|
|
5364
5352
|
var token = _step.value;
|
|
5365
|
-
if (
|
|
5353
|
+
if (isProtectedWeekYearToken(token)) {
|
|
5366
5354
|
throwProtectedError(token, formatString, dirtyDateString);
|
|
5367
5355
|
}
|
|
5368
|
-
if (
|
|
5356
|
+
if (isProtectedDayOfYearToken(token)) {
|
|
5369
5357
|
throwProtectedError(token, formatString, dirtyDateString);
|
|
5370
5358
|
}
|
|
5371
5359
|
var firstCharacter = token[0];
|
|
@@ -5567,7 +5555,7 @@ function subDays(dirtyDate, dirtyAmount) {
|
|
|
5567
5555
|
function parseISO(argument, options) {
|
|
5568
5556
|
var _options$additionalDi;
|
|
5569
5557
|
index.requiredArgs(1, arguments);
|
|
5570
|
-
var additionalDigits = toInteger((_options$additionalDi =
|
|
5558
|
+
var additionalDigits = toInteger((_options$additionalDi = void 0 ) !== null && _options$additionalDi !== void 0 ? _options$additionalDi : 2);
|
|
5571
5559
|
if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) {
|
|
5572
5560
|
throw new RangeError('additionalDigits must be 0, 1 or 2');
|
|
5573
5561
|
}
|
|
@@ -5824,7 +5812,7 @@ var dateTimeFormats$1 = {
|
|
|
5824
5812
|
medium: '{{date}}, {{time}}',
|
|
5825
5813
|
short: '{{date}}, {{time}}'
|
|
5826
5814
|
};
|
|
5827
|
-
var formatLong$
|
|
5815
|
+
var formatLong$1 = {
|
|
5828
5816
|
date: buildFormatLongFn({
|
|
5829
5817
|
formats: dateFormats$1,
|
|
5830
5818
|
defaultWidth: 'full'
|
|
@@ -5838,7 +5826,6 @@ var formatLong$2 = {
|
|
|
5838
5826
|
defaultWidth: 'full'
|
|
5839
5827
|
})
|
|
5840
5828
|
};
|
|
5841
|
-
const formatLong$3 = formatLong$2;
|
|
5842
5829
|
|
|
5843
5830
|
/**
|
|
5844
5831
|
* @type {Locale}
|
|
@@ -5850,17 +5837,16 @@ const formatLong$3 = formatLong$2;
|
|
|
5850
5837
|
*/
|
|
5851
5838
|
var locale$1 = {
|
|
5852
5839
|
code: 'en-AU',
|
|
5853
|
-
formatDistance: formatDistance$
|
|
5854
|
-
formatLong: formatLong$
|
|
5855
|
-
formatRelative: formatRelative$
|
|
5856
|
-
localize: localize$
|
|
5857
|
-
match: match$
|
|
5840
|
+
formatDistance: formatDistance$1,
|
|
5841
|
+
formatLong: formatLong$1,
|
|
5842
|
+
formatRelative: formatRelative$1,
|
|
5843
|
+
localize: localize$1,
|
|
5844
|
+
match: match$1,
|
|
5858
5845
|
options: {
|
|
5859
5846
|
weekStartsOn: 1 /* Monday */,
|
|
5860
5847
|
firstWeekContainsDate: 4
|
|
5861
5848
|
}
|
|
5862
5849
|
};
|
|
5863
|
-
const enAU = locale$1;
|
|
5864
5850
|
|
|
5865
5851
|
var formatDistanceLocale = {
|
|
5866
5852
|
lessThanXSeconds: {
|
|
@@ -5944,7 +5930,6 @@ var formatDistance = function formatDistance(token, count, options) {
|
|
|
5944
5930
|
}
|
|
5945
5931
|
return result;
|
|
5946
5932
|
};
|
|
5947
|
-
const formatDistance$1 = formatDistance;
|
|
5948
5933
|
|
|
5949
5934
|
var dateFormats = {
|
|
5950
5935
|
full: "EEEE, d 'de' MMMM 'de' y",
|
|
@@ -5978,7 +5963,6 @@ var formatLong = {
|
|
|
5978
5963
|
defaultWidth: 'full'
|
|
5979
5964
|
})
|
|
5980
5965
|
};
|
|
5981
|
-
const formatLong$1 = formatLong;
|
|
5982
5966
|
|
|
5983
5967
|
var formatRelativeLocale = {
|
|
5984
5968
|
lastWeek: function lastWeek(date) {
|
|
@@ -5999,7 +5983,6 @@ var formatRelative = function formatRelative(token, date, _baseDate, _options) {
|
|
|
5999
5983
|
}
|
|
6000
5984
|
return format;
|
|
6001
5985
|
};
|
|
6002
|
-
const formatRelative$1 = formatRelative;
|
|
6003
5986
|
|
|
6004
5987
|
var eraValues = {
|
|
6005
5988
|
narrow: ['AC', 'DC'],
|
|
@@ -6121,7 +6104,6 @@ var localize = {
|
|
|
6121
6104
|
defaultFormattingWidth: 'wide'
|
|
6122
6105
|
})
|
|
6123
6106
|
};
|
|
6124
|
-
const localize$1 = localize;
|
|
6125
6107
|
|
|
6126
6108
|
var matchOrdinalNumberPattern = /^(\d+)[ºªo]?/i;
|
|
6127
6109
|
var parseOrdinalNumberPattern = /\d+/i;
|
|
@@ -6220,7 +6202,6 @@ var match = {
|
|
|
6220
6202
|
defaultParseWidth: 'any'
|
|
6221
6203
|
})
|
|
6222
6204
|
};
|
|
6223
|
-
const match$1 = match;
|
|
6224
6205
|
|
|
6225
6206
|
/**
|
|
6226
6207
|
* @type {Locale}
|
|
@@ -6233,55 +6214,182 @@ const match$1 = match;
|
|
|
6233
6214
|
*/
|
|
6234
6215
|
var locale = {
|
|
6235
6216
|
code: 'pt-BR',
|
|
6236
|
-
formatDistance: formatDistance
|
|
6237
|
-
formatLong: formatLong
|
|
6238
|
-
formatRelative: formatRelative
|
|
6239
|
-
localize: localize
|
|
6240
|
-
match: match
|
|
6217
|
+
formatDistance: formatDistance,
|
|
6218
|
+
formatLong: formatLong,
|
|
6219
|
+
formatRelative: formatRelative,
|
|
6220
|
+
localize: localize,
|
|
6221
|
+
match: match,
|
|
6241
6222
|
options: {
|
|
6242
6223
|
weekStartsOn: 0 /* Sunday */,
|
|
6243
6224
|
firstWeekContainsDate: 1
|
|
6244
6225
|
}
|
|
6245
6226
|
};
|
|
6246
|
-
const ptBR = locale;
|
|
6247
6227
|
|
|
6248
6228
|
const curaCalendarCss = ":host{display:block;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);margin:0 auto}:host .calendar{display:flex;flex-direction:column;gap:5px;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);border-radius:4px;overflow:hidden;background:#fff;font-family:var(--font-family)}:host .calendar.embedded{border:2px solid var(--neutral-light);padding:0px 12px 12px 12px}:host .calendar.floating{box-shadow:0 4px 8px var(--neutral-light)}:host .header{position:relative;padding:12px 0}:host .header::after{content:\"\";position:absolute;bottom:0;left:2px;right:2px;border-bottom:2px dotted var(--neutral-light)}:host .month-year{display:flex;padding:12px 8px;justify-content:space-between;align-self:stretch}:host .month-year.dropdown{padding:0%}:host .select{display:flex;padding:7px 10px 0px;justify-content:center;align-items:center;gap:6px;flex:1 0 0}:host .drop-month{display:flex;max-width:118px;padding:0px;align-items:flex-start;gap:0px;flex:1 0 0}:host .drop-year{display:flex;min-width:80px;max-width:85px;padding:0px;align-items:flex-start;gap:0px;flex:1 0 0}:host .days-of-week{display:flex;height:30px;padding:4px;justify-content:center;align-items:center;gap:4px;flex-shrink:0}:host .day{flex:1;text-align:center}:host .dates{display:flex;flex-wrap:wrap;align-items:center;align-self:stretch;gap:0}:host .icon{cursor:pointer;position:relative;overflow:hidden;border-radius:50%}:host .icon.dropdown{margin-top:10px}:host .icon::before{content:\"\";position:absolute;border-radius:50%;top:50%;left:50%;width:20px;height:20px;background:var(--primary-base);transform:translate(-50%, -50%) scale(0);transition:transform 0.2s ease}:host .icon:active::before{transform:translate(-50%, -50%) scale(1)}:host .icon:active{transform:scale(1)}:host .collapsed-container{text-align:center;position:relative;display:flex;align-items:center;justify-content:center;padding-top:10px}:host .collapsed-container::before{content:\"\";position:absolute;bottom:0;top:0;left:2px;right:2px;border-top:2px dotted var(--neutral-light)}:host .date{display:flex;justify-content:center;align-items:center;height:auto;width:14.2857142857%;aspect-ratio:1;font-size:14px;cursor:pointer;position:relative;box-sizing:border-box;text-align:center;flex-shrink:0}:host .date.today{border:2px solid var(--primary-darker);border-radius:50%;color:var(--primary-darker)}:host .date.selected{color:var(--select-label) !important;background:var(--primary-base);border-radius:50%}:host .date.default-dates{color:var(--select-label) !important;background:var(--primary-base);border-radius:50%;border:none}:host .date.invalid{color:var(--neutral-dark) !important;cursor:not-allowed}:host .date.invalid:hover{background:none;box-shadow:none}:host .date.valid{color:var(--primary-darker);font-weight:var(--font-weight-bold)}:host .date.range.start{border-radius:50% 0 0 50%;color:var(--select-label) !important;background:var(--primary-base)}:host .date.range.interval{border-radius:0;background:var(--primary-lighter);color:var(--neutral-black) !important}:host .date.range.interval.today{border:none}:host .date.range.end{border-radius:0 50% 50% 0;color:var(--select-label) !important;background:var(--primary-base)}@media (min-width: 992px){:host .date:hover{background:var(--primary-lighter);border-radius:50%;color:var(--neutral-white)}}:host select,:host input{width:60px;font-size:16px;box-shadow:0 2px 2px var(--neutral-black);padding:5px;border-radius:4px;border:1px solid #ccc;background:#f7f7f7}";
|
|
6249
|
-
const CuraCalendarStyle0 = curaCalendarCss;
|
|
6250
6229
|
|
|
6251
6230
|
const CuraCalendar = class {
|
|
6252
6231
|
constructor(hostRef) {
|
|
6253
6232
|
index$1.registerInstance(this, hostRef);
|
|
6254
|
-
this.onchangeday = index$1.createEvent(this, "onchangeday"
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6233
|
+
this.onchangeday = index$1.createEvent(this, "onchangeday");
|
|
6234
|
+
/**
|
|
6235
|
+
* An array of specific dates to be highlighted or processed.
|
|
6236
|
+
*
|
|
6237
|
+
* @type {string[] | string}
|
|
6238
|
+
* @default []
|
|
6239
|
+
* @example
|
|
6240
|
+
* // Example usage
|
|
6241
|
+
* period = ["2024-08-01", "2024-08-30"];
|
|
6242
|
+
*/
|
|
6258
6243
|
this.period = null;
|
|
6244
|
+
/**
|
|
6245
|
+
* Width of the component.
|
|
6246
|
+
*
|
|
6247
|
+
* @type {string}
|
|
6248
|
+
* @default '268px'
|
|
6249
|
+
*/
|
|
6259
6250
|
this.width = '268px';
|
|
6251
|
+
/**
|
|
6252
|
+
* Minimum Width of the component.
|
|
6253
|
+
*
|
|
6254
|
+
* @type {string}
|
|
6255
|
+
* @default '268px'
|
|
6256
|
+
*/
|
|
6260
6257
|
this.minWidth = '268px';
|
|
6258
|
+
/**
|
|
6259
|
+
* Maximum Width of the component.
|
|
6260
|
+
*
|
|
6261
|
+
* @type {string}
|
|
6262
|
+
* @default '400px'
|
|
6263
|
+
*/
|
|
6261
6264
|
this.maxWidth = '400px';
|
|
6265
|
+
/**
|
|
6266
|
+
* Selection mode of the date picker.
|
|
6267
|
+
*
|
|
6268
|
+
* @type {'single' | 'multiple' | 'range'}
|
|
6269
|
+
* @default 'single'
|
|
6270
|
+
*/
|
|
6262
6271
|
this.mode = 'single';
|
|
6272
|
+
/**
|
|
6273
|
+
* Date format used for display and parsing.
|
|
6274
|
+
*
|
|
6275
|
+
* @type {string}
|
|
6276
|
+
* @default 'yyyy-MM-dd'
|
|
6277
|
+
*/
|
|
6263
6278
|
this.dateFormat = 'yyyy-MM-dd';
|
|
6279
|
+
/**
|
|
6280
|
+
* Locale for date formatting.
|
|
6281
|
+
*
|
|
6282
|
+
* @type {'pt-BR' | 'en-US'}
|
|
6283
|
+
* @default 'pt-BR'
|
|
6284
|
+
*/
|
|
6264
6285
|
this.locale = 'pt-BR';
|
|
6286
|
+
/**
|
|
6287
|
+
* Display type of the date picker.
|
|
6288
|
+
*
|
|
6289
|
+
* @type {'dropdown' | 'static'}
|
|
6290
|
+
* @default 'dropdown'
|
|
6291
|
+
*/
|
|
6265
6292
|
this.type = 'dropdown';
|
|
6293
|
+
/**
|
|
6294
|
+
* List of dates to disable.
|
|
6295
|
+
*
|
|
6296
|
+
* @type {string[]}
|
|
6297
|
+
* @default []
|
|
6298
|
+
*/
|
|
6266
6299
|
this.disable = [];
|
|
6300
|
+
/**
|
|
6301
|
+
* List of dates to enable.
|
|
6302
|
+
*
|
|
6303
|
+
* @type {string[]}
|
|
6304
|
+
* @default []
|
|
6305
|
+
*/
|
|
6267
6306
|
this.enable = [];
|
|
6307
|
+
/**
|
|
6308
|
+
* Default dates selected on initialization.
|
|
6309
|
+
*
|
|
6310
|
+
* @type {string[]}
|
|
6311
|
+
* @default []
|
|
6312
|
+
* @example
|
|
6313
|
+
* // Example usage
|
|
6314
|
+
* defaultDate = ["2024-08-01", "2024-08-30"];
|
|
6315
|
+
* defaultDate = '["2024-08-01", "2024-08-30"]'
|
|
6316
|
+
*/
|
|
6268
6317
|
this.defaultDate = [];
|
|
6318
|
+
/**
|
|
6319
|
+
* Hide today mark.
|
|
6320
|
+
*
|
|
6321
|
+
* @type {boolean}
|
|
6322
|
+
* @default true
|
|
6323
|
+
*/
|
|
6269
6324
|
this.showToday = true;
|
|
6325
|
+
/**
|
|
6326
|
+
* Array of dates chosen by the user, can be updated dynamically.
|
|
6327
|
+
*
|
|
6328
|
+
* @type {Date[]}
|
|
6329
|
+
* @default []
|
|
6330
|
+
*/
|
|
6270
6331
|
this.customDates = [];
|
|
6332
|
+
/**
|
|
6333
|
+
* Limits the selectable date range.
|
|
6334
|
+
*
|
|
6335
|
+
* @type {Date | null}
|
|
6336
|
+
* @default null
|
|
6337
|
+
*/
|
|
6271
6338
|
this.limitRange = null;
|
|
6272
|
-
this.disablePassDates = undefined;
|
|
6273
|
-
this.disableFutureDates = undefined;
|
|
6274
6339
|
this.collapsed = null;
|
|
6275
|
-
this.floating = undefined;
|
|
6276
|
-
this.embedded = undefined;
|
|
6277
6340
|
this.selectLabelColorMode = 'light';
|
|
6341
|
+
/**
|
|
6342
|
+
* Array of currently selected dates.
|
|
6343
|
+
*
|
|
6344
|
+
* @type {Date[]}
|
|
6345
|
+
* @default []
|
|
6346
|
+
*/
|
|
6278
6347
|
this.selectedDates = [];
|
|
6348
|
+
/**
|
|
6349
|
+
* The start date of the range selection, if applicable.
|
|
6350
|
+
*
|
|
6351
|
+
* @type {Date | null}
|
|
6352
|
+
* @default null
|
|
6353
|
+
*/
|
|
6279
6354
|
this.rangeStart = null;
|
|
6355
|
+
/**
|
|
6356
|
+
* Array of default dates that are initially selected.
|
|
6357
|
+
*
|
|
6358
|
+
* @type {Date[]}
|
|
6359
|
+
* @default []
|
|
6360
|
+
*/
|
|
6280
6361
|
this.defaultDates = [];
|
|
6362
|
+
/**
|
|
6363
|
+
* The current month being viewed in the date picker.
|
|
6364
|
+
*
|
|
6365
|
+
* @type {Date}
|
|
6366
|
+
* @default new Date()
|
|
6367
|
+
*/
|
|
6281
6368
|
this.currentDate = new Date();
|
|
6369
|
+
/**
|
|
6370
|
+
* Selected months on dropdown.
|
|
6371
|
+
*
|
|
6372
|
+
* @type {string}
|
|
6373
|
+
* @default ''
|
|
6374
|
+
*/
|
|
6282
6375
|
this.selectMonth = '';
|
|
6376
|
+
/**
|
|
6377
|
+
* Selected year on dropdown.
|
|
6378
|
+
*
|
|
6379
|
+
* @type {string}
|
|
6380
|
+
* @default ''
|
|
6381
|
+
*/
|
|
6283
6382
|
this.selectYear = '';
|
|
6383
|
+
/**
|
|
6384
|
+
* CSS styles applied to the component.
|
|
6385
|
+
*
|
|
6386
|
+
* @type {Object}
|
|
6387
|
+
* @default {}
|
|
6388
|
+
*/
|
|
6284
6389
|
this.styles = {};
|
|
6390
|
+
this.theme = window.CuraAPI.theme;
|
|
6391
|
+
this.weights = this.theme.fonts.getWeights();
|
|
6392
|
+
this.optionsLocale = { 'pt-BR': locale, 'en-US': locale$1 };
|
|
6285
6393
|
}
|
|
6286
6394
|
connectedCallback() {
|
|
6287
6395
|
this.setFontProperties();
|
|
@@ -6721,8 +6829,9 @@ const CuraCalendar = class {
|
|
|
6721
6829
|
"customDates": ["watchDefaultDatesArray"]
|
|
6722
6830
|
}; }
|
|
6723
6831
|
};
|
|
6724
|
-
CuraCalendar.style =
|
|
6832
|
+
CuraCalendar.style = curaCalendarCss;
|
|
6725
6833
|
|
|
6726
6834
|
exports.cura_calendar = CuraCalendar;
|
|
6835
|
+
//# sourceMappingURL=cura-calendar.entry.cjs.js.map
|
|
6727
6836
|
|
|
6728
6837
|
//# sourceMappingURL=cura-calendar.cjs.entry.js.map
|