@esri/calcite-components 1.0.0-next.500 → 1.0.0-next.501
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-2c0d7e71.entry.js → p-0248396c.entry.js} +2 -2
- package/dist/calcite/{p-a60cb38a.js → p-02e4a067.js} +2 -2
- package/dist/calcite/{p-63468c52.js → p-02e6cb99.js} +1 -1
- package/dist/calcite/{p-21d1677e.system.entry.js → p-04019b0a.system.entry.js} +3 -3
- package/dist/calcite/{p-5834932a.system.entry.js → p-0483899b.system.entry.js} +2 -2
- package/dist/calcite/{p-9fda93a4.entry.js → p-056ba3a3.entry.js} +2 -2
- package/dist/calcite/{p-024332c5.entry.js → p-06e292bc.entry.js} +2 -2
- package/dist/calcite/{p-8c18840f.system.entry.js → p-07b72bfe.system.entry.js} +2 -2
- package/dist/calcite/{p-706febe5.system.js → p-087892c9.system.js} +1 -1
- package/dist/calcite/{p-0ce50c1d.system.js → p-0971e9d7.system.js} +2 -2
- package/dist/calcite/{p-28050de4.system.js → p-0b13198d.system.js} +1 -1
- package/dist/calcite/{p-8cf8e1e7.js → p-0bfc6a90.js} +1 -1
- package/dist/calcite/{p-31c4bc1b.system.entry.js → p-0fa769ae.system.entry.js} +2 -2
- package/dist/calcite/{p-82ea6a13.system.js → p-103015b8.system.js} +2 -2
- package/dist/calcite/{p-853d3805.system.entry.js → p-111490fd.system.entry.js} +2 -2
- package/dist/calcite/{p-d7680abe.system.entry.js → p-11acb660.system.entry.js} +2 -2
- package/dist/calcite/{p-46bdd669.system.entry.js → p-15c053c1.system.entry.js} +2 -2
- package/dist/calcite/{p-e16a826a.js → p-186cf6d6.js} +1 -1
- package/dist/calcite/{p-00b11741.system.js → p-18b0488a.system.js} +1 -1
- package/dist/calcite/{p-ffa00a8f.system.js → p-1a84a05d.system.js} +1 -1
- package/dist/calcite/p-1cc3f54c.system.entry.js +6 -0
- package/dist/calcite/{p-12871022.entry.js → p-1d48ddad.entry.js} +2 -2
- package/dist/calcite/{p-edd5687b.system.entry.js → p-1d4e6bf7.system.entry.js} +3 -3
- package/dist/calcite/{p-9dc73184.system.entry.js → p-1fe3111b.system.entry.js} +2 -2
- package/dist/calcite/{p-86b0e535.system.entry.js → p-22fddc3d.system.entry.js} +2 -2
- package/dist/calcite/{p-271b25d1.system.entry.js → p-25abbe57.system.entry.js} +2 -2
- package/dist/calcite/{p-1d1a2389.system.entry.js → p-2a950a43.system.entry.js} +2 -2
- package/dist/calcite/{p-b17079bd.entry.js → p-2d34a974.entry.js} +2 -2
- package/dist/calcite/{p-03186f6e.system.entry.js → p-2e46ef83.system.entry.js} +3 -3
- package/dist/calcite/{p-bd4edca6.system.js → p-2e7ff3bd.system.js} +2 -2
- package/dist/calcite/{p-901f5a26.system.js → p-2e883a3b.system.js} +1 -1
- package/dist/calcite/{p-e9695326.entry.js → p-32ce90dd.entry.js} +2 -2
- package/dist/calcite/{p-6a0467c3.system.entry.js → p-35372c34.system.entry.js} +2 -2
- package/dist/calcite/{p-4d03105f.system.entry.js → p-3684490a.system.entry.js} +2 -2
- package/dist/calcite/{p-c9dcae21.entry.js → p-36f8b8e9.entry.js} +2 -2
- package/dist/calcite/{p-107a38c5.system.entry.js → p-37dc6b6c.system.entry.js} +2 -2
- package/dist/calcite/{p-f0a4d40b.system.js → p-3a2fb54f.system.js} +1 -1
- package/dist/calcite/{p-480ed9b7.system.js → p-3b814a72.system.js} +2 -2
- package/dist/calcite/{p-bb446144.system.entry.js → p-3cd6ebf5.system.entry.js} +2 -2
- package/dist/calcite/{p-028956df.entry.js → p-3f1bc879.entry.js} +2 -2
- package/dist/calcite/{p-01589b5a.entry.js → p-3f7e2a96.entry.js} +2 -2
- package/dist/calcite/{p-27c2a702.entry.js → p-42871e38.entry.js} +2 -2
- package/dist/calcite/p-454ecde1.entry.js +6 -0
- package/dist/calcite/{p-fad0120e.system.entry.js → p-46c78219.system.entry.js} +2 -2
- package/dist/calcite/{p-216cb23b.entry.js → p-46d4a47d.entry.js} +2 -2
- package/dist/calcite/{p-d7e2d5ee.js → p-4a1b5196.js} +1 -1
- package/dist/calcite/{p-ab2e0e5c.system.js → p-4a367063.system.js} +1 -1
- package/dist/calcite/{p-04414e6a.entry.js → p-4aed327a.entry.js} +2 -2
- package/dist/calcite/p-5390458e.entry.js +6 -0
- package/dist/calcite/{p-dd687065.system.entry.js → p-55a4d9c7.system.entry.js} +2 -2
- package/dist/calcite/p-588bb4d5.system.js +6 -0
- package/dist/calcite/{p-c177bb05.system.entry.js → p-5976b82f.system.entry.js} +2 -2
- package/dist/calcite/{p-278e7c29.js → p-5b3fcf1a.js} +1 -1
- package/dist/calcite/{p-25882dfa.js → p-5cb1a2a6.js} +2 -2
- package/dist/calcite/{p-b976a6d4.entry.js → p-5cde7c93.entry.js} +2 -2
- package/dist/calcite/{p-fcb11ad6.entry.js → p-5d740302.entry.js} +2 -2
- package/dist/calcite/{p-e8f98b57.system.entry.js → p-5dfa50cf.system.entry.js} +2 -2
- package/dist/calcite/{p-5bf4139d.entry.js → p-5e9c45ea.entry.js} +2 -2
- package/dist/calcite/{p-638e7dd0.system.js → p-637d7f34.system.js} +2 -2
- package/dist/calcite/{p-292d90f7.system.entry.js → p-63b5c75f.system.entry.js} +2 -2
- package/dist/calcite/{p-51234c26.entry.js → p-65c6ce56.entry.js} +2 -2
- package/dist/calcite/{p-49e08b65.system.entry.js → p-65fa8f7c.system.entry.js} +2 -2
- package/dist/calcite/{p-e3d8cbf1.system.js → p-66b899d4.system.js} +2 -2
- package/dist/calcite/{p-e4008a99.entry.js → p-673560da.entry.js} +2 -2
- package/dist/calcite/{p-912531ed.entry.js → p-6791409c.entry.js} +2 -2
- package/dist/calcite/{p-ba1409bd.system.entry.js → p-680cbe72.system.entry.js} +2 -2
- package/dist/calcite/{p-91f33424.system.entry.js → p-6ab5cb71.system.entry.js} +2 -2
- package/dist/calcite/{p-73256618.entry.js → p-6ed01d01.entry.js} +2 -2
- package/dist/calcite/{p-6f5090c1.entry.js → p-6f91a10c.entry.js} +2 -2
- package/dist/calcite/{p-13f53f4e.js → p-70096ba0.js} +1 -1
- package/dist/calcite/{p-31b0c477.entry.js → p-7033e6fc.entry.js} +2 -2
- package/dist/calcite/{p-6984e53d.system.entry.js → p-70436555.system.entry.js} +2 -2
- package/dist/calcite/{p-454d8127.js → p-728c435f.js} +2 -2
- package/dist/calcite/{p-3b07f204.entry.js → p-72d22e1d.entry.js} +2 -2
- package/dist/calcite/{p-0d080947.js → p-76880def.js} +1 -1
- package/dist/calcite/{p-97a8fcc0.entry.js → p-793ba059.entry.js} +2 -2
- package/dist/calcite/{p-32f5c996.entry.js → p-796b51d6.entry.js} +2 -2
- package/dist/calcite/{p-6d77e67a.entry.js → p-79cc5f2b.entry.js} +2 -2
- package/dist/calcite/{p-d5530135.system.js → p-7a908748.system.js} +2 -2
- package/dist/calcite/p-7b01ff59.js +6 -0
- package/dist/calcite/{p-a6dc1ac5.system.entry.js → p-7b839627.system.entry.js} +3 -3
- package/dist/calcite/{p-600f0689.system.entry.js → p-7cb5af6b.system.entry.js} +2 -2
- package/dist/calcite/{p-b6b481a6.entry.js → p-7cea1069.entry.js} +2 -2
- package/dist/calcite/{p-d6b1fd7e.entry.js → p-7f5a6444.entry.js} +2 -2
- package/dist/calcite/{p-3a1a3746.entry.js → p-7feb8812.entry.js} +2 -2
- package/dist/calcite/{p-f75621bf.entry.js → p-82abc94d.entry.js} +2 -2
- package/dist/calcite/p-8325357f.js +6 -0
- package/dist/calcite/{p-2198ecda.system.js → p-83c61c8e.system.js} +1 -1
- package/dist/calcite/{p-d52c8379.js → p-84d9a615.js} +2 -2
- package/dist/calcite/{p-6093b6eb.entry.js → p-87bebe5a.entry.js} +2 -2
- package/dist/calcite/{p-ee9a71d5.system.entry.js → p-8a406fd5.system.entry.js} +2 -2
- package/dist/calcite/{p-360defbb.system.entry.js → p-8c950687.system.entry.js} +2 -2
- package/dist/calcite/{p-9e207ca9.system.entry.js → p-92afabf0.system.entry.js} +2 -2
- package/dist/calcite/{p-ebc525c8.js → p-93c12409.js} +2 -2
- package/dist/calcite/{p-8098473f.entry.js → p-96048485.entry.js} +2 -2
- package/dist/calcite/{p-fdb738aa.system.entry.js → p-98c3794c.system.entry.js} +2 -2
- package/dist/calcite/{p-6bc5ea75.system.entry.js → p-9a3182cf.system.entry.js} +2 -2
- package/dist/calcite/{p-ec4ebf9b.system.js → p-9b4406e2.system.js} +2 -2
- package/dist/calcite/{p-9d4c73a8.system.js → p-9e8c8d50.system.js} +1 -1
- package/dist/calcite/{p-1c8916be.system.entry.js → p-a03396ec.system.entry.js} +2 -2
- package/dist/calcite/{p-2f10d6d5.system.entry.js → p-a0d26074.system.entry.js} +2 -2
- package/dist/calcite/{p-60722785.system.entry.js → p-a0e6b85c.system.entry.js} +2 -2
- package/dist/calcite/{p-f19e82cf.entry.js → p-a3747c05.entry.js} +2 -2
- package/dist/calcite/{p-0e3ebc14.system.entry.js → p-a3bba3f3.system.entry.js} +2 -2
- package/dist/calcite/{p-04d972d8.entry.js → p-a8ae223b.entry.js} +2 -2
- package/dist/calcite/{p-57242bcd.entry.js → p-ab474a74.entry.js} +2 -2
- package/dist/calcite/{p-93adaae5.entry.js → p-ac73ab10.entry.js} +2 -2
- package/dist/calcite/{p-f24ef041.system.entry.js → p-acd013bb.system.entry.js} +2 -2
- package/dist/calcite/{p-690df16d.system.entry.js → p-ae9ac311.system.entry.js} +2 -2
- package/dist/calcite/{p-0df8150a.js → p-aed59365.js} +1 -1
- package/dist/calcite/{p-1d3a0cf2.entry.js → p-afc9798a.entry.js} +2 -2
- package/dist/calcite/{p-425974a8.system.entry.js → p-b0f12620.system.entry.js} +2 -2
- package/dist/calcite/{p-0c89504b.system.entry.js → p-b162ac2c.system.entry.js} +2 -2
- package/dist/calcite/{p-b62527f2.system.entry.js → p-b708599e.system.entry.js} +2 -2
- package/dist/calcite/{p-514fc3cf.system.js → p-b71be267.system.js} +1 -1
- package/dist/calcite/{p-d9d93d74.system.entry.js → p-b9e9734a.system.entry.js} +2 -2
- package/dist/calcite/{p-cb1badfb.js → p-bce66d51.js} +1 -1
- package/dist/calcite/{p-7e5c3523.entry.js → p-bce6d6ce.entry.js} +2 -2
- package/dist/calcite/{p-1612f85b.system.entry.js → p-bcfc40b1.system.entry.js} +2 -2
- package/dist/calcite/{p-c33e59ee.entry.js → p-be010151.entry.js} +2 -2
- package/dist/calcite/{p-107977e5.system.entry.js → p-bfabba2e.system.entry.js} +2 -2
- package/dist/calcite/{p-7d1caa28.entry.js → p-c03171f6.entry.js} +2 -2
- package/dist/calcite/{p-60dbe1f1.system.js → p-c05912f7.system.js} +2 -2
- package/dist/calcite/{p-5dbfb736.system.entry.js → p-c0706353.system.entry.js} +2 -2
- package/dist/calcite/{p-c9dc34e6.js → p-c10ae96e.js} +2 -2
- package/dist/calcite/{p-6bf9e932.system.entry.js → p-c5e5e92b.system.entry.js} +2 -2
- package/dist/calcite/p-c7437654.entry.js +6 -0
- package/dist/calcite/{p-d55bbd0d.entry.js → p-cb747392.entry.js} +2 -2
- package/dist/calcite/{p-0ad4d5e2.system.entry.js → p-cc0868de.system.entry.js} +2 -2
- package/dist/calcite/{p-c60c53c2.entry.js → p-cd618d39.entry.js} +2 -2
- package/dist/calcite/{p-5c824e7d.system.entry.js → p-cebc6e8d.system.entry.js} +2 -2
- package/dist/calcite/{p-9c732aa9.js → p-cfe4355b.js} +1 -1
- package/dist/calcite/{p-96af2cc0.system.entry.js → p-d3ebb149.system.entry.js} +2 -2
- package/dist/calcite/{p-82d4364d.system.entry.js → p-d70aa4e2.system.entry.js} +2 -2
- package/dist/calcite/{p-3b70a57e.system.entry.js → p-d79f148f.system.entry.js} +2 -2
- package/dist/calcite/p-d903e0e7.entry.js +6 -0
- package/dist/calcite/{p-a092a0ea.system.js → p-d9a61215.system.js} +1 -1
- package/dist/calcite/{p-aaf813c2.system.js → p-da3acc27.system.js} +1 -1
- package/dist/calcite/{p-3ee161a4.system.entry.js → p-dac8c093.system.entry.js} +2 -2
- package/dist/calcite/p-daffe62f.entry.js +6 -0
- package/dist/calcite/p-db71e64d.entry.js +6 -0
- package/dist/calcite/{p-6643f5fa.entry.js → p-de4a6a89.entry.js} +2 -2
- package/dist/calcite/{p-25d121fe.system.entry.js → p-de633948.system.entry.js} +2 -2
- package/dist/calcite/{p-46dd562a.entry.js → p-e1c0b932.entry.js} +2 -2
- package/dist/calcite/{p-296ed385.entry.js → p-e1f11cf2.entry.js} +2 -2
- package/dist/calcite/{p-a5ad91d2.js → p-e543dc25.js} +1 -1
- package/dist/calcite/{p-94021df2.system.entry.js → p-e6b9049a.system.entry.js} +2 -2
- package/dist/calcite/{p-8d0edc2f.entry.js → p-e710baa6.entry.js} +2 -2
- package/dist/calcite/{p-fb8404a4.js → p-e80e7717.js} +1 -1
- package/dist/calcite/{p-24b76f43.js → p-e98a3fa9.js} +1 -1
- package/dist/calcite/p-ec0cdae5.entry.js +6 -0
- package/dist/calcite/{p-6b21229f.js → p-ed016d2b.js} +2 -2
- package/dist/calcite/{p-d94f2b29.entry.js → p-f0f43e9a.entry.js} +2 -2
- package/dist/calcite/{p-1ff17e8e.system.js → p-f2a2c051.system.js} +1 -1
- package/dist/calcite/{p-3d60c8d9.system.js → p-f31a81d5.system.js} +1 -1
- package/dist/calcite/p-f95d1df7.js +6 -0
- package/dist/calcite/{p-3995f80f.system.entry.js → p-fa5b8379.system.entry.js} +2 -2
- package/dist/calcite/{p-e899a610.entry.js → p-faf94e01.entry.js} +2 -2
- package/dist/calcite/{p-c2d00a06.entry.js → p-fb4b979b.entry.js} +2 -2
- package/dist/calcite/{p-bdee5114.entry.js → p-fbb95908.entry.js} +2 -2
- package/dist/calcite/{p-9d773c11.entry.js → p-fce90f30.entry.js} +2 -2
- package/dist/calcite/{p-3274c9e4.system.js → p-ffd24611.system.js} +2 -2
- package/dist/cjs/{ExpandToggle-be235918.js → ExpandToggle-a661df08.js} +5 -5
- package/dist/cjs/{Heading-100f372b.js → Heading-f7ce34f8.js} +2 -2
- package/dist/cjs/{array-3b4f2e77.js → array-54eb267b.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-action-bar.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action.cjs.entry.js +6 -6
- package/dist/cjs/calcite-alert.cjs.entry.js +15 -17
- package/dist/cjs/calcite-avatar.cjs.entry.js +5 -5
- package/dist/cjs/calcite-block_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-card.cjs.entry.js +6 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -7
- package/dist/cjs/calcite-chip.cjs.entry.js +6 -6
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +18 -20
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +8 -8
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +32 -8
- package/dist/cjs/calcite-fab.cjs.entry.js +5 -5
- package/dist/cjs/calcite-filter.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow.cjs.entry.js +2 -2
- package/dist/cjs/calcite-graph_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-handle.cjs.entry.js +4 -4
- package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +10 -10
- package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-input.cjs.entry.js +10 -10
- package/dist/cjs/calcite-label.cjs.entry.js +5 -5
- package/dist/cjs/calcite-link.cjs.entry.js +5 -5
- package/dist/cjs/calcite-list_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +7 -7
- package/dist/cjs/calcite-option_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-pagination.cjs.entry.js +4 -4
- package/dist/cjs/calcite-panel.cjs.entry.js +9 -9
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-popover_2.cjs.entry.js +9 -9
- 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 +8 -8
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-rating.cjs.entry.js +7 -7
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -7
- 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 +5 -5
- package/dist/cjs/calcite-switch.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tab_4.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tip_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite.cjs.js +2 -2
- package/dist/cjs/{conditionalSlot-0cf2783c.js → conditionalSlot-7ad93346.js} +3 -3
- package/dist/cjs/{debounce-73591a26.js → debounce-226bcfad.js} +1 -1
- package/dist/cjs/{dom-a95f2c56.js → dom-73966364.js} +2 -29
- package/dist/cjs/{forIn-c6d7050d.js → forIn-a22974fb.js} +2 -2
- package/dist/cjs/{form-04beb022.js → form-08520550.js} +3 -3
- package/dist/cjs/{guid-835850bf.js → guid-b0d1c63f.js} +1 -1
- package/dist/cjs/{index-45d31612.js → index-f4a68f01.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-5bc5f329.js → interactive-3f8000d4.js} +1 -1
- package/dist/cjs/{interfaces-17d4ca70.js → interfaces-3c6de282.js} +1 -1
- package/dist/cjs/{label-b17de694.js → label-213b9807.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{locale-5e3075c9.js → locale-9005c661.js} +1 -1
- package/dist/cjs/{math-32fe631f.js → math-35aaa764.js} +1 -1
- package/dist/cjs/{observers-691aebef.js → observers-e859e0e7.js} +1 -1
- package/dist/cjs/{popper-97d0e13a.js → popper-b89ef648.js} +2 -2
- package/dist/cjs/{resources-4c2c2199.js → resources-4f3c50be.js} +3 -3
- package/dist/cjs/{resources-2c2f005f.js → resources-50ffe5d9.js} +1 -1
- package/dist/cjs/{resources-233b6cfa.js → resources-59d31092.js} +5 -5
- package/dist/cjs/{resources-116a5f3d.js → resources-bad877b0.js} +1 -1
- package/dist/cjs/{sortable.esm-8439e56d.js → sortable.esm-93f1297e.js} +1 -1
- package/dist/cjs/{utils-18645410.js → utils-fcea2ea1.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/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 +39 -25
- 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 +7 -9
- 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 +1 -1
- 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 +1 -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/dropdown/dropdown.js +78 -10
- package/dist/collection/components/dropdown/interfaces.js +1 -1
- package/dist/collection/components/dropdown/resources.js +4 -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/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 +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-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 +3 -4
- 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/resources.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 +1 -1
- package/dist/collection/utils/dom.js +1 -27
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.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/popper.js +1 -1
- package/dist/collection/utils/resources.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 +11 -13
- 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 +7 -9
- 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.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 +1 -1
- package/dist/components/calcite-input-message.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 +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +2 -28
- package/dist/components/dropdown.js +26 -2
- package/dist/components/filter.js +1 -1
- package/dist/components/forIn.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/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/pick-list-item.js +1 -1
- package/dist/components/popover.js +4 -4
- package/dist/components/popper.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 +44 -50
- package/dist/esm/{ExpandToggle-3a403664.js → ExpandToggle-a56d8385.js} +5 -5
- package/dist/esm/{Heading-d8a27bcf.js → Heading-0d1a9345.js} +2 -2
- package/dist/esm/{array-812e7dc8.js → array-ddfcb78d.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +4 -4
- package/dist/esm/calcite-action-bar.entry.js +10 -10
- package/dist/esm/calcite-action-group.entry.js +8 -8
- package/dist/esm/calcite-action-menu.entry.js +8 -8
- package/dist/esm/calcite-action-pad.entry.js +9 -9
- package/dist/esm/calcite-action.entry.js +6 -6
- package/dist/esm/calcite-alert.entry.js +15 -17
- package/dist/esm/calcite-avatar.entry.js +5 -5
- package/dist/esm/calcite-block_2.entry.js +8 -8
- package/dist/esm/calcite-button.entry.js +8 -8
- package/dist/esm/calcite-card.entry.js +6 -6
- package/dist/esm/calcite-checkbox.entry.js +7 -7
- package/dist/esm/calcite-chip.entry.js +6 -6
- package/dist/esm/calcite-color-picker_3.entry.js +8 -8
- package/dist/esm/calcite-combobox_3.entry.js +18 -20
- package/dist/esm/calcite-date-picker_4.entry.js +8 -8
- package/dist/esm/calcite-dropdown_3.entry.js +32 -8
- package/dist/esm/calcite-fab.entry.js +5 -5
- package/dist/esm/calcite-filter.entry.js +7 -7
- package/dist/esm/calcite-flow.entry.js +2 -2
- package/dist/esm/calcite-graph_2.entry.js +9 -9
- package/dist/esm/calcite-handle.entry.js +4 -4
- package/dist/esm/calcite-icon.entry.js +5 -5
- package/dist/esm/calcite-inline-editable.entry.js +7 -7
- package/dist/esm/calcite-input-date-picker.entry.js +10 -10
- package/dist/esm/calcite-input-message.entry.js +4 -4
- package/dist/esm/calcite-input-time-picker_2.entry.js +8 -8
- package/dist/esm/calcite-input.entry.js +10 -10
- package/dist/esm/calcite-label.entry.js +5 -5
- package/dist/esm/calcite-link.entry.js +5 -5
- package/dist/esm/calcite-list_3.entry.js +8 -8
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +7 -7
- package/dist/esm/calcite-option_3.entry.js +8 -8
- package/dist/esm/calcite-pagination.entry.js +4 -4
- package/dist/esm/calcite-panel.entry.js +9 -9
- package/dist/esm/calcite-pick-list_3.entry.js +11 -11
- package/dist/esm/calcite-popover_2.entry.js +9 -9
- 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 +8 -8
- package/dist/esm/calcite-radio-group_2.entry.js +7 -7
- package/dist/esm/calcite-rating.entry.js +7 -7
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +7 -7
- 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 +5 -5
- package/dist/esm/calcite-switch.entry.js +7 -7
- package/dist/esm/calcite-tab_4.entry.js +6 -6
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +7 -7
- package/dist/esm/calcite-tip_3.entry.js +7 -7
- package/dist/esm/calcite-tooltip_2.entry.js +5 -5
- package/dist/esm/calcite-tree_2.entry.js +6 -6
- package/dist/esm/calcite-value-list_2.entry.js +11 -11
- package/dist/esm/calcite.js +2 -2
- package/dist/esm/{conditionalSlot-fcbe0a06.js → conditionalSlot-4392e28e.js} +3 -3
- package/dist/esm/{debounce-11c54254.js → debounce-eb293fe1.js} +1 -1
- package/dist/esm/{dom-4984236e.js → dom-b6731284.js} +3 -29
- package/dist/esm/{forIn-d6be6d9f.js → forIn-6418dc7d.js} +2 -2
- package/dist/esm/{form-2a8c5369.js → form-337e0ed2.js} +3 -3
- package/dist/esm/{guid-2e4ddd2f.js → guid-86c740ed.js} +1 -1
- package/dist/esm/{index-7f50e8db.js → index-c96475fc.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-d38732dc.js → interactive-59b90475.js} +1 -1
- package/dist/esm/{interfaces-c821da27.js → interfaces-db91b4fc.js} +1 -1
- package/dist/esm/{label-0979c74a.js → label-cf14be3b.js} +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{locale-2c29ab60.js → locale-5e7bf684.js} +1 -1
- package/dist/esm/{math-7ee12000.js → math-e98fee05.js} +1 -1
- package/dist/esm/{observers-cf78bec4.js → observers-c043dfde.js} +1 -1
- package/dist/esm/{popper-a82fb77f.js → popper-9e47c507.js} +2 -2
- package/dist/esm/{resources-2c1bd7f0.js → resources-b1f9839b.js} +5 -5
- package/dist/esm/{resources-c44164b3.js → resources-d0de1957.js} +1 -1
- package/dist/esm/{resources-49e5176e.js → resources-e19f744d.js} +3 -3
- package/dist/esm/{resources-02b77e63.js → resources-f31766b3.js} +1 -1
- package/dist/esm/{sortable.esm-2c1502f9.js → sortable.esm-17b433d7.js} +1 -1
- package/dist/esm/{utils-2fba47db.js → utils-9b274fcf.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-3a403664.js → ExpandToggle-a56d8385.js} +2 -2
- package/dist/esm-es5/Heading-0d1a9345.js +6 -0
- package/dist/esm-es5/{array-812e7dc8.js → array-ddfcb78d.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- 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 +2 -2
- 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 +3 -3
- package/dist/esm-es5/calcite-fab.entry.js +2 -2
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- 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 +3 -3
- package/dist/esm-es5/calcite-input-message.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 +2 -2
- package/dist/esm-es5/calcite-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-loader.entry.js +3 -3
- package/dist/esm-es5/calcite-modal.entry.js +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +2 -2
- 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 +3 -3
- 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 +3 -3
- 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-fcbe0a06.js → conditionalSlot-4392e28e.js} +2 -2
- package/dist/esm-es5/{debounce-11c54254.js → debounce-eb293fe1.js} +1 -1
- package/dist/esm-es5/dom-b6731284.js +6 -0
- package/dist/esm-es5/{forIn-d6be6d9f.js → forIn-6418dc7d.js} +2 -2
- package/dist/esm-es5/{form-2a8c5369.js → form-337e0ed2.js} +2 -2
- package/dist/esm-es5/{guid-2e4ddd2f.js → guid-86c740ed.js} +1 -1
- package/dist/esm-es5/{index-7f50e8db.js → index-c96475fc.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-d38732dc.js → interactive-59b90475.js} +1 -1
- package/dist/esm-es5/{interfaces-c821da27.js → interfaces-db91b4fc.js} +1 -1
- package/dist/esm-es5/{label-0979c74a.js → label-cf14be3b.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-2c29ab60.js → locale-5e7bf684.js} +1 -1
- package/dist/esm-es5/{math-7ee12000.js → math-e98fee05.js} +1 -1
- package/dist/esm-es5/{observers-cf78bec4.js → observers-c043dfde.js} +1 -1
- package/dist/esm-es5/{popper-a82fb77f.js → popper-9e47c507.js} +2 -2
- package/dist/esm-es5/{resources-2c1bd7f0.js → resources-b1f9839b.js} +2 -2
- package/dist/esm-es5/{resources-c44164b3.js → resources-d0de1957.js} +1 -1
- package/dist/esm-es5/{resources-49e5176e.js → resources-e19f744d.js} +2 -2
- package/dist/esm-es5/{resources-02b77e63.js → resources-f31766b3.js} +1 -1
- package/dist/esm-es5/{sortable.esm-2c1502f9.js → sortable.esm-17b433d7.js} +1 -1
- package/dist/esm-es5/{utils-2fba47db.js → utils-9b274fcf.js} +1 -1
- package/dist/extras/docs-json.json +27 -9
- 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/alert/alert.d.ts +18 -6
- package/dist/types/components/combobox/combobox.d.ts +2 -2
- package/dist/types/components/dropdown/dropdown.d.ts +14 -4
- package/dist/types/components/dropdown/resources.d.ts +3 -0
- package/dist/types/components.d.ts +20 -12
- package/dist/types/preact.d.ts +3 -1
- package/dist/types/utils/dom.d.ts +0 -8
- package/hydrate/index.js +44 -50
- package/package.json +3 -3
- package/dist/calcite/p-09f17e1a.js +0 -6
- package/dist/calcite/p-1cb30534.entry.js +0 -6
- package/dist/calcite/p-294fec7c.entry.js +0 -6
- package/dist/calcite/p-35921e9d.system.js +0 -6
- package/dist/calcite/p-6d4b9f85.system.entry.js +0 -6
- package/dist/calcite/p-7b41b466.entry.js +0 -6
- package/dist/calcite/p-86d513d5.js +0 -6
- package/dist/calcite/p-9e9e03db.entry.js +0 -6
- package/dist/calcite/p-a26699dd.entry.js +0 -6
- package/dist/calcite/p-b88ea9a9.entry.js +0 -6
- package/dist/calcite/p-bd5ec28b.js +0 -6
- package/dist/calcite/p-ca729c64.entry.js +0 -6
- package/dist/esm-es5/Heading-d8a27bcf.js +0 -6
- package/dist/esm-es5/dom-4984236e.js +0 -6
package/dist/loader/cdn.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.501
|
|
5
5
|
*/
|
|
6
6
|
module.exports = require('../cjs/loader.cjs.js');
|
|
7
7
|
module.exports.applyPolyfills = function() { return Promise.resolve() };
|
package/dist/loader/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.501
|
|
5
5
|
*/
|
|
6
6
|
module.exports = require('../cjs/loader.cjs.js');
|
|
7
7
|
module.exports.applyPolyfills = function() { return Promise.resolve() };
|
|
@@ -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.501
|
|
5
5
|
*/
|
|
6
6
|
export * from '../esm/polyfills/index.js';
|
|
7
7
|
export * from '../esm/loader.js';
|
package/dist/loader/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.501
|
|
5
5
|
*/
|
|
6
6
|
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
7
7
|
export * from '../esm/polyfills/index.js';
|
|
@@ -44,10 +44,22 @@ export declare class Alert {
|
|
|
44
44
|
componentWillLoad(): void;
|
|
45
45
|
disconnectedCallback(): void;
|
|
46
46
|
render(): VNode;
|
|
47
|
-
calciteAlertBeforeClose: EventEmitter
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
calciteAlertBeforeClose: EventEmitter<{
|
|
48
|
+
el: HTMLCalciteAlertElement;
|
|
49
|
+
queue: HTMLCalciteAlertElement[];
|
|
50
|
+
}>;
|
|
51
|
+
calciteAlertClose: EventEmitter<{
|
|
52
|
+
el: HTMLCalciteAlertElement;
|
|
53
|
+
queue: HTMLCalciteAlertElement[];
|
|
54
|
+
}>;
|
|
55
|
+
calciteAlertBeforeOpen: EventEmitter<{
|
|
56
|
+
el: HTMLCalciteAlertElement;
|
|
57
|
+
queue: HTMLCalciteAlertElement[];
|
|
58
|
+
}>;
|
|
59
|
+
calciteAlertOpen: EventEmitter<{
|
|
60
|
+
el: HTMLCalciteAlertElement;
|
|
61
|
+
queue: HTMLCalciteAlertElement[];
|
|
62
|
+
}>;
|
|
51
63
|
/**
|
|
52
64
|
* Fires to sync queue when opened or closed.
|
|
53
65
|
*
|
|
@@ -84,9 +96,9 @@ export declare class Alert {
|
|
|
84
96
|
private determineActiveAlert;
|
|
85
97
|
/** close and emit calciteInternalAlertSync event with the updated queue payload */
|
|
86
98
|
private closeAlert;
|
|
87
|
-
|
|
99
|
+
transitionRunHandler: (event: TransitionEvent) => void;
|
|
88
100
|
transitionEnd: (event: TransitionEvent) => void;
|
|
89
101
|
/** remove queued class after animation completes */
|
|
90
102
|
private openAlert;
|
|
91
|
-
private
|
|
103
|
+
private emitOpenCloseEvent;
|
|
92
104
|
}
|
|
@@ -143,8 +143,8 @@ export declare class Combobox implements LabelableComponent, FormComponent, Inte
|
|
|
143
143
|
private toggleCloseEnd;
|
|
144
144
|
private toggleOpenEnd;
|
|
145
145
|
transitionEnd: (event: TransitionEvent) => void;
|
|
146
|
-
|
|
147
|
-
private
|
|
146
|
+
transitionRunHandler: (event: TransitionEvent) => void;
|
|
147
|
+
private emitOpenCloseEvent;
|
|
148
148
|
setMaxScrollerHeight: () => void;
|
|
149
149
|
calciteChipDismissHandler: (event: CustomEvent<HTMLCalciteChipElement>, comboboxItem: HTMLCalciteComboboxItemElement) => void;
|
|
150
150
|
clickHandler: (event: MouseEvent) => void;
|
|
@@ -62,10 +62,18 @@ export declare class Dropdown implements InteractiveComponent {
|
|
|
62
62
|
reposition(): Promise<void>;
|
|
63
63
|
/** fires when a dropdown item has been selected or deselected */
|
|
64
64
|
calciteDropdownSelect: EventEmitter<void>;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
calciteDropdownBeforeOpen: EventEmitter<{
|
|
66
|
+
el: HTMLCalciteDropdownElement;
|
|
67
|
+
}>;
|
|
68
|
+
calciteDropdownOpen: EventEmitter<{
|
|
69
|
+
el: HTMLCalciteDropdownElement;
|
|
70
|
+
}>;
|
|
71
|
+
calciteDropdownBeforeClose: EventEmitter<{
|
|
72
|
+
el: HTMLCalciteDropdownElement;
|
|
73
|
+
}>;
|
|
74
|
+
calciteDropdownClose: EventEmitter<{
|
|
75
|
+
el: HTMLCalciteDropdownElement;
|
|
76
|
+
}>;
|
|
69
77
|
closeCalciteDropdownOnClick(e: Event): void;
|
|
70
78
|
closeCalciteDropdownOnEvent(e: Event): void;
|
|
71
79
|
closeCalciteDropdownOnOpenEvent(e: Event): void;
|
|
@@ -94,6 +102,8 @@ export declare class Dropdown implements InteractiveComponent {
|
|
|
94
102
|
setMaxScrollerHeight: () => void;
|
|
95
103
|
setScrollerEl: (scrollerEl: HTMLDivElement) => void;
|
|
96
104
|
transitionEnd: (event: TransitionEvent) => void;
|
|
105
|
+
transitionRunHandler: (event: TransitionEvent) => void;
|
|
106
|
+
private emitOpenCloseEvent;
|
|
97
107
|
setReferenceEl: (el: HTMLDivElement) => void;
|
|
98
108
|
setMenuEl: (el: HTMLDivElement) => void;
|
|
99
109
|
getModifiers(): Partial<StrictModifiers>[];
|
|
@@ -4764,10 +4764,22 @@ declare namespace LocalJSX {
|
|
|
4764
4764
|
* Specifies an accessible name for the component.
|
|
4765
4765
|
*/
|
|
4766
4766
|
"label": string;
|
|
4767
|
-
"onCalciteAlertBeforeClose"?: (event: CalciteAlertCustomEvent<
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4767
|
+
"onCalciteAlertBeforeClose"?: (event: CalciteAlertCustomEvent<{
|
|
4768
|
+
el: HTMLCalciteAlertElement;
|
|
4769
|
+
queue: HTMLCalciteAlertElement[];
|
|
4770
|
+
}>) => void;
|
|
4771
|
+
"onCalciteAlertBeforeOpen"?: (event: CalciteAlertCustomEvent<{
|
|
4772
|
+
el: HTMLCalciteAlertElement;
|
|
4773
|
+
queue: HTMLCalciteAlertElement[];
|
|
4774
|
+
}>) => void;
|
|
4775
|
+
"onCalciteAlertClose"?: (event: CalciteAlertCustomEvent<{
|
|
4776
|
+
el: HTMLCalciteAlertElement;
|
|
4777
|
+
queue: HTMLCalciteAlertElement[];
|
|
4778
|
+
}>) => void;
|
|
4779
|
+
"onCalciteAlertOpen"?: (event: CalciteAlertCustomEvent<{
|
|
4780
|
+
el: HTMLCalciteAlertElement;
|
|
4781
|
+
queue: HTMLCalciteAlertElement[];
|
|
4782
|
+
}>) => void;
|
|
4771
4783
|
/**
|
|
4772
4784
|
* Specifies the placement of the component
|
|
4773
4785
|
*/
|
|
@@ -5683,14 +5695,10 @@ declare namespace LocalJSX {
|
|
|
5683
5695
|
* specify the maximum number of calcite-dropdown-items to display before showing the scroller, must be greater than 0 - this value does not include groupTitles passed to calcite-dropdown-group
|
|
5684
5696
|
*/
|
|
5685
5697
|
"maxItems"?: number;
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
"
|
|
5690
|
-
/**
|
|
5691
|
-
* fires when a dropdown has been opened
|
|
5692
|
-
*/
|
|
5693
|
-
"onCalciteDropdownOpen"?: (event: CalciteDropdownCustomEvent<void>) => void;
|
|
5698
|
+
"onCalciteDropdownBeforeClose"?: (event: CalciteDropdownCustomEvent<{ el: HTMLCalciteDropdownElement }>) => void;
|
|
5699
|
+
"onCalciteDropdownBeforeOpen"?: (event: CalciteDropdownCustomEvent<{ el: HTMLCalciteDropdownElement }>) => void;
|
|
5700
|
+
"onCalciteDropdownClose"?: (event: CalciteDropdownCustomEvent<{ el: HTMLCalciteDropdownElement }>) => void;
|
|
5701
|
+
"onCalciteDropdownOpen"?: (event: CalciteDropdownCustomEvent<{ el: HTMLCalciteDropdownElement }>) => void;
|
|
5694
5702
|
/**
|
|
5695
5703
|
* fires when a dropdown item has been selected or deselected
|
|
5696
5704
|
*/
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -119,9 +119,11 @@ declare module "preact/src/jsx" {
|
|
|
119
119
|
"oncalciteDatePickerSelect"?: (event: CustomEvent<any>) => void;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
"calcite-dropdown": Omit<JSX.CalciteDropdown, "onCalciteDropdownSelect" | "onCalciteDropdownOpen" | "onCalciteDropdownClose"> & JSXInternal.HTMLAttributes<HTMLCalciteDropdownElement> & {
|
|
122
|
+
"calcite-dropdown": Omit<JSX.CalciteDropdown, "onCalciteDropdownSelect" | "onCalciteDropdownBeforeOpen" | "onCalciteDropdownOpen" | "onCalciteDropdownBeforeClose" | "onCalciteDropdownClose"> & JSXInternal.HTMLAttributes<HTMLCalciteDropdownElement> & {
|
|
123
123
|
"oncalciteDropdownSelect"?: (event: CustomEvent<any>) => void;
|
|
124
|
+
"oncalciteDropdownBeforeOpen"?: (event: CustomEvent<any>) => void;
|
|
124
125
|
"oncalciteDropdownOpen"?: (event: CustomEvent<any>) => void;
|
|
126
|
+
"oncalciteDropdownBeforeClose"?: (event: CustomEvent<any>) => void;
|
|
125
127
|
"oncalciteDropdownClose"?: (event: CustomEvent<any>) => void;
|
|
126
128
|
}
|
|
127
129
|
|
|
@@ -14,14 +14,6 @@ export declare function getElementDir(el: HTMLElement): Direction;
|
|
|
14
14
|
export declare function getElementProp(el: Element, prop: string, fallbackValue: any): any;
|
|
15
15
|
export declare function getRootNode(el: Element): Document | ShadowRoot;
|
|
16
16
|
export declare function getHost(root: Document | ShadowRoot): Element | null;
|
|
17
|
-
/**
|
|
18
|
-
* This helper queries an element's rootNodes and any ancestor rootNodes.
|
|
19
|
-
*
|
|
20
|
-
* @param element
|
|
21
|
-
* @param selector
|
|
22
|
-
* @returns {Element[]} The elements.
|
|
23
|
-
*/
|
|
24
|
-
export declare function queryElementsRoots<T extends Element = Element>(element: Element, selector: string): T[];
|
|
25
17
|
/**
|
|
26
18
|
* This helper queries an element's rootNode and any ancestor rootNodes.
|
|
27
19
|
*
|
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.501
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -5924,32 +5924,6 @@ function getRootNode(el) {
|
|
|
5924
5924
|
function getHost(root) {
|
|
5925
5925
|
return root.host || null;
|
|
5926
5926
|
}
|
|
5927
|
-
/**
|
|
5928
|
-
* This helper queries an element's rootNodes and any ancestor rootNodes.
|
|
5929
|
-
*
|
|
5930
|
-
* @param element
|
|
5931
|
-
* @param selector
|
|
5932
|
-
* @returns {Element[]} The elements.
|
|
5933
|
-
*/
|
|
5934
|
-
function queryElementsRoots(element, selector) {
|
|
5935
|
-
// Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
|
|
5936
|
-
// Based on: https://stackoverflow.com/q/54520554/194216
|
|
5937
|
-
function queryFromAll(el, allResults) {
|
|
5938
|
-
if (!el) {
|
|
5939
|
-
return allResults;
|
|
5940
|
-
}
|
|
5941
|
-
if (el.assignedSlot) {
|
|
5942
|
-
el = el.assignedSlot;
|
|
5943
|
-
}
|
|
5944
|
-
const rootNode = getRootNode(el);
|
|
5945
|
-
const results = Array.from(rootNode.querySelectorAll(selector));
|
|
5946
|
-
const uniqueResults = results.filter((result) => !allResults.includes(result));
|
|
5947
|
-
allResults = [...allResults, ...uniqueResults];
|
|
5948
|
-
const host = getHost(rootNode);
|
|
5949
|
-
return host ? queryFromAll(host, allResults) : allResults;
|
|
5950
|
-
}
|
|
5951
|
-
return queryFromAll(element, []);
|
|
5952
|
-
}
|
|
5953
5927
|
/**
|
|
5954
5928
|
* This helper queries an element's rootNode and any ancestor rootNodes.
|
|
5955
5929
|
*
|
|
@@ -8661,7 +8635,7 @@ class Alert {
|
|
|
8661
8635
|
this.queued = false;
|
|
8662
8636
|
this.setContainerDiv = (el) => {
|
|
8663
8637
|
this.containerDiv = el;
|
|
8664
|
-
this.containerDiv.addEventListener("transitionrun", this.
|
|
8638
|
+
this.containerDiv.addEventListener("transitionrun", this.transitionRunHandler);
|
|
8665
8639
|
};
|
|
8666
8640
|
this.autoDismissTimeoutId = null;
|
|
8667
8641
|
this.trackTimer = Date.now();
|
|
@@ -8679,16 +8653,14 @@ class Alert {
|
|
|
8679
8653
|
- `transitionrun` fires when the transition is created at the start of any delay and is not cancellable once started.
|
|
8680
8654
|
- if there is no transition delay, both `transitionrun` and `transitionstart` are fired at the same time.
|
|
8681
8655
|
*/
|
|
8682
|
-
this.
|
|
8656
|
+
this.transitionRunHandler = (event) => {
|
|
8683
8657
|
if (event.propertyName === this.activeTransitionProp) {
|
|
8684
|
-
this.active
|
|
8685
|
-
? this.openCloseEventEmitter("beforeOpening")
|
|
8686
|
-
: this.openCloseEventEmitter("beforeClosing");
|
|
8658
|
+
this.active ? this.emitOpenCloseEvent("beforeOpen") : this.emitOpenCloseEvent("beforeClose");
|
|
8687
8659
|
}
|
|
8688
8660
|
};
|
|
8689
8661
|
this.transitionEnd = (event) => {
|
|
8690
8662
|
if (event.propertyName === this.activeTransitionProp) {
|
|
8691
|
-
this.active ? this.
|
|
8663
|
+
this.active ? this.emitOpenCloseEvent("open") : this.emitOpenCloseEvent("close");
|
|
8692
8664
|
}
|
|
8693
8665
|
};
|
|
8694
8666
|
}
|
|
@@ -8726,7 +8698,7 @@ class Alert {
|
|
|
8726
8698
|
disconnectedCallback() {
|
|
8727
8699
|
window.clearTimeout(this.autoDismissTimeoutId);
|
|
8728
8700
|
if (this.containerDiv) {
|
|
8729
|
-
this.containerDiv.removeEventListener("transitionrun", this.
|
|
8701
|
+
this.containerDiv.removeEventListener("transitionrun", this.transitionRunHandler);
|
|
8730
8702
|
}
|
|
8731
8703
|
}
|
|
8732
8704
|
render() {
|
|
@@ -8802,16 +8774,16 @@ class Alert {
|
|
|
8802
8774
|
window.clearTimeout(this.queueTimeout);
|
|
8803
8775
|
this.queueTimeout = window.setTimeout(() => (this.queued = false), 300);
|
|
8804
8776
|
}
|
|
8805
|
-
|
|
8777
|
+
emitOpenCloseEvent(componentVisibilityState) {
|
|
8806
8778
|
const payload = {
|
|
8807
8779
|
el: this.el,
|
|
8808
8780
|
queue: this.queue
|
|
8809
8781
|
};
|
|
8810
8782
|
const emitComponentState = {
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
|
|
8814
|
-
|
|
8783
|
+
beforeOpen: () => this.calciteAlertBeforeOpen.emit(payload),
|
|
8784
|
+
open: () => this.calciteAlertOpen.emit(payload),
|
|
8785
|
+
beforeClose: () => this.calciteAlertBeforeClose.emit(payload),
|
|
8786
|
+
close: () => this.calciteAlertClose.emit(payload)
|
|
8815
8787
|
};
|
|
8816
8788
|
(emitComponentState[componentVisibilityState] ||
|
|
8817
8789
|
emitComponentState["The component state is unknown."])();
|
|
@@ -15863,18 +15835,16 @@ class Combobox {
|
|
|
15863
15835
|
};
|
|
15864
15836
|
this.transitionEnd = (event) => {
|
|
15865
15837
|
if (event.propertyName === this.activeTransitionProp) {
|
|
15866
|
-
this.active ? this.
|
|
15838
|
+
this.active ? this.emitOpenCloseEvent("open") : this.emitOpenCloseEvent("close");
|
|
15867
15839
|
}
|
|
15868
15840
|
};
|
|
15869
15841
|
/* *
|
|
15870
15842
|
- `transitionrun` fires when the transition is created at the start of any delay and is not cancellable once started.
|
|
15871
15843
|
- if there is no transition delay, both `transitionrun` and `transitionstart` are fired at the same time.
|
|
15872
15844
|
*/
|
|
15873
|
-
this.
|
|
15845
|
+
this.transitionRunHandler = (event) => {
|
|
15874
15846
|
if (event.propertyName === this.activeTransitionProp) {
|
|
15875
|
-
this.active
|
|
15876
|
-
? this.openCloseEventEmitter("beforeOpen")
|
|
15877
|
-
: this.openCloseEventEmitter("beforeClose");
|
|
15847
|
+
this.active ? this.emitOpenCloseEvent("beforeOpen") : this.emitOpenCloseEvent("beforeClose");
|
|
15878
15848
|
}
|
|
15879
15849
|
};
|
|
15880
15850
|
this.setMaxScrollerHeight = () => {
|
|
@@ -15927,7 +15897,7 @@ class Combobox {
|
|
|
15927
15897
|
this.setListContainerEl = (el) => {
|
|
15928
15898
|
this.resizeObserver.observe(el);
|
|
15929
15899
|
this.listContainerEl = el;
|
|
15930
|
-
this.listContainerEl.addEventListener("transitionrun", this.
|
|
15900
|
+
this.listContainerEl.addEventListener("transitionrun", this.transitionRunHandler);
|
|
15931
15901
|
};
|
|
15932
15902
|
this.setReferenceEl = (el) => {
|
|
15933
15903
|
this.referenceEl = el;
|
|
@@ -16120,7 +16090,7 @@ class Combobox {
|
|
|
16120
16090
|
disconnectLabel(this);
|
|
16121
16091
|
disconnectForm(this);
|
|
16122
16092
|
if (this.listContainerEl) {
|
|
16123
|
-
this.listContainerEl.removeEventListener("transitionrun", this.
|
|
16093
|
+
this.listContainerEl.removeEventListener("transitionrun", this.transitionRunHandler);
|
|
16124
16094
|
}
|
|
16125
16095
|
}
|
|
16126
16096
|
selectedItemsHandler() {
|
|
@@ -16139,7 +16109,7 @@ class Combobox {
|
|
|
16139
16109
|
bounding.right <= (window.innerWidth || document.documentElement.clientWidth) &&
|
|
16140
16110
|
bounding.bottom <= (window.innerHeight || document.documentElement.clientHeight));
|
|
16141
16111
|
}
|
|
16142
|
-
|
|
16112
|
+
emitOpenCloseEvent(componentVisibilityState) {
|
|
16143
16113
|
const payload = {
|
|
16144
16114
|
el: this.el
|
|
16145
16115
|
};
|
|
@@ -18151,7 +18121,9 @@ class Dropdown {
|
|
|
18151
18121
|
constructor(hostRef) {
|
|
18152
18122
|
registerInstance(this, hostRef);
|
|
18153
18123
|
this.calciteDropdownSelect = createEvent(this, "calciteDropdownSelect", 7);
|
|
18124
|
+
this.calciteDropdownBeforeOpen = createEvent(this, "calciteDropdownBeforeOpen", 7);
|
|
18154
18125
|
this.calciteDropdownOpen = createEvent(this, "calciteDropdownOpen", 7);
|
|
18126
|
+
this.calciteDropdownBeforeClose = createEvent(this, "calciteDropdownBeforeClose", 7);
|
|
18155
18127
|
this.calciteDropdownClose = createEvent(this, "calciteDropdownClose", 7);
|
|
18156
18128
|
//--------------------------------------------------------------------------
|
|
18157
18129
|
//
|
|
@@ -18258,10 +18230,16 @@ class Dropdown {
|
|
|
18258
18230
|
this.setScrollerEl = (scrollerEl) => {
|
|
18259
18231
|
this.resizeObserver.observe(scrollerEl);
|
|
18260
18232
|
this.scrollerEl = scrollerEl;
|
|
18233
|
+
this.scrollerEl.addEventListener("transitionrun", this.transitionRunHandler);
|
|
18261
18234
|
};
|
|
18262
18235
|
this.transitionEnd = (event) => {
|
|
18263
18236
|
if (event.propertyName === this.activeTransitionProp) {
|
|
18264
|
-
this.active ? this.
|
|
18237
|
+
this.active ? this.emitOpenCloseEvent("open") : this.emitOpenCloseEvent("close");
|
|
18238
|
+
}
|
|
18239
|
+
};
|
|
18240
|
+
this.transitionRunHandler = (event) => {
|
|
18241
|
+
if (event.propertyName === this.activeTransitionProp) {
|
|
18242
|
+
this.active ? this.emitOpenCloseEvent("beforeOpen") : this.emitOpenCloseEvent("beforeClose");
|
|
18265
18243
|
}
|
|
18266
18244
|
};
|
|
18267
18245
|
this.setReferenceEl = (el) => {
|
|
@@ -18348,6 +18326,9 @@ class Dropdown {
|
|
|
18348
18326
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
18349
18327
|
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
18350
18328
|
this.destroyPopper();
|
|
18329
|
+
if (this.scrollerEl) {
|
|
18330
|
+
this.scrollerEl.removeEventListener("transitionrun", this.transitionRunHandler);
|
|
18331
|
+
}
|
|
18351
18332
|
}
|
|
18352
18333
|
render() {
|
|
18353
18334
|
const { active } = this;
|
|
@@ -18448,6 +18429,19 @@ class Dropdown {
|
|
|
18448
18429
|
}
|
|
18449
18430
|
event.stopPropagation();
|
|
18450
18431
|
}
|
|
18432
|
+
emitOpenCloseEvent(componentVisibilityState) {
|
|
18433
|
+
const payload = {
|
|
18434
|
+
el: this.el
|
|
18435
|
+
};
|
|
18436
|
+
const emitComponentState = {
|
|
18437
|
+
beforeOpen: () => this.calciteDropdownBeforeOpen.emit(payload),
|
|
18438
|
+
open: () => this.calciteDropdownOpen.emit(payload),
|
|
18439
|
+
beforeClose: () => this.calciteDropdownBeforeClose.emit(payload),
|
|
18440
|
+
close: () => this.calciteDropdownClose.emit(payload)
|
|
18441
|
+
};
|
|
18442
|
+
(emitComponentState[componentVisibilityState] ||
|
|
18443
|
+
emitComponentState["The component state is unknown."])();
|
|
18444
|
+
}
|
|
18451
18445
|
getModifiers() {
|
|
18452
18446
|
const flipModifier = {
|
|
18453
18447
|
name: "flip",
|
|
@@ -24129,7 +24123,7 @@ class PopoverManager$1 {
|
|
|
24129
24123
|
// Private Properties
|
|
24130
24124
|
//
|
|
24131
24125
|
// --------------------------------------------------------------------------
|
|
24132
|
-
this.registeredElements = new
|
|
24126
|
+
this.registeredElements = new Map();
|
|
24133
24127
|
this.registeredElementCount = 0;
|
|
24134
24128
|
// --------------------------------------------------------------------------
|
|
24135
24129
|
//
|
|
@@ -24148,7 +24142,7 @@ class PopoverManager$1 {
|
|
|
24148
24142
|
popover.toggle();
|
|
24149
24143
|
return;
|
|
24150
24144
|
}
|
|
24151
|
-
|
|
24145
|
+
Array.from(this.registeredElements.values())
|
|
24152
24146
|
.filter((popover) => popover.autoClose && popover.open && !composedPath.includes(popover))
|
|
24153
24147
|
.forEach((popover) => popover.toggle(false));
|
|
24154
24148
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/calcite-components",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.501",
|
|
4
4
|
"description": "Web Components for Esri's Calcite Design System.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@types/dedent": "0.7.0",
|
|
88
88
|
"@types/git-semver-tags": "4.1.1",
|
|
89
89
|
"@types/jest": "26.0.21",
|
|
90
|
-
"@types/jest-axe": "3.5.
|
|
90
|
+
"@types/jest-axe": "3.5.4",
|
|
91
91
|
"@types/lodash-es": "4.17.6",
|
|
92
92
|
"@types/pify": "5.0.1",
|
|
93
93
|
"@types/rimraf": "3.0.2",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"eslint": "8.18.0",
|
|
113
113
|
"eslint-config-prettier": "8.5.0",
|
|
114
114
|
"eslint-plugin-jest": "26.5.3",
|
|
115
|
-
"eslint-plugin-jsdoc": "39.3.
|
|
115
|
+
"eslint-plugin-jsdoc": "39.3.3",
|
|
116
116
|
"eslint-plugin-prettier": "4.0.0",
|
|
117
117
|
"eslint-plugin-react": "7.30.0",
|
|
118
118
|
"eslint-plugin-unicorn": "42.0.0",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.500
|
|
5
|
-
*/
|
|
6
|
-
import{f as t}from"./p-9c732aa9.js";import{c as o}from"./p-a5ad91d2.js";const n=new Set;let a;const c={childList:!0};function s(t){a||(a=o("mutation",i)),a.observe(t.el,c)}function f(t){n.delete(t.el),i(a.takeRecords()),a.disconnect();for(const[t]of n.entries())a.observe(t,c)}function i(o){o.forEach((({target:o})=>{t(o)}))}export{s as c,f as d}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.500
|
|
5
|
-
*/
|
|
6
|
-
import{r as t,c as i,h as e,H as n,g as a}from"./p-9c732aa9.js";import{t as r,f as o,d as s}from"./p-bd5ec28b.js";import{d as c,f as l,C as m,u as d,c as p,p as h}from"./p-d52c8379.js";import{c as w}from"./p-a5ad91d2.js";import{u as f}from"./p-63468c52.js";import"./p-24b76f43.js";const b=class{constructor(e){t(this,e),this.calciteDropdownSelect=i(this,"calciteDropdownSelect",7),this.calciteDropdownOpen=i(this,"calciteDropdownOpen",7),this.calciteDropdownClose=i(this,"calciteDropdownClose",7),this.active=!1,this.disableCloseOnSelect=!1,this.disabled=!1,this.maxItems=0,this.overlayPositioning="absolute",this.placement=c,this.scale="m",this.selectedItems=[],this.type="click",this.items=[],this.groups=[],this.activeTransitionProp="visibility",this.mutationObserver=w("mutation",(()=>this.updateItems())),this.resizeObserver=w("resize",(t=>this.resizeObserverCallback(t))),this.setFilteredPlacements=()=>{const{el:t,flipPlacements:i}=this;this.filteredFlipPlacements=i?l(i,t):null},this.updateTriggers=t=>{this.triggers=t.target.assignedElements({flatten:!0}),this.reposition()},this.updateItems=()=>{this.items=this.groups.map((t=>Array.from(null==t?void 0:t.querySelectorAll("calcite-dropdown-item")))).reduce(((t,i)=>[...t,...i]),[]),this.updateSelectedItems(),this.reposition()},this.updateGroups=t=>{const i=t.target.assignedElements({flatten:!0}).filter((t=>null==t?void 0:t.matches("calcite-dropdown-group")));this.groups=i,this.updateItems()},this.resizeObserverCallback=t=>{t.forEach((t=>{const{target:i}=t;i===this.referenceEl?this.setDropdownWidth():i===this.scrollerEl&&this.setMaxScrollerHeight()}))},this.setDropdownWidth=()=>{const{referenceEl:t,scrollerEl:i}=this,e=null==t?void 0:t.clientWidth;e&&i&&(i.style.minWidth=`${e}px`)},this.setMaxScrollerHeight=()=>{const{active:t,scrollerEl:i}=this;if(!i||!t)return;this.reposition();const e=this.getMaxScrollerHeight();i.style.maxHeight=e>0?`${e}px`:"",this.reposition()},this.setScrollerEl=t=>{this.resizeObserver.observe(t),this.scrollerEl=t},this.transitionEnd=t=>{t.propertyName===this.activeTransitionProp&&(this.active?this.calciteDropdownOpen.emit():this.calciteDropdownClose.emit())},this.setReferenceEl=t=>{this.referenceEl=t,this.resizeObserver.observe(t)},this.setMenuEl=t=>{this.menuEl=t},this.keyDownHandler=t=>{if(t.target!==this.referenceEl)return;const i=t.key;if(this.active&&("Escape"===i||t.shiftKey&&"Tab"===i))this.closeCalciteDropdown();else switch(i){case" ":case"Enter":this.openCalciteDropdown();break;case"Escape":this.closeCalciteDropdown()}},this.focusOnFirstActiveOrFirstItem=()=>{this.getFocusableElement(this.items.find((t=>t.active))||this.items[0])},this.toggleOpenEnd=()=>{this.focusOnFirstActiveOrFirstItem(),this.el.removeEventListener("calciteDropdownOpen",this.toggleOpenEnd)},this.openCalciteDropdown=()=>{this.active=!this.active,this.active&&this.el.addEventListener("calciteDropdownOpen",this.toggleOpenEnd)}}activeHandler(){this.disabled?this.active=!1:this.reposition()}handleDisabledChange(t){t||(this.active=!1)}flipPlacementsHandler(){this.setFilteredPlacements()}maxItemsHandler(){this.setMaxScrollerHeight()}placementHandler(){this.reposition()}connectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0}),this.createPopper(),this.setFilteredPlacements()}componentDidLoad(){this.reposition()}componentDidRender(){f(this)}disconnectedCallback(){var t,i;null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(i=this.resizeObserver)||void 0===i||i.disconnect(),this.destroyPopper()}render(){const{active:t}=this;return e(n,null,e("div",{class:"calcite-dropdown-trigger-container",onClick:this.openCalciteDropdown,onKeyDown:this.keyDownHandler,ref:this.setReferenceEl},e("slot",{"aria-expanded":r(t),"aria-haspopup":"true",name:"dropdown-trigger",onSlotchange:this.updateTriggers})),e("div",{"aria-hidden":r(!t),class:"calcite-dropdown-wrapper",ref:this.setMenuEl},e("div",{class:{"calcite-dropdown-content":!0,[m.animation]:!0,[m.animationActive]:t},onTransitionEnd:this.transitionEnd,ref:this.setScrollerEl},e("div",{hidden:!this.active},e("slot",{onSlotchange:this.updateGroups})))))}async reposition(){const{popper:t,menuEl:i,placement:e}=this,n=this.getModifiers();t?await d({el:i,modifiers:n,placement:e,popper:t}):this.createPopper()}closeCalciteDropdownOnClick(t){this.active&&!t.composedPath().includes(this.el)&&this.closeCalciteDropdown(!1)}closeCalciteDropdownOnEvent(t){this.closeCalciteDropdown(),t.stopPropagation()}closeCalciteDropdownOnOpenEvent(t){t.composedPath().includes(this.el)||(this.active=!1)}mouseEnterHandler(){"hover"===this.type&&this.openCalciteDropdown()}mouseLeaveHandler(){"hover"===this.type&&this.closeCalciteDropdown()}calciteInternalDropdownItemKeyEvent(t){const{keyboardEvent:i}=t.detail,e=i.target,n="A"!==e.nodeName?e:e.parentNode,a=0===this.itemIndex(n),r=this.itemIndex(n)===this.items.length-1;switch(i.key){case"Tab":r&&!i.shiftKey||a&&i.shiftKey?this.closeCalciteDropdown():i.shiftKey?this.focusPrevItem(n):this.focusNextItem(n);break;case"ArrowDown":this.focusNextItem(n);break;case"ArrowUp":this.focusPrevItem(n);break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem()}t.stopPropagation()}handleItemSelect(t){this.updateSelectedItems(),t.stopPropagation(),this.calciteDropdownSelect.emit(),this.disableCloseOnSelect&&"none"!==t.detail.requestedDropdownGroup.selectionMode||this.closeCalciteDropdown(),t.stopPropagation()}getModifiers(){const t={name:"flip",enabled:!0};return t.options={fallbackPlacements:this.filteredFlipPlacements||h},[t,{name:"eventListeners",enabled:this.active}]}createPopper(){this.destroyPopper();const{menuEl:t,referenceEl:i,placement:e,overlayPositioning:n}=this,a=this.getModifiers();this.popper=p({el:t,modifiers:a,overlayPositioning:n,placement:e,referenceEl:i})}destroyPopper(){const{popper:t}=this;t&&t.destroy(),this.popper=null}updateSelectedItems(){this.selectedItems=this.items.filter((t=>t.active))}getMaxScrollerHeight(){const{maxItems:t}=this;let i,e=0,n=0;return this.groups.forEach((a=>{t>0&&e<t&&Array.from(a.children).forEach(((a,r)=>{0===r&&(isNaN(i)&&(i=a.offsetTop),n+=i),e<t&&(n+=a.offsetHeight,e+=1)}))})),n}closeCalciteDropdown(t=!0){this.active=!1,t&&o(this.triggers[0])}focusFirstItem(){this.getFocusableElement(this.items[0])}focusLastItem(){this.getFocusableElement(this.items[this.items.length-1])}focusNextItem(t){const i=this.itemIndex(t);this.getFocusableElement(this.items[i+1]||this.items[0])}focusPrevItem(t){const i=this.itemIndex(t);this.getFocusableElement(this.items[i-1]||this.items[this.items.length-1])}itemIndex(t){return this.items.indexOf(t)}getFocusableElement(t){if(!t)return;const i=t.attributes.isLink?t.shadowRoot.querySelector("a"):t;o(i)}get el(){return a(this)}static get watchers(){return{active:["activeHandler"],disabled:["handleDisabledChange"],flipPlacements:["flipPlacementsHandler"],maxItems:["maxItemsHandler"],placement:["placementHandler"]}}};b.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{width:auto;overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);max-height:90vh;width:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{position:relative;display:-ms-flexbox;display:flex}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";const k=class{constructor(e){t(this,e),this.calciteInternalDropdownItemChange=i(this,"calciteInternalDropdownItemChange",7),this.selectionMode="single"}componentWillLoad(){this.groupPosition=this.getGroupPosition()}render(){const t=this.scale||s(this.el,"scale","m"),i=this.groupTitle?e("span",{"aria-hidden":"true",class:"dropdown-title"},this.groupTitle):null,a=this.groupPosition>0?e("div",{class:"dropdown-separator",role:"separator"}):null;return e(n,{role:"menu"},e("div",{class:{container:!0,"container--s":"s"===t,"container--m":"m"===t,"container--l":"l"===t},title:this.groupTitle},a,i,e("slot",null)))}updateActiveItemOnChange(t){this.requestedDropdownGroup=t.detail.requestedDropdownGroup,this.requestedDropdownItem=t.detail.requestedDropdownItem,this.calciteInternalDropdownItemChange.emit({requestedDropdownGroup:this.requestedDropdownGroup,requestedDropdownItem:this.requestedDropdownItem})}getGroupPosition(){return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-dropdown-group"),this.el)}get el(){return a(this)}};k.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}.container{text-align:start}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem}.container--s .dropdown-title{padding:0.5rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem}.container--m .dropdown-title{padding:0.75rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem}.container--l .dropdown-title{padding:1rem}.dropdown-title{margin-bottom:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.dropdown-separator{display:block;height:1px;background-color:var(--calcite-ui-border-3)}";const u=class{constructor(e){t(this,e),this.calciteInternalDropdownItemSelect=i(this,"calciteInternalDropdownItemSelect",7),this.calciteInternalDropdownItemKeyEvent=i(this,"calciteInternalDropdownItemKeyEvent",7),this.calciteInternalDropdownCloseRequest=i(this,"calciteInternalDropdownCloseRequest",7),this.active=!1}async setFocus(){var t;null===(t=this.el)||void 0===t||t.focus()}componentWillLoad(){this.initialize()}connectedCallback(){this.initialize()}render(){const t=s(this.el,"scale","m"),i=e("calcite-icon",{class:"dropdown-item-icon-start",flipRtl:"start"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconStart,scale:"s"}),a=e("span",{class:"dropdown-item-content"},e("slot",null)),o=e("calcite-icon",{class:"dropdown-item-icon-end",flipRtl:"end"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconEnd,scale:"s"}),c=this.iconStart&&this.iconEnd?[i,a,o]:this.iconStart?[i,e("slot",null)]:this.iconEnd?[a,o]:a,l=this.href?e("a",{"aria-label":this.label,class:"dropdown-link",href:this.href,ref:t=>this.childLink=t,rel:this.rel,target:this.target},c):c,m=this.href?null:"single"===this.selectionMode?"menuitemradio":"multi"===this.selectionMode?"menuitemcheckbox":"menuitem",d="none"!==this.selectionMode?r(this.active):null;return e(n,{"aria-checked":d,role:m,tabindex:"0"},e("div",{class:{container:!0,"container--link":!!this.href,"container--s":"s"===t,"container--m":"m"===t,"container--l":"l"===t,"container--multi-selection":"multi"===this.selectionMode,"container--single-selection":"single"===this.selectionMode,"container--none-selection":"none"===this.selectionMode}},"none"!==this.selectionMode?e("calcite-icon",{class:"dropdown-item-icon",icon:"multi"===this.selectionMode?"check":"bullet-point",scale:"s"}):null,l))}onClick(){this.emitRequestedItem()}keyDownHandler(t){switch(t.key){case" ":case"Enter":this.emitRequestedItem(),this.href&&this.childLink.click(),t.preventDefault();break;case"Escape":this.calciteInternalDropdownCloseRequest.emit(),t.preventDefault();break;case"Tab":this.calciteInternalDropdownItemKeyEvent.emit({keyboardEvent:t});break;case"ArrowUp":case"ArrowDown":case"Home":case"End":t.preventDefault(),this.calciteInternalDropdownItemKeyEvent.emit({keyboardEvent:t})}}updateActiveItemOnChange(t){t.composedPath().includes(this.parentDropdownGroupEl)&&(this.requestedDropdownGroup=t.detail.requestedDropdownGroup,this.requestedDropdownItem=t.detail.requestedDropdownItem,this.determineActiveItem()),t.stopPropagation()}initialize(){this.selectionMode=s(this.el,"selection-mode","single"),this.parentDropdownGroupEl=this.el.closest("calcite-dropdown-group"),"none"===this.selectionMode&&(this.active=!1)}determineActiveItem(){switch(this.selectionMode){case"multi":this.el===this.requestedDropdownItem&&(this.active=!this.active);break;case"single":this.el===this.requestedDropdownItem?this.active=!0:this.requestedDropdownGroup===this.parentDropdownGroupEl&&(this.active=!1);break;case"none":this.active=!1}}emitRequestedItem(){this.calciteInternalDropdownItemSelect.emit({requestedDropdownItem:this.el,requestedDropdownGroup:this.parentDropdownGroupEl})}get el(){return a(this)}};u.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.container--s{padding-top:0.25rem;padding-bottom:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;-webkit-padding-end:0.5rem;padding-inline-end:0.5rem;-webkit-padding-start:1.5rem;padding-inline-start:1.5rem}.container--m{padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;-webkit-padding-end:0.75rem;padding-inline-end:0.75rem;-webkit-padding-start:2rem;padding-inline-start:2rem}.container--l{padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;-webkit-padding-end:1rem;padding-inline-end:1rem;-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}.container--s.container--none-selection{-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}.container--s.container--none-selection .dropdown-link{-webkit-padding-start:0px;padding-inline-start:0px}.container--m.container--none-selection{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.container--m.container--none-selection .dropdown-link{-webkit-padding-start:0px;padding-inline-start:0px}.container--l.container--none-selection{-webkit-padding-start:0.75rem;padding-inline-start:0.75rem}.container--l.container--none-selection .dropdown-link{-webkit-padding-start:0px;padding-inline-start:0px}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}.container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;cursor:pointer;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;-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);text-align:start}.dropdown-item-content{-ms-flex:1 1 auto;flex:1 1 auto;-webkit-padding-end:auto;padding-inline-end:auto;-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host,.container--link a{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.container--link{padding:0px}.container--link a{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;cursor:pointer;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;-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)}.container--s .dropdown-link{padding-top:0.25rem;padding-bottom:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;-webkit-padding-end:0.5rem;padding-inline-end:0.5rem;-webkit-padding-start:1.5rem;padding-inline-start:1.5rem}.container--m .dropdown-link{padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;-webkit-padding-end:0.75rem;padding-inline-end:0.75rem;-webkit-padding-start:2rem;padding-inline-start:2rem}.container--l .dropdown-link{padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;-webkit-padding-end:1rem;padding-inline-end:1rem;-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}:host(:hover) .container,:host(:active) .container{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host(:hover) .container--link .dropdown-link,:host(:active) .container--link .dropdown-link{color:var(--calcite-ui-text-1)}:host(:focus) .container{color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host(:active) .container{background-color:var(--calcite-ui-foreground-3)}:host(:hover) .container:before,:host(:active) .container:before,:host(:focus) .container:before{opacity:1}:host([active]) .container:not(.container--none-selection),:host([active]) .container--link .dropdown-link{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([active]) .container:not(.container--none-selection):before,:host([active]) .container--link .dropdown-link:before{opacity:1;color:var(--calcite-ui-brand)}:host([active]) .container:not(.container--none-selection) calcite-icon,:host([active]) .container--link .dropdown-link calcite-icon{color:var(--calcite-ui-brand)}.container--multi-selection:before,.container--none-selection:before{display:none}.container--s:before{inset-inline-start:0.5rem}.container--m:before{inset-inline-start:0.75rem}.container--l:before{inset-inline-start:1rem}.dropdown-item-icon{position:absolute;opacity:0;-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-transform:scale(0.9);transform:scale(0.9)}.container--s .dropdown-item-icon{inset-inline-start:0.25rem}.container--m .dropdown-item-icon{inset-inline-start:0.5rem}.container--l .dropdown-item-icon{inset-inline-start:0.75rem}:host(:hover) .dropdown-item-icon{color:var(--calcite-ui-border-1);opacity:1}:host([active]) .dropdown-item-icon{color:var(--calcite-ui-brand);opacity:1}.container--s .dropdown-item-icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem;-webkit-margin-start:0.25rem;margin-inline-start:0.25rem}.container--s .dropdown-item-icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.container--m .dropdown-item-icon-start{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem;-webkit-margin-start:0.25rem;margin-inline-start:0.25rem}.container--m .dropdown-item-icon-end{-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}.container--l .dropdown-item-icon-start{-webkit-margin-end:1rem;margin-inline-end:1rem;-webkit-margin-start:0.25rem;margin-inline-start:0.25rem}.container--l .dropdown-item-icon-end{-webkit-margin-start:1rem;margin-inline-start:1rem}";export{b as calcite_dropdown,k as calcite_dropdown_group,u as calcite_dropdown_item}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.500
|
|
5
|
-
*/
|
|
6
|
-
import{r as t,c as i,h as a,H as e,g as n}from"./p-9c732aa9.js";import{f as r,t as o}from"./p-bd5ec28b.js";import{c as s,d as c,g as l}from"./p-454d8127.js";import{c as d,d as m,H as h}from"./p-25882dfa.js";import{u as p}from"./p-63468c52.js";import"./p-24b76f43.js";const b=class{constructor(a){t(this,a),this.calciteSwitchChange=i(this,"calciteSwitchChange",7),this.disabled=!1,this.scale="m",this.switched=!1,this.checked=!1,this.keyDownHandler=t=>{const i=t.key;this.disabled||" "!==i&&"Enter"!==i||(this.toggle(),t.preventDefault())},this.clickHandler=()=>{this.toggle()},this.setSwitchEl=t=>{this.switchEl=t}}switchedWatcher(t){this.checked=t}async setFocus(){r(this.switchEl)}onLabelClick(){this.disabled||(this.toggle(),this.setFocus())}toggle(){this.checked=!this.checked,this.calciteSwitchChange.emit({switched:this.checked})}connectedCallback(){const t=this.checked||this.switched;t&&(this.switched=this.checked=t),s(this),d(this)}disconnectedCallback(){c(this),m(this)}componentDidRender(){p(this)}render(){return a(e,{onClick:this.clickHandler,onKeyDown:this.keyDownHandler},a("div",{"aria-checked":o(this.checked),"aria-label":l(this),class:"container",ref:this.setSwitchEl,role:"switch",tabIndex:0},a("div",{class:"track"},a("div",{class:"handle"})),a(h,{component:this})))}get el(){return n(this)}static get watchers(){return{switched:["switchedWatcher"]}}};b.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]) .container{height:0.75rem}:host([scale=s]) .track{height:0.75rem;width:1.5rem}:host([scale=s]) .handle{height:0.5rem;width:0.5rem}:host([scale=m]) .container{height:1rem}:host([scale=m]) .track{height:1rem;width:2rem}:host([scale=m]) .handle{height:0.75rem;width:0.75rem}:host([scale=l]) .container{height:1.5rem}:host([scale=l]) .track{height:1.5rem;width:3rem}:host([scale=l]) .handle{height:1.25rem;width:1.25rem}:host{position:relative;display:inline-block;width:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host{width:auto;outline-color:transparent}.track{pointer-events:none;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;border-radius:9999px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-2);vertical-align:top;-webkit-transition-property:all;transition-property:all;-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)}.handle{pointer-events:none;position:absolute;display:block;border-radius:9999px;border-width:2px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);-webkit-transition-property:all;transition-property:all;-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);top:-1px;inset-inline:-1px auto}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([checked]) .track{border-color:var(--calcite-ui-brand-hover);background-color:var(--calcite-ui-brand)}:host([checked]) .handle{border-color:var(--calcite-ui-brand);inset-inline:auto -1px}:host([checked]:hover) .track{border-color:var(--calcite-ui-brand-hover);background-color:var(--calcite-ui-brand)}:host([checked]:hover) .handle{border-color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}@media (forced-colors: active){:host([checked]) .track{background-color:canvasText}}.container:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{b as calcite_switch}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(r,t,e,n){function o(r){return r instanceof e?r:new e((function(t){t(r)}))}return new(e||(e=Promise))((function(e,i){function u(r){try{l(n.next(r))}catch(r){i(r)}}function a(r){try{l(n["throw"](r))}catch(r){i(r)}}function l(r){r.done?e(r.value):o(r.value).then(u,a)}l((n=n.apply(r,t||[])).next())}))};var __generator=this&&this.__generator||function(r,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(r){return function(t){return l([r,t])}}function l(u){if(n)throw new TypeError("Generator is already executing.");while(e)try{if(n=1,o&&(i=u[0]&2?o["return"]:u[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;if(o=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;o=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1];i=u;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(u);break}if(i[2])e.ops.pop();e.trys.pop();continue}u=t.call(r,e)}catch(r){u=[6,r];o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,t,e){if(e||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return r.concat(i||Array.prototype.slice.call(t))};
|
|
2
|
-
/*!
|
|
3
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
* v1.0.0-next.500
|
|
6
|
-
*/System.register(["./p-a092a0ea.system.js"],(function(r){"use strict";var t;return{setters:[function(r){t=r.g}],execute:function(){r({a:f,b:c,c:m,d:s,e:a,f:g,g:_,h:h,i:p,j:T,k:k,n:l,q:y,s:q,t:x});var e="calcite-theme-auto";var n="calcite-theme-dark";var o="calcite-theme-light";var i=r("C",{autoTheme:e,darkTheme:n,lightTheme:o,rtl:"calcite--rtl"});var u=r("T",{loading:"Loading"});function a(r){if(!r){return""}return r.id=r.id||"".concat(r.tagName.toLowerCase(),"-").concat(t())}function l(r){return Array.isArray(r)?r:Array.from(r)}function c(r){var t=m(r,".".concat(i.darkTheme,", .").concat(i.lightTheme));return(t===null||t===void 0?void 0:t.classList.contains("calcite-theme-dark"))?"dark":"light"}function f(r){var t="dir";var e="[".concat(t,"]");var n=m(r,e);return n?n.getAttribute(t):"ltr"}function s(r,t,e){var n="[".concat(t,"]");var o=r.closest(n);return o?o.getAttribute(t):e}function d(r){return r.getRootNode()}function v(r){return r.host||null}function h(r,t){function e(r,n){if(!r){return n}if(r.assignedSlot){r=r.assignedSlot}var o=d(r);var i=Array.from(o.querySelectorAll(t));var u=i.filter((function(r){return!n.includes(r)}));n=__spreadArray(__spreadArray([],n,true),u,true);var a=v(o);return a?e(a,n):n}return e(r,[])}function y(r,t){var e=t.selector,n=t.id;function o(r){if(!r){return null}if(r.assignedSlot){r=r.assignedSlot}var t=d(r);var i=n?"getElementById"in t?t.getElementById(n):null:e?t.querySelector(e):null;var u=v(t);return i?i:u?o(u):null}return o(r)}function m(r,t){function e(r){return r?r.closest(t)||e(v(d(r))):null}return e(r)}function p(r){return typeof(r===null||r===void 0?void 0:r.setFocus)==="function"}function g(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!r){return[2]}return[2,p(r)?r.setFocus():r.focus()]}))}))}var A=":not([slot])";function _(r,t,e){if(t&&!Array.isArray(t)&&typeof t!=="string"){e=t;t=null}var n=t?Array.isArray(t)?t.map((function(r){return'[slot="'.concat(r,'"]')})).join(","):'[slot="'.concat(t,'"]'):A;if(e===null||e===void 0?void 0:e.all){return w(r,n,e)}return S(r,n,e)}function b(r,t){return r?Array.from(r.children||[]).filter((function(r){return r===null||r===void 0?void 0:r.matches(t)})):[]}function w(r,t,e){var n=t===A?b(r,A):Array.from(r.querySelectorAll(t));n=e&&e.direct===false?n:n.filter((function(t){return t.parentElement===r}));n=(e===null||e===void 0?void 0:e.matches)?n.filter((function(r){return r===null||r===void 0?void 0:r.matches(e.matches)})):n;var o=e===null||e===void 0?void 0:e.selector;return o?n.map((function(r){return Array.from(r.querySelectorAll(o))})).reduce((function(r,t){return __spreadArray(__spreadArray([],r,true),t,true)}),[]).filter((function(r){return!!r})):n}function S(r,t,e){var n=t===A?b(r,A)[0]||null:r.querySelector(t);n=e&&e.direct===false?n:(n===null||n===void 0?void 0:n.parentElement)===r?n:null;n=(e===null||e===void 0?void 0:e.matches)?(n===null||n===void 0?void 0:n.matches(e.matches))?n:null:n;var o=e===null||e===void 0?void 0:e.selector;return o?n===null||n===void 0?void 0:n.querySelector(o):n}function k(r,t){return Array.from(r.children).filter((function(r){return r.matches(t)}))}function q(r,t,e){if(typeof t==="string"&&t!==""){return t}else if(t===""){return r[e]}}function T(r,t){return!(t.left>r.right||t.right<r.left||t.top>r.bottom||t.bottom<r.top)}function x(r){return Boolean(r).toString()}}}}));
|