@esri/calcite-components 1.0.0-next.577 → 1.0.0-next.578
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/calcite/calcite.esm.js +2 -2
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-0fa06b62.system.js → p-02b79be5.system.js} +2 -2
- package/dist/calcite/{p-1ab5a373.system.entry.js → p-04fccf9c.system.entry.js} +2 -2
- package/dist/calcite/{p-f3c8d91a.system.js → p-0be50858.system.js} +2 -2
- package/dist/calcite/{p-02d61c9f.entry.js → p-0dd4fa08.entry.js} +2 -2
- package/dist/calcite/{p-915de033.system.entry.js → p-0dde91d2.system.entry.js} +2 -2
- package/dist/calcite/{p-1aee699f.system.entry.js → p-113f6852.system.entry.js} +2 -2
- package/dist/calcite/{p-09b360cc.entry.js → p-116f2e5c.entry.js} +2 -2
- package/dist/calcite/{p-b055dc38.system.js → p-118c75b3.system.js} +1 -1
- package/dist/calcite/{p-4216281f.system.js → p-12b2e281.system.js} +1 -1
- package/dist/calcite/{p-270fdb8e.entry.js → p-18ecad48.entry.js} +2 -2
- package/dist/calcite/{p-af73f3a3.entry.js → p-19c1ac65.entry.js} +2 -2
- package/dist/calcite/{p-79cf6b80.system.entry.js → p-1d04680f.system.entry.js} +3 -3
- package/dist/calcite/{p-3a400aa4.entry.js → p-1deebd7d.entry.js} +2 -2
- package/dist/calcite/{p-4e1b8475.entry.js → p-1e958fa9.entry.js} +2 -2
- package/dist/calcite/{p-436ad181.entry.js → p-1f1f4a9b.entry.js} +2 -2
- package/dist/calcite/{p-cd5c9cf5.system.entry.js → p-204426d1.system.entry.js} +2 -2
- package/dist/calcite/{p-ee46cb39.entry.js → p-206fb807.entry.js} +2 -2
- package/dist/calcite/{p-6d7e8272.js → p-20b31363.js} +1 -1
- package/dist/calcite/{p-f4a6add9.entry.js → p-2186dbee.entry.js} +2 -2
- package/dist/calcite/{p-9e51362f.system.entry.js → p-23c700c7.system.entry.js} +2 -2
- package/dist/calcite/{p-f7c2b8e7.entry.js → p-24013c56.entry.js} +2 -2
- package/dist/calcite/{p-9cbf3047.system.js → p-2543cdb3.system.js} +2 -2
- package/dist/calcite/{p-1b32948d.entry.js → p-291ffd7a.entry.js} +2 -2
- package/dist/calcite/{p-d2a2bf20.system.js → p-2ac16b9d.system.js} +1 -1
- package/dist/calcite/{p-4cfc44b9.entry.js → p-2dfdfb3e.entry.js} +2 -2
- package/dist/calcite/{p-eca33090.system.entry.js → p-2e24f7cc.system.entry.js} +2 -2
- package/dist/calcite/{p-668e2db5.entry.js → p-31030962.entry.js} +2 -2
- package/dist/calcite/{p-03160978.entry.js → p-31150c74.entry.js} +2 -2
- package/dist/calcite/{p-a6866ea6.system.entry.js → p-3178e95a.system.entry.js} +2 -2
- package/dist/calcite/{p-2be1a35c.system.js → p-32eb1b0b.system.js} +1 -1
- package/dist/calcite/{p-00c33cb7.system.js → p-348e0112.system.js} +1 -1
- package/dist/calcite/{p-535a1de0.system.js → p-34b4056e.system.js} +1 -1
- package/dist/calcite/p-35c0be4e.system.entry.js +6 -0
- package/dist/calcite/{p-84d59fb2.system.entry.js → p-35e78408.system.entry.js} +2 -2
- package/dist/calcite/{p-0074e07e.system.entry.js → p-375b3407.system.entry.js} +3 -3
- package/dist/calcite/{p-cfe35b3d.js → p-37c0a907.js} +1 -1
- package/dist/calcite/{p-3cd0d258.js → p-37fc0a77.js} +1 -1
- package/dist/calcite/{p-caedc405.entry.js → p-3a172739.entry.js} +2 -2
- package/dist/calcite/{p-46cbad27.entry.js → p-3b23f8cd.entry.js} +2 -2
- package/dist/calcite/{p-59c92d59.js → p-3d0cb90a.js} +2 -2
- package/dist/calcite/{p-dd6c142b.system.entry.js → p-41261f43.system.entry.js} +2 -2
- package/dist/calcite/{p-39bd5d8c.entry.js → p-41c1d4d9.entry.js} +2 -2
- package/dist/calcite/{p-40f49d6b.entry.js → p-45e94a84.entry.js} +2 -2
- package/dist/calcite/{p-8ebdc78b.entry.js → p-47965897.entry.js} +2 -2
- package/dist/calcite/{p-f6be22b2.system.entry.js → p-47f30183.system.entry.js} +2 -2
- package/dist/calcite/{p-1894ba51.js → p-4a9075f9.js} +1 -1
- package/dist/calcite/{p-535cc126.entry.js → p-4b23861f.entry.js} +2 -2
- package/dist/calcite/{p-5c10f21e.entry.js → p-4c65155a.entry.js} +2 -2
- package/dist/calcite/{p-9a32e0ee.entry.js → p-4c7a6549.entry.js} +2 -2
- package/dist/calcite/{p-016879cc.js → p-4ee0a781.js} +1 -1
- package/dist/calcite/{p-28feeda5.entry.js → p-4eedc867.entry.js} +2 -2
- package/dist/calcite/{p-922ee5a9.system.js → p-4f594831.system.js} +1 -1
- package/dist/calcite/{p-f89f1dea.entry.js → p-5152ae0f.entry.js} +2 -2
- package/dist/calcite/{p-28f3cd1f.js → p-53397299.js} +1 -1
- package/dist/calcite/p-53787ab2.js +6 -0
- package/dist/calcite/{p-7c635573.entry.js → p-53f72b4b.entry.js} +2 -2
- package/dist/calcite/{p-ebb12532.system.js → p-587e191e.system.js} +2 -2
- package/dist/calcite/{p-a992a9d5.entry.js → p-597477d3.entry.js} +2 -2
- package/dist/calcite/p-5b92decd.entry.js +6 -0
- package/dist/calcite/p-5bd358a2.entry.js +6 -0
- package/dist/calcite/{p-de659f1b.js → p-5de3ed6f.js} +1 -1
- package/dist/calcite/{p-280ff55e.system.js → p-5fb12eab.system.js} +2 -2
- package/dist/calcite/{p-0ef592c5.js → p-62c9c2e3.js} +2 -2
- package/dist/calcite/{p-c09e0671.js → p-63940350.js} +2 -2
- package/dist/calcite/{p-f0900db9.entry.js → p-6437c033.entry.js} +2 -2
- package/dist/calcite/{p-d3e823c2.system.entry.js → p-683108e0.system.entry.js} +3 -3
- package/dist/calcite/p-695e617a.system.js +6 -0
- package/dist/calcite/{p-dd8e8c09.entry.js → p-69718544.entry.js} +2 -2
- package/dist/calcite/{p-87fa63f5.system.entry.js → p-69ef8ff9.system.entry.js} +2 -2
- package/dist/calcite/{p-4f6a9ec4.system.entry.js → p-6ad3b709.system.entry.js} +2 -2
- package/dist/calcite/{p-e7d52968.js → p-6de85f5e.js} +1 -1
- package/dist/calcite/{p-49b0c4e7.system.entry.js → p-6efe1db4.system.entry.js} +2 -2
- package/dist/calcite/{p-d6fe39ad.system.entry.js → p-700a8247.system.entry.js} +2 -2
- package/dist/calcite/{p-ea0583f6.system.entry.js → p-70956520.system.entry.js} +2 -2
- package/dist/calcite/{p-f429f32b.system.js → p-70c6e987.system.js} +1 -1
- package/dist/calcite/{p-d49609d7.entry.js → p-7290fe5e.entry.js} +2 -2
- package/dist/calcite/{p-05ab1060.system.entry.js → p-7600e052.system.entry.js} +2 -2
- package/dist/calcite/{p-a707f74f.system.entry.js → p-769c633c.system.entry.js} +2 -2
- package/dist/calcite/{p-fea90aa2.entry.js → p-774e7201.entry.js} +2 -2
- package/dist/calcite/{p-de2d89d1.entry.js → p-7844c11c.entry.js} +2 -2
- package/dist/calcite/{p-61965d6d.system.entry.js → p-7e471df6.system.entry.js} +2 -2
- package/dist/calcite/{p-7b805ec2.entry.js → p-7fb415b6.entry.js} +2 -2
- package/dist/calcite/{p-f9b9cd13.system.js → p-843b47ed.system.js} +1 -1
- package/dist/calcite/{p-5e5ce46e.system.entry.js → p-850f5359.system.entry.js} +2 -2
- package/dist/calcite/{p-c3a0f261.system.entry.js → p-86cbac7e.system.entry.js} +2 -2
- package/dist/calcite/{p-376d018a.system.entry.js → p-8777a86d.system.entry.js} +2 -2
- package/dist/calcite/{p-14b3169f.js → p-88201e97.js} +2 -2
- package/dist/calcite/{p-617bf4d4.system.entry.js → p-8a1d330f.system.entry.js} +3 -3
- package/dist/calcite/{p-08206754.system.entry.js → p-8bf07af6.system.entry.js} +2 -2
- package/dist/calcite/{p-136dcb66.entry.js → p-8d1c65b3.entry.js} +2 -2
- package/dist/calcite/{p-dcd57eee.js → p-8d6e7ae9.js} +2 -2
- package/dist/calcite/p-8feec481.entry.js +6 -0
- package/dist/calcite/{p-2dd3c531.js → p-9114444e.js} +1 -1
- package/dist/calcite/p-9117279f.js +6 -0
- package/dist/calcite/{p-bce00fa9.entry.js → p-9161fda1.entry.js} +2 -2
- package/dist/calcite/{p-037a296c.entry.js → p-9234730f.entry.js} +2 -2
- package/dist/calcite/{p-78d97dd4.system.entry.js → p-94374109.system.entry.js} +2 -2
- package/dist/calcite/{p-5ec8876c.system.js → p-974169a0.system.js} +2 -2
- package/dist/calcite/{p-269eae8e.system.entry.js → p-98ac782f.system.entry.js} +3 -3
- package/dist/calcite/{p-fd56fefd.system.entry.js → p-9975ff23.system.entry.js} +2 -2
- package/dist/calcite/{p-eb7da111.entry.js → p-9ac12b40.entry.js} +2 -2
- package/dist/calcite/{p-1a6a2298.system.entry.js → p-9d605a6b.system.entry.js} +2 -2
- package/dist/calcite/{p-fc369922.js → p-9dbfbafd.js} +1 -1
- package/dist/calcite/{p-7bceec5b.system.js → p-9ed97204.system.js} +1 -1
- package/dist/calcite/{p-8fbc2535.js → p-a0dcf772.js} +2 -2
- package/dist/calcite/p-a2ad8027.system.js +6 -0
- package/dist/calcite/{p-f38d96e5.system.entry.js → p-a7fdac28.system.entry.js} +2 -2
- package/dist/calcite/{p-80584e00.js → p-a83a81f0.js} +1 -1
- package/dist/calcite/{p-b9e7e494.js → p-a930b01c.js} +1 -1
- package/dist/calcite/{p-b68b0524.js → p-a93d311d.js} +1 -1
- package/dist/calcite/{p-8c7ac265.system.entry.js → p-aa0a47da.system.entry.js} +2 -2
- package/dist/calcite/{p-6b0cad64.entry.js → p-aa6382d5.entry.js} +2 -2
- package/dist/calcite/{p-da06a3fa.system.entry.js → p-aa6bb23f.system.entry.js} +2 -2
- package/dist/calcite/{p-eb8d3b95.system.entry.js → p-ab235a61.system.entry.js} +2 -2
- package/dist/calcite/{p-aa942409.entry.js → p-b1a5dd6e.entry.js} +2 -2
- package/dist/calcite/{p-984faf52.system.js → p-b2e96474.system.js} +2 -2
- package/dist/calcite/{p-df05f274.system.entry.js → p-b65135ff.system.entry.js} +2 -2
- package/dist/calcite/p-b8a7add5.js +6 -0
- package/dist/calcite/{p-4db624e2.system.entry.js → p-b9151645.system.entry.js} +2 -2
- package/dist/calcite/{p-12c317e8.js → p-ba4a95e4.js} +2 -2
- package/dist/calcite/{p-120fdfd4.system.entry.js → p-bb4753b4.system.entry.js} +2 -2
- package/dist/calcite/{p-9f86ac29.system.js → p-be81e6b0.system.js} +1 -1
- package/dist/calcite/{p-314521f9.entry.js → p-bf828c05.entry.js} +2 -2
- package/dist/calcite/{p-9aeead08.entry.js → p-c5973fac.entry.js} +2 -2
- package/dist/calcite/{p-99c1e896.system.entry.js → p-c5f03d14.system.entry.js} +2 -2
- package/dist/calcite/{p-a80ee8ee.system.entry.js → p-c74cb6e2.system.entry.js} +2 -2
- package/dist/calcite/{p-7448d3ef.system.entry.js → p-ca2b7792.system.entry.js} +2 -2
- package/dist/calcite/{p-c8b4c8ef.system.entry.js → p-cb898174.system.entry.js} +2 -2
- package/dist/calcite/{p-b8f11ea3.system.entry.js → p-d03f22ed.system.entry.js} +2 -2
- package/dist/calcite/{p-d2d2ad60.system.js → p-d07e0aa0.system.js} +1 -1
- package/dist/calcite/{p-9fb46fe2.entry.js → p-d0d7ab13.entry.js} +2 -2
- package/dist/calcite/{p-5918d343.system.entry.js → p-d3a42721.system.entry.js} +2 -2
- package/dist/calcite/{p-9f54fb64.system.entry.js → p-d496afba.system.entry.js} +2 -2
- package/dist/calcite/{p-d4b5cbc8.system.entry.js → p-d4fd5734.system.entry.js} +2 -2
- package/dist/calcite/{p-8d954153.entry.js → p-d526fc6c.entry.js} +2 -2
- package/dist/calcite/{p-2428f8fc.system.entry.js → p-d8fcc4a5.system.entry.js} +2 -2
- package/dist/calcite/{p-a5f38a9a.entry.js → p-da2b273a.entry.js} +2 -2
- package/dist/calcite/{p-4742c075.system.js → p-daff59a7.system.js} +1 -1
- package/dist/calcite/{p-15c4e56c.entry.js → p-dbde8160.entry.js} +2 -2
- package/dist/calcite/{p-b08be59c.system.entry.js → p-dd37bfc5.system.entry.js} +2 -2
- package/dist/calcite/{p-9141a335.system.entry.js → p-dd53d8fa.system.entry.js} +2 -2
- package/dist/calcite/{p-3568f6ae.entry.js → p-df65ab12.entry.js} +2 -2
- package/dist/calcite/{p-3bf039f6.entry.js → p-e16905b5.entry.js} +2 -2
- package/dist/calcite/{p-42ee29e7.system.js → p-e27d4b16.system.js} +1 -1
- package/dist/calcite/{p-dd8cc1b8.entry.js → p-e2986a9f.entry.js} +2 -2
- package/dist/calcite/p-e2b8c4a5.js +6 -0
- package/dist/calcite/{p-dc1bd873.system.js → p-e3ce4cd4.system.js} +1 -1
- package/dist/calcite/{p-0d79ff57.system.entry.js → p-e3fbcbd1.system.entry.js} +2 -2
- package/dist/calcite/{p-303479b8.system.entry.js → p-e41a290b.system.entry.js} +2 -2
- package/dist/calcite/{p-71cb90b4.entry.js → p-e41fd7b2.entry.js} +2 -2
- package/dist/calcite/{p-e62111a6.entry.js → p-e43b6108.entry.js} +2 -2
- package/dist/calcite/{p-af3e28ac.system.js → p-e45ac015.system.js} +1 -1
- package/dist/calcite/{p-60a62acf.system.entry.js → p-e479cde3.system.entry.js} +2 -2
- package/dist/calcite/{p-67511174.system.entry.js → p-e574913f.system.entry.js} +2 -2
- package/dist/calcite/{p-e3a8629d.entry.js → p-e80013cf.entry.js} +2 -2
- package/dist/calcite/{p-14c1a3d1.system.entry.js → p-e835a1d0.system.entry.js} +2 -2
- package/dist/calcite/{p-ef8deb9d.system.entry.js → p-ea0f8051.system.entry.js} +2 -2
- package/dist/calcite/{p-d6ba4d2f.system.js → p-ea6a566f.system.js} +2 -2
- package/dist/calcite/{p-261c7c65.system.entry.js → p-eb978dfc.system.entry.js} +3 -3
- package/dist/calcite/{p-407afbba.entry.js → p-ebe7e875.entry.js} +2 -2
- package/dist/calcite/{p-893e8338.entry.js → p-ecfc2213.entry.js} +2 -2
- package/dist/calcite/{p-d6c6d88b.system.entry.js → p-ed3deff1.system.entry.js} +2 -2
- package/dist/calcite/{p-28569272.system.js → p-ee4f5395.system.js} +2 -2
- package/dist/calcite/{p-da9d69f1.entry.js → p-ef46c15d.entry.js} +2 -2
- package/dist/calcite/{p-c46035e7.entry.js → p-f018426f.entry.js} +2 -2
- package/dist/calcite/{p-ffe49c17.system.js → p-f01d4df4.system.js} +2 -2
- package/dist/calcite/{p-bebd2952.js → p-f1bfccbc.js} +2 -2
- package/dist/calcite/{p-f5611423.system.js → p-f270072e.system.js} +1 -1
- package/dist/calcite/{p-ce4fb4bc.js → p-f301e8cc.js} +1 -1
- package/dist/calcite/{p-5934b1ad.system.js → p-f43253f8.system.js} +2 -2
- package/dist/calcite/{p-d881e5a7.js → p-f457dae4.js} +1 -1
- package/dist/calcite/{p-8d40c6d9.entry.js → p-f75b2c45.entry.js} +2 -2
- package/dist/calcite/{p-db1bec8f.entry.js → p-f87796c4.entry.js} +2 -2
- package/dist/calcite/{p-ea16b624.system.entry.js → p-fbaa7a95.system.entry.js} +2 -2
- package/dist/calcite/{p-a7ae3d91.js → p-fcad1a5e.js} +1 -1
- package/dist/calcite/p-fdc8d24c.system.entry.js +6 -0
- package/dist/calcite/{p-01b83b6f.system.entry.js → p-fdf97b41.system.entry.js} +3 -3
- package/dist/calcite/{p-9ab36290.entry.js → p-fff25399.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-68bd4055.js → ExpandToggle-38bc3767.js} +5 -5
- package/dist/cjs/{Heading-2684b29b.js → Heading-1a96a850.js} +2 -2
- package/dist/cjs/{app-globals-1d040ace.js → app-globals-8c2c8b73.js} +2 -2
- package/dist/cjs/{array-07e5e364.js → array-8a9971c1.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +11 -11
- package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action.cjs.entry.js +7 -7
- package/dist/cjs/calcite-alert.cjs.entry.js +7 -7
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-button.cjs.entry.js +9 -9
- package/dist/cjs/calcite-card.cjs.entry.js +7 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -9
- package/dist/cjs/calcite-chip.cjs.entry.js +7 -7
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +13 -13
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
- package/dist/cjs/calcite-filter.cjs.entry.js +8 -8
- package/dist/cjs/calcite-flow-item.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +8 -8
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +18 -18
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-input.cjs.entry.js +12 -12
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +6 -6
- package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +8 -8
- package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
- package/dist/cjs/calcite-option_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-pagination.cjs.entry.js +5 -5
- package/dist/cjs/calcite-panel.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-popover_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +9 -9
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-rating.cjs.entry.js +9 -9
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-switch.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tree_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite.cjs.js +4 -4
- package/dist/cjs/{conditionalSlot-1e59be61.js → conditionalSlot-76254f76.js} +3 -3
- package/dist/cjs/{debounce-ce32aa87.js → debounce-96d0ce8b.js} +1 -1
- package/dist/cjs/{dom-90a2b77e.js → dom-9309a72a.js} +3 -3
- package/dist/cjs/{filter-730a5c49.js → filter-7c0f90c2.js} +2 -2
- package/dist/cjs/{floating-ui-39958130.js → floating-ui-48c1d21c.js} +2 -2
- package/dist/cjs/{form-e3904db3.js → form-ae4f3fe2.js} +3 -3
- package/dist/cjs/{guid-1be5b9dc.js → guid-930dde50.js} +1 -1
- package/dist/cjs/{index-0d3a4604.js → index-fee78d80.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-74f8336f.js → interactive-d030bc2b.js} +1 -1
- package/dist/cjs/{interfaces-e719cadd.js → interfaces-b39f7f83.js} +1 -1
- package/dist/cjs/{key-07e2938c.js → key-ea9279a7.js} +1 -1
- package/dist/cjs/{label-1f6fd693.js → label-6e5b1e1c.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-30dae6d6.js → locale-5acab61c.js} +2 -2
- package/dist/cjs/{math-f786165d.js → math-bb73020a.js} +1 -1
- package/dist/cjs/{observers-ce78c936.js → observers-f6f72f48.js} +1 -1
- package/dist/cjs/{openCloseComponent-e4967ce8.js → openCloseComponent-8c87965f.js} +1 -1
- package/dist/cjs/{resources-c70cf0c3.js → resources-1186d996.js} +1 -1
- package/dist/cjs/{resources-94a4bcdf.js → resources-29ed8960.js} +1 -1
- package/dist/cjs/{resources-eba6196b.js → resources-31e4920f.js} +1 -1
- package/dist/cjs/{resources-a26fc834.js → resources-3dbf973f.js} +5 -5
- package/dist/cjs/{resources-387f171b.js → resources-6cb0ef28.js} +1 -1
- package/dist/cjs/{resources-2c5ff6d0.js → resources-89a93f8c.js} +86 -62
- package/dist/cjs/{sortable.esm-59e20ada.js → sortable.esm-a2bef1bb.js} +1 -1
- package/dist/cjs/{utils-c587a8c7.js → utils-7523ded5.js} +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/alert/interfaces.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/interfaces.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/interfaces.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/interfaces.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/interfaces.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +1 -1
- package/dist/collection/components/combobox/interfaces.js +1 -1
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +6 -6
- package/dist/collection/components/date-picker/interfaces.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +10 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/interfaces.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/interfaces.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/interfaces.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/interfaces.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/interfaces.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +8 -8
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/interfaces.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
- package/dist/collection/components/interfaces.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/interfaces.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-group/interfaces.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/rating/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stepper/interfaces.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/interfaces.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/interfaces.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/interfaces.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/interfaces.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/interfaces.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/interfaces.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/date.js +16 -2
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/theme.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +8 -8
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-radio-group-item.js +1 -1
- package/dist/components/calcite-radio-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +2 -2
- package/dist/components/date-picker-month.js +2 -2
- package/dist/components/date-picker.js +14 -6
- package/dist/components/date.js +17 -3
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/custom-elements/index.js +216 -194
- package/dist/esm/{ExpandToggle-b78d4336.js → ExpandToggle-10d2ef92.js} +5 -5
- package/dist/esm/{Heading-bd012565.js → Heading-832fb431.js} +2 -2
- package/dist/esm/{app-globals-c055ac5f.js → app-globals-10d1dc43.js} +2 -2
- package/dist/esm/{array-251df820.js → array-3a18051b.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +11 -11
- package/dist/esm/calcite-action-group.entry.js +9 -9
- package/dist/esm/calcite-action-menu.entry.js +8 -8
- package/dist/esm/calcite-action-pad.entry.js +10 -10
- package/dist/esm/calcite-action.entry.js +7 -7
- package/dist/esm/calcite-alert.entry.js +7 -7
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +10 -10
- package/dist/esm/calcite-button.entry.js +9 -9
- package/dist/esm/calcite-card.entry.js +7 -7
- package/dist/esm/calcite-checkbox.entry.js +9 -9
- package/dist/esm/calcite-chip.entry.js +7 -7
- package/dist/esm/calcite-color-picker_3.entry.js +10 -10
- package/dist/esm/calcite-combobox_3.entry.js +14 -14
- package/dist/esm/calcite-date-picker_4.entry.js +13 -13
- package/dist/esm/calcite-dropdown_3.entry.js +10 -10
- package/dist/esm/calcite-fab.entry.js +6 -6
- package/dist/esm/calcite-filter.entry.js +8 -8
- package/dist/esm/calcite-flow-item.entry.js +7 -7
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +11 -11
- package/dist/esm/calcite-handle.entry.js +5 -5
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +8 -8
- package/dist/esm/calcite-input-date-picker.entry.js +18 -18
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +12 -12
- package/dist/esm/calcite-input-text.entry.js +9 -9
- package/dist/esm/calcite-input-time-picker_2.entry.js +10 -10
- package/dist/esm/calcite-input.entry.js +12 -12
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +6 -6
- package/dist/esm/calcite-list_3.entry.js +9 -9
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +8 -8
- package/dist/esm/calcite-notice.entry.js +8 -8
- package/dist/esm/calcite-option_3.entry.js +9 -9
- package/dist/esm/calcite-pagination.entry.js +5 -5
- package/dist/esm/calcite-panel.entry.js +10 -10
- package/dist/esm/calcite-pick-list_3.entry.js +12 -12
- package/dist/esm/calcite-popover_2.entry.js +10 -10
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +9 -9
- package/dist/esm/calcite-radio-group_2.entry.js +8 -8
- package/dist/esm/calcite-rating.entry.js +9 -9
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +8 -8
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +6 -6
- package/dist/esm/calcite-switch.entry.js +9 -9
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +8 -8
- package/dist/esm/calcite-tooltip_2.entry.js +6 -6
- package/dist/esm/calcite-tree_2.entry.js +7 -7
- package/dist/esm/calcite-value-list_2.entry.js +12 -12
- package/dist/esm/calcite.js +4 -4
- package/dist/esm/{conditionalSlot-e14190e8.js → conditionalSlot-85f07706.js} +3 -3
- package/dist/esm/{debounce-6cbfe4ec.js → debounce-663977f3.js} +1 -1
- package/dist/esm/{dom-6444a4b6.js → dom-644aa911.js} +3 -3
- package/dist/esm/{filter-d407fc18.js → filter-73ab3d90.js} +2 -2
- package/dist/esm/{floating-ui-0132a77f.js → floating-ui-a3dbc5e9.js} +2 -2
- package/dist/esm/{form-e3469c8e.js → form-e4f5bde2.js} +3 -3
- package/dist/esm/{guid-e95ed36b.js → guid-04104141.js} +1 -1
- package/dist/esm/{index-bb8efe5f.js → index-0d07e25e.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-693afbee.js → interactive-4181f620.js} +1 -1
- package/dist/esm/{interfaces-239400d8.js → interfaces-2080ebbf.js} +1 -1
- package/dist/esm/{key-b4e774e7.js → key-b95abbd2.js} +1 -1
- package/dist/esm/{label-f1e3905c.js → label-d2446853.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{locale-4894727f.js → locale-cf9ea7d3.js} +2 -2
- package/dist/esm/{math-40a9eb3c.js → math-e55e55da.js} +1 -1
- package/dist/esm/{observers-7eb0f15e.js → observers-64cf7a6d.js} +1 -1
- package/dist/esm/{openCloseComponent-65de43ad.js → openCloseComponent-ed2053e1.js} +1 -1
- package/dist/esm/{resources-da00cb1d.js → resources-3c6f2c84.js} +85 -63
- package/dist/esm/{resources-11a0ca3d.js → resources-609086e6.js} +1 -1
- package/dist/esm/{resources-cf222e6d.js → resources-a1013e55.js} +1 -1
- package/dist/esm/{resources-25dfce63.js → resources-a1a27263.js} +1 -1
- package/dist/esm/{resources-103aa8cd.js → resources-dce5bba2.js} +5 -5
- package/dist/esm/{resources-cd1c2cc8.js → resources-de665b41.js} +1 -1
- package/dist/esm/{sortable.esm-6f88f527.js → sortable.esm-4595b5a1.js} +1 -1
- package/dist/esm/{utils-1b328660.js → utils-3cb6c31f.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-b78d4336.js → ExpandToggle-10d2ef92.js} +2 -2
- package/dist/esm-es5/{Heading-bd012565.js → Heading-832fb431.js} +2 -2
- package/dist/esm-es5/{app-globals-c055ac5f.js → app-globals-10d1dc43.js} +2 -2
- package/dist/esm-es5/{array-251df820.js → array-3a18051b.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +3 -3
- package/dist/esm-es5/calcite-action-group.entry.js +2 -2
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +3 -3
- package/dist/esm-es5/calcite-action.entry.js +2 -2
- package/dist/esm-es5/calcite-alert.entry.js +2 -2
- package/dist/esm-es5/calcite-avatar.entry.js +2 -2
- package/dist/esm-es5/calcite-block_2.entry.js +2 -2
- package/dist/esm-es5/calcite-button.entry.js +2 -2
- package/dist/esm-es5/calcite-card.entry.js +2 -2
- package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
- package/dist/esm-es5/calcite-chip.entry.js +2 -2
- package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
- package/dist/esm-es5/calcite-fab.entry.js +3 -3
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow-item.entry.js +3 -3
- package/dist/esm-es5/calcite-flow.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
- package/dist/esm-es5/calcite-handle.entry.js +2 -2
- package/dist/esm-es5/calcite-icon.entry.js +2 -2
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
- package/dist/esm-es5/calcite-input-message.entry.js +2 -2
- package/dist/esm-es5/calcite-input-number.entry.js +2 -2
- package/dist/esm-es5/calcite-input-text.entry.js +2 -2
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
- package/dist/esm-es5/calcite-input.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +2 -2
- package/dist/esm-es5/calcite-link.entry.js +3 -3
- package/dist/esm-es5/calcite-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-loader.entry.js +2 -2
- package/dist/esm-es5/calcite-modal.entry.js +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +3 -3
- package/dist/esm-es5/calcite-option_3.entry.js +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +2 -2
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-progress.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
- package/dist/esm-es5/calcite-rating.entry.js +2 -2
- package/dist/esm-es5/calcite-scrim.entry.js +2 -2
- package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
- package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
- package/dist/esm-es5/calcite-split-button.entry.js +2 -2
- package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
- package/dist/esm-es5/calcite-switch.entry.js +2 -2
- package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +2 -2
- package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
- package/dist/esm-es5/calcite.js +2 -2
- package/dist/esm-es5/{conditionalSlot-e14190e8.js → conditionalSlot-85f07706.js} +2 -2
- package/dist/esm-es5/{debounce-6cbfe4ec.js → debounce-663977f3.js} +1 -1
- package/dist/esm-es5/{dom-6444a4b6.js → dom-644aa911.js} +2 -2
- package/dist/esm-es5/{filter-d407fc18.js → filter-73ab3d90.js} +2 -2
- package/dist/esm-es5/{floating-ui-0132a77f.js → floating-ui-a3dbc5e9.js} +2 -2
- package/dist/esm-es5/{form-e3469c8e.js → form-e4f5bde2.js} +2 -2
- package/dist/esm-es5/{guid-e95ed36b.js → guid-04104141.js} +1 -1
- package/dist/esm-es5/{index-bb8efe5f.js → index-0d07e25e.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-693afbee.js → interactive-4181f620.js} +1 -1
- package/dist/esm-es5/{interfaces-239400d8.js → interfaces-2080ebbf.js} +1 -1
- package/dist/esm-es5/{key-b4e774e7.js → key-b95abbd2.js} +1 -1
- package/dist/esm-es5/{label-f1e3905c.js → label-d2446853.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-4894727f.js → locale-cf9ea7d3.js} +2 -2
- package/dist/esm-es5/{math-40a9eb3c.js → math-e55e55da.js} +1 -1
- package/dist/esm-es5/{observers-7eb0f15e.js → observers-64cf7a6d.js} +1 -1
- package/dist/esm-es5/{openCloseComponent-65de43ad.js → openCloseComponent-ed2053e1.js} +1 -1
- package/dist/esm-es5/resources-3c6f2c84.js +6 -0
- package/dist/esm-es5/{resources-11a0ca3d.js → resources-609086e6.js} +1 -1
- package/dist/esm-es5/{resources-cf222e6d.js → resources-a1013e55.js} +1 -1
- package/dist/esm-es5/{resources-25dfce63.js → resources-a1a27263.js} +1 -1
- package/dist/esm-es5/{resources-103aa8cd.js → resources-dce5bba2.js} +2 -2
- package/dist/esm-es5/{resources-cd1c2cc8.js → resources-de665b41.js} +1 -1
- package/dist/esm-es5/{sortable.esm-6f88f527.js → sortable.esm-4595b5a1.js} +1 -1
- package/dist/esm-es5/{utils-1b328660.js → utils-3cb6c31f.js} +1 -1
- package/dist/extras/docs-json.json +1 -1
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/date-picker/utils.d.ts +6 -0
- package/dist/types/utils/date.d.ts +9 -1
- package/hydrate/index.js +216 -193
- package/package.json +3 -3
- package/dist/calcite/p-0ea6b84b.entry.js +0 -6
- package/dist/calcite/p-1e8c8620.js +0 -6
- package/dist/calcite/p-2b82abda.system.js +0 -6
- package/dist/calcite/p-51b66bb8.js +0 -6
- package/dist/calcite/p-6af1a115.entry.js +0 -6
- package/dist/calcite/p-9103756e.system.entry.js +0 -6
- package/dist/calcite/p-93bae0c7.js +0 -6
- package/dist/calcite/p-acd099e2.system.js +0 -6
- package/dist/calcite/p-bf44b789.entry.js +0 -6
- package/dist/calcite/p-c721b640.js +0 -6
- package/dist/calcite/p-d3e80e57.system.entry.js +0 -6
- package/dist/esm-es5/resources-da00cb1d.js +0 -6
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.578
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -16764,6 +16764,209 @@ class ComboboxItemGroup {
|
|
|
16764
16764
|
}; }
|
|
16765
16765
|
}
|
|
16766
16766
|
|
|
16767
|
+
/**
|
|
16768
|
+
* Check if date is within a min and max
|
|
16769
|
+
*
|
|
16770
|
+
* @param date
|
|
16771
|
+
* @param min
|
|
16772
|
+
* @param max
|
|
16773
|
+
*/
|
|
16774
|
+
function inRange(date, min, max) {
|
|
16775
|
+
const time = date.getTime();
|
|
16776
|
+
const afterMin = !(min instanceof Date) || time >= min.getTime();
|
|
16777
|
+
const beforeMax = !(max instanceof Date) || time <= max.getTime();
|
|
16778
|
+
return afterMin && beforeMax;
|
|
16779
|
+
}
|
|
16780
|
+
/**
|
|
16781
|
+
* Ensures date is within range,
|
|
16782
|
+
* returns min or max if out of bounds
|
|
16783
|
+
*
|
|
16784
|
+
* @param date
|
|
16785
|
+
* @param min
|
|
16786
|
+
* @param max
|
|
16787
|
+
*/
|
|
16788
|
+
function dateFromRange(date, min, max) {
|
|
16789
|
+
if (!(date instanceof Date)) {
|
|
16790
|
+
return null;
|
|
16791
|
+
}
|
|
16792
|
+
const time = date.getTime();
|
|
16793
|
+
const beforeMin = min instanceof Date && time < min.getTime();
|
|
16794
|
+
const afterMax = max instanceof Date && time > max.getTime();
|
|
16795
|
+
if (beforeMin) {
|
|
16796
|
+
return min;
|
|
16797
|
+
}
|
|
16798
|
+
if (afterMax) {
|
|
16799
|
+
return max;
|
|
16800
|
+
}
|
|
16801
|
+
return date;
|
|
16802
|
+
}
|
|
16803
|
+
/**
|
|
16804
|
+
* Parse an iso8601 string (YYYY-mm-dd) into a valid date.
|
|
16805
|
+
* TODO: handle time when time of day UI is added
|
|
16806
|
+
*
|
|
16807
|
+
* @param iso8601
|
|
16808
|
+
* @param isEndDate
|
|
16809
|
+
*/
|
|
16810
|
+
function dateFromISO(iso8601, isEndDate = false) {
|
|
16811
|
+
if (iso8601 instanceof Date) {
|
|
16812
|
+
return iso8601;
|
|
16813
|
+
}
|
|
16814
|
+
if (!iso8601 || typeof iso8601 !== "string") {
|
|
16815
|
+
return null;
|
|
16816
|
+
}
|
|
16817
|
+
const d = iso8601.split(/[: T-]/).map(parseFloat);
|
|
16818
|
+
const date = new Date(d[0], (d[1] || 1) - 1, d[2] || 1);
|
|
16819
|
+
date.setFullYear(d[0]);
|
|
16820
|
+
if (isNaN(date.getTime())) {
|
|
16821
|
+
throw new Error(`Invalid ISO 8601 date: "${iso8601}"`);
|
|
16822
|
+
}
|
|
16823
|
+
if (isEndDate) {
|
|
16824
|
+
return setEndOfDay(date);
|
|
16825
|
+
}
|
|
16826
|
+
return date;
|
|
16827
|
+
}
|
|
16828
|
+
/**
|
|
16829
|
+
* Return first portion of ISO string (YYYY-mm-dd)
|
|
16830
|
+
*
|
|
16831
|
+
* @param date
|
|
16832
|
+
*/
|
|
16833
|
+
function dateToISO(date) {
|
|
16834
|
+
if (typeof date === "string") {
|
|
16835
|
+
return date;
|
|
16836
|
+
}
|
|
16837
|
+
if (date instanceof Date) {
|
|
16838
|
+
return new Date(date.getTime() - date.getTimezoneOffset() * 60000).toISOString().split("T")[0];
|
|
16839
|
+
}
|
|
16840
|
+
return "";
|
|
16841
|
+
}
|
|
16842
|
+
/**
|
|
16843
|
+
* Check if two dates are the same day, month, year
|
|
16844
|
+
*
|
|
16845
|
+
* @param d1
|
|
16846
|
+
* @param d2
|
|
16847
|
+
*/
|
|
16848
|
+
function sameDate(d1, d2) {
|
|
16849
|
+
return (d1 instanceof Date &&
|
|
16850
|
+
d2 instanceof Date &&
|
|
16851
|
+
d1.getDate() === d2.getDate() &&
|
|
16852
|
+
d1.getMonth() === d2.getMonth() &&
|
|
16853
|
+
d1.getFullYear() === d2.getFullYear());
|
|
16854
|
+
}
|
|
16855
|
+
/**
|
|
16856
|
+
* Get a date one month in the past
|
|
16857
|
+
*
|
|
16858
|
+
* @param date
|
|
16859
|
+
*/
|
|
16860
|
+
function prevMonth(date) {
|
|
16861
|
+
const month = date.getMonth();
|
|
16862
|
+
const nextDate = new Date(date);
|
|
16863
|
+
nextDate.setMonth(month - 1);
|
|
16864
|
+
// date doesn't exist in new month, use last day
|
|
16865
|
+
if (month === nextDate.getMonth()) {
|
|
16866
|
+
return new Date(date.getFullYear(), month, 0);
|
|
16867
|
+
}
|
|
16868
|
+
return nextDate;
|
|
16869
|
+
}
|
|
16870
|
+
/**
|
|
16871
|
+
* Get a date one month in the future
|
|
16872
|
+
*
|
|
16873
|
+
* @param date
|
|
16874
|
+
*/
|
|
16875
|
+
function nextMonth(date) {
|
|
16876
|
+
const month = date.getMonth();
|
|
16877
|
+
const nextDate = new Date(date);
|
|
16878
|
+
nextDate.setMonth(month + 1);
|
|
16879
|
+
// date doesn't exist in new month, use last day
|
|
16880
|
+
if ((month + 2) % 7 === nextDate.getMonth() % 7) {
|
|
16881
|
+
return new Date(date.getFullYear(), month + 2, 0);
|
|
16882
|
+
}
|
|
16883
|
+
return nextDate;
|
|
16884
|
+
}
|
|
16885
|
+
/**
|
|
16886
|
+
* Translate a number into a given locals numeral system
|
|
16887
|
+
*
|
|
16888
|
+
* @param num
|
|
16889
|
+
* @param localeData
|
|
16890
|
+
*/
|
|
16891
|
+
function localizeNumber(num, localeData) {
|
|
16892
|
+
return String(num)
|
|
16893
|
+
.split("")
|
|
16894
|
+
.map((i) => localeData.numerals[i])
|
|
16895
|
+
.join("");
|
|
16896
|
+
}
|
|
16897
|
+
/**
|
|
16898
|
+
* Calculate actual number from localized string
|
|
16899
|
+
*
|
|
16900
|
+
* @param str
|
|
16901
|
+
* @param localeData
|
|
16902
|
+
*/
|
|
16903
|
+
function parseNumber(str, localeData) {
|
|
16904
|
+
const numerals = "0123456789";
|
|
16905
|
+
return parseInt(str
|
|
16906
|
+
.split("")
|
|
16907
|
+
.map((i) => numerals[localeData.numerals.indexOf(i)])
|
|
16908
|
+
.filter((num) => num)
|
|
16909
|
+
.join(""));
|
|
16910
|
+
}
|
|
16911
|
+
/**
|
|
16912
|
+
* Parse numeric units for day, month, and year from a localized string
|
|
16913
|
+
* month starts at 0 (can pass to date constructor)
|
|
16914
|
+
*
|
|
16915
|
+
* @param str
|
|
16916
|
+
* @param localeData
|
|
16917
|
+
*/
|
|
16918
|
+
function parseDateString(str, localeData) {
|
|
16919
|
+
const { separator, unitOrder } = localeData;
|
|
16920
|
+
const order = getOrder(unitOrder);
|
|
16921
|
+
const values = replaceArabicNumerals(str).split(separator);
|
|
16922
|
+
return {
|
|
16923
|
+
day: parseInt(values[order.indexOf("d")]),
|
|
16924
|
+
month: parseInt(values[order.indexOf("m")]) - 1,
|
|
16925
|
+
year: parseInt(values[order.indexOf("y")])
|
|
16926
|
+
};
|
|
16927
|
+
}
|
|
16928
|
+
/**
|
|
16929
|
+
* Convert eastern arbic numerals
|
|
16930
|
+
*
|
|
16931
|
+
* @param str
|
|
16932
|
+
*/
|
|
16933
|
+
function replaceArabicNumerals(str = "") {
|
|
16934
|
+
return str
|
|
16935
|
+
.replace(/[\u0660-\u0669]/g, (c) => (c.charCodeAt(0) - 0x0660))
|
|
16936
|
+
.replace(/[\u06f0-\u06f9]/g, (c) => (c.charCodeAt(0) - 0x06f0));
|
|
16937
|
+
}
|
|
16938
|
+
/**
|
|
16939
|
+
* Based on the unitOrder string, find order of month, day, and year for locale
|
|
16940
|
+
*
|
|
16941
|
+
* @param unitOrder
|
|
16942
|
+
*/
|
|
16943
|
+
function getOrder(unitOrder) {
|
|
16944
|
+
const signifiers = ["d", "m", "y"];
|
|
16945
|
+
const order = unitOrder.toLowerCase();
|
|
16946
|
+
return signifiers.sort((a, b) => order.indexOf(a) - order.indexOf(b));
|
|
16947
|
+
}
|
|
16948
|
+
/**
|
|
16949
|
+
* Get number of days between two dates
|
|
16950
|
+
*
|
|
16951
|
+
* @param date1
|
|
16952
|
+
* @param date2
|
|
16953
|
+
*/
|
|
16954
|
+
function getDaysDiff(date1, date2) {
|
|
16955
|
+
const ts1 = date1.getTime();
|
|
16956
|
+
const ts2 = date2.getTime();
|
|
16957
|
+
return (ts1 - ts2) / (1000 * 3600 * 24);
|
|
16958
|
+
}
|
|
16959
|
+
/**
|
|
16960
|
+
* Set time of the day to the end.
|
|
16961
|
+
*
|
|
16962
|
+
* @param {Date} date Date.
|
|
16963
|
+
* @returns {Date} Date with time set to end of day .
|
|
16964
|
+
*/
|
|
16965
|
+
function setEndOfDay(date) {
|
|
16966
|
+
date.setHours(23, 59, 59, 999);
|
|
16967
|
+
return date;
|
|
16968
|
+
}
|
|
16969
|
+
|
|
16767
16970
|
// regex for number sanitization
|
|
16768
16971
|
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
16769
16972
|
const decimalOnlyAtEndOfString = /(?!^\.)\.$/;
|
|
@@ -16960,192 +17163,12 @@ function localizeNumberString(numberString, locale, displayGroupSeparator = fals
|
|
|
16960
17163
|
}
|
|
16961
17164
|
|
|
16962
17165
|
/**
|
|
16963
|
-
*
|
|
16964
|
-
*
|
|
16965
|
-
* @param date
|
|
16966
|
-
* @param min
|
|
16967
|
-
* @param max
|
|
16968
|
-
*/
|
|
16969
|
-
function inRange(date, min, max) {
|
|
16970
|
-
const time = date.getTime();
|
|
16971
|
-
const afterMin = !(min instanceof Date) || time >= min.getTime();
|
|
16972
|
-
const beforeMax = !(max instanceof Date) || time <= max.getTime();
|
|
16973
|
-
return afterMin && beforeMax;
|
|
16974
|
-
}
|
|
16975
|
-
/**
|
|
16976
|
-
* Ensures date is within range,
|
|
16977
|
-
* returns min or max if out of bounds
|
|
16978
|
-
*
|
|
16979
|
-
* @param date
|
|
16980
|
-
* @param min
|
|
16981
|
-
* @param max
|
|
16982
|
-
*/
|
|
16983
|
-
function dateFromRange(date, min, max) {
|
|
16984
|
-
if (!(date instanceof Date)) {
|
|
16985
|
-
return null;
|
|
16986
|
-
}
|
|
16987
|
-
const time = date.getTime();
|
|
16988
|
-
const beforeMin = min instanceof Date && time < min.getTime();
|
|
16989
|
-
const afterMax = max instanceof Date && time > max.getTime();
|
|
16990
|
-
if (beforeMin) {
|
|
16991
|
-
return min;
|
|
16992
|
-
}
|
|
16993
|
-
if (afterMax) {
|
|
16994
|
-
return max;
|
|
16995
|
-
}
|
|
16996
|
-
return date;
|
|
16997
|
-
}
|
|
16998
|
-
/**
|
|
16999
|
-
* Parse an iso8601 string (YYYY-mm-dd) into a valid date.
|
|
17000
|
-
* TODO: handle time when time of day UI is added
|
|
17166
|
+
* Maps value to valueAsDate
|
|
17001
17167
|
*
|
|
17002
|
-
* @param
|
|
17003
|
-
*/
|
|
17004
|
-
function dateFromISO(iso8601) {
|
|
17005
|
-
if (iso8601 instanceof Date) {
|
|
17006
|
-
return iso8601;
|
|
17007
|
-
}
|
|
17008
|
-
if (!iso8601 || typeof iso8601 !== "string") {
|
|
17009
|
-
return null;
|
|
17010
|
-
}
|
|
17011
|
-
const d = iso8601.split(/[: T-]/).map(parseFloat);
|
|
17012
|
-
const date = new Date(d[0], (d[1] || 1) - 1, d[2] || 1);
|
|
17013
|
-
date.setFullYear(d[0]);
|
|
17014
|
-
if (isNaN(date.getTime())) {
|
|
17015
|
-
throw new Error(`Invalid ISO 8601 date: "${iso8601}"`);
|
|
17016
|
-
}
|
|
17017
|
-
return date;
|
|
17018
|
-
}
|
|
17019
|
-
/**
|
|
17020
|
-
* Return first portion of ISO string (YYYY-mm-dd)
|
|
17021
|
-
*
|
|
17022
|
-
* @param date
|
|
17023
|
-
*/
|
|
17024
|
-
function dateToISO(date) {
|
|
17025
|
-
if (typeof date === "string") {
|
|
17026
|
-
return date;
|
|
17027
|
-
}
|
|
17028
|
-
if (date instanceof Date) {
|
|
17029
|
-
return new Date(date.getTime() - date.getTimezoneOffset() * 60000).toISOString().split("T")[0];
|
|
17030
|
-
}
|
|
17031
|
-
return "";
|
|
17032
|
-
}
|
|
17033
|
-
/**
|
|
17034
|
-
* Check if two dates are the same day, month, year
|
|
17035
|
-
*
|
|
17036
|
-
* @param d1
|
|
17037
|
-
* @param d2
|
|
17038
|
-
*/
|
|
17039
|
-
function sameDate(d1, d2) {
|
|
17040
|
-
return (d1 instanceof Date &&
|
|
17041
|
-
d2 instanceof Date &&
|
|
17042
|
-
d1.getDate() === d2.getDate() &&
|
|
17043
|
-
d1.getMonth() === d2.getMonth() &&
|
|
17044
|
-
d1.getFullYear() === d2.getFullYear());
|
|
17045
|
-
}
|
|
17046
|
-
/**
|
|
17047
|
-
* Get a date one month in the past
|
|
17048
|
-
*
|
|
17049
|
-
* @param date
|
|
17050
|
-
*/
|
|
17051
|
-
function prevMonth(date) {
|
|
17052
|
-
const month = date.getMonth();
|
|
17053
|
-
const nextDate = new Date(date);
|
|
17054
|
-
nextDate.setMonth(month - 1);
|
|
17055
|
-
// date doesn't exist in new month, use last day
|
|
17056
|
-
if (month === nextDate.getMonth()) {
|
|
17057
|
-
return new Date(date.getFullYear(), month, 0);
|
|
17058
|
-
}
|
|
17059
|
-
return nextDate;
|
|
17060
|
-
}
|
|
17061
|
-
/**
|
|
17062
|
-
* Get a date one month in the future
|
|
17063
|
-
*
|
|
17064
|
-
* @param date
|
|
17065
|
-
*/
|
|
17066
|
-
function nextMonth(date) {
|
|
17067
|
-
const month = date.getMonth();
|
|
17068
|
-
const nextDate = new Date(date);
|
|
17069
|
-
nextDate.setMonth(month + 1);
|
|
17070
|
-
// date doesn't exist in new month, use last day
|
|
17071
|
-
if ((month + 2) % 7 === nextDate.getMonth() % 7) {
|
|
17072
|
-
return new Date(date.getFullYear(), month + 2, 0);
|
|
17073
|
-
}
|
|
17074
|
-
return nextDate;
|
|
17075
|
-
}
|
|
17076
|
-
/**
|
|
17077
|
-
* Translate a number into a given locals numeral system
|
|
17078
|
-
*
|
|
17079
|
-
* @param num
|
|
17080
|
-
* @param localeData
|
|
17081
|
-
*/
|
|
17082
|
-
function localizeNumber(num, localeData) {
|
|
17083
|
-
return String(num)
|
|
17084
|
-
.split("")
|
|
17085
|
-
.map((i) => localeData.numerals[i])
|
|
17086
|
-
.join("");
|
|
17087
|
-
}
|
|
17088
|
-
/**
|
|
17089
|
-
* Calculate actual number from localized string
|
|
17090
|
-
*
|
|
17091
|
-
* @param str
|
|
17092
|
-
* @param localeData
|
|
17093
|
-
*/
|
|
17094
|
-
function parseNumber(str, localeData) {
|
|
17095
|
-
const numerals = "0123456789";
|
|
17096
|
-
return parseInt(str
|
|
17097
|
-
.split("")
|
|
17098
|
-
.map((i) => numerals[localeData.numerals.indexOf(i)])
|
|
17099
|
-
.filter((num) => num)
|
|
17100
|
-
.join(""));
|
|
17101
|
-
}
|
|
17102
|
-
/**
|
|
17103
|
-
* Parse numeric units for day, month, and year from a localized string
|
|
17104
|
-
* month starts at 0 (can pass to date constructor)
|
|
17105
|
-
*
|
|
17106
|
-
* @param str
|
|
17107
|
-
* @param localeData
|
|
17108
|
-
*/
|
|
17109
|
-
function parseDateString(str, localeData) {
|
|
17110
|
-
const { separator, unitOrder } = localeData;
|
|
17111
|
-
const order = getOrder(unitOrder);
|
|
17112
|
-
const values = replaceArabicNumerals(str).split(separator);
|
|
17113
|
-
return {
|
|
17114
|
-
day: parseInt(values[order.indexOf("d")]),
|
|
17115
|
-
month: parseInt(values[order.indexOf("m")]) - 1,
|
|
17116
|
-
year: parseInt(values[order.indexOf("y")])
|
|
17117
|
-
};
|
|
17118
|
-
}
|
|
17119
|
-
/**
|
|
17120
|
-
* Convert eastern arbic numerals
|
|
17121
|
-
*
|
|
17122
|
-
* @param str
|
|
17123
|
-
*/
|
|
17124
|
-
function replaceArabicNumerals(str = "") {
|
|
17125
|
-
return str
|
|
17126
|
-
.replace(/[\u0660-\u0669]/g, (c) => (c.charCodeAt(0) - 0x0660))
|
|
17127
|
-
.replace(/[\u06f0-\u06f9]/g, (c) => (c.charCodeAt(0) - 0x06f0));
|
|
17128
|
-
}
|
|
17129
|
-
/**
|
|
17130
|
-
* Based on the unitOrder string, find order of month, day, and year for locale
|
|
17131
|
-
*
|
|
17132
|
-
* @param unitOrder
|
|
17133
|
-
*/
|
|
17134
|
-
function getOrder(unitOrder) {
|
|
17135
|
-
const signifiers = ["d", "m", "y"];
|
|
17136
|
-
const order = unitOrder.toLowerCase();
|
|
17137
|
-
return signifiers.sort((a, b) => order.indexOf(a) - order.indexOf(b));
|
|
17138
|
-
}
|
|
17139
|
-
/**
|
|
17140
|
-
* Get number of days between two dates
|
|
17141
|
-
*
|
|
17142
|
-
* @param date1
|
|
17143
|
-
* @param date2
|
|
17168
|
+
* @param value
|
|
17144
17169
|
*/
|
|
17145
|
-
function
|
|
17146
|
-
|
|
17147
|
-
const ts2 = date2.getTime();
|
|
17148
|
-
return (ts1 - ts2) / (1000 * 3600 * 24);
|
|
17170
|
+
function getValueAsDateRange(value) {
|
|
17171
|
+
return value.map((v, index) => dateFromISO(v, index === 1));
|
|
17149
17172
|
}
|
|
17150
17173
|
|
|
17151
17174
|
const HEADING_LEVEL$6 = 2;
|
|
@@ -17406,7 +17429,7 @@ class DatePicker {
|
|
|
17406
17429
|
// --------------------------------------------------------------------------
|
|
17407
17430
|
connectedCallback() {
|
|
17408
17431
|
if (Array.isArray(this.value)) {
|
|
17409
|
-
this.valueAsDate = this.value
|
|
17432
|
+
this.valueAsDate = getValueAsDateRange(this.value);
|
|
17410
17433
|
this.start = this.value[0];
|
|
17411
17434
|
this.end = this.value[1];
|
|
17412
17435
|
}
|
|
@@ -17464,7 +17487,7 @@ class DatePicker {
|
|
|
17464
17487
|
}
|
|
17465
17488
|
valueHandler(value) {
|
|
17466
17489
|
if (Array.isArray(value)) {
|
|
17467
|
-
this.valueAsDate = value
|
|
17490
|
+
this.valueAsDate = getValueAsDateRange(value);
|
|
17468
17491
|
this.start = value[0];
|
|
17469
17492
|
this.end = value[1];
|
|
17470
17493
|
}
|
|
@@ -17523,7 +17546,7 @@ class DatePicker {
|
|
|
17523
17546
|
* @param emit
|
|
17524
17547
|
*/
|
|
17525
17548
|
setEndAsDate(endDate, emit) {
|
|
17526
|
-
this.endAsDate = endDate;
|
|
17549
|
+
this.endAsDate = endDate ? setEndOfDay(endDate) : endDate;
|
|
17527
17550
|
this.mostRecentRangeValue = this.endAsDate;
|
|
17528
17551
|
if (emit) {
|
|
17529
17552
|
this.calciteDatePickerRangeChange.emit({
|
|
@@ -21062,7 +21085,7 @@ class InputDatePicker {
|
|
|
21062
21085
|
}
|
|
21063
21086
|
valueHandler(value) {
|
|
21064
21087
|
if (Array.isArray(value)) {
|
|
21065
|
-
this.valueAsDate = value
|
|
21088
|
+
this.valueAsDate = getValueAsDateRange(value);
|
|
21066
21089
|
this.start = value[0];
|
|
21067
21090
|
this.end = value[1];
|
|
21068
21091
|
}
|
|
@@ -21151,7 +21174,7 @@ class InputDatePicker {
|
|
|
21151
21174
|
isOpen && this.activeHandler(isOpen);
|
|
21152
21175
|
isOpen && this.openHandler(isOpen);
|
|
21153
21176
|
if (Array.isArray(this.value)) {
|
|
21154
|
-
this.valueAsDate = this.value
|
|
21177
|
+
this.valueAsDate = getValueAsDateRange(this.value);
|
|
21155
21178
|
this.start = this.value[0];
|
|
21156
21179
|
this.end = this.value[1];
|
|
21157
21180
|
}
|
|
@@ -21164,7 +21187,7 @@ class InputDatePicker {
|
|
|
21164
21187
|
this.startAsDate = dateFromISO(this.start);
|
|
21165
21188
|
}
|
|
21166
21189
|
if (this.end) {
|
|
21167
|
-
this.endAsDate = dateFromISO(this.end);
|
|
21190
|
+
this.endAsDate = setEndOfDay(dateFromISO(this.end));
|
|
21168
21191
|
}
|
|
21169
21192
|
if (this.min) {
|
|
21170
21193
|
this.minAsDate = dateFromISO(this.min);
|
|
@@ -21244,7 +21267,7 @@ class InputDatePicker {
|
|
|
21244
21267
|
this.startAsDate = dateFromISO(start);
|
|
21245
21268
|
}
|
|
21246
21269
|
endWatcher(end) {
|
|
21247
|
-
this.endAsDate = dateFromISO(end);
|
|
21270
|
+
this.endAsDate = end ? setEndOfDay(dateFromISO(end)) : dateFromISO(end);
|
|
21248
21271
|
}
|
|
21249
21272
|
async loadLocaleData() {
|
|
21250
21273
|
{
|
|
@@ -21314,7 +21337,7 @@ class InputDatePicker {
|
|
|
21314
21337
|
this.end = endDateISO;
|
|
21315
21338
|
this.calciteDatePickerRangeChange.emit({
|
|
21316
21339
|
startDate: this.startAsDate,
|
|
21317
|
-
endDate: date
|
|
21340
|
+
endDate: setEndOfDay(date)
|
|
21318
21341
|
});
|
|
21319
21342
|
}
|
|
21320
21343
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/calcite-components",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.578",
|
|
4
4
|
"description": "Web Components for Esri's Calcite Design System.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@types/sortablejs": "1.13.0",
|
|
103
103
|
"@types/standard-version": "7.0.1",
|
|
104
104
|
"@types/yargs": "17.0.12",
|
|
105
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
105
|
+
"@typescript-eslint/eslint-plugin": "5.36.1",
|
|
106
106
|
"@typescript-eslint/parser": "5.36.1",
|
|
107
107
|
"@whitespace/storybook-addon-html": "5.0.0",
|
|
108
108
|
"autoprefixer": "10.4.8",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"conventional-changelog-cli": "2.2.2",
|
|
116
116
|
"cpy-cli": "^4.0.0",
|
|
117
117
|
"dedent": "0.7.0",
|
|
118
|
-
"eslint": "8.
|
|
118
|
+
"eslint": "8.23.0",
|
|
119
119
|
"eslint-config-prettier": "8.5.0",
|
|
120
120
|
"eslint-plugin-jest": "27.0.1",
|
|
121
121
|
"eslint-plugin-jsdoc": "39.3.6",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.577
|
|
5
|
-
*/
|
|
6
|
-
import{r as t,c as e,h as a,H as i,g as r,F as o}from"./p-3cd0d258.js";import{T as n,c as s,d as c,a as l,b as h,g as d,H as u,s as p,i as f,e as m,n as g,f as w,l as v,h as b}from"./p-1e8c8620.js";import{a as x}from"./p-8fbc2535.js";import{C as y}from"./p-a7ae3d91.js";import{u as k}from"./p-b9e7e494.js";import{i as D}from"./p-e7d52968.js";import{H as z}from"./p-93bae0c7.js";import"./p-12c317e8.js";import"./p-80584e00.js";const _=class{constructor(a){t(this,a),this.calciteDatePickerChange=e(this,"calciteDatePickerChange",6),this.calciteDatePickerRangeChange=e(this,"calciteDatePickerRangeChange",6),this.intlPrevMonth=n.prevMonth,this.intlNextMonth=n.nextMonth,this.intlYear=n.year,this.locale=document.documentElement.lang||"en",this.scale="m",this.range=!1,this.proximitySelectionDisabled=!1,this.keyDownHandler=t=>{"Escape"===t.key&&this.reset()},this.monthHeaderSelectChange=t=>{const e=new Date(t.detail);this.range?("end"===this.activeRange?this.activeEndDate=e:this.activeStartDate=e,this.mostRecentRangeValue=e):this.activeDate=e},this.monthActiveDateChange=t=>{const e=new Date(t.detail);this.range?("end"===this.activeRange?this.activeEndDate=e:this.activeStartDate=e,this.mostRecentRangeValue=e):this.activeDate=e},this.monthHoverChange=t=>{if(!this.startAsDate)return void(this.hoverRange=void 0);const e=new Date(t.detail);if(this.hoverRange={focused:this.activeRange||"start",start:this.startAsDate,end:this.endAsDate},this.proximitySelectionDisabled)this.endAsDate?this.hoverRange=void 0:e<this.startAsDate?this.hoverRange={focused:"start",start:e,end:this.startAsDate}:(this.hoverRange.end=e,this.hoverRange.focused="end");else if(this.endAsDate){const t=s(e,this.startAsDate),a=s(e,this.endAsDate);a>0?(this.hoverRange.end=e,this.hoverRange.focused="end"):t<0||t>a?(this.hoverRange.start=e,this.hoverRange.focused="start"):(this.hoverRange.end=e,this.hoverRange.focused="end")}else e<this.startAsDate?this.hoverRange={focused:"start",start:e,end:this.startAsDate}:(this.hoverRange.end=e,this.hoverRange.focused="end");t.stopPropagation()},this.monthMouseOutChange=()=>{this.hoverRange&&(this.hoverRange=void 0)},this.reset=()=>{var t,e,a,i,r,o;!Array.isArray(this.valueAsDate)&&this.valueAsDate&&(null===(t=this.valueAsDate)||void 0===t?void 0:t.getTime())!==(null===(e=this.activeDate)||void 0===e?void 0:e.getTime())&&(this.activeDate=new Date(this.valueAsDate)),this.startAsDate&&(null===(a=this.startAsDate)||void 0===a?void 0:a.getTime())!==(null===(i=this.activeStartDate)||void 0===i?void 0:i.getTime())&&(this.activeStartDate=new Date(this.startAsDate)),this.endAsDate&&(null===(r=this.endAsDate)||void 0===r?void 0:r.getTime())!==(null===(o=this.activeEndDate)||void 0===o?void 0:o.getTime())&&(this.activeEndDate=new Date(this.endAsDate))},this.monthDateChange=t=>{const e=new Date(t.detail);if(!this.range)return this.value=e?c(e):"",this.valueAsDate=e||null,this.activeDate=e||null,void this.calciteDatePickerChange.emit(e);if(!this.startAsDate||!this.endAsDate&&e<this.startAsDate)this.startAsDate&&this.setEndDate(new Date(this.startAsDate)),"end"==this.activeRange?this.setEndDate(e):this.setStartDate(e);else if(this.endAsDate)if(this.proximitySelectionDisabled)this.setStartDate(e),this.endAsDate=this.activeEndDate=this.end=void 0;else if(this.activeRange)"end"==this.activeRange?this.setEndDate(e):this.setStartDate(e);else{const t=s(e,this.startAsDate),a=s(e,this.endAsDate);0===a||t<0?this.setStartDate(e):0===t||a<0?this.setEndDate(e):t<a?this.setStartDate(e):this.setEndDate(e)}else this.setEndDate(e);this.calciteDatePickerChange.emit(e)}}handleValueAsDate(t){!Array.isArray(t)&&t&&t!==this.activeDate&&(this.activeDate=t)}handleRangeChange(){const{startAsDate:t,endAsDate:e}=this;this.activeEndDate=e,this.activeStartDate=t}onMinChanged(t){t&&(this.minAsDate=l(t))}onMaxChanged(t){t&&(this.maxAsDate=l(t))}connectedCallback(){Array.isArray(this.value)?(this.valueAsDate=this.value.map((t=>l(t))),this.start=this.value[0],this.end=this.value[1]):this.value&&(this.valueAsDate=l(this.value)),this.start&&this.setStartAsDate(l(this.start)),this.end&&this.setEndAsDate(l(this.end)),this.min&&(this.minAsDate=l(this.min)),this.max&&(this.maxAsDate=l(this.max))}async componentWillLoad(){await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max)}render(){var t;const e=h(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate);let r=this.range?this.getActiveStartDate(e,this.minAsDate,this.maxAsDate):this.getActiveDate(e,this.minAsDate,this.maxAsDate);const o=this.range?h(this.endAsDate,this.minAsDate,this.maxAsDate):null,n=this.getActiveEndDate(o,this.minAsDate,this.maxAsDate);return"end"!==this.activeRange&&("end"!==(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)||this.proximitySelectionDisabled&&!o)||!n||(r=n),this.range&&this.mostRecentRangeValue&&(r=this.mostRecentRangeValue),a(i,{onBlur:this.reset,onKeyDown:this.keyDownHandler,role:"application"},this.renderCalendar(r,this.range&&this.activeRange&&"start"===this.activeRange&&o||this.maxAsDate,this.range&&this.activeRange?"start"===this.activeRange?this.minAsDate:e||this.minAsDate:this.minAsDate,e,o))}valueHandler(t){Array.isArray(t)?(this.valueAsDate=t.map((t=>l(t))),this.start=t[0],this.end=t[1]):t&&(this.valueAsDate=l(t),this.start="",this.end="")}startWatcher(t){this.setStartAsDate(l(t))}endWatcher(t){this.setEndAsDate(l(t))}async loadLocaleData(){const{locale:t}=this;this.localeData=await d(t)}renderCalendar(t,e,i,r,o){return this.localeData&&[a("calcite-date-picker-month-header",{activeDate:t,headingLevel:this.headingLevel||u,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,localeData:this.localeData,max:e,min:i,onCalciteDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:"end"===this.activeRange?o:r||new Date}),a("calcite-date-picker-month",{activeDate:t,endDate:this.range?o:void 0,hoverRange:this.hoverRange,localeData:this.localeData,max:e,min:i,onCalciteDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteDatePickerSelect:this.monthDateChange,onCalciteInternalDatePickerHover:this.monthHoverChange,onCalciteInternalDatePickerMouseOut:this.monthMouseOutChange,scale:this.scale,selectedDate:"end"===this.activeRange?o:r,startDate:this.range?r:void 0})]}setStartAsDate(t,e){this.startAsDate=t,this.mostRecentRangeValue=this.startAsDate,e&&this.calciteDatePickerRangeChange.emit({startDate:t,endDate:this.endAsDate})}setEndAsDate(t,e){this.endAsDate=t,this.mostRecentRangeValue=this.endAsDate,e&&this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:t})}setEndDate(t){this.end=t?c(t):"",this.setEndAsDate(t,!0),this.activeEndDate=t||null}setStartDate(t){this.start=t?c(t):"",this.setStartAsDate(t,!0),this.activeStartDate=t||null}getActiveDate(t,e,a){return h(this.activeDate,e,a)||t||h(new Date,e,a)}getActiveStartDate(t,e,a){return h(this.activeStartDate,e,a)||t||h(new Date,e,a)}getActiveEndDate(t,e,a){return h(this.activeEndDate,e,a)||t||h(new Date,e,a)}static get assetsDirs(){return["assets"]}get el(){return r(this)}static get watchers(){return{valueAsDate:["handleValueAsDate"],startAsDate:["handleRangeChange"],endAsDate:["handleRangeChange"],min:["onMinChanged"],max:["onMaxChanged"],value:["valueHandler"],start:["startWatcher"],end:["endWatcher"],locale:["loadLocaleData"]}}};_.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;inline-size:100%;overflow:visible;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);vertical-align:top}:host([scale=s]){max-inline-size:216px}:host([scale=m]){max-inline-size:286px}:host([scale=l]){max-inline-size:398px}";const C=class{constructor(a){t(this,a),this.calciteDaySelect=e(this,"calciteDaySelect",6),this.calciteInternalDayHover=e(this,"calciteInternalDayHover",6),this.disabled=!1,this.currentMonth=!1,this.selected=!1,this.highlighted=!1,this.range=!1,this.startOfRange=!1,this.endOfRange=!1,this.rangeHover=!1,this.active=!1,this.onClick=()=>{!this.disabled&&this.calciteDaySelect.emit()},this.keyDownHandler=t=>{D(t.key)&&(!this.disabled&&this.calciteDaySelect.emit(),t.preventDefault())}}mouseoverHandler(){this.calciteInternalDayHover.emit()}render(){const t=String(this.day).split("").map((t=>this.localeData.numerals[t])).join(""),e=x(this.el);return a(i,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell"},a("div",{class:{"day-v-wrapper":!0,[y.rtl]:"rtl"===e}},a("div",{class:"day-wrapper"},a("span",{class:"day"},a("span",{class:"text"},t)))))}componentDidRender(){k(this,this.isTabbable)}isTabbable(){return this.active}get el(){return r(this)}};C.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:-ms-flexbox;display:flex;min-inline-size:0px;cursor:pointer;-ms-flex-pack:center;justify-content:center;color:var(--calcite-ui-text-3);inline-size:14.2857142857%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.day-v-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}.day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.day{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;line-height:1;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);outline-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background:none;-webkit-box-shadow:0 0 0 2px transparent;box-shadow:0 0 0 2px transparent}.text{margin-block:1px 0px;-webkit-margin-start:0px;margin-inline-start:0px}:host([scale=s]) .day-v-wrapper{padding-block:0.125rem}:host([scale=s]) .day-wrapper{padding:0px}:host([scale=s]) .day{block-size:27px;inline-size:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-block:0.25rem}:host([scale=m]) .day-wrapper{padding-inline:0.25rem}:host([scale=m]) .day{block-size:33px;inline-size:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-block:0.25rem}:host([scale=l]) .day-wrapper{padding-inline:0.25rem}:host([scale=l]) .day{block-size:43px;inline-size:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:focus),:host([active]){outline:2px solid transparent;outline-offset:2px}:host(:focus:not([disabled])) .day{outline:2px solid var(--calcite-ui-brand);outline-offset:2px;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important}:host([range][selected]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([start-of-range]) .day-wrapper{border-start-start-radius:40%;border-end-start-radius:40%}:host([end-of-range]) .day-wrapper{border-start-end-radius:40%;border-end-end-radius:40%}:host([start-of-range]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 4px 0 var(--calcite-ui-foreground-1);box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) :not(.calcite--rtl) .day,:host([end-of-range]) .calcite--rtl .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([end-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -4px 0 var(--calcite-ui-foreground-1);box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day,:host([start-of-range]) .calcite--rtl .day{opacity:1}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([start-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -8px 0 var(--calcite-ui-foreground-1);box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 8px 0 var(--calcite-ui-foreground-1);box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([highlighted]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([highlighted]) .day-wrapper .day{color:var(--calcite-ui-text-1)}:host([highlighted]:not([active]:focus)) .day{border-radius:0px;color:var(--calcite-ui-text-1)}:host([range-hover]:not([selected])) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([range-hover]:not([selected])) .day{border-radius:0px}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-current)), to(var(--calcite-ui-foreground-current)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1))}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[start-of-range].hover--inside-range.focused--end) .day-wrapper,:host(:hover[end-of-range].hover--inside-range.focused--start) .day-wrapper{background-image:none}:host([start-of-range].hover--inside-range.focused--end) .day-wrapper,:host([end-of-range].hover--inside-range.focused--start) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:first-child) .calcite--rtl .day-wrapper,:host([range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:last-child) .calcite--rtl .day-wrapper,:host([range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) .day-wrapper,:host([range-hover]:first-child) .day-wrapper{border-start-start-radius:45%;border-end-start-radius:45%}:host([highlighted]:last-child) .day-wrapper,:host([range-hover]:last-child) .day-wrapper{border-start-end-radius:45%;border-end-end-radius:45%}:host([scale=l][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{border-radius:0px}:host([selected]){outline:2px solid canvasText}:host([selected]) .day{border-radius:0px;background-color:highlight}:host([range][selected]) .day-wrapper,:host([highlighted]) .day-wrapper,:host([range-hover]:not([selected])) .day-wrapper{background-color:highlight}:host([range][selected][start-of-range]) .day-wrapper,:host([range][selected][end-of-range]) .day-wrapper{background-color:canvas}}";const A=class{constructor(a){t(this,a),this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",6),this.calciteInternalDatePickerHover=e(this,"calciteInternalDatePickerHover",6),this.calciteDatePickerActiveDateChange=e(this,"calciteDatePickerActiveDateChange",6),this.calciteInternalDatePickerMouseOut=e(this,"calciteInternalDatePickerMouseOut",6),this.activeDate=new Date,this.keyDownHandler=t=>{if(t.defaultPrevented)return;const e="rtl"===this.el.dir;switch(t.key){case"ArrowUp":t.preventDefault(),this.addDays(-7);break;case"ArrowRight":t.preventDefault(),this.addDays(e?-1:1);break;case"ArrowDown":t.preventDefault(),this.addDays(7);break;case"ArrowLeft":t.preventDefault(),this.addDays(e?1:-1);break;case"PageUp":t.preventDefault(),this.addMonths(-1);break;case"PageDown":t.preventDefault(),this.addMonths(1);break;case"Home":t.preventDefault(),this.activeDate.setDate(1),this.addDays();break;case"End":t.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays();break;case"Enter":case" ":t.preventDefault();break;case"Tab":this.activeFocus=!1}},this.disableActiveFocus=()=>{this.activeFocus=!1},this.dayHover=t=>{const e=t.target;e.disabled?this.calciteInternalDatePickerMouseOut.emit():this.calciteInternalDatePickerHover.emit(e.value),t.stopPropagation()},this.daySelect=t=>{this.calciteDatePickerSelect.emit(t.target.value)}}mouseoutHandler(){this.calciteInternalDatePickerMouseOut.emit()}render(){const t=this.activeDate.getMonth(),e=this.activeDate.getFullYear(),r=this.localeData.weekStart%7,{abbreviated:o,short:n,narrow:s}=this.localeData.days,c="s"===this.scale?s||n||o:n||o||s,l=[...c.slice(r,7),...c.slice(0,r)],h=this.getCurrentMonthDays(t,e),d=this.getPrevMonthdays(t,e,r),u=this.getNextMonthDays(t,e,r),f=[...d.map((a=>{const i=new Date(e,t-1,a);return this.renderDateDay(!1,a,i)})),...h.map((a=>{const i=new Date(e,t,a),r=p(i,this.activeDate);return this.renderDateDay(r,a,i,!0,!0)})),...u.map((a=>{const i=new Date(e,t+1,a);return this.renderDateDay(!1,a,i)}))],m=[];for(let t=0;t<f.length;t+=7)m.push(f.slice(t,t+7));return a(i,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},a("div",{class:"calender",role:"grid"},a("div",{class:"week-headers",role:"row"},l.map((t=>a("span",{class:"week-header",role:"columnheader"},t)))),m.map((t=>a("div",{class:"week-days",role:"row"},t)))))}addMonths(t){const e=new Date(this.activeDate);e.setMonth(this.activeDate.getMonth()+t),this.calciteDatePickerActiveDateChange.emit(h(e,this.min,this.max)),this.activeFocus=!0}addDays(t=0){const e=new Date(this.activeDate);e.setDate(this.activeDate.getDate()+t),this.calciteDatePickerActiveDateChange.emit(h(e,this.min,this.max)),this.activeFocus=!0}getPrevMonthdays(t,e,a){const i=new Date(e,t,0),r=i.getDate(),o=[];if(i.getDay()-6===a)return o;for(let t=i.getDay()-a;t>=0;t--)o.push(r-t);return o}getCurrentMonthDays(t,e){const a=new Date(e,t+1,0).getDate(),i=[];for(let t=0;t<a;t++)i.push(t+1);return i}getNextMonthDays(t,e,a){const i=new Date(e,t+1,0).getDay(),r=[];if(i===(a+6)%7)return r;for(let t=0;t<(6-(i-a))%7;t++)r.push(t+1);return r}betweenSelectedRange(t){return!(!(this.startDate&&this.endDate&&t>this.startDate&&t<this.endDate)||this.isRangeHover(t))}isSelected(t){return!!(p(t,this.selectedDate)||this.startDate&&p(t,this.startDate)||this.endDate&&p(t,this.endDate))}isStartOfRange(t){return!(!this.startDate||p(this.startDate,this.endDate)||!p(this.startDate,t)||this.isEndOfRange(t))}isEndOfRange(t){return!!(this.endDate&&!p(this.startDate,this.endDate)&&p(this.endDate,t)||!this.endDate&&this.hoverRange&&p(this.startDate,this.hoverRange.end)&&p(t,this.hoverRange.end))}renderDateDay(t,e,i,r,o){var n;const s=this.isFocusedOnStart(),c=this.isHoverInRange()||!this.endDate&&this.hoverRange&&p(null===(n=this.hoverRange)||void 0===n?void 0:n.end,this.startDate);return a("calcite-date-picker-day",{active:t,class:{"hover--inside-range":this.startDate&&c,"hover--outside-range":this.startDate&&!c,"focused--start":s,"focused--end":!s},currentMonth:r,day:e,disabled:!f(i,this.min,this.max),endOfRange:this.isEndOfRange(i),highlighted:this.betweenSelectedRange(i),key:i.toDateString(),localeData:this.localeData,onCalciteDaySelect:this.daySelect,onCalciteInternalDayHover:this.dayHover,range:!!this.startDate&&!!this.endDate&&!p(this.startDate,this.endDate),rangeHover:this.isRangeHover(i),ref:e=>{o&&t&&this.activeFocus&&(null==e||e.focus())},scale:this.scale,selected:this.isSelected(i),startOfRange:this.isStartOfRange(i),value:i})}isFocusedOnStart(){var t;return"start"===(null===(t=this.hoverRange)||void 0===t?void 0:t.focused)}isHoverInRange(){if(!this.hoverRange)return!1;const{start:t,end:e}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||e<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)}isRangeHover(t){if(!this.hoverRange)return!1;const{start:e,end:a}=this.hoverRange,i=this.isFocusedOnStart(),r=this.isHoverInRange(),o=r&&(!i&&t>this.startDate&&(t<a||p(t,a))||i&&t<this.endDate&&(t>e||p(t,e))),n=!r&&(!i&&t>=this.endDate&&(t<a||p(t,a))||i&&(t<this.startDate||this.endDate&&p(t,this.startDate))&&(t>e||p(t,e)));return o||n}get el(){return r(this)}};A.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.calender{-webkit-margin-after:0.25rem;margin-block-end:0.25rem}.week-headers{display:-ms-flexbox;display:flex;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;padding-inline:0.25rem}.week-header{text-align:center;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-3);inline-size:14.2857142857%}:host([scale=s]) .week-header{padding-inline:0px;padding-block:0.5rem 0.75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .week-header{padding-inline:0px;padding-block:0.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]) .week-header{padding-inline:0px;padding-block:1rem 1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}.week-days{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding-block:0px;padding-inline:6px}.week-days:focus{outline:2px solid transparent;outline-offset:2px}";const P=class{constructor(a){t(this,a),this.calciteDatePickerSelect=e(this,"calciteDatePickerSelect",6),this.onYearKey=t=>{const e=this.parseCalendarYear(t.target.value);switch(t.key){case"ArrowDown":t.preventDefault(),this.setYear({localizedYear:e,offset:-1});break;case"ArrowUp":t.preventDefault(),this.setYear({localizedYear:e,offset:1})}},this.onYearChange=t=>{this.setYear({localizedYear:this.parseCalendarYear(t.target.value)})},this.onYearInput=t=>{this.setYear({localizedYear:this.parseCalendarYear(t.target.value),commit:!1})},this.prevMonthClick=t=>{this.handleArrowClick(t,this.prevMonthDate)},this.prevMonthKeydown=t=>{D(t.key)&&this.prevMonthClick(t)},this.nextMonthClick=t=>{this.handleArrowClick(t,this.nextMonthDate)},this.nextMonthKeydown=t=>{D(t.key)&&this.nextMonthClick(t)},this.handleArrowClick=(t,e)=>{t.preventDefault(),this.calciteDatePickerSelect.emit(e)}}connectedCallback(){this.setNextPrevMonthDates()}render(){return a("div",{class:"header"},this.renderContent())}renderContent(){var t;if(!this.activeDate||!this.localeData)return null;const e=this.activeDate.getMonth(),{months:i,unitOrder:r}=this.localeData,n=(i.wide||i.narrow||i.abbreviated)[e],s=this.formatCalendarYear(this.activeDate.getFullYear().toString()),c="l"===this.scale?"m":"s",l=m(r),h=l.indexOf("y")<l.indexOf("m"),d=null===(t=this.localeData.year)||void 0===t?void 0:t.suffix;return a(o,null,a("a",{"aria-disabled":(this.prevMonthDate.getMonth()===e).toString(),"aria-label":this.intlPrevMonth,class:"chevron",href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===e?-1:0},a("calcite-icon",{"flip-rtl":!0,icon:"chevron-left",scale:c})),a("div",{class:{text:!0,"text--reverse":h}},a(z,{class:"month",level:this.headingLevel},n),a("span",{class:"year-wrap"},a("input",{"aria-label":this.intlYear,class:{year:!0,"year--suffix":!!d},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.onYearChange,onInput:this.onYearInput,onKeyDown:this.onYearKey,pattern:"\\d*",ref:t=>this.yearInput=t,type:"text",value:s}),d&&a("span",{class:"suffix"},a("span",{"aria-hidden":"true",class:"suffix__invisible"},s)," "+d))),a("a",{"aria-disabled":(this.nextMonthDate.getMonth()===e).toString(),"aria-label":this.intlNextMonth,class:"chevron",href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===e?-1:0},a("calcite-icon",{"flip-rtl":!0,icon:"chevron-right",scale:c})))}setNextPrevMonthDates(){this.activeDate&&(this.nextMonthDate=h(g(this.activeDate),this.min,this.max),this.prevMonthDate=h(w(this.activeDate),this.min,this.max))}formatCalendarYear(t){const{localeData:e}=this,a="buddhist"===e["default-calendar"]?543:0;return v(b(t,e)+a,e)}parseCalendarYear(t){const{localeData:e}=this,a="buddhist"===e["default-calendar"]?543:0;return v(b(t,e)-a,e)}getInRangeDate({localizedYear:t,offset:e=0}){const{min:a,max:i,activeDate:r,localeData:o}=this,n=b(t,o),s=n.toString().length,c=!isNaN(n)&&n+e,l=c&&(!a||a.getFullYear()<=c)&&(!i||i.getFullYear()>=c);if(c&&l&&s===t.length){const t=new Date(r);return t.setFullYear(c),h(t,a,i)}}setYear({localizedYear:t,commit:e=!0,offset:a=0}){const{yearInput:i,activeDate:r}=this,o=this.getInRangeDate({localizedYear:t,offset:a});o&&this.calciteDatePickerSelect.emit(o),e&&(i.value=this.formatCalendarYear((o||r).getFullYear().toString()))}get el(){return r(this)}static get watchers(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}}};P.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding-block:0px;padding-inline:0.25rem}:host([scale=s]) .text{margin-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .chevron{block-size:2.25rem}:host([scale=m]) .text{margin-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .chevron{block-size:3rem}:host([scale=l]) .text{margin-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .chevron{block-size:3.5rem}.chevron{margin-inline:-0.25rem;-webkit-box-sizing:content-box;box-sizing:content-box;display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-inline:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inline-size:14.2857142857%}.chevron:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.chevron:hover,.chevron:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{margin-block:auto;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-align:center;line-height:1}.text-nreverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.month,.year,.suffix{margin-inline:0.25rem;margin-block:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}.year{position:relative;inline-size:3rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent}.year:hover{-webkit-transition-duration:100ms;transition-duration:100ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:outline-color;transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}.year:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.year--suffix{inline-size:4rem;text-align:start}.year-wrap{position:relative}.suffix{position:absolute;inset-block-start:0px;inset-inline-start:0px;inline-size:4rem;white-space:nowrap;text-align:start}.suffix__invisible{visibility:hidden}";export{_ as calcite_date_picker,C as calcite_date_picker_day,A as calcite_date_picker_month,P as calcite_date_picker_month_header}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.577
|
|
5
|
-
*/
|
|
6
|
-
import{a as n}from"./p-3cd0d258.js";import{a as t}from"./p-12c317e8.js";const e={},a={};async function r(o){const s=function(n=""){return t.indexOf(n)>-1?n:((n=n.toLowerCase()).includes("-")&&(n=n.replace(/(\w+)-(\w+)/,((n,t,e)=>`${t}-${e.toUpperCase()}`)),t.includes(n)||(n=n.split("-")[0])),t.includes(n)?n:"en")}(o);if(e[s])return e[s];a[s]||(a[s]=fetch(n(`./assets/date-picker/nls/${s}.json`)).then((n=>n.json())).catch((()=>(console.error(`Translations for "${s}" not found or invalid, falling back to english`),r("en")))));const i=await a[s];return e[s]=i,i}function o(n,t,e){const a=n.getTime(),r=!(t instanceof Date)||a>=t.getTime(),o=!(e instanceof Date)||a<=e.getTime();return r&&o}function s(n,t,e){if(!(n instanceof Date))return null;const a=n.getTime(),r=t instanceof Date&&a<t.getTime(),o=e instanceof Date&&a>e.getTime();return r?t:o?e:n}function i(n){if(n instanceof Date)return n;if(!n||"string"!=typeof n)return null;const t=n.split(/[: T-]/).map(parseFloat),e=new Date(t[0],(t[1]||1)-1,t[2]||1);if(e.setFullYear(t[0]),isNaN(e.getTime()))throw new Error(`Invalid ISO 8601 date: "${n}"`);return e}function c(n){return"string"==typeof n?n:n instanceof Date?new Date(n.getTime()-6e4*n.getTimezoneOffset()).toISOString().split("T")[0]:""}function u(n,t){return n instanceof Date&&t instanceof Date&&n.getDate()===t.getDate()&&n.getMonth()===t.getMonth()&&n.getFullYear()===t.getFullYear()}function f(n){const t=n.getMonth(),e=new Date(n);return e.setMonth(t-1),t===e.getMonth()?new Date(n.getFullYear(),t,0):e}function p(n){const t=n.getMonth(),e=new Date(n);return e.setMonth(t+1),(t+2)%7==e.getMonth()%7?new Date(n.getFullYear(),t+2,0):e}function D(n,t){return String(n).split("").map((n=>t.numerals[n])).join("")}function l(n,t){return parseInt(n.split("").map((n=>"0123456789"[t.numerals.indexOf(n)])).filter((n=>n)).join(""))}function d(n,t){const{separator:e,unitOrder:a}=t,r=w(a),o=function(n=""){return n.replace(/[\u0660-\u0669]/g,(n=>n.charCodeAt(0)-1632)).replace(/[\u06f0-\u06f9]/g,(n=>n.charCodeAt(0)-1776))}(n).split(e);return{day:parseInt(o[r.indexOf("d")]),month:parseInt(o[r.indexOf("m")])-1,year:parseInt(o[r.indexOf("y")])}}function w(n){const t=n.toLowerCase();return["d","m","y"].sort(((n,e)=>t.indexOf(n)-t.indexOf(e)))}function h(n,t){return(n.getTime()-t.getTime())/864e5}const m=2,g={nextMonth:"Next month",prevMonth:"Previous month",year:"Year"};export{m as H,g as T,i as a,s as b,h as c,c as d,w as e,f,r as g,l as h,o as i,D as l,p as n,d as p,u as s}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.577
|
|
5
|
-
*/
|
|
6
|
-
System.register(["./p-f9b9cd13.system.js","./p-42ee29e7.system.js"],(function(e){"use strict";var t,n;return{setters:[function(e){t=e.f},function(e){n=e.c}],execute:function(){e({c:i,d:o});var r=new Set;var c;var s={childList:true};function i(e){if(!c){c=n("mutation",f)}c.observe(e.el,s)}function o(e){r.delete(e.el);f(c.takeRecords());c.disconnect();for(var t=0,n=r.entries();t<n.length;t++){var i=n[t][0];c.observe(i,s)}}function f(e){e.forEach((function(e){var n=e.target;t(n)}))}}}}));
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.577
|
|
5
|
-
*/
|
|
6
|
-
import{d as e,a as t}from"./p-a7ae3d91.js";function n(){const{classList:n}=document.body,o=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>n.contains(e)||n.contains(t)&&o?"dark":"light",a=e=>document.body.dispatchEvent(new CustomEvent("calciteThemeChange",{bubbles:!0,detail:{theme:e}})),c=e=>{s!==e&&a(e),s=e};let s=r();a(s),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(e=>c(e.matches?"dark":"light"))),new MutationObserver((()=>c(r()))).observe(document.body,{attributes:!0,attributeFilter:["class"]})}const o=Function("try {return this===window;}catch(e){ return false;}"),r=function(){o()&&("interactive"===document.readyState?n():document.addEventListener("DOMContentLoaded",(()=>n()),{once:!0}))};export{r as g}
|