@esri/calcite-components 1.0.0-next.554 → 1.0.0-next.557
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 +2 -1
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-952a0e45.js → p-01bbc68a.js} +2 -2
- package/dist/calcite/{p-03246ab8.js → p-0323edd5.js} +2 -2
- package/dist/calcite/p-03abc90c.system.entry.js +6 -0
- package/dist/calcite/p-050bccd2.system.entry.js +6 -0
- package/dist/calcite/{p-25609078.js → p-053d6f2d.js} +2 -2
- package/dist/calcite/p-089c4e7a.system.js +6 -0
- package/dist/calcite/p-08cd0042.js +6 -0
- package/dist/calcite/p-098e2929.system.entry.js +6 -0
- package/dist/calcite/p-09e36a8f.system.entry.js +6 -0
- package/dist/calcite/{p-22872d72.js → p-0b2dbf1f.js} +1 -1
- package/dist/calcite/p-0b6e742e.system.js +6 -0
- package/dist/calcite/p-0de90ca3.system.entry.js +6 -0
- package/dist/calcite/{p-6b97256e.js → p-0f719968.js} +1 -1
- package/dist/calcite/p-10837290.entry.js +6 -0
- package/dist/calcite/p-13d514c2.system.entry.js +6 -0
- package/dist/calcite/{p-046fcb0c.entry.js → p-1442423a.entry.js} +2 -2
- package/dist/calcite/p-14661dbd.system.entry.js +6 -0
- package/dist/calcite/{p-d9369914.entry.js → p-16755058.entry.js} +2 -2
- package/dist/calcite/p-179814ff.system.entry.js +6 -0
- package/dist/calcite/p-185bbebe.system.entry.js +6 -0
- package/dist/calcite/p-186e9072.entry.js +6 -0
- package/dist/calcite/{p-5bcc6e36.system.entry.js → p-18a217bd.system.entry.js} +2 -2
- package/dist/calcite/{p-7e022b1b.js → p-1bdc083e.js} +2 -2
- package/dist/calcite/p-1c6bc78e.entry.js +6 -0
- package/dist/calcite/p-1d8a659f.entry.js +6 -0
- package/dist/calcite/{p-43758c02.system.js → p-1f7bcb20.system.js} +1 -1
- package/dist/calcite/p-1fa0d6dc.system.entry.js +6 -0
- package/dist/calcite/{p-1abbbcc2.system.js → p-207b9ac8.system.js} +2 -2
- package/dist/calcite/p-2397e51c.system.entry.js +6 -0
- package/dist/calcite/{p-3ee2d78c.system.entry.js → p-259901ca.system.entry.js} +2 -2
- package/dist/calcite/{p-a9964dd8.js → p-267cfd6f.js} +1 -1
- package/dist/calcite/p-27292a37.entry.js +6 -0
- package/dist/calcite/{p-ed4d9df0.js → p-28eb7892.js} +1 -1
- package/dist/calcite/p-2bcbe086.system.entry.js +6 -0
- package/dist/calcite/p-2e486788.system.js +6 -0
- package/dist/calcite/p-2fa04db0.entry.js +6 -0
- package/dist/calcite/p-33798ba6.entry.js +6 -0
- package/dist/calcite/p-34c56af0.system.js +6 -0
- package/dist/calcite/p-34fc3044.system.js +6 -0
- package/dist/calcite/{p-37d12dd9.system.js → p-362017b2.system.js} +1 -1
- package/dist/calcite/p-36800b66.entry.js +6 -0
- package/dist/calcite/{p-7f2a8028.system.entry.js → p-38996036.system.entry.js} +2 -2
- package/dist/calcite/p-38f0718c.entry.js +6 -0
- package/dist/calcite/{p-1ea993fc.system.entry.js → p-3a0ac767.system.entry.js} +2 -2
- package/dist/calcite/p-3afee225.system.entry.js +6 -0
- package/dist/calcite/p-3b36d84f.system.entry.js +6 -0
- package/dist/calcite/p-3cb0bba0.system.entry.js +6 -0
- package/dist/calcite/p-3d2c9fb7.entry.js +6 -0
- package/dist/calcite/p-3e4cdc64.system.entry.js +6 -0
- package/dist/calcite/p-3f0a88a5.js +6 -0
- package/dist/calcite/{p-ea0927b7.system.js → p-430ddb64.system.js} +1 -1
- package/dist/calcite/p-43e54a04.entry.js +6 -0
- package/dist/calcite/{p-242c5e9a.entry.js → p-44e87d25.entry.js} +2 -2
- package/dist/calcite/p-473cdc07.js +6 -0
- package/dist/calcite/p-485002f2.system.entry.js +6 -0
- package/dist/calcite/p-489fa1b0.entry.js +6 -0
- package/dist/calcite/{p-6e82d8e3.system.js → p-4918e784.system.js} +2 -2
- package/dist/calcite/{p-88547c90.system.js → p-4ab1e412.system.js} +1 -1
- package/dist/calcite/{p-18ff9a7f.system.js → p-4b690d1f.system.js} +1 -1
- package/dist/calcite/{p-7d192d44.js → p-4d7092d7.js} +2 -2
- package/dist/calcite/{p-a93a9d60.js → p-500e5bfd.js} +2 -2
- package/dist/calcite/p-5276d2f5.system.entry.js +6 -0
- package/dist/calcite/p-5431b506.entry.js +6 -0
- package/dist/calcite/p-549fb66c.system.entry.js +6 -0
- package/dist/calcite/{p-8b2dc670.js → p-57e3ec6e.js} +1 -1
- package/dist/calcite/{p-5e65a668.js → p-57e5742a.js} +1 -1
- package/dist/calcite/p-58bfb933.entry.js +6 -0
- package/dist/calcite/p-5a80d1d7.entry.js +6 -0
- package/dist/calcite/{p-a7beca8b.system.entry.js → p-5bbc365f.system.entry.js} +2 -2
- package/dist/calcite/{p-9a62cc07.system.js → p-5ca05270.system.js} +3 -3
- package/dist/calcite/p-5e3d1c69.entry.js +6 -0
- package/dist/calcite/p-619fd20d.entry.js +6 -0
- package/dist/calcite/{p-d51e133d.system.js → p-662db081.system.js} +1 -1
- package/dist/calcite/{p-ddaf0771.system.entry.js → p-6707dfe7.system.entry.js} +2 -2
- package/dist/calcite/{p-cbad651b.system.entry.js → p-6862e6df.system.entry.js} +2 -2
- package/dist/calcite/{p-51b04300.system.js → p-69ae393b.system.js} +2 -2
- package/dist/calcite/p-6a495e2f.entry.js +6 -0
- package/dist/calcite/{p-432d465a.system.js → p-6e6c766d.system.js} +1 -1
- package/dist/calcite/{p-2022a888.system.js → p-6f4a290e.system.js} +1 -1
- package/dist/calcite/p-72ae6659.system.entry.js +6 -0
- package/dist/calcite/p-7505e5f2.entry.js +6 -0
- package/dist/calcite/p-75bdaf1d.entry.js +6 -0
- package/dist/calcite/p-7688a4d8.system.entry.js +6 -0
- package/dist/calcite/{p-39f470d6.system.js → p-7750cf69.system.js} +2 -2
- package/dist/calcite/p-77ba3a75.entry.js +6 -0
- package/dist/calcite/p-79819ce2.entry.js +6 -0
- package/dist/calcite/p-799d6510.entry.js +6 -0
- package/dist/calcite/p-7bd363bf.system.entry.js +6 -0
- package/dist/calcite/p-7e29926c.entry.js +6 -0
- package/dist/calcite/p-83b0e6fa.system.entry.js +6 -0
- package/dist/calcite/p-85b7d575.entry.js +6 -0
- package/dist/calcite/p-8d3fc4ee.entry.js +6 -0
- package/dist/calcite/{p-f0edee04.system.js → p-8de36feb.system.js} +2 -2
- package/dist/calcite/{p-6f028d65.system.js → p-8eeb2705.system.js} +1 -1
- package/dist/calcite/p-913c10d7.entry.js +6 -0
- package/dist/calcite/p-92882341.entry.js +6 -0
- package/dist/calcite/{p-4a7b0eeb.system.entry.js → p-9394f514.system.entry.js} +2 -2
- package/dist/calcite/p-967ab5ce.js +7 -0
- package/dist/calcite/p-9689d57a.system.entry.js +6 -0
- package/dist/calcite/p-986a7d1a.entry.js +6 -0
- package/dist/calcite/p-995ea165.system.js +6 -0
- package/dist/calcite/p-9e69eb69.entry.js +6 -0
- package/dist/calcite/p-9f078008.system.entry.js +6 -0
- package/dist/calcite/p-9ff5036d.system.entry.js +6 -0
- package/dist/calcite/p-a000afc0.system.entry.js +6 -0
- package/dist/calcite/{p-c5772a30.js → p-a0e5b18f.js} +1 -1
- package/dist/calcite/p-a1049719.system.entry.js +6 -0
- package/dist/calcite/p-a52a7b0a.system.entry.js +6 -0
- package/dist/calcite/p-a562f13f.js +6 -0
- package/dist/calcite/p-a6d0a409.system.entry.js +6 -0
- package/dist/calcite/p-a70ed6e7.entry.js +6 -0
- package/dist/calcite/p-a71d58b7.entry.js +6 -0
- package/dist/calcite/p-a96bd824.system.entry.js +6 -0
- package/dist/calcite/p-ad4f2930.system.entry.js +6 -0
- package/dist/calcite/p-ae9b373a.entry.js +6 -0
- package/dist/calcite/{p-db665163.system.js → p-b271e062.system.js} +1 -1
- package/dist/calcite/p-b3c760e0.system.entry.js +6 -0
- package/dist/calcite/{p-e81770d4.system.entry.js → p-b4b3b61e.entry.js} +3 -3
- package/dist/calcite/p-b4d9bf86.system.entry.js +6 -0
- package/dist/calcite/{p-f8346f59.entry.js → p-b60feb71.entry.js} +2 -2
- package/dist/calcite/p-b78f9b9f.entry.js +6 -0
- package/dist/calcite/{p-82034b70.js → p-bc9318f3.js} +1 -1
- package/dist/calcite/{p-e364f001.js → p-bd07abeb.js} +1 -1
- package/dist/calcite/p-bd29bacb.system.js +7 -0
- package/dist/calcite/p-be784116.entry.js +6 -0
- package/dist/calcite/p-bf1e9f67.entry.js +6 -0
- package/dist/calcite/p-c05c774d.system.entry.js +6 -0
- package/dist/calcite/{p-253816b8.entry.js → p-c0ca417e.entry.js} +2 -2
- package/dist/calcite/p-c14e1f09.system.entry.js +6 -0
- package/dist/calcite/p-c1dcd3cb.system.entry.js +6 -0
- package/dist/calcite/p-c3ce9178.entry.js +6 -0
- package/dist/calcite/p-c69f0a78.entry.js +6 -0
- package/dist/calcite/{p-8aba1b16.system.js → p-c80f7567.system.js} +1 -1
- package/dist/calcite/{p-0671663f.js → p-c8ba1f6a.js} +1 -1
- package/dist/calcite/p-c8c3e524.system.entry.js +6 -0
- package/dist/calcite/p-ca31a5e2.entry.js +6 -0
- package/dist/calcite/p-cf78df6d.system.entry.js +6 -0
- package/dist/calcite/p-d0047de8.system.entry.js +6 -0
- package/dist/calcite/p-d4cde041.entry.js +6 -0
- package/dist/calcite/p-d4f13b3d.entry.js +6 -0
- package/dist/calcite/{p-39f7c8c6.system.js → p-d5e345ee.system.js} +1 -1
- package/dist/calcite/p-d6ad752f.js +6 -0
- package/dist/calcite/{p-646b0c31.entry.js → p-d77e1a0d.entry.js} +2 -2
- package/dist/calcite/p-d7f6ea6f.system.entry.js +6 -0
- package/dist/calcite/p-da0db093.system.entry.js +6 -0
- package/dist/calcite/p-db473b43.system.entry.js +6 -0
- package/dist/calcite/p-dfb05eff.system.entry.js +6 -0
- package/dist/calcite/p-e0afa4c7.entry.js +6 -0
- package/dist/calcite/p-e12c0332.system.entry.js +6 -0
- package/dist/calcite/{p-a917f729.system.js → p-e307f02b.system.js} +2 -2
- package/dist/calcite/p-e3b5f2ef.entry.js +6 -0
- package/dist/calcite/{p-ed222b79.js → p-e5d86cd5.js} +1 -1
- package/dist/calcite/p-e664273e.js +6 -0
- package/dist/calcite/p-e880847f.entry.js +6 -0
- package/dist/calcite/{p-1671dfb1.js → p-ebe9283f.js} +2 -2
- package/dist/calcite/{p-edbae867.system.js → p-ec260be5.system.js} +2 -2
- package/dist/calcite/{p-4b0ecbf9.system.entry.js → p-ed3d5173.system.entry.js} +2 -2
- package/dist/calcite/p-ed77bad5.system.entry.js +6 -0
- package/dist/calcite/p-ed94b31e.entry.js +6 -0
- package/dist/calcite/p-f09b2cde.system.entry.js +6 -0
- package/dist/calcite/{p-7218723c.entry.js → p-f2f938ed.entry.js} +2 -2
- package/dist/calcite/p-f3570229.system.entry.js +6 -0
- package/dist/calcite/{p-a080a428.system.js → p-f505b966.system.js} +1 -1
- package/dist/calcite/{p-36fe38e0.entry.js → p-f585e174.entry.js} +2 -2
- package/dist/calcite/p-f5c4d4d1.system.entry.js +6 -0
- package/dist/calcite/{p-c1fc9977.js → p-f65ef845.js} +1 -1
- package/dist/calcite/{p-7e5a2e0c.entry.js → p-f7dbcbb8.entry.js} +2 -2
- package/dist/calcite/p-f8f14c87.entry.js +6 -0
- package/dist/calcite/{p-beb8dc08.js → p-f92ce833.js} +1 -1
- package/dist/calcite/p-f9f5fb51.entry.js +6 -0
- package/dist/calcite/{p-0b906eba.system.js → p-fb20f3c6.system.js} +1 -1
- package/dist/calcite/p-fb294b8e.entry.js +6 -0
- package/dist/calcite/p-fbf72dda.system.entry.js +6 -0
- package/dist/calcite/{p-310d558b.entry.js → p-fc817fa2.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-b628a6fb.js → ExpandToggle-c870fade.js} +5 -5
- package/dist/cjs/{Heading-ec59a634.js → Heading-17afc80c.js} +2 -2
- package/dist/cjs/app-globals-e1b88841.js +50 -0
- package/dist/cjs/{array-e882eb18.js → array-731bcbb2.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +9 -8
- package/dist/cjs/calcite-action-bar.cjs.entry.js +11 -10
- package/dist/cjs/calcite-action-group.cjs.entry.js +9 -8
- package/dist/cjs/calcite-action-menu.cjs.entry.js +55 -42
- package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -9
- package/dist/cjs/calcite-action.cjs.entry.js +7 -6
- package/dist/cjs/calcite-alert.cjs.entry.js +7 -6
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -5
- package/dist/cjs/calcite-block_2.cjs.entry.js +11 -9
- package/dist/cjs/calcite-button.cjs.entry.js +9 -8
- package/dist/cjs/calcite-card.cjs.entry.js +7 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -8
- package/dist/cjs/calcite-chip.cjs.entry.js +7 -6
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +15 -13
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +20 -14
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +17 -16
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +16 -10
- package/dist/cjs/calcite-fab.cjs.entry.js +6 -5
- package/dist/cjs/calcite-filter.cjs.entry.js +8 -7
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +21 -19
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -4
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -5
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +8 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +19 -13
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -4
- package/dist/cjs/calcite-input-number.cjs.entry.js +14 -13
- package/dist/cjs/calcite-input-text.cjs.entry.js +11 -10
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +15 -18
- package/dist/cjs/calcite-input.cjs.entry.js +14 -13
- package/dist/cjs/calcite-label.cjs.entry.js +6 -5
- package/dist/cjs/calcite-link.cjs.entry.js +7 -6
- package/dist/cjs/calcite-list_3.cjs.entry.js +9 -8
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +8 -7
- package/dist/cjs/calcite-notice.cjs.entry.js +8 -7
- package/dist/cjs/calcite-option_3.cjs.entry.js +9 -8
- package/dist/cjs/calcite-pagination.cjs.entry.js +5 -5
- package/dist/cjs/calcite-panel.cjs.entry.js +10 -9
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +12 -11
- package/dist/cjs/calcite-popover_2.cjs.entry.js +17 -10
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-radio-button.cjs.entry.js +17 -16
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +19 -18
- package/dist/cjs/calcite-rating.cjs.entry.js +17 -16
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -7
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +9 -4
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +6 -5
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -9
- package/dist/cjs/calcite-tab_4.cjs.entry.js +63 -21
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -7
- package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -7
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +12 -6
- package/dist/cjs/calcite-tree_2.cjs.entry.js +11 -10
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -11
- package/dist/cjs/calcite.cjs.js +7 -4
- package/dist/cjs/{conditionalSlot-74bd80f2.js → conditionalSlot-dc6359e0.js} +3 -3
- package/dist/cjs/{debounce-b78e172c.js → debounce-7d685f39.js} +1 -1
- package/dist/cjs/{dom-e2fc17b1.js → dom-4efc4df7.js} +4 -18
- package/dist/cjs/{filter-1690cfee.js → filter-79a805e9.js} +2 -2
- package/dist/cjs/{floating-ui-dcd8a8ad.js → floating-ui-d1c220ca.js} +59 -10
- package/dist/cjs/{form-50cfa01d.js → form-3f0e0679.js} +3 -3
- package/dist/cjs/{guid-7f6810c7.js → guid-7ce1e44f.js} +1 -1
- package/dist/cjs/{index-7117bc67.js → index-e05dafb0.js} +10 -5
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-2f6429b5.js → interactive-dcbc4725.js} +1 -1
- package/dist/cjs/{interfaces-6fd77f95.js → interfaces-8778d49d.js} +1 -1
- package/dist/cjs/{key-a88e22b7.js → key-b77dd9e1.js} +1 -1
- package/dist/cjs/{label-7bac2db2.js → label-6297b9e1.js} +2 -2
- package/dist/cjs/loader.cjs.js +7 -4
- package/dist/cjs/{locale-5d369405.js → locale-8baef0cd.js} +2 -2
- package/dist/cjs/{math-36ae917d.js → math-e5bb2fa2.js} +1 -1
- package/dist/cjs/{observers-68700b83.js → observers-edab9098.js} +1 -1
- package/dist/cjs/{openCloseComponent-93e2a9f0.js → openCloseComponent-8b7f305e.js} +1 -1
- package/dist/cjs/{resources-15e23e3b.js → resources-01597c65.js} +1 -1
- package/dist/cjs/resources-198c6f21.js +24 -0
- package/dist/cjs/{resources-a2ec29a3.js → resources-b0217622.js} +3 -3
- package/dist/cjs/{resources-754908f1.js → resources-d70c9d00.js} +5 -5
- package/dist/cjs/{resources-e656d522.js → resources-ebab5fd6.js} +1 -1
- package/dist/cjs/{sortable.esm-0bc0f2ec.js → sortable.esm-7290c83b.js} +1 -1
- package/dist/cjs/{utils-7686a8b9.js → utils-ccab61d8.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/accordion/accordion.js +2 -2
- package/dist/collection/components/accordion/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.css +1 -1
- package/dist/collection/components/action-menu/action-menu.js +45 -32
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/alert/interfaces.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +3 -2
- 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 +3 -2
- 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 +6 -5
- 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 +2 -2
- 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 +8 -3
- 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 +4 -3
- 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 +6 -5
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +9 -4
- package/dist/collection/components/dropdown/interfaces.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/interfaces.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/interfaces.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/interfaces.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/interfaces.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +8 -3
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/interfaces.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
- package/dist/collection/components/interfaces.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/interfaces.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +2 -2
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +3 -2
- package/dist/collection/components/popover/popover.js +8 -3
- 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 +20 -20
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +13 -13
- package/dist/collection/components/radio-group/interfaces.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +19 -19
- package/dist/collection/components/radio-group-item/radio-group-item.js +9 -9
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.css +1 -1
- package/dist/collection/components/rating/rating.js +21 -21
- 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 +4 -3
- 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 +8 -3
- 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 +4 -3
- package/dist/collection/components/tab/interfaces.js +1 -1
- package/dist/collection/components/tab/tab.css +2 -2
- package/dist/collection/components/tab/tab.js +51 -6
- package/dist/collection/components/tab-nav/tab-nav.css +4 -0
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.css +8 -8
- package/dist/collection/components/tab-title/tab-title.js +54 -11
- 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 +6 -10
- 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 +8 -3
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/interfaces.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/interfaces.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +17 -0
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +3 -3
- package/dist/collection/utils/theme.js +31 -0
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +2 -2
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +2 -2
- package/dist/components/action-menu.js +44 -31
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +3 -3
- package/dist/components/calcite-accordion-item.js +2 -2
- package/dist/components/calcite-accordion.js +2 -2
- package/dist/components/calcite-action-bar.js +2 -2
- 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 +2 -2
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +2 -2
- package/dist/components/calcite-avatar.js +2 -2
- package/dist/components/calcite-block-section.js +4 -3
- package/dist/components/calcite-block.js +2 -2
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +3 -3
- 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 +7 -6
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +2 -2
- package/dist/components/calcite-combobox.js +10 -5
- 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 +2 -2
- 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 +3 -3
- package/dist/components/calcite-input-date-picker.js +10 -5
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +3 -3
- package/dist/components/calcite-input-text.js +3 -3
- package/dist/components/calcite-input-time-picker.js +2 -2
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +2 -2
- 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 +2 -2
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +2 -2
- package/dist/components/calcite-notice.js +2 -2
- 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 +2 -2
- package/dist/components/calcite-pick-list-group.js +2 -2
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +2 -2
- 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 +6 -6
- package/dist/components/calcite-radio-button.js +11 -11
- package/dist/components/calcite-radio-group-item.js +4 -4
- package/dist/components/calcite-radio-group.js +11 -11
- package/dist/components/calcite-rating.js +10 -10
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +2 -2
- package/dist/components/calcite-shell-center-row.js +2 -2
- package/dist/components/calcite-shell-panel.js +2 -2
- package/dist/components/calcite-shell.js +2 -2
- package/dist/components/calcite-slider.js +5 -4
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +7 -2
- 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 +2 -2
- package/dist/components/calcite-tip.js +2 -2
- package/dist/components/calcite-tooltip-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +8 -3
- package/dist/components/calcite-tree-item.js +2 -2
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +2 -2
- package/dist/components/calcite-value-list.js +2 -2
- package/dist/components/checkbox.js +4 -3
- package/dist/components/chip.js +2 -2
- package/dist/components/color-picker-hex-input.js +2 -2
- package/dist/components/color-picker-swatch.js +2 -2
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +5 -4
- package/dist/components/date-picker-month-header.js +7 -6
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +2 -2
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +2 -2
- package/dist/components/dropdown.js +9 -4
- package/dist/components/filter.js +168 -741
- package/dist/components/filter2.js +741 -168
- package/dist/components/floating-ui.js +60 -11
- package/dist/components/form.js +2 -2
- 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 +2 -2
- package/dist/components/index.d.ts +92 -5
- package/dist/components/index.js +136 -1
- package/dist/components/input.js +3 -3
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +87 -112
- package/dist/components/label2.js +112 -87
- package/dist/components/link.js +2 -2
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/pick-list-item.js +2 -2
- package/dist/components/popover.js +10 -4
- 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 +2 -2
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +5 -4
- package/dist/components/tab-nav.js +3 -3
- package/dist/components/tab-title.js +33 -12
- package/dist/components/tab.js +27 -5
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +2 -2
- package/dist/components/time-picker.js +6 -10
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/custom-elements/index.js +306 -136
- package/dist/esm/{ExpandToggle-69ec09b9.js → ExpandToggle-f12a7145.js} +5 -5
- package/dist/esm/{Heading-1227633c.js → Heading-ca8012f3.js} +2 -2
- package/dist/esm/app-globals-0dea7c34.js +48 -0
- package/dist/esm/{array-513cf8c9.js → array-8f37a85a.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +8 -7
- package/dist/esm/calcite-action-bar.entry.js +11 -10
- package/dist/esm/calcite-action-group.entry.js +9 -8
- package/dist/esm/calcite-action-menu.entry.js +48 -35
- package/dist/esm/calcite-action-pad.entry.js +10 -9
- package/dist/esm/calcite-action.entry.js +7 -6
- package/dist/esm/calcite-alert.entry.js +7 -6
- package/dist/esm/calcite-avatar.entry.js +6 -5
- package/dist/esm/calcite-block_2.entry.js +11 -9
- package/dist/esm/calcite-button.entry.js +9 -8
- package/dist/esm/calcite-card.entry.js +7 -6
- package/dist/esm/calcite-checkbox.entry.js +10 -8
- package/dist/esm/calcite-chip.entry.js +7 -6
- package/dist/esm/calcite-color-picker_3.entry.js +15 -13
- package/dist/esm/calcite-combobox_3.entry.js +20 -14
- package/dist/esm/calcite-date-picker_4.entry.js +16 -15
- package/dist/esm/calcite-dropdown_3.entry.js +16 -10
- package/dist/esm/calcite-fab.entry.js +6 -5
- package/dist/esm/calcite-filter.entry.js +8 -7
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +13 -11
- package/dist/esm/calcite-handle.entry.js +5 -4
- package/dist/esm/calcite-icon.entry.js +6 -5
- package/dist/esm/calcite-inline-editable.entry.js +8 -7
- package/dist/esm/calcite-input-date-picker.entry.js +19 -13
- package/dist/esm/calcite-input-message.entry.js +5 -4
- package/dist/esm/calcite-input-number.entry.js +12 -11
- package/dist/esm/calcite-input-text.entry.js +9 -8
- package/dist/esm/calcite-input-time-picker_2.entry.js +15 -18
- package/dist/esm/calcite-input.entry.js +12 -11
- package/dist/esm/calcite-label.entry.js +6 -5
- package/dist/esm/calcite-link.entry.js +6 -5
- package/dist/esm/calcite-list_3.entry.js +9 -8
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +8 -7
- package/dist/esm/calcite-notice.entry.js +8 -7
- package/dist/esm/calcite-option_3.entry.js +9 -8
- package/dist/esm/calcite-pagination.entry.js +5 -5
- package/dist/esm/calcite-panel.entry.js +10 -9
- package/dist/esm/calcite-pick-list_3.entry.js +12 -11
- package/dist/esm/calcite-popover_2.entry.js +17 -10
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +8 -8
- package/dist/esm/calcite-radio-button.entry.js +17 -16
- package/dist/esm/calcite-radio-group_2.entry.js +19 -18
- package/dist/esm/calcite-rating.entry.js +17 -16
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +8 -7
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +9 -4
- package/dist/esm/calcite-stepper_2.entry.js +6 -5
- package/dist/esm/calcite-switch.entry.js +11 -9
- package/dist/esm/calcite-tab_4.entry.js +63 -21
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +8 -7
- package/dist/esm/calcite-tip_3.entry.js +8 -7
- package/dist/esm/calcite-tooltip_2.entry.js +12 -6
- package/dist/esm/calcite-tree_2.entry.js +7 -6
- package/dist/esm/calcite-value-list_2.entry.js +12 -11
- package/dist/esm/calcite.js +7 -4
- package/dist/esm/{conditionalSlot-7cbccbec.js → conditionalSlot-a4c96c8d.js} +3 -3
- package/dist/esm/{debounce-db1af9ca.js → debounce-841521b1.js} +1 -1
- package/dist/esm/{dom-e671177c.js → dom-42491565.js} +4 -16
- package/dist/esm/{filter-345157e1.js → filter-099dc292.js} +2 -2
- package/dist/esm/{floating-ui-93554377.js → floating-ui-f2ddd7c3.js} +59 -10
- package/dist/esm/{form-71cefaff.js → form-ad1965a4.js} +3 -3
- package/dist/esm/{guid-8690cee7.js → guid-73322791.js} +1 -1
- package/dist/esm/{index-30e59418.js → index-06221bfb.js} +10 -5
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-80c1f202.js → interactive-ff1f7f87.js} +1 -1
- package/dist/esm/{interfaces-1256e256.js → interfaces-e7ff50ef.js} +1 -1
- package/dist/esm/{key-c2927cc5.js → key-22a0f143.js} +1 -1
- package/dist/esm/{label-a6c38d9a.js → label-1b193aff.js} +2 -2
- package/dist/esm/loader.js +7 -4
- package/dist/esm/{locale-3445a4ed.js → locale-88c03f90.js} +2 -2
- package/dist/esm/{math-5ab9a082.js → math-e44d4881.js} +1 -1
- package/dist/esm/{observers-47de4039.js → observers-9d4ab86b.js} +1 -1
- package/dist/esm/{openCloseComponent-e51af04e.js → openCloseComponent-56a35411.js} +1 -1
- package/dist/esm/{resources-243c15db.js → resources-414ad2dc.js} +5 -5
- package/dist/esm/{resources-1d2cd423.js → resources-4fe95540.js} +1 -1
- package/dist/esm/resources-8fc2f7f1.js +19 -0
- package/dist/esm/{resources-7ae7fcca.js → resources-ea033965.js} +1 -1
- package/dist/esm/{resources-e6150606.js → resources-f6b51a5c.js} +3 -3
- package/dist/esm/{sortable.esm-1a1f9c05.js → sortable.esm-3ef91fcd.js} +1 -1
- package/dist/esm/{utils-1f54b67d.js → utils-c26a2cd8.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-69ec09b9.js → ExpandToggle-f12a7145.js} +2 -2
- package/dist/esm-es5/Heading-ca8012f3.js +6 -0
- package/dist/esm-es5/app-globals-0dea7c34.js +6 -0
- package/dist/esm-es5/{array-513cf8c9.js → array-8f37a85a.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +3 -3
- package/dist/esm-es5/calcite-action-group.entry.js +2 -2
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +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 +3 -3
- 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 +3 -3
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
- package/dist/esm-es5/calcite-fab.entry.js +3 -3
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
- package/dist/esm-es5/calcite-handle.entry.js +2 -2
- package/dist/esm-es5/calcite-icon.entry.js +2 -2
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
- package/dist/esm-es5/calcite-input-message.entry.js +2 -2
- package/dist/esm-es5/calcite-input-number.entry.js +2 -2
- package/dist/esm-es5/calcite-input-text.entry.js +2 -2
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
- package/dist/esm-es5/calcite-input.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +2 -2
- package/dist/esm-es5/calcite-link.entry.js +3 -3
- package/dist/esm-es5/calcite-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-loader.entry.js +2 -2
- package/dist/esm-es5/calcite-modal.entry.js +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +3 -3
- package/dist/esm-es5/calcite-option_3.entry.js +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +2 -2
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-progress.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
- package/dist/esm-es5/calcite-rating.entry.js +3 -3
- 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 +3 -3
- 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 +3 -3
- 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-7cbccbec.js → conditionalSlot-a4c96c8d.js} +2 -2
- package/dist/esm-es5/{debounce-db1af9ca.js → debounce-841521b1.js} +1 -1
- package/dist/esm-es5/dom-42491565.js +6 -0
- package/dist/esm-es5/{filter-345157e1.js → filter-099dc292.js} +2 -2
- package/dist/esm-es5/floating-ui-f2ddd7c3.js +6 -0
- package/dist/esm-es5/{form-71cefaff.js → form-ad1965a4.js} +2 -2
- package/dist/esm-es5/{guid-8690cee7.js → guid-73322791.js} +1 -1
- package/dist/esm-es5/index-06221bfb.js +7 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-80c1f202.js → interactive-ff1f7f87.js} +1 -1
- package/dist/esm-es5/{interfaces-1256e256.js → interfaces-e7ff50ef.js} +1 -1
- package/dist/esm-es5/{key-c2927cc5.js → key-22a0f143.js} +1 -1
- package/dist/esm-es5/{label-a6c38d9a.js → label-1b193aff.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-3445a4ed.js → locale-88c03f90.js} +2 -2
- package/dist/esm-es5/{math-5ab9a082.js → math-e44d4881.js} +1 -1
- package/dist/esm-es5/{observers-47de4039.js → observers-9d4ab86b.js} +1 -1
- package/dist/esm-es5/{openCloseComponent-e51af04e.js → openCloseComponent-56a35411.js} +1 -1
- package/dist/esm-es5/{resources-243c15db.js → resources-414ad2dc.js} +2 -2
- package/dist/esm-es5/{resources-1d2cd423.js → resources-4fe95540.js} +1 -1
- package/dist/esm-es5/resources-8fc2f7f1.js +6 -0
- package/dist/esm-es5/{resources-7ae7fcca.js → resources-ea033965.js} +1 -1
- package/dist/esm-es5/{resources-e6150606.js → resources-f6b51a5c.js} +2 -2
- package/dist/esm-es5/{sortable.esm-1a1f9c05.js → sortable.esm-3ef91fcd.js} +1 -1
- package/dist/esm-es5/{utils-1f54b67d.js → utils-c26a2cd8.js} +1 -1
- package/dist/extras/docs-json.json +97 -51
- 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/action-menu/action-menu.d.ts +10 -7
- package/dist/types/components/checkbox/checkbox.d.ts +2 -2
- package/dist/types/components/combobox/combobox.d.ts +6 -1
- package/dist/types/components/dropdown/dropdown.d.ts +6 -1
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +6 -1
- package/dist/types/components/pick-list-item/pick-list-item.d.ts +1 -1
- package/dist/types/components/popover/popover.d.ts +6 -1
- package/dist/types/components/radio-button/radio-button.d.ts +13 -13
- package/dist/types/components/radio-button-group/radio-button-group.d.ts +7 -7
- package/dist/types/components/radio-group/radio-group.d.ts +10 -10
- package/dist/types/components/radio-group-item/radio-group-item.d.ts +5 -5
- package/dist/types/components/rating/rating.d.ts +12 -12
- package/dist/types/components/split-button/split-button.d.ts +6 -1
- package/dist/types/components/switch/switch.d.ts +2 -2
- package/dist/types/components/tab/tab.d.ts +8 -0
- package/dist/types/components/tab-title/tab-title.d.ts +11 -2
- package/dist/types/components/tooltip/tooltip.d.ts +6 -1
- package/dist/types/components.d.ts +116 -96
- package/dist/types/utils/form.d.ts +1 -1
- package/dist/types/utils/globalScript.d.ts +6 -0
- package/dist/types/utils/resources.d.ts +2 -0
- package/dist/types/utils/theme.d.ts +4 -0
- package/hydrate/index.js +486 -141
- package/package.json +17 -17
- package/dist/calcite/p-0005ef75.system.entry.js +0 -6
- package/dist/calcite/p-0660f9e4.system.entry.js +0 -6
- package/dist/calcite/p-08f047c5.entry.js +0 -6
- package/dist/calcite/p-0a4daa25.entry.js +0 -6
- package/dist/calcite/p-0d145563.entry.js +0 -6
- package/dist/calcite/p-0e84a8f0.system.js +0 -6
- package/dist/calcite/p-1214606c.entry.js +0 -6
- package/dist/calcite/p-147af54e.system.js +0 -6
- package/dist/calcite/p-15c02b4d.entry.js +0 -6
- package/dist/calcite/p-1a7614ea.entry.js +0 -6
- package/dist/calcite/p-1c2f82cb.system.entry.js +0 -6
- package/dist/calcite/p-1c8efb7e.system.entry.js +0 -6
- package/dist/calcite/p-1d3dd7f9.entry.js +0 -6
- package/dist/calcite/p-1dc4a191.entry.js +0 -6
- package/dist/calcite/p-1e5edb71.system.entry.js +0 -6
- package/dist/calcite/p-21ed952b.entry.js +0 -6
- package/dist/calcite/p-26bcb5b6.entry.js +0 -6
- package/dist/calcite/p-29e02d4a.system.entry.js +0 -6
- package/dist/calcite/p-2cf629e7.entry.js +0 -6
- package/dist/calcite/p-2d32c815.entry.js +0 -6
- package/dist/calcite/p-31c79261.js +0 -6
- package/dist/calcite/p-32bb6f34.system.entry.js +0 -6
- package/dist/calcite/p-34aa9639.entry.js +0 -6
- package/dist/calcite/p-380c33a8.system.entry.js +0 -6
- package/dist/calcite/p-3a3461b7.system.entry.js +0 -6
- package/dist/calcite/p-3cde140e.system.entry.js +0 -6
- package/dist/calcite/p-3eedb285.entry.js +0 -6
- package/dist/calcite/p-407b5ccd.entry.js +0 -6
- package/dist/calcite/p-413ac707.system.entry.js +0 -6
- package/dist/calcite/p-417a4876.entry.js +0 -6
- package/dist/calcite/p-41a8a85b.system.js +0 -7
- package/dist/calcite/p-432f25f1.system.entry.js +0 -6
- package/dist/calcite/p-43c45bf0.system.entry.js +0 -6
- package/dist/calcite/p-44a82107.system.entry.js +0 -6
- package/dist/calcite/p-44f5c854.system.entry.js +0 -6
- package/dist/calcite/p-48f46ccb.system.entry.js +0 -6
- package/dist/calcite/p-4a7c82fa.system.entry.js +0 -6
- package/dist/calcite/p-4d0581c7.system.entry.js +0 -6
- package/dist/calcite/p-4d23859c.entry.js +0 -6
- package/dist/calcite/p-530e2e09.entry.js +0 -6
- package/dist/calcite/p-5574819f.entry.js +0 -6
- package/dist/calcite/p-5e64560b.system.entry.js +0 -6
- package/dist/calcite/p-5e827954.system.entry.js +0 -6
- package/dist/calcite/p-6036d3be.entry.js +0 -6
- package/dist/calcite/p-60b9ce9d.entry.js +0 -6
- package/dist/calcite/p-612a9ce4.entry.js +0 -6
- package/dist/calcite/p-62a71d1c.entry.js +0 -6
- package/dist/calcite/p-64c25d69.system.entry.js +0 -6
- package/dist/calcite/p-6b4f2222.entry.js +0 -6
- package/dist/calcite/p-71b75c5c.entry.js +0 -6
- package/dist/calcite/p-79cf0dfb.system.entry.js +0 -6
- package/dist/calcite/p-7b666121.entry.js +0 -6
- package/dist/calcite/p-7d8724d2.entry.js +0 -6
- package/dist/calcite/p-7ee36106.entry.js +0 -6
- package/dist/calcite/p-7f065745.system.entry.js +0 -6
- package/dist/calcite/p-7fdc1018.js +0 -6
- package/dist/calcite/p-80111cee.system.entry.js +0 -6
- package/dist/calcite/p-86549598.system.entry.js +0 -6
- package/dist/calcite/p-88c3018d.system.entry.js +0 -6
- package/dist/calcite/p-8bc2165c.js +0 -6
- package/dist/calcite/p-8e5c70dd.system.entry.js +0 -6
- package/dist/calcite/p-9028a34c.system.entry.js +0 -6
- package/dist/calcite/p-908a4296.system.entry.js +0 -6
- package/dist/calcite/p-9090481c.entry.js +0 -6
- package/dist/calcite/p-90ce2019.entry.js +0 -6
- package/dist/calcite/p-999ee0c9.entry.js +0 -6
- package/dist/calcite/p-9b6f530b.system.entry.js +0 -6
- package/dist/calcite/p-a0c2ee47.entry.js +0 -6
- package/dist/calcite/p-a500313b.system.entry.js +0 -6
- package/dist/calcite/p-a51a91ac.entry.js +0 -6
- package/dist/calcite/p-a5300168.system.entry.js +0 -6
- package/dist/calcite/p-a608bf11.system.entry.js +0 -6
- package/dist/calcite/p-a65fc836.entry.js +0 -6
- package/dist/calcite/p-a75b930d.system.entry.js +0 -6
- package/dist/calcite/p-a9a7c01e.system.entry.js +0 -6
- package/dist/calcite/p-aa187882.system.entry.js +0 -6
- package/dist/calcite/p-ac51c9e7.entry.js +0 -6
- package/dist/calcite/p-acdf2913.system.entry.js +0 -6
- package/dist/calcite/p-af65ef38.system.entry.js +0 -6
- package/dist/calcite/p-bb0c30b9.entry.js +0 -6
- package/dist/calcite/p-bbb23458.entry.js +0 -6
- package/dist/calcite/p-c4c40ef4.system.entry.js +0 -6
- package/dist/calcite/p-c62b5a52.entry.js +0 -6
- package/dist/calcite/p-c6541f7b.system.entry.js +0 -6
- package/dist/calcite/p-c9d5f9f2.system.entry.js +0 -6
- package/dist/calcite/p-cc3377d6.entry.js +0 -6
- package/dist/calcite/p-cf295ecd.system.entry.js +0 -6
- package/dist/calcite/p-d1b5604c.system.entry.js +0 -6
- package/dist/calcite/p-d1fdb055.entry.js +0 -6
- package/dist/calcite/p-d32b1978.entry.js +0 -6
- package/dist/calcite/p-d35d0c1e.entry.js +0 -6
- package/dist/calcite/p-d368e9f4.entry.js +0 -6
- package/dist/calcite/p-dc8322e2.system.entry.js +0 -6
- package/dist/calcite/p-dd748fa3.system.entry.js +0 -6
- package/dist/calcite/p-df2b5d7b.system.entry.js +0 -6
- package/dist/calcite/p-e4c491ee.system.js +0 -6
- package/dist/calcite/p-e5d09c13.system.entry.js +0 -6
- package/dist/calcite/p-eb6a9bc3.entry.js +0 -6
- package/dist/calcite/p-ec9b83a4.entry.js +0 -6
- package/dist/calcite/p-f0035ea2.system.js +0 -6
- package/dist/calcite/p-f7caf374.entry.js +0 -6
- package/dist/calcite/p-f90993c0.system.entry.js +0 -6
- package/dist/calcite/p-f919e1cc.system.entry.js +0 -6
- package/dist/calcite/p-f932b94d.entry.js +0 -6
- package/dist/calcite/p-f9e2e124.js +0 -6
- package/dist/calcite/p-fbd55f14.entry.js +0 -6
- package/dist/calcite/p-fc403671.entry.js +0 -6
- package/dist/calcite/p-fd5e3207.js +0 -7
- package/dist/esm-es5/Heading-1227633c.js +0 -6
- package/dist/esm-es5/dom-e671177c.js +0 -6
- package/dist/esm-es5/floating-ui-93554377.js +0 -6
- package/dist/esm-es5/index-30e59418.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.557
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as a,g as e}from"./p-
|
|
6
|
+
import{r as t,c as i,h as a,g as e}from"./p-967ab5ce.js";import{u as n}from"./p-bc9318f3.js";const o=class{constructor(a){t(this,a),this.calciteSplitButtonPrimaryClick=i(this,"calciteSplitButtonPrimaryClick",6),this.calciteSplitButtonSecondaryClick=i(this,"calciteSplitButtonSecondaryClick",6),this.appearance="solid",this.color="blue",this.disabled=!1,this.active=!1,this.dropdownIconType="chevron",this.loading=!1,this.overlayPositioning="absolute",this.scale="m",this.width="auto",this.calciteSplitButtonPrimaryClickHandler=t=>this.calciteSplitButtonPrimaryClick.emit(t),this.calciteSplitButtonSecondaryClickHandler=t=>this.calciteSplitButtonSecondaryClick.emit(t)}handleDisabledChange(t){t||(this.active=!1)}activeHandler(){this.disabled&&(this.active=!1)}componentDidRender(){n(this)}render(){return a("div",{class:{"split-button__container":!0,"width-auto":"auto"===this.width,"width-half":"half"===this.width,"width-full":"full"===this.width}},a("calcite-button",{appearance:this.appearance,color:this.color,disabled:this.disabled,"icon-end":this.primaryIconEnd?this.primaryIconEnd:null,"icon-start":this.primaryIconStart?this.primaryIconStart:null,iconFlipRtl:this.primaryIconFlipRtl?this.primaryIconFlipRtl:null,label:this.primaryLabel,loading:this.loading,onClick:this.calciteSplitButtonPrimaryClickHandler,scale:this.scale,splitChild:"primary",type:"button",width:"auto"===this.width?"auto":"full"},this.primaryText),a("div",{class:"split-button__divider-container"},a("div",{class:"split-button__divider"})),a("calcite-dropdown",{active:this.active,disabled:this.disabled,onClick:this.calciteSplitButtonSecondaryClickHandler,overlayPositioning:this.overlayPositioning,placement:"bottom-end",scale:this.scale,width:this.scale},a("calcite-button",{appearance:this.appearance,color:this.color,disabled:this.disabled,"icon-start":this.dropdownIcon,label:this.dropdownLabel,scale:this.scale,slot:"dropdown-trigger",splitChild:"secondary",type:"button"}),a("slot",null)))}get dropdownIcon(){return"chevron"===this.dropdownIconType?"chevronDown":"caret"===this.dropdownIconType?"caretDown":"ellipsis"===this.dropdownIconType?"ellipsis":"handle-vertical"}get el(){return e(this)}static get watchers(){return{disabled:["handleDisabledChange"],active:["activeHandler"]}}};o.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none !important}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:inline-block}:host .split-button__container{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch}:host .split-button__container>calcite-dropdown>calcite-button{block-size:100%;vertical-align:top}:host([appearance=solid]):host([color=blue]){--calcite-split-button-background:var(--calcite-ui-brand);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=solid]):host([color=red]){--calcite-split-button-background:var(--calcite-ui-danger);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=solid]):host([color=neutral]){--calcite-split-button-background:var(--calcite-ui-foreground-3);--calcite-split-button-divider:var(--calcite-ui-text-1)}:host([appearance=solid]):host([color=inverse]){--calcite-split-button-background:var(--calcite-ui-inverse);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=transparent]):host([color=blue]){--calcite-split-button-divider:var(--calcite-ui-brand)}:host([appearance=transparent]):host([color=red]){--calcite-split-button-divider:var(--calcite-ui-danger)}:host([appearance=transparent]):host([color=neutral]){--calcite-split-button-divider:var(--calcite-ui-text-1)}:host([appearance=transparent]):host([color=inverse]){--calcite-split-button-divider:var(--calcite-ui-foreground-1)}:host([appearance=clear]),:host([appearance=transparent]){--calcite-split-button-background:transparent}:host([appearance=outline]){--calcite-split-button-background:var(--calcite-ui-foreground-1)}:host([appearance=clear]):host([color=blue]),:host([appearance=outline]):host([color=blue]){--calcite-split-button-divider:var(--calcite-ui-brand)}:host([appearance=clear]):host([color=red]),:host([appearance=outline]):host([color=red]){--calcite-split-button-divider:var(--calcite-ui-danger)}:host([appearance=clear]):host([color=neutral]),:host([appearance=outline]):host([color=neutral]){--calcite-split-button-divider:var(--calcite-ui-foreground-3)}:host([appearance=clear]):host([color=inverse]),:host([appearance=outline]):host([color=inverse]){--calcite-split-button-divider:var(--calcite-ui-inverse)}.width-auto{inline-size:auto}.width-half{inline-size:50%}.width-full{inline-size:100%}.split-button__divider-container{display:-ms-flexbox;display:flex;inline-size:1px;-ms-flex-align:stretch;align-items:stretch;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background-color:var(--calcite-split-button-background)}.split-button__divider{margin-block:0.25rem;display:inline-block;inline-size:1px;background-color:var(--calcite-split-button-divider)}:host([appearance=outline]) .split-button__divider-container,:host([appearance=clear]) .split-button__divider-container{border-block:1px solid var(--calcite-split-button-divider)}:host([appearance=outline]):hover .split-button__divider-container,:host([appearance=clear]):hover .split-button__divider-container{background-color:var(--calcite-split-button-divider)}:host([appearance=outline]:hover) .split-button__divider-container,:host([appearance=clear]:hover) .split-button__divider-container{background-color:var(--calcite-split-button-divider)}:host([appearance=outline]:focus-within):host([color=blue]),:host([appearance=clear]:focus-within):host([color=blue]){--calcite-split-button-divider:var(--calcite-ui-brand-press)}:host([appearance=outline]:focus-within):host([color=red]),:host([appearance=clear]:focus-within):host([color=red]){--calcite-split-button-divider:var(--calcite-ui-danger-press)}:host([appearance=outline]:focus-within) .split-button__divider-container,:host([appearance=clear]:focus-within) .split-button__divider-container{background-color:var(--calcite-split-button-divider)}:host([disabled]) .split-button__divider-container{opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) calcite-dropdown>calcite-button{pointer-events:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}";export{o as calcite_split_button}
|
|
@@ -0,0 +1,6 @@
|
|
|
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.557
|
|
5
|
+
*/
|
|
6
|
+
import{h as t}from"./p-967ab5ce.js";function e(t){return Math.min(Math.max(Math.ceil(t),1),6)}const r=(e,r)=>{const a=`h${e.level}`;return delete e.level,t(a,{...e},r)};export{r as H,e as c}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,a,r){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function o(e){try{c(r.next(e))}catch(e){n(e)}}function s(e){try{c(r["throw"](e))}catch(e){n(e)}}function c(e){e.done?a(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,i,n,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,i&&(n=o[0]&2?i["return"]:o[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;if(i=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;i=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){a.label=o[1];break}if(o[0]===6&&a.label<n[1]){a.label=n[1];n=o;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(o);break}if(n[2])a.ops.pop();a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e];i=0}finally{r=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,a){if(a||arguments.length===2)for(var r=0,i=t.length,n;r<i;r++){if(n||!(r in t)){if(!n)n=Array.prototype.slice.call(t,0,r);n[r]=t[r]}}return e.concat(n||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.557
|
|
6
|
+
*/System.register(["./p-bd29bacb.system.js","./p-5ca05270.system.js","./p-089c4e7a.system.js","./p-995ea165.system.js","./p-8eeb2705.system.js","./p-d5e345ee.system.js","./p-e307f02b.system.js","./p-0b6e742e.system.js","./p-c80f7567.system.js"],(function(e){"use strict";var t,a,r,i,n,o,s,c,l,d,h,u,f,p,v,g,m,D,y,w,b,x,k,A,R;return{setters:[function(e){t=e.r;a=e.c;r=e.h;i=e.H;n=e.g;o=e.F},function(e){s=e.T;c=e.c;l=e.d;d=e.a;h=e.b;u=e.g;f=e.H;p=e.s;v=e.i;g=e.e;m=e.n;D=e.f;y=e.l;w=e.h},function(e){b=e.a},function(e){x=e.C},function(e){k=e.u},function(e){A=e.i},function(e){R=e.H},function(){},function(){}],execute:function(){var _="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none !important}:host{position:relative;display:inline-block;inline-size:100%;overflow:visible;border-radius:0px;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);background-color:var(--calcite-ui-foreground-1);vertical-align:top}:host([scale=s]){max-inline-size:216px}:host([scale=m]){max-inline-size:286px}:host([scale=l]){max-inline-size:398px}";var C=e("calcite_date_picker",function(){function e(e){var r=this;t(this,e);this.calciteDatePickerChange=a(this,"calciteDatePickerChange",6);this.calciteDatePickerRangeChange=a(this,"calciteDatePickerRangeChange",6);this.intlPrevMonth=s.prevMonth;this.intlNextMonth=s.nextMonth;this.intlYear=s.year;this.locale=document.documentElement.lang||"en";this.scale="m";this.range=false;this.proximitySelectionDisabled=false;this.keyDownHandler=function(e){if(e.key==="Escape"){r.reset()}};this.monthHeaderSelectChange=function(e){var t=new Date(e.detail);if(!r.range){r.activeDate=t}else{if(r.activeRange==="end"){r.activeEndDate=t}else{r.activeStartDate=t}r.mostRecentRangeValue=t}};this.monthActiveDateChange=function(e){var t=new Date(e.detail);if(!r.range){r.activeDate=t}else{if(r.activeRange==="end"){r.activeEndDate=t}else{r.activeStartDate=t}r.mostRecentRangeValue=t}};this.monthHoverChange=function(e){if(!r.startAsDate){r.hoverRange=undefined;return}var t=new Date(e.detail);r.hoverRange={focused:r.activeRange||"start",start:r.startAsDate,end:r.endAsDate};if(!r.proximitySelectionDisabled){if(r.endAsDate){var a=c(t,r.startAsDate);var i=c(t,r.endAsDate);if(i>0){r.hoverRange.end=t;r.hoverRange.focused="end"}else if(a<0){r.hoverRange.start=t;r.hoverRange.focused="start"}else if(a>i){r.hoverRange.start=t;r.hoverRange.focused="start"}else{r.hoverRange.end=t;r.hoverRange.focused="end"}}else{if(t<r.startAsDate){r.hoverRange={focused:"start",start:t,end:r.startAsDate}}else{r.hoverRange.end=t;r.hoverRange.focused="end"}}}else{if(!r.endAsDate){if(t<r.startAsDate){r.hoverRange={focused:"start",start:t,end:r.startAsDate}}else{r.hoverRange.end=t;r.hoverRange.focused="end"}}else{r.hoverRange=undefined}}e.stopPropagation()};this.monthMouseOutChange=function(){if(r.hoverRange){r.hoverRange=undefined}};this.reset=function(){var e,t,a,i,n,o;if(!Array.isArray(r.valueAsDate)&&r.valueAsDate&&((e=r.valueAsDate)===null||e===void 0?void 0:e.getTime())!==((t=r.activeDate)===null||t===void 0?void 0:t.getTime())){r.activeDate=new Date(r.valueAsDate)}if(r.startAsDate&&((a=r.startAsDate)===null||a===void 0?void 0:a.getTime())!==((i=r.activeStartDate)===null||i===void 0?void 0:i.getTime())){r.activeStartDate=new Date(r.startAsDate)}if(r.endAsDate&&((n=r.endAsDate)===null||n===void 0?void 0:n.getTime())!==((o=r.activeEndDate)===null||o===void 0?void 0:o.getTime())){r.activeEndDate=new Date(r.endAsDate)}};this.monthDateChange=function(e){var t=new Date(e.detail);if(!r.range){r.value=t?l(t):"";r.valueAsDate=t||null;r.activeDate=t||null;r.calciteDatePickerChange.emit(t);return}if(!r.startAsDate||!r.endAsDate&&t<r.startAsDate){if(r.startAsDate){r.setEndDate(new Date(r.startAsDate))}if(r.activeRange=="end"){r.setEndDate(t)}else{r.setStartDate(t)}}else if(!r.endAsDate){r.setEndDate(t)}else{if(!r.proximitySelectionDisabled){if(r.activeRange){if(r.activeRange=="end"){r.setEndDate(t)}else{r.setStartDate(t)}}else{var a=c(t,r.startAsDate);var i=c(t,r.endAsDate);if(i===0||a<0){r.setStartDate(t)}else if(a===0||i<0){r.setEndDate(t)}else if(a<i){r.setStartDate(t)}else{r.setEndDate(t)}}}else{r.setStartDate(t);r.endAsDate=r.activeEndDate=r.end=undefined}}r.calciteDatePickerChange.emit(t)}}e.prototype.handleValueAsDate=function(e){if(!Array.isArray(e)&&e&&e!==this.activeDate){this.activeDate=e}};e.prototype.handleRangeChange=function(){var e=this,t=e.startAsDate,a=e.endAsDate;this.activeEndDate=a;this.activeStartDate=t};e.prototype.onMinChanged=function(e){if(e){this.minAsDate=d(e)}};e.prototype.onMaxChanged=function(e){if(e){this.maxAsDate=d(e)}};e.prototype.connectedCallback=function(){if(Array.isArray(this.value)){this.valueAsDate=this.value.map((function(e){return d(e)}));this.start=this.value[0];this.end=this.value[1]}else if(this.value){this.valueAsDate=d(this.value)}if(this.start){this.setStartAsDate(d(this.start))}if(this.end){this.setEndAsDate(d(this.end))}if(this.min){this.minAsDate=d(this.min)}if(this.max){this.maxAsDate=d(this.max)}};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadLocaleData()];case 1:e.sent();this.onMinChanged(this.min);this.onMaxChanged(this.max);return[2]}}))}))};e.prototype.render=function(){var e;var t=h(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate);var a=this.range?this.getActiveStartDate(t,this.minAsDate,this.maxAsDate):this.getActiveDate(t,this.minAsDate,this.maxAsDate);var n=a;var o=this.range?h(this.endAsDate,this.minAsDate,this.maxAsDate):null;var s=this.getActiveEndDate(o,this.minAsDate,this.maxAsDate);if((this.activeRange==="end"||((e=this.hoverRange)===null||e===void 0?void 0:e.focused)==="end"&&(!this.proximitySelectionDisabled||o))&&s){n=s}if(this.range&&this.mostRecentRangeValue){n=this.mostRecentRangeValue}var c=this.range&&this.activeRange?this.activeRange==="start"?this.minAsDate:t||this.minAsDate:this.minAsDate;var l=this.range&&this.activeRange?this.activeRange==="start"?o||this.maxAsDate:this.maxAsDate:this.maxAsDate;return r(i,{onBlur:this.reset,onKeyDown:this.keyDownHandler,role:"application"},this.renderCalendar(n,l,c,t,o))};e.prototype.valueHandler=function(e){if(Array.isArray(e)){this.valueAsDate=e.map((function(e){return d(e)}));this.start=e[0];this.end=e[1]}else if(e){this.valueAsDate=d(e);this.start="";this.end=""}};e.prototype.startWatcher=function(e){this.setStartAsDate(d(e))};e.prototype.endWatcher=function(e){this.setEndAsDate(d(e))};e.prototype.loadLocaleData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(a){switch(a.label){case 0:e=this.locale;t=this;return[4,u(e)];case 1:t.localeData=a.sent();return[2]}}))}))};e.prototype.renderCalendar=function(e,t,a,i,n){return this.localeData&&[r("calcite-date-picker-month-header",{activeDate:e,headingLevel:this.headingLevel||f,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,localeData:this.localeData,max:t,min:a,onCalciteDatePickerSelect:this.monthHeaderSelectChange,scale:this.scale,selectedDate:this.activeRange==="end"?n:i||new Date}),r("calcite-date-picker-month",{activeDate:e,endDate:this.range?n:undefined,hoverRange:this.hoverRange,localeData:this.localeData,max:t,min:a,onCalciteDatePickerActiveDateChange:this.monthActiveDateChange,onCalciteDatePickerSelect:this.monthDateChange,onCalciteInternalDatePickerHover:this.monthHoverChange,onCalciteInternalDatePickerMouseOut:this.monthMouseOutChange,scale:this.scale,selectedDate:this.activeRange==="end"?n:i,startDate:this.range?i:undefined})]};e.prototype.setStartAsDate=function(e,t){this.startAsDate=e;this.mostRecentRangeValue=this.startAsDate;if(t){this.calciteDatePickerRangeChange.emit({startDate:e,endDate:this.endAsDate})}};e.prototype.setEndAsDate=function(e,t){this.endAsDate=e;this.mostRecentRangeValue=this.endAsDate;if(t){this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:e})}};e.prototype.setEndDate=function(e){this.end=e?l(e):"";this.setEndAsDate(e,true);this.activeEndDate=e||null};e.prototype.setStartDate=function(e){this.start=e?l(e):"";this.setStartAsDate(e,true);this.activeStartDate=e||null};e.prototype.getActiveDate=function(e,t,a){return h(this.activeDate,t,a)||e||h(new Date,t,a)};e.prototype.getActiveStartDate=function(e,t,a){return h(this.activeStartDate,t,a)||e||h(new Date,t,a)};e.prototype.getActiveEndDate=function(e,t,a){return h(this.activeEndDate,t,a)||e||h(new Date,t,a)};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{valueAsDate:["handleValueAsDate"],startAsDate:["handleRangeChange"],endAsDate:["handleRangeChange"],min:["onMinChanged"],max:["onMaxChanged"],value:["valueHandler"],start:["startWatcher"],end:["endWatcher"],locale:["loadLocaleData"]}},enumerable:false,configurable:true});return e}());C.style=_;var M="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none !important}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:-ms-flexbox;display:flex;min-inline-size:0px;cursor:pointer;-ms-flex-pack:center;justify-content:center;color:var(--calcite-ui-text-3);inline-size:14.2857142857%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.day-v-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}.day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.day{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;line-height:1;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);outline-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background:none;-webkit-box-shadow:0 0 0 2px transparent;box-shadow:0 0 0 2px transparent}.text{margin-block:1px 0px;-webkit-margin-start:0px;margin-inline-start:0px}:host([scale=s]) .day-v-wrapper{padding-block:0.125rem}:host([scale=s]) .day-wrapper{padding:0px}:host([scale=s]) .day{block-size:27px;inline-size:27px;font-size:var(--calcite-font-size--2)}:host([scale=m]) .day-v-wrapper{padding-block:0.25rem}:host([scale=m]) .day-wrapper{padding-inline:0.25rem}:host([scale=m]) .day{block-size:33px;inline-size:33px;font-size:var(--calcite-font-size--1)}:host([scale=l]) .day-v-wrapper{padding-block:0.25rem}:host([scale=l]) .day-wrapper{padding-inline:0.25rem}:host([scale=l]) .day{block-size:43px;inline-size:43px;font-size:var(--calcite-font-size-0)}:host([current-month]) .day{opacity:1}:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:focus),:host([active]){outline:2px solid transparent;outline-offset:2px}:host(:focus:not([disabled])) .day{outline:2px solid var(--calcite-ui-brand);outline-offset:2px;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-ui-brand) !important;color:var(--calcite-ui-foreground-1) !important}:host([range][selected]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([start-of-range]) .day-wrapper{border-start-start-radius:40%;border-end-start-radius:40%}:host([end-of-range]) .day-wrapper{border-start-end-radius:40%;border-end-end-radius:40%}:host([start-of-range]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 4px 0 var(--calcite-ui-foreground-1);box-shadow:inset 4px 0 var(--calcite-ui-foreground-1)}:host([start-of-range]) :not(.calcite--rtl) .day,:host([end-of-range]) .calcite--rtl .day{opacity:1}:host([start-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([end-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -4px 0 var(--calcite-ui-foreground-1);box-shadow:inset -4px 0 var(--calcite-ui-foreground-1)}:host([end-of-range]) :not(.calcite--rtl) .day,:host([start-of-range]) .calcite--rtl .day{opacity:1}:host([end-of-range]:not(:focus)) :not(.calcite--rtl) .day,:host([start-of-range]:not(:focus)) .calcite--rtl .day{-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host([end-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -8px 0 var(--calcite-ui-foreground-1);box-shadow:inset -8px 0 var(--calcite-ui-foreground-1)}:host([start-of-range][scale=l]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][scale=l]) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 8px 0 var(--calcite-ui-foreground-1);box-shadow:inset 8px 0 var(--calcite-ui-foreground-1)}:host([highlighted]) .day-wrapper{background-color:var(--calcite-ui-foreground-current)}:host([highlighted]) .day-wrapper .day{color:var(--calcite-ui-text-1)}:host([highlighted]:not([active]:focus)) .day{border-radius:0px;color:var(--calcite-ui-text-1)}:host([range-hover]:not([selected])) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([range-hover]:not([selected])) .day{border-radius:0px}:host([end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host([end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[end-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[start-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[start-of-range][range-hover]) :not(.calcite--rtl) .day-wrapper,:host(:hover[end-of-range][range-hover]) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, right top, left top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to left, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1));border-radius:0px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-current)), to(var(--calcite-ui-foreground-current)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current))}:host(:hover[range-hover]:not([selected]).focused--end) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-current)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-current), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-1)), color-stop(var(--calcite-ui-foreground-2)), to(var(--calcite-ui-foreground-2)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2))}:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day-wrapper,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day-wrapper{background-image:-webkit-gradient(linear, left top, right top, from(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-2)), color-stop(var(--calcite-ui-foreground-1)), to(var(--calcite-ui-foreground-1)));background-image:linear-gradient(to right, var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-2), var(--calcite-ui-foreground-1), var(--calcite-ui-foreground-1))}:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) :not(.calcite--rtl) .day,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .calcite--rtl .day{border-radius:9999px;opacity:1;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-foreground-1);box-shadow:0 0 0 2px var(--calcite-ui-foreground-1)}:host(:hover[start-of-range].hover--inside-range.focused--end) .day-wrapper,:host(:hover[end-of-range].hover--inside-range.focused--start) .day-wrapper{background-image:none}:host([start-of-range].hover--inside-range.focused--end) .day-wrapper,:host([end-of-range].hover--inside-range.focused--start) .day-wrapper{background-color:var(--calcite-ui-foreground-2)}:host([highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:first-child) .calcite--rtl .day-wrapper,:host([range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([highlighted]:last-child) .calcite--rtl .day-wrapper,:host([range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 4px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=s][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=s][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=s][range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 1px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([scale=l][highlighted]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:first-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:last-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:last-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset 6px 0px 0px 0px var(--calcite-ui-foreground-1)}:host([highlighted]:first-child) .day-wrapper,:host([range-hover]:first-child) .day-wrapper{border-start-start-radius:45%;border-end-start-radius:45%}:host([highlighted]:last-child) .day-wrapper,:host([range-hover]:last-child) .day-wrapper{border-start-end-radius:45%;border-end-end-radius:45%}:host([scale=l][highlighted]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][range-hover]:last-child) :not(.calcite--rtl) .day-wrapper,:host([scale=l][highlighted]:first-child) .calcite--rtl .day-wrapper,:host([scale=l][range-hover]:first-child) .calcite--rtl .day-wrapper{-webkit-box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1);box-shadow:inset -6px 0px 0px 0px var(--calcite-ui-foreground-1)}@media (forced-colors: active){:host(:hover:not([disabled])) .day,:host([active]:not([range])) .day{border-radius:0px}:host([selected]){outline:2px solid canvasText}:host([selected]) .day{border-radius:0px;background-color:highlight}:host([range][selected]) .day-wrapper,:host([highlighted]) .day-wrapper,:host([range-hover]:not([selected])) .day-wrapper{background-color:highlight}:host([range][selected][start-of-range]) .day-wrapper,:host([range][selected][end-of-range]) .day-wrapper{background-color:canvas}}";var S=e("calcite_date_picker_day",function(){function e(e){var r=this;t(this,e);this.calciteDaySelect=a(this,"calciteDaySelect",6);this.calciteInternalDayHover=a(this,"calciteInternalDayHover",6);this.disabled=false;this.currentMonth=false;this.selected=false;this.highlighted=false;this.range=false;this.startOfRange=false;this.endOfRange=false;this.rangeHover=false;this.active=false;this.onClick=function(){!r.disabled&&r.calciteDaySelect.emit()};this.keyDownHandler=function(e){var t=e.key;if(A(t)){!r.disabled&&r.calciteDaySelect.emit()}}}e.prototype.mouseoverHandler=function(){this.calciteInternalDayHover.emit()};e.prototype.render=function(){var e;var t=this;var a=String(this.day).split("").map((function(e){return t.localeData.numerals[e]})).join("");var n=b(this.el);return r(i,{onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"gridcell"},r("div",{class:(e={"day-v-wrapper":true},e[x.rtl]=n==="rtl",e)},r("div",{class:"day-wrapper"},r("span",{class:"day"},r("span",{class:"text"},a)))))};e.prototype.componentDidRender=function(){k(this,this.isTabbable)};e.prototype.isTabbable=function(){return this.active};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());S.style=M;var P="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none !important}.calender{-webkit-margin-after:0.25rem;margin-block-end:0.25rem}.week-headers{display:-ms-flexbox;display:flex;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;padding-inline:0.25rem}.week-header{text-align:center;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-3);inline-size:14.2857142857%}:host([scale=s]) .week-header{padding-inline:0px;padding-block:0.5rem 0.75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .week-header{padding-inline:0px;padding-block:0.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]) .week-header{padding-inline:0px;padding-block:1rem 1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}.week-days{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding-block:0px;padding-inline:6px}.week-days:focus{outline:2px solid transparent;outline-offset:2px}";var z=e("calcite_date_picker_month",function(){function e(e){var r=this;t(this,e);this.calciteDatePickerSelect=a(this,"calciteDatePickerSelect",6);this.calciteInternalDatePickerHover=a(this,"calciteInternalDatePickerHover",6);this.calciteDatePickerActiveDateChange=a(this,"calciteDatePickerActiveDateChange",6);this.calciteInternalDatePickerMouseOut=a(this,"calciteInternalDatePickerMouseOut",6);this.activeDate=new Date;this.keyDownHandler=function(e){var t=r.el.dir==="rtl";switch(e.key){case"ArrowUp":e.preventDefault();r.addDays(-7);break;case"ArrowRight":e.preventDefault();r.addDays(t?-1:1);break;case"ArrowDown":e.preventDefault();r.addDays(7);break;case"ArrowLeft":e.preventDefault();r.addDays(t?1:-1);break;case"PageUp":e.preventDefault();r.addMonths(-1);break;case"PageDown":e.preventDefault();r.addMonths(1);break;case"Home":e.preventDefault();r.activeDate.setDate(1);r.addDays();break;case"End":e.preventDefault();r.activeDate.setDate(new Date(r.activeDate.getFullYear(),r.activeDate.getMonth()+1,0).getDate());r.addDays();break;case"Enter":case" ":e.preventDefault();break;case"Tab":r.activeFocus=false}};this.disableActiveFocus=function(){r.activeFocus=false};this.dayHover=function(e){var t=e.target;if(t.disabled){r.calciteInternalDatePickerMouseOut.emit()}else{r.calciteInternalDatePickerHover.emit(t.value)}e.stopPropagation()};this.daySelect=function(e){var t=e.target;r.calciteDatePickerSelect.emit(t.value)}}e.prototype.mouseoutHandler=function(){this.calciteInternalDatePickerMouseOut.emit()};e.prototype.render=function(){var e=this;var t=this.activeDate.getMonth();var a=this.activeDate.getFullYear();var n=this.localeData.weekStart%7;var o=this.localeData.days,s=o.abbreviated,c=o.short,l=o.narrow;var d=this.scale==="s"?l||c||s:c||s||l;var h=__spreadArray(__spreadArray([],d.slice(n,7),true),d.slice(0,n),true);var u=this.getCurrentMonthDays(t,a);var f=this.getPrevMonthdays(t,a,n);var v=this.getNextMonthDays(t,a,n);var g=__spreadArray(__spreadArray(__spreadArray([],f.map((function(r){var i=new Date(a,t-1,r);return e.renderDateDay(false,r,i)})),true),u.map((function(r){var i=new Date(a,t,r);var n=p(i,e.activeDate);return e.renderDateDay(n,r,i,true,true)})),true),v.map((function(r){var i=new Date(a,t+1,r);return e.renderDateDay(false,r,i)})),true);var m=[];for(var D=0;D<g.length;D+=7){m.push(g.slice(D,D+7))}return r(i,{onFocusOut:this.disableActiveFocus,onKeyDown:this.keyDownHandler},r("div",{class:"calender",role:"grid"},r("div",{class:"week-headers",role:"row"},h.map((function(e){return r("span",{class:"week-header",role:"columnheader"},e)}))),m.map((function(e){return r("div",{class:"week-days",role:"row"},e)}))))};e.prototype.addMonths=function(e){var t=new Date(this.activeDate);t.setMonth(this.activeDate.getMonth()+e);this.calciteDatePickerActiveDateChange.emit(h(t,this.min,this.max));this.activeFocus=true};e.prototype.addDays=function(e){if(e===void 0){e=0}var t=new Date(this.activeDate);t.setDate(this.activeDate.getDate()+e);this.calciteDatePickerActiveDateChange.emit(h(t,this.min,this.max));this.activeFocus=true};e.prototype.getPrevMonthdays=function(e,t,a){var r=new Date(t,e,0);var i=r.getDate();var n=r.getDay();var o=[];if(n-6===a){return o}for(var s=Math.abs(r.getDay()-a);s>=0;s--){o.push(i-s)}return o};e.prototype.getCurrentMonthDays=function(e,t){var a=new Date(t,e+1,0).getDate();var r=[];for(var i=0;i<a;i++){r.push(i+1)}return r};e.prototype.getNextMonthDays=function(e,t,a){var r=new Date(t,e+1,0).getDay();var i=[];if(r===(a+6)%7){return i}for(var n=0;n<(6-(r-a))%7;n++){i.push(n+1)}return i};e.prototype.betweenSelectedRange=function(e){return!!(this.startDate&&this.endDate&&e>this.startDate&&e<this.endDate&&!this.isRangeHover(e))};e.prototype.isSelected=function(e){return!!(p(e,this.selectedDate)||this.startDate&&p(e,this.startDate)||this.endDate&&p(e,this.endDate))};e.prototype.isStartOfRange=function(e){return!!(this.startDate&&!p(this.startDate,this.endDate)&&p(this.startDate,e)&&!this.isEndOfRange(e))};e.prototype.isEndOfRange=function(e){return!!(this.endDate&&!p(this.startDate,this.endDate)&&p(this.endDate,e)||!this.endDate&&this.hoverRange&&p(this.startDate,this.hoverRange.end)&&p(e,this.hoverRange.end))};e.prototype.renderDateDay=function(e,t,a,i,n){var o=this;var s;var c=this.isFocusedOnStart();var l=this.isHoverInRange()||!this.endDate&&this.hoverRange&&p((s=this.hoverRange)===null||s===void 0?void 0:s.end,this.startDate);return r("calcite-date-picker-day",{active:e,class:{"hover--inside-range":this.startDate&&l,"hover--outside-range":this.startDate&&!l,"focused--start":c,"focused--end":!c},currentMonth:i,day:t,disabled:!v(a,this.min,this.max),endOfRange:this.isEndOfRange(a),highlighted:this.betweenSelectedRange(a),key:a.toDateString(),localeData:this.localeData,onCalciteDaySelect:this.daySelect,onCalciteInternalDayHover:this.dayHover,range:!!this.startDate&&!!this.endDate&&!p(this.startDate,this.endDate),rangeHover:this.isRangeHover(a),ref:function(t){if(n&&e&&o.activeFocus){t===null||t===void 0?void 0:t.focus()}},scale:this.scale,selected:this.isSelected(a),startOfRange:this.isStartOfRange(a),value:a})};e.prototype.isFocusedOnStart=function(){var e;return((e=this.hoverRange)===null||e===void 0?void 0:e.focused)==="start"};e.prototype.isHoverInRange=function(){if(!this.hoverRange){return false}var e=this.hoverRange,t=e.start,a=e.end;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||a<this.endDate)||this.isFocusedOnStart()&&this.startDate&&t>this.startDate)};e.prototype.isRangeHover=function(e){if(!this.hoverRange){return false}var t=this.hoverRange,a=t.start,r=t.end;var i=this.isFocusedOnStart();var n=this.isHoverInRange();var o=n&&(!i&&e>this.startDate&&(e<r||p(e,r))||i&&e<this.endDate&&(e>a||p(e,a)));var s=!n&&(!i&&e>=this.endDate&&(e<r||p(e,r))||i&&(e<this.startDate||this.endDate&&p(e,this.startDate))&&(e>a||p(e,a)));return o||s};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());z.style=P;var H=543;var Y="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none !important}:host{display:block}.header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding-block:0px;padding-inline:0.25rem}:host([scale=s]) .text{margin-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .chevron{block-size:2.25rem}:host([scale=m]) .text{margin-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .chevron{block-size:3rem}:host([scale=l]) .text{margin-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .chevron{block-size:3.5rem}.chevron{margin-inline:-0.25rem;-webkit-box-sizing:content-box;box-sizing:content-box;display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-inline:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inline-size:14.2857142857%}.chevron:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.chevron:hover,.chevron:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.chevron:active{background-color:var(--calcite-ui-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none;opacity:0}.text{margin-block:auto;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-align:center;line-height:1}.text-nreverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.month,.year,.suffix{margin-inline:0.25rem;margin-block:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}.year{position:relative;inline-size:3rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent}.year:hover{-webkit-transition-duration:100ms;transition-duration:100ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:outline-color;transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}.year:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.year--suffix{inline-size:4rem;text-align:start}.year-wrap{position:relative}.suffix{position:absolute;inset-block-start:0px;inset-inline-start:0px;inline-size:4rem;white-space:nowrap;text-align:start}.suffix__invisible{visibility:hidden}";var O=e("calcite_date_picker_month_header",function(){function e(e){var r=this;t(this,e);this.calciteDatePickerSelect=a(this,"calciteDatePickerSelect",6);this.onYearKey=function(e){var t=r.parseCalendarYear(e.target.value);switch(e.key){case"ArrowDown":e.preventDefault();r.setYear({localizedYear:t,offset:-1});break;case"ArrowUp":e.preventDefault();r.setYear({localizedYear:t,offset:1});break}};this.onYearChange=function(e){r.setYear({localizedYear:r.parseCalendarYear(e.target.value)})};this.onYearInput=function(e){r.setYear({localizedYear:r.parseCalendarYear(e.target.value),commit:false})};this.prevMonthClick=function(e){r.handleArrowClick(e,r.prevMonthDate)};this.prevMonthKeydown=function(e){var t=e.key;if(A(t)){r.prevMonthClick(e)}};this.nextMonthClick=function(e){r.handleArrowClick(e,r.nextMonthDate)};this.nextMonthKeydown=function(e){var t=e.key;if(A(t)){r.nextMonthClick(e)}};this.handleArrowClick=function(e,t){e===null||e===void 0?void 0:e.preventDefault();e.stopPropagation();r.calciteDatePickerSelect.emit(t)}}e.prototype.connectedCallback=function(){this.setNextPrevMonthDates()};e.prototype.render=function(){return r("div",{class:"header"},this.renderContent())};e.prototype.renderContent=function(){var e=this;var t;if(!this.activeDate||!this.localeData){return null}var a=this.activeDate.getMonth();var i=this.localeData,n=i.months,s=i.unitOrder;var c=(n.wide||n.narrow||n.abbreviated)[a];var l=this.formatCalendarYear(this.activeDate.getFullYear().toString());var d=this.scale==="l"?"m":"s";var h=g(s);var u=h.indexOf("y")<h.indexOf("m");var f=(t=this.localeData.year)===null||t===void 0?void 0:t.suffix;return r(o,null,r("a",{"aria-disabled":(this.prevMonthDate.getMonth()===a).toString(),"aria-label":this.intlPrevMonth,class:"chevron",href:"#",onClick:this.prevMonthClick,onKeyDown:this.prevMonthKeydown,role:"button",tabindex:this.prevMonthDate.getMonth()===a?-1:0},r("calcite-icon",{"flip-rtl":true,icon:"chevron-left",scale:d})),r("div",{class:{text:true,"text--reverse":u}},r(R,{class:"month",level:this.headingLevel},c),r("span",{class:"year-wrap"},r("input",{"aria-label":this.intlYear,class:{year:true,"year--suffix":!!f},inputmode:"numeric",maxlength:"4",minlength:"1",onChange:this.onYearChange,onInput:this.onYearInput,onKeyDown:this.onYearKey,pattern:"\\d*",ref:function(t){return e.yearInput=t},type:"text",value:l}),f&&r("span",{class:"suffix"},r("span",{"aria-hidden":"true",class:"suffix__invisible"},l)," "+f))),r("a",{"aria-disabled":(this.nextMonthDate.getMonth()===a).toString(),"aria-label":this.intlNextMonth,class:"chevron",href:"#",onClick:this.nextMonthClick,onKeyDown:this.nextMonthKeydown,role:"button",tabindex:this.nextMonthDate.getMonth()===a?-1:0},r("calcite-icon",{"flip-rtl":true,icon:"chevron-right",scale:d})))};e.prototype.setNextPrevMonthDates=function(){if(!this.activeDate){return}this.nextMonthDate=h(m(this.activeDate),this.min,this.max);this.prevMonthDate=h(D(this.activeDate),this.min,this.max)};e.prototype.formatCalendarYear=function(e){var t=this.localeData;var a=t["default-calendar"]==="buddhist";var r=a?H:0;return y(w(e,t)+r,t)};e.prototype.parseCalendarYear=function(e){var t=this.localeData;var a=t["default-calendar"]==="buddhist";var r=a?H:0;return y(w(e,t)-r,t)};e.prototype.getInRangeDate=function(e){var t=e.localizedYear,a=e.offset,r=a===void 0?0:a;var i=this,n=i.min,o=i.max,s=i.activeDate,c=i.localeData;var l=w(t,c);var d=l.toString().length;var u=isNaN(l)?false:l+r;var f=u&&(!n||n.getFullYear()<=u)&&(!o||o.getFullYear()>=u);if(u&&f&&d===t.length){var p=new Date(s);p.setFullYear(u);return h(p,n,o)}};e.prototype.setYear=function(e){var t=e.localizedYear,a=e.commit,r=a===void 0?true:a,i=e.offset,n=i===void 0?0:i;var o=this,s=o.yearInput,c=o.activeDate;var l=this.getInRangeDate({localizedYear:t,offset:n});if(l){this.calciteDatePickerSelect.emit(l)}if(r){s.value=this.formatCalendarYear((l||c).getFullYear().toString())}};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{min:["setNextPrevMonthDates"],max:["setNextPrevMonthDates"],activeDate:["setNextPrevMonthDates"]}},enumerable:false,configurable:true});return e}());O.style=Y}}}));
|
|
@@ -0,0 +1,6 @@
|
|
|
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.557
|
|
5
|
+
*/
|
|
6
|
+
import{r as i,c as t,h as e,H as a,g as n}from"./p-967ab5ce.js";import{f as s}from"./p-ebe9283f.js";import{d as o,f as c,c as r,p as l,a as m,F as h}from"./p-d6ad752f.js";import{g as d}from"./p-c8ba1f6a.js";import{n as p,t as b,d as u,g as f}from"./p-3f0a88a5.js";import{c as x,d as g,g as w}from"./p-1bdc083e.js";import{s as v,c as k,a as y,d as D,H as C}from"./p-500e5bfd.js";import{c as z}from"./p-f92ce833.js";import{u as I}from"./p-bc9318f3.js";import{c as O,d as _}from"./p-a0e5b18f.js";import{d as E}from"./p-0b2dbf1f.js";import{c as H,d as B}from"./p-a562f13f.js";import"./p-e664273e.js";const T="CALCITE-COMBOBOX-ITEM, CALCITE-COMBOBOX-ITEM-GROUP";function A(i){var t,e;const a=null===(t=i.parentElement)||void 0===t?void 0:t.closest(T);return[a,null===(e=null==a?void 0:a.parentElement)||void 0===e?void 0:e.closest(T)].filter((i=>i))}function M(i){var t;return(null===(t=i.ancestors)||void 0===t?void 0:t.filter((i=>"CALCITE-COMBOBOX-ITEM"===i.nodeName)))||[]}function $(i){return p(i.querySelectorAll("calcite-combobox-item")).filter((i=>i.selected)).length>0}function L(i){return document.evaluate("ancestor::calcite-combobox-item | ancestor::calcite-combobox-item-group",i,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotLength}const j=class{constructor(e){i(this,e),this.calciteLookupChange=t(this,"calciteLookupChange",6),this.calciteComboboxChange=t(this,"calciteComboboxChange",6),this.calciteComboboxFilterChange=t(this,"calciteComboboxFilterChange",6),this.calciteComboboxChipDismiss=t(this,"calciteComboboxChipDismiss",6),this.calciteComboboxBeforeClose=t(this,"calciteComboboxBeforeClose",6),this.calciteComboboxClose=t(this,"calciteComboboxClose",6),this.calciteComboboxBeforeOpen=t(this,"calciteComboboxBeforeOpen",6),this.calciteComboboxOpen=t(this,"calciteComboboxOpen",6),this.active=!1,this.open=!1,this.disabled=!1,this.maxItems=0,this.overlayPositioning="absolute",this.required=!1,this.selectionMode="multi",this.scale="m",this.value=null,this.intlRemoveTag="Remove tag",this.placement=o,this.internalValueChangeFlag=!1,this.items=[],this.groupItems=[],this.selectedItems=[],this.visibleItems=[],this.activeItemIndex=-1,this.activeChipIndex=-1,this.activeDescendant="",this.text="",this.textInput=null,this.mutationObserver=z("mutation",(()=>this.updateItems())),this.resizeObserver=z("resize",(()=>this.setMaxScrollerHeight())),this.guid=d(),this.inputHeight=0,this.ignoreSelectedEventsFlag=!1,this.openTransitionProp="opacity",this.setFilteredPlacements=()=>{const{el:i,flipPlacements:t}=this;this.filteredFlipPlacements=t?c(t,i):null},this.getValue=()=>{const i=this.selectedItems.map((i=>{var t;return null===(t=null==i?void 0:i.value)||void 0===t?void 0:t.toString()}));return(null==i?void 0:i.length)?i.length>1?i:i[0]:""},this.onLabelClick=()=>{this.setFocus()},this.keydownHandler=i=>{const{key:t}=i;switch(t){case"Tab":this.activeChipIndex=-1,this.activeItemIndex=-1,this.allowCustomValues&&this.text?(this.addCustomChip(this.text,!0),i.preventDefault()):this.open&&(this.open=!1,i.preventDefault());break;case"ArrowLeft":this.previousChip();break;case"ArrowRight":this.nextChip();break;case"ArrowUp":this.shiftActiveItemIndex(-1),this.comboboxInViewport()||this.el.scrollIntoView();break;case"ArrowDown":this.open||(i.preventDefault(),this.open=!0),this.shiftActiveItemIndex(1),this.comboboxInViewport()||this.el.scrollIntoView();break;case" ":this.textInput.value||(i.preventDefault(),this.open=!0,this.shiftActiveItemIndex(1));break;case"Home":this.open&&i.preventDefault(),this.updateActiveItemIndex(0),this.scrollToActiveItem(),this.comboboxInViewport()||this.el.scrollIntoView();break;case"End":this.open&&i.preventDefault(),this.updateActiveItemIndex(this.visibleItems.length-1),this.scrollToActiveItem(),this.comboboxInViewport()||this.el.scrollIntoView();break;case"Escape":this.open=!1;break;case"Enter":this.activeItemIndex>-1?this.toggleSelection(this.visibleItems[this.activeItemIndex]):this.activeChipIndex>-1?this.removeActiveChip():this.allowCustomValues&&this.text?this.addCustomChip(this.text,!0):i.defaultPrevented||v(this);break;case"Delete":case"Backspace":this.activeChipIndex>-1?this.removeActiveChip():!this.text&&this.isMulti()&&this.removeLastChip()}},this.toggleCloseEnd=()=>{this.open=!1,this.el.removeEventListener("calciteComboboxClose",this.toggleCloseEnd)},this.toggleOpenEnd=()=>{this.open=!1,this.el.removeEventListener("calciteComboboxOpen",this.toggleOpenEnd)},this.setMaxScrollerHeight=async()=>{const{listContainerEl:i,open:t,referenceEl:e}=this;if(!i||!t)return;await this.reposition();const a=this.getMaxScrollerHeight();i.style.maxHeight=a>0?`${a}px`:"",i.style.minWidth=`${e.clientWidth}px`,await this.reposition()},this.calciteChipDismissHandler=(i,t)=>{this.open=!1;const e=this.items.find((i=>i===t));e&&this.toggleSelection(e,!1),this.calciteComboboxChipDismiss.emit(i.detail)},this.clickHandler=i=>{i.composedPath().some((i=>"CALCITE-CHIP"===i.tagName))||(this.open=!this.open,this.updateActiveItemIndex(0),this.setFocus())},this.setInactiveIfNotContained=i=>{const t=i.composedPath();!this.open||t.includes(this.el)||t.includes(this.referenceEl)||(this.allowCustomValues&&this.text.trim().length&&this.addCustomChip(this.text),"single"===this.selectionMode&&(this.textInput&&(this.textInput.value=""),this.text="",this.filterItems(""),this.updateActiveItemIndex(-1)),this.open=!1)},this.setFloatingEl=i=>{this.floatingEl=i,r(this,this.referenceEl,this.floatingEl)},this.setContainerEl=i=>{this.resizeObserver.observe(i),this.listContainerEl=i,this.transitionEl=i,O(this)},this.setReferenceEl=i=>{this.referenceEl=i,r(this,this.referenceEl,this.floatingEl)},this.inputHandler=i=>{const t=i.target.value;this.text=t,this.filterItems(t),t&&(this.activeChipIndex=-1)},this.filterItems=(()=>{const i=(i,t)=>i&&t.some((({label:t,value:e})=>"CALCITE-COMBOBOX-ITEM-GROUP"===i.tagName?e===i.label:e===i.textLabel||e===i.value||t===i.textLabel||t===i.value));return E((t=>{const e=s(this.data,t);this.getCombinedItems().forEach((t=>{const a=!i(t,e);t.hidden=a;const[n,s]=t.ancestors;(i(n,e)||i(s,e))&&(t.hidden=!1),a||t.ancestors.forEach((i=>i.hidden=!1))})),this.visibleItems=this.getVisibleItems(),this.calciteComboboxFilterChange.emit({visibleItems:[...this.visibleItems],text:t})}),100)})(),this.internalCalciteLookupChangeEvent=()=>{this.calciteLookupChange.emit(this.selectedItems)},this.emitCalciteLookupChange=E(this.internalCalciteLookupChangeEvent,0),this.internalComboboxChangeEvent=()=>{const{selectedItems:i}=this;this.calciteComboboxChange.emit({selectedItems:i})},this.emitComboboxChange=E(this.internalComboboxChangeEvent,0),this.updateItems=()=>{this.items=this.getItems(),this.groupItems=this.getGroupItems(),this.data=this.getData(),this.selectedItems=this.getSelectedItems(),this.visibleItems=this.getVisibleItems(),this.needsIcon=this.getNeedsIcon(),this.allowCustomValues||this.setMaxScrollerHeight()},this.scrollToActiveItem=()=>{const i=this.visibleItems[this.activeItemIndex],t=this.calculateSingleItemHeight(i),{offsetHeight:e,scrollTop:a}=this.listContainerEl;e+a<i.offsetTop+t?this.listContainerEl.scrollTop=i.offsetTop-e+t:i.offsetTop<a&&(this.listContainerEl.scrollTop=i.offsetTop)},this.comboboxFocusHandler=()=>{var i;null===(i=this.textInput)||void 0===i||i.focus()},this.comboboxBlurHandler=i=>{this.setInactiveIfNotContained(i)}}activeHandler(i){if(this.disabled)return this.active=!1,void(this.open=!1);this.open=i}openHandler(i){if(this.disabled)return this.active=!1,void(this.open=!1);this.active=i,this.setMaxScrollerHeight()}handleDisabledChange(i){i||(this.active=!1,this.open=!1)}maxItemsHandler(){this.setMaxScrollerHeight()}overlayPositioningHandler(){this.reposition()}valueHandler(i){if(!this.internalValueChangeFlag){const t=this.getItems();Array.isArray(i)?t.forEach((t=>t.selected=i.includes(t.value))):t.forEach(i?t=>t.selected=i===t.value:i=>i.selected=!1),this.updateItems()}}flipPlacementsHandler(){this.setFilteredPlacements()}documentClickHandler(i){this.setInactiveIfNotContained(i)}calciteComboboxItemChangeHandler(i){if(this.ignoreSelectedEventsFlag)return;const t=i.target,e=this.visibleItems.indexOf(t);this.updateActiveItemIndex(e),this.toggleSelection(t,t.selected)}async reposition(){const{floatingEl:i,referenceEl:t,placement:e,overlayPositioning:a}=this;return l({floatingEl:i,referenceEl:t,overlayPositioning:a,placement:e,type:"menu"})}async setFocus(){var i;null===(i=this.textInput)||void 0===i||i.focus(),this.activeChipIndex=-1,this.activeItemIndex=-1}connectedCallback(){var i;this.internalValueChangeFlag=!0,this.value=this.getValue(),this.internalValueChangeFlag=!1,null===(i=this.mutationObserver)||void 0===i||i.observe(this.el,{childList:!0,subtree:!0}),x(this),k(this),O(this),this.reposition(),this.setFilteredPlacements(),this.active&&this.activeHandler(this.active),this.open&&this.openHandler(this.open)}componentWillLoad(){this.updateItems()}componentDidLoad(){y(this,this.getValue()),this.reposition()}componentDidRender(){this.el.offsetHeight!==this.inputHeight&&(this.reposition(),this.inputHeight=this.el.offsetHeight),I(this)}disconnectedCallback(){var i,t;null===(i=this.mutationObserver)||void 0===i||i.disconnect(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),g(this),D(this),m(this,this.referenceEl,this.floatingEl),_(this)}selectedItemsHandler(){this.internalValueChangeFlag=!0,this.value=this.getValue(),this.internalValueChangeFlag=!1}textHandler(){this.updateActiveItemIndex(-1)}comboboxInViewport(){const i=this.el.getBoundingClientRect();return i.top>=0&&i.left>=0&&i.right<=(window.innerWidth||document.documentElement.clientWidth)&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)}onBeforeOpen(){this.calciteComboboxBeforeOpen.emit()}onOpen(){this.calciteComboboxOpen.emit()}onBeforeClose(){this.calciteComboboxBeforeClose.emit()}onClose(){this.calciteComboboxClose.emit()}getMaxScrollerHeight(){const i=this.getCombinedItems().filter((i=>!i.hidden)),{maxItems:t}=this;let e=0,a=0;return i.length>t&&i.forEach((i=>{if(e<t&&t>0){const t=this.calculateSingleItemHeight(i);t>0&&(a+=t,e++)}})),a}calculateSingleItemHeight(i){let t=i.offsetHeight;return Array.from(i.querySelectorAll(T)).map((i=>null==i?void 0:i.offsetHeight)).forEach((i=>{t-=i})),t}getCombinedItems(){return[...this.groupItems,...this.items]}toggleSelection(i,t=!i.selected){i&&(this.isMulti()?(i.selected=t,this.updateAncestors(i),this.selectedItems=this.getSelectedItems(),this.emitCalciteLookupChange(),this.emitComboboxChange(),this.resetText(),this.filterItems("")):(this.ignoreSelectedEventsFlag=!0,this.items.forEach((e=>e.selected=e===i&&t)),this.ignoreSelectedEventsFlag=!1,this.selectedItems=this.getSelectedItems(),this.emitComboboxChange(),this.textInput&&(this.textInput.value=i.textLabel),this.open=!1,this.updateActiveItemIndex(-1),this.resetText(),this.filterItems("")))}updateAncestors(i){if("ancestors"!==this.selectionMode)return;const t=M(i),e=function(i){return p(i.querySelectorAll("calcite-combobox-item"))}(i);i.selected?t.forEach((i=>{i.selected=!0})):(e.forEach((i=>i.selected=!1)),[...t].forEach((i=>{$(i)||(i.selected=!1)})))}getVisibleItems(){return this.items.filter((i=>!i.hidden))}getSelectedItems(){if(!this.isMulti()){const i=this.items.find((({selected:i})=>i));return i?[i]:[]}return this.items.filter((i=>i.selected&&("ancestors"!==this.selectionMode||!$(i)))).sort(((i,t)=>{const e=this.selectedItems.indexOf(i),a=this.selectedItems.indexOf(t);return e>-1&&a>-1?e-a:a-e}))}getData(){return this.items.map((i=>({constant:i.constant,filterDisabled:i.filterDisabled,value:i.value,label:i.textLabel})))}getNeedsIcon(){return"single"===this.selectionMode&&this.items.some((i=>i.icon))}resetText(){this.textInput&&(this.textInput.value=""),this.text=""}getItems(){return Array.from(this.el.querySelectorAll("CALCITE-COMBOBOX-ITEM")).filter((i=>!i.disabled))}getGroupItems(){return Array.from(this.el.querySelectorAll("CALCITE-COMBOBOX-ITEM-GROUP"))}addCustomChip(i,t){const e=this.items.find((t=>t.textLabel===i));if(e)this.toggleSelection(e,!0);else{this.isMulti()||this.toggleSelection(this.selectedItems[this.selectedItems.length-1],!1);const e=document.createElement("CALCITE-COMBOBOX-ITEM");e.value=i,e.textLabel=i,e.selected=!0,this.el.appendChild(e),this.resetText(),t&&this.setFocus(),this.updateItems(),this.filterItems(""),this.emitCalciteLookupChange(),this.emitComboboxChange()}}removeActiveChip(){this.toggleSelection(this.selectedItems[this.activeChipIndex],!1),this.setFocus()}removeLastChip(){this.toggleSelection(this.selectedItems[this.selectedItems.length-1],!1),this.setFocus()}previousChip(){if(this.text)return;const i=this.activeChipIndex;this.activeChipIndex=-1===i?this.selectedItems.length-1:Math.max(i-1,0),this.updateActiveItemIndex(-1),this.focusChip()}nextChip(){if(this.text||-1===this.activeChipIndex)return;const i=this.activeChipIndex+1;i>this.selectedItems.length-1?(this.activeChipIndex=-1,this.setFocus()):(this.activeChipIndex=i,this.focusChip()),this.updateActiveItemIndex(-1)}focusChip(){var i;const t=null===(i=this.selectedItems[this.activeChipIndex])||void 0===i?void 0:i.guid,e=t?this.referenceEl.querySelector(`#combobox-chip-${t}`):null;null==e||e.setFocus()}shiftActiveItemIndex(i){const{length:t}=this.visibleItems;this.updateActiveItemIndex((this.activeItemIndex+t+i)%t),this.scrollToActiveItem()}updateActiveItemIndex(i){var t;this.activeItemIndex=i;let e=null;this.visibleItems.forEach(((t,a)=>{a===i?(t.active=!0,e=`combobox-item-${t.guid}`):t.active=!1})),this.activeDescendant=e,this.activeItemIndex>-1&&(this.activeChipIndex=-1,null===(t=this.textInput)||void 0===t||t.focus())}isMulti(){return"single"!==this.selectionMode}renderChips(){const{activeChipIndex:i,scale:t,selectionMode:a,intlRemoveTag:n}=this;return this.selectedItems.map(((s,o)=>{const c={chip:!0,"chip--active":i===o},r=[...[...M(s)].reverse(),s].map((i=>i.textLabel)),l="ancestors"!==a?s.textLabel:r.join(" / ");return e("calcite-chip",{class:c,dismissLabel:n,dismissible:!0,icon:s.icon,id:s.guid?`combobox-chip-${s.guid}`:null,key:s.textLabel,onCalciteChipDismiss:i=>this.calciteChipDismissHandler(i,s),scale:t,title:l,value:s.value},l)}))}renderInput(){const{guid:i,active:t,disabled:a,placeholder:n,selectionMode:s,needsIcon:o,selectedItems:c,open:r}=this,l="single"===s,m=c[0],h=!(r||t)&&l&&!!m;return e("span",{class:{"input-wrap":!0,"input-wrap--single":l}},h&&e("span",{class:{label:!0,"label--spaced":o},key:"label"},m.textLabel),e("input",{"aria-activedescendant":this.activeDescendant,"aria-autocomplete":"list","aria-controls":`combobox-listbox-${i}`,"aria-label":w(this),class:{input:!0,"input--single":!0,"input--transparent":this.activeChipIndex>-1,"input--hidden":h,"input--icon":l&&o},disabled:a,id:`combobox-input-${i}`,key:"input",onBlur:this.comboboxBlurHandler,onFocus:this.comboboxFocusHandler,onInput:this.inputHandler,placeholder:n,ref:i=>this.textInput=i,type:"text"}))}renderListBoxOptions(){return this.visibleItems.map((i=>e("li",{"aria-selected":b(i.selected),id:i.guid?`combobox-item-${i.guid}`:null,role:"option",tabindex:"-1"},i.textLabel)))}renderFloatingUIContainer(){const{active:i,setFloatingEl:t,setContainerEl:a,open:n}=this;return e("div",{"aria-hidden":"true",class:{"floating-ui-container":!0,"floating-ui-container--active":n||i},ref:t},e("div",{class:{"list-container":!0,[h.animation]:!0,[h.animationActive]:n||i},ref:a},e("ul",{class:{list:!0,"list--hide":!(n||i)}},e("slot",null))))}renderIconStart(){var i;const{selectionMode:t,needsIcon:a,selectedItems:n,placeholderIcon:s}=this,o=n[0];return"single"===t&&a&&((null==o?void 0:o.icon)||s)&&e("span",{class:"icon-start"},e("calcite-icon",{class:"selected-icon",icon:null!==(i=null==o?void 0:o.icon)&&void 0!==i?i:s,scale:"s"}))}renderIconEnd(){const{active:i,open:t}=this;return e("span",{class:"icon-end"},e("calcite-icon",{icon:i||t?"chevron-up":"chevron-down",scale:"s"}))}render(){const{active:i,guid:t,label:n,open:s}=this,o="single"===this.selectionMode;return e(a,null,e("div",{"aria-autocomplete":"list","aria-controls":`combobox-listbox-${t}`,"aria-expanded":b(s||i),"aria-haspopup":"listbox","aria-labelledby":`combobox-label-${t}`,"aria-live":"polite","aria-owns":`combobox-listbox-${t}`,class:{wrapper:!0,"wrapper--single":o||!this.selectedItems.length,"wrapper--active":s||i},onClick:this.clickHandler,onKeyDown:this.keydownHandler,ref:this.setReferenceEl,role:"combobox",tabindex:"0"},e("div",{class:"grid-input"},this.renderIconStart(),!o&&this.renderChips(),e("label",{class:"screen-readers-only",htmlFor:`combobox-input-${t}`,id:`combobox-label-${t}`},n),this.renderInput()),this.renderIconEnd()),e("ul",{"aria-labelledby":`combobox-label-${t}`,"aria-multiselectable":"true",class:"screen-readers-only",id:`combobox-listbox-${t}`,role:"listbox",tabIndex:-1},this.renderListBoxOptions()),this.renderFloatingUIContainer(),e(C,{component:this}))}get el(){return n(this)}static get watchers(){return{active:["activeHandler"],open:["openHandler"],disabled:["handleDisabledChange"],maxItems:["maxItemsHandler"],overlayPositioning:["overlayPositioningHandler"],value:["valueHandler"],flipPlacements:["flipPlacementsHandler"],selectedItems:["selectedItemsHandler"],text:["textHandler"]}}};j.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none !important}: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{position:relative;display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-inline-size:120px;-webkit-margin-after:var(--calcite-combobox-item-spacing-unit-s);margin-block-end:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-block:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 0%;flex:1 1 0%;overflow:hidden}.label{pointer-events:none;display:-ms-flexbox;display:flex;max-inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-block:0px;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:-ms-flexbox;display:flex;inline-size:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}.icon-end{-ms-flex:none;flex:none}.floating-ui-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.floating-ui-container .calcite-floating-ui-anim{position:relative;-webkit-transition:var(--calcite-floating-ui-transition);transition:var(--calcite-floating-ui-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);z-index:1;border-radius:0.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.floating-ui-container--active{pointer-events:initial;visibility:visible}@media (forced-colors: active){.wrapper,.floating-ui-container--active{border:1px solid canvasText}}.screen-readers-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{block-size:0px;overflow:hidden}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-inline-size:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.item{display:block}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";const P=class{constructor(e){i(this,e),this.calciteComboboxItemChange=t(this,"calciteComboboxItemChange",6),this.disabled=!1,this.selected=!1,this.active=!1,this.guid=d(),this.scale="m",this.itemClickHandler=i=>{i.preventDefault(),this.disabled||(this.selected=!this.selected)}}selectedWatchHandler(){this.calciteComboboxItemChange.emit(this.el)}connectedCallback(){this.ancestors=A(this.el),this.scale=u(this.el,"scale",this.scale),H(this)}disconnectedCallback(){B(this)}componentDidRender(){I(this)}async toggleSelected(i){this.disabled||(this.selected="boolean"==typeof i?i:!this.selected)}renderIcon(i){const{icon:t,disabled:a,selected:n}=this,s="icon--indent";return!i||t||a?e("calcite-icon",{class:{icon:!t,"icon--custom":!!t,"icon--active":t&&n,[s]:!0},icon:t||(a?"circle-disallowed":i?"dot":"check"),scale:"s"}):e("span",{class:{icon:!0,"icon--dot":!0,[s]:!0}})}renderChildren(){return f(this.el)?e("ul",{key:"default-slot-container"},e("slot",null)):null}render(){const i="single"===u(this.el,"selection-mode","multi"),t={label:!0,"label--selected":this.selected,"label--active":this.active,"label--single":i},n=L(this.el);return e(a,{"aria-hidden":"true"},e("div",{class:`container scale--${this.scale}`,style:{"--calcite-combobox-item-spacing-indent-multiplier":`${n}`}},e("li",{class:t,id:this.guid,onClick:this.itemClickHandler},this.renderIcon(i),e("span",{class:"title"},this.textLabel)),this.renderChildren()))}get el(){return n(this)}static get watchers(){return{selected:["selectedWatchHandler"]}}};P.style='@charset "UTF-8";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none !important}: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)}.scale--s{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-item-spacing-indent:0.5rem}.scale--m{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-item-spacing-indent:0.75rem}.scale--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-item-spacing-indent:1rem}.container{--calcite-combobox-item-indent-value:calc(\n var(--calcite-combobox-item-spacing-indent) * var(--calcite-combobox-item-spacing-indent-multiplier)\n )}:host(:focus){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host,ul{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0px}:host(:focus),ul:focus{outline:2px solid transparent;outline-offset:2px}.label{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;inline-size:100%;min-inline-size:100%;cursor:pointer;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;-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);outline-color:transparent;padding-block:var(--calcite-combobox-item-spacing-unit-s);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}:host([disabled]) .label{cursor:default}.label--selected{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}.label--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.label:hover,.label:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.title{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon{display:-ms-inline-flexbox;display:inline-flex;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);color:var(--calcite-ui-border-1)}.icon--indent{-webkit-padding-start:var(--calcite-combobox-item-indent-value);padding-inline-start:var(--calcite-combobox-item-indent-value)}.icon--custom{-webkit-margin-before:-1px;margin-block-start:-1px;color:var(--calcite-ui-text-3)}.icon--active{color:var(--calcite-ui-text-1)}.icon--dot{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;min-inline-size:var(--calcite-combobox-item-spacing-unit-l)}.icon--dot:before{text-align:start;content:"•"}.label--active .icon{opacity:1}.label--selected .icon{opacity:1;color:var(--calcite-ui-brand)}:host(:hover[disabled]) .icon{opacity:1}';const X=class{constructor(t){i(this,t),this.guid=d(),this.scale="m"}connectedCallback(){this.ancestors=A(this.el),this.scale=u(this.el,"scale",this.scale)}render(){const{el:i,scale:t}=this,a=`label--indent-${L(i)}`;return e("ul",{"aria-labelledby":this.guid,class:{list:!0,[`scale--${t}`]:!0},role:"group"},e("li",{class:{label:!0,[a]:!0},id:this.guid,role:"presentation"},e("span",{class:"title"},this.label)),e("slot",null))}get el(){return n(this)}};X.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none !important}.scale--s{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-item-spacing-indent-1:0.5rem;--calcite-combobox-item-spacing-indent-2:1rem}.scale--m{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-item-spacing-indent-1:0.75rem;--calcite-combobox-item-spacing-indent-2:1.5rem}.scale--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-item-spacing-indent-1:1rem;--calcite-combobox-item-spacing-indent-2:2rem}:host,.list{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0px}:host(:focus),.list:focus{outline:2px solid transparent;outline-offset:2px}.label{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;inline-size:100%;min-inline-size:0px;max-inline-size:100%;color:var(--calcite-ui-text-3)}.label--indent-1{-webkit-padding-start:var(--calcite-combobox-item-spacing-indent-1);padding-inline-start:var(--calcite-combobox-item-spacing-indent-1)}.label--indent-2{-webkit-padding-start:var(--calcite-combobox-item-spacing-indent-2);padding-inline-start:var(--calcite-combobox-item-spacing-indent-2)}.title{border:0 solid;display:block;-ms-flex:1 1 0%;flex:1 1 0%;border-block-end-width:1px;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2);word-wrap:break-word;word-break:break-word;border-block-end-color:var(--calcite-ui-border-3);padding-block:var(--calcite-combobox-item-spacing-unit-l);padding-inline:0;margin-inline:var(--calcite-combobox-item-spacing-unit-s)}";export{j as calcite_combobox,P as calcite_combobox_item,X as calcite_combobox_item_group}
|
|
@@ -2,5 +2,5 @@ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e)
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
* v1.0.0-next.
|
|
6
|
-
*/System.register(["./p-
|
|
5
|
+
* v1.0.0-next.557
|
|
6
|
+
*/System.register(["./p-089c4e7a.system.js","./p-430ddb64.system.js","./p-f505b966.system.js","./p-bd29bacb.system.js"],(function(e){"use strict";var t,i,n,r,a,s,l;return{setters:[function(e){t=e.f;i=e.g;n=e.t},function(e){r=e.g},function(e){a=e.d},function(e){s=e.h;l=e.H}],execute:function(){e({I:void 0,a:k,b:L,c:_,d:V,e:h,f:m,g:E,h:P,i:v,j:y,k:w,l:p,m:f,n:b,o:C,p:A,r:S,s:F});var o=e("t",{heading:"heading",container:"container",indented:"container--indented"});var u=e("q",{parentItem:"parent-item"});var c=e("H",3);function f(){this.setUpItems();this.setUpFilter();this.deselectRemovedItems()}var d=["ArrowUp","ArrowDown"];function v(){this.setUpItems();this.setUpFilter();this.emitCalciteListChange=a(I.bind(this),0)}function h(){var e;(e=this.mutationObserver)===null||e===void 0?void 0:e.observe(this.el,{childList:true,subtree:true})}function m(){var e;(e=this.mutationObserver)===null||e===void 0?void 0:e.disconnect()}function p(e){var i=this.selectedValues;var n=e.detail,r=n.item,a=n.value,s=n.selected,l=n.shiftPressed;if(s){if(this.multiple&&l){this.selectSiblings(r)}if(!this.multiple){this.deselectSiblingItems(r)}i.set(a,r)}else{i.delete(a);if(this.multiple&&l){this.selectSiblings(r,true)}}if(!this.multiple){O(r,s);if(s){t(r)}}this.lastSelectedItem=r;this.emitCalciteListChange()}function b(e){var t=e.detail.oldValue;var i=this.selectedValues;if(i.has(t)){var n=i.get(t);i.delete(t);i.set(e.detail.newValue,n)}e.stopPropagation()}function g(e){return!!d.find((function(t){return t===e}))}function y(e){var t=this,i=t.el,n=t.items,r=t.multiple,a=t.selectedValues;if(r){return}var s=i.contains(e.relatedTarget);if(s){return}x(n).forEach((function(t){O(t,a.size===0?t.contains(e.target)||e.target===t:t.selected)}))}function w(e){var i=e.key,n=e.target;if(!g(i)){return}var r=this,a=r.items,s=r.multiple,l=r.selectionFollowsFocus;var o=a.length;var u=a.indexOf(n);if(!o||u===-1){return}e.preventDefault();var c=_(this,n,i==="ArrowUp"?"up":"down");var f=a[c];a.forEach((function(e){return O(e,e===f)}));if(!s&&l){f.selected=true}t(f)}function _(e,t,i){var n=e.items;var a=n.length;var s=n.indexOf(t);var l=i==="up"?-1:1;var o=1;var u=r(s+l*o++,a);var c=u;while(n[u].disabled){u=r(s+l*o++,a);if(u===c){break}}return u}function E(e,t){var i=e.items;return i.indexOf(t)}function x(e){return e.filter((function(e){return!e.disabled}))}function I(){this.calciteListChange.emit(this.selectedValues)}function S(e){if(e.defaultPrevented){return}var t=e.target;var i=this.selectedValues;if(t.parentElement.tagName==="CALCITE-PICK-LIST-GROUP"&&t.slot===u.parentItem){t.parentElement.remove();Array.from(t.parentElement.children).forEach((function(e){return i.delete(e.value)}))}else{t.remove();i.delete(t.value)}this.emitCalciteListChange()}function O(e,t){if(e.disabled){return}if(t){e.removeAttribute("tabindex")}else{e.setAttribute("tabindex","-1")}}function A(e){return __awaiter(this,void 0,void 0,(function(){var i,n,r,a,s,l,o;return __generator(this,(function(u){switch(u.label){case 0:if(!(this.filterEnabled&&e==="filter"))return[3,2];return[4,t(this.filterEl)];case 1:u.sent();return[2];case 2:n=this,r=n.items,a=n.multiple,s=n.selectionFollowsFocus;if(r.length===0){return[2]}if(a){return[2,(i=x(r)[0])===null||i===void 0?void 0:i.setFocus()]}l=x(r);o=l.find((function(e){return e.selected}))||l[0];if(s&&o){o.selected=true}return[2,o.setFocus()]}}))}))}function C(e){var t=this;this.items=Array.from(this.el.querySelectorAll(e));var i=false;var n=this.items;n.forEach((function(e){e.icon=t.getIconType();if(!t.multiple){e.disableDeselect=true;O(e,false)}if(e.selected){i=true;O(e,true);t.selectedValues.set(e.value,e)}}));var r=n[0];if(!i&&r&&!r.disabled){O(r,true)}}function V(){var e=this;var t=this.selectedValues;var i=this.items.map((function(e){var t=e.value;return t}));t.forEach((function(t){if(!i.includes(t.value)){e.selectedValues.delete(t.value)}}))}function k(e){var t=this;this.items.forEach((function(i){if(i.value!==e.value){i.toggleSelected(false);if(t.selectedValues.has(i.value)){t.selectedValues.delete(i.value)}}}))}function F(e,t){var i=this;if(t===void 0){t=false}if(!this.lastSelectedItem){return}var n=this.items;var r=n.findIndex((function(e){return e.value===i.lastSelectedItem.value}));var a=n.findIndex((function(t){return t.value===e.value}));n.slice(Math.min(r,a),Math.max(r,a)).forEach((function(e){e.toggleSelected(!t);if(!t){i.selectedValues.set(e.value,e)}else{i.selectedValues.delete(e.value)}}))}var j;function P(e){var t=e.currentTarget.filteredItems;var n=t.map((function(e){return e.value}));var r=false;if(!j){j=new Set}var a=this.items.filter((function(e){var t=e.parentElement;var i=t.matches("calcite-pick-list-group");if(i){j.add(t)}var a=n.includes(e.value);e.hidden=!a;if(!r){r=a&&e.selected}return a}));j.forEach((function(e){var t=a.some((function(t){return e.contains(t)}));e.hidden=!t;if(!t){return}var n=i(e,"parent-item");if(n){n.hidden=false;if(a.includes(n)){Array.from(e.children).forEach((function(e){return e.hidden=false}))}}}));j.clear();if(a.length>0&&!r&&!this.multiple){O(a[0],true)}}function L(){return this.items.map((function(e){return{label:e.label,description:e.description,metadata:e.metadata,value:e.value}}))}var T={sticky:"sticky-pos"};var U;(function(e){e["circle"]="circle";e["square"]="square";e["grip"]="grip"})(U||(U=e("I",{})));var q={menuActions:"menu-actions"};var D=e("L",(function(e){var t;var i=e.props,r=i.disabled,a=i.loading,o=i.filterEnabled,u=i.dataForFilter,c=i.handleFilter,f=i.filterPlaceholder,d=i.setFilterEl,v=i.dragEnabled,h=i.storeAssistiveEl,m=__rest(e,["props"]);var p=s("slot",null);return s(l,__assign({"aria-busy":n(a),role:"menu"},m),s("section",null,v?s("span",{"aria-live":"assertive",class:"assistive-text",ref:h}):null,s("header",{class:(t={},t[T.sticky]=true,t)},o?s("calcite-filter",{"aria-label":f,disabled:a||r,items:u,onCalciteFilterChange:c,placeholder:f,ref:d}):null,s("slot",{name:q.menuActions})),a?s("calcite-scrim",{loading:a}):null,p))}));var R=e("C",{actions:"actions",actionsEnd:"actions--end",actionsStart:"actions--start",description:"description",handle:"handle",handleActivated:"handle--activated",highlight:"highlight",icon:"icon",iconDot:"icon-dot",label:"label",remove:"remove",title:"title",textContainer:"text-container"});var G=e("u",{checked:"check",remove:"x"});var H=e("S",{actionsEnd:"actions-end",actionsStart:"actions-start"});var M=e("T",{remove:"Remove"})}}}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.557
|
|
5
5
|
*/
|
|
6
6
|
System.register([],(function(r){"use strict";return{execute:function(){r({a:c,c:g,h:o,i:i,n:u,p:v,r:t});function t(r){var t=r.r,n=r.g,e=r.b;return"#".concat(t.toString(16).padStart(2,"0")).concat(n.toString(16).padStart(2,"0")).concat(e.toString(16).padStart(2,"0")).toLowerCase()}var n=r("b",/^[0-9A-F]$/i);var e=/^#[0-9A-F]{3}$/i;var a=/^#[0-9A-F]{6}$/i;function i(r){return s(r)||c(r)}function s(r){return r&&r.length===4&&e.test(r)}function c(r){return r&&r.length===7&&a.test(r)}function u(r){r=r.toLowerCase();if(!r.startsWith("#")){r="#".concat(r)}if(s(r)){return t(o(r))}return r}function o(r){if(!i(r)){return null}r=r.replace("#","");if(r.length===3){var t=r.split(""),n=t[0],e=t[1],a=t[2];var s=parseInt("".concat(n).concat(n),16);var c=parseInt("".concat(e).concat(e),16);var u=parseInt("".concat(a).concat(a),16);return{r:s,g:c,b:u}}var o=parseInt(r.slice(0,2),16);var S=parseInt(r.slice(2,4),16);var f=parseInt(r.slice(4,6),16);return{r:o,g:S,b:f}}var S=function(r){return r};var f=r("C",S({HEX:"hex",HEXA:"hexa",RGB_CSS:"rgb-css",RGBA_CSS:"rgba-css",HSL_CSS:"hsl-css",HSLA_CSS:"hsla-css"}));var l=S({RGB:"rgb",RGBA:"rgba",HSL:"hsl",HSLA:"hsla",HSV:"hsv",HSVA:"hsva"});function v(r){if(typeof r==="string"){if(r.startsWith("#")){var t=r.length;if(t===4||t===7){return f.HEX}if(t===5||t===9){return f.HEXA}}if(r.startsWith("rgba(")){return f.RGBA_CSS}if(r.startsWith("rgb(")){return f.RGB_CSS}if(r.startsWith("hsl(")){return f.HSL_CSS}if(r.startsWith("hsla(")){return f.HSLA_CSS}}if(typeof r==="object"){if(h(r,"r","g","b")){return h(r,"a")?l.RGBA:l.RGB}if(h(r,"h","s","l")){return h(r,"a")?l.HSLA:l.HSL}if(h(r,"h","s","v")){return h(r,"a")?l.HSVA:l.HSV}}return null}function h(r){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}return t.every((function(t){return t&&r&&"".concat(t)in r}))}function g(r,t){return(r===null||r===void 0?void 0:r.rgbNumber())===(t===null||t===void 0?void 0:t.rgbNumber())}}}}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.557
|
|
5
5
|
*/
|
|
6
6
|
System.register([],(function(e){"use strict";return{execute:function(){var t=e("C",{menu:"menu",defaultTrigger:"default-trigger"});var r=e("S",{tooltip:"tooltip",trigger:"trigger"});var i=e("I",{menu:"ellipsis"})}}}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.557
|
|
5
5
|
*/
|
|
6
|
-
import{f as t,g as i,t as s}from"./p-
|
|
6
|
+
import{f as t,g as i,t as s}from"./p-3f0a88a5.js";import{g as n}from"./p-28eb7892.js";import{d as e}from"./p-0b2dbf1f.js";import{h as a,H as o}from"./p-967ab5ce.js";const r={heading:"heading",container:"container",indented:"container--indented"},c={parentItem:"parent-item"},l=3;function h(){this.setUpItems(),this.setUpFilter(),this.deselectRemovedItems()}const u=["ArrowUp","ArrowDown"];function d(){this.setUpItems(),this.setUpFilter(),this.emitCalciteListChange=e(x.bind(this),0)}function f(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0})}function m(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect()}function p(i){const{selectedValues:s}=this,{item:n,value:e,selected:a,shiftPressed:o}=i.detail;a?(this.multiple&&o&&this.selectSiblings(n),this.multiple||this.deselectSiblingItems(n),s.set(e,n)):(s.delete(e),this.multiple&&o&&this.selectSiblings(n,!0)),this.multiple||(C(n,a),a&&t(n)),this.lastSelectedItem=n,this.emitCalciteListChange()}function v(t){const i=t.detail.oldValue,s=this.selectedValues;if(s.has(i)){const n=s.get(i);s.delete(i),s.set(t.detail.newValue,n)}t.stopPropagation()}function g(t){const{el:i,items:s,multiple:n,selectedValues:e}=this;n||i.contains(t.relatedTarget)||F(s).forEach((i=>{C(i,0===e.size?i.contains(t.target)||t.target===i:i.selected)}))}function b(i){const{key:s,target:n}=i;if(!function(t){return!!u.find((i=>i===t))}(s))return;const{items:e,multiple:a,selectionFollowsFocus:o}=this,{length:r}=e,c=e.indexOf(n);if(!r||-1===c)return;i.preventDefault();const l=e[w(this,n,"ArrowUp"===s?"up":"down")];e.forEach((t=>C(t,t===l))),!a&&o&&(l.selected=!0),t(l)}function w(t,i,s){const{items:e}=t,{length:a}=e,o=e.indexOf(i),r="up"===s?-1:1;let c=1,l=n(o+r*c++,a);const h=l;for(;e[l].disabled&&(l=n(o+r*c++,a),l!==h););return l}function A(t,i){const{items:s}=t;return s.indexOf(i)}function F(t){return t.filter((t=>!t.disabled))}function x(){this.calciteListChange.emit(this.selectedValues)}function y(t){if(t.defaultPrevented)return;const i=t.target,s=this.selectedValues;"CALCITE-PICK-LIST-GROUP"===i.parentElement.tagName&&i.slot===c.parentItem?(i.parentElement.remove(),Array.from(i.parentElement.children).forEach((t=>s.delete(t.value)))):(i.remove(),s.delete(i.value)),this.emitCalciteListChange()}function C(t,i){t.disabled||(i?t.removeAttribute("tabindex"):t.setAttribute("tabindex","-1"))}async function E(i){var s;if(this.filterEnabled&&"filter"===i)return void await t(this.filterEl);const{items:n,multiple:e,selectionFollowsFocus:a}=this;if(0===n.length)return;if(e)return null===(s=F(n)[0])||void 0===s?void 0:s.setFocus();const o=F(n),r=o.find((t=>t.selected))||o[0];return a&&r&&(r.selected=!0),r.setFocus()}function k(t){this.items=Array.from(this.el.querySelectorAll(t));let i=!1;const{items:s}=this;s.forEach((t=>{t.icon=this.getIconType(),this.multiple||(t.disableDeselect=!0,C(t,!1)),t.selected&&(i=!0,C(t,!0),this.selectedValues.set(t.value,t))}));const[n]=s;i||!n||n.disabled||C(n,!0)}function I(){const t=this.selectedValues,i=this.items.map((({value:t})=>t));t.forEach((t=>{i.includes(t.value)||this.selectedValues.delete(t.value)}))}function j(t){this.items.forEach((i=>{i.value!==t.value&&(i.toggleSelected(!1),this.selectedValues.has(i.value)&&this.selectedValues.delete(i.value))}))}function S(t,i=!1){if(!this.lastSelectedItem)return;const{items:s}=this,n=s.findIndex((t=>t.value===this.lastSelectedItem.value)),e=s.findIndex((i=>i.value===t.value));s.slice(Math.min(n,e),Math.max(n,e)).forEach((t=>{t.toggleSelected(!i),i?this.selectedValues.delete(t.value):this.selectedValues.set(t.value,t)}))}let L;function P(t){const{filteredItems:s}=t.currentTarget,n=s.map((t=>t.value));let e=!1;L||(L=new Set);const a=this.items.filter((t=>{const i=t.parentElement;i.matches("calcite-pick-list-group")&&L.add(i);const s=n.includes(t.value);return t.hidden=!s,e||(e=s&&t.selected),s}));L.forEach((t=>{const s=a.some((i=>t.contains(i)));if(t.hidden=!s,!s)return;const n=i(t,"parent-item");n&&(n.hidden=!1,a.includes(n)&&Array.from(t.children).forEach((t=>t.hidden=!1)))})),L.clear(),a.length>0&&!e&&!this.multiple&&C(a[0],!0)}function T(){return this.items.map((t=>({label:t.label,description:t.description,metadata:t.metadata,value:t.value})))}var U;!function(t){t.circle="circle",t.square="square",t.grip="grip"}(U||(U={}));const q=({props:{disabled:t,loading:i,filterEnabled:n,dataForFilter:e,handleFilter:r,filterPlaceholder:c,setFilterEl:l,dragEnabled:h,storeAssistiveEl:u},...d})=>{const f=a("slot",null);return a(o,{"aria-busy":s(i),role:"menu",...d},a("section",null,h?a("span",{"aria-live":"assertive",class:"assistive-text",ref:u}):null,a("header",{class:{"sticky-pos":!0}},n?a("calcite-filter",{"aria-label":c,disabled:i||t,items:e,onCalciteFilterChange:r,placeholder:c,ref:l}):null,a("slot",{name:"menu-actions"})),i?a("calcite-scrim",{loading:i}):null,f))},D={actions:"actions",actionsEnd:"actions--end",actionsStart:"actions--start",description:"description",handle:"handle",handleActivated:"handle--activated",highlight:"highlight",icon:"icon",iconDot:"icon-dot",label:"label",remove:"remove",title:"title",textContainer:"text-container"},H={checked:"check",remove:"x"},M={actionsEnd:"actions-end",actionsStart:"actions-start"},R={remove:"Remove"};export{D as C,l as H,U as I,q as L,M as S,R as T,j as a,T as b,w as c,I as d,f as e,m as f,A as g,P as h,d as i,g as j,b as k,p as l,h as m,v as n,k as o,E as p,c as q,y as r,S as s,r as t,H as u}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.557
|
|
5
5
|
*/
|
|
6
|
-
import{c as n}from"./p-
|
|
6
|
+
import{c as n}from"./p-3f0a88a5.js";import{h as t}from"./p-967ab5ce.js";function e(n){return"checked"in n}const o=new WeakMap,i=new WeakSet;function r(n){const{formEl:t}=n;t&&("requestSubmit"in t?t.requestSubmit():t.submit())}function s(n){var t;null===(t=n.formEl)||void 0===t||t.reset()}function u(t){const{el:r,value:s}=t,u=n(r,"form");if(!u||function(n,t){const e="calciteInternalFormComponentRegister";let o=!1;return n.addEventListener(e,(n=>{o=n.composedPath().some((n=>i.has(n))),n.stopPropagation()}),{once:!0}),t.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0})),o}(u,r))return;t.formEl=u,t.defaultValue=s,e(t)&&(t.defaultChecked=t.checked);const a=(t.onFormReset||c).bind(t);u.addEventListener("reset",a),o.set(t.el,a),i.add(r)}function c(){e(this)?this.checked=this.defaultChecked:this.value=this.defaultValue}function a(n){const{el:t,formEl:e}=n;if(!e)return;const r=o.get(t);e.removeEventListener("reset",r),o.delete(t),n.formEl=null,i.delete(t)}function l(n,t){n.defaultValue=t}function f(n,t,o){var i;const{defaultValue:r,disabled:s,name:u,required:c}=n;t.defaultValue=r,t.disabled=s,t.name=u,t.required=c,t.tabIndex=-1,e(n)?(t.defaultChecked=n.defaultChecked,t.value=n.checked?o||"on":"",s||n.checked||(t.disabled=!0)):t.value=o||"",null===(i=n.syncHiddenFormInput)||void 0===i||i.call(n,t)}const m=({component:n})=>(function(n){const{el:t,formEl:e,name:o,value:i}=n,{ownerDocument:r}=t,s=t.querySelectorAll('input[slot="hidden-form-input"]');if(!e||!o)return void s.forEach((n=>n.remove()));const u=Array.isArray(i)?i:[i],c=[],a=new Set;let l;s.forEach((t=>{const e=u.find((n=>n==t.value));null!=e?(a.add(e),f(n,t,e)):c.push(t)})),u.forEach((t=>{if(a.has(t))return;let e=c.pop();e||(e=r.createElement("input"),e.slot="hidden-form-input"),l||(l=r.createDocumentFragment()),l.append(e),f(n,e,t)})),l&&t.append(l),c.forEach((n=>n.remove()))}(n),t("slot",{name:"hidden-form-input"}));export{m as H,l as a,u as c,a as d,s as r,r as s}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function o(e){try{c(i.next(e))}catch(e){r(e)}}function l(e){try{c(i["throw"](e))}catch(e){r(e)}}function c(e){e.done?n(e.value):a(e.value).then(o,l)}c((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return c([e,t])}}function c(o){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;a=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){n.label=o[1];break}if(o[0]===6&&n.label<r[1]){n.label=r[1];r=o;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(o);break}if(r[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];a=0}finally{i=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
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.557
|
|
6
|
+
*/System.register(["./p-bd29bacb.system.js","./p-089c4e7a.system.js","./p-e307f02b.system.js","./p-4b690d1f.system.js","./p-2e486788.system.js","./p-8eeb2705.system.js","./p-fb20f3c6.system.js","./p-995ea165.system.js","./p-c80f7567.system.js"],(function(e){"use strict";var t,n,i,a,r,o,l,c,s,d,u,h,f,m;return{setters:[function(e){t=e.r;n=e.c;i=e.h;a=e.F;r=e.g},function(e){o=e.a;l=e.g;c=e.t},function(e){s=e.H},function(e){d=e.S},function(e){u=e.c;h=e.d},function(e){f=e.u},function(e){m=e.c},function(){},function(){}],execute:function(){var p={backButton:"back-button",container:"container",header:"header",heading:"heading",summary:"summary",description:"description",headerContent:"header-content",headerActions:"header-actions",headerActionsEnd:"header-actions--end",headerActionsStart:"header-actions--start",contentWrapper:"content-wrapper",contentContainer:"content-container",contentHeight:"content-height",fabContainer:"fab-container",footer:"footer",menuContainer:"menu-container",menuButton:"menu-button",menu:"menu",menuOpen:"menu--open"};var b={close:"x",menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right"};var v={headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerActions:"footer-actions"};var x={back:"Back",close:"Close",open:"Open",options:"Options"};var k=3;var y="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none !important}: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{position:relative;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.header{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-align:center;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}.container{margin:0px;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;max-block-size:var(--calcite-panel-max-height);inline-size:var(--calcite-panel-width);max-inline-size:var(--calcite-panel-max-width);min-inline-size:var(--calcite-panel-min-width);-webkit-transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing);transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}.header{-webkit-border-after:1px solid;border-block-end:1px solid;position:-webkit-sticky;position:sticky;inset-block-start:0px;z-index:400;inline-size:100%;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:start;justify-content:flex-start;background-color:var(--calcite-ui-foreground-1);border-block-end-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto}.header-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;-webkit-margin-end:auto;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}.header-content .heading:only-child{-webkit-margin-after:0px;margin-block-end:0px}.header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}.header-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}.header-actions--end,.menu-container:only-child{-webkit-margin-start:auto;margin-inline-start:auto}.menu-button{position:relative;block-size:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}.menu{min-inline-size:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.content-wrapper{overflow:auto}.content-height{block-size:100%}.content-container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background)}.footer{-webkit-border-before:1px solid;border-block-start:1px solid;position:-webkit-sticky;position:sticky;inset-block-end:0px;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);border-block-start-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto;min-block-size:3rem;padding:0.5rem}.fab-container{position:-webkit-sticky;position:sticky;inset-block-end:0px;inset-inline:0px;z-index:300;margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inline-size:-moz-fit-content;inline-size:-webkit-fit-content;inline-size:fit-content}";var w=e("calcite_panel",function(){function e(e){var i=this;t(this,e);this.calcitePanelDismiss=n(this,"calcitePanelDismiss",6);this.calcitePanelDismissedChange=n(this,"calcitePanelDismissedChange",6);this.calcitePanelScroll=n(this,"calcitePanelScroll",6);this.calcitePanelBackClick=n(this,"calcitePanelBackClick",6);this.dismissed=false;this.closed=false;this.disabled=false;this.dismissible=false;this.closable=false;this.showBackButton=false;this.loading=false;this.menuOpen=false;this.resizeObserver=m("resize",(function(){return i.resizeHandler()}));this.resizeHandler=function(){var e=i.panelScrollEl;if(!e||typeof e.scrollHeight!=="number"||typeof e.offsetHeight!=="number"){return}e.tabIndex=e.scrollHeight>e.offsetHeight?0:-1};this.setContainerRef=function(e){i.containerEl=e};this.setCloseRef=function(e){i.closeButtonEl=e};this.setBackRef=function(e){i.backButtonEl=e};this.panelKeyDownHandler=function(e){if(e.key==="Escape"){i.close()}};this.close=function(){i.closed=true;i.calcitePanelDismiss.emit()};this.panelScrollHandler=function(){i.calcitePanelScroll.emit()};this.backButtonClick=function(){i.calcitePanelBackClick.emit()};this.setPanelScrollEl=function(e){var t,n;i.panelScrollEl=e;(t=i.resizeObserver)===null||t===void 0?void 0:t.disconnect();if(e){(n=i.resizeObserver)===null||n===void 0?void 0:n.observe(e);i.resizeHandler()}}}e.prototype.dismissedHandler=function(e){this.closed=e;this.calcitePanelDismissedChange.emit()};e.prototype.closedHandler=function(e){this.dismissed=e};e.prototype.dismissibleHandler=function(e){this.closable=e};e.prototype.closableHandler=function(e){this.dismissible=e};e.prototype.componentDidRender=function(){f(this)};e.prototype.connectedCallback=function(){u(this);var e=this.dismissed||this.closed;var t=this.dismissible||this.closable;if(e){this.dismissedHandler(e);this.closedHandler(e)}if(t){this.dismissibleHandler(t);this.closableHandler(t)}};e.prototype.disconnectedCallback=function(){var e;h(this);(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,i;return __generator(this,(function(a){if(e==="dismiss-button"){(t=this.closeButtonEl)===null||t===void 0?void 0:t.setFocus();return[2]}if(e==="back-button"){(n=this.backButtonEl)===null||n===void 0?void 0:n.setFocus();return[2]}(i=this.containerEl)===null||i===void 0?void 0:i.focus();return[2]}))}))};e.prototype.scrollContentTo=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){(t=this.panelScrollEl)===null||t===void 0?void 0:t.scrollTo(e);return[2]}))}))};e.prototype.renderBackButton=function(){var e=this.el;var t=o(e)==="rtl";var n=this,a=n.showBackButton,r=n.intlBack,l=n.backButtonClick;var c=r||x.back;var s=t?b.backRight:b.backLeft;return a?i("calcite-action",{"aria-label":c,class:p.backButton,icon:s,key:"back-button",onClick:l,ref:this.setBackRef,scale:"s",slot:v.headerActionsStart,text:c}):null};e.prototype.renderHeaderContent=function(){var e=this,t=e.heading,n=e.headingLevel,a=e.summary,r=e.description;var o=t?i(s,{class:p.heading,level:n||k},t):null;var l=r||a?i("span",{class:p.description},r||a):null;return o||l?i("div",{class:p.headerContent,key:"header-content"},o,l):null};e.prototype.renderHeaderSlottedContent=function(){return i("div",{class:p.headerContent,key:"slotted-header-content"},i("slot",{name:v.headerContent}))};e.prototype.renderHeaderStartActions=function(){var e;var t=this.el;var n=l(t,v.headerActionsStart);return n?i("div",{class:(e={},e[p.headerActionsStart]=true,e[p.headerActions]=true,e),key:"header-actions-start"},i("slot",{name:v.headerActionsStart})):null};e.prototype.renderHeaderActionsEnd=function(){var e;var t=this,n=t.close,a=t.el,r=t.intlClose,o=t.closable;var c=r||x.close;var s=o?i("calcite-action",{"aria-label":c,icon:b.close,onClick:n,ref:this.setCloseRef,text:c}):null;var d=i("slot",{name:v.headerActionsEnd});var u=l(a,v.headerActionsEnd);return u||s?i("div",{class:(e={},e[p.headerActionsEnd]=true,e[p.headerActions]=true,e),key:"header-actions-end"},d,s):null};e.prototype.renderMenu=function(){var e=this,t=e.el,n=e.intlOptions,a=e.menuOpen;var r=l(t,v.headerMenuActions);return r?i("calcite-action-menu",{flipPlacements:["top","bottom"],key:"menu",label:n||x.options,open:a,placement:"bottom-end"},i("calcite-action",{icon:b.menu,slot:d.trigger,text:n||x.options}),i("slot",{name:v.headerMenuActions})):null};e.prototype.renderHeaderNode=function(){var e=this,t=e.el,n=e.showBackButton;var a=this.renderBackButton();var r=l(t,v.headerContent);var o=r?this.renderHeaderSlottedContent():this.renderHeaderContent();var c=this.renderHeaderStartActions();var s=this.renderHeaderActionsEnd();var d=this.renderMenu();return c||o||s||d||n?i("header",{class:p.header},a,c,o,s,d):null};e.prototype.renderFooterNode=function(){var e=this.el;var t=l(e,v.footer);var n=l(e,v.footerActions);return t||n?i("footer",{class:p.footer,key:"footer"},t?i("slot",{key:"footer-slot",name:v.footer}):null,n?i("slot",{key:"footer-actions-slot",name:v.footerActions}):null):null};e.prototype.renderContent=function(){var e,t;var n=this.el;var a=l(n,v.fab);var r=i("slot",{key:"default-slot"});var o="content-wrapper";return a?i("div",{class:(e={},e[p.contentWrapper]=true,e[p.contentHeight]=true,e),key:o,onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},i("section",{class:p.contentContainer},r),this.renderFab()):i("section",{class:(t={},t[p.contentWrapper]=true,t[p.contentContainer]=true,t),key:o,onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},r)};e.prototype.renderFab=function(){return i("div",{class:p.fabContainer},i("slot",{name:v.fab}))};e.prototype.render=function(){var e=this,t=e.loading,n=e.panelKeyDownHandler,r=e.closed,o=e.closable;var l=i("article",{"aria-busy":c(t),class:p.container,hidden:r,onKeyDown:n,ref:this.setContainerRef,tabIndex:o?0:-1},this.renderHeaderNode(),this.renderContent(),this.renderFooterNode());return i(a,null,t?i("calcite-scrim",{loading:t}):null,l)};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dismissed:["dismissedHandler"],closed:["closedHandler"],dismissible:["dismissibleHandler"],closable:["closableHandler"]}},enumerable:false,configurable:true});return e}());w.style=y}}}));
|
|
@@ -0,0 +1,6 @@
|
|
|
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.557
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as a,h as i,g as e,F as n}from"./p-967ab5ce.js";import{m as r,d as s,a as o,s as c,h as l,b as m,k as d,i as f,e as h,f as p,r as b,l as w,n as u,j as k,o as g,p as x,I as y,L as v,q as D,t as _,H as z,T as C,u as I,C as H,S as j}from"./p-4d7092d7.js";import{c as L}from"./p-f92ce833.js";import{u as W}from"./p-bc9318f3.js";import{g as F,t as R}from"./p-3f0a88a5.js";import{H as A,c as S}from"./p-473cdc07.js";import{c as T,d as V}from"./p-a562f13f.js";import"./p-28eb7892.js";import"./p-0b2dbf1f.js";import"./p-e664273e.js";import"./p-c8ba1f6a.js";const P=class{constructor(i){t(this,i),this.calciteListChange=a(this,"calciteListChange",6),this.disabled=!1,this.filterEnabled=!1,this.loading=!1,this.multiple=!1,this.selectionFollowsFocus=!1,this.selectedValues=new Map,this.dataForFilter=[],this.lastSelectedItem=null,this.mutationObserver=L("mutation",r.bind(this)),this.setFilterEl=t=>{this.filterEl=t},this.deselectRemovedItems=s.bind(this),this.deselectSiblingItems=o.bind(this),this.selectSiblings=c.bind(this),this.handleFilter=l.bind(this),this.getItemData=m.bind(this),this.keyDownHandler=d.bind(this)}connectedCallback(){f.call(this),h.call(this)}disconnectedCallback(){p.call(this)}componentDidRender(){W(this)}calciteListItemRemoveHandler(t){b.call(this,t)}calciteListItemChangeHandler(t){w.call(this,t)}calciteInternalListItemPropsChangeHandler(t){t.stopPropagation(),this.setUpFilter()}calciteInternalListItemValueChangeHandler(t){u.call(this,t),t.stopPropagation()}calciteListFocusOutHandler(t){k.call(this,t)}setUpItems(){g.call(this,"calcite-pick-list-item")}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}async getSelectedItems(){return this.selectedValues}async setFocus(t){return x.call(this,t)}getIconType(){return this.multiple?y.square:y.circle}render(){return i(v,{onKeyDown:this.keyDownHandler,props:this})}get el(){return e(this)}};P.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none !important}: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{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([filter-enabled]) header{-webkit-margin-after:0.25rem;margin-block-end:0.25rem;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:end;justify-content:flex-end;background-color:var(--calcite-ui-foreground-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header.sticky-pos{position:-webkit-sticky;position:sticky;inset-block-start:0px;z-index:1}calcite-filter{-webkit-margin-after:0px;margin-block-end:0px}:host([loading][disabled]){min-block-size:2rem}";const U=class{constructor(a){t(this,a)}connectedCallback(){T(this)}disconnectedCallback(){V(this)}render(){var t;const{el:a,groupTitle:e,headingLevel:r}=this,s=null!==F(a,D.parentItem),o={[_.container]:!0,[_.indented]:s},c=e,l=null===(t=a.closest("calcite-pick-list"))||void 0===t?void 0:t.headingLevel,m=l?S(l+1):null;return i(n,null,c?i(A,{class:_.heading,level:r||m||z},c):null,i("slot",{name:D.parentItem}),i("section",{class:o},i("slot",null)))}get el(){return e(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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none !important}:host{-webkit-margin-after:0.25rem;margin-block-end:0.25rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host(:last-child){-webkit-margin-after:0px;margin-block-end:0px}.header{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-align:center;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}.heading{margin-block:0.5rem;margin-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-size:var(--calcite-font-size--1);line-height:1.375;color:var(--calcite-ui-text-3)}.container--indented{-webkit-margin-start:1.5rem;margin-inline-start:1.5rem}";const K=class{constructor(i){t(this,i),this.calciteListItemChange=a(this,"calciteListItemChange",6),this.calciteListItemRemove=a(this,"calciteListItemRemove",7),this.calciteInternalListItemPropsChange=a(this,"calciteInternalListItemPropsChange",6),this.calciteInternalListItemValueChange=a(this,"calciteInternalListItemValueChange",6),this.disabled=!1,this.disableDeselect=!1,this.nonInteractive=!1,this.icon=null,this.removable=!1,this.selected=!1,this.intlRemove=C.remove,this.pickListClickHandler=t=>{this.disabled||this.disableDeselect&&this.selected||this.nonInteractive||(this.shiftPressed=t.shiftKey,this.selected=!this.selected)},this.pickListKeyDownHandler=t=>{if(" "===t.key){if(t.preventDefault(),this.disableDeselect&&this.selected||this.nonInteractive)return;this.selected=!this.selected}},this.removeClickHandler=()=>{this.calciteListItemRemove.emit()}}descriptionWatchHandler(){this.calciteInternalListItemPropsChange.emit()}labelWatchHandler(){this.calciteInternalListItemPropsChange.emit()}metadataWatchHandler(){this.calciteInternalListItemPropsChange.emit()}selectedWatchHandler(){this.calciteListItemChange.emit({item:this.el,value:this.value,selected:this.selected,shiftPressed:this.shiftPressed}),this.shiftPressed=!1}valueWatchHandler(t,a){this.calciteInternalListItemValueChange.emit({oldValue:a,newValue:t})}connectedCallback(){T(this)}disconnectedCallback(){V(this)}componentDidRender(){W(this,!!this.el.closest("calcite-pick-list")&&"managed")}async toggleSelected(t){this.selected="boolean"==typeof t?t:!this.selected}async setFocus(){var t;null===(t=this.focusEl)||void 0===t||t.focus()}renderIcon(){const{icon:t}=this;return t?i("span",{class:{[H.icon]:!0,[H.iconDot]:t===y.circle},onClick:this.pickListClickHandler},t===y.square?i("calcite-icon",{icon:I.checked,scale:"s"}):null):null}renderRemoveAction(){return this.removable?i("calcite-action",{class:H.remove,icon:I.remove,onCalciteActionClick:this.removeClickHandler,slot:j.actionsEnd,text:this.intlRemove}):null}renderActionsStart(){const{el:t}=this;return F(t,j.actionsStart)?i("div",{class:{[H.actions]:!0,[H.actionsStart]:!0}},i("slot",{name:j.actionsStart})):null}renderActionsEnd(){const{el:t,removable:a}=this;return F(t,j.actionsEnd)||a?i("div",{class:{[H.actions]:!0,[H.actionsEnd]:!0}},i("slot",{name:j.actionsEnd}),this.renderRemoveAction()):null}render(){const{description:t,label:a}=this;return i(n,null,this.renderIcon(),this.renderActionsStart(),i("label",{"aria-label":a,class:H.label,onClick:this.pickListClickHandler,onKeyDown:this.pickListKeyDownHandler,ref:t=>this.focusEl=t,tabIndex:0},i("div",{"aria-checked":R(this.selected),class:H.textContainer,role:"menuitemcheckbox"},i("span",{class:H.title},a),t?i("span",{class:H.description},t):null)),this.renderActionsEnd())}get el(){return e(this)}static get watchers(){return{description:["descriptionWatchHandler"],label:["labelWatchHandler"],metadata:["metadataWatchHandler"],selected:["selectedWatchHandler"],value:["valueWatchHandler"]}}};K.style='@charset "UTF-8";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none !important}: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{margin:0px;-webkit-margin-after:1px;margin-block-end:1px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transition:background-color var(--calcite-animation-timing);transition:background-color var(--calcite-animation-timing);-webkit-animation:calcite-fade-in var(--calcite-animation-timing);animation:calcite-fade-in var(--calcite-animation-timing)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}.label{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;cursor:pointer;-ms-flex-align:center;align-items:center;background-color:transparent;outline-color:transparent}.label:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.label:hover{background-color:var(--calcite-ui-foreground-2)}:host([non-interactive]:hover){background-color:var(--calcite-ui-foreground-1)}:host([non-interactive]) .label,:host([non-interactive]) .icon{pointer-events:none}.icon{margin-block:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;padding:0.25rem;color:var(--calcite-ui-brand);-ms-flex:0 0 auto;flex:0 0 auto;line-height:0}.icon:hover{background-color:var(--calcite-ui-foreground-2)}.icon-dot{display:-ms-flexbox;display:flex;inline-size:1.5rem;-ms-flex-align:center;align-items:center;padding:0.5rem}.icon-dot:before{opacity:0;content:"•"}.icon calcite-icon{opacity:0}:host([selected]) .icon-dot:before,:host([selected]) .icon calcite-icon{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing);opacity:1}.text-container{pointer-events:none;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow:hidden;padding-block:0.5rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--2);line-height:1.375;word-wrap:break-word;word-break:break-word}.title{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}.description{-webkit-margin-before:0.125rem;margin-block-start:0.125rem;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.actions{margin:0px;display:-ms-flexbox;display:flex;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:end;justify-content:flex-end}.actions--start~.label{-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}';export{P as calcite_pick_list,U as calcite_pick_list_group,K as calcite_pick_list_item}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function o(t){try{c(n.next(t))}catch(t){r(t)}}function s(t){try{c(n["throw"](t))}catch(t){r(t)}}function c(t){t.done?i(t.value):a(t.value).then(o,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];a=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
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.557
|
|
6
|
+
*/System.register(["./p-bd29bacb.system.js","./p-089c4e7a.system.js","./p-8eeb2705.system.js","./p-995ea165.system.js","./p-c80f7567.system.js"],(function(t){"use strict";var e,i,n,a,r,o,s,c,l;return{setters:[function(t){e=t.r;i=t.c;n=t.h;a=t.g;r=t.H},function(t){o=t.f;s=t.d;c=t.t},function(t){l=t.u},function(){},function(){}],execute:function(){var p='@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none !important}:host{position:relative;display:-ms-flexbox;display:flex;inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:-webkit-fit-content;min-inline-size:fit-content;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:justify;justify-content:space-between}:host([layout=vertical]){-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column}:host([layout=horizontal]){display:grid;grid-template-areas:"items" "content"}';var m=t("calcite_stepper",function(){function t(t){e(this,t);this.calciteStepperItemChange=i(this,"calciteStepperItemChange",6);this.calciteInternalStepperItemChange=i(this,"calciteInternalStepperItemChange",6);this.icon=false;this.layout="horizontal";this.numbered=false;this.scale="m";this.itemMap=new Map;this.items=[];this.enabledItems=[]}t.prototype.componentDidLoad=function(){if(typeof this.currentPosition!=="number"){this.calciteInternalStepperItemChange.emit({position:0})}};t.prototype.render=function(){var t=this;return n("slot",{onSlotchange:function(e){var i=e.currentTarget.assignedElements().filter((function(t){return(t===null||t===void 0?void 0:t.tagName)==="CALCITE-STEPPER-ITEM"}));var n=Array(i.length).fill("1fr").join(" ");t.el.style.gridTemplateAreas=n;t.el.style.gridTemplateColumns=n}})};t.prototype.calciteInternalStepperItemKeyEvent=function(t){var e=t.detail.item;var i=t.target;var n=this.itemIndex(i)===0;var a=this.itemIndex(i)===this.enabledItems.length-1;switch(e.key){case"ArrowDown":case"ArrowRight":if(a){this.focusFirstItem()}else{this.focusNextItem(i)}break;case"ArrowUp":case"ArrowLeft":if(n){this.focusLastItem()}else{this.focusPrevItem(i)}break;case"Home":this.focusFirstItem();break;case"End":this.focusLastItem();break}t.stopPropagation()};t.prototype.registerItem=function(t){var e=t.target;var i=t.detail,n=i.content,a=i.position;this.itemMap.set(e,{position:a,content:n});this.items=this.sortItems();this.enabledItems=this.filterItems();t.stopPropagation()};t.prototype.updateItem=function(t){var e=t.detail.position;if(typeof e==="number"){this.currentPosition=e}this.calciteInternalStepperItemChange.emit({position:e})};t.prototype.handleUserRequestedStepperItemSelect=function(t){var e=t.detail.position;this.calciteStepperItemChange.emit({position:e})};t.prototype.nextStep=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.getEnabledStepIndex(this.currentPosition+1,"next");if(typeof t!=="number"){return[2]}this.updateStep(t);return[2]}))}))};t.prototype.prevStep=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.getEnabledStepIndex(this.currentPosition-1,"previous");if(typeof t!=="number"){return[2]}this.updateStep(t);return[2]}))}))};t.prototype.goToStep=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){e=t-1;if(this.currentPosition!==e){this.updateStep(e)}return[2]}))}))};t.prototype.startStep=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.getEnabledStepIndex(0,"next");if(typeof t!=="number"){return[2]}this.updateStep(t);return[2]}))}))};t.prototype.endStep=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.getEnabledStepIndex(this.items.length-1,"previous");if(typeof t!=="number"){return[2]}this.updateStep(t);return[2]}))}))};t.prototype.getEnabledStepIndex=function(t,e){if(e===void 0){e="next"}var i;var n=this,a=n.items,r=n.currentPosition;var o=t;while((i=a[o])===null||i===void 0?void 0:i.disabled){o=o+(e==="previous"?-1:1)}return o!==r&&o<a.length&&o>=0?o:null};t.prototype.updateStep=function(t){this.currentPosition=t;this.calciteInternalStepperItemChange.emit({position:t})};t.prototype.focusFirstItem=function(){var t=this.enabledItems[0];o(t)};t.prototype.focusLastItem=function(){var t=this.enabledItems[this.enabledItems.length-1];o(t)};t.prototype.focusNextItem=function(t){var e=this.itemIndex(t);var i=this.enabledItems[e+1]||this.enabledItems[0];o(i)};t.prototype.focusPrevItem=function(t){var e=this.itemIndex(t);var i=this.enabledItems[e-1]||this.enabledItems[this.enabledItems.length-1];o(i)};t.prototype.itemIndex=function(t){return this.enabledItems.indexOf(t)};t.prototype.sortItems=function(){var t=this.itemMap;return Array.from(t.keys()).sort((function(e,i){return t.get(e).position-t.get(i).position}))};t.prototype.filterItems=function(){return this.items.filter((function(t){return!t.disabled}))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());m.style=p;var d="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none !important}:host([layout=horizontal][disabled]) .stepper-item-header,: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([scale=s]){--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;-webkit-margin-end:0.25rem;margin-inline-end:0.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:start;align-self:flex-start;-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-s);margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;cursor:pointer;-ms-flex-direction:column;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);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)}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host .stepper-item-header{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:start;align-items:flex-start}:host .stepper-item-content,:host .stepper-item-header{-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);padding-block:var(--calcite-stepper-item-spacing-unit-l);-webkit-padding-end:var(--calcite-stepper-item-spacing-unit-m);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-content{display:none;inline-size:100%;-ms-flex-direction:column;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{-webkit-margin-end:var(--calcite-stepper-item-spacing-unit-m);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);-webkit-margin-before:1px;margin-block-start:1px;display:-ms-inline-flexbox;display:inline-flex;block-size:0.75rem;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:start;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-header-text{-ms-flex-direction:column;flex-direction:column;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:-ms-flexbox;display:flex;inline-size:100%}:host .stepper-item-heading{-webkit-margin-after:0.25rem;margin-block-end:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .stepper-item-description{color:var(--calcite-ui-text-3)}:host .stepper-item-number{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-stepper-item-spacing-unit-m);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([complete]) .container .stepper-item-icon{color:var(--calcite-ui-brand)}:host([error]) .container{border-block-start-color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-ui-danger)}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-ui-danger)}:host(:hover:not([disabled]):not([active])) .container,:host(:focus:not([disabled]):not([active])) .container{border-block-start-color:var(--calcite-ui-brand)}:host(:hover:not([disabled]):not([active])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([active])) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host(:hover:not([disabled]):not([active])) .container .stepper-item-description,:host(:focus:not([disabled]):not([active])) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([error]:hover:not([disabled]):not([active])) .container,:host([error]:focus:not([disabled]):not([active])) .container{border-block-start-color:var(--calcite-ui-danger-hover)}:host([active]) .container{border-block-start-color:var(--calcite-ui-brand)}:host([active]) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host([active]) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([active]) .container .stepper-item-number{color:var(--calcite-ui-brand)}:host([active]) .container .stepper-item-icon{color:var(--calcite-ui-brand);opacity:1}:host([active]) .container .stepper-item-content{display:-ms-flexbox;display:flex}:host([layout=vertical]) .container{margin-inline:0px;-webkit-margin-before:0px;margin-block-start:0px;-ms-flex:1 1 auto;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;border-inline-start-width:2px;-webkit-padding-start:var(--calcite-stepper-item-spacing-unit-l);padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{-ms-flex-order:3;order:3;margin-block:1px 0px;-webkit-padding-start:var(--calcite-stepper-item-spacing-unit-s);padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);-webkit-margin-start:auto;margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{-webkit-padding-end:0px;padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0px}:host([layout=vertical][complete]) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][complete]:hover:not([disabled]):not([active])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([active])) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-ui-danger)}:host([layout=vertical][active]) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][active]) .container .stepper-item-content ::slotted(:last-child){-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-l);margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([active])) .container,:host([layout=vertical]:focus:not([disabled]):not([active])) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][error]:hover:not([disabled]):not([active])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([active])) .container{border-color:var(--calcite-ui-danger-hover)}:host([layout=horizontal]){display:contents}:host([layout=horizontal]) .container{display:contents}:host([layout=horizontal]) .stepper-item-header{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);outline-color:transparent;grid-row:items;-webkit-margin-end:0.5rem;margin-inline-end:0.5rem;-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-s);margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal]) .stepper-item-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host([layout=horizontal]) .stepper-item-content{cursor:auto;-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);padding-block:0;-webkit-padding-end:var(--calcite-stepper-item-spacing-unit-m);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal][active]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][scale=s]) .stepper-item-header{-webkit-margin-end:0.25rem;margin-inline-end:0.25rem;-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-s);margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal][scale=l]) .stepper-item-header{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem;-webkit-margin-after:var(--calcite-stepper-item-spacing-unit-s);margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal][complete]) .stepper-item-header{border-color:rgba(0, 122, 194, 0.5)}:host([layout=horizontal][complete]:hover:not([disabled]):not([active])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([active])) .stepper-item-header{border-color:var(--calcite-ui-brand)}:host([layout=horizontal][error]) .stepper-item-header{border-color:var(--calcite-ui-danger)}:host([layout=horizontal][active]) .stepper-item-header{border-color:var(--calcite-ui-brand)}:host([layout=horizontal]:hover:not([disabled]):not([active])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([active])) .stepper-item-header{border-color:rgba(0, 122, 194, 0.5)}:host([layout=horizontal][error]:hover:not([disabled]):not([active])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([active])) .stepper-item-header{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([active]) .container{border-block-start-color:highlight}:host([active]) .container .stepper-item-number{color:highlight}:host([active]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][active]) .container{border-color:highlight}}";var u=t("calcite_stepper_item",function(){function t(t){var n=this;e(this,t);this.calciteInternalStepperItemKeyEvent=i(this,"calciteInternalStepperItemKeyEvent",6);this.calciteInternalStepperItemSelect=i(this,"calciteInternalStepperItemSelect",6);this.calciteInternalUserRequestedStepperItemSelect=i(this,"calciteInternalUserRequestedStepperItemSelect",6);this.calciteInternalStepperItemRegister=i(this,"calciteInternalStepperItemRegister",6);this.active=false;this.complete=false;this.error=false;this.disabled=false;this.layout="horizontal";this.icon=false;this.numbered=false;this.scale="m";this.keyDownHandler=function(t){if(!n.disabled&&t.target===n.el){switch(t.key){case" ":case"Enter":n.emitUserRequestedItem();t.preventDefault();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":n.calciteInternalStepperItemKeyEvent.emit({item:t});t.preventDefault();break}}};this.emitUserRequestedItem=function(){n.emitRequestedItem();if(!n.disabled){var t=n.itemPosition;n.calciteInternalUserRequestedStepperItemSelect.emit({position:t})}};this.emitRequestedItem=function(){if(!n.disabled){var t=n.itemPosition;n.calciteInternalStepperItemSelect.emit({position:t})}}}t.prototype.disabledWatcher=function(){this.registerStepperItem()};t.prototype.activeWatcher=function(t){if(t){this.emitRequestedItem()}};t.prototype.componentWillLoad=function(){this.icon=s(this.el,"icon",false);this.numbered=s(this.el,"numbered",false);this.layout=s(this.el,"layout",false);this.scale=s(this.el,"scale","m");this.parentStepperEl=this.el.parentElement;this.itemPosition=this.getItemPosition();this.registerStepperItem();if(this.active){this.emitRequestedItem()}};t.prototype.componentDidRender=function(){l(this,true)};t.prototype.render=function(){var t=this;return n(r,{"aria-expanded":c(this.active),onClick:this.emitUserRequestedItem,onKeyDown:this.keyDownHandler},n("div",{class:"container"},n("div",{class:"stepper-item-header",ref:function(e){return t.headerEl=e},tabIndex:this.layout==="horizontal"&&!this.disabled?0:null},this.icon?this.renderIcon():null,this.numbered?n("div",{class:"stepper-item-number"},this.itemPosition+1,"."):null,n("div",{class:"stepper-item-header-text"},n("span",{class:"stepper-item-heading"},this.heading||this.itemTitle),n("span",{class:"stepper-item-description"},this.description||this.itemSubtitle))),n("div",{class:"stepper-item-content"},n("slot",null))))};t.prototype.updateActiveItemOnChange=function(t){if(t.target===this.parentStepperEl||t.composedPath().includes(this.parentStepperEl)){this.activePosition=t.detail.position;this.determineActiveItem()}};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){(t=this.layout==="vertical"?this.el:this.headerEl)===null||t===void 0?void 0:t.focus();return[2]}))}))};t.prototype.renderIcon=function(){var t=this.active?"circleF":this.error?"exclamationMarkCircleF":this.complete?"checkCircleF":"circle";return n("calcite-icon",{class:"stepper-item-icon",icon:t,scale:"s"})};t.prototype.determineActiveItem=function(){this.active=!this.disabled&&this.itemPosition===this.activePosition};t.prototype.registerStepperItem=function(){this.calciteInternalStepperItemRegister.emit({position:this.itemPosition})};t.prototype.getItemPosition=function(){var t;return Array.from((t=this.parentStepperEl)===null||t===void 0?void 0:t.querySelectorAll("calcite-stepper-item")).indexOf(this.el)};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["disabledWatcher"],active:["activeWatcher"]}},enumerable:false,configurable:true});return t}());u.style=d}}}));
|