@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
|
@@ -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
|
/**
|
|
7
7
|
* This utility ensures observers are created only for browser contexts.
|
|
@@ -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
|
const componentToTransitionListeners = new WeakMap();
|
|
7
7
|
function transitionStart(event) {
|
|
@@ -1,68 +1,10 @@
|
|
|
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
|
-
import { a as getAssetPath } from './index-
|
|
7
|
-
import { a as locales } from './locale-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Get supported locale code from raw user input
|
|
11
|
-
* Exported for testing purposes.
|
|
12
|
-
*
|
|
13
|
-
* @param lang
|
|
14
|
-
* @private
|
|
15
|
-
*/
|
|
16
|
-
function getSupportedLocale(lang = "") {
|
|
17
|
-
if (locales.indexOf(lang) > -1) {
|
|
18
|
-
return lang;
|
|
19
|
-
}
|
|
20
|
-
lang = lang.toLowerCase();
|
|
21
|
-
if (lang.includes("-")) {
|
|
22
|
-
lang = lang.replace(/(\w+)-(\w+)/, (_match, language, region) => `${language}-${region.toUpperCase()}`);
|
|
23
|
-
if (!locales.includes(lang)) {
|
|
24
|
-
lang = lang.split("-")[0];
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return locales.includes(lang) ? lang : "en";
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* CLDR cache.
|
|
31
|
-
* Exported for testing purposes.
|
|
32
|
-
*
|
|
33
|
-
* @private
|
|
34
|
-
*/
|
|
35
|
-
const translationCache = {};
|
|
36
|
-
/**
|
|
37
|
-
* CLDR request cache.
|
|
38
|
-
* Exported for testing purposes.
|
|
39
|
-
*
|
|
40
|
-
* @private
|
|
41
|
-
*/
|
|
42
|
-
const requestCache = {};
|
|
43
|
-
/**
|
|
44
|
-
* Fetch calendar data for a given locale from list of supported languages
|
|
45
|
-
*
|
|
46
|
-
* @param lang
|
|
47
|
-
* @public
|
|
48
|
-
*/
|
|
49
|
-
async function getLocaleData(lang) {
|
|
50
|
-
const locale = getSupportedLocale(lang);
|
|
51
|
-
if (translationCache[locale]) {
|
|
52
|
-
return translationCache[locale];
|
|
53
|
-
}
|
|
54
|
-
if (!requestCache[locale]) {
|
|
55
|
-
requestCache[locale] = fetch(getAssetPath(`./assets/date-picker/nls/${locale}.json`))
|
|
56
|
-
.then((resp) => resp.json())
|
|
57
|
-
.catch(() => {
|
|
58
|
-
console.error(`Translations for "${locale}" not found or invalid, falling back to english`);
|
|
59
|
-
return getLocaleData("en");
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
const data = await requestCache[locale];
|
|
63
|
-
translationCache[locale] = data;
|
|
64
|
-
return data;
|
|
65
|
-
}
|
|
6
|
+
import { a as getAssetPath } from './index-0d07e25e.js';
|
|
7
|
+
import { a as locales } from './locale-cf9ea7d3.js';
|
|
66
8
|
|
|
67
9
|
/**
|
|
68
10
|
* Check if date is within a min and max
|
|
@@ -105,8 +47,9 @@ function dateFromRange(date, min, max) {
|
|
|
105
47
|
* TODO: handle time when time of day UI is added
|
|
106
48
|
*
|
|
107
49
|
* @param iso8601
|
|
50
|
+
* @param isEndDate
|
|
108
51
|
*/
|
|
109
|
-
function dateFromISO(iso8601) {
|
|
52
|
+
function dateFromISO(iso8601, isEndDate = false) {
|
|
110
53
|
if (iso8601 instanceof Date) {
|
|
111
54
|
return iso8601;
|
|
112
55
|
}
|
|
@@ -119,6 +62,9 @@ function dateFromISO(iso8601) {
|
|
|
119
62
|
if (isNaN(date.getTime())) {
|
|
120
63
|
throw new Error(`Invalid ISO 8601 date: "${iso8601}"`);
|
|
121
64
|
}
|
|
65
|
+
if (isEndDate) {
|
|
66
|
+
return setEndOfDay(date);
|
|
67
|
+
}
|
|
122
68
|
return date;
|
|
123
69
|
}
|
|
124
70
|
/**
|
|
@@ -252,6 +198,82 @@ function getDaysDiff(date1, date2) {
|
|
|
252
198
|
const ts2 = date2.getTime();
|
|
253
199
|
return (ts1 - ts2) / (1000 * 3600 * 24);
|
|
254
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* Set time of the day to the end.
|
|
203
|
+
*
|
|
204
|
+
* @param {Date} date Date.
|
|
205
|
+
* @returns {Date} Date with time set to end of day .
|
|
206
|
+
*/
|
|
207
|
+
function setEndOfDay(date) {
|
|
208
|
+
date.setHours(23, 59, 59, 999);
|
|
209
|
+
return date;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Get supported locale code from raw user input
|
|
214
|
+
* Exported for testing purposes.
|
|
215
|
+
*
|
|
216
|
+
* @param lang
|
|
217
|
+
* @private
|
|
218
|
+
*/
|
|
219
|
+
function getSupportedLocale(lang = "") {
|
|
220
|
+
if (locales.indexOf(lang) > -1) {
|
|
221
|
+
return lang;
|
|
222
|
+
}
|
|
223
|
+
lang = lang.toLowerCase();
|
|
224
|
+
if (lang.includes("-")) {
|
|
225
|
+
lang = lang.replace(/(\w+)-(\w+)/, (_match, language, region) => `${language}-${region.toUpperCase()}`);
|
|
226
|
+
if (!locales.includes(lang)) {
|
|
227
|
+
lang = lang.split("-")[0];
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
return locales.includes(lang) ? lang : "en";
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* CLDR cache.
|
|
234
|
+
* Exported for testing purposes.
|
|
235
|
+
*
|
|
236
|
+
* @private
|
|
237
|
+
*/
|
|
238
|
+
const translationCache = {};
|
|
239
|
+
/**
|
|
240
|
+
* CLDR request cache.
|
|
241
|
+
* Exported for testing purposes.
|
|
242
|
+
*
|
|
243
|
+
* @private
|
|
244
|
+
*/
|
|
245
|
+
const requestCache = {};
|
|
246
|
+
/**
|
|
247
|
+
* Fetch calendar data for a given locale from list of supported languages
|
|
248
|
+
*
|
|
249
|
+
* @param lang
|
|
250
|
+
* @public
|
|
251
|
+
*/
|
|
252
|
+
async function getLocaleData(lang) {
|
|
253
|
+
const locale = getSupportedLocale(lang);
|
|
254
|
+
if (translationCache[locale]) {
|
|
255
|
+
return translationCache[locale];
|
|
256
|
+
}
|
|
257
|
+
if (!requestCache[locale]) {
|
|
258
|
+
requestCache[locale] = fetch(getAssetPath(`./assets/date-picker/nls/${locale}.json`))
|
|
259
|
+
.then((resp) => resp.json())
|
|
260
|
+
.catch(() => {
|
|
261
|
+
console.error(`Translations for "${locale}" not found or invalid, falling back to english`);
|
|
262
|
+
return getLocaleData("en");
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
const data = await requestCache[locale];
|
|
266
|
+
translationCache[locale] = data;
|
|
267
|
+
return data;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Maps value to valueAsDate
|
|
271
|
+
*
|
|
272
|
+
* @param value
|
|
273
|
+
*/
|
|
274
|
+
function getValueAsDateRange(value) {
|
|
275
|
+
return value.map((v, index) => dateFromISO(v, index === 1));
|
|
276
|
+
}
|
|
255
277
|
|
|
256
278
|
const HEADING_LEVEL = 2;
|
|
257
279
|
const TEXT = {
|
|
@@ -260,4 +282,4 @@ const TEXT = {
|
|
|
260
282
|
year: "Year"
|
|
261
283
|
};
|
|
262
284
|
|
|
263
|
-
export { HEADING_LEVEL as H, TEXT as T, dateFromISO as a, dateFromRange as b,
|
|
285
|
+
export { HEADING_LEVEL as H, TEXT as T, dateFromISO as a, dateFromRange as b, getLocaleData as c, dateToISO as d, sameDate as e, getDaysDiff as f, getValueAsDateRange as g, getOrder as h, inRange as i, prevMonth as j, parseNumber as k, localizeNumber as l, nextMonth as n, parseDateString as p, setEndOfDay as s };
|
|
@@ -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
|
const SLOTS = {
|
|
7
7
|
menuActions: "menu-actions",
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
-
import { f as focusElement, g as getSlotted, t as toAriaBoolean } from './dom-
|
|
7
|
-
import { g as getRoundRobinIndex } from './array-
|
|
8
|
-
import { d as debounce } from './debounce-
|
|
9
|
-
import { h, H as Host } from './index-
|
|
6
|
+
import { f as focusElement, g as getSlotted, t as toAriaBoolean } from './dom-644aa911.js';
|
|
7
|
+
import { g as getRoundRobinIndex } from './array-3a18051b.js';
|
|
8
|
+
import { d as debounce } from './debounce-663977f3.js';
|
|
9
|
+
import { h, H as Host } from './index-0d07e25e.js';
|
|
10
10
|
|
|
11
11
|
const CSS$2 = {
|
|
12
12
|
heading: "heading",
|
|
@@ -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
|
const autoTheme = "calcite-theme-auto";
|
|
7
7
|
const darkTheme = "calcite-theme-dark";
|
|
@@ -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
|
function rgbToHex(color) {
|
|
7
7
|
const { r, g, b } = color;
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import{f as forceUpdate,h}from"./index-
|
|
6
|
+
import{f as forceUpdate,h}from"./index-0d07e25e.js";import{a as getElementDir}from"./dom-644aa911.js";import{S as SLOTS}from"./resources-609086e6.js";import{S as SLOTS$1}from"./resources-a1a27263.js";var overflowActionsDebounceInMs=150;var groupBufferPx=2;var getAverage=function(e){return e.reduce((function(e,t){return e+t}),0)/e.length};var geActionDimensions=function(e){var t=e===null||e===void 0?void 0:e.length;return{actionWidth:t?getAverage(e.map((function(e){return e.clientWidth||0}))):0,actionHeight:t?getAverage(e.map((function(e){return e.clientHeight||0}))):0}};var getMaxActionCount=function(e){var t=e.width,n=e.actionWidth,o=e.layout,r=e.height,i=e.actionHeight,a=e.groupCount;var c=o==="horizontal"?t:r;var l=o==="horizontal"?n:i;return Math.floor((c-a*groupBufferPx)/l)};var getOverflowCount=function(e){var t=e.layout,n=e.actionCount,o=e.actionWidth,r=e.width,i=e.actionHeight,a=e.height,c=e.groupCount;return Math.max(n-getMaxActionCount({width:r,actionWidth:o,layout:t,height:a,actionHeight:i,groupCount:c}),0)};var queryActions=function(e){return Array.from(e.querySelectorAll("calcite-action")).filter((function(e){return e.closest("calcite-action-menu")?e.slot===SLOTS.trigger:true}))};var overflowActions=function(e){var t=e.actionGroups,n=e.expanded,o=e.overflowCount;var r=o;t.reverse().forEach((function(e){var t=0;var o=queryActions(e).reverse();o.forEach((function(e){if(e.slot===SLOTS$1.menuActions){e.removeAttribute("slot");e.textEnabled=n}}));if(r>0){o.some((function(e){var n=o.filter((function(e){return!e.slot}));if(n.length>1&&o.length>2&&!e.closest("calcite-action-menu")){e.textEnabled=true;e.setAttribute("slot",SLOTS$1.menuActions);t++;if(t>1){r--}}return r<1}))}forceUpdate(e)}))};var ICONS={chevronsLeft:"chevrons-left",chevronsRight:"chevrons-right"};function getCalcitePosition(e,t){var n;return e||((n=t.closest("calcite-shell-panel"))===null||n===void 0?void 0:n.position)||"start"}function toggleChildActionText(e){var t=e.parent,n=e.expanded;queryActions(t).filter((function(e){return e.slot!==SLOTS$1.menuActions})).forEach((function(e){return e.textEnabled=n}));t.querySelectorAll("calcite-action-group, calcite-action-menu").forEach((function(e){return e.expanded=n}))}var setTooltipReference=function(e){var t=e.tooltip,n=e.referenceElement,o=e.expanded,r=e.ref;if(t){t.referenceElement=!o&&n?n:null}if(r){r(n)}return n};var ExpandToggle=function(e){var t=e.expanded,n=e.intlExpand,o=e.intlCollapse,r=e.toggle,i=e.el,a=e.position,c=e.tooltip,l=e.ref,u=e.scale;var s=getElementDir(i)==="rtl";var f=t?o:n;var v=[ICONS.chevronsLeft,ICONS.chevronsRight];if(s){v.reverse()}var g=getCalcitePosition(a,i)==="end";var d=g?v[1]:v[0];var p=g?v[0]:v[1];var m=h("calcite-action",{icon:t?d:p,onClick:r,ref:function(e){return setTooltipReference({tooltip:c,referenceElement:e,expanded:t,ref:l})},scale:u,text:f,textEnabled:t});return m};export{ExpandToggle as E,overflowActions as a,getOverflowCount as b,geActionDimensions as g,overflowActionsDebounceInMs as o,queryActions as q,toggleChildActionText as t};
|
|
@@ -2,5 +2,5 @@ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(n)
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
* v1.0.0-next.
|
|
6
|
-
*/import{h}from"./index-
|
|
5
|
+
* v1.0.0-next.578
|
|
6
|
+
*/import{h}from"./index-0d07e25e.js";function constrainHeadingLevel(n){return Math.min(Math.max(Math.ceil(n),1),6)}var Heading=function(n,e){var a="h".concat(n.level);delete n.level;return h(a,__assign({},n),e)};export{Heading as H,constrainHeadingLevel as c};
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import{d as darkTheme,a as autoTheme}from"./resources-
|
|
6
|
+
import{d as darkTheme,a as autoTheme}from"./resources-de665b41.js";function initThemeChangeEvent(){var e=document.body.classList;var t=window.matchMedia("(prefers-color-scheme: dark)").matches;var n=function(){return e.contains(darkTheme)||e.contains(autoTheme)&&t?"dark":"light"};var r=function(e){return document.body.dispatchEvent(new CustomEvent("calciteThemeChange",{bubbles:true,detail:{theme:e}}))};var a=function(e){i!==e&&r(e);i=e};var i=n();r(i);window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(function(e){return a(e.matches?"dark":"light")}));new MutationObserver((function(){return a(n())})).observe(document.body,{attributes:true,attributeFilter:["class"]})}function appGlobalScript(){if(isBrowser()){if(document.readyState==="interactive"){initThemeChangeEvent()}else{document.addEventListener("DOMContentLoaded",(function(){return initThemeChangeEvent()}),{once:true})}}}var isBrowser=new Function("try {return this===window;}catch(e){ return false;}");var globalScripts=appGlobalScript;export{globalScripts as g};
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
function getRoundRobinIndex(n,e){return(n+e)%e}export{getRoundRobinIndex as g};
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import{r as registerInstance,c as createEvent,h,g as getElement,H as Host}from"./index-bb8efe5f.js";import{d as getElementProp,g as getSlotted,a as getElementDir,t as toAriaBoolean}from"./dom-6444a4b6.js";import{c as connectConditionalSlotComponent,d as disconnectConditionalSlotComponent}from"./conditionalSlot-e14190e8.js";import{C as CSS_UTILITY}from"./resources-cd1c2cc8.js";import"./guid-e95ed36b.js";import"./observers-7eb0f15e.js";var accordionCss="@-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([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-inline-size:100%;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}.accordion--transparent{--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}.accordion--minimal{--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0}.accordion{border-width:1px;border-block-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2)}";var Accordion=function(){function t(t){registerInstance(this,t);this.calciteInternalAccordionChange=createEvent(this,"calciteInternalAccordionChange",6);this.appearance="solid";this.iconPosition="end";this.iconType="chevron";this.scale="m";this.selectionMode="multi";this.items=[];this.sorted=false;this.sortItems=function(t){return t.sort((function(t,i){return t.position-i.position})).map((function(t){return t.item}))}}t.prototype.componentDidLoad=function(){if(!this.sorted){this.items=this.sortItems(this.items);this.sorted=true}};t.prototype.render=function(){var t=this.appearance==="transparent";var i=this.appearance==="minimal";return h("div",{class:{"accordion--transparent":t,"accordion--minimal":i,accordion:!t&&!i}},h("slot",null))};t.prototype.calciteInternalAccordionItemKeyEvent=function(t){var i=t.detail.item;var e=t.detail.parent;if(this.el===e){var n=i.key;var a=t.target;var o=this.itemIndex(a)===0;var c=this.itemIndex(a)===this.items.length-1;switch(n){case"ArrowDown":if(c){this.focusFirstItem()}else{this.focusNextItem(a)}break;case"ArrowUp":if(o){this.focusLastItem()}else{this.focusPrevItem(a)}break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem();break}}t.stopPropagation()};t.prototype.registerCalciteAccordionItem=function(t){var i={item:t.target,parent:t.detail.parent,position:t.detail.position};if(this.el===i.parent){this.items.push(i)}t.stopPropagation()};t.prototype.updateActiveItemOnChange=function(t){this.requestedAccordionItem=t.detail.requestedAccordionItem;this.calciteInternalAccordionChange.emit({requestedAccordionItem:this.requestedAccordionItem});t.stopPropagation()};t.prototype.focusFirstItem=function(){var t=this.items[0];this.focusElement(t)};t.prototype.focusLastItem=function(){var t=this.items[this.items.length-1];this.focusElement(t)};t.prototype.focusNextItem=function(t){var i=this.itemIndex(t);var e=this.items[i+1]||this.items[0];this.focusElement(e)};t.prototype.focusPrevItem=function(t){var i=this.itemIndex(t);var e=this.items[i-1]||this.items[this.items.length-1];this.focusElement(e)};t.prototype.itemIndex=function(t){return this.items.indexOf(t)};t.prototype.focusElement=function(t){var i=t;i===null||i===void 0?void 0:i.focus()};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Accordion.style=accordionCss;var SLOTS={actionsStart:"actions-start",actionsEnd:"actions-end"};var CSS={icon:"icon",header:"header",headerContent:"header-content",actionsStart:"actions-start",actionsEnd:"actions-end",headerText:"header-text",heading:"heading",description:"description",expandIcon:"expand-icon",content:"content"};var accordionItemCss="@-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}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .header-content{outline-color:transparent}:host(:focus) .header-content{outline:2px solid transparent;outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([expanded]){color:var(--calcite-ui-text-1)}:host([expanded]) .content{display:block;color:var(--calcite-ui-text-1)}:host([expanded]) .header{border-block-end-color:transparent}:host .header{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch}:host .icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-end);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}.content{padding:var(--calcite-accordion-item-padding)}:host .content,:host .header{-webkit-border-after:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2));border-block-end:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .content{display:none;-webkit-padding-before:0px;padding-block-start:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .expand-icon{color:var(--calcite-ui-text-3);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-end);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([expanded]) .calcite--rtl .expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .header-text{margin-block:0px;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;padding-block:0px;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .heading,:host .description{display:-ms-flexbox;display:flex;inline-size:100%}:host .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .description{-webkit-margin-before:0.25rem;margin-block-start:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .heading,:host(:hover) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:hover) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:hover) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:hover) .description{color:var(--calcite-ui-text-2)}:host(:focus) .heading,:host(:active) .heading,:host([expanded]) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:active) .icon,:host([expanded]) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:active) .expand-icon,:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:active) .description,:host([expanded]) .description{color:var(--calcite-ui-text-2)}.header-content{-ms-flex-positive:1;flex-grow:1;cursor:pointer;padding:var(--calcite-accordion-item-padding);-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}.actions-start,.actions-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (forced-colors: active){:host([expanded]) .header{-webkit-border-after:none;border-block-end:none}:host([expanded]) .heading{font-weight:bolder}:host(:hover) .heading,:host(:focus) .heading{text-decoration:underline}}";var AccordionItem=function(){function t(t){var i=this;registerInstance(this,t);this.calciteInternalAccordionItemKeyEvent=createEvent(this,"calciteInternalAccordionItemKeyEvent",6);this.calciteInternalAccordionItemSelect=createEvent(this,"calciteInternalAccordionItemSelect",6);this.calciteInternalAccordionItemClose=createEvent(this,"calciteInternalAccordionItemClose",6);this.calciteInternalAccordionItemRegister=createEvent(this,"calciteInternalAccordionItemRegister",6);this.active=false;this.expanded=false;this.iconPosition="end";this.itemHeaderClickHandler=function(){return i.emitRequestedItem()}}t.prototype.activeHandler=function(t){this.expanded=t};t.prototype.expandedHandler=function(t){this.active=t};t.prototype.connectedCallback=function(){this.parent=this.el.parentElement;this.selectionMode=getElementProp(this.el,"selection-mode","multi");this.iconType=getElementProp(this.el,"icon-type","chevron");this.iconPosition=getElementProp(this.el,"icon-position",this.iconPosition);var t=this.active||this.expanded;if(t){this.activeHandler(t);this.expandedHandler(t)}connectConditionalSlotComponent(this)};t.prototype.componentDidLoad=function(){this.itemPosition=this.getItemPosition();this.calciteInternalAccordionItemRegister.emit({parent:this.parent,position:this.itemPosition})};t.prototype.disconnectedCallback=function(){disconnectConditionalSlotComponent(this)};t.prototype.renderActionsStart=function(){var t=this.el;return getSlotted(t,SLOTS.actionsStart)?h("div",{class:CSS.actionsStart},h("slot",{name:SLOTS.actionsStart})):null};t.prototype.renderActionsEnd=function(){var t=this.el;return getSlotted(t,SLOTS.actionsEnd)?h("div",{class:CSS.actionsEnd},h("slot",{name:SLOTS.actionsEnd})):null};t.prototype.render=function(){var t,i;var e=getElementDir(this.el);var n=h("calcite-icon",{class:CSS.icon,icon:this.icon,scale:"s"});return h(Host,null,h("div",{class:(t={},t["icon-position--".concat(this.iconPosition)]=true,t["icon-type--".concat(this.iconType)]=true,t)},h("div",{class:(i={},i[CSS.header]=true,i[CSS_UTILITY.rtl]=e==="rtl",i)},this.renderActionsStart(),h("div",{"aria-expanded":toAriaBoolean(this.active||this.expanded),class:CSS.headerContent,onClick:this.itemHeaderClickHandler,role:"button",tabindex:"0"},this.icon?n:null,h("div",{class:CSS.headerText},h("span",{class:CSS.heading},this.heading||this.itemTitle),this.itemSubtitle||this.description?h("span",{class:CSS.description},this.description||this.itemSubtitle):null),h("calcite-icon",{class:CSS.expandIcon,icon:this.iconType==="chevron"?"chevronDown":this.iconType==="caret"?"caretDown":this.expanded||this.active?"minus":"plus",scale:"s"})),this.renderActionsEnd()),h("div",{class:CSS.content},h("slot",null))))};t.prototype.keyDownHandler=function(t){if(t.target===this.el){switch(t.key){case" ":case"Enter":this.emitRequestedItem();t.preventDefault();break;case"ArrowUp":case"ArrowDown":case"Home":case"End":this.calciteInternalAccordionItemKeyEvent.emit({parent:this.parent,item:t});t.preventDefault();break}}};t.prototype.updateActiveItemOnChange=function(t){this.requestedAccordionItem=t.detail.requestedAccordionItem;if(this.el.parentNode!==this.requestedAccordionItem.parentNode){return}this.determineActiveItem();t.stopPropagation()};t.prototype.determineActiveItem=function(){switch(this.selectionMode){case"multi":if(this.el===this.requestedAccordionItem){this.expanded=!this.expanded}break;case"single":this.expanded=this.el===this.requestedAccordionItem?!this.expanded:false;break;case"single-persist":this.expanded=this.el===this.requestedAccordionItem;break}};t.prototype.emitRequestedItem=function(){this.calciteInternalAccordionItemSelect.emit({requestedAccordionItem:this.el})};t.prototype.getItemPosition=function(){return Array.prototype.indexOf.call(this.parent.querySelectorAll("calcite-accordion-item"),this.el)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeHandler"],expanded:["expandedHandler"]}},enumerable:false,configurable:true});return t}();AccordionItem.style=accordionItemCss;export{Accordion as calcite_accordion,AccordionItem as calcite_accordion_item};
|
|
6
|
+
import{r as registerInstance,c as createEvent,h,g as getElement,H as Host}from"./index-0d07e25e.js";import{d as getElementProp,g as getSlotted,a as getElementDir,t as toAriaBoolean}from"./dom-644aa911.js";import{c as connectConditionalSlotComponent,d as disconnectConditionalSlotComponent}from"./conditionalSlot-85f07706.js";import{C as CSS_UTILITY}from"./resources-de665b41.js";import"./guid-04104141.js";import"./observers-64cf7a6d.js";var accordionCss="@-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([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-inline-size:100%;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}.accordion--transparent{--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}.accordion--minimal{--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0}.accordion{border-width:1px;border-block-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2)}";var Accordion=function(){function t(t){registerInstance(this,t);this.calciteInternalAccordionChange=createEvent(this,"calciteInternalAccordionChange",6);this.appearance="solid";this.iconPosition="end";this.iconType="chevron";this.scale="m";this.selectionMode="multi";this.items=[];this.sorted=false;this.sortItems=function(t){return t.sort((function(t,i){return t.position-i.position})).map((function(t){return t.item}))}}t.prototype.componentDidLoad=function(){if(!this.sorted){this.items=this.sortItems(this.items);this.sorted=true}};t.prototype.render=function(){var t=this.appearance==="transparent";var i=this.appearance==="minimal";return h("div",{class:{"accordion--transparent":t,"accordion--minimal":i,accordion:!t&&!i}},h("slot",null))};t.prototype.calciteInternalAccordionItemKeyEvent=function(t){var i=t.detail.item;var e=t.detail.parent;if(this.el===e){var n=i.key;var a=t.target;var o=this.itemIndex(a)===0;var c=this.itemIndex(a)===this.items.length-1;switch(n){case"ArrowDown":if(c){this.focusFirstItem()}else{this.focusNextItem(a)}break;case"ArrowUp":if(o){this.focusLastItem()}else{this.focusPrevItem(a)}break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem();break}}t.stopPropagation()};t.prototype.registerCalciteAccordionItem=function(t){var i={item:t.target,parent:t.detail.parent,position:t.detail.position};if(this.el===i.parent){this.items.push(i)}t.stopPropagation()};t.prototype.updateActiveItemOnChange=function(t){this.requestedAccordionItem=t.detail.requestedAccordionItem;this.calciteInternalAccordionChange.emit({requestedAccordionItem:this.requestedAccordionItem});t.stopPropagation()};t.prototype.focusFirstItem=function(){var t=this.items[0];this.focusElement(t)};t.prototype.focusLastItem=function(){var t=this.items[this.items.length-1];this.focusElement(t)};t.prototype.focusNextItem=function(t){var i=this.itemIndex(t);var e=this.items[i+1]||this.items[0];this.focusElement(e)};t.prototype.focusPrevItem=function(t){var i=this.itemIndex(t);var e=this.items[i-1]||this.items[this.items.length-1];this.focusElement(e)};t.prototype.itemIndex=function(t){return this.items.indexOf(t)};t.prototype.focusElement=function(t){var i=t;i===null||i===void 0?void 0:i.focus()};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();Accordion.style=accordionCss;var SLOTS={actionsStart:"actions-start",actionsEnd:"actions-end"};var CSS={icon:"icon",header:"header",headerContent:"header-content",actionsStart:"actions-start",actionsEnd:"actions-end",headerText:"header-text",heading:"heading",description:"description",expandIcon:"expand-icon",content:"content"};var accordionItemCss="@-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}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .header-content{outline-color:transparent}:host(:focus) .header-content{outline:2px solid transparent;outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([expanded]){color:var(--calcite-ui-text-1)}:host([expanded]) .content{display:block;color:var(--calcite-ui-text-1)}:host([expanded]) .header{border-block-end-color:transparent}:host .header{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch}:host .icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-end);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}.content{padding:var(--calcite-accordion-item-padding)}:host .content,:host .header{-webkit-border-after:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2));border-block-end:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .content{display:none;-webkit-padding-before:0px;padding-block-start:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .expand-icon{color:var(--calcite-ui-text-3);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-end);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([expanded]) .calcite--rtl .expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .header-text{margin-block:0px;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;padding-block:0px;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .heading,:host .description{display:-ms-flexbox;display:flex;inline-size:100%}:host .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .description{-webkit-margin-before:0.25rem;margin-block-start:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .heading,:host(:hover) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:hover) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:hover) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:hover) .description{color:var(--calcite-ui-text-2)}:host(:focus) .heading,:host(:active) .heading,:host([expanded]) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:active) .icon,:host([expanded]) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:active) .expand-icon,:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:active) .description,:host([expanded]) .description{color:var(--calcite-ui-text-2)}.header-content{-ms-flex-positive:1;flex-grow:1;cursor:pointer;padding:var(--calcite-accordion-item-padding);-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}.actions-start,.actions-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (forced-colors: active){:host([expanded]) .header{-webkit-border-after:none;border-block-end:none}:host([expanded]) .heading{font-weight:bolder}:host(:hover) .heading,:host(:focus) .heading{text-decoration:underline}}";var AccordionItem=function(){function t(t){var i=this;registerInstance(this,t);this.calciteInternalAccordionItemKeyEvent=createEvent(this,"calciteInternalAccordionItemKeyEvent",6);this.calciteInternalAccordionItemSelect=createEvent(this,"calciteInternalAccordionItemSelect",6);this.calciteInternalAccordionItemClose=createEvent(this,"calciteInternalAccordionItemClose",6);this.calciteInternalAccordionItemRegister=createEvent(this,"calciteInternalAccordionItemRegister",6);this.active=false;this.expanded=false;this.iconPosition="end";this.itemHeaderClickHandler=function(){return i.emitRequestedItem()}}t.prototype.activeHandler=function(t){this.expanded=t};t.prototype.expandedHandler=function(t){this.active=t};t.prototype.connectedCallback=function(){this.parent=this.el.parentElement;this.selectionMode=getElementProp(this.el,"selection-mode","multi");this.iconType=getElementProp(this.el,"icon-type","chevron");this.iconPosition=getElementProp(this.el,"icon-position",this.iconPosition);var t=this.active||this.expanded;if(t){this.activeHandler(t);this.expandedHandler(t)}connectConditionalSlotComponent(this)};t.prototype.componentDidLoad=function(){this.itemPosition=this.getItemPosition();this.calciteInternalAccordionItemRegister.emit({parent:this.parent,position:this.itemPosition})};t.prototype.disconnectedCallback=function(){disconnectConditionalSlotComponent(this)};t.prototype.renderActionsStart=function(){var t=this.el;return getSlotted(t,SLOTS.actionsStart)?h("div",{class:CSS.actionsStart},h("slot",{name:SLOTS.actionsStart})):null};t.prototype.renderActionsEnd=function(){var t=this.el;return getSlotted(t,SLOTS.actionsEnd)?h("div",{class:CSS.actionsEnd},h("slot",{name:SLOTS.actionsEnd})):null};t.prototype.render=function(){var t,i;var e=getElementDir(this.el);var n=h("calcite-icon",{class:CSS.icon,icon:this.icon,scale:"s"});return h(Host,null,h("div",{class:(t={},t["icon-position--".concat(this.iconPosition)]=true,t["icon-type--".concat(this.iconType)]=true,t)},h("div",{class:(i={},i[CSS.header]=true,i[CSS_UTILITY.rtl]=e==="rtl",i)},this.renderActionsStart(),h("div",{"aria-expanded":toAriaBoolean(this.active||this.expanded),class:CSS.headerContent,onClick:this.itemHeaderClickHandler,role:"button",tabindex:"0"},this.icon?n:null,h("div",{class:CSS.headerText},h("span",{class:CSS.heading},this.heading||this.itemTitle),this.itemSubtitle||this.description?h("span",{class:CSS.description},this.description||this.itemSubtitle):null),h("calcite-icon",{class:CSS.expandIcon,icon:this.iconType==="chevron"?"chevronDown":this.iconType==="caret"?"caretDown":this.expanded||this.active?"minus":"plus",scale:"s"})),this.renderActionsEnd()),h("div",{class:CSS.content},h("slot",null))))};t.prototype.keyDownHandler=function(t){if(t.target===this.el){switch(t.key){case" ":case"Enter":this.emitRequestedItem();t.preventDefault();break;case"ArrowUp":case"ArrowDown":case"Home":case"End":this.calciteInternalAccordionItemKeyEvent.emit({parent:this.parent,item:t});t.preventDefault();break}}};t.prototype.updateActiveItemOnChange=function(t){this.requestedAccordionItem=t.detail.requestedAccordionItem;if(this.el.parentNode!==this.requestedAccordionItem.parentNode){return}this.determineActiveItem();t.stopPropagation()};t.prototype.determineActiveItem=function(){switch(this.selectionMode){case"multi":if(this.el===this.requestedAccordionItem){this.expanded=!this.expanded}break;case"single":this.expanded=this.el===this.requestedAccordionItem?!this.expanded:false;break;case"single-persist":this.expanded=this.el===this.requestedAccordionItem;break}};t.prototype.emitRequestedItem=function(){this.calciteInternalAccordionItemSelect.emit({requestedAccordionItem:this.el})};t.prototype.getItemPosition=function(){return Array.prototype.indexOf.call(this.parent.querySelectorAll("calcite-accordion-item"),this.el)};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeHandler"],expanded:["expandedHandler"]}},enumerable:false,configurable:true});return t}();AccordionItem.style=accordionItemCss;export{Accordion as calcite_accordion,AccordionItem as calcite_accordion_item};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,n,o){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function r(t){try{
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,o){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function r(t){try{s(o.next(t))}catch(t){a(t)}}function l(t){try{s(o["throw"](t))}catch(t){a(t)}}function s(t){t.done?n(t.value):i(t.value).then(r,l)}s((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return s([t,e])}}function s(r){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(a=r[0]&2?i["return"]:r[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,r[1])).done)return a;if(i=0,a)r=[r[0]&2,a.value];switch(r[0]){case 0:case 1:a=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;i=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!a||r[1]>a[0]&&r[1]<a[3])){n.label=r[1];break}if(r[0]===6&&n.label<a[1]){n.label=a[1];a=r;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(r);break}if(a[2])n.ops.pop();n.trys.pop();continue}r=e.call(t,n)}catch(t){r=[6,t];i=0}finally{o=a=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
* v1.0.0-next.
|
|
6
|
-
*/import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-
|
|
5
|
+
* v1.0.0-next.578
|
|
6
|
+
*/import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-0d07e25e.js";import{t as toggleChildActionText,o as overflowActionsDebounceInMs,q as queryActions,g as geActionDimensions,a as overflowActions,E as ExpandToggle,b as getOverflowCount}from"./ExpandToggle-10d2ef92.js";import{f as focusElement,g as getSlotted}from"./dom-644aa911.js";import{c as createObserver}from"./observers-64cf7a6d.js";import{c as connectConditionalSlotComponent,d as disconnectConditionalSlotComponent}from"./conditionalSlot-85f07706.js";import{d as debounce}from"./debounce-663977f3.js";import"./resources-609086e6.js";import"./resources-a1a27263.js";import"./resources-de665b41.js";import"./guid-04104141.js";var CSS={actionGroupBottom:"action-group--bottom"};var SLOTS={bottomActions:"bottom-actions",expandTooltip:"expand-tooltip"};var TEXT={expand:"Expand",collapse:"Collapse"};var actionBarCss="@-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}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{pointer-events:auto;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-item-align:stretch;align-self:stretch;background:transparent;--calcite-action-bar-expanded-max-width:auto}:host([layout=vertical]){-ms-flex-direction:column;flex-direction:column}:host([layout=horizontal]){-ms-flex-direction:row;flex-direction:row}:host([layout=vertical][overflow-actions-disabled]){overflow-y:auto}:host([layout=horizontal][overflow-actions-disabled]){overflow-x:auto}:host([layout=vertical][expanded]){max-inline-size:var(--calcite-action-bar-expanded-max-width)}::slotted(calcite-action-group){border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([layout=horizontal]) ::slotted(calcite-action-group){border-width:0px;border-inline-end-width:1px;border-style:solid}::slotted(calcite-action-group:last-child){border-block-end-width:0px;border-inline-end-width:0px}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;-webkit-padding-after:0px;padding-block-end:0px;-webkit-padding-end:0px;padding-inline-end:0px}";var ActionBar=function(){function t(t){var e=this;registerInstance(this,t);this.calciteActionBarToggle=createEvent(this,"calciteActionBarToggle",6);this.expandDisabled=false;this.expanded=false;this.layout="vertical";this.overflowActionsDisabled=false;this.mutationObserver=createObserver("mutation",(function(){var t=e,n=t.el,o=t.expanded;toggleChildActionText({parent:n,expanded:o});e.conditionallyOverflowActions()}));this.resizeObserver=createObserver("resize",(function(t){return e.resizeHandlerEntries(t)}));this.actionMenuOpenChangeHandler=function(t){if(t.detail){var n=t.composedPath();Array.from(e.el.querySelectorAll("calcite-action-group")).forEach((function(t){if(!n.includes(t)){t.menuOpen=false}}))}};this.resizeHandlerEntries=function(t){t.forEach(e.resizeHandler)};this.resizeHandler=function(t){var n=t.contentRect,o=n.width,i=n.height;e.resize({width:o,height:i})};this.resize=debounce((function(t){var n=t.width,o=t.height;var i=e,a=i.el,r=i.expanded,l=i.expandDisabled,s=i.layout;if(s==="vertical"&&!o||s==="horizontal"&&!n){return}var c=queryActions(a);var d=l?c.length:c.length+1;var p=Array.from(a.querySelectorAll("calcite-action-group"));var u=getSlotted(a,SLOTS.bottomActions)||!l?p.length+1:p.length;var f=geActionDimensions(c),m=f.actionHeight,h=f.actionWidth;var b=getOverflowCount({layout:s,actionCount:d,actionHeight:m,actionWidth:h,height:o,width:n,groupCount:u});overflowActions({actionGroups:p,expanded:r,overflowCount:b})}),overflowActionsDebounceInMs);this.conditionallyOverflowActions=function(){if(!e.overflowActionsDisabled){e.overflowActions()}};this.toggleExpand=function(){e.expanded=!e.expanded;e.calciteActionBarToggle.emit()};this.setExpandToggleRef=function(t){e.expandToggleEl=t}}t.prototype.expandHandler=function(){this.conditionallyOverflowActions()};t.prototype.expandedHandler=function(t){toggleChildActionText({parent:this.el,expanded:t});this.conditionallyOverflowActions()};t.prototype.overflowDisabledHandler=function(t){t?this.resizeObserver.disconnect():this.resizeObserver.observe(this.el)};t.prototype.componentDidLoad=function(){this.conditionallyOverflowActions()};t.prototype.connectedCallback=function(){var t,e;var n=this,o=n.el,i=n.expanded;toggleChildActionText({parent:o,expanded:i});(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(o,{childList:true,subtree:true});if(!this.overflowActionsDisabled){(e=this.resizeObserver)===null||e===void 0?void 0:e.observe(o)}this.conditionallyOverflowActions();connectConditionalSlotComponent(this)};t.prototype.disconnectedCallback=function(){var t,e;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();disconnectConditionalSlotComponent(this)};t.prototype.overflowActions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.resize({width:this.el.clientWidth,height:this.el.clientHeight});return[2]}))}))};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:if(!(t==="expand-toggle"))return[3,2];return[4,focusElement(this.expandToggleEl)];case 1:n.sent();return[2];case 2:(e=this.el)===null||e===void 0?void 0:e.focus();return[2]}}))}))};t.prototype.renderBottomActionGroup=function(){var t=this,e=t.expanded,n=t.expandDisabled,o=t.intlExpand,i=t.intlCollapse,a=t.el,r=t.position,l=t.toggleExpand,s=t.scale,c=t.layout;var d=getSlotted(a,SLOTS.expandTooltip);var p=o||TEXT.expand;var u=i||TEXT.collapse;var f=!n?h(ExpandToggle,{el:a,expanded:e,intlCollapse:u,intlExpand:p,position:r,ref:this.setExpandToggleRef,scale:s,toggle:l,tooltip:d}):null;return getSlotted(a,SLOTS.bottomActions)||f?h("calcite-action-group",{class:CSS.actionGroupBottom,layout:c,scale:s},h("slot",{name:SLOTS.bottomActions}),h("slot",{name:SLOTS.expandTooltip}),f):null};t.prototype.render=function(){return h(Host,{onCalciteActionMenuOpenChange:this.actionMenuOpenChangeHandler},h("slot",null),this.renderBottomActionGroup())};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{expandDisabled:["expandHandler"],expanded:["expandedHandler"],overflowActionsDisabled:["overflowDisabledHandler"]}},enumerable:false,configurable:true});return t}();ActionBar.style=actionBarCss;export{ActionBar as calcite_action_bar};
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import{r as registerInstance,h,F as Fragment,g as getElement}from"./index-
|
|
6
|
+
import{r as registerInstance,h,F as Fragment,g as getElement}from"./index-0d07e25e.js";import{S as SLOTS,I as ICONS,T as TEXT}from"./resources-a1a27263.js";import{g as getSlotted}from"./dom-644aa911.js";import{S as SLOTS$1}from"./resources-609086e6.js";import{c as connectConditionalSlotComponent,d as disconnectConditionalSlotComponent}from"./conditionalSlot-85f07706.js";import"./resources-de665b41.js";import"./guid-04104141.js";import"./observers-64cf7a6d.js";var actionGroupCss='@-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}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0px;--calcite-action-group-columns:3}:host([columns="1"]){--calcite-action-group-columns:1}:host([columns="2"]){--calcite-action-group-columns:2}:host([columns="3"]){--calcite-action-group-columns:3}:host([columns="4"]){--calcite-action-group-columns:4}:host([columns="5"]){--calcite-action-group-columns:5}:host([columns="6"]){--calcite-action-group-columns:6}:host(:first-child){-webkit-padding-before:0px;padding-block-start:0px}:host([layout=horizontal]){-ms-flex-direction:row;flex-direction:row}:host([layout=grid]){display:grid;place-content:stretch;gap:1px;background-color:var(--calcite-ui-background);padding:1px;grid-template-columns:repeat(var(--calcite-action-group-columns), auto)}';var ActionGroup=function(){function t(t){var n=this;registerInstance(this,t);this.expanded=false;this.layout="vertical";this.menuOpen=false;this.setMenuOpen=function(t){n.menuOpen=!!t.detail}}t.prototype.expandedHandler=function(){this.menuOpen=false};t.prototype.connectedCallback=function(){connectConditionalSlotComponent(this)};t.prototype.disconnectedCallback=function(){disconnectConditionalSlotComponent(this)};t.prototype.renderTooltip=function(){var t=this.el;var n=getSlotted(t,SLOTS.menuTooltip);return n?h("slot",{name:SLOTS.menuTooltip,slot:SLOTS$1.tooltip}):null};t.prototype.renderMenu=function(){var t=this,n=t.el,a=t.expanded,e=t.intlMore,i=t.menuOpen,o=t.scale,r=t.layout;var c=getSlotted(n,SLOTS.menuActions);return c?h("calcite-action-menu",{expanded:a,flipPlacements:["left","right"],label:e||TEXT.more,onCalciteActionMenuOpenChange:this.setMenuOpen,open:i,placement:r==="horizontal"?"bottom-leading":"leading-start",scale:o},h("calcite-action",{icon:ICONS.menu,scale:o,slot:SLOTS$1.trigger,text:e||TEXT.more,textEnabled:a}),h("slot",{name:SLOTS.menuActions}),this.renderTooltip()):null};t.prototype.render=function(){return h(Fragment,null,h("slot",null),this.renderMenu())};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{expanded:["expandedHandler"]}},enumerable:false,configurable:true});return t}();ActionGroup.style=actionGroupCss;export{ActionGroup as calcite_action_group};
|
|
@@ -2,5 +2,5 @@ var __awaiter=this&&this.__awaiter||function(t,e,n,i){function a(t){return t ins
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
* v1.0.0-next.
|
|
6
|
-
*/import{r as registerInstance,c as createEvent,h,F as Fragment,g as getElement}from"./index-
|
|
5
|
+
* v1.0.0-next.578
|
|
6
|
+
*/import{r as registerInstance,c as createEvent,h,F as Fragment,g as getElement}from"./index-0d07e25e.js";import{C as CSS,I as ICONS,S as SLOTS}from"./resources-609086e6.js";import{t as toAriaBoolean,f as focusElement}from"./dom-644aa911.js";import{g as getRoundRobinIndex}from"./array-3a18051b.js";import{g as guid}from"./guid-04104141.js";import{i as isActivationKey}from"./key-b95abbd2.js";import"./resources-de665b41.js";var actionMenuCss="@-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{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:-ms-flexbox;display:flex;outline-color:transparent}.menu ::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-brand);outline-offset:0px}.default-trigger{position:relative;block-size:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}.menu{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}";var SUPPORTED_BUTTON_NAV_KEYS=["ArrowUp","ArrowDown"];var SUPPORTED_MENU_NAV_KEYS=["ArrowUp","ArrowDown","End","Home"];var ActionMenu=function(){function t(t){var e=this;registerInstance(this,t);this.calciteActionMenuOpenChange=createEvent(this,"calciteActionMenuOpenChange",6);this.expanded=false;this.open=false;this.overlayPositioning="absolute";this.placement="auto";this.actionElements=[];this.guid="calcite-action-menu-".concat(guid());this.menuId="".concat(this.guid,"-menu");this.menuButtonId="".concat(this.guid,"-menu-button");this.activeMenuItemIndex=-1;this.connectMenuButtonEl=function(){var t=e,n=t.menuButtonId,i=t.menuId,a=t.open,o=t.label;var r=e.slottedMenuButtonEl||e.defaultMenuButtonEl;if(e.menuButtonEl===r){return}e.disconnectMenuButtonEl();e.menuButtonEl=r;e.setTooltipReferenceElement();if(!r){return}r.active=a;r.setAttribute("aria-controls",i);r.setAttribute("aria-expanded",toAriaBoolean(a));r.setAttribute("aria-haspopup","true");if(!r.id){r.id=n}if(!r.label){r.label=o}if(!r.text){r.text=o}r.addEventListener("pointerdown",e.menuButtonClick);r.addEventListener("keydown",e.menuButtonKeyDown)};this.disconnectMenuButtonEl=function(){var t=e.menuButtonEl;if(!t){return}t.removeEventListener("pointerdown",e.menuButtonClick);t.removeEventListener("keydown",e.menuButtonKeyDown)};this.setMenuButtonEl=function(t){var n=t.target.assignedElements({flatten:true}).filter((function(t){return t===null||t===void 0?void 0:t.matches("calcite-action")}));e.slottedMenuButtonEl=n[0];e.connectMenuButtonEl()};this.setDefaultMenuButtonEl=function(t){e.defaultMenuButtonEl=t;e.connectMenuButtonEl()};this.handleCalciteActionClick=function(){e.open=false;e.setFocus()};this.menuButtonClick=function(){e.toggleOpen()};this.updateTooltip=function(t){var n=t.target.assignedElements({flatten:true}).filter((function(t){return t===null||t===void 0?void 0:t.matches("calcite-tooltip")}));e.tooltipEl=n[0];e.setTooltipReferenceElement()};this.setTooltipReferenceElement=function(){var t=e,n=t.tooltipEl,i=t.expanded,a=t.menuButtonEl,o=t.open;if(n){n.referenceElement=!i&&!o?a:null}};this.updateAction=function(t,n){var i=e,a=i.guid,o=i.activeMenuItemIndex;var r="".concat(a,"-action-").concat(n);t.tabIndex=-1;t.setAttribute("role","menuitem");if(!t.id){t.id=r}t.active=n===o};this.updateActions=function(t){t===null||t===void 0?void 0:t.forEach(e.updateAction)};this.handleDefaultSlotChange=function(t){var n=t.target.assignedElements({flatten:true}).filter((function(t){return t===null||t===void 0?void 0:t.matches("calcite-action")}));e.actionElements=n};this.menuButtonKeyDown=function(t){var n=t.key;var i=e.actionElements;if(!i.length){return}if(isActivationKey(n)){t.preventDefault();e.toggleOpen();return}if(!e.isValidKey(n,SUPPORTED_BUTTON_NAV_KEYS)){return}t.preventDefault();e.toggleOpen(true);e.handleActionNavigation(n,i)};this.menuActionsContainerKeyDown=function(t){var n=t.key;var i=e,a=i.actionElements,o=i.activeMenuItemIndex;if(n==="Tab"){e.open=false;return}if(isActivationKey(n)){t.preventDefault();var r=a[o];r?r.click():e.toggleOpen(false);return}if(n==="Escape"){e.toggleOpen(false);t.preventDefault();return}if(!a.length){return}if(e.isValidKey(n,SUPPORTED_MENU_NAV_KEYS)){t.preventDefault()}e.handleActionNavigation(n,a)};this.handleActionNavigation=function(t,n){if(!e.open){return}var i=e.activeMenuItemIndex;if(t==="Home"){e.activeMenuItemIndex=0}if(t==="End"){e.activeMenuItemIndex=n.length-1}if(t==="ArrowUp"){e.activeMenuItemIndex=getRoundRobinIndex(Math.max(i-1,-1),n.length)}if(t==="ArrowDown"){e.activeMenuItemIndex=getRoundRobinIndex(i+1,n.length)}};this.toggleOpenEnd=function(){e.setFocus();e.el.removeEventListener("calcitePopoverOpen",e.toggleOpenEnd)};this.toggleOpen=function(t){if(t===void 0){t=!e.open}e.el.addEventListener("calcitePopoverOpen",e.toggleOpenEnd);e.open=t}}t.prototype.disconnectedCallback=function(){this.disconnectMenuButtonEl()};t.prototype.expandedHandler=function(){this.open=false;this.setTooltipReferenceElement()};t.prototype.openHandler=function(t){this.activeMenuItemIndex=this.open?0:-1;if(this.menuButtonEl){this.menuButtonEl.active=t}this.calciteActionMenuOpenChange.emit(t);this.setTooltipReferenceElement()};t.prototype.closeCalciteActionMenuOnClick=function(t){var e=t.composedPath();if(e.includes(this.el)){return}this.open=false};t.prototype.activeMenuItemIndexHandler=function(){this.updateActions(this.actionElements)};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){focusElement(this.menuButtonEl);return[2]}))}))};t.prototype.renderMenuButton=function(){var t=this,e=t.label,n=t.scale,i=t.expanded;var a=h("slot",{name:SLOTS.trigger,onSlotchange:this.setMenuButtonEl},h("calcite-action",{class:CSS.defaultTrigger,icon:ICONS.menu,ref:this.setDefaultMenuButtonEl,scale:n,text:e,textEnabled:i}));return a};t.prototype.renderMenuItems=function(){var t=this,e=t.actionElements,n=t.activeMenuItemIndex,i=t.open,a=t.menuId,o=t.menuButtonEl,r=t.label,l=t.placement,c=t.overlayPositioning,s=t.flipPlacements;var u=e[n];var f=(u===null||u===void 0?void 0:u.id)||null;return h("calcite-popover",{disablePointer:true,flipPlacements:s,label:r,offsetDistance:0,open:i,overlayPositioning:c,placement:l,referenceElement:o},h("div",{"aria-activedescendant":f,"aria-labelledby":o===null||o===void 0?void 0:o.id,class:CSS.menu,id:a,onClick:this.handleCalciteActionClick,onKeyDown:this.menuActionsContainerKeyDown,role:"menu",tabIndex:-1},h("slot",{onSlotchange:this.handleDefaultSlotChange})))};t.prototype.render=function(){return h(Fragment,null,this.renderMenuButton(),this.renderMenuItems(),h("slot",{name:SLOTS.tooltip,onSlotchange:this.updateTooltip}))};t.prototype.isValidKey=function(t,e){return!!e.find((function(e){return e===t}))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}},enumerable:false,configurable:true});return t}();ActionMenu.style=actionMenuCss;export{ActionMenu as calcite_action_menu};
|