@esri/calcite-components 1.8.0-next.0 → 1.8.0-next.2
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/index.esm.js +2 -2
- package/dist/calcite/{p-b832aa0b.entry.js → p-036b1596.entry.js} +2 -2
- package/dist/calcite/{p-e9389ecb.entry.js → p-03eba3a5.entry.js} +2 -2
- package/dist/calcite/{p-be17fd5e.js → p-04b6baa4.js} +1 -1
- package/dist/calcite/{p-d29bbe7d.js → p-066dc809.js} +2 -2
- package/dist/calcite/{p-c1f4b204.entry.js → p-08840448.entry.js} +2 -2
- package/dist/calcite/{p-96dbe651.js → p-0adb81b8.js} +2 -2
- package/dist/calcite/{p-e5fedd4b.js → p-0b6007af.js} +2 -2
- package/dist/calcite/p-0f88c67a.entry.js +6 -0
- package/dist/calcite/{p-ea252928.entry.js → p-120974a1.entry.js} +2 -2
- package/dist/calcite/p-1509fdd1.entry.js +6 -0
- package/dist/calcite/{p-b109376d.js → p-1ad12459.js} +1 -1
- package/dist/calcite/{p-1e23cc4e.js → p-1b04268f.js} +2 -2
- package/dist/calcite/{p-d880b9c7.js → p-1b397778.js} +2 -2
- package/dist/calcite/{p-0497aa28.entry.js → p-1b757ee2.entry.js} +2 -2
- package/dist/calcite/p-1e15b11f.entry.js +6 -0
- package/dist/calcite/{p-25188391.entry.js → p-1f698387.entry.js} +2 -2
- package/dist/calcite/{p-84959db6.js → p-1f8db6d0.js} +2 -2
- package/dist/calcite/{p-bc1e3804.js → p-23007f69.js} +1 -1
- package/dist/calcite/{p-f3d5dcbf.js → p-257ab1aa.js} +2 -2
- package/dist/calcite/{p-4e393b21.js → p-2619a0e2.js} +2 -2
- package/dist/calcite/{p-e640f747.entry.js → p-2622d2e1.entry.js} +2 -2
- package/dist/calcite/{p-bf0f7949.js → p-27ccb19b.js} +1 -1
- package/dist/calcite/{p-73dc422d.entry.js → p-2c64e8cc.entry.js} +2 -2
- package/dist/calcite/{p-3b7d1d44.js → p-2c787541.js} +1 -1
- package/dist/calcite/{p-2286d2d1.js → p-2dd0f14a.js} +2 -2
- package/dist/calcite/{p-d2097573.js → p-3143d41c.js} +2 -2
- package/dist/calcite/{p-dd451dd4.entry.js → p-38bb8470.entry.js} +2 -2
- package/dist/calcite/{p-802b7522.js → p-40aa317c.js} +2 -2
- package/dist/calcite/{p-9c0e58f2.entry.js → p-41adfde9.entry.js} +2 -2
- package/dist/calcite/{p-1b8ea41d.js → p-4204ef5a.js} +2 -2
- package/dist/calcite/{p-0239a208.entry.js → p-463933db.entry.js} +2 -2
- package/dist/calcite/{p-0447b799.entry.js → p-4aafde73.entry.js} +2 -2
- package/dist/calcite/{p-7c40cf3b.entry.js → p-4bbb0f2a.entry.js} +2 -2
- package/dist/calcite/{p-213efa06.js → p-4e38c8cf.js} +2 -2
- package/dist/calcite/{p-a6f8f0ff.js → p-51ed4e4a.js} +2 -2
- package/dist/calcite/{p-92bb87e6.entry.js → p-527511d1.entry.js} +2 -2
- package/dist/calcite/{p-113034a2.entry.js → p-5318fd81.entry.js} +2 -2
- package/dist/calcite/{p-ed30a0dc.entry.js → p-5346b038.entry.js} +2 -2
- package/dist/calcite/{p-2a757849.js → p-53af434f.js} +2 -2
- package/dist/calcite/{p-3e23b243.entry.js → p-57684475.entry.js} +2 -2
- package/dist/calcite/p-58cbb8a9.js +6 -0
- package/dist/calcite/{p-3924127c.js → p-5aa84cb3.js} +2 -2
- package/dist/calcite/{p-a3d265ff.js → p-5bd7869d.js} +2 -2
- package/dist/calcite/{p-53f5cf93.entry.js → p-5c204e92.entry.js} +2 -2
- package/dist/calcite/{p-185bc5dd.js → p-5d0b058c.js} +1 -1
- package/dist/calcite/{p-ddef8b45.js → p-5d90daca.js} +2 -2
- package/dist/calcite/{p-e5e22b57.js → p-61be360e.js} +2 -2
- package/dist/calcite/{p-6628692d.entry.js → p-639267a7.entry.js} +2 -2
- package/dist/calcite/{p-a1ff5901.entry.js → p-6448169c.entry.js} +2 -2
- package/dist/calcite/{p-791512ef.js → p-64b6a9a2.js} +2 -2
- package/dist/calcite/{p-d9b8302b.entry.js → p-66d866cd.entry.js} +2 -2
- package/dist/calcite/{p-6c9a6e69.js → p-691dec0e.js} +2 -2
- package/dist/calcite/{p-5aae88ad.js → p-6a082e2a.js} +1 -1
- package/dist/calcite/{p-90d59e83.js → p-6b84ed38.js} +2 -2
- package/dist/calcite/{p-e9b614a4.js → p-6e0af4db.js} +2 -2
- package/dist/calcite/{p-6b5ab9e7.js → p-6e911f4e.js} +2 -2
- package/dist/calcite/{p-97eea906.entry.js → p-6f812e3a.entry.js} +2 -2
- package/dist/calcite/{p-b5cbc17f.js → p-73ae8e25.js} +2 -2
- package/dist/calcite/{p-86f2af06.entry.js → p-753cd9a1.entry.js} +2 -2
- package/dist/calcite/{p-71a35c97.entry.js → p-799d23d7.entry.js} +2 -2
- package/dist/calcite/{p-7f0f455c.entry.js → p-7abe163b.entry.js} +2 -2
- package/dist/calcite/{p-81e1ef08.js → p-7bf4fbf9.js} +2 -2
- package/dist/calcite/{p-a71d7284.js → p-7cb0e0a4.js} +1 -1
- package/dist/calcite/{p-a31aaf8e.js → p-7dd0807f.js} +2 -2
- package/dist/calcite/{p-cffffe45.js → p-7f1406e2.js} +2 -2
- package/dist/calcite/{p-8fb0df33.js → p-807e2978.js} +2 -2
- package/dist/calcite/{p-8e73215b.js → p-82da6868.js} +2 -2
- package/dist/calcite/{p-992d6edc.js → p-85087cf1.js} +1 -1
- package/dist/calcite/{p-2cadeb98.entry.js → p-85e129d7.entry.js} +2 -2
- package/dist/calcite/{p-d9832528.entry.js → p-8a1f1bb1.entry.js} +2 -2
- package/dist/calcite/{p-b5a3a8ca.entry.js → p-8d162e54.entry.js} +2 -2
- package/dist/calcite/{p-21280647.js → p-8d721572.js} +2 -2
- package/dist/calcite/{p-16156640.entry.js → p-8d80c0f7.entry.js} +2 -2
- package/dist/calcite/{p-bf951fb7.entry.js → p-8eae2b94.entry.js} +2 -2
- package/dist/calcite/{p-913425b0.js → p-8ef5c308.js} +2 -2
- package/dist/calcite/{p-1f0d19a8.entry.js → p-8fee5d6b.entry.js} +2 -2
- package/dist/calcite/{p-447238fe.entry.js → p-902b0928.entry.js} +2 -2
- package/dist/calcite/{p-4c7256c0.entry.js → p-9043e5e6.entry.js} +2 -2
- package/dist/calcite/{p-76496142.js → p-91394c6e.js} +1 -1
- package/dist/calcite/{p-25cdf705.js → p-91d1b677.js} +2 -2
- package/dist/calcite/{p-ec2ea998.js → p-92b10c2a.js} +2 -2
- package/dist/calcite/{p-71c0f6bd.entry.js → p-92c666d8.entry.js} +2 -2
- package/dist/calcite/{p-c4e449d4.entry.js → p-92f2a007.entry.js} +2 -2
- package/dist/calcite/{p-0e0e49ef.entry.js → p-94b2681b.entry.js} +2 -2
- package/dist/calcite/{p-7aaea473.entry.js → p-9556b55d.entry.js} +2 -2
- package/dist/calcite/{p-d0c6e7ed.entry.js → p-95c80464.entry.js} +2 -2
- package/dist/calcite/{p-286bbc39.js → p-97b579b0.js} +2 -2
- package/dist/calcite/{p-179deb38.entry.js → p-9932d421.entry.js} +2 -2
- package/dist/calcite/{p-ca2c92d5.js → p-9958fa7b.js} +2 -2
- package/dist/calcite/{p-9f545b5e.entry.js → p-9999e422.entry.js} +2 -2
- package/dist/calcite/{p-3b25f9af.js → p-9a476249.js} +1 -1
- package/dist/calcite/{p-668f125d.js → p-9b6f11c1.js} +2 -2
- package/dist/calcite/{p-3a5484f0.entry.js → p-9c46ee01.entry.js} +2 -2
- package/dist/calcite/{p-76a15bfd.js → p-a07c566b.js} +2 -2
- package/dist/calcite/{p-ba6a231b.js → p-a12fbaf2.js} +2 -2
- package/dist/calcite/{p-fa9f6acf.entry.js → p-a1759655.entry.js} +2 -2
- package/dist/calcite/{p-178ec5a4.js → p-a18ec933.js} +2 -2
- package/dist/calcite/{p-d99a0788.js → p-a23ecb2f.js} +2 -2
- package/dist/calcite/{p-e85ed037.entry.js → p-a2cff12e.entry.js} +2 -2
- package/dist/calcite/{p-eb8f176c.entry.js → p-a470d2ad.entry.js} +2 -2
- package/dist/calcite/{p-4af56c29.js → p-a4cb858e.js} +2 -2
- package/dist/calcite/{p-1e8d7a9d.js → p-a5cd15cd.js} +2 -2
- package/dist/calcite/{p-b31d2494.js → p-a60e1755.js} +2 -2
- package/dist/calcite/{p-9e9446b8.entry.js → p-a85465e8.entry.js} +2 -2
- package/dist/calcite/{p-fd24ce3a.js → p-aa48056c.js} +1 -1
- package/dist/calcite/{p-4000384f.js → p-ae7b8a50.js} +2 -2
- package/dist/calcite/{p-7d7eb774.js → p-af42d798.js} +2 -2
- package/dist/calcite/{p-69fc7dc1.js → p-b1728d93.js} +2 -2
- package/dist/calcite/{p-b766ac5e.entry.js → p-b1af066a.entry.js} +2 -2
- package/dist/calcite/p-b1c8dfa4.js +6 -0
- package/dist/calcite/{p-49c010d6.js → p-b1dbdbad.js} +1 -1
- package/dist/calcite/{p-024d74a4.entry.js → p-b31d674f.entry.js} +2 -2
- package/dist/calcite/{p-3c4b8d46.entry.js → p-bf3d91ee.entry.js} +2 -2
- package/dist/calcite/{p-5e4355cc.js → p-bf9701bf.js} +1 -1
- package/dist/calcite/{p-4f38532f.entry.js → p-c3407d22.entry.js} +2 -2
- package/dist/calcite/p-c6a19fab.entry.js +6 -0
- package/dist/calcite/{p-21b56c26.entry.js → p-c74790b6.entry.js} +2 -2
- package/dist/calcite/{p-19980bcd.js → p-c778afbe.js} +2 -2
- package/dist/calcite/{p-86d158a0.js → p-c780089b.js} +1 -1
- package/dist/calcite/{p-d649c2f3.entry.js → p-c9e376bc.entry.js} +2 -2
- package/dist/calcite/{p-e6919bdf.js → p-ca2fdf4a.js} +2 -2
- package/dist/calcite/{p-b7314347.entry.js → p-ca78b627.entry.js} +2 -2
- package/dist/calcite/p-cc0fb892.js +6 -0
- package/dist/calcite/{p-60321383.entry.js → p-d03480d3.entry.js} +2 -2
- package/dist/calcite/{p-af147fd8.js → p-d1db33a9.js} +2 -2
- package/dist/calcite/{p-7c57544a.js → p-d207058c.js} +2 -2
- package/dist/calcite/{p-c0e6e9c0.js → p-d3e66e45.js} +2 -2
- package/dist/calcite/{p-53f68583.js → p-d3f5fd02.js} +3 -3
- package/dist/calcite/{p-64670555.entry.js → p-d5decba3.entry.js} +2 -2
- package/dist/calcite/{p-6e863bba.js → p-d60170cf.js} +2 -2
- package/dist/calcite/{p-023cfe90.js → p-d835f65d.js} +2 -2
- package/dist/calcite/{p-00c9b817.entry.js → p-d9624f04.entry.js} +2 -2
- package/dist/calcite/{p-390039a5.entry.js → p-d9d0589b.entry.js} +2 -2
- package/dist/calcite/{p-e7f01d78.js → p-dc265aad.js} +2 -2
- package/dist/calcite/{p-4c6163ff.js → p-dd3eb6a1.js} +2 -2
- package/dist/calcite/{p-26a607bc.js → p-ddd4d031.js} +1 -1
- package/dist/calcite/{p-45762287.js → p-deb1c8bd.js} +2 -2
- package/dist/calcite/{p-9ce5b9a4.js → p-ded8599e.js} +2 -2
- package/dist/calcite/{p-8fc4f30c.entry.js → p-e228bad0.entry.js} +2 -2
- package/dist/calcite/{p-0e6e7cb1.js → p-e319f59f.js} +2 -2
- package/dist/calcite/{p-b13403c8.entry.js → p-e724b373.entry.js} +2 -2
- package/dist/calcite/{p-a84f33d0.js → p-e81752c9.js} +2 -2
- package/dist/calcite/{p-ee903a0c.js → p-e9a759aa.js} +2 -2
- package/dist/calcite/{p-59dadf5d.js → p-eb1a87d8.js} +2 -2
- package/dist/calcite/{p-1e76fc94.js → p-ef11c240.js} +2 -2
- package/dist/calcite/p-f0f5d533.entry.js +6 -0
- package/dist/calcite/{p-51292ab7.js → p-f3bba088.js} +2 -2
- package/dist/calcite/{p-1257c9eb.entry.js → p-f60f863b.entry.js} +2 -2
- package/dist/calcite/p-f8103d71.entry.js +6 -0
- package/dist/calcite/{p-8ea459a6.entry.js → p-f9369cb1.entry.js} +2 -2
- package/dist/calcite/{p-95a01691.entry.js → p-f991cac2.entry.js} +2 -2
- package/dist/calcite/{p-7a9c352e.entry.js → p-fa351278.entry.js} +2 -2
- package/dist/calcite/p-faefeafc.entry.js +6 -0
- package/dist/calcite/{p-aa12e51c.entry.js → p-fcbb6d76.entry.js} +2 -2
- package/dist/calcite/{p-8a41d23c.js → p-fd9bc235.js} +2 -2
- package/dist/calcite/{p-89ee0f6f.entry.js → p-ff640e4f.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-606f9a1b.js → ExpandToggle-29a1c406.js} +5 -5
- package/dist/cjs/{FloatingArrow-760f2563.js → FloatingArrow-4c9983f9.js} +2 -2
- package/dist/cjs/{Heading-0d543739.js → Heading-08ae04ac.js} +2 -2
- package/dist/cjs/{app-globals-b4b1fb76.js → app-globals-f9f4aa57.js} +2 -2
- package/dist/cjs/{ar-647645d5.js → ar-28a6aeea.js} +17 -17
- package/dist/cjs/{array-c4d6b56f.js → array-1046ee0f.js} +1 -1
- package/dist/cjs/{bg-e86a1505.js → bg-9022f2df.js} +17 -17
- package/dist/cjs/{browser-64387f05.js → browser-d3845585.js} +1 -1
- package/dist/cjs/{bs-f2bd59c4.js → bs-da862532.js} +17 -17
- package/dist/cjs/{ca-600ed0a3.js → ca-7082af60.js} +17 -17
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
- package/dist/cjs/calcite-action-group.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action.cjs.entry.js +12 -12
- package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +14 -14
- package/dist/cjs/calcite-button.cjs.entry.js +14 -14
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -11
- package/dist/cjs/calcite-chip-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-chip.cjs.entry.js +13 -13
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +19 -19
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +14 -14
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-fab.cjs.entry.js +8 -8
- package/dist/cjs/calcite-filter.cjs.entry.js +14 -14
- package/dist/cjs/calcite-flow-item.cjs.entry.js +13 -13
- package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
- package/dist/cjs/calcite-graph_2.cjs.entry.js +14 -14
- package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +27 -21
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +14 -14
- package/dist/cjs/calcite-input-text.cjs.entry.js +14 -14
- package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-c2e0ff4f.js → calcite-input-time-picker.calcite-time-picker-dc88642c.js} +61 -61
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +17 -17
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +14 -14
- package/dist/cjs/calcite-input.cjs.entry.js +14 -14
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +8 -8
- package/dist/cjs/calcite-list_3.cjs.entry.js +20 -18
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal.cjs.entry.js +30 -35
- package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
- package/dist/cjs/calcite-option_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
- package/dist/cjs/calcite-panel.cjs.entry.js +15 -15
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -17
- package/dist/cjs/calcite-popover.cjs.entry.js +16 -16
- package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -14
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sheet.cjs.entry.js +17 -26
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -9
- package/dist/cjs/calcite-split-button.cjs.entry.js +5 -5
- package/dist/cjs/calcite-stack.cjs.entry.js +6 -6
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tab_4.cjs.entry.js +11 -11
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-table-row.cjs.entry.js +8 -8
- package/dist/cjs/calcite-table.cjs.entry.js +11 -11
- package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +17 -17
- package/dist/cjs/calcite.cjs.js +4 -4
- package/dist/cjs/{conditionalSlot-fb35b27f.js → conditionalSlot-5f83ee7d.js} +3 -3
- package/dist/cjs/{cs-ca65c251.js → cs-2a7e2d40.js} +17 -17
- package/dist/cjs/{da-f52e9d89.js → da-074eb263.js} +17 -17
- package/dist/cjs/{de-aa9638db.js → de-9eb5a90a.js} +17 -17
- package/dist/cjs/{de-at-9529129f.js → de-at-e90f6207.js} +17 -17
- package/dist/cjs/{de-ch-902c88f3.js → de-ch-4b0638ec.js} +17 -17
- package/dist/cjs/{debounce-5dada122.js → debounce-c77321b5.js} +1 -1
- package/dist/cjs/{dom-6d14ccfd.js → dom-1c7807d1.js} +3 -3
- package/dist/cjs/{el-b4d713b6.js → el-b348041d.js} +17 -17
- package/dist/cjs/{en-au-ddcf7b12.js → en-au-cc38e5a2.js} +17 -17
- package/dist/cjs/{en-ca-7ef212d0.js → en-ca-fe1f57d9.js} +17 -17
- package/dist/cjs/{en-gb-c3b03e20.js → en-gb-3e7b1457.js} +17 -17
- package/dist/cjs/{es-63a2273b.js → es-f25634ea.js} +17 -17
- package/dist/cjs/{es-mx-41232776.js → es-mx-d0ac3b81.js} +17 -17
- package/dist/cjs/{et-64c07d80.js → et-7779d71e.js} +17 -17
- package/dist/cjs/{fi-155d28d6.js → fi-5eb8e99c.js} +17 -17
- package/dist/cjs/{filter-d4ecf6e6.js → filter-ff1296d6.js} +2 -2
- package/dist/cjs/{floating-ui-7e9e70e9.js → floating-ui-b2fa8e6f.js} +3 -3
- package/dist/cjs/{focusTrapComponent-c488931b.js → focusTrapComponent-e3cedd20.js} +2 -2
- package/dist/cjs/{form-03af6017.js → form-b70eea8d.js} +3 -3
- package/dist/cjs/{fr-7731a008.js → fr-cfbb799b.js} +17 -17
- package/dist/cjs/{fr-ch-20eae645.js → fr-ch-c8d16121.js} +17 -17
- package/dist/cjs/{guid-7c85d843.js → guid-c0bcb912.js} +1 -1
- package/dist/cjs/{he-1b6451cb.js → he-37c18717.js} +17 -17
- package/dist/cjs/{hi-58b9eea7.js → hi-8a28297b.js} +17 -17
- package/dist/cjs/{hr-32444d7c.js → hr-305acb9a.js} +17 -17
- package/dist/cjs/{hu-12ae7fb0.js → hu-5a789f8b.js} +17 -17
- package/dist/cjs/{id-2ff7fea5.js → id-ce806367.js} +17 -17
- package/dist/cjs/{index-c339d674.js → index-d25144b0.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{interactive-e94316ee.js → interactive-5789a520.js} +2 -2
- package/dist/cjs/{it-ch-b5a01c01.js → it-ch-9c4af16c.js} +17 -17
- package/dist/cjs/{it-0e3ed81d.js → it-ed453b26.js} +17 -17
- package/dist/cjs/{ja-0878e049.js → ja-0c65ee16.js} +17 -17
- package/dist/cjs/{key-2b143b6b.js → key-43da1067.js} +1 -1
- package/dist/cjs/{ko-6ffbe658.js → ko-7f6f12ac.js} +17 -17
- package/dist/cjs/{label-d2c4424f.js → label-4e62646f.js} +2 -2
- package/dist/cjs/{loadable-e9edda38.js → loadable-d83ba19d.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-e9a4c11f.js → locale-83986703.js} +7 -4
- package/dist/cjs/{lt-1cb4b700.js → lt-ef889933.js} +17 -17
- package/dist/cjs/{lv-4862aba4.js → lv-e4923261.js} +17 -17
- package/dist/cjs/{math-ee5847f1.js → math-48ea6ca5.js} +1 -1
- package/dist/cjs/{mk-53f6344c.js → mk-da06f8be.js} +17 -17
- package/dist/cjs/{nb-7b13ed73.js → nb-a129bc3f.js} +17 -17
- package/dist/cjs/{nl-a3c47c52.js → nl-47ea271c.js} +17 -17
- package/dist/cjs/{observers-31e8c0b9.js → observers-855a7876.js} +1 -1
- package/dist/cjs/{openCloseComponent-3653e6b9.js → openCloseComponent-02ccb62a.js} +9 -6
- package/dist/cjs/{pl-b1cfe8b5.js → pl-ec52bf9d.js} +17 -17
- package/dist/cjs/{pt-eb1fd432.js → pt-80f92e0b.js} +17 -17
- package/dist/cjs/{pt-br-1282d800.js → pt-br-05359c38.js} +17 -17
- package/dist/cjs/{resources-31d661b0.js → resources-19d8809b.js} +1 -1
- package/dist/cjs/{resources-14d3e4d4.js → resources-1b1b3bb3.js} +1 -1
- package/dist/cjs/{resources-2ade5f82.js → resources-2f4554d5.js} +1 -1
- package/dist/cjs/{resources-b0887435.js → resources-3b8d3452.js} +1 -1
- package/dist/cjs/{resources-f1384073.js → resources-3e5ddc4c.js} +1 -1
- package/dist/cjs/{resources-47512cff.js → resources-4142f7c1.js} +5 -5
- package/dist/cjs/{resources-fb176760.js → resources-f8517fa4.js} +1 -1
- package/dist/cjs/{ro-9e0bcb11.js → ro-23331dde.js} +17 -17
- package/dist/cjs/{ru-dbf81f40.js → ru-cb4f8173.js} +17 -17
- package/dist/cjs/{sk-580c1068.js → sk-f6fcfd32.js} +17 -17
- package/dist/cjs/{sl-5c661947.js → sl-ac5bf952.js} +17 -17
- package/dist/cjs/{sortableComponent-1b55d0d6.js → sortableComponent-14b0e204.js} +1 -1
- package/dist/cjs/{sr-f41f48c9.js → sr-e091f3f0.js} +17 -17
- package/dist/cjs/{sv-f01f52fb.js → sv-a78a3ab1.js} +17 -17
- package/dist/cjs/{t9n-6042dac5.js → t9n-abe2bee0.js} +3 -3
- package/dist/cjs/{th-e039b6a5.js → th-ba14f052.js} +17 -17
- package/dist/cjs/{throttle-79ea657e.js → throttle-c2369fbe.js} +2 -2
- package/dist/cjs/{tr-67df4d80.js → tr-fec1a7d9.js} +17 -17
- package/dist/cjs/{uk-f656bdc4.js → uk-9615bf41.js} +17 -17
- package/dist/cjs/{utils-26acf862.js → utils-505a512c.js} +3 -3
- package/dist/cjs/{utils-87aa4637.js → utils-c3697203.js} +1 -1
- package/dist/cjs/{vi-138fd018.js → vi-d28937a2.js} +17 -17
- package/dist/cjs/{zh-cn-a79da5b9.js → zh-cn-46d6c110.js} +17 -17
- package/dist/cjs/{zh-hk-a9849cd6.js → zh-hk-8626b402.js} +17 -17
- package/dist/cjs/{zh-tw-8c294f11.js → zh-tw-773fc160.js} +17 -17
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.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.css +1 -0
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/chip-group/chip-group.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +1 -1
- package/dist/collection/components/combobox/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/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.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-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/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/FloatingArrow.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/functional/XButton.js +1 -1
- package/dist/collection/components/graph/graph.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/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +10 -4
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-date-picker/utils.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/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/input-time-picker/resources.js +1 -1
- package/dist/collection/components/input-time-zone/input-time-zone.js +1 -1
- package/dist/collection/components/input-time-zone/utils.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.css +0 -2
- 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.css +0 -1
- package/dist/collection/components/list-item/list-item.js +4 -2
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.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/menu/menu.js +1 -1
- package/dist/collection/components/menu-item/menu-item.js +1 -1
- package/dist/collection/components/menu-item/resources.js +1 -1
- package/dist/collection/components/meter/meter.js +1 -1
- package/dist/collection/components/meter/resources.js +1 -1
- package/dist/collection/components/modal/modal.js +19 -22
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/navigation/navigation.js +1 -1
- package/dist/collection/components/navigation/resources.js +1 -1
- package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
- package/dist/collection/components/navigation-logo/resources.js +1 -1
- package/dist/collection/components/navigation-user/navigation-user.js +1 -1
- package/dist/collection/components/navigation-user/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/rating/function/star.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/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/segmented-control/segmented-control.js +1 -1
- package/dist/collection/components/segmented-control-item/resources.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.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/sheet/resources.js +1 -1
- package/dist/collection/components/sheet/sheet.js +10 -17
- 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/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stack/resources.js +1 -1
- package/dist/collection/components/stack/stack.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/resources.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/table/resources.js +1 -1
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/table-cell/resources.js +1 -1
- package/dist/collection/components/table-cell/table-cell.js +1 -1
- package/dist/collection/components/table-header/resources.js +1 -1
- package/dist/collection/components/table-header/table-header.js +1 -1
- package/dist/collection/components/table-row/table-row.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/text-area/resources.js +1 -1
- package/dist/collection/components/text-area/text-area.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/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip/utils.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/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/index.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/browser.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.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/focusTrapComponent.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +3 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/mode.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 +10 -7
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/sortableComponent.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +2 -2
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/ar.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/bg.js +1 -1
- package/dist/components/bs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/ca.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip-group.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +10 -4
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input-time-zone.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +5 -3
- package/dist/components/calcite-list.js +2 -2
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-menu.js +1 -1
- package/dist/components/calcite-meter.js +1 -1
- package/dist/components/calcite-modal.js +18 -23
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.js +1 -1
- package/dist/components/calcite-segmented-control.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-sheet.js +9 -18
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stack.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-table-cell.js +1 -1
- package/dist/components/calcite-table-header.js +1 -1
- package/dist/components/calcite-table-row.js +1 -1
- package/dist/components/calcite-table.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-text-area.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/cs.js +1 -1
- package/dist/components/da.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +2 -2
- package/dist/components/date.js +1 -1
- package/dist/components/de-at.js +1 -1
- package/dist/components/de-ch.js +1 -1
- package/dist/components/de.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/el.js +1 -1
- package/dist/components/en-au.js +1 -1
- package/dist/components/en-ca.js +1 -1
- package/dist/components/en-gb.js +1 -1
- package/dist/components/es-mx.js +1 -1
- package/dist/components/es.js +1 -1
- package/dist/components/et.js +1 -1
- package/dist/components/fi.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/fr-ch.js +1 -1
- package/dist/components/fr.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/he.js +1 -1
- package/dist/components/hi.js +1 -1
- package/dist/components/hr.js +1 -1
- package/dist/components/hu.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/id.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/input-number.js +2 -2
- package/dist/components/input-text.js +1 -1
- package/dist/components/input.js +2 -2
- package/dist/components/interactive.js +1 -1
- package/dist/components/it-ch.js +1 -1
- package/dist/components/it.js +1 -1
- package/dist/components/ja.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/ko.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +4 -2
- package/dist/components/lt.js +1 -1
- package/dist/components/lv.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/mk.js +1 -1
- package/dist/components/nb.js +1 -1
- package/dist/components/nl.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +8 -5
- package/dist/components/pagination.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/pl.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/pt-br.js +1 -1
- package/dist/components/pt.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/resources4.js +1 -1
- package/dist/components/ro.js +1 -1
- package/dist/components/ru.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sk.js +1 -1
- package/dist/components/sl.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/sr.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/sv.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/table-cell.js +1 -1
- package/dist/components/table-header.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/th.js +1 -1
- package/dist/components/throttle.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +2 -2
- package/dist/components/tr.js +1 -1
- package/dist/components/uk.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/components/utils3.js +1 -1
- package/dist/components/vi.js +1 -1
- package/dist/components/zh-cn.js +1 -1
- package/dist/components/zh-hk.js +1 -1
- package/dist/components/zh-tw.js +1 -1
- package/dist/esm/{ExpandToggle-8f1a743a.js → ExpandToggle-79474815.js} +5 -5
- package/dist/esm/{FloatingArrow-d3664841.js → FloatingArrow-a2e1feac.js} +2 -2
- package/dist/esm/{Heading-97311bc1.js → Heading-230415ec.js} +2 -2
- package/dist/esm/{app-globals-8543070d.js → app-globals-20efd3d1.js} +2 -2
- package/dist/esm/{ar-777d5897.js → ar-51c7b6ba.js} +17 -17
- package/dist/esm/{array-00bc1715.js → array-c2eafda3.js} +1 -1
- package/dist/esm/{bg-35221306.js → bg-dbed9709.js} +17 -17
- package/dist/esm/{browser-42aa39cb.js → browser-9893b13f.js} +1 -1
- package/dist/esm/{bs-39a2d3ca.js → bs-2f033df2.js} +17 -17
- package/dist/esm/{ca-424fc229.js → ca-e8639442.js} +17 -17
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +15 -15
- package/dist/esm/calcite-action-group.entry.js +14 -14
- package/dist/esm/calcite-action-menu.entry.js +9 -9
- package/dist/esm/calcite-action-pad.entry.js +14 -14
- package/dist/esm/calcite-action.entry.js +12 -12
- package/dist/esm/calcite-alert.entry.js +12 -12
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +14 -14
- package/dist/esm/calcite-button.entry.js +14 -14
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +11 -11
- package/dist/esm/calcite-chip-group.entry.js +9 -9
- package/dist/esm/calcite-chip.entry.js +13 -13
- package/dist/esm/calcite-color-picker_3.entry.js +16 -16
- package/dist/esm/calcite-combobox_3.entry.js +19 -19
- package/dist/esm/calcite-date-picker_4.entry.js +14 -14
- package/dist/esm/calcite-dropdown_3.entry.js +13 -13
- package/dist/esm/calcite-fab.entry.js +8 -8
- package/dist/esm/calcite-filter.entry.js +14 -14
- package/dist/esm/calcite-flow-item.entry.js +13 -13
- package/dist/esm/calcite-flow.entry.js +4 -4
- package/dist/esm/calcite-graph_2.entry.js +14 -14
- package/dist/esm/calcite-handle.entry.js +10 -10
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +13 -13
- package/dist/esm/calcite-input-date-picker.entry.js +27 -21
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +14 -14
- package/dist/esm/calcite-input-text.entry.js +14 -14
- package/dist/esm/{calcite-input-time-picker.calcite-time-picker-0bed126d.js → calcite-input-time-picker.calcite-time-picker-555978c6.js} +61 -61
- package/dist/esm/calcite-input-time-picker_2.entry.js +17 -17
- package/dist/esm/calcite-input-time-zone.entry.js +14 -14
- package/dist/esm/calcite-input.entry.js +14 -14
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +8 -8
- package/dist/esm/calcite-list_3.entry.js +20 -18
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-menu_2.entry.js +10 -10
- package/dist/esm/calcite-meter.entry.js +10 -10
- package/dist/esm/calcite-modal.entry.js +30 -35
- package/dist/esm/calcite-navigation_3.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +12 -12
- package/dist/esm/calcite-option_3.entry.js +11 -11
- package/dist/esm/calcite-pagination.entry.js +10 -10
- package/dist/esm/calcite-panel.entry.js +15 -15
- package/dist/esm/calcite-pick-list_3.entry.js +17 -17
- package/dist/esm/calcite-popover.entry.js +16 -16
- package/dist/esm/calcite-progress.entry.js +5 -5
- package/dist/esm/calcite-radio-button-group.entry.js +4 -4
- package/dist/esm/calcite-radio-button.entry.js +11 -11
- package/dist/esm/calcite-rating.entry.js +14 -14
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +11 -11
- package/dist/esm/calcite-sheet.entry.js +17 -26
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +9 -9
- package/dist/esm/calcite-split-button.entry.js +5 -5
- package/dist/esm/calcite-stack.entry.js +6 -6
- package/dist/esm/calcite-stepper_2.entry.js +11 -11
- package/dist/esm/calcite-switch.entry.js +11 -11
- package/dist/esm/calcite-tab_4.entry.js +11 -11
- package/dist/esm/calcite-table-cell_2.entry.js +12 -12
- package/dist/esm/calcite-table-row.entry.js +8 -8
- package/dist/esm/calcite-table.entry.js +11 -11
- package/dist/esm/calcite-text-area.entry.js +16 -16
- package/dist/esm/calcite-tile-select_2.entry.js +6 -6
- package/dist/esm/calcite-tile.entry.js +9 -9
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip.entry.js +9 -9
- package/dist/esm/calcite-tree_2.entry.js +9 -9
- package/dist/esm/calcite-value-list_2.entry.js +17 -17
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-cce072a9.js → conditionalSlot-8b488df5.js} +3 -3
- package/dist/esm/{cs-bbc91976.js → cs-e0a5d38a.js} +17 -17
- package/dist/esm/{da-cf386629.js → da-9c0dc96d.js} +17 -17
- package/dist/esm/{de-at-26224d7a.js → de-at-17811b53.js} +17 -17
- package/dist/esm/{de-ch-33df0401.js → de-ch-026b68bf.js} +17 -17
- package/dist/esm/{de-05978c19.js → de-e01feca9.js} +17 -17
- package/dist/esm/{debounce-74f8bbda.js → debounce-a084b441.js} +1 -1
- package/dist/esm/{dom-5be70645.js → dom-0144d3a5.js} +3 -3
- package/dist/esm/{el-4d1cc333.js → el-323a4b57.js} +17 -17
- package/dist/esm/{en-au-151ec2c4.js → en-au-96b15eda.js} +17 -17
- package/dist/esm/{en-ca-e5f08c00.js → en-ca-509c2e71.js} +17 -17
- package/dist/esm/{en-gb-8355e7dd.js → en-gb-20fd7d09.js} +17 -17
- package/dist/esm/{es-82ac5d15.js → es-7c338fad.js} +17 -17
- package/dist/esm/{es-mx-77420e25.js → es-mx-0f7d5119.js} +17 -17
- package/dist/esm/{et-6ef80668.js → et-5e784e18.js} +17 -17
- package/dist/esm/{fi-2cbfb28a.js → fi-deb91201.js} +17 -17
- package/dist/esm/{filter-bd1e7d00.js → filter-e1722701.js} +2 -2
- package/dist/esm/{floating-ui-6c21bacc.js → floating-ui-f1a5e8c8.js} +3 -3
- package/dist/esm/{focusTrapComponent-ab24c2c4.js → focusTrapComponent-cd33a5c3.js} +2 -2
- package/dist/esm/{form-91d5efbc.js → form-f4940276.js} +3 -3
- package/dist/esm/{fr-f8df1fbb.js → fr-721e47de.js} +17 -17
- package/dist/esm/{fr-ch-b0ec270d.js → fr-ch-945bc7b5.js} +17 -17
- package/dist/esm/{guid-2bb3871a.js → guid-e1cf0e20.js} +1 -1
- package/dist/esm/{he-c0643a3b.js → he-4bccfe15.js} +17 -17
- package/dist/esm/{hi-2dab9137.js → hi-ae97a292.js} +17 -17
- package/dist/esm/{hr-8bf7bfae.js → hr-ec978a23.js} +17 -17
- package/dist/esm/{hu-8188bd52.js → hu-4c4e591e.js} +17 -17
- package/dist/esm/{id-beca0b3a.js → id-de3cf7c9.js} +17 -17
- package/dist/esm/{index-c3fbce88.js → index-f6549a4d.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{interactive-189f9bf3.js → interactive-4414bfa1.js} +2 -2
- package/dist/esm/{it-ch-8dc159ed.js → it-ch-aff05274.js} +17 -17
- package/dist/esm/{it-8fea51cc.js → it-ee10b3dd.js} +17 -17
- package/dist/esm/{ja-1b1d84dd.js → ja-0779df14.js} +17 -17
- package/dist/esm/{key-bf48a440.js → key-53ae5330.js} +1 -1
- package/dist/esm/{ko-bc9f51cd.js → ko-a66b373e.js} +17 -17
- package/dist/esm/{label-ad101fad.js → label-ad8d0303.js} +2 -2
- package/dist/esm/{loadable-7d950f31.js → loadable-536e4ca8.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-e9747e3f.js → locale-ace1e1d1.js} +7 -5
- package/dist/esm/{lt-a3aed9b0.js → lt-50d2f69f.js} +17 -17
- package/dist/esm/{lv-4863e082.js → lv-b1a41a70.js} +17 -17
- package/dist/esm/{math-a9b9a7c5.js → math-a1947b1e.js} +1 -1
- package/dist/esm/{mk-3dc47ab4.js → mk-dcce8ad0.js} +17 -17
- package/dist/esm/{nb-01855388.js → nb-93362a1f.js} +17 -17
- package/dist/esm/{nl-45515e76.js → nl-d2a0df2a.js} +17 -17
- package/dist/esm/{observers-9cb41972.js → observers-b8eaedda.js} +1 -1
- package/dist/esm/{openCloseComponent-e49d5a69.js → openCloseComponent-14f4256d.js} +9 -6
- package/dist/esm/{pl-b7f87fda.js → pl-58e9be10.js} +17 -17
- package/dist/esm/{pt-br-2d98a586.js → pt-br-1e4506a6.js} +17 -17
- package/dist/esm/{pt-b41d1583.js → pt-fa74a8c5.js} +17 -17
- package/dist/esm/{resources-4f6dd419.js → resources-00ec05b0.js} +1 -1
- package/dist/esm/{resources-3eafdcc6.js → resources-206fd44c.js} +1 -1
- package/dist/esm/{resources-8532b757.js → resources-51999cf6.js} +1 -1
- package/dist/esm/{resources-dd64125d.js → resources-5b0ad629.js} +1 -1
- package/dist/esm/{resources-5181d293.js → resources-f37c607f.js} +5 -5
- package/dist/esm/{resources-3caa5205.js → resources-f4778a2a.js} +1 -1
- package/dist/esm/{resources-48774a93.js → resources-f7a07d3e.js} +1 -1
- package/dist/esm/{ro-19cced92.js → ro-0e1aae77.js} +17 -17
- package/dist/esm/{ru-f6740e42.js → ru-9fbbd4ef.js} +17 -17
- package/dist/esm/{sk-89a43429.js → sk-0d5d48fe.js} +17 -17
- package/dist/esm/{sl-d223dff6.js → sl-2636ab0e.js} +17 -17
- package/dist/esm/{sortableComponent-cfb80460.js → sortableComponent-067aa50e.js} +1 -1
- package/dist/esm/{sr-989e1fdd.js → sr-0dd6d93e.js} +17 -17
- package/dist/esm/{sv-5dfbc503.js → sv-a7d00f7b.js} +17 -17
- package/dist/esm/{t9n-c9255e01.js → t9n-2a8b62a3.js} +3 -3
- package/dist/esm/{th-62c83704.js → th-011b77a9.js} +17 -17
- package/dist/esm/{throttle-491930c4.js → throttle-d6b24011.js} +2 -2
- package/dist/esm/{tr-0bb95277.js → tr-a00390dd.js} +17 -17
- package/dist/esm/{uk-ad5bb66b.js → uk-a2b30c44.js} +17 -17
- package/dist/esm/{utils-a1aa8002.js → utils-62db5005.js} +3 -3
- package/dist/esm/{utils-739400ae.js → utils-9e3b5a28.js} +1 -1
- package/dist/esm/{vi-45f665fe.js → vi-62356e3b.js} +17 -17
- package/dist/esm/{zh-cn-8f81b11c.js → zh-cn-d57d1ff0.js} +17 -17
- package/dist/esm/{zh-hk-ca2d854e.js → zh-hk-7f9251ef.js} +17 -17
- package/dist/esm/{zh-tw-c0ceff70.js → zh-tw-9cebddcf.js} +17 -17
- package/dist/extras/docs-json.json +1 -1
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/modal/modal.d.ts +3 -3
- package/dist/types/components/sheet/sheet.d.ts +2 -1
- package/dist/types/utils/openCloseComponent.d.ts +4 -0
- package/hydrate/index.js +49 -50
- package/package.json +2 -2
- package/dist/calcite/p-29a46f6c.js +0 -6
- package/dist/calcite/p-4354e9d4.js +0 -6
- package/dist/calcite/p-4b0b326d.entry.js +0 -6
- package/dist/calcite/p-54af167b.js +0 -6
- package/dist/calcite/p-6ebc660d.entry.js +0 -6
- package/dist/calcite/p-7cb0174e.entry.js +0 -6
- package/dist/calcite/p-dbc0e23e.entry.js +0 -6
- package/dist/calcite/p-e3f0a3ff.entry.js +0 -6
- package/dist/calcite/p-e3f60099.entry.js +0 -6
- package/dist/calcite/p-f84a84ef.entry.js +0 -6
|
@@ -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-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v1.8.0-next.
|
|
4
|
+
* v1.8.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as e,h as i,a as s,F as n}from"./p-185bc5dd.js";import{i as r,g as a,d as o,j as l}from"./p-53f68583.js";import{C as h,n as c,a as u,o as d,b as p,c as f,p as g,d as b,t as m,e as w,f as y,g as v,j as k,i as x,r as C,k as M}from"./p-be17fd5e.js";import{c as j,d as A,u as z}from"./p-e5fedd4b.js";import{i as S}from"./p-992d6edc.js";import{c as F,s as O,a as $}from"./p-19980bcd.js";import{c as D,d as I}from"./p-81e1ef08.js";import{r as q,c as E,a as N}from"./p-86d158a0.js";import{u as L,s as K,c as U,d as P}from"./p-6c9a6e69.js";import{t as T}from"./p-ddef8b45.js";import"./p-3b25f9af.js";import"./p-3b7d1d44.js";import"./p-5aae88ad.js";import"./p-a71d7284.js";import"./p-49c010d6.js";function _(t,e,i){return t(i={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},i.exports),i.exports}var H={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},B=_((function(t){var e=Array.prototype.concat,i=Array.prototype.slice,s=t.exports=function(t){for(var s,n=[],r=0,a=t.length;r<a;r++){var o=t[r];(s=o)&&"string"!=typeof s&&(s instanceof Array||Array.isArray(s)||s.length>=0&&(s.splice instanceof Function||Object.getOwnPropertyDescriptor(s,s.length-1)&&"String"!==s.constructor.name))?n=e.call(n,i.call(o)):n.push(o)}return n};s.wrap=function(t){return function(){return t(s(arguments))}}})),V=_((function(t){var e=Object.hasOwnProperty,i=Object.create(null);for(var s in H)e.call(H,s)&&(i[H[s]]=s);var n=t.exports={to:{},get:{}};function r(t,e,i){return Math.min(Math.max(e,t),i)}function a(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}n.get=function(t){var e,i;switch(t.substring(0,3).toLowerCase()){case"hsl":e=n.get.hsl(t),i="hsl";break;case"hwb":e=n.get.hwb(t),i="hwb";break;default:e=n.get.rgb(t),i="rgb"}return e?{model:i,value:e}:null},n.get.rgb=function(t){if(!t)return null;var i,s,n,a=[0,0,0,1];if(i=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=i[2],i=i[1],s=0;s<3;s++){var o=2*s;a[s]=parseInt(i.slice(o,o+2),16)}n&&(a[3]=parseInt(n,16)/255)}else if(i=t.match(/^#([a-f0-9]{3,4})$/i)){for(n=(i=i[1])[3],s=0;s<3;s++)a[s]=parseInt(i[s]+i[s],16);n&&(a[3]=parseInt(n+n,16)/255)}else if(i=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(s=0;s<3;s++)a[s]=parseInt(i[s+1],0);i[4]&&(a[3]=i[5]?.01*parseFloat(i[4]):parseFloat(i[4]))}else{if(!(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(i=t.match(/^(\w+)$/))?"transparent"===i[1]?[0,0,0,0]:e.call(H,i[1])?((a=H[i[1]])[3]=1,a):null:null;for(s=0;s<3;s++)a[s]=Math.round(2.55*parseFloat(i[s+1]));i[4]&&(a[3]=i[5]?.01*parseFloat(i[4]):parseFloat(i[4]))}for(s=0;s<3;s++)a[s]=r(a[s],0,255);return a[3]=r(a[3],0,1),a},n.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var i=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,r(parseFloat(e[2]),0,100),r(parseFloat(e[3]),0,100),r(isNaN(i)?1:i,0,1)]}return null},n.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var i=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,r(parseFloat(e[2]),0,100),r(parseFloat(e[3]),0,100),r(isNaN(i)?1:i,0,1)]}return null},n.to.hex=function(){var t=B(arguments);return"#"+a(t[0])+a(t[1])+a(t[2])+(t[3]<1?a(Math.round(255*t[3])):"")},n.to.rgb=function(){var t=B(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},n.to.rgb.percent=function(){var t=B(arguments),e=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),s=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+i+"%, "+s+"%)":"rgba("+e+"%, "+i+"%, "+s+"%, "+t[3]+")"},n.to.hsl=function(){var t=B(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},n.to.hwb=function(){var t=B(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},n.to.keyword=function(t){return i[t.slice(0,3)]}})),J={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const R={};for(const t of Object.keys(J))R[J[t]]=t;const X={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var W=X;for(const t of Object.keys(X)){if(!("channels"in X[t]))throw new Error("missing channels property: "+t);if(!("labels"in X[t]))throw new Error("missing channel labels property: "+t);if(X[t].labels.length!==X[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:i}=X[t];delete X[t].channels,delete X[t].labels,Object.defineProperty(X[t],"channels",{value:e}),Object.defineProperty(X[t],"labels",{value:i})}function Y(t,e){return function(i){return e(t(i))}}function G(t,e){const i=[e[t].parent,t];let s=W[e[t].parent][t],n=e[t].parent;for(;e[n].parent;)i.unshift(e[n].parent),s=Y(W[e[n].parent][n],s),n=e[n].parent;return s.conversion=i,s}X.rgb.hsl=function(t){const e=t[0]/255,i=t[1]/255,s=t[2]/255,n=Math.min(e,i,s),r=Math.max(e,i,s),a=r-n;let o,l;r===n?o=0:e===r?o=(i-s)/a:i===r?o=2+(s-e)/a:s===r&&(o=4+(e-i)/a),o=Math.min(60*o,360),o<0&&(o+=360);const h=(n+r)/2;return l=r===n?0:h<=.5?a/(r+n):a/(2-r-n),[o,100*l,100*h]},X.rgb.hsv=function(t){let e,i,s,n,r;const a=t[0]/255,o=t[1]/255,l=t[2]/255,h=Math.max(a,o,l),c=h-Math.min(a,o,l),u=function(t){return(h-t)/6/c+.5};return 0===c?(n=0,r=0):(r=c/h,e=u(a),i=u(o),s=u(l),a===h?n=s-i:o===h?n=1/3+e-s:l===h&&(n=2/3+i-e),n<0?n+=1:n>1&&(n-=1)),[360*n,100*r,100*h]},X.rgb.hwb=function(t){const e=t[0],i=t[1];let s=t[2];const n=X.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(i,s));return s=1-1/255*Math.max(e,Math.max(i,s)),[n,100*r,100*s]},X.rgb.cmyk=function(t){const e=t[0]/255,i=t[1]/255,s=t[2]/255,n=Math.min(1-e,1-i,1-s);return[100*((1-e-n)/(1-n)||0),100*((1-i-n)/(1-n)||0),100*((1-s-n)/(1-n)||0),100*n]},X.rgb.keyword=function(t){const e=R[t];if(e)return e;let i,s=1/0;for(const e of Object.keys(J)){const a=((n=t)[0]-(r=J[e])[0])**2+(n[1]-r[1])**2+(n[2]-r[2])**2;a<s&&(s=a,i=e)}var n,r;return i},X.keyword.rgb=function(t){return J[t]},X.rgb.xyz=function(t){let e=t[0]/255,i=t[1]/255,s=t[2]/255;return e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,[100*(.4124*e+.3576*i+.1805*s),100*(.2126*e+.7152*i+.0722*s),100*(.0193*e+.1192*i+.9505*s)]},X.rgb.lab=function(t){const e=X.rgb.xyz(t);let i=e[0],s=e[1],n=e[2];return i/=95.047,s/=100,n/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*s-16,500*(i-s),200*(s-n)]},X.hsl.rgb=function(t){const e=t[0]/360,i=t[1]/100,s=t[2]/100;let n,r,a;if(0===i)return a=255*s,[a,a,a];n=s<.5?s*(1+i):s+i-s*i;const o=2*s-n,l=[0,0,0];for(let t=0;t<3;t++)r=e+1/3*-(t-1),r<0&&r++,r>1&&r--,a=6*r<1?o+6*(n-o)*r:2*r<1?n:3*r<2?o+(n-o)*(2/3-r)*6:o,l[t]=255*a;return l},X.hsl.hsv=function(t){const e=t[0];let i=t[1]/100,s=t[2]/100,n=i;const r=Math.max(s,.01);return s*=2,i*=s<=1?s:2-s,n*=r<=1?r:2-r,[e,100*(0===s?2*n/(r+n):2*i/(s+i)),(s+i)/2*100]},X.hsv.rgb=function(t){const e=t[0]/60,i=t[1]/100;let s=t[2]/100;const n=Math.floor(e)%6,r=e-Math.floor(e),a=255*s*(1-i),o=255*s*(1-i*r),l=255*s*(1-i*(1-r));switch(s*=255,n){case 0:return[s,l,a];case 1:return[o,s,a];case 2:return[a,s,l];case 3:return[a,o,s];case 4:return[l,a,s];case 5:return[s,a,o]}},X.hsv.hsl=function(t){const e=t[0],i=t[1]/100,s=t[2]/100,n=Math.max(s,.01);let r,a;a=(2-i)*s;const o=(2-i)*n;return r=i*n,r/=o<=1?o:2-o,r=r||0,a/=2,[e,100*r,100*a]},X.hwb.rgb=function(t){const e=t[0]/360;let i=t[1]/100,s=t[2]/100;const n=i+s;let r;n>1&&(i/=n,s/=n);const a=Math.floor(6*e),o=1-s;r=6*e-a,0!=(1&a)&&(r=1-r);const l=i+r*(o-i);let h,c,u;switch(a){default:case 6:case 0:h=o,c=l,u=i;break;case 1:h=l,c=o,u=i;break;case 2:h=i,c=o,u=l;break;case 3:h=i,c=l,u=o;break;case 4:h=l,c=i,u=o;break;case 5:h=o,c=i,u=l}return[255*h,255*c,255*u]},X.cmyk.rgb=function(t){const e=t[1]/100,i=t[2]/100,s=t[3]/100;return[255*(1-Math.min(1,t[0]/100*(1-s)+s)),255*(1-Math.min(1,e*(1-s)+s)),255*(1-Math.min(1,i*(1-s)+s))]},X.xyz.rgb=function(t){const e=t[0]/100,i=t[1]/100,s=t[2]/100;let n,r,a;return n=3.2406*e+-1.5372*i+-.4986*s,r=-.9689*e+1.8758*i+.0415*s,a=.0557*e+-.204*i+1.057*s,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),a=Math.min(Math.max(0,a),1),[255*n,255*r,255*a]},X.xyz.lab=function(t){let e=t[0],i=t[1],s=t[2];return e/=95.047,i/=100,s/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,[116*i-16,500*(e-i),200*(i-s)]},X.lab.xyz=function(t){let e,i,s;i=(t[0]+16)/116,e=t[1]/500+i,s=i-t[2]/200;const n=i**3,r=e**3,a=s**3;return i=n>.008856?n:(i-16/116)/7.787,e=r>.008856?r:(e-16/116)/7.787,s=a>.008856?a:(s-16/116)/7.787,e*=95.047,i*=100,s*=108.883,[e,i,s]},X.lab.lch=function(t){const e=t[0],i=t[1],s=t[2];let n;return n=360*Math.atan2(s,i)/2/Math.PI,n<0&&(n+=360),[e,Math.sqrt(i*i+s*s),n]},X.lch.lab=function(t){const e=t[1],i=t[2]/360*2*Math.PI;return[t[0],e*Math.cos(i),e*Math.sin(i)]},X.rgb.ansi16=function(t,e=null){const[i,s,n]=t;let r=null===e?X.rgb.hsv(t)[2]:e;if(r=Math.round(r/50),0===r)return 30;let a=30+(Math.round(n/255)<<2|Math.round(s/255)<<1|Math.round(i/255));return 2===r&&(a+=60),a},X.hsv.ansi16=function(t){return X.rgb.ansi16(X.hsv.rgb(t),t[2])},X.rgb.ansi256=function(t){const e=t[0],i=t[1],s=t[2];return e===i&&i===s?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(s/255*5)},X.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const i=.5*(1+~~(t>50));return[(1&e)*i*255,(e>>1&1)*i*255,(e>>2&1)*i*255]},X.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;return t-=16,[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},X.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},X.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let i=e[0];3===e[0].length&&(i=i.split("").map((t=>t+t)).join(""));const s=parseInt(i,16);return[s>>16&255,s>>8&255,255&s]},X.rgb.hcg=function(t){const e=t[0]/255,i=t[1]/255,s=t[2]/255,n=Math.max(Math.max(e,i),s),r=Math.min(Math.min(e,i),s),a=n-r;let o,l;return o=a<1?r/(1-a):0,l=a<=0?0:n===e?(i-s)/a%6:n===i?2+(s-e)/a:4+(e-i)/a,l/=6,l%=1,[360*l,100*a,100*o]},X.hsl.hcg=function(t){const e=t[1]/100,i=t[2]/100,s=i<.5?2*e*i:2*e*(1-i);let n=0;return s<1&&(n=(i-.5*s)/(1-s)),[t[0],100*s,100*n]},X.hsv.hcg=function(t){const e=t[2]/100,i=t[1]/100*e;let s=0;return i<1&&(s=(e-i)/(1-i)),[t[0],100*i,100*s]},X.hcg.rgb=function(t){const e=t[1]/100,i=t[2]/100;if(0===e)return[255*i,255*i,255*i];const s=[0,0,0],n=t[0]/360%1*6,r=n%1,a=1-r;let o=0;switch(Math.floor(n)){case 0:s[0]=1,s[1]=r,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=r;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=r,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return o=(1-e)*i,[255*(e*s[0]+o),255*(e*s[1]+o),255*(e*s[2]+o)]},X.hcg.hsv=function(t){const e=t[1]/100,i=e+t[2]/100*(1-e);let s=0;return i>0&&(s=e/i),[t[0],100*s,100*i]},X.hcg.hsl=function(t){const e=t[1]/100,i=t[2]/100*(1-e)+.5*e;let s=0;return i>0&&i<.5?s=e/(2*i):i>=.5&&i<1&&(s=e/(2*(1-i))),[t[0],100*s,100*i]},X.hcg.hwb=function(t){const e=t[1]/100,i=e+t[2]/100*(1-e);return[t[0],100*(i-e),100*(1-i)]},X.hwb.hcg=function(t){const e=1-t[2]/100,i=e-t[1]/100;let s=0;return i<1&&(s=(e-i)/(1-i)),[t[0],100*i,100*s]},X.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},X.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},X.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},X.gray.hsl=function(t){return[0,0,t[0]]},X.gray.hsv=X.gray.hsl,X.gray.hwb=function(t){return[0,100,t[0]]},X.gray.cmyk=function(t){return[0,0,0,t[0]]},X.gray.lab=function(t){return[t[0],0,0]},X.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(i.length)+i},X.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const Q={};Object.keys(W).forEach((t=>{Q[t]={},Object.defineProperty(Q[t],"channels",{value:W[t].channels}),Object.defineProperty(Q[t],"labels",{value:W[t].labels});const e=function(t){const e=function(t){const e=function(){const t={},e=Object.keys(W);for(let i=e.length,s=0;s<i;s++)t[e[s]]={distance:-1,parent:null};return t}(),i=[t];for(e[t].distance=0;i.length;){const t=i.pop(),s=Object.keys(W[t]);for(let n=s.length,r=0;r<n;r++){const n=s[r],a=e[n];-1===a.distance&&(a.distance=e[t].distance+1,a.parent=t,i.unshift(n))}}return e}(t),i={},s=Object.keys(e);for(let t=s.length,n=0;n<t;n++){const t=s[n];null!==e[t].parent&&(i[t]=G(t,e))}return i}(t);Object.keys(e).forEach((i=>{const s=e[i];Q[t][i]=function(t){const e=function(...e){const i=e[0];if(null==i)return i;i.length>1&&(e=i);const s=t(e);if("object"==typeof s)for(let t=s.length,e=0;e<t;e++)s[e]=Math.round(s[e]);return s};return"conversion"in t&&(e.conversion=t.conversion),e}(s),Q[t][i].raw=function(t){const e=function(...e){const i=e[0];return null==i?i:(i.length>1&&(e=i),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(s)}))}));var Z=Q;const tt=["keyword","gray","hex"],et={};for(const t of Object.keys(Z))et[[...Z[t].labels].sort().join("")]=t;const it={};function st(t,e){if(!(this instanceof st))return new st(t,e);if(e&&e in tt&&(e=null),e&&!(e in Z))throw new Error("Unknown model: "+e);let i,s;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof st)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=V.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,s=Z[this.model].channels,this.color=e.value.slice(0,s),this.valpha="number"==typeof e.value[s]?e.value[s]:1}else if(t.length>0){this.model=e||"rgb",s=Z[this.model].channels;const i=Array.prototype.slice.call(t,0,s);this.color=ot(i,s),this.valpha="number"==typeof t[s]?t[s]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const s=e.sort().join("");if(!(s in et))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=et[s];const{labels:n}=Z[this.model],r=[];for(i=0;i<n.length;i++)r.push(t[n[i]]);this.color=ot(r)}if(it[this.model])for(s=Z[this.model].channels,i=0;i<s;i++){const t=it[this.model][i];t&&(this.color[i]=t(this.color[i]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}st.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in V.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const i=1===e.valpha?e.color:[...e.color,this.valpha];return V.to[e.model](i)},percentString(t){const e=this.rgb().round("number"==typeof t?t:1),i=1===e.valpha?e.color:[...e.color,this.valpha];return V.to.rgb.percent(i)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=Z[this.model],{labels:i}=Z[this.model];for(let s=0;s<e;s++)t[i[s]]=this.color[s];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new st([...this.color.map(nt(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new st([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:rt("rgb",0,at(255)),green:rt("rgb",1,at(255)),blue:rt("rgb",2,at(255)),hue:rt(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:rt("hsl",1,at(100)),lightness:rt("hsl",2,at(100)),saturationv:rt("hsv",1,at(100)),value:rt("hsv",2,at(100)),chroma:rt("hcg",1,at(100)),gray:rt("hcg",2,at(100)),white:rt("hwb",1,at(100)),wblack:rt("hwb",2,at(100)),cyan:rt("cmyk",0,at(100)),magenta:rt("cmyk",1,at(100)),yellow:rt("cmyk",2,at(100)),black:rt("cmyk",3,at(100)),x:rt("xyz",0,at(95.047)),y:rt("xyz",1,at(100)),z:rt("xyz",2,at(108.833)),l:rt("lab",0,at(100)),a:rt("lab",1),b:rt("lab",2),keyword(t){return void 0!==t?new st(t):Z[this.model].keyword(this.color)},hex(t){return void 0!==t?new st(t):V.to.hex(this.rgb().round().color)},hexa(t){if(void 0!==t)return new st(t);const e=this.rgb().round().color;let i=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===i.length&&(i="0"+i),V.to.hex(e)+i},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,e=[];for(const[i,s]of t.entries()){const t=s/255;e[i]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return st.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let i=e.color[0];return i=(i+t)%360,i=i<0?360+i:i,e.color[0]=i,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const i=t.rgb(),s=this.rgb(),n=void 0===e?.5:e,r=2*n-1,a=i.alpha()-s.alpha(),o=((r*a==-1?r:(r+a)/(1+r*a))+1)/2,l=1-o;return st.rgb(o*i.red()+l*s.red(),o*i.green()+l*s.green(),o*i.blue()+l*s.blue(),i.alpha()*n+s.alpha()*(1-n))}};for(const t of Object.keys(Z)){if(tt.includes(t))continue;const{channels:e}=Z[t];st.prototype[t]=function(...e){return this.model===t?new st(this):new st(e.length>0?e:[...(i=Z[this.model][t].raw(this.color),Array.isArray(i)?i:[i]),this.valpha],t);var i},st[t]=function(...i){let s=i[0];return"number"==typeof s&&(s=ot(i,e)),new st(s,t)}}function nt(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function rt(t,e,i){t=Array.isArray(t)?t:[t];for(const s of t)(it[s]||(it[s]=[]))[e]=i;return t=t[0],function(s){let n;return void 0!==s?(i&&(s=i(s)),n=this[t](),n.color[e]=s,n):(n=this[t]().color[e],i&&(n=i(n)),n)}}function at(t){return function(e){return Math.max(0,Math.min(t,e))}}function ot(t,e){for(let i=0;i<e;i++)"number"!=typeof t[i]&&(t[i]=0);return t}var lt=st;const ht="channel",ct="control",ut="control-and-scope",dt="scope",pt="section",ft="slider",gt=lt("#007AC2"),bt="calcite-color-",mt={r:255,g:255,b:255},wt={h:360,s:100,v:100},yt=wt.h-1,vt=100,kt={s:{slider:{height:12,width:104},colorField:{height:80,width:160},thumb:{radius:10}},m:{slider:{height:12,width:204},colorField:{height:150,width:272},thumb:{radius:10}},l:{slider:{height:12,width:384},colorField:{height:200,width:464},thumb:{radius:10}}},xt=class{constructor(s){t(this,s),this.calciteColorPickerChange=e(this,"calciteColorPickerChange",6),this.calciteColorPickerInput=e(this,"calciteColorPickerInput",6),this.internalColorUpdateContext=null,this.mode=h.HEX,this.shiftKeyChannelAdjustment=0,this.handleTabActivate=t=>{this.channelMode=t.currentTarget.getAttribute("data-color-mode"),this.updateChannelsFromColor(this.color)},this.handleColorFieldScopeKeyDown=t=>{const{key:e}=t,i={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}};i[e]&&(t.preventDefault(),this.scopeOrientation="ArrowDown"===e||"ArrowUp"===e?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft+i[e].x||0,this.colorFieldScopeTop+i[e].y||0,!1))},this.handleHueScopeKeyDown=t=>{const e=t.shiftKey?10:1,{key:i}=t,s={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1};if(s[i]){t.preventDefault();const n=s[i]*e,r=this.baseColorFieldColor.hue(),a=this.baseColorFieldColor.hue(r+n);this.internalColorSet(a,!1)}},this.handleHexInputChange=t=>{t.stopPropagation();const{allowEmpty:e,color:i}=this,s=t.target.value;!e||s?s!==(i&&c(u(i,f(this.mode))))&&this.internalColorSet(lt(s)):this.internalColorSet(null)},this.handleSavedColorSelect=t=>{this.internalColorSet(lt(t.currentTarget.color))},this.handleChannelInput=t=>{const e=t.currentTarget,i=Number(e.getAttribute("data-channel-index")),s=3===i?vt:"rgb"===this.channelMode?mt[Object.keys(mt)[i]]:wt[Object.keys(wt)[i]];let n;if(this.allowEmpty&&!e.value)n="";else{const t=Number(e.value);n=E(t+this.shiftKeyChannelAdjustment,0,s).toString()}e.value=n},this.handleChannelChange=t=>{const e=t.currentTarget,i=Number(e.getAttribute("data-channel-index")),s=[...this.channels];if(this.allowEmpty&&!e.value)return this.channels=[null,null,null,null],void this.internalColorSet(null);const n=3===i,r=Number(e.value);s[i]=n?d(r):r,this.updateColorFromChannels(s)},this.handleSavedColorKeyDown=t=>{S(t.key)&&(t.preventDefault(),this.handleSavedColorSelect(t))},this.handleColorFieldPointerDown=t=>{if(!r(t))return;const{offsetX:e,offsetY:i}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.colorFieldRenderingContext,bounds:this.colorFieldRenderingContext.canvas.getBoundingClientRect()},this.captureColorFieldColor(e,i),this.colorFieldScopeNode.focus()},this.handleHueSliderPointerDown=t=>{if(!r(t))return;const{offsetX:e}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.hueSliderRenderingContext,bounds:this.hueSliderRenderingContext.canvas.getBoundingClientRect()},this.captureHueSliderColor(e),this.hueScopeNode.focus()},this.handleOpacitySliderPointerDown=t=>{if(!r(t))return;const{offsetX:e}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.opacitySliderRenderingContext,bounds:this.opacitySliderRenderingContext.canvas.getBoundingClientRect()},this.captureOpacitySliderValue(e),this.opacityScopeNode.focus()},this.globalPointerUpHandler=t=>{if(!r(t))return;const e=this.activeCanvasInfo;this.activeCanvasInfo=null,this.drawColorControls(),e&&this.calciteColorPickerChange.emit()},this.globalPointerMoveHandler=t=>{const{activeCanvasInfo:e,el:i}=this;if(!i.isConnected||!e)return;const{context:s,bounds:n}=e;let r,a;const{clientX:o,clientY:l}=t;s.canvas.matches(":hover")?(r=o-n.x,a=l-n.y):(r=o<n.x+n.width&&o>n.x?o-n.x:o<n.x?0:n.width,a=l<n.y+n.height&&l>n.y?l-n.y:l<n.y?0:n.height),s===this.colorFieldRenderingContext?this.captureColorFieldColor(r,a,!1):s===this.hueSliderRenderingContext?this.captureHueSliderColor(r):s===this.opacitySliderRenderingContext&&this.captureOpacitySliderValue(r)},this.storeColorFieldScope=t=>{this.colorFieldScopeNode=t},this.storeHueScope=t=>{this.hueScopeNode=t},this.renderChannelsTabTitle=t=>{const{channelMode:e,messages:s}=this;return i("calcite-tab-title",{class:"color-mode","data-color-mode":t,key:t,onCalciteTabsActivate:this.handleTabActivate,selected:t===e},"rgb"===t?s.rgb:s.hsv)},this.renderChannelsTab=t=>{const{allowEmpty:e,channelMode:s,channels:n,messages:r,alphaChannel:o}=this,l=t===s,h="rgb"===t?[r.red,r.green,r.blue]:[r.hue,r.saturation,r.value],c=a(this.el),u=o?n:n.slice(0,3);return i("calcite-tab",{class:ct,key:t,selected:l},i("div",{class:"channels",dir:"ltr"},u.map(((t,i)=>{const s=3===i;return s&&(t=e&&!t?t:p(t)),this.renderChannel(t,i,h[i],c,s?"%":"")}))))},this.renderChannel=(t,e,s,n,r)=>i("calcite-input-number",{class:ht,"data-channel-index":e,dir:n,key:e,label:s,lang:this.effectiveLocale,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberChange:this.handleChannelChange,onCalciteInputNumberInput:this.handleChannelInput,onKeyDown:this.handleKeyDown,scale:"l"===this.scale?"m":"s",style:{marginLeft:e>0&&("s"!==this.scale||!this.alphaChannel||3!==e)?"-1px":""},suffixText:r,value:t?.toString()}),this.deleteColor=()=>{const t=u(this.color,this.alphaChannel);if(!(this.savedColors.indexOf(t)>-1))return;const e=this.savedColors.filter((e=>e!==t));this.savedColors=e,this.storageId&&localStorage.setItem(`${bt}${this.storageId}`,JSON.stringify(e))},this.saveColor=()=>{const t=u(this.color,this.alphaChannel);if(this.savedColors.indexOf(t)>-1)return;const e=[...this.savedColors,t];this.savedColors=e,this.storageId&&localStorage.setItem(`${bt}${this.storageId}`,JSON.stringify(e))},this.drawColorControls=T(((t="all")=>{"all"!==t&&"color-field"!==t||!this.colorFieldRenderingContext||this.drawColorField(),"all"!==t&&"hue-slider"!==t||!this.hueSliderRenderingContext||this.drawHueSlider(),this.alphaChannel&&("all"===t||"opacity-slider"===t)&&this.opacitySliderRenderingContext&&this.drawOpacitySlider()}),16),this.captureColorFieldColor=(t,e,i=!0)=>{const{dimensions:{colorField:{height:s,width:n}}}=this,r=Math.round(wt.s/n*t),a=Math.round(wt.v/s*(s-e));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(r).value(a),i)},this.initColorField=t=>{this.colorFieldRenderingContext=t.getContext("2d"),this.updateCanvasSize("color-field"),this.drawColorControls()},this.initHueSlider=t=>{this.hueSliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("hue-slider"),this.drawHueSlider()},this.initOpacitySlider=t=>{t&&(this.opacitySliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("opacity-slider"),this.drawOpacitySlider())},this.storeOpacityScope=t=>{this.opacityScopeNode=t},this.handleOpacityScopeKeyDown=t=>{const e=t.shiftKey?10:1,{key:i}=t,s={ArrowUp:.01,ArrowRight:.01,ArrowDown:-.01,ArrowLeft:-.01};if(s[i]){t.preventDefault();const n=s[i]*e,r=this.baseColorFieldColor.alpha(),a=this.baseColorFieldColor.alpha(r+n);this.internalColorSet(a,!1)}},this.allowEmpty=!1,this.alphaChannel=!1,this.channelsDisabled=!1,this.color=gt,this.disabled=!1,this.format="auto",this.hideChannels=!1,this.hexDisabled=!1,this.hideHex=!1,this.hideSaved=!1,this.savedDisabled=!1,this.scale="m",this.storageId=void 0,this.messageOverrides=void 0,this.numberingSystem=void 0,this.value=c(u(gt,this.alphaChannel)),this.defaultMessages=void 0,this.channelMode="rgb",this.channels=this.toChannels(gt),this.dimensions=kt.m,this.effectiveLocale="",this.messages=void 0,this.savedColors=[],this.colorFieldScopeTop=void 0,this.colorFieldScopeLeft=void 0,this.hueScopeLeft=void 0,this.opacityScopeLeft=void 0,this.scopeOrientation=void 0}handleAlphaChannelChange(t){const{format:e}=this;t&&"auto"!==e&&!f(e)&&(console.warn(`ignoring alphaChannel as the current format (${e}) does not support alpha`),this.alphaChannel=!1)}handleColorChange(t,e){this.drawColorControls(),this.updateChannelsFromColor(t),this.previousColor=e}handleFormatOrAlphaChannelChange(){this.setMode(this.format),this.internalColorSet(this.color,!1,"internal")}handleScaleChange(t="m"){this.updateDimensions(t),this.updateCanvasSize("all"),this.drawColorControls()}onMessagesChange(){}handleValueChange(t,e){const{allowEmpty:i,format:s}=this;let n=!1;if(!i||t){const i=g(t);if(!i||"auto"!==s&&i!==s)return this.showIncompatibleColorWarning(t,s),void(this.value=e);n=this.mode!==i,this.setMode(i,null===this.internalColorUpdateContext)}const r=this.activeCanvasInfo;if("initial"===this.internalColorUpdateContext)return;if("user-interaction"===this.internalColorUpdateContext)return this.calciteColorPickerInput.emit(),void(r||this.calciteColorPickerChange.emit());const a=i&&!t?null:lt(null!=t&&"object"==typeof t&&f(this.mode)?v(t):t),o=!b(a,this.color);(n||o)&&this.internalColorSet(a,this.alphaChannel&&!(this.mode.endsWith("a")||this.mode.endsWith("a-css")),"internal")}get baseColorFieldColor(){return this.color||this.previousColor||gt}effectiveLocaleChange(){L(this,this.effectiveLocale)}handleChannelKeyUpOrDown(t){this.shiftKeyChannelAdjustment=0;const{key:e}=t;if("ArrowUp"!==e&&"ArrowDown"!==e||!t.composedPath().some((t=>t.classList?.contains(ht))))return;const{shiftKey:i}=t;if(t.preventDefault(),!this.color)return this.internalColorSet(this.previousColor),void t.stopPropagation();this.shiftKeyChannelAdjustment="ArrowUp"===e&&i?9:"ArrowDown"===e&&i?-9:0}async setFocus(){await F(this),this.el.focus()}async componentWillLoad(){O(this);const{allowEmpty:t,color:e,format:i,value:s}=this,n=t&&!s,r=g(s),a=n||"auto"===i&&r||i===r,o=n?null:a?lt(s):e;a||this.showIncompatibleColorWarning(s,i),this.setMode(i,!1),this.internalColorSet(o,!1,"initial"),this.updateDimensions(this.scale);const l=`${bt}${this.storageId}`;this.storageId&&localStorage.getItem(l)&&(this.savedColors=JSON.parse(localStorage.getItem(l))),await K(this)}connectedCallback(){j(this),D(this),U(this)}componentDidLoad(){$(this)}disconnectedCallback(){document.removeEventListener("pointermove",this.globalPointerMoveHandler),document.removeEventListener("pointerup",this.globalPointerUpHandler),A(this),I(this),P(this)}componentDidRender(){z(this)}render(){const{allowEmpty:t,channelsDisabled:e,color:s,colorFieldScopeLeft:n,colorFieldScopeTop:r,dimensions:{slider:{width:a},thumb:{radius:o}},hexDisabled:l,hideChannels:h,hideHex:c,hideSaved:d,hueScopeLeft:f,messages:g,alphaChannel:b,opacityScopeLeft:m,savedColors:w,savedDisabled:y,scale:v,scopeOrientation:k}=this,x=s?u(s,b):null,C=o,M=f??a*gt.hue()/wt.h,j=o,A=m??a*p(gt.alpha())/vt,z=null===s,S="vertical"===k,F=l||c,O=e||h,$=y||d,[D,I]=this.getAdjustedScopePosition(n,r),[q,E]=this.getAdjustedScopePosition(M,C),[N,L]=this.getAdjustedScopePosition(A,j);return i("div",{class:"container"},i("div",{class:ut},i("canvas",{class:"color-field",onPointerDown:this.handleColorFieldPointerDown,ref:this.initColorField}),i("div",{"aria-label":S?g.value:g.saturation,"aria-valuemax":S?wt.v:wt.s,"aria-valuemin":"0","aria-valuenow":(S?s?.saturationv():s?.value())||"0",class:{[dt]:!0,"scope--color-field":!0},onKeyDown:this.handleColorFieldScopeKeyDown,role:"slider",style:{top:`${I||0}px`,left:`${D||0}px`},tabindex:"0",ref:this.storeColorFieldScope})),i("div",{class:"preview-and-sliders"},i("calcite-color-picker-swatch",{class:"preview",color:x,scale:"l"}),i("div",{class:"sliders"},i("div",{class:ut},i("canvas",{class:{[ft]:!0,"hue-slider":!0},onPointerDown:this.handleHueSliderPointerDown,ref:this.initHueSlider}),i("div",{"aria-label":g.hue,"aria-valuemax":wt.h,"aria-valuemin":"0","aria-valuenow":s?.round().hue()||gt.round().hue(),class:{[dt]:!0,"scope--hue":!0},onKeyDown:this.handleHueScopeKeyDown,role:"slider",style:{top:`${E}px`,left:`${q}px`},tabindex:"0",ref:this.storeHueScope})),b?i("div",{class:ut},i("canvas",{class:{[ft]:!0,"opacity-slider":!0},onPointerDown:this.handleOpacitySliderPointerDown,ref:this.initOpacitySlider}),i("div",{"aria-label":g.opacity,"aria-valuemax":vt,"aria-valuemin":0,"aria-valuenow":(s||gt).round().alpha(),class:{[dt]:!0,"scope--opacity":!0},onKeyDown:this.handleOpacityScopeKeyDown,role:"slider",style:{top:`${L}px`,left:`${N}px`},tabindex:"0",ref:this.storeOpacityScope})):null)),F&&O?null:i("div",{class:{"control-section":!0,[pt]:!0}},i("div",{class:"hex-and-channels-group"},F?null:i("div",{class:"color-hex-options"},i("calcite-color-picker-hex-input",{allowEmpty:t,alphaChannel:b,class:ct,messages:g,numberingSystem:this.numberingSystem,onCalciteColorPickerHexInputChange:this.handleHexInputChange,scale:v,value:x})),O?null:i("calcite-tabs",{class:{"color-mode-container":!0,"section--split":!0},scale:"l"===v?"m":"s"},i("calcite-tab-nav",{slot:"title-group"},this.renderChannelsTabTitle("rgb"),this.renderChannelsTabTitle("hsv")),this.renderChannelsTab("rgb"),this.renderChannelsTab("hsv")))),$?null:i("div",{class:{"saved-colors-section":!0,[pt]:!0}},i("div",{class:"header"},i("label",null,g.saved),i("div",{class:"saved-colors-buttons"},i("calcite-button",{appearance:"transparent",class:"delete-color",disabled:z,iconStart:"minus",kind:"neutral",label:g.deleteColor,onClick:this.deleteColor,scale:v,type:"button"}),i("calcite-button",{appearance:"transparent",class:"save-color",disabled:z,iconStart:"plus",kind:"neutral",label:g.saveColor,onClick:this.saveColor,scale:v,type:"button"}))),w.length>0?i("div",{class:"saved-colors"},[...w.map((t=>i("calcite-color-picker-swatch",{class:"saved-color",color:t,key:t,onClick:this.handleSavedColorSelect,onKeyDown:this.handleSavedColorKeyDown,scale:v,tabIndex:0})))]):null))}handleKeyDown(t){"Enter"===t.key&&t.preventDefault()}showIncompatibleColorWarning(t,e){console.warn(`ignoring color value (${t}) as it is not compatible with the current format (${e})`)}setMode(t,e=!0){this.mode=this.ensureCompatibleMode("auto"===t?this.mode:t,e)}ensureCompatibleMode(t,e){const{alphaChannel:i}=this,s=f(t);if(i&&!s){const i=y(t);return e&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}if(!i&&s){const i=m(t);return e&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}return t}captureHueSliderColor(t){const{dimensions:{slider:{width:e}}}=this;this.internalColorSet(this.baseColorFieldColor.hue(yt/e*t),!1)}captureOpacitySliderValue(t){const{dimensions:{slider:{width:e}}}=this,i=d(vt/e*t);this.internalColorSet(this.baseColorFieldColor.alpha(i),!1)}internalColorSet(t,e=!0,i="user-interaction"){e&&b(t,this.color)||(this.internalColorUpdateContext=i,this.color=t,this.value=this.toValue(t),this.internalColorUpdateContext=null)}toValue(t,e=this.mode){if(!t)return null;if(e.includes("hex")){const i=e===h.HEXA;return c(u(t.round(),i),i)}if(e.includes("-css")){const i=t[e.replace("-css","").replace("a","")]().round().string();return(e.endsWith("a")||e.endsWith("a-css"))&&1===t.alpha()?`${i.slice(0,3)}a(${i.slice(4,-1)}, ${t.alpha()})`:i}const i=t[m(e)]().round().object();return e.endsWith("a")?w(i):i}getSliderCapSpacing(){const{dimensions:{slider:{height:t},thumb:{radius:e}}}=this;return 2*e-t}updateDimensions(t="m"){this.dimensions=kt[t]}drawColorField(){const t=this.colorFieldRenderingContext,{dimensions:{colorField:{height:e,width:i}}}=this;t.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).alpha(1).string(),t.fillRect(0,0,i,e);const s=t.createLinearGradient(0,0,i,0);s.addColorStop(0,"rgba(255,255,255,1)"),s.addColorStop(1,"rgba(255,255,255,0)"),t.fillStyle=s,t.fillRect(0,0,i,e);const n=t.createLinearGradient(0,0,0,e);n.addColorStop(0,"rgba(0,0,0,0)"),n.addColorStop(1,"rgba(0,0,0,1)"),t.fillStyle=n,t.fillRect(0,0,i,e),this.drawActiveColorFieldColor()}setCanvasContextSize(t,{height:e,width:i}){if(!t)return;const s=window.devicePixelRatio||1;t.width=i*s,t.height=e*s,t.style.height=`${e}px`,t.style.width=`${i}px`,t.getContext("2d").scale(s,s)}updateCanvasSize(t="all"){const{dimensions:e}=this;"all"!==t&&"color-field"!==t||this.setCanvasContextSize(this.colorFieldRenderingContext?.canvas,e.colorField);const i={width:e.slider.width,height:e.slider.height+2*(e.thumb.radius-e.slider.height/2)};"all"!==t&&"hue-slider"!==t||this.setCanvasContextSize(this.hueSliderRenderingContext?.canvas,i),"all"!==t&&"opacity-slider"!==t||this.setCanvasContextSize(this.opacitySliderRenderingContext?.canvas,i)}drawActiveColorFieldColor(){const{color:t}=this;if(!t)return;const e=t.hsv(),{dimensions:{colorField:{height:i,width:s},thumb:{radius:n}}}=this,r=e.saturationv()/(wt.s/s),a=i-e.value()/(wt.v/i);requestAnimationFrame((()=>{this.colorFieldScopeLeft=r,this.colorFieldScopeTop=a})),this.drawThumb(this.colorFieldRenderingContext,n,r,a,e)}drawThumb(t,e,i,s,n){const r=2*Math.PI;t.beginPath(),t.arc(i,s,e,0,r),t.fillStyle="#fff",t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),t.beginPath(),t.arc(i,s,e-3,0,r),t.fillStyle=n.rgb().alpha(1).string(),t.fill()}drawActiveHueSliderColor(){const{color:t}=this;if(!t)return;const e=t.hsv().saturationv(100).value(100),{dimensions:{slider:{width:i},thumb:{radius:s}}}=this,n=e.hue()/(yt/i),r=s,a=this.getSliderBoundX(n,i,s);requestAnimationFrame((()=>{this.hueScopeLeft=a})),this.drawThumb(this.hueSliderRenderingContext,s,a,r,e)}drawHueSlider(){const t=this.hueSliderRenderingContext,{dimensions:{slider:{height:e,width:i},thumb:{radius:s}}}=this,n=s-e/2,r=t.createLinearGradient(0,0,i,0),a=["red","yellow","lime","cyan","blue","magenta","#ff0004"],o=1/(a.length-1);let l=0;a.forEach((t=>{r.addColorStop(l,lt(t).string()),l+=o})),t.clearRect(0,0,i,e+2*this.getSliderCapSpacing()),this.drawSliderPath(t,e,i,0,n),t.fillStyle=r,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveHueSliderColor()}drawOpacitySlider(){const t=this.opacitySliderRenderingContext,{baseColorFieldColor:e,dimensions:{slider:{height:i,width:s},thumb:{radius:n}}}=this,r=n-i/2;t.clearRect(0,0,s,i+2*this.getSliderCapSpacing());const a=t.createLinearGradient(0,r,s,0),o=e.rgb().alpha(0),l=e.rgb().alpha(.5),h=e.rgb().alpha(1);a.addColorStop(0,o.string()),a.addColorStop(.5,l.string()),a.addColorStop(1,h.string()),this.drawSliderPath(t,i,s,0,r);const c=t.createPattern(this.getCheckeredBackgroundPattern(),"repeat");t.fillStyle=c,t.fill(),t.fillStyle=a,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveOpacitySliderColor()}drawSliderPath(t,e,i,s,n){const r=e/2+1;t.beginPath(),t.moveTo(s+r,n),t.lineTo(s+i-r,n),t.quadraticCurveTo(s+i,n,s+i,n+r),t.lineTo(s+i,n+e-r),t.quadraticCurveTo(s+i,n+e,s+i-r,n+e),t.lineTo(s+r,n+e),t.quadraticCurveTo(s,n+e,s,n+e-r),t.lineTo(s,n+r),t.quadraticCurveTo(s,n,s+r,n),t.closePath()}getCheckeredBackgroundPattern(){if(this.checkerPattern)return this.checkerPattern;const t=document.createElement("canvas");t.width=10,t.height=10;const e=t.getContext("2d");return e.fillStyle="#ccc",e.fillRect(0,0,10,10),e.fillStyle="#fff",e.fillRect(0,0,5,5),e.fillRect(5,5,5,5),this.checkerPattern=t,t}drawActiveOpacitySliderColor(){const{color:t}=this;if(!t)return;const e=t,{dimensions:{slider:{width:i},thumb:{radius:s}}}=this,n=p(e.alpha())/(vt/i),r=s,a=this.getSliderBoundX(n,i,s);requestAnimationFrame((()=>{this.opacityScopeLeft=a})),this.drawThumb(this.opacitySliderRenderingContext,s,a,r,e)}getSliderBoundX(t,e,i){const s=N(t,e,i);return 0===s?t:-1===s?q(t,0,e,i,2*i):q(t,0,e,e-2*i,e-i)}updateColorFromChannels(t){this.internalColorSet(lt(t,this.channelMode))}updateChannelsFromColor(t){this.channels=t?this.toChannels(t):[null,null,null,null]}toChannels(t){const{channelMode:e}=this,i=t[e]().array().map(((t,e)=>3===e?t:Math.floor(t)));return 3===i.length&&i.push(1),i}getAdjustedScopePosition(t,e){return[t-.5,e-.5]}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{alphaChannel:["handleAlphaChannelChange","handleFormatOrAlphaChannelChange"],color:["handleColorChange"],format:["handleFormatOrAlphaChannelChange"],scale:["handleScaleChange"],messageOverrides:["onMessagesChange"],value:["handleValueChange"],effectiveLocale:["effectiveLocaleChange"]}}};xt.style=':host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){--calcite-color-picker-spacing:8px}:host([scale=s]) .container{inline-size:160px}:host([scale=s]) .saved-colors{gap:0.25rem;grid-template-columns:repeat(auto-fill, 20px)}:host([scale=m]){--calcite-color-picker-spacing:12px}:host([scale=m]) .container{inline-size:272px}:host([scale=l]){--calcite-color-picker-spacing:16px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{inline-size:464px}:host([scale=l]) .section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, 32px)}:host([scale=l]) .control-section{flex-wrap:nowrap;align-items:baseline;flex-wrap:wrap}:host([scale=l]) .color-hex-options{display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around}:host([scale=l]) .color-mode-container{flex-shrink:3}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.control-and-scope{position:relative;display:flex;cursor:pointer;touch-action:none}.scope{pointer-events:none;position:absolute;z-index:var(--calcite-app-z-index);block-size:1px;inline-size:1px;border-radius:9999px;background-color:transparent;font-size:var(--calcite-font-size--1);outline-color:transparent}.scope:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );outline-offset:11px}.hex-and-channels-group{inline-size:100%}.hex-and-channels-group,.control-section{display:flex;flex-direction:row;flex-wrap:wrap}.section{padding-block:0 var(--calcite-color-picker-spacing);padding-inline:var(--calcite-color-picker-spacing)}.section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}.sliders{display:flex;flex-direction:column;justify-content:space-between;margin-inline-start:var(--calcite-color-picker-spacing)}.preview-and-sliders{display:flex;align-items:center;padding:var(--calcite-color-picker-spacing)}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;color:var(--calcite-ui-text-1)}.color-mode-container{padding-block-start:var(--calcite-color-picker-spacing)}.channels{display:flex;row-gap:0.125rem}.channel[data-channel-index="3"]{inline-size:159px}:host([scale=s]) .channels{flex-wrap:wrap}:host([scale=s]) .channel{flex-basis:30%;flex-grow:1}:host([scale=s]) .channel[data-channel-index="3"]{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .channel[data-channel-index="3"]{inline-size:131px}.saved-colors{display:grid;gap:0.5rem;padding-block-start:var(--calcite-color-picker-spacing);grid-template-columns:repeat(auto-fill, 24px)}.saved-colors-buttons{display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}';const Ct=lt(),Mt=class{constructor(i){t(this,i),this.calciteColorPickerHexInputChange=e(this,"calciteColorPickerHexInputChange",6),this.onHexInputBlur=()=>{const t=this.hexInputNode,e=t.value,i=`#${e}`,{allowEmpty:s,internalColor:n}=this,r=s&&!e,a=k(i);this.onHexInputChange(),r||x(i)&&a||(t.value=s&&!n?"":this.formatHexForInternalInput(C(n.object())))},this.onOpacityInputBlur=()=>{const t=this.opacityInputNode,e=t.value,{allowEmpty:i,internalColor:s}=this;i&&!e||(t.value=i&&!s?"":this.formatOpacityForInternalInput(s))},this.onHexInputChange=()=>{let t=this.hexInputNode.value;if(t){const e=c(t,!1);x(e)&&this.alphaChannel&&this.internalColor&&(t=`${e+c(this.internalColor.hexa(),!0).slice(-2)}`)}this.internalSetValue(t,this.value)},this.onOpacityInputChange=()=>{const t=this.opacityInputNode;let e;if(t.value){const i=d(Number(t.value));e=this.internalColor?.alpha(i).hexa()}else e=t.value;this.internalSetValue(e,this.value)},this.onInputKeyDown=t=>{const{altKey:e,ctrlKey:i,metaKey:s,shiftKey:n}=t,{alphaChannel:r,hexInputNode:a,internalColor:o,value:l}=this,{key:h}=t,c=t.composedPath();if("Tab"===h||"Enter"===h)return c.includes(a)?this.onHexInputChange():this.onOpacityInputChange(),void("Enter"===h&&t.preventDefault());const d=this.value;if("ArrowDown"===h||"ArrowUp"===h)return l?(this.internalSetValue(u(this.nudgeRGBChannels(o,(n?10:1)*("ArrowUp"===h?1:-1),c.includes(a)?"rgb":"a"),r),d),void t.preventDefault()):(this.internalSetValue(this.previousNonNullValue,d),void t.preventDefault());const p=e||i||s,f=1===h.length,g=M.test(h);!f||p||g||t.preventDefault()},this.onHexInputPaste=t=>{const e=t.clipboardData.getData("text");x(e)&&(t.preventDefault(),this.hexInputNode.value=e.slice(1))},this.previousNonNullValue=this.value,this.storeHexInputRef=t=>{this.hexInputNode=t},this.storeOpacityInputRef=t=>{this.opacityInputNode=t},this.allowEmpty=!1,this.alphaChannel=!1,this.hexLabel="Hex",this.messages=void 0,this.numberingSystem=void 0,this.scale="m",this.value=c(u(Ct,this.alphaChannel),this.alphaChannel,!0),this.internalColor=Ct}connectedCallback(){const{allowEmpty:t,alphaChannel:e,value:i}=this;if(i){const t=c(i,e);x(t,e)&&this.internalSetValue(t,t,!1)}else t&&this.internalSetValue(null,null,!1)}componentWillLoad(){O(this)}componentDidLoad(){$(this)}handleValueChange(t,e){this.internalSetValue(t,e,!1)}render(){const{alphaChannel:t,hexLabel:e,internalColor:s,messages:n,scale:r,value:a}=this,o=this.formatHexForInternalInput(a),l=this.formatOpacityForInternalInput(s),h="l"===r?"m":"s";return i("div",{class:"container"},i("calcite-input-text",{class:"hex-input",label:n?.hex||e,maxLength:6,onCalciteInputTextChange:this.onHexInputChange,onCalciteInternalInputTextBlur:this.onHexInputBlur,onKeyDown:this.onInputKeyDown,onPaste:this.onHexInputPaste,prefixText:"#",scale:h,value:o,ref:this.storeHexInputRef}),t?i("calcite-input-number",{class:"opacity-input",key:"opacity-input",label:n?.opacity,max:vt,maxLength:3,min:0,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberChange:this.onOpacityInputChange,onCalciteInternalInputNumberBlur:this.onOpacityInputBlur,onKeyDown:this.onInputKeyDown,scale:h,suffixText:"%",value:l,ref:this.storeOpacityInputRef}):null)}async setFocus(){return await F(this),o(this.hexInputNode)}internalSetValue(t,e,i=!0){if(t){const{alphaChannel:e}=this,s=c(t,e,e);if(x(s,e)){const{internalColor:t}=this,n=lt(s),r=c(u(n,e),e),a=!t||r!==c(u(t,e),e);return this.internalColor=n,this.previousNonNullValue=r,this.value=r,void(a&&i&&this.calciteColorPickerHexInputChange.emit())}}else if(this.allowEmpty)return this.internalColor=null,this.value=null,void(i&&this.calciteColorPickerHexInputChange.emit());this.value=e}formatHexForInternalInput(t){return t?t.replace("#","").slice(0,6):""}formatOpacityForInternalInput(t){return t?`${p(t.alpha())}`:""}nudgeRGBChannels(t,e,i){let s;const n=t.array(),r=n.slice(0,3);if("rgb"===i)s=[...r.map((t=>t+e)),this.alphaChannel?n[3]:void 0];else{const i=d(p(t.alpha())+e);s=[...r,i]}return lt(s)}get el(){return s(this)}static get watchers(){return{value:["handleValueChange"]}}};Mt.style=":host{display:block}.container{display:flex;inline-size:100%;flex-wrap:nowrap;align-items:center}.hex-input{flex-grow:1;text-transform:uppercase}.opacity-input{inline-size:68px;margin-inline-start:-1px}:host([scale=s]) .container{flex-wrap:wrap;row-gap:0.125rem}:host([scale=s]) .opacity-input{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .opacity-input{inline-size:88px}:host([hidden]){display:none}[hidden]{display:none}";const jt="checker",At=4,zt=8,St=class{constructor(e){t(this,e),this.active=!1,this.color=void 0,this.scale="m"}handleColorChange(t){this.internalColor=t?lt(t):null}componentWillLoad(){this.handleColorChange(this.color)}render(){return i("svg",{class:{swatch:!0,"swatch--no-color":!this.internalColor},xmlns:"http://www.w3.org/2000/svg"},this.renderSwatch())}renderSwatch(){const{active:t,el:e,internalColor:s}=this,r=t?"100%":"0",a={height:"100%",rx:r,stroke:"light"===l(e)?"rgba(0, 0, 0, 0.3)":"rgba(255, 255, 255, 0.15)","stroke-width":"2",width:"100%"};if(!s)return i(n,null,i("clipPath",{id:"shape"},i("rect",{height:"100%",rx:r,width:"100%"})),i("rect",{"clip-path":`inset(0 round ${r})`,rx:r,...a}),i("line",{"clip-path":"url(#shape)","stroke-width":"3",x1:"100%",x2:"0",y1:"0",y2:"100%"}));const o=s.alpha(),h=u(s),c=u(s,o<1);return i(n,null,i("title",null,c),i("defs",null,i("pattern",{height:zt,id:"checker",patternUnits:"userSpaceOnUse",width:zt,x:"0",y:"0"},i("rect",{class:jt,height:At,width:At,x:"0",y:"0"}),i("rect",{class:jt,height:At,width:At,x:At,y:At}))),i("rect",{fill:"url(#checker)",height:"100%",rx:r,width:"100%"}),i("rect",{fill:h,style:{"clip-path":o<1?"polygon(100% 0, 0 0, 0 100%)":`inset(0 round ${r})`},...a}),o<1?i("rect",{fill:c,key:"opacity-fill",style:{"clip-path":"polygon(100% 0, 100% 100%, 0 100%)"},...a}):null)}get el(){return s(this)}static get watchers(){return{color:["handleColorChange"]}}};St.style=":host{position:relative;display:inline-flex}:host([scale=s]){block-size:1.25rem;inline-size:1.25rem}:host([scale=m]){block-size:1.5rem;inline-size:1.5rem}:host([scale=l]){block-size:2rem;inline-size:2rem}.swatch{overflow:hidden;block-size:inherit;inline-size:inherit}.swatch rect{transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.swatch--no-color rect{fill:var(--calcite-ui-foreground-1)}.swatch--no-color line{stroke:var(--calcite-ui-danger)}.checker{fill:#cacaca}:host([hidden]){display:none}[hidden]{display:none}";export{xt as calcite_color_picker,Mt as calcite_color_picker_hex_input,St as calcite_color_picker_swatch}
|
|
6
|
+
import{r as t,c as e,h as i,a as s,F as n}from"./p-5d0b058c.js";import{i as r,g as a,d as o,j as l}from"./p-d3f5fd02.js";import{C as h,n as c,a as u,o as d,b as p,c as f,p as g,d as b,t as m,e as w,f as y,g as v,j as k,i as x,r as C,k as M}from"./p-04b6baa4.js";import{c as j,d as A,u as z}from"./p-0b6007af.js";import{i as S}from"./p-85087cf1.js";import{c as F,s as O,a as $}from"./p-c778afbe.js";import{c as D,d as I}from"./p-7bf4fbf9.js";import{r as q,c as E,a as N}from"./p-c780089b.js";import{u as L,s as K,c as U,d as P}from"./p-691dec0e.js";import{t as T}from"./p-5d90daca.js";import"./p-9a476249.js";import"./p-2c787541.js";import"./p-6a082e2a.js";import"./p-7cb0e0a4.js";import"./p-b1dbdbad.js";function _(t,e,i){return t(i={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},i.exports),i.exports}var H={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},B=_((function(t){var e=Array.prototype.concat,i=Array.prototype.slice,s=t.exports=function(t){for(var s,n=[],r=0,a=t.length;r<a;r++){var o=t[r];(s=o)&&"string"!=typeof s&&(s instanceof Array||Array.isArray(s)||s.length>=0&&(s.splice instanceof Function||Object.getOwnPropertyDescriptor(s,s.length-1)&&"String"!==s.constructor.name))?n=e.call(n,i.call(o)):n.push(o)}return n};s.wrap=function(t){return function(){return t(s(arguments))}}})),V=_((function(t){var e=Object.hasOwnProperty,i=Object.create(null);for(var s in H)e.call(H,s)&&(i[H[s]]=s);var n=t.exports={to:{},get:{}};function r(t,e,i){return Math.min(Math.max(e,t),i)}function a(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}n.get=function(t){var e,i;switch(t.substring(0,3).toLowerCase()){case"hsl":e=n.get.hsl(t),i="hsl";break;case"hwb":e=n.get.hwb(t),i="hwb";break;default:e=n.get.rgb(t),i="rgb"}return e?{model:i,value:e}:null},n.get.rgb=function(t){if(!t)return null;var i,s,n,a=[0,0,0,1];if(i=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=i[2],i=i[1],s=0;s<3;s++){var o=2*s;a[s]=parseInt(i.slice(o,o+2),16)}n&&(a[3]=parseInt(n,16)/255)}else if(i=t.match(/^#([a-f0-9]{3,4})$/i)){for(n=(i=i[1])[3],s=0;s<3;s++)a[s]=parseInt(i[s]+i[s],16);n&&(a[3]=parseInt(n+n,16)/255)}else if(i=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(s=0;s<3;s++)a[s]=parseInt(i[s+1],0);i[4]&&(a[3]=i[5]?.01*parseFloat(i[4]):parseFloat(i[4]))}else{if(!(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(i=t.match(/^(\w+)$/))?"transparent"===i[1]?[0,0,0,0]:e.call(H,i[1])?((a=H[i[1]])[3]=1,a):null:null;for(s=0;s<3;s++)a[s]=Math.round(2.55*parseFloat(i[s+1]));i[4]&&(a[3]=i[5]?.01*parseFloat(i[4]):parseFloat(i[4]))}for(s=0;s<3;s++)a[s]=r(a[s],0,255);return a[3]=r(a[3],0,1),a},n.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var i=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,r(parseFloat(e[2]),0,100),r(parseFloat(e[3]),0,100),r(isNaN(i)?1:i,0,1)]}return null},n.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var i=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,r(parseFloat(e[2]),0,100),r(parseFloat(e[3]),0,100),r(isNaN(i)?1:i,0,1)]}return null},n.to.hex=function(){var t=B(arguments);return"#"+a(t[0])+a(t[1])+a(t[2])+(t[3]<1?a(Math.round(255*t[3])):"")},n.to.rgb=function(){var t=B(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},n.to.rgb.percent=function(){var t=B(arguments),e=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),s=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+i+"%, "+s+"%)":"rgba("+e+"%, "+i+"%, "+s+"%, "+t[3]+")"},n.to.hsl=function(){var t=B(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},n.to.hwb=function(){var t=B(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},n.to.keyword=function(t){return i[t.slice(0,3)]}})),J={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const R={};for(const t of Object.keys(J))R[J[t]]=t;const X={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var W=X;for(const t of Object.keys(X)){if(!("channels"in X[t]))throw new Error("missing channels property: "+t);if(!("labels"in X[t]))throw new Error("missing channel labels property: "+t);if(X[t].labels.length!==X[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:i}=X[t];delete X[t].channels,delete X[t].labels,Object.defineProperty(X[t],"channels",{value:e}),Object.defineProperty(X[t],"labels",{value:i})}function Y(t,e){return function(i){return e(t(i))}}function G(t,e){const i=[e[t].parent,t];let s=W[e[t].parent][t],n=e[t].parent;for(;e[n].parent;)i.unshift(e[n].parent),s=Y(W[e[n].parent][n],s),n=e[n].parent;return s.conversion=i,s}X.rgb.hsl=function(t){const e=t[0]/255,i=t[1]/255,s=t[2]/255,n=Math.min(e,i,s),r=Math.max(e,i,s),a=r-n;let o,l;r===n?o=0:e===r?o=(i-s)/a:i===r?o=2+(s-e)/a:s===r&&(o=4+(e-i)/a),o=Math.min(60*o,360),o<0&&(o+=360);const h=(n+r)/2;return l=r===n?0:h<=.5?a/(r+n):a/(2-r-n),[o,100*l,100*h]},X.rgb.hsv=function(t){let e,i,s,n,r;const a=t[0]/255,o=t[1]/255,l=t[2]/255,h=Math.max(a,o,l),c=h-Math.min(a,o,l),u=function(t){return(h-t)/6/c+.5};return 0===c?(n=0,r=0):(r=c/h,e=u(a),i=u(o),s=u(l),a===h?n=s-i:o===h?n=1/3+e-s:l===h&&(n=2/3+i-e),n<0?n+=1:n>1&&(n-=1)),[360*n,100*r,100*h]},X.rgb.hwb=function(t){const e=t[0],i=t[1];let s=t[2];const n=X.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(i,s));return s=1-1/255*Math.max(e,Math.max(i,s)),[n,100*r,100*s]},X.rgb.cmyk=function(t){const e=t[0]/255,i=t[1]/255,s=t[2]/255,n=Math.min(1-e,1-i,1-s);return[100*((1-e-n)/(1-n)||0),100*((1-i-n)/(1-n)||0),100*((1-s-n)/(1-n)||0),100*n]},X.rgb.keyword=function(t){const e=R[t];if(e)return e;let i,s=1/0;for(const e of Object.keys(J)){const a=((n=t)[0]-(r=J[e])[0])**2+(n[1]-r[1])**2+(n[2]-r[2])**2;a<s&&(s=a,i=e)}var n,r;return i},X.keyword.rgb=function(t){return J[t]},X.rgb.xyz=function(t){let e=t[0]/255,i=t[1]/255,s=t[2]/255;return e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,[100*(.4124*e+.3576*i+.1805*s),100*(.2126*e+.7152*i+.0722*s),100*(.0193*e+.1192*i+.9505*s)]},X.rgb.lab=function(t){const e=X.rgb.xyz(t);let i=e[0],s=e[1],n=e[2];return i/=95.047,s/=100,n/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*s-16,500*(i-s),200*(s-n)]},X.hsl.rgb=function(t){const e=t[0]/360,i=t[1]/100,s=t[2]/100;let n,r,a;if(0===i)return a=255*s,[a,a,a];n=s<.5?s*(1+i):s+i-s*i;const o=2*s-n,l=[0,0,0];for(let t=0;t<3;t++)r=e+1/3*-(t-1),r<0&&r++,r>1&&r--,a=6*r<1?o+6*(n-o)*r:2*r<1?n:3*r<2?o+(n-o)*(2/3-r)*6:o,l[t]=255*a;return l},X.hsl.hsv=function(t){const e=t[0];let i=t[1]/100,s=t[2]/100,n=i;const r=Math.max(s,.01);return s*=2,i*=s<=1?s:2-s,n*=r<=1?r:2-r,[e,100*(0===s?2*n/(r+n):2*i/(s+i)),(s+i)/2*100]},X.hsv.rgb=function(t){const e=t[0]/60,i=t[1]/100;let s=t[2]/100;const n=Math.floor(e)%6,r=e-Math.floor(e),a=255*s*(1-i),o=255*s*(1-i*r),l=255*s*(1-i*(1-r));switch(s*=255,n){case 0:return[s,l,a];case 1:return[o,s,a];case 2:return[a,s,l];case 3:return[a,o,s];case 4:return[l,a,s];case 5:return[s,a,o]}},X.hsv.hsl=function(t){const e=t[0],i=t[1]/100,s=t[2]/100,n=Math.max(s,.01);let r,a;a=(2-i)*s;const o=(2-i)*n;return r=i*n,r/=o<=1?o:2-o,r=r||0,a/=2,[e,100*r,100*a]},X.hwb.rgb=function(t){const e=t[0]/360;let i=t[1]/100,s=t[2]/100;const n=i+s;let r;n>1&&(i/=n,s/=n);const a=Math.floor(6*e),o=1-s;r=6*e-a,0!=(1&a)&&(r=1-r);const l=i+r*(o-i);let h,c,u;switch(a){default:case 6:case 0:h=o,c=l,u=i;break;case 1:h=l,c=o,u=i;break;case 2:h=i,c=o,u=l;break;case 3:h=i,c=l,u=o;break;case 4:h=l,c=i,u=o;break;case 5:h=o,c=i,u=l}return[255*h,255*c,255*u]},X.cmyk.rgb=function(t){const e=t[1]/100,i=t[2]/100,s=t[3]/100;return[255*(1-Math.min(1,t[0]/100*(1-s)+s)),255*(1-Math.min(1,e*(1-s)+s)),255*(1-Math.min(1,i*(1-s)+s))]},X.xyz.rgb=function(t){const e=t[0]/100,i=t[1]/100,s=t[2]/100;let n,r,a;return n=3.2406*e+-1.5372*i+-.4986*s,r=-.9689*e+1.8758*i+.0415*s,a=.0557*e+-.204*i+1.057*s,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),a=Math.min(Math.max(0,a),1),[255*n,255*r,255*a]},X.xyz.lab=function(t){let e=t[0],i=t[1],s=t[2];return e/=95.047,i/=100,s/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,[116*i-16,500*(e-i),200*(i-s)]},X.lab.xyz=function(t){let e,i,s;i=(t[0]+16)/116,e=t[1]/500+i,s=i-t[2]/200;const n=i**3,r=e**3,a=s**3;return i=n>.008856?n:(i-16/116)/7.787,e=r>.008856?r:(e-16/116)/7.787,s=a>.008856?a:(s-16/116)/7.787,e*=95.047,i*=100,s*=108.883,[e,i,s]},X.lab.lch=function(t){const e=t[0],i=t[1],s=t[2];let n;return n=360*Math.atan2(s,i)/2/Math.PI,n<0&&(n+=360),[e,Math.sqrt(i*i+s*s),n]},X.lch.lab=function(t){const e=t[1],i=t[2]/360*2*Math.PI;return[t[0],e*Math.cos(i),e*Math.sin(i)]},X.rgb.ansi16=function(t,e=null){const[i,s,n]=t;let r=null===e?X.rgb.hsv(t)[2]:e;if(r=Math.round(r/50),0===r)return 30;let a=30+(Math.round(n/255)<<2|Math.round(s/255)<<1|Math.round(i/255));return 2===r&&(a+=60),a},X.hsv.ansi16=function(t){return X.rgb.ansi16(X.hsv.rgb(t),t[2])},X.rgb.ansi256=function(t){const e=t[0],i=t[1],s=t[2];return e===i&&i===s?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(s/255*5)},X.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const i=.5*(1+~~(t>50));return[(1&e)*i*255,(e>>1&1)*i*255,(e>>2&1)*i*255]},X.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;return t-=16,[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},X.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},X.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let i=e[0];3===e[0].length&&(i=i.split("").map((t=>t+t)).join(""));const s=parseInt(i,16);return[s>>16&255,s>>8&255,255&s]},X.rgb.hcg=function(t){const e=t[0]/255,i=t[1]/255,s=t[2]/255,n=Math.max(Math.max(e,i),s),r=Math.min(Math.min(e,i),s),a=n-r;let o,l;return o=a<1?r/(1-a):0,l=a<=0?0:n===e?(i-s)/a%6:n===i?2+(s-e)/a:4+(e-i)/a,l/=6,l%=1,[360*l,100*a,100*o]},X.hsl.hcg=function(t){const e=t[1]/100,i=t[2]/100,s=i<.5?2*e*i:2*e*(1-i);let n=0;return s<1&&(n=(i-.5*s)/(1-s)),[t[0],100*s,100*n]},X.hsv.hcg=function(t){const e=t[2]/100,i=t[1]/100*e;let s=0;return i<1&&(s=(e-i)/(1-i)),[t[0],100*i,100*s]},X.hcg.rgb=function(t){const e=t[1]/100,i=t[2]/100;if(0===e)return[255*i,255*i,255*i];const s=[0,0,0],n=t[0]/360%1*6,r=n%1,a=1-r;let o=0;switch(Math.floor(n)){case 0:s[0]=1,s[1]=r,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=r;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=r,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return o=(1-e)*i,[255*(e*s[0]+o),255*(e*s[1]+o),255*(e*s[2]+o)]},X.hcg.hsv=function(t){const e=t[1]/100,i=e+t[2]/100*(1-e);let s=0;return i>0&&(s=e/i),[t[0],100*s,100*i]},X.hcg.hsl=function(t){const e=t[1]/100,i=t[2]/100*(1-e)+.5*e;let s=0;return i>0&&i<.5?s=e/(2*i):i>=.5&&i<1&&(s=e/(2*(1-i))),[t[0],100*s,100*i]},X.hcg.hwb=function(t){const e=t[1]/100,i=e+t[2]/100*(1-e);return[t[0],100*(i-e),100*(1-i)]},X.hwb.hcg=function(t){const e=1-t[2]/100,i=e-t[1]/100;let s=0;return i<1&&(s=(e-i)/(1-i)),[t[0],100*i,100*s]},X.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},X.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},X.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},X.gray.hsl=function(t){return[0,0,t[0]]},X.gray.hsv=X.gray.hsl,X.gray.hwb=function(t){return[0,100,t[0]]},X.gray.cmyk=function(t){return[0,0,0,t[0]]},X.gray.lab=function(t){return[t[0],0,0]},X.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(i.length)+i},X.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const Q={};Object.keys(W).forEach((t=>{Q[t]={},Object.defineProperty(Q[t],"channels",{value:W[t].channels}),Object.defineProperty(Q[t],"labels",{value:W[t].labels});const e=function(t){const e=function(t){const e=function(){const t={},e=Object.keys(W);for(let i=e.length,s=0;s<i;s++)t[e[s]]={distance:-1,parent:null};return t}(),i=[t];for(e[t].distance=0;i.length;){const t=i.pop(),s=Object.keys(W[t]);for(let n=s.length,r=0;r<n;r++){const n=s[r],a=e[n];-1===a.distance&&(a.distance=e[t].distance+1,a.parent=t,i.unshift(n))}}return e}(t),i={},s=Object.keys(e);for(let t=s.length,n=0;n<t;n++){const t=s[n];null!==e[t].parent&&(i[t]=G(t,e))}return i}(t);Object.keys(e).forEach((i=>{const s=e[i];Q[t][i]=function(t){const e=function(...e){const i=e[0];if(null==i)return i;i.length>1&&(e=i);const s=t(e);if("object"==typeof s)for(let t=s.length,e=0;e<t;e++)s[e]=Math.round(s[e]);return s};return"conversion"in t&&(e.conversion=t.conversion),e}(s),Q[t][i].raw=function(t){const e=function(...e){const i=e[0];return null==i?i:(i.length>1&&(e=i),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(s)}))}));var Z=Q;const tt=["keyword","gray","hex"],et={};for(const t of Object.keys(Z))et[[...Z[t].labels].sort().join("")]=t;const it={};function st(t,e){if(!(this instanceof st))return new st(t,e);if(e&&e in tt&&(e=null),e&&!(e in Z))throw new Error("Unknown model: "+e);let i,s;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof st)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=V.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,s=Z[this.model].channels,this.color=e.value.slice(0,s),this.valpha="number"==typeof e.value[s]?e.value[s]:1}else if(t.length>0){this.model=e||"rgb",s=Z[this.model].channels;const i=Array.prototype.slice.call(t,0,s);this.color=ot(i,s),this.valpha="number"==typeof t[s]?t[s]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const s=e.sort().join("");if(!(s in et))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=et[s];const{labels:n}=Z[this.model],r=[];for(i=0;i<n.length;i++)r.push(t[n[i]]);this.color=ot(r)}if(it[this.model])for(s=Z[this.model].channels,i=0;i<s;i++){const t=it[this.model][i];t&&(this.color[i]=t(this.color[i]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}st.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in V.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const i=1===e.valpha?e.color:[...e.color,this.valpha];return V.to[e.model](i)},percentString(t){const e=this.rgb().round("number"==typeof t?t:1),i=1===e.valpha?e.color:[...e.color,this.valpha];return V.to.rgb.percent(i)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=Z[this.model],{labels:i}=Z[this.model];for(let s=0;s<e;s++)t[i[s]]=this.color[s];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new st([...this.color.map(nt(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new st([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:rt("rgb",0,at(255)),green:rt("rgb",1,at(255)),blue:rt("rgb",2,at(255)),hue:rt(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:rt("hsl",1,at(100)),lightness:rt("hsl",2,at(100)),saturationv:rt("hsv",1,at(100)),value:rt("hsv",2,at(100)),chroma:rt("hcg",1,at(100)),gray:rt("hcg",2,at(100)),white:rt("hwb",1,at(100)),wblack:rt("hwb",2,at(100)),cyan:rt("cmyk",0,at(100)),magenta:rt("cmyk",1,at(100)),yellow:rt("cmyk",2,at(100)),black:rt("cmyk",3,at(100)),x:rt("xyz",0,at(95.047)),y:rt("xyz",1,at(100)),z:rt("xyz",2,at(108.833)),l:rt("lab",0,at(100)),a:rt("lab",1),b:rt("lab",2),keyword(t){return void 0!==t?new st(t):Z[this.model].keyword(this.color)},hex(t){return void 0!==t?new st(t):V.to.hex(this.rgb().round().color)},hexa(t){if(void 0!==t)return new st(t);const e=this.rgb().round().color;let i=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===i.length&&(i="0"+i),V.to.hex(e)+i},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,e=[];for(const[i,s]of t.entries()){const t=s/255;e[i]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return st.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let i=e.color[0];return i=(i+t)%360,i=i<0?360+i:i,e.color[0]=i,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const i=t.rgb(),s=this.rgb(),n=void 0===e?.5:e,r=2*n-1,a=i.alpha()-s.alpha(),o=((r*a==-1?r:(r+a)/(1+r*a))+1)/2,l=1-o;return st.rgb(o*i.red()+l*s.red(),o*i.green()+l*s.green(),o*i.blue()+l*s.blue(),i.alpha()*n+s.alpha()*(1-n))}};for(const t of Object.keys(Z)){if(tt.includes(t))continue;const{channels:e}=Z[t];st.prototype[t]=function(...e){return this.model===t?new st(this):new st(e.length>0?e:[...(i=Z[this.model][t].raw(this.color),Array.isArray(i)?i:[i]),this.valpha],t);var i},st[t]=function(...i){let s=i[0];return"number"==typeof s&&(s=ot(i,e)),new st(s,t)}}function nt(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function rt(t,e,i){t=Array.isArray(t)?t:[t];for(const s of t)(it[s]||(it[s]=[]))[e]=i;return t=t[0],function(s){let n;return void 0!==s?(i&&(s=i(s)),n=this[t](),n.color[e]=s,n):(n=this[t]().color[e],i&&(n=i(n)),n)}}function at(t){return function(e){return Math.max(0,Math.min(t,e))}}function ot(t,e){for(let i=0;i<e;i++)"number"!=typeof t[i]&&(t[i]=0);return t}var lt=st;const ht="channel",ct="control",ut="control-and-scope",dt="scope",pt="section",ft="slider",gt=lt("#007AC2"),bt="calcite-color-",mt={r:255,g:255,b:255},wt={h:360,s:100,v:100},yt=wt.h-1,vt=100,kt={s:{slider:{height:12,width:104},colorField:{height:80,width:160},thumb:{radius:10}},m:{slider:{height:12,width:204},colorField:{height:150,width:272},thumb:{radius:10}},l:{slider:{height:12,width:384},colorField:{height:200,width:464},thumb:{radius:10}}},xt=class{constructor(s){t(this,s),this.calciteColorPickerChange=e(this,"calciteColorPickerChange",6),this.calciteColorPickerInput=e(this,"calciteColorPickerInput",6),this.internalColorUpdateContext=null,this.mode=h.HEX,this.shiftKeyChannelAdjustment=0,this.handleTabActivate=t=>{this.channelMode=t.currentTarget.getAttribute("data-color-mode"),this.updateChannelsFromColor(this.color)},this.handleColorFieldScopeKeyDown=t=>{const{key:e}=t,i={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}};i[e]&&(t.preventDefault(),this.scopeOrientation="ArrowDown"===e||"ArrowUp"===e?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft+i[e].x||0,this.colorFieldScopeTop+i[e].y||0,!1))},this.handleHueScopeKeyDown=t=>{const e=t.shiftKey?10:1,{key:i}=t,s={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1};if(s[i]){t.preventDefault();const n=s[i]*e,r=this.baseColorFieldColor.hue(),a=this.baseColorFieldColor.hue(r+n);this.internalColorSet(a,!1)}},this.handleHexInputChange=t=>{t.stopPropagation();const{allowEmpty:e,color:i}=this,s=t.target.value;!e||s?s!==(i&&c(u(i,f(this.mode))))&&this.internalColorSet(lt(s)):this.internalColorSet(null)},this.handleSavedColorSelect=t=>{this.internalColorSet(lt(t.currentTarget.color))},this.handleChannelInput=t=>{const e=t.currentTarget,i=Number(e.getAttribute("data-channel-index")),s=3===i?vt:"rgb"===this.channelMode?mt[Object.keys(mt)[i]]:wt[Object.keys(wt)[i]];let n;if(this.allowEmpty&&!e.value)n="";else{const t=Number(e.value);n=E(t+this.shiftKeyChannelAdjustment,0,s).toString()}e.value=n},this.handleChannelChange=t=>{const e=t.currentTarget,i=Number(e.getAttribute("data-channel-index")),s=[...this.channels];if(this.allowEmpty&&!e.value)return this.channels=[null,null,null,null],void this.internalColorSet(null);const n=3===i,r=Number(e.value);s[i]=n?d(r):r,this.updateColorFromChannels(s)},this.handleSavedColorKeyDown=t=>{S(t.key)&&(t.preventDefault(),this.handleSavedColorSelect(t))},this.handleColorFieldPointerDown=t=>{if(!r(t))return;const{offsetX:e,offsetY:i}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.colorFieldRenderingContext,bounds:this.colorFieldRenderingContext.canvas.getBoundingClientRect()},this.captureColorFieldColor(e,i),this.colorFieldScopeNode.focus()},this.handleHueSliderPointerDown=t=>{if(!r(t))return;const{offsetX:e}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.hueSliderRenderingContext,bounds:this.hueSliderRenderingContext.canvas.getBoundingClientRect()},this.captureHueSliderColor(e),this.hueScopeNode.focus()},this.handleOpacitySliderPointerDown=t=>{if(!r(t))return;const{offsetX:e}=t;document.addEventListener("pointermove",this.globalPointerMoveHandler),document.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.opacitySliderRenderingContext,bounds:this.opacitySliderRenderingContext.canvas.getBoundingClientRect()},this.captureOpacitySliderValue(e),this.opacityScopeNode.focus()},this.globalPointerUpHandler=t=>{if(!r(t))return;const e=this.activeCanvasInfo;this.activeCanvasInfo=null,this.drawColorControls(),e&&this.calciteColorPickerChange.emit()},this.globalPointerMoveHandler=t=>{const{activeCanvasInfo:e,el:i}=this;if(!i.isConnected||!e)return;const{context:s,bounds:n}=e;let r,a;const{clientX:o,clientY:l}=t;s.canvas.matches(":hover")?(r=o-n.x,a=l-n.y):(r=o<n.x+n.width&&o>n.x?o-n.x:o<n.x?0:n.width,a=l<n.y+n.height&&l>n.y?l-n.y:l<n.y?0:n.height),s===this.colorFieldRenderingContext?this.captureColorFieldColor(r,a,!1):s===this.hueSliderRenderingContext?this.captureHueSliderColor(r):s===this.opacitySliderRenderingContext&&this.captureOpacitySliderValue(r)},this.storeColorFieldScope=t=>{this.colorFieldScopeNode=t},this.storeHueScope=t=>{this.hueScopeNode=t},this.renderChannelsTabTitle=t=>{const{channelMode:e,messages:s}=this;return i("calcite-tab-title",{class:"color-mode","data-color-mode":t,key:t,onCalciteTabsActivate:this.handleTabActivate,selected:t===e},"rgb"===t?s.rgb:s.hsv)},this.renderChannelsTab=t=>{const{allowEmpty:e,channelMode:s,channels:n,messages:r,alphaChannel:o}=this,l=t===s,h="rgb"===t?[r.red,r.green,r.blue]:[r.hue,r.saturation,r.value],c=a(this.el),u=o?n:n.slice(0,3);return i("calcite-tab",{class:ct,key:t,selected:l},i("div",{class:"channels",dir:"ltr"},u.map(((t,i)=>{const s=3===i;return s&&(t=e&&!t?t:p(t)),this.renderChannel(t,i,h[i],c,s?"%":"")}))))},this.renderChannel=(t,e,s,n,r)=>i("calcite-input-number",{class:ht,"data-channel-index":e,dir:n,key:e,label:s,lang:this.effectiveLocale,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberChange:this.handleChannelChange,onCalciteInputNumberInput:this.handleChannelInput,onKeyDown:this.handleKeyDown,scale:"l"===this.scale?"m":"s",style:{marginLeft:e>0&&("s"!==this.scale||!this.alphaChannel||3!==e)?"-1px":""},suffixText:r,value:t?.toString()}),this.deleteColor=()=>{const t=u(this.color,this.alphaChannel);if(!(this.savedColors.indexOf(t)>-1))return;const e=this.savedColors.filter((e=>e!==t));this.savedColors=e,this.storageId&&localStorage.setItem(`${bt}${this.storageId}`,JSON.stringify(e))},this.saveColor=()=>{const t=u(this.color,this.alphaChannel);if(this.savedColors.indexOf(t)>-1)return;const e=[...this.savedColors,t];this.savedColors=e,this.storageId&&localStorage.setItem(`${bt}${this.storageId}`,JSON.stringify(e))},this.drawColorControls=T(((t="all")=>{"all"!==t&&"color-field"!==t||!this.colorFieldRenderingContext||this.drawColorField(),"all"!==t&&"hue-slider"!==t||!this.hueSliderRenderingContext||this.drawHueSlider(),this.alphaChannel&&("all"===t||"opacity-slider"===t)&&this.opacitySliderRenderingContext&&this.drawOpacitySlider()}),16),this.captureColorFieldColor=(t,e,i=!0)=>{const{dimensions:{colorField:{height:s,width:n}}}=this,r=Math.round(wt.s/n*t),a=Math.round(wt.v/s*(s-e));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(r).value(a),i)},this.initColorField=t=>{this.colorFieldRenderingContext=t.getContext("2d"),this.updateCanvasSize("color-field"),this.drawColorControls()},this.initHueSlider=t=>{this.hueSliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("hue-slider"),this.drawHueSlider()},this.initOpacitySlider=t=>{t&&(this.opacitySliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("opacity-slider"),this.drawOpacitySlider())},this.storeOpacityScope=t=>{this.opacityScopeNode=t},this.handleOpacityScopeKeyDown=t=>{const e=t.shiftKey?10:1,{key:i}=t,s={ArrowUp:.01,ArrowRight:.01,ArrowDown:-.01,ArrowLeft:-.01};if(s[i]){t.preventDefault();const n=s[i]*e,r=this.baseColorFieldColor.alpha(),a=this.baseColorFieldColor.alpha(r+n);this.internalColorSet(a,!1)}},this.allowEmpty=!1,this.alphaChannel=!1,this.channelsDisabled=!1,this.color=gt,this.disabled=!1,this.format="auto",this.hideChannels=!1,this.hexDisabled=!1,this.hideHex=!1,this.hideSaved=!1,this.savedDisabled=!1,this.scale="m",this.storageId=void 0,this.messageOverrides=void 0,this.numberingSystem=void 0,this.value=c(u(gt,this.alphaChannel)),this.defaultMessages=void 0,this.channelMode="rgb",this.channels=this.toChannels(gt),this.dimensions=kt.m,this.effectiveLocale="",this.messages=void 0,this.savedColors=[],this.colorFieldScopeTop=void 0,this.colorFieldScopeLeft=void 0,this.hueScopeLeft=void 0,this.opacityScopeLeft=void 0,this.scopeOrientation=void 0}handleAlphaChannelChange(t){const{format:e}=this;t&&"auto"!==e&&!f(e)&&(console.warn(`ignoring alphaChannel as the current format (${e}) does not support alpha`),this.alphaChannel=!1)}handleColorChange(t,e){this.drawColorControls(),this.updateChannelsFromColor(t),this.previousColor=e}handleFormatOrAlphaChannelChange(){this.setMode(this.format),this.internalColorSet(this.color,!1,"internal")}handleScaleChange(t="m"){this.updateDimensions(t),this.updateCanvasSize("all"),this.drawColorControls()}onMessagesChange(){}handleValueChange(t,e){const{allowEmpty:i,format:s}=this;let n=!1;if(!i||t){const i=g(t);if(!i||"auto"!==s&&i!==s)return this.showIncompatibleColorWarning(t,s),void(this.value=e);n=this.mode!==i,this.setMode(i,null===this.internalColorUpdateContext)}const r=this.activeCanvasInfo;if("initial"===this.internalColorUpdateContext)return;if("user-interaction"===this.internalColorUpdateContext)return this.calciteColorPickerInput.emit(),void(r||this.calciteColorPickerChange.emit());const a=i&&!t?null:lt(null!=t&&"object"==typeof t&&f(this.mode)?v(t):t),o=!b(a,this.color);(n||o)&&this.internalColorSet(a,this.alphaChannel&&!(this.mode.endsWith("a")||this.mode.endsWith("a-css")),"internal")}get baseColorFieldColor(){return this.color||this.previousColor||gt}effectiveLocaleChange(){L(this,this.effectiveLocale)}handleChannelKeyUpOrDown(t){this.shiftKeyChannelAdjustment=0;const{key:e}=t;if("ArrowUp"!==e&&"ArrowDown"!==e||!t.composedPath().some((t=>t.classList?.contains(ht))))return;const{shiftKey:i}=t;if(t.preventDefault(),!this.color)return this.internalColorSet(this.previousColor),void t.stopPropagation();this.shiftKeyChannelAdjustment="ArrowUp"===e&&i?9:"ArrowDown"===e&&i?-9:0}async setFocus(){await F(this),this.el.focus()}async componentWillLoad(){O(this);const{allowEmpty:t,color:e,format:i,value:s}=this,n=t&&!s,r=g(s),a=n||"auto"===i&&r||i===r,o=n?null:a?lt(s):e;a||this.showIncompatibleColorWarning(s,i),this.setMode(i,!1),this.internalColorSet(o,!1,"initial"),this.updateDimensions(this.scale);const l=`${bt}${this.storageId}`;this.storageId&&localStorage.getItem(l)&&(this.savedColors=JSON.parse(localStorage.getItem(l))),await K(this)}connectedCallback(){j(this),D(this),U(this)}componentDidLoad(){$(this)}disconnectedCallback(){document.removeEventListener("pointermove",this.globalPointerMoveHandler),document.removeEventListener("pointerup",this.globalPointerUpHandler),A(this),I(this),P(this)}componentDidRender(){z(this)}render(){const{allowEmpty:t,channelsDisabled:e,color:s,colorFieldScopeLeft:n,colorFieldScopeTop:r,dimensions:{slider:{width:a},thumb:{radius:o}},hexDisabled:l,hideChannels:h,hideHex:c,hideSaved:d,hueScopeLeft:f,messages:g,alphaChannel:b,opacityScopeLeft:m,savedColors:w,savedDisabled:y,scale:v,scopeOrientation:k}=this,x=s?u(s,b):null,C=o,M=f??a*gt.hue()/wt.h,j=o,A=m??a*p(gt.alpha())/vt,z=null===s,S="vertical"===k,F=l||c,O=e||h,$=y||d,[D,I]=this.getAdjustedScopePosition(n,r),[q,E]=this.getAdjustedScopePosition(M,C),[N,L]=this.getAdjustedScopePosition(A,j);return i("div",{class:"container"},i("div",{class:ut},i("canvas",{class:"color-field",onPointerDown:this.handleColorFieldPointerDown,ref:this.initColorField}),i("div",{"aria-label":S?g.value:g.saturation,"aria-valuemax":S?wt.v:wt.s,"aria-valuemin":"0","aria-valuenow":(S?s?.saturationv():s?.value())||"0",class:{[dt]:!0,"scope--color-field":!0},onKeyDown:this.handleColorFieldScopeKeyDown,role:"slider",style:{top:`${I||0}px`,left:`${D||0}px`},tabindex:"0",ref:this.storeColorFieldScope})),i("div",{class:"preview-and-sliders"},i("calcite-color-picker-swatch",{class:"preview",color:x,scale:"l"}),i("div",{class:"sliders"},i("div",{class:ut},i("canvas",{class:{[ft]:!0,"hue-slider":!0},onPointerDown:this.handleHueSliderPointerDown,ref:this.initHueSlider}),i("div",{"aria-label":g.hue,"aria-valuemax":wt.h,"aria-valuemin":"0","aria-valuenow":s?.round().hue()||gt.round().hue(),class:{[dt]:!0,"scope--hue":!0},onKeyDown:this.handleHueScopeKeyDown,role:"slider",style:{top:`${E}px`,left:`${q}px`},tabindex:"0",ref:this.storeHueScope})),b?i("div",{class:ut},i("canvas",{class:{[ft]:!0,"opacity-slider":!0},onPointerDown:this.handleOpacitySliderPointerDown,ref:this.initOpacitySlider}),i("div",{"aria-label":g.opacity,"aria-valuemax":vt,"aria-valuemin":0,"aria-valuenow":(s||gt).round().alpha(),class:{[dt]:!0,"scope--opacity":!0},onKeyDown:this.handleOpacityScopeKeyDown,role:"slider",style:{top:`${L}px`,left:`${N}px`},tabindex:"0",ref:this.storeOpacityScope})):null)),F&&O?null:i("div",{class:{"control-section":!0,[pt]:!0}},i("div",{class:"hex-and-channels-group"},F?null:i("div",{class:"color-hex-options"},i("calcite-color-picker-hex-input",{allowEmpty:t,alphaChannel:b,class:ct,messages:g,numberingSystem:this.numberingSystem,onCalciteColorPickerHexInputChange:this.handleHexInputChange,scale:v,value:x})),O?null:i("calcite-tabs",{class:{"color-mode-container":!0,"section--split":!0},scale:"l"===v?"m":"s"},i("calcite-tab-nav",{slot:"title-group"},this.renderChannelsTabTitle("rgb"),this.renderChannelsTabTitle("hsv")),this.renderChannelsTab("rgb"),this.renderChannelsTab("hsv")))),$?null:i("div",{class:{"saved-colors-section":!0,[pt]:!0}},i("div",{class:"header"},i("label",null,g.saved),i("div",{class:"saved-colors-buttons"},i("calcite-button",{appearance:"transparent",class:"delete-color",disabled:z,iconStart:"minus",kind:"neutral",label:g.deleteColor,onClick:this.deleteColor,scale:v,type:"button"}),i("calcite-button",{appearance:"transparent",class:"save-color",disabled:z,iconStart:"plus",kind:"neutral",label:g.saveColor,onClick:this.saveColor,scale:v,type:"button"}))),w.length>0?i("div",{class:"saved-colors"},[...w.map((t=>i("calcite-color-picker-swatch",{class:"saved-color",color:t,key:t,onClick:this.handleSavedColorSelect,onKeyDown:this.handleSavedColorKeyDown,scale:v,tabIndex:0})))]):null))}handleKeyDown(t){"Enter"===t.key&&t.preventDefault()}showIncompatibleColorWarning(t,e){console.warn(`ignoring color value (${t}) as it is not compatible with the current format (${e})`)}setMode(t,e=!0){this.mode=this.ensureCompatibleMode("auto"===t?this.mode:t,e)}ensureCompatibleMode(t,e){const{alphaChannel:i}=this,s=f(t);if(i&&!s){const i=y(t);return e&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}if(!i&&s){const i=m(t);return e&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}return t}captureHueSliderColor(t){const{dimensions:{slider:{width:e}}}=this;this.internalColorSet(this.baseColorFieldColor.hue(yt/e*t),!1)}captureOpacitySliderValue(t){const{dimensions:{slider:{width:e}}}=this,i=d(vt/e*t);this.internalColorSet(this.baseColorFieldColor.alpha(i),!1)}internalColorSet(t,e=!0,i="user-interaction"){e&&b(t,this.color)||(this.internalColorUpdateContext=i,this.color=t,this.value=this.toValue(t),this.internalColorUpdateContext=null)}toValue(t,e=this.mode){if(!t)return null;if(e.includes("hex")){const i=e===h.HEXA;return c(u(t.round(),i),i)}if(e.includes("-css")){const i=t[e.replace("-css","").replace("a","")]().round().string();return(e.endsWith("a")||e.endsWith("a-css"))&&1===t.alpha()?`${i.slice(0,3)}a(${i.slice(4,-1)}, ${t.alpha()})`:i}const i=t[m(e)]().round().object();return e.endsWith("a")?w(i):i}getSliderCapSpacing(){const{dimensions:{slider:{height:t},thumb:{radius:e}}}=this;return 2*e-t}updateDimensions(t="m"){this.dimensions=kt[t]}drawColorField(){const t=this.colorFieldRenderingContext,{dimensions:{colorField:{height:e,width:i}}}=this;t.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).alpha(1).string(),t.fillRect(0,0,i,e);const s=t.createLinearGradient(0,0,i,0);s.addColorStop(0,"rgba(255,255,255,1)"),s.addColorStop(1,"rgba(255,255,255,0)"),t.fillStyle=s,t.fillRect(0,0,i,e);const n=t.createLinearGradient(0,0,0,e);n.addColorStop(0,"rgba(0,0,0,0)"),n.addColorStop(1,"rgba(0,0,0,1)"),t.fillStyle=n,t.fillRect(0,0,i,e),this.drawActiveColorFieldColor()}setCanvasContextSize(t,{height:e,width:i}){if(!t)return;const s=window.devicePixelRatio||1;t.width=i*s,t.height=e*s,t.style.height=`${e}px`,t.style.width=`${i}px`,t.getContext("2d").scale(s,s)}updateCanvasSize(t="all"){const{dimensions:e}=this;"all"!==t&&"color-field"!==t||this.setCanvasContextSize(this.colorFieldRenderingContext?.canvas,e.colorField);const i={width:e.slider.width,height:e.slider.height+2*(e.thumb.radius-e.slider.height/2)};"all"!==t&&"hue-slider"!==t||this.setCanvasContextSize(this.hueSliderRenderingContext?.canvas,i),"all"!==t&&"opacity-slider"!==t||this.setCanvasContextSize(this.opacitySliderRenderingContext?.canvas,i)}drawActiveColorFieldColor(){const{color:t}=this;if(!t)return;const e=t.hsv(),{dimensions:{colorField:{height:i,width:s},thumb:{radius:n}}}=this,r=e.saturationv()/(wt.s/s),a=i-e.value()/(wt.v/i);requestAnimationFrame((()=>{this.colorFieldScopeLeft=r,this.colorFieldScopeTop=a})),this.drawThumb(this.colorFieldRenderingContext,n,r,a,e)}drawThumb(t,e,i,s,n){const r=2*Math.PI;t.beginPath(),t.arc(i,s,e,0,r),t.fillStyle="#fff",t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),t.beginPath(),t.arc(i,s,e-3,0,r),t.fillStyle=n.rgb().alpha(1).string(),t.fill()}drawActiveHueSliderColor(){const{color:t}=this;if(!t)return;const e=t.hsv().saturationv(100).value(100),{dimensions:{slider:{width:i},thumb:{radius:s}}}=this,n=e.hue()/(yt/i),r=s,a=this.getSliderBoundX(n,i,s);requestAnimationFrame((()=>{this.hueScopeLeft=a})),this.drawThumb(this.hueSliderRenderingContext,s,a,r,e)}drawHueSlider(){const t=this.hueSliderRenderingContext,{dimensions:{slider:{height:e,width:i},thumb:{radius:s}}}=this,n=s-e/2,r=t.createLinearGradient(0,0,i,0),a=["red","yellow","lime","cyan","blue","magenta","#ff0004"],o=1/(a.length-1);let l=0;a.forEach((t=>{r.addColorStop(l,lt(t).string()),l+=o})),t.clearRect(0,0,i,e+2*this.getSliderCapSpacing()),this.drawSliderPath(t,e,i,0,n),t.fillStyle=r,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveHueSliderColor()}drawOpacitySlider(){const t=this.opacitySliderRenderingContext,{baseColorFieldColor:e,dimensions:{slider:{height:i,width:s},thumb:{radius:n}}}=this,r=n-i/2;t.clearRect(0,0,s,i+2*this.getSliderCapSpacing());const a=t.createLinearGradient(0,r,s,0),o=e.rgb().alpha(0),l=e.rgb().alpha(.5),h=e.rgb().alpha(1);a.addColorStop(0,o.string()),a.addColorStop(.5,l.string()),a.addColorStop(1,h.string()),this.drawSliderPath(t,i,s,0,r);const c=t.createPattern(this.getCheckeredBackgroundPattern(),"repeat");t.fillStyle=c,t.fill(),t.fillStyle=a,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveOpacitySliderColor()}drawSliderPath(t,e,i,s,n){const r=e/2+1;t.beginPath(),t.moveTo(s+r,n),t.lineTo(s+i-r,n),t.quadraticCurveTo(s+i,n,s+i,n+r),t.lineTo(s+i,n+e-r),t.quadraticCurveTo(s+i,n+e,s+i-r,n+e),t.lineTo(s+r,n+e),t.quadraticCurveTo(s,n+e,s,n+e-r),t.lineTo(s,n+r),t.quadraticCurveTo(s,n,s+r,n),t.closePath()}getCheckeredBackgroundPattern(){if(this.checkerPattern)return this.checkerPattern;const t=document.createElement("canvas");t.width=10,t.height=10;const e=t.getContext("2d");return e.fillStyle="#ccc",e.fillRect(0,0,10,10),e.fillStyle="#fff",e.fillRect(0,0,5,5),e.fillRect(5,5,5,5),this.checkerPattern=t,t}drawActiveOpacitySliderColor(){const{color:t}=this;if(!t)return;const e=t,{dimensions:{slider:{width:i},thumb:{radius:s}}}=this,n=p(e.alpha())/(vt/i),r=s,a=this.getSliderBoundX(n,i,s);requestAnimationFrame((()=>{this.opacityScopeLeft=a})),this.drawThumb(this.opacitySliderRenderingContext,s,a,r,e)}getSliderBoundX(t,e,i){const s=N(t,e,i);return 0===s?t:-1===s?q(t,0,e,i,2*i):q(t,0,e,e-2*i,e-i)}updateColorFromChannels(t){this.internalColorSet(lt(t,this.channelMode))}updateChannelsFromColor(t){this.channels=t?this.toChannels(t):[null,null,null,null]}toChannels(t){const{channelMode:e}=this,i=t[e]().array().map(((t,e)=>3===e?t:Math.floor(t)));return 3===i.length&&i.push(1),i}getAdjustedScopePosition(t,e){return[t-.5,e-.5]}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return s(this)}static get watchers(){return{alphaChannel:["handleAlphaChannelChange","handleFormatOrAlphaChannelChange"],color:["handleColorChange"],format:["handleFormatOrAlphaChannelChange"],scale:["handleScaleChange"],messageOverrides:["onMessagesChange"],value:["handleValueChange"],effectiveLocale:["effectiveLocaleChange"]}}};xt.style=':host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){--calcite-color-picker-spacing:8px}:host([scale=s]) .container{inline-size:160px}:host([scale=s]) .saved-colors{gap:0.25rem;grid-template-columns:repeat(auto-fill, 20px)}:host([scale=m]){--calcite-color-picker-spacing:12px}:host([scale=m]) .container{inline-size:272px}:host([scale=l]){--calcite-color-picker-spacing:16px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{inline-size:464px}:host([scale=l]) .section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, 32px)}:host([scale=l]) .control-section{flex-wrap:nowrap;align-items:baseline;flex-wrap:wrap}:host([scale=l]) .color-hex-options{display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around}:host([scale=l]) .color-mode-container{flex-shrink:3}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.control-and-scope{position:relative;display:flex;cursor:pointer;touch-action:none}.scope{pointer-events:none;position:absolute;z-index:var(--calcite-app-z-index);block-size:1px;inline-size:1px;border-radius:9999px;background-color:transparent;font-size:var(--calcite-font-size--1);outline-color:transparent}.scope:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );outline-offset:11px}.hex-and-channels-group{inline-size:100%}.hex-and-channels-group,.control-section{display:flex;flex-direction:row;flex-wrap:wrap}.section{padding-block:0 var(--calcite-color-picker-spacing);padding-inline:var(--calcite-color-picker-spacing)}.section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}.sliders{display:flex;flex-direction:column;justify-content:space-between;margin-inline-start:var(--calcite-color-picker-spacing)}.preview-and-sliders{display:flex;align-items:center;padding:var(--calcite-color-picker-spacing)}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;color:var(--calcite-ui-text-1)}.color-mode-container{padding-block-start:var(--calcite-color-picker-spacing)}.channels{display:flex;row-gap:0.125rem}.channel[data-channel-index="3"]{inline-size:159px}:host([scale=s]) .channels{flex-wrap:wrap}:host([scale=s]) .channel{flex-basis:30%;flex-grow:1}:host([scale=s]) .channel[data-channel-index="3"]{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .channel[data-channel-index="3"]{inline-size:131px}.saved-colors{display:grid;gap:0.5rem;padding-block-start:var(--calcite-color-picker-spacing);grid-template-columns:repeat(auto-fill, 24px)}.saved-colors-buttons{display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}';const Ct=lt(),Mt=class{constructor(i){t(this,i),this.calciteColorPickerHexInputChange=e(this,"calciteColorPickerHexInputChange",6),this.onHexInputBlur=()=>{const t=this.hexInputNode,e=t.value,i=`#${e}`,{allowEmpty:s,internalColor:n}=this,r=s&&!e,a=k(i);this.onHexInputChange(),r||x(i)&&a||(t.value=s&&!n?"":this.formatHexForInternalInput(C(n.object())))},this.onOpacityInputBlur=()=>{const t=this.opacityInputNode,e=t.value,{allowEmpty:i,internalColor:s}=this;i&&!e||(t.value=i&&!s?"":this.formatOpacityForInternalInput(s))},this.onHexInputChange=()=>{let t=this.hexInputNode.value;if(t){const e=c(t,!1);x(e)&&this.alphaChannel&&this.internalColor&&(t=`${e+c(this.internalColor.hexa(),!0).slice(-2)}`)}this.internalSetValue(t,this.value)},this.onOpacityInputChange=()=>{const t=this.opacityInputNode;let e;if(t.value){const i=d(Number(t.value));e=this.internalColor?.alpha(i).hexa()}else e=t.value;this.internalSetValue(e,this.value)},this.onInputKeyDown=t=>{const{altKey:e,ctrlKey:i,metaKey:s,shiftKey:n}=t,{alphaChannel:r,hexInputNode:a,internalColor:o,value:l}=this,{key:h}=t,c=t.composedPath();if("Tab"===h||"Enter"===h)return c.includes(a)?this.onHexInputChange():this.onOpacityInputChange(),void("Enter"===h&&t.preventDefault());const d=this.value;if("ArrowDown"===h||"ArrowUp"===h)return l?(this.internalSetValue(u(this.nudgeRGBChannels(o,(n?10:1)*("ArrowUp"===h?1:-1),c.includes(a)?"rgb":"a"),r),d),void t.preventDefault()):(this.internalSetValue(this.previousNonNullValue,d),void t.preventDefault());const p=e||i||s,f=1===h.length,g=M.test(h);!f||p||g||t.preventDefault()},this.onHexInputPaste=t=>{const e=t.clipboardData.getData("text");x(e)&&(t.preventDefault(),this.hexInputNode.value=e.slice(1))},this.previousNonNullValue=this.value,this.storeHexInputRef=t=>{this.hexInputNode=t},this.storeOpacityInputRef=t=>{this.opacityInputNode=t},this.allowEmpty=!1,this.alphaChannel=!1,this.hexLabel="Hex",this.messages=void 0,this.numberingSystem=void 0,this.scale="m",this.value=c(u(Ct,this.alphaChannel),this.alphaChannel,!0),this.internalColor=Ct}connectedCallback(){const{allowEmpty:t,alphaChannel:e,value:i}=this;if(i){const t=c(i,e);x(t,e)&&this.internalSetValue(t,t,!1)}else t&&this.internalSetValue(null,null,!1)}componentWillLoad(){O(this)}componentDidLoad(){$(this)}handleValueChange(t,e){this.internalSetValue(t,e,!1)}render(){const{alphaChannel:t,hexLabel:e,internalColor:s,messages:n,scale:r,value:a}=this,o=this.formatHexForInternalInput(a),l=this.formatOpacityForInternalInput(s),h="l"===r?"m":"s";return i("div",{class:"container"},i("calcite-input-text",{class:"hex-input",label:n?.hex||e,maxLength:6,onCalciteInputTextChange:this.onHexInputChange,onCalciteInternalInputTextBlur:this.onHexInputBlur,onKeyDown:this.onInputKeyDown,onPaste:this.onHexInputPaste,prefixText:"#",scale:h,value:o,ref:this.storeHexInputRef}),t?i("calcite-input-number",{class:"opacity-input",key:"opacity-input",label:n?.opacity,max:vt,maxLength:3,min:0,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberChange:this.onOpacityInputChange,onCalciteInternalInputNumberBlur:this.onOpacityInputBlur,onKeyDown:this.onInputKeyDown,scale:h,suffixText:"%",value:l,ref:this.storeOpacityInputRef}):null)}async setFocus(){return await F(this),o(this.hexInputNode)}internalSetValue(t,e,i=!0){if(t){const{alphaChannel:e}=this,s=c(t,e,e);if(x(s,e)){const{internalColor:t}=this,n=lt(s),r=c(u(n,e),e),a=!t||r!==c(u(t,e),e);return this.internalColor=n,this.previousNonNullValue=r,this.value=r,void(a&&i&&this.calciteColorPickerHexInputChange.emit())}}else if(this.allowEmpty)return this.internalColor=null,this.value=null,void(i&&this.calciteColorPickerHexInputChange.emit());this.value=e}formatHexForInternalInput(t){return t?t.replace("#","").slice(0,6):""}formatOpacityForInternalInput(t){return t?`${p(t.alpha())}`:""}nudgeRGBChannels(t,e,i){let s;const n=t.array(),r=n.slice(0,3);if("rgb"===i)s=[...r.map((t=>t+e)),this.alphaChannel?n[3]:void 0];else{const i=d(p(t.alpha())+e);s=[...r,i]}return lt(s)}get el(){return s(this)}static get watchers(){return{value:["handleValueChange"]}}};Mt.style=":host{display:block}.container{display:flex;inline-size:100%;flex-wrap:nowrap;align-items:center}.hex-input{flex-grow:1;text-transform:uppercase}.opacity-input{inline-size:68px;margin-inline-start:-1px}:host([scale=s]) .container{flex-wrap:wrap;row-gap:0.125rem}:host([scale=s]) .opacity-input{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .opacity-input{inline-size:88px}:host([hidden]){display:none}[hidden]{display:none}";const jt="checker",At=4,zt=8,St=class{constructor(e){t(this,e),this.active=!1,this.color=void 0,this.scale="m"}handleColorChange(t){this.internalColor=t?lt(t):null}componentWillLoad(){this.handleColorChange(this.color)}render(){return i("svg",{class:{swatch:!0,"swatch--no-color":!this.internalColor},xmlns:"http://www.w3.org/2000/svg"},this.renderSwatch())}renderSwatch(){const{active:t,el:e,internalColor:s}=this,r=t?"100%":"0",a={height:"100%",rx:r,stroke:"light"===l(e)?"rgba(0, 0, 0, 0.3)":"rgba(255, 255, 255, 0.15)","stroke-width":"2",width:"100%"};if(!s)return i(n,null,i("clipPath",{id:"shape"},i("rect",{height:"100%",rx:r,width:"100%"})),i("rect",{"clip-path":`inset(0 round ${r})`,rx:r,...a}),i("line",{"clip-path":"url(#shape)","stroke-width":"3",x1:"100%",x2:"0",y1:"0",y2:"100%"}));const o=s.alpha(),h=u(s),c=u(s,o<1);return i(n,null,i("title",null,c),i("defs",null,i("pattern",{height:zt,id:"checker",patternUnits:"userSpaceOnUse",width:zt,x:"0",y:"0"},i("rect",{class:jt,height:At,width:At,x:"0",y:"0"}),i("rect",{class:jt,height:At,width:At,x:At,y:At}))),i("rect",{fill:"url(#checker)",height:"100%",rx:r,width:"100%"}),i("rect",{fill:h,style:{"clip-path":o<1?"polygon(100% 0, 0 0, 0 100%)":`inset(0 round ${r})`},...a}),o<1?i("rect",{fill:c,key:"opacity-fill",style:{"clip-path":"polygon(100% 0, 100% 100%, 0 100%)"},...a}):null)}get el(){return s(this)}static get watchers(){return{color:["handleColorChange"]}}};St.style=":host{position:relative;display:inline-flex}:host([scale=s]){block-size:1.25rem;inline-size:1.25rem}:host([scale=m]){block-size:1.5rem;inline-size:1.5rem}:host([scale=l]){block-size:2rem;inline-size:2rem}.swatch{overflow:hidden;block-size:inherit;inline-size:inherit}.swatch rect{transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.swatch--no-color rect{fill:var(--calcite-ui-foreground-1)}.swatch--no-color line{stroke:var(--calcite-ui-danger)}.checker{fill:#cacaca}:host([hidden]){display:none}[hidden]{display:none}";export{xt as calcite_color_picker,Mt as calcite_color_picker_hex_input,St as calcite_color_picker_swatch}
|
|
@@ -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-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v1.8.0-next.
|
|
4
|
+
* v1.8.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as s,a as e,H as a}from"./p-185bc5dd.js";import{c as o,u as r,d as n}from"./p-e5fedd4b.js";import{s as h,a as c,c as l}from"./p-19980bcd.js";import{c as d,d as u}from"./p-81e1ef08.js";import{c as p}from"./p-a71d7284.js";import{u as m,c as v,s as w,d as b}from"./p-6c9a6e69.js";import{g as f,m as g,d as x,a as y,s as k,h as L,b as j,c as C,k as I,e as D,i as z,f as H,j as A,l as F,n as S,r as R,o as B,p as U,q as _,t as E,L as M,I as O,C as V,S as q}from"./p-e9b614a4.js";import{d as K,a as T,c as W}from"./p-b109376d.js";import{d as P,h as $}from"./p-53f68583.js";import{c as G,d as J}from"./p-4354e9d4.js";import{g as N}from"./p-3b25f9af.js";import"./p-5aae88ad.js";import"./p-992d6edc.js";import"./p-26a607bc.js";import"./p-49c010d6.js";import"./p-3b7d1d44.js";var Q;function X(t,i,s){const{items:e,messages:a}=s,o=e.length,r=f(s,t)+1;return function(t,i,s,e){return t.replace("{position}",s.toString()).replace("{itemLabel}",i).replace("{total}",e.toString())}("idle"===i?a.dragHandleIdle:"active"===i?a.dragHandleActive:"change"===i?a.dragHandleChange:a.dragHandleCommit,t.label,r,o)}function Y(t){return{handle:t.composedPath().find((t=>void 0!==t.dataset?.jsHandle)),item:t.composedPath().find((t=>"calcite-value-list-item"===t.tagName?.toLowerCase()))}}!function(t){t.grip="grip"}(Q||(Q={}));const Z=class{constructor(s){t(this,s),this.calciteListChange=i(this,"calciteListChange",6),this.calciteListOrderChange=i(this,"calciteListOrderChange",6),this.calciteListFilter=i(this,"calciteListFilter",6),this.lastSelectedItem=null,this.mutationObserver=p("mutation",g.bind(this)),this.handleSelector=".handle",this.dragSelector="calcite-value-list-item",this.setFilterEl=t=>{this.filterEl=t},this.setFilteredItems=t=>{this.filteredItems=t},this.deselectRemovedItems=x.bind(this),this.deselectSiblingItems=y.bind(this),this.selectSiblings=k.bind(this),this.handleFilter=L.bind(this),this.handleFilterEvent=j.bind(this),this.getItemData=C.bind(this),this.keyDownHandler=t=>{if(t.defaultPrevented)return;const{handle:i,item:s}=Y(t);if(i&&!s.handleActivated&&" "===t.key&&this.updateScreenReaderText(X(s,"commit",this)),!i||!s.handleActivated)return void I.call(this,t);t.preventDefault();const{items:e}=this;if(" "===t.key&&this.updateScreenReaderText(X(s,"active",this)),"ArrowUp"!==t.key&&"ArrowDown"!==t.key||e.length<=1)return;const{el:a}=this,o=D(this,s,"ArrowUp"===t.key?"up":"down");if(o===e.length-1)a.appendChild(s);else{const t=a.children[o];a.insertBefore(s,t===s.nextElementSibling?t.nextElementSibling:t)}this.items=this.getItems(),this.calciteListOrderChange.emit(this.items.map((({value:t})=>t))),requestAnimationFrame((()=>P(i))),s.handleActivated=!0,this.updateHandleAriaLabel(i,X(s,"change",this))},this.storeAssistiveEl=t=>{this.assistiveTextEl=t},this.handleFocusIn=t=>{const{handle:i,item:s}=Y(t);!s?.handleActivated&&s&&i&&this.updateHandleAriaLabel(i,X(s,"idle",this))},this.disabled=!1,this.canPull=void 0,this.canPut=void 0,this.dragEnabled=!1,this.filteredItems=[],this.filteredData=[],this.filterEnabled=!1,this.filterPlaceholder=void 0,this.filterText=void 0,this.group=void 0,this.loading=!1,this.multiple=!1,this.selectionFollowsFocus=!1,this.messageOverrides=void 0,this.messages=void 0,this.dataForFilter=[],this.defaultMessages=void 0,this.effectiveLocale="",this.selectedValues=new Map}onMessagesChange(){}effectiveLocaleChange(){m(this,this.effectiveLocale)}connectedCallback(){K(this)||(o(this),d(this),v(this),z.call(this),H.call(this),this.setUpSorting())}async componentWillLoad(){h(this),await w(this)}componentDidLoad(){c(this),A.call(this)}componentDidRender(){r(this)}disconnectedCallback(){K(this)||(n(this),T(this),u(this),b(this),F.call(this))}calciteListFocusOutHandler(t){S.call(this,t)}calciteListItemRemoveHandler(t){R.call(this,t)}calciteListItemChangeHandler(t){B.call(this,t)}calciteInternalListItemPropsChangeHandler(t){t.stopPropagation(),this.setUpFilter()}calciteInternalListItemValueChangeHandler(t){U.call(this,t),t.stopPropagation()}onDragStart(){F.call(this)}onDragEnd(){H.call(this)}onDragSort(){this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item"));const t=this.items.map((t=>t.value));this.calciteListOrderChange.emit(t)}getItems(){return Array.from(this.el.querySelectorAll("calcite-value-list-item"))}setUpItems(){_.call(this,"calcite-value-list-item"),this.setUpSorting()}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}setUpSorting(){const{dragEnabled:t}=this;t&&W(this)}handleBlur(){this.dragEnabled&&this.updateScreenReaderText("")}async getSelectedItems(){return this.selectedValues}async setFocus(t){return await l(this),E.call(this,t)}getIconType(){let t=null;return this.dragEnabled&&(t=Q.grip),t}updateScreenReaderText(t){this.assistiveTextEl.textContent=t}updateHandleAriaLabel(t,i){t.ariaLabel=i}handleValueListItemBlur(t){const{item:i,handle:s}=t.detail;!i?.handleActivated&&i&&this.updateHandleAriaLabel(s,X(i,"idle",this)),t.stopPropagation()}render(){return s(M,{onBlur:this.handleBlur,onFocusin:this.handleFocusIn,onKeyDown:this.keyDownHandler,props:this})}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};Z.style=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;box-sizing:border-box;display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{box-sizing:border-box}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}calcite-value-list-item:last-of-type{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header{margin-block-end:0.25rem;display:flex;align-items:center;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);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:sticky;inset-block-start:0px;z-index:var(--calcite-app-z-index-sticky)}calcite-filter{margin-block-end:1px}.assistive-text{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}:host([hidden]){display:none}[hidden]{display:none}";const tt="actions-end",it="actions-start",st=class{constructor(s){t(this,s),this.calciteListItemChange=i(this,"calciteListItemChange",6),this.calciteListItemRemove=i(this,"calciteListItemRemove",7),this.calciteValueListItemDragHandleBlur=i(this,"calciteValueListItemDragHandleBlur",6),this.pickListItem=null,this.guid=`calcite-value-list-item-${N()}`,this.getPickListRef=t=>this.pickListItem=t,this.handleKeyDown=t=>{" "===t.key&&(this.handleActivated=!this.handleActivated)},this.handleBlur=()=>{this.handleActivated=!1,this.calciteValueListItemDragHandleBlur.emit({item:this.el,handle:this.handleEl})},this.handleSelectChange=t=>{this.selected=t.detail.selected},this.description=void 0,this.disabled=!1,this.deselectDisabled=!1,this.nonInteractive=!1,this.handleActivated=!1,this.icon=null,this.iconFlipRtl=!1,this.label=void 0,this.metadata=void 0,this.removable=!1,this.selected=!1,this.value=void 0}connectedCallback(){G(this),o(this)}disconnectedCallback(){J(this),n(this)}componentWillLoad(){h(this)}componentDidLoad(){c(this)}componentDidRender(){r(this,!!this.el.closest("calcite-value-list")&&"managed")}async toggleSelected(t){this.pickListItem.toggleSelected(t)}async setFocus(){return await l(this),this.pickListItem?.setFocus()}calciteListItemChangeHandler(t){t.detail.item=this.el}renderActionsEnd(){const{el:t}=this;return $(t,tt)?s("slot",{name:tt,slot:q.actionsEnd}):null}renderActionsStart(){const{el:t}=this;return $(t,it)?s("slot",{name:it,slot:q.actionsStart}):null}renderHandle(){const{icon:t,iconFlipRtl:i}=this;if(t===O.grip)return s("span",{class:{[V.handle]:!0,[V.handleActivated]:this.handleActivated},"data-js-handle":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>this.handleEl=t,role:"button",tabindex:"0"},s("calcite-icon",{flipRtl:i,icon:"drag",scale:"s"}))}render(){return s(a,{id:this.el.id||this.guid},this.renderHandle(),s("calcite-pick-list-item",{description:this.description,deselectDisabled:this.deselectDisabled,disabled:this.disabled,label:this.label,metadata:this.metadata,nonInteractive:this.nonInteractive,onCalciteListItemChange:this.handleSelectChange,removable:this.removable,selected:this.selected,value:this.value,ref:this.getPickListRef},this.renderActionsStart(),this.renderActionsEnd()))}get el(){return e(this)}};st.style=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{margin-block-end:1px;box-sizing:border-box;display:flex;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition:background-color var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}:host *{box-sizing:border-box}calcite-pick-list-item{position:relative;margin:0px;flex-grow:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([active]),:host([selected]){--tw-shadow:0 0 0 1px var(--calcite-ui-brand);--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.handle{display:flex;cursor:move;align-items:center;justify-content:center;border-style:none;background-color:transparent;padding-block:0px;padding-inline:0.25rem;color:var(--calcite-ui-border-input);outline-color:transparent}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.handle--activated{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}.handle calcite-icon{color:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hidden]){display:none}[hidden]{display:none}";export{Z as calcite_value_list,st as calcite_value_list_item}
|
|
6
|
+
import{r as t,c as i,h as s,a as e,H as a}from"./p-5d0b058c.js";import{c as o,u as r,d as n}from"./p-0b6007af.js";import{s as h,a as c,c as l}from"./p-c778afbe.js";import{c as d,d as u}from"./p-7bf4fbf9.js";import{c as p}from"./p-7cb0e0a4.js";import{u as m,c as v,s as b,d as f}from"./p-691dec0e.js";import{g as w,m as g,d as x,a as y,s as k,h as L,b as j,c as C,k as I,e as D,i as z,f as H,j as A,l as F,n as S,r as R,o as B,p as U,q as _,t as E,L as M,I as O,C as V,S as q}from"./p-6e0af4db.js";import{d as K,a as T,c as W}from"./p-1ad12459.js";import{d as P,h as $}from"./p-d3f5fd02.js";import{c as G,d as J}from"./p-b1c8dfa4.js";import{g as N}from"./p-9a476249.js";import"./p-6a082e2a.js";import"./p-85087cf1.js";import"./p-ddd4d031.js";import"./p-b1dbdbad.js";import"./p-2c787541.js";var Q;function X(t,i,s){const{items:e,messages:a}=s,o=e.length,r=w(s,t)+1;return function(t,i,s,e){return t.replace("{position}",s.toString()).replace("{itemLabel}",i).replace("{total}",e.toString())}("idle"===i?a.dragHandleIdle:"active"===i?a.dragHandleActive:"change"===i?a.dragHandleChange:a.dragHandleCommit,t.label,r,o)}function Y(t){return{handle:t.composedPath().find((t=>void 0!==t.dataset?.jsHandle)),item:t.composedPath().find((t=>"calcite-value-list-item"===t.tagName?.toLowerCase()))}}!function(t){t.grip="grip"}(Q||(Q={}));const Z=class{constructor(s){t(this,s),this.calciteListChange=i(this,"calciteListChange",6),this.calciteListOrderChange=i(this,"calciteListOrderChange",6),this.calciteListFilter=i(this,"calciteListFilter",6),this.lastSelectedItem=null,this.mutationObserver=p("mutation",g.bind(this)),this.handleSelector=".handle",this.dragSelector="calcite-value-list-item",this.setFilterEl=t=>{this.filterEl=t},this.setFilteredItems=t=>{this.filteredItems=t},this.deselectRemovedItems=x.bind(this),this.deselectSiblingItems=y.bind(this),this.selectSiblings=k.bind(this),this.handleFilter=L.bind(this),this.handleFilterEvent=j.bind(this),this.getItemData=C.bind(this),this.keyDownHandler=t=>{if(t.defaultPrevented)return;const{handle:i,item:s}=Y(t);if(i&&!s.handleActivated&&" "===t.key&&this.updateScreenReaderText(X(s,"commit",this)),!i||!s.handleActivated)return void I.call(this,t);t.preventDefault();const{items:e}=this;if(" "===t.key&&this.updateScreenReaderText(X(s,"active",this)),"ArrowUp"!==t.key&&"ArrowDown"!==t.key||e.length<=1)return;const{el:a}=this,o=D(this,s,"ArrowUp"===t.key?"up":"down");if(o===e.length-1)a.appendChild(s);else{const t=a.children[o];a.insertBefore(s,t===s.nextElementSibling?t.nextElementSibling:t)}this.items=this.getItems(),this.calciteListOrderChange.emit(this.items.map((({value:t})=>t))),requestAnimationFrame((()=>P(i))),s.handleActivated=!0,this.updateHandleAriaLabel(i,X(s,"change",this))},this.storeAssistiveEl=t=>{this.assistiveTextEl=t},this.handleFocusIn=t=>{const{handle:i,item:s}=Y(t);!s?.handleActivated&&s&&i&&this.updateHandleAriaLabel(i,X(s,"idle",this))},this.disabled=!1,this.canPull=void 0,this.canPut=void 0,this.dragEnabled=!1,this.filteredItems=[],this.filteredData=[],this.filterEnabled=!1,this.filterPlaceholder=void 0,this.filterText=void 0,this.group=void 0,this.loading=!1,this.multiple=!1,this.selectionFollowsFocus=!1,this.messageOverrides=void 0,this.messages=void 0,this.dataForFilter=[],this.defaultMessages=void 0,this.effectiveLocale="",this.selectedValues=new Map}onMessagesChange(){}effectiveLocaleChange(){m(this,this.effectiveLocale)}connectedCallback(){K(this)||(o(this),d(this),v(this),z.call(this),H.call(this),this.setUpSorting())}async componentWillLoad(){h(this),await b(this)}componentDidLoad(){c(this),A.call(this)}componentDidRender(){r(this)}disconnectedCallback(){K(this)||(n(this),T(this),u(this),f(this),F.call(this))}calciteListFocusOutHandler(t){S.call(this,t)}calciteListItemRemoveHandler(t){R.call(this,t)}calciteListItemChangeHandler(t){B.call(this,t)}calciteInternalListItemPropsChangeHandler(t){t.stopPropagation(),this.setUpFilter()}calciteInternalListItemValueChangeHandler(t){U.call(this,t),t.stopPropagation()}onDragStart(){F.call(this)}onDragEnd(){H.call(this)}onDragSort(){this.items=Array.from(this.el.querySelectorAll("calcite-value-list-item"));const t=this.items.map((t=>t.value));this.calciteListOrderChange.emit(t)}getItems(){return Array.from(this.el.querySelectorAll("calcite-value-list-item"))}setUpItems(){_.call(this,"calcite-value-list-item"),this.setUpSorting()}setUpFilter(){this.filterEnabled&&(this.dataForFilter=this.getItemData())}setUpSorting(){const{dragEnabled:t}=this;t&&W(this)}handleBlur(){this.dragEnabled&&this.updateScreenReaderText("")}async getSelectedItems(){return this.selectedValues}async setFocus(t){return await l(this),E.call(this,t)}getIconType(){let t=null;return this.dragEnabled&&(t=Q.grip),t}updateScreenReaderText(t){this.assistiveTextEl.textContent=t}updateHandleAriaLabel(t,i){t.ariaLabel=i}handleValueListItemBlur(t){const{item:i,handle:s}=t.detail;!i?.handleActivated&&i&&this.updateHandleAriaLabel(s,X(i,"idle",this)),t.stopPropagation()}render(){return s(M,{onBlur:this.handleBlur,onFocusin:this.handleFocusIn,onKeyDown:this.keyDownHandler,props:this})}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};Z.style=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;box-sizing:border-box;display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{box-sizing:border-box}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}calcite-value-list-item:last-of-type{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header{margin-block-end:0.25rem;display:flex;align-items:center;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);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:sticky;inset-block-start:0px;z-index:var(--calcite-app-z-index-sticky)}calcite-filter{margin-block-end:1px}.assistive-text{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}:host([hidden]){display:none}[hidden]{display:none}";const tt="actions-end",it="actions-start",st=class{constructor(s){t(this,s),this.calciteListItemChange=i(this,"calciteListItemChange",6),this.calciteListItemRemove=i(this,"calciteListItemRemove",7),this.calciteValueListItemDragHandleBlur=i(this,"calciteValueListItemDragHandleBlur",6),this.pickListItem=null,this.guid=`calcite-value-list-item-${N()}`,this.getPickListRef=t=>this.pickListItem=t,this.handleKeyDown=t=>{" "===t.key&&(this.handleActivated=!this.handleActivated)},this.handleBlur=()=>{this.handleActivated=!1,this.calciteValueListItemDragHandleBlur.emit({item:this.el,handle:this.handleEl})},this.handleSelectChange=t=>{this.selected=t.detail.selected},this.description=void 0,this.disabled=!1,this.deselectDisabled=!1,this.nonInteractive=!1,this.handleActivated=!1,this.icon=null,this.iconFlipRtl=!1,this.label=void 0,this.metadata=void 0,this.removable=!1,this.selected=!1,this.value=void 0}connectedCallback(){G(this),o(this)}disconnectedCallback(){J(this),n(this)}componentWillLoad(){h(this)}componentDidLoad(){c(this)}componentDidRender(){r(this,!!this.el.closest("calcite-value-list")&&"managed")}async toggleSelected(t){this.pickListItem.toggleSelected(t)}async setFocus(){return await l(this),this.pickListItem?.setFocus()}calciteListItemChangeHandler(t){t.detail.item=this.el}renderActionsEnd(){const{el:t}=this;return $(t,tt)?s("slot",{name:tt,slot:q.actionsEnd}):null}renderActionsStart(){const{el:t}=this;return $(t,it)?s("slot",{name:it,slot:q.actionsStart}):null}renderHandle(){const{icon:t,iconFlipRtl:i}=this;if(t===O.grip)return s("span",{class:{[V.handle]:!0,[V.handleActivated]:this.handleActivated},"data-js-handle":!0,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>this.handleEl=t,role:"button",tabindex:"0"},s("calcite-icon",{flipRtl:i,icon:"drag",scale:"s"}))}render(){return s(a,{id:this.el.id||this.guid},this.renderHandle(),s("calcite-pick-list-item",{description:this.description,deselectDisabled:this.deselectDisabled,disabled:this.disabled,label:this.label,metadata:this.metadata,nonInteractive:this.nonInteractive,onCalciteListItemChange:this.handleSelectChange,removable:this.removable,selected:this.selected,value:this.value,ref:this.getPickListRef},this.renderActionsStart(),this.renderActionsEnd()))}get el(){return e(this)}};st.style=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{margin-block-end:1px;box-sizing:border-box;display:flex;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition:background-color var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}:host *{box-sizing:border-box}calcite-pick-list-item{position:relative;margin:0px;flex-grow:1;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([active]),:host([selected]){--tw-shadow:0 0 0 1px var(--calcite-ui-brand);--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.handle{display:flex;cursor:move;align-items:center;justify-content:center;border-style:none;background-color:transparent;padding-block:0px;padding-inline:0.25rem;color:var(--calcite-ui-border-input);outline-color:transparent}.handle:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.handle:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}.handle--activated{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}.handle calcite-icon{color:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([hidden]){display:none}[hidden]{display:none}";export{Z as calcite_value_list,st as calcite_value_list_item}
|
|
@@ -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-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v1.8.0-next.
|
|
4
|
+
* v1.8.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{h as t}from"./p-
|
|
6
|
+
import{h as t}from"./p-5d0b058c.js";const e={width:12,height:6,strokeWidth:1},i=({floatingLayout:i,key:o,ref:r})=>{const{width:a,height:h,strokeWidth:s}=e,d=a/2,n="vertical"===i,c=`M0,0 H${a} L${a-d},${h} Q${d},${h} ${d},${h} Z`;return t("svg",{"aria-hidden":"true",class:"calcite-floating-ui-arrow",height:a,key:o,ref:r,viewBox:`0 0 ${a} ${a+(n?0:s)}`,width:a+(n?s:0)},s>0&&t("path",{class:"calcite-floating-ui-arrow__stroke",d:c,fill:"none","stroke-width":s+1}),t("path",{d:c,stroke:"none"}))};export{i as F}
|
|
@@ -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-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v1.8.0-next.
|
|
4
|
+
* v1.8.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{r as e,c as t,h as i,a as s,H as o}from"./p-185bc5dd.js";import{l as r,t as n}from"./p-53f68583.js";import{c as a}from"./p-a71d7284.js";import{c,u as l,d as h}from"./p-e5fedd4b.js";import{n as d,c as p,d as m}from"./p-81e1ef08.js";import{s as u,a as b,c as g}from"./p-19980bcd.js";import"./p-3b25f9af.js";import"./p-3b7d1d44.js";import"./p-5aae88ad.js";import"./p-992d6edc.js";const v=class{constructor(i){e(this,i),this.calciteStepperItemChange=t(this,"calciteStepperItemChange",6),this.calciteInternalStepperItemChange=t(this,"calciteInternalStepperItemChange",6),this.itemMap=new Map,this.items=[],this.enabledItems=[],this.mutationObserver=a("mutation",(()=>this.updateItems())),this.icon=!1,this.layout="horizontal",this.numbered=!1,this.scale="m",this.numberingSystem=void 0,this.selectedItem=null}handleItemPropChange(){this.updateItems()}numberingSystemChange(){this.setStepperItemNumberingSystem()}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0}),this.updateItems()}componentDidLoad(){"number"!=typeof this.currentPosition&&this.calciteInternalStepperItemChange.emit({position:0})}render(){return i("slot",{onSlotchange:e=>{const t=e.currentTarget.assignedElements().filter((e=>"CALCITE-STEPPER-ITEM"===e?.tagName)),i=Array(t.length).fill("1fr").join(" ");this.el.style.gridTemplateAreas=i,this.el.style.gridTemplateColumns=i,this.setStepperItemNumberingSystem()}})}calciteInternalStepperItemKeyEvent(e){const t=e.target;switch(e.detail.item.key){case"ArrowDown":case"ArrowRight":r(this.enabledItems,t,"next");break;case"ArrowUp":case"ArrowLeft":r(this.enabledItems,t,"previous");break;case"Home":r(this.enabledItems,t,"first");break;case"End":r(this.enabledItems,t,"last")}e.stopPropagation()}registerItem(e){const t=e.target,{content:i,position:s}=e.detail;this.itemMap.set(t,{position:s,content:i}),this.items=this.sortItems(),this.enabledItems=this.filterItems(),e.stopPropagation()}updateItem(e){const{position:t}=e.detail;"number"==typeof t&&(this.currentPosition=t,this.selectedItem=e.target),this.calciteInternalStepperItemChange.emit({position:t})}handleUserRequestedStepperItemSelect(){this.calciteStepperItemChange.emit()}async nextStep(){const e=this.getEnabledStepIndex(this.currentPosition+1,"next");"number"==typeof e&&this.updateStep(e)}async prevStep(){const e=this.getEnabledStepIndex(this.currentPosition-1,"previous");"number"==typeof e&&this.updateStep(e)}async goToStep(e){const t=e-1;this.currentPosition!==t&&this.updateStep(t)}async startStep(){const e=this.getEnabledStepIndex(0,"next");"number"==typeof e&&this.updateStep(e)}async endStep(){const e=this.getEnabledStepIndex(this.items.length-1,"previous");"number"==typeof e&&this.updateStep(e)}updateItems(){this.el.querySelectorAll("calcite-stepper-item").forEach((e=>{e.icon=this.icon,e.numbered=this.numbered,e.layout=this.layout,e.scale=this.scale}))}getEnabledStepIndex(e,t="next"){const{items:i,currentPosition:s}=this;let o=e;for(;i[o]?.disabled;)o+="previous"===t?-1:1;return o!==s&&o<i.length&&o>=0?o:null}updateStep(e){this.currentPosition=e,this.calciteInternalStepperItemChange.emit({position:e})}sortItems(){const{itemMap:e}=this;return Array.from(e.keys()).sort(((t,i)=>e.get(t).position-e.get(i).position))}filterItems(){return this.items.filter((e=>!e.disabled))}setStepperItemNumberingSystem(){this.items.forEach((e=>{e.numberingSystem=this.numberingSystem}))}get el(){return s(this)}static get watchers(){return{icon:["handleItemPropChange"],layout:["handleItemPropChange"],numbered:["handleItemPropChange"],scale:["handleItemPropChange"],numberingSystem:["numberingSystemChange"]}}};v.style=':host{position:relative;display:flex;inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content;flex-direction:row;flex-wrap:wrap;align-items:stretch;justify-content:space-between}:host([layout=vertical]){flex:1 1 auto;flex-direction:column}:host([layout=horizontal]){display:grid;grid-template-areas:"items" "content"}:host([hidden]){display:none}[hidden]{display:none}';const f=class{constructor(i){e(this,i),this.calciteInternalStepperItemKeyEvent=t(this,"calciteInternalStepperItemKeyEvent",6),this.calciteInternalStepperItemSelect=t(this,"calciteInternalStepperItemSelect",6),this.calciteInternalUserRequestedStepperItemSelect=t(this,"calciteInternalUserRequestedStepperItemSelect",6),this.calciteInternalStepperItemRegister=t(this,"calciteInternalStepperItemRegister",6),this.keyDownHandler=e=>{if(!this.disabled&&e.target===this.el)switch(e.key){case" ":case"Enter":this.emitUserRequestedItem(),e.preventDefault();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.calciteInternalStepperItemKeyEvent.emit({item:e}),e.preventDefault()}},this.handleItemClick=e=>{this.disabled||"horizontal"===this.layout&&e.composedPath().some((e=>e.classList?.contains("stepper-item-content")))||this.emitUserRequestedItem()},this.emitUserRequestedItem=()=>{this.emitRequestedItem(),this.disabled||this.calciteInternalUserRequestedStepperItemSelect.emit({position:this.itemPosition})},this.emitRequestedItem=()=>{this.disabled||this.calciteInternalStepperItemSelect.emit({position:this.itemPosition})},this.selected=!1,this.complete=!1,this.error=!1,this.disabled=!1,this.heading=void 0,this.description=void 0,this.iconFlipRtl=!1,this.numberingSystem=void 0,this.icon=!1,this.layout=void 0,this.numbered=!1,this.scale="m",this.effectiveLocale=""}selectedHandler(){this.selected&&this.emitRequestedItem()}disabledWatcher(){this.registerStepperItem()}effectiveLocaleWatcher(e){d.numberFormatOptions={locale:e,numberingSystem:this.numberingSystem,useGrouping:!1}}connectedCallback(){c(this),p(this)}componentWillLoad(){u(this),this.parentStepperEl=this.el.parentElement,this.itemPosition=this.getItemPosition(),this.registerStepperItem(),this.selected&&this.emitRequestedItem()}componentDidLoad(){b(this)}componentDidRender(){l(this,!0)}disconnectedCallback(){h(this),m(this)}render(){return i(o,{"aria-expanded":n(this.selected),onClick:this.handleItemClick,onKeyDown:this.keyDownHandler},i("div",{class:"container"},i("div",{class:"stepper-item-header",tabIndex:"horizontal"!==this.layout||this.disabled?null:0,ref:e=>this.headerEl=e},this.icon?this.renderIcon():null,this.numbered?i("div",{class:"stepper-item-number"},this.renderNumbers(),"."):null,i("div",{class:"stepper-item-header-text"},i("span",{class:"stepper-item-heading"},this.heading),i("span",{class:"stepper-item-description"},this.description))),i("div",{class:"stepper-item-content"},i("slot",null))))}updateActiveItemOnChange(e){(e.target===this.parentStepperEl||e.composedPath().includes(this.parentStepperEl))&&(this.selectedPosition=e.detail.position,this.determineSelectedItem())}async setFocus(){await g(this),("vertical"===this.layout?this.el:this.headerEl)?.focus()}renderIcon(){return i("calcite-icon",{class:"stepper-item-icon",flipRtl:this.iconFlipRtl,icon:this.selected?"circleF":this.error?"exclamationMarkCircleF":this.complete?"checkCircleF":"circle",scale:"s"})}determineSelectedItem(){this.selected=!this.disabled&&this.itemPosition===this.selectedPosition}registerStepperItem(){this.calciteInternalStepperItemRegister.emit({position:this.itemPosition})}getItemPosition(){return Array.from(this.parentStepperEl?.querySelectorAll("calcite-stepper-item")).indexOf(this.el)}renderNumbers(){return d.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:!1},d.numberFormatter.format(this.itemPosition+1)}get el(){return s(this)}static get watchers(){return{selected:["selectedHandler"],disabled:["disabledWatcher"],effectiveLocale:["effectiveLocaleWatcher"]}}};f.style=":host([layout=horizontal][disabled]) .stepper-item-header,:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([layout=horizontal][disabled]) .stepper-item-header *,:host([disabled]) *,:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),:host([disabled]) ::slotted(*){pointer-events:none}: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;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;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;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:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:flex;flex-grow:1;cursor:pointer;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);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start}:host .stepper-item-content,:host .stepper-item-header{transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:var(--calcite-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-content{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-block-start:1px;display:inline-flex;block-size:0.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}:host .stepper-item-heading{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);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);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([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-ui-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-ui-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-ui-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host([selected]) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([selected]) .container .stepper-item-number{color:var(--calcite-ui-brand)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-ui-brand);opacity:1}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]) .container{margin-inline:0px;margin-block-start:0px;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;padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{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([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-ui-danger)}:host([layout=vertical][selected]) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][selected]) .container .stepper-item-content:not(:empty){margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .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;margin-inline-end:0.5rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal]) .stepper-item-header:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([layout=horizontal]) .stepper-item-content{cursor:auto;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:0;padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal][selected]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][scale=s]) .stepper-item-header{margin-inline-end:0.25rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal][scale=l]) .stepper-item-header{margin-inline-end:0.75rem;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([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .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][selected]) .stepper-item-header{border-color:var(--calcite-ui-brand)}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:rgba(0, 122, 194, 0.5)}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .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([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}:host([hidden]){display:none}[hidden]{display:none}";export{v as calcite_stepper,f as calcite_stepper_item}
|
|
6
|
+
import{r as e,c as t,h as i,a as s,H as o}from"./p-5d0b058c.js";import{l as r,t as n}from"./p-d3f5fd02.js";import{c as a}from"./p-7cb0e0a4.js";import{c,u as l,d as h}from"./p-0b6007af.js";import{n as p,c as d,d as m}from"./p-7bf4fbf9.js";import{s as u,a as b,c as g}from"./p-c778afbe.js";import"./p-9a476249.js";import"./p-2c787541.js";import"./p-6a082e2a.js";import"./p-85087cf1.js";const f=class{constructor(i){e(this,i),this.calciteStepperItemChange=t(this,"calciteStepperItemChange",6),this.calciteInternalStepperItemChange=t(this,"calciteInternalStepperItemChange",6),this.itemMap=new Map,this.items=[],this.enabledItems=[],this.mutationObserver=a("mutation",(()=>this.updateItems())),this.icon=!1,this.layout="horizontal",this.numbered=!1,this.scale="m",this.numberingSystem=void 0,this.selectedItem=null}handleItemPropChange(){this.updateItems()}numberingSystemChange(){this.setStepperItemNumberingSystem()}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0}),this.updateItems()}componentDidLoad(){"number"!=typeof this.currentPosition&&this.calciteInternalStepperItemChange.emit({position:0})}render(){return i("slot",{onSlotchange:e=>{const t=e.currentTarget.assignedElements().filter((e=>"CALCITE-STEPPER-ITEM"===e?.tagName)),i=Array(t.length).fill("1fr").join(" ");this.el.style.gridTemplateAreas=i,this.el.style.gridTemplateColumns=i,this.setStepperItemNumberingSystem()}})}calciteInternalStepperItemKeyEvent(e){const t=e.target;switch(e.detail.item.key){case"ArrowDown":case"ArrowRight":r(this.enabledItems,t,"next");break;case"ArrowUp":case"ArrowLeft":r(this.enabledItems,t,"previous");break;case"Home":r(this.enabledItems,t,"first");break;case"End":r(this.enabledItems,t,"last")}e.stopPropagation()}registerItem(e){const t=e.target,{content:i,position:s}=e.detail;this.itemMap.set(t,{position:s,content:i}),this.items=this.sortItems(),this.enabledItems=this.filterItems(),e.stopPropagation()}updateItem(e){const{position:t}=e.detail;"number"==typeof t&&(this.currentPosition=t,this.selectedItem=e.target),this.calciteInternalStepperItemChange.emit({position:t})}handleUserRequestedStepperItemSelect(){this.calciteStepperItemChange.emit()}async nextStep(){const e=this.getEnabledStepIndex(this.currentPosition+1,"next");"number"==typeof e&&this.updateStep(e)}async prevStep(){const e=this.getEnabledStepIndex(this.currentPosition-1,"previous");"number"==typeof e&&this.updateStep(e)}async goToStep(e){const t=e-1;this.currentPosition!==t&&this.updateStep(t)}async startStep(){const e=this.getEnabledStepIndex(0,"next");"number"==typeof e&&this.updateStep(e)}async endStep(){const e=this.getEnabledStepIndex(this.items.length-1,"previous");"number"==typeof e&&this.updateStep(e)}updateItems(){this.el.querySelectorAll("calcite-stepper-item").forEach((e=>{e.icon=this.icon,e.numbered=this.numbered,e.layout=this.layout,e.scale=this.scale}))}getEnabledStepIndex(e,t="next"){const{items:i,currentPosition:s}=this;let o=e;for(;i[o]?.disabled;)o+="previous"===t?-1:1;return o!==s&&o<i.length&&o>=0?o:null}updateStep(e){this.currentPosition=e,this.calciteInternalStepperItemChange.emit({position:e})}sortItems(){const{itemMap:e}=this;return Array.from(e.keys()).sort(((t,i)=>e.get(t).position-e.get(i).position))}filterItems(){return this.items.filter((e=>!e.disabled))}setStepperItemNumberingSystem(){this.items.forEach((e=>{e.numberingSystem=this.numberingSystem}))}get el(){return s(this)}static get watchers(){return{icon:["handleItemPropChange"],layout:["handleItemPropChange"],numbered:["handleItemPropChange"],scale:["handleItemPropChange"],numberingSystem:["numberingSystemChange"]}}};f.style=':host{position:relative;display:flex;inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content;flex-direction:row;flex-wrap:wrap;align-items:stretch;justify-content:space-between}:host([layout=vertical]){flex:1 1 auto;flex-direction:column}:host([layout=horizontal]){display:grid;grid-template-areas:"items" "content"}:host([hidden]){display:none}[hidden]{display:none}';const v=class{constructor(i){e(this,i),this.calciteInternalStepperItemKeyEvent=t(this,"calciteInternalStepperItemKeyEvent",6),this.calciteInternalStepperItemSelect=t(this,"calciteInternalStepperItemSelect",6),this.calciteInternalUserRequestedStepperItemSelect=t(this,"calciteInternalUserRequestedStepperItemSelect",6),this.calciteInternalStepperItemRegister=t(this,"calciteInternalStepperItemRegister",6),this.keyDownHandler=e=>{if(!this.disabled&&e.target===this.el)switch(e.key){case" ":case"Enter":this.emitUserRequestedItem(),e.preventDefault();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.calciteInternalStepperItemKeyEvent.emit({item:e}),e.preventDefault()}},this.handleItemClick=e=>{this.disabled||"horizontal"===this.layout&&e.composedPath().some((e=>e.classList?.contains("stepper-item-content")))||this.emitUserRequestedItem()},this.emitUserRequestedItem=()=>{this.emitRequestedItem(),this.disabled||this.calciteInternalUserRequestedStepperItemSelect.emit({position:this.itemPosition})},this.emitRequestedItem=()=>{this.disabled||this.calciteInternalStepperItemSelect.emit({position:this.itemPosition})},this.selected=!1,this.complete=!1,this.error=!1,this.disabled=!1,this.heading=void 0,this.description=void 0,this.iconFlipRtl=!1,this.numberingSystem=void 0,this.icon=!1,this.layout=void 0,this.numbered=!1,this.scale="m",this.effectiveLocale=""}selectedHandler(){this.selected&&this.emitRequestedItem()}disabledWatcher(){this.registerStepperItem()}effectiveLocaleWatcher(e){p.numberFormatOptions={locale:e,numberingSystem:this.numberingSystem,useGrouping:!1}}connectedCallback(){c(this),d(this)}componentWillLoad(){u(this),this.parentStepperEl=this.el.parentElement,this.itemPosition=this.getItemPosition(),this.registerStepperItem(),this.selected&&this.emitRequestedItem()}componentDidLoad(){b(this)}componentDidRender(){l(this,!0)}disconnectedCallback(){h(this),m(this)}render(){return i(o,{"aria-expanded":n(this.selected),onClick:this.handleItemClick,onKeyDown:this.keyDownHandler},i("div",{class:"container"},i("div",{class:"stepper-item-header",tabIndex:"horizontal"!==this.layout||this.disabled?null:0,ref:e=>this.headerEl=e},this.icon?this.renderIcon():null,this.numbered?i("div",{class:"stepper-item-number"},this.renderNumbers(),"."):null,i("div",{class:"stepper-item-header-text"},i("span",{class:"stepper-item-heading"},this.heading),i("span",{class:"stepper-item-description"},this.description))),i("div",{class:"stepper-item-content"},i("slot",null))))}updateActiveItemOnChange(e){(e.target===this.parentStepperEl||e.composedPath().includes(this.parentStepperEl))&&(this.selectedPosition=e.detail.position,this.determineSelectedItem())}async setFocus(){await g(this),("vertical"===this.layout?this.el:this.headerEl)?.focus()}renderIcon(){return i("calcite-icon",{class:"stepper-item-icon",flipRtl:this.iconFlipRtl,icon:this.selected?"circleF":this.error?"exclamationMarkCircleF":this.complete?"checkCircleF":"circle",scale:"s"})}determineSelectedItem(){this.selected=!this.disabled&&this.itemPosition===this.selectedPosition}registerStepperItem(){this.calciteInternalStepperItemRegister.emit({position:this.itemPosition})}getItemPosition(){return Array.from(this.parentStepperEl?.querySelectorAll("calcite-stepper-item")).indexOf(this.el)}renderNumbers(){return p.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:!1},p.numberFormatter.format(this.itemPosition+1)}get el(){return s(this)}static get watchers(){return{selected:["selectedHandler"],disabled:["disabledWatcher"],effectiveLocale:["effectiveLocaleWatcher"]}}};v.style=":host([layout=horizontal][disabled]) .stepper-item-header,:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([layout=horizontal][disabled]) .stepper-item-header *,:host([disabled]) *,:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),:host([disabled]) ::slotted(*){pointer-events:none}: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;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;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;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:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:flex;flex-grow:1;cursor:pointer;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);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start}:host .stepper-item-content,:host .stepper-item-header{transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:var(--calcite-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-content{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-block-start:1px;display:inline-flex;block-size:0.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}:host .stepper-item-heading{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);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);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([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-ui-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-ui-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-ui-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-ui-text-1)}:host([selected]) .container .stepper-item-description{color:var(--calcite-ui-text-2)}:host([selected]) .container .stepper-item-number{color:var(--calcite-ui-brand)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-ui-brand);opacity:1}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]) .container{margin-inline:0px;margin-block-start:0px;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;padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{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([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-ui-danger)}:host([layout=vertical][selected]) .container{border-color:var(--calcite-ui-brand)}:host([layout=vertical][selected]) .container .stepper-item-content:not(:empty){margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:rgba(0, 122, 194, 0.5)}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .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;margin-inline-end:0.5rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal]) .stepper-item-header:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([layout=horizontal]) .stepper-item-content{cursor:auto;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:0;padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal][selected]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][scale=s]) .stepper-item-header{margin-inline-end:0.25rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host([layout=horizontal][scale=l]) .stepper-item-header{margin-inline-end:0.75rem;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([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .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][selected]) .stepper-item-header{border-color:var(--calcite-ui-brand)}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:rgba(0, 122, 194, 0.5)}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .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([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}:host([hidden]){display:none}[hidden]{display:none}";export{f as calcite_stepper,v as calcite_stepper_item}
|
|
@@ -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-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v1.8.0-next.
|
|
4
|
+
* v1.8.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{d as e}from"./p-
|
|
6
|
+
import{d as e}from"./p-8ef5c308.js";import"./p-5d0b058c.js";import"./p-066dc809.js";import"./p-d3f5fd02.js";import"./p-9a476249.js";import"./p-2c787541.js";import"./p-0b6007af.js";import"./p-6a082e2a.js";import"./p-85087cf1.js";import"./p-d207058c.js";import"./p-c778afbe.js";import"./p-7bf4fbf9.js";import"./p-7cb0e0a4.js";import"./p-61be360e.js";import"./p-c780089b.js";import"./p-691dec0e.js";var m={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"}};e.locale(m,null,!0);export default m;
|
|
@@ -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-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v1.8.0-next.
|
|
4
|
+
* v1.8.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{r as i,c as t,h as c,a as e,H as o}from"./p-185bc5dd.js";import{c as n}from"./p-a71d7284.js";import{c as a,d as r}from"./p-4354e9d4.js";import{h as s,g as l,t as d,c as h}from"./p-53f68583.js";import{C as p}from"./p-3b7d1d44.js";import"./p-3b25f9af.js";const m=class{constructor(c){i(this,c),this.calciteInternalAccordionChange=t(this,"calciteInternalAccordionChange",6),this.mutationObserver=n("mutation",(()=>this.updateAccordionItems())),this.appearance="solid",this.iconPosition="end",this.iconType="chevron",this.scale="m",this.selectionMode="multiple"}handlePropsChange(){this.updateAccordionItems()}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0}),this.updateAccordionItems()}disconnectedCallback(){this.mutationObserver?.disconnect()}render(){const i="transparent"===this.appearance;return c("div",{class:{"accordion--transparent":i,accordion:!i}},c("slot",null))}updateActiveItemOnChange(i){this.calciteInternalAccordionChange.emit({requestedAccordionItem:i.detail.requestedAccordionItem}),i.stopPropagation()}updateAccordionItems(){this.el.querySelectorAll("calcite-accordion-item").forEach((i=>{i.iconPosition=this.iconPosition,i.iconType=this.iconType,i.scale=this.scale})),document.dispatchEvent(new CustomEvent("calciteInternalAccordionItemsSync"))}get el(){return e(this)}static get watchers(){return{iconPosition:["handlePropsChange"],iconType:["handlePropsChange"],scale:["handlePropsChange"],selectionMode:["handlePropsChange"]}}};m.style=":host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-inline-size:100%;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}.accordion--transparent{--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}.accordion{border-width:1px;border-block-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2)}:host([hidden]){display:none}[hidden]{display:none}";const g="actions-start",u="actions-end",v="section",x="section-toggle",f=class{constructor(c){i(this,c),this.calciteInternalAccordionItemSelect=t(this,"calciteInternalAccordionItemSelect",6),this.calciteInternalAccordionItemClose=t(this,"calciteInternalAccordionItemClose",6),this.itemHeaderClickHandler=()=>this.emitRequestedItem(),this.expanded=!1,this.heading=void 0,this.description=void 0,this.iconStart=void 0,this.iconEnd=void 0,this.iconFlipRtl=void 0,this.iconPosition=void 0,this.iconType=void 0,this.accordionParent=void 0,this.scale=void 0}connectedCallback(){a(this)}disconnectedCallback(){r(this)}renderActionsStart(){const{el:i}=this;return s(i,g)?c("div",{class:"actions-start"},c("slot",{name:g})):null}renderActionsEnd(){const{el:i}=this;return s(i,u)?c("div",{class:"actions-end"},c("slot",{name:u})):null}render(){const{iconFlipRtl:i}=this,t=l(this.el),e=this.iconStart?c("calcite-icon",{class:"icon--start",flipRtl:"both"===i||"start"===i,icon:this.iconStart,key:"icon-start",scale:"l"===this.scale?"m":"s"}):null,n=this.iconEnd?c("calcite-icon",{class:"icon--end",flipRtl:"both"===i||"end"===i,icon:this.iconEnd,key:"icon-end",scale:"l"===this.scale?"m":"s"}):null,{description:a}=this;return c(o,null,c("div",{class:{[`icon-position--${this.iconPosition}`]:!0,[`icon-type--${this.iconType}`]:!0}},c("div",{class:{header:!0,[p.rtl]:"rtl"===t}},this.renderActionsStart(),c("div",{"aria-controls":v,"aria-expanded":d(this.expanded),class:"header-content",id:x,onClick:this.itemHeaderClickHandler,role:"button",tabindex:"0"},c("div",{class:"header-container"},e,c("div",{class:"header-text"},c("span",{class:"heading"},this.heading),a?c("span",{class:"description"},a):null),n),c("calcite-icon",{class:"expand-icon",icon:"chevron"===this.iconType?"chevronDown":"caret"===this.iconType?"caretDown":this.expanded?"minus":"plus",scale:"l"===this.scale?"m":"s"})),this.renderActionsEnd()),c("section",{"aria-labelledby":x,class:"content",id:v},c("slot",null))))}keyDownHandler(i){if(i.target===this.el)switch(i.key){case" ":case"Enter":this.emitRequestedItem(),i.preventDefault()}}updateActiveItemOnChange(i){const[t]=i.composedPath(),c=h(this.el,"calcite-accordion");t===c&&(this.determineActiveItem(c.selectionMode,i.detail.requestedAccordionItem),i.stopPropagation())}accordionItemSyncHandler(i){const[t]=i.composedPath(),c=this.el;if(c.parentElement===t)return;const e=h(c,"calcite-accordion");t===e&&(c.iconPosition=e.iconPosition,c.iconType=e.iconType,c.scale=e.scale,i.stopPropagation())}determineActiveItem(i,t){switch(i){case"multiple":this.el===t&&(this.expanded=!this.expanded);break;case"single":this.expanded=this.el===t&&!this.expanded;break;case"single-persist":this.expanded=this.el===t}}emitRequestedItem(){this.calciteInternalAccordionItemSelect.emit({requestedAccordionItem:this.el})}get el(){return e(this)}};f.style=".icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{position:relative;display:flex;flex-direction:column;color:var(--calcite-ui-text-3);text-decoration-line:none;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .header-content{outline-color:transparent}:host(:focus) .header-content{outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([expanded]){color:var(--calcite-ui-text-1)}:host([expanded]) .content{display:block;color:var(--calcite-ui-text-1)}:host([expanded]) .header{border-block-end-color:transparent}:host .header{display:flex;align-items:stretch}:host .icon{position:relative;margin:0px;display:inline-flex;color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}.icon--start{display:flex;align-items:center;margin-inline-end:var(--calcite-accordion-icon-margin)}.icon--end{display:flex;align-items:center;margin-inline-end:var(--calcite-accordion-icon-margin);margin-inline-start:var(--calcite-accordion-icon-margin)}.header-container{inline-size:100%}.content{padding:var(--calcite-accordion-item-padding)}:host .content,:host .header{border-block-end:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .header *{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);word-wrap:break-word;word-break:break-word}:host .content{display:none;padding-block-start:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .expand-icon{color:var(--calcite-ui-text-3);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .expand-icon{transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1);transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([expanded]) .calcite--rtl .expand-icon{transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .header-text{margin-block:0px;flex-grow:1;flex-direction:column;padding-block:0px;text-align:initial;margin-inline-end:auto}:host .heading,:host .description{display:flex;inline-size:100%}:host .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .description{margin-block-start:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .heading,:host(:hover) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:hover) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:hover) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:hover) .description{color:var(--calcite-ui-text-2)}:host(:focus) .heading,:host(:active) .heading,:host([expanded]) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:active) .icon,:host([expanded]) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:active) .expand-icon,:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:active) .description,:host([expanded]) .description{color:var(--calcite-ui-text-2)}.header-content{flex-grow:1;cursor:pointer;padding:var(--calcite-accordion-item-padding);flex-direction:var(--calcite-accordion-item-flex-direction)}.actions-start,.actions-end{display:flex;align-items:center}@media (forced-colors: active){:host([expanded]) .header{border-block-end:none}:host([expanded]) .heading{font-weight:bolder}:host(:hover) .heading,:host(:focus) .heading{text-decoration:underline}}:host([hidden]){display:none}[hidden]{display:none}";export{m as calcite_accordion,f as calcite_accordion_item}
|
|
6
|
+
import{r as i,c as t,h as c,a as e,H as o}from"./p-5d0b058c.js";import{c as n}from"./p-7cb0e0a4.js";import{c as a,d as r}from"./p-b1c8dfa4.js";import{h as s,g as l,t as d,c as h}from"./p-d3f5fd02.js";import{C as p}from"./p-2c787541.js";import"./p-9a476249.js";const m=class{constructor(c){i(this,c),this.calciteInternalAccordionChange=t(this,"calciteInternalAccordionChange",6),this.mutationObserver=n("mutation",(()=>this.updateAccordionItems())),this.appearance="solid",this.iconPosition="end",this.iconType="chevron",this.scale="m",this.selectionMode="multiple"}handlePropsChange(){this.updateAccordionItems()}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0}),this.updateAccordionItems()}disconnectedCallback(){this.mutationObserver?.disconnect()}render(){const i="transparent"===this.appearance;return c("div",{class:{"accordion--transparent":i,accordion:!i}},c("slot",null))}updateActiveItemOnChange(i){this.calciteInternalAccordionChange.emit({requestedAccordionItem:i.detail.requestedAccordionItem}),i.stopPropagation()}updateAccordionItems(){this.el.querySelectorAll("calcite-accordion-item").forEach((i=>{i.iconPosition=this.iconPosition,i.iconType=this.iconType,i.scale=this.scale})),document.dispatchEvent(new CustomEvent("calciteInternalAccordionItemsSync"))}get el(){return e(this)}static get watchers(){return{iconPosition:["handlePropsChange"],iconType:["handlePropsChange"],scale:["handlePropsChange"],selectionMode:["handlePropsChange"]}}};m.style=":host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-inline-size:100%;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}.accordion--transparent{--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}.accordion{border-width:1px;border-block-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2)}:host([hidden]){display:none}[hidden]{display:none}";const g="actions-start",u="actions-end",v="section",x="section-toggle",f=class{constructor(c){i(this,c),this.calciteInternalAccordionItemSelect=t(this,"calciteInternalAccordionItemSelect",6),this.calciteInternalAccordionItemClose=t(this,"calciteInternalAccordionItemClose",6),this.itemHeaderClickHandler=()=>this.emitRequestedItem(),this.expanded=!1,this.heading=void 0,this.description=void 0,this.iconStart=void 0,this.iconEnd=void 0,this.iconFlipRtl=void 0,this.iconPosition=void 0,this.iconType=void 0,this.accordionParent=void 0,this.scale=void 0}connectedCallback(){a(this)}disconnectedCallback(){r(this)}renderActionsStart(){const{el:i}=this;return s(i,g)?c("div",{class:"actions-start"},c("slot",{name:g})):null}renderActionsEnd(){const{el:i}=this;return s(i,u)?c("div",{class:"actions-end"},c("slot",{name:u})):null}render(){const{iconFlipRtl:i}=this,t=l(this.el),e=this.iconStart?c("calcite-icon",{class:"icon--start",flipRtl:"both"===i||"start"===i,icon:this.iconStart,key:"icon-start",scale:"l"===this.scale?"m":"s"}):null,n=this.iconEnd?c("calcite-icon",{class:"icon--end",flipRtl:"both"===i||"end"===i,icon:this.iconEnd,key:"icon-end",scale:"l"===this.scale?"m":"s"}):null,{description:a}=this;return c(o,null,c("div",{class:{[`icon-position--${this.iconPosition}`]:!0,[`icon-type--${this.iconType}`]:!0}},c("div",{class:{header:!0,[p.rtl]:"rtl"===t}},this.renderActionsStart(),c("div",{"aria-controls":v,"aria-expanded":d(this.expanded),class:"header-content",id:x,onClick:this.itemHeaderClickHandler,role:"button",tabindex:"0"},c("div",{class:"header-container"},e,c("div",{class:"header-text"},c("span",{class:"heading"},this.heading),a?c("span",{class:"description"},a):null),n),c("calcite-icon",{class:"expand-icon",icon:"chevron"===this.iconType?"chevronDown":"caret"===this.iconType?"caretDown":this.expanded?"minus":"plus",scale:"l"===this.scale?"m":"s"})),this.renderActionsEnd()),c("section",{"aria-labelledby":x,class:"content",id:v},c("slot",null))))}keyDownHandler(i){if(i.target===this.el)switch(i.key){case" ":case"Enter":this.emitRequestedItem(),i.preventDefault()}}updateActiveItemOnChange(i){const[t]=i.composedPath(),c=h(this.el,"calcite-accordion");t===c&&(this.determineActiveItem(c.selectionMode,i.detail.requestedAccordionItem),i.stopPropagation())}accordionItemSyncHandler(i){const[t]=i.composedPath(),c=this.el;if(c.parentElement===t)return;const e=h(c,"calcite-accordion");t===e&&(c.iconPosition=e.iconPosition,c.iconType=e.iconType,c.scale=e.scale,i.stopPropagation())}determineActiveItem(i,t){switch(i){case"multiple":this.el===t&&(this.expanded=!this.expanded);break;case"single":this.expanded=this.el===t&&!this.expanded;break;case"single-persist":this.expanded=this.el===t}}emitRequestedItem(){this.calciteInternalAccordionItemSelect.emit({requestedAccordionItem:this.el})}get el(){return e(this)}};f.style=".icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{position:relative;display:flex;flex-direction:column;color:var(--calcite-ui-text-3);text-decoration-line:none;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .header-content{outline-color:transparent}:host(:focus) .header-content{outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}:host([expanded]){color:var(--calcite-ui-text-1)}:host([expanded]) .content{display:block;color:var(--calcite-ui-text-1)}:host([expanded]) .header{border-block-end-color:transparent}:host .header{display:flex;align-items:stretch}:host .icon{position:relative;margin:0px;display:inline-flex;color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}.icon--start{display:flex;align-items:center;margin-inline-end:var(--calcite-accordion-icon-margin)}.icon--end{display:flex;align-items:center;margin-inline-end:var(--calcite-accordion-icon-margin);margin-inline-start:var(--calcite-accordion-icon-margin)}.header-container{inline-size:100%}.content{padding:var(--calcite-accordion-item-padding)}:host .content,:host .header{border-block-end:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .header *{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);word-wrap:break-word;word-break:break-word}:host .content{display:none;padding-block-start:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .expand-icon{color:var(--calcite-ui-text-3);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .expand-icon{transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1);transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([expanded]) .calcite--rtl .expand-icon{transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .header-text{margin-block:0px;flex-grow:1;flex-direction:column;padding-block:0px;text-align:initial;margin-inline-end:auto}:host .heading,:host .description{display:flex;inline-size:100%}:host .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .description{margin-block-start:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .heading,:host(:hover) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:hover) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:hover) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:hover) .description{color:var(--calcite-ui-text-2)}:host(:focus) .heading,:host(:active) .heading,:host([expanded]) .heading{color:var(--calcite-ui-text-1)}:host(:focus) .icon,:host(:active) .icon,:host([expanded]) .icon{color:var(--calcite-ui-text-1)}:host(:focus) .expand-icon,:host(:active) .expand-icon,:host([expanded]) .expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .description,:host(:active) .description,:host([expanded]) .description{color:var(--calcite-ui-text-2)}.header-content{flex-grow:1;cursor:pointer;padding:var(--calcite-accordion-item-padding);flex-direction:var(--calcite-accordion-item-flex-direction)}.actions-start,.actions-end{display:flex;align-items:center}@media (forced-colors: active){:host([expanded]) .header{border-block-end:none}:host([expanded]) .heading{font-weight:bolder}:host(:hover) .heading,:host(:focus) .heading{text-decoration:underline}}:host([hidden]){display:none}[hidden]{display:none}";export{m as calcite_accordion,f as calcite_accordion_item}
|
|
@@ -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-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v1.8.0-next.
|
|
4
|
+
* v1.8.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
const t=()=>[2,1,1,1,3].map((t=>{let e="";for(let r=0;r<t;r++)e+=(65536*(1+Math.random())|0).toString(16).substring(1);return e})).join("-");export{t as g}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v1.8.0-next.
|
|
4
|
+
* v1.8.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{d as e}from"./p-
|
|
6
|
+
import{d as e}from"./p-8ef5c308.js";import"./p-5d0b058c.js";import"./p-066dc809.js";import"./p-d3f5fd02.js";import"./p-9a476249.js";import"./p-2c787541.js";import"./p-0b6007af.js";import"./p-6a082e2a.js";import"./p-85087cf1.js";import"./p-d207058c.js";import"./p-c778afbe.js";import"./p-7bf4fbf9.js";import"./p-7cb0e0a4.js";import"./p-61be360e.js";import"./p-c780089b.js";import"./p-691dec0e.js";var a={name:"en-au",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}};e.locale(a,null,!0);export default a;
|