@esri/calcite-components 1.7.1-next.0 → 1.7.1-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-8b59535d.js → p-0257e437.js} +2 -2
- package/dist/calcite/{p-ad38aef7.js → p-02fba694.js} +2 -2
- package/dist/calcite/{p-78761320.entry.js → p-03c150d1.entry.js} +2 -2
- package/dist/calcite/{p-fb9c9cad.js → p-04a547f8.js} +2 -2
- package/dist/calcite/{p-8e460e4b.js → p-056c8938.js} +2 -2
- package/dist/calcite/{p-45be0f87.js → p-09f08647.js} +2 -2
- package/dist/calcite/{p-729a9f0c.entry.js → p-0ba01172.entry.js} +2 -2
- package/dist/calcite/{p-4dd5b122.entry.js → p-0ebc501c.entry.js} +2 -2
- package/dist/calcite/{p-d3c2c30e.entry.js → p-0f947e1c.entry.js} +2 -2
- package/dist/calcite/{p-53ad7389.js → p-1035becf.js} +1 -1
- package/dist/calcite/{p-6d045a22.entry.js → p-10d1a416.entry.js} +2 -2
- package/dist/calcite/{p-ca8ced39.js → p-124cacfb.js} +2 -2
- package/dist/calcite/{p-fc5d4a53.js → p-13c29de5.js} +2 -2
- package/dist/calcite/{p-1af39248.entry.js → p-13ca4cf0.entry.js} +2 -2
- package/dist/calcite/{p-13dd3e45.js → p-15eac47c.js} +2 -2
- package/dist/calcite/p-1798c8a4.entry.js +6 -0
- package/dist/calcite/{p-1caf1073.entry.js → p-1abffe59.entry.js} +2 -2
- package/dist/calcite/p-1b48d57c.entry.js +6 -0
- package/dist/calcite/{p-e606b408.js → p-1bf3acdc.js} +2 -2
- package/dist/calcite/{p-646f55fd.js → p-1e018979.js} +2 -2
- package/dist/calcite/{p-c0998ebd.js → p-1e2ba4bf.js} +1 -1
- package/dist/calcite/{p-4ec51b05.entry.js → p-1eed7a23.entry.js} +2 -2
- package/dist/calcite/{p-3f7aeba5.entry.js → p-21729eae.entry.js} +2 -2
- package/dist/calcite/{p-b457181e.entry.js → p-24712939.entry.js} +2 -2
- package/dist/calcite/{p-50c5538b.js → p-26174cb4.js} +2 -2
- package/dist/calcite/{p-6db2c0f9.entry.js → p-26d60172.entry.js} +2 -2
- package/dist/calcite/{p-4d3b9fc2.js → p-29129861.js} +2 -2
- package/dist/calcite/p-2a0386e0.entry.js +6 -0
- package/dist/calcite/p-2c24b0fd.entry.js +6 -0
- package/dist/calcite/p-2c49b01c.entry.js +6 -0
- package/dist/calcite/{p-8d9fc319.entry.js → p-2c98a395.entry.js} +2 -2
- package/dist/calcite/{p-105617b6.js → p-2dd130a0.js} +2 -2
- package/dist/calcite/{p-f682bab4.entry.js → p-2e7a3e05.entry.js} +2 -2
- package/dist/calcite/{p-a812da63.js → p-2f25884c.js} +2 -2
- package/dist/calcite/{p-8a68eb4f.entry.js → p-30b225d7.entry.js} +2 -2
- package/dist/calcite/{p-2c89a106.js → p-343e0c1e.js} +2 -2
- package/dist/calcite/{p-c7e49198.entry.js → p-39892fbc.entry.js} +2 -2
- package/dist/calcite/{p-1e71b192.js → p-39b99550.js} +2 -2
- package/dist/calcite/{p-82fbcf21.js → p-3c2b4172.js} +2 -2
- package/dist/calcite/{p-d4dc1603.entry.js → p-3dfefbe7.entry.js} +2 -2
- package/dist/calcite/p-3f3eee42.entry.js +6 -0
- package/dist/calcite/{p-2d8bda16.js → p-3f93d002.js} +2 -2
- package/dist/calcite/{p-c62751ab.entry.js → p-40a99e17.entry.js} +2 -2
- package/dist/calcite/{p-c02a788a.entry.js → p-412d8163.entry.js} +2 -2
- package/dist/calcite/{p-39870351.js → p-4252db08.js} +2 -2
- package/dist/calcite/{p-90700225.entry.js → p-42704a06.entry.js} +2 -2
- package/dist/calcite/{p-8238ec42.js → p-43bf14e5.js} +2 -2
- package/dist/calcite/{p-f8bb864b.entry.js → p-46ea21dc.entry.js} +2 -2
- package/dist/calcite/{p-7150be58.js → p-4d05e1a5.js} +2 -2
- package/dist/calcite/{p-6f1a5fc0.js → p-4d4a62c1.js} +2 -2
- package/dist/calcite/{p-7891cb07.entry.js → p-4d5bca6f.entry.js} +2 -2
- package/dist/calcite/{p-8eb00254.entry.js → p-4e6891f9.entry.js} +2 -2
- package/dist/calcite/{p-78a6caff.js → p-4f0e68f6.js} +1 -1
- package/dist/calcite/{p-43f0407f.js → p-506f38ec.js} +2 -2
- package/dist/calcite/{p-db546ca5.entry.js → p-53831356.entry.js} +2 -2
- package/dist/calcite/{p-9ff8a4cc.entry.js → p-582c002f.entry.js} +2 -2
- package/dist/calcite/{p-506bec03.entry.js → p-58933552.entry.js} +2 -2
- package/dist/calcite/{p-8a37b90b.entry.js → p-58cb4e37.entry.js} +2 -2
- package/dist/calcite/{p-473276a3.entry.js → p-5b9e60d3.entry.js} +2 -2
- package/dist/calcite/{p-d7d04f06.js → p-5dd9fe21.js} +2 -2
- package/dist/calcite/p-62b78bb9.entry.js +6 -0
- package/dist/calcite/{p-16b2e287.entry.js → p-636cd580.entry.js} +2 -2
- package/dist/calcite/{p-b7baabd1.js → p-681ad15b.js} +2 -2
- package/dist/calcite/{p-76a7426d.js → p-6965a50c.js} +2 -2
- package/dist/calcite/{p-99714032.js → p-6b11f593.js} +2 -2
- package/dist/calcite/{p-8b104176.js → p-6b7921aa.js} +2 -2
- package/dist/calcite/{p-34027ea7.js → p-6d654c82.js} +1 -1
- package/dist/calcite/{p-28b495e7.js → p-6d89139d.js} +2 -2
- package/dist/calcite/p-6f8ab691.js +6 -0
- package/dist/calcite/{p-48b9fc56.entry.js → p-6f9eba7b.entry.js} +2 -2
- package/dist/calcite/{p-30386814.entry.js → p-6ff80b94.entry.js} +2 -2
- package/dist/calcite/{p-973dbe22.js → p-732c1e65.js} +2 -2
- package/dist/calcite/{p-47c986e4.entry.js → p-792028f0.entry.js} +2 -2
- package/dist/calcite/{p-63ab50e4.entry.js → p-7a2bb834.entry.js} +2 -2
- package/dist/calcite/{p-23e5e37b.js → p-7b98de4a.js} +2 -2
- package/dist/calcite/{p-56de5b11.entry.js → p-7d90b7d3.entry.js} +2 -2
- package/dist/calcite/{p-e7bf4a09.js → p-7dc7938f.js} +2 -2
- package/dist/calcite/p-843b2f5e.js +6 -0
- package/dist/calcite/{p-f4261fb9.js → p-887444be.js} +2 -2
- package/dist/calcite/{p-8be9a55d.js → p-8c025fac.js} +1 -1
- package/dist/calcite/{p-58366839.js → p-8cc0ddfa.js} +2 -2
- package/dist/calcite/{p-73b23c8f.entry.js → p-8cf59a66.entry.js} +2 -2
- package/dist/calcite/{p-a589742b.js → p-8db9a211.js} +1 -1
- package/dist/calcite/{p-e151baea.js → p-8f6fef56.js} +2 -2
- package/dist/calcite/{p-d3965d9a.js → p-93cb13a5.js} +1 -1
- package/dist/calcite/p-93e09724.js +6 -0
- package/dist/calcite/{p-bc6f68d2.entry.js → p-94a3ce93.entry.js} +2 -2
- package/dist/calcite/{p-e9a17d0b.entry.js → p-973df16a.entry.js} +2 -2
- package/dist/calcite/{p-3b213ff1.js → p-97c37a2f.js} +1 -1
- package/dist/calcite/{p-466ad6d1.js → p-99837287.js} +2 -2
- package/dist/calcite/{p-b23ccf73.js → p-99f8ed5d.js} +1 -1
- package/dist/calcite/{p-6d190157.js → p-9cbb85cf.js} +2 -2
- package/dist/calcite/{p-be63c6c5.js → p-9fedef55.js} +2 -2
- package/dist/calcite/p-a06336bf.js +6 -0
- package/dist/calcite/{p-17468533.js → p-a1558cef.js} +2 -2
- package/dist/calcite/{p-154c7932.entry.js → p-a4c18bfb.entry.js} +2 -2
- package/dist/calcite/{p-366e14b6.js → p-a6b51e4e.js} +2 -2
- package/dist/calcite/{p-914ee756.js → p-a708c71a.js} +2 -2
- package/dist/calcite/{p-d7092b91.entry.js → p-a7f92ae9.entry.js} +2 -2
- package/dist/calcite/{p-868768d3.js → p-a99a4a15.js} +2 -2
- package/dist/calcite/{p-8076225e.js → p-ae1cb7c1.js} +2 -2
- package/dist/calcite/{p-0b973f52.entry.js → p-b1185627.entry.js} +2 -2
- package/dist/calcite/{p-91dde3dd.entry.js → p-b2f68a4e.entry.js} +2 -2
- package/dist/calcite/{p-ddfdd642.entry.js → p-b6abce81.entry.js} +2 -2
- package/dist/calcite/{p-307ee39f.js → p-b793adfb.js} +2 -2
- package/dist/calcite/{p-3c066046.entry.js → p-bb5d286f.entry.js} +2 -2
- package/dist/calcite/{p-b6ccce63.entry.js → p-bbc175c3.entry.js} +2 -2
- package/dist/calcite/{p-3a17c85f.entry.js → p-bd0fe246.entry.js} +2 -2
- package/dist/calcite/p-be847d17.js +6 -0
- package/dist/calcite/{p-2fbe9aa9.entry.js → p-c10ecfc8.entry.js} +2 -2
- package/dist/calcite/{p-dd5c2bf0.js → p-c21c35f7.js} +1 -1
- package/dist/calcite/{p-f04a6db5.entry.js → p-c3b40cd7.entry.js} +2 -2
- package/dist/calcite/{p-327a1ad3.entry.js → p-c5f8f4a7.entry.js} +2 -2
- package/dist/calcite/{p-0daa2119.js → p-c791330e.js} +2 -2
- package/dist/calcite/{p-35584aab.entry.js → p-c8f5d24f.entry.js} +2 -2
- package/dist/calcite/{p-eee11de5.js → p-ca004b3d.js} +2 -2
- package/dist/calcite/{p-ca9571d4.js → p-ccf5deb3.js} +1 -1
- package/dist/calcite/{p-e4943583.js → p-cd368029.js} +2 -2
- package/dist/calcite/{p-d34313d2.entry.js → p-ce38f434.entry.js} +2 -2
- package/dist/calcite/{p-90b233f6.js → p-cecee68f.js} +1 -1
- package/dist/calcite/{p-66c315b7.js → p-d05bf146.js} +2 -2
- package/dist/calcite/{p-87842ea5.entry.js → p-d2043841.entry.js} +2 -2
- package/dist/calcite/{p-a8c8f63c.js → p-d2116140.js} +2 -2
- package/dist/calcite/p-d2840286.entry.js +6 -0
- package/dist/calcite/{p-fb87366b.js → p-d2f553c3.js} +1 -1
- package/dist/calcite/{p-8611d179.js → p-d30b24f7.js} +2 -2
- package/dist/calcite/{p-901717ea.js → p-d4d1292e.js} +2 -2
- package/dist/calcite/{p-c5c8c0fc.js → p-d5c1db84.js} +1 -1
- package/dist/calcite/{p-cde92354.js → p-d68ce960.js} +1 -1
- package/dist/calcite/{p-89ff598b.js → p-d75bbbf9.js} +1 -1
- package/dist/calcite/p-d7c33448.entry.js +6 -0
- package/dist/calcite/{p-0b21cf15.js → p-da08a08e.js} +2 -2
- package/dist/calcite/{p-5a14a9e5.js → p-df26e7c8.js} +2 -2
- package/dist/calcite/{p-043b0922.entry.js → p-e0d48e50.entry.js} +2 -2
- package/dist/calcite/{p-43c4a2ba.entry.js → p-e312adb2.entry.js} +2 -2
- package/dist/calcite/{p-e463dea4.js → p-e390d41f.js} +2 -2
- package/dist/calcite/{p-c1e250d1.js → p-e4b69cd8.js} +2 -2
- package/dist/calcite/{p-5a1d2777.js → p-e6017353.js} +2 -2
- package/dist/calcite/{p-4c2fe238.entry.js → p-e73266b6.entry.js} +2 -2
- package/dist/calcite/{p-746864d1.entry.js → p-eb6f1966.entry.js} +2 -2
- package/dist/calcite/{p-8855b89e.js → p-ec54c252.js} +2 -2
- package/dist/calcite/{p-3c060e41.js → p-edfde7d8.js} +2 -2
- package/dist/calcite/{p-1487d6e1.js → p-eeaedd9f.js} +2 -2
- package/dist/calcite/p-ef659f94.entry.js +6 -0
- package/dist/calcite/p-f36629d7.js +6 -0
- package/dist/calcite/{p-20446a77.entry.js → p-f6444a40.entry.js} +2 -2
- package/dist/calcite/{p-db604ccd.js → p-f6b04f06.js} +2 -2
- package/dist/calcite/{p-84d17c5a.entry.js → p-f9475e12.entry.js} +2 -2
- package/dist/calcite/{p-a9dd873f.js → p-f9d37807.js} +2 -2
- package/dist/calcite/{p-0c77d01d.entry.js → p-fab5697a.entry.js} +2 -2
- package/dist/calcite/{p-42a7900a.entry.js → p-fbf0ec35.entry.js} +2 -2
- package/dist/calcite/{p-9c45d8f4.js → p-fcf336eb.js} +2 -2
- package/dist/calcite/{p-536af946.entry.js → p-fe145fe8.entry.js} +2 -2
- package/dist/calcite/{p-c46a8d61.js → p-fe389436.js} +2 -2
- package/dist/calcite/{p-d0364f09.entry.js → p-ffc7c56d.entry.js} +2 -2
- package/dist/calcite/{p-418a0464.entry.js → p-ffd35c5b.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-40de1cf3.js → ExpandToggle-352734d9.js} +5 -5
- package/dist/cjs/{FloatingArrow-84434b45.js → FloatingArrow-70f7b14e.js} +2 -2
- package/dist/cjs/{Heading-820f3569.js → Heading-51c78fed.js} +2 -2
- package/dist/cjs/{app-globals-5214ba65.js → app-globals-3ff2da5f.js} +2 -2
- package/dist/cjs/{ar-a853c669.js → ar-b32222cf.js} +17 -17
- package/dist/cjs/{array-56a2eb9c.js → array-9fec654f.js} +1 -1
- package/dist/cjs/{bg-a38f3de0.js → bg-468b5121.js} +17 -17
- package/dist/cjs/{browser-6669afd2.js → browser-ee882742.js} +1 -1
- package/dist/cjs/{bs-c6aa4efb.js → bs-cabe52cf.js} +17 -17
- package/dist/cjs/{ca-3e07cf20.js → ca-be70a7da.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 +13 -13
- 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 +19 -19
- 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-2fd3d892.js → calcite-input-time-picker.calcite-time-picker-d0cfb47d.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 +15 -21
- 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 +15 -15
- 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 +13 -13
- 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 +10 -10
- 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 +14 -14
- 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-d2daf60c.js → conditionalSlot-690ec37d.js} +3 -3
- package/dist/cjs/{cs-68d9a29d.js → cs-906476d8.js} +17 -17
- package/dist/cjs/{da-72031119.js → da-4d2f4fd3.js} +17 -17
- package/dist/cjs/{de-805265d2.js → de-559fd9ee.js} +17 -17
- package/dist/cjs/{de-at-ac3d3e25.js → de-at-1e0d4fb9.js} +17 -17
- package/dist/cjs/{de-ch-7fdd43b9.js → de-ch-180aeef6.js} +17 -17
- package/dist/cjs/{debounce-93373cc5.js → debounce-eb5d5669.js} +1 -1
- package/dist/cjs/{dom-800e10fd.js → dom-19fb1cdf.js} +3 -3
- package/dist/cjs/{el-5d22d4da.js → el-1bab096e.js} +17 -17
- package/dist/cjs/{en-au-75534aee.js → en-au-5dd0b0a0.js} +17 -17
- package/dist/cjs/{en-ca-c9cab982.js → en-ca-8ab2e472.js} +17 -17
- package/dist/cjs/{en-gb-bedc22b5.js → en-gb-39e04ed4.js} +17 -17
- package/dist/cjs/{es-8f1b425b.js → es-5682bac6.js} +17 -17
- package/dist/cjs/{es-mx-cded4ad2.js → es-mx-3158346a.js} +17 -17
- package/dist/cjs/{et-c44ff76b.js → et-586851b8.js} +17 -17
- package/dist/cjs/{fi-fd4c51fe.js → fi-f8bf8109.js} +17 -17
- package/dist/cjs/{filter-2d2bd9f6.js → filter-40cabc72.js} +2 -2
- package/dist/cjs/{floating-ui-e5b4357f.js → floating-ui-3e6efe5c.js} +3 -3
- package/dist/cjs/{focusTrapComponent-19c27e3e.js → focusTrapComponent-00dfed50.js} +2 -2
- package/dist/cjs/{form-9e09c487.js → form-4056dd25.js} +3 -3
- package/dist/cjs/{fr-dc9db4c0.js → fr-c0487f0c.js} +17 -17
- package/dist/cjs/{fr-ch-11c30914.js → fr-ch-4e5b2c64.js} +17 -17
- package/dist/cjs/{guid-973d6a5a.js → guid-c0230e86.js} +1 -1
- package/dist/cjs/{he-a8edfd5f.js → he-06e227e8.js} +17 -17
- package/dist/cjs/{hi-7791e334.js → hi-9995222f.js} +17 -17
- package/dist/cjs/{hr-6ed01974.js → hr-8c76e72f.js} +17 -17
- package/dist/cjs/{hu-70629820.js → hu-00378c15.js} +17 -17
- package/dist/cjs/{id-389af4c9.js → id-2787d19d.js} +17 -17
- package/dist/cjs/{index-71c3df05.js → index-caafb198.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{interactive-a2a25305.js → interactive-4d674e22.js} +2 -2
- package/dist/cjs/{it-ce923697.js → it-56bbd587.js} +17 -17
- package/dist/cjs/{it-ch-ad5b43f4.js → it-ch-636946fb.js} +17 -17
- package/dist/cjs/{ja-d3f6c860.js → ja-f267adb2.js} +17 -17
- package/dist/cjs/{key-d8941b51.js → key-d2996224.js} +1 -1
- package/dist/cjs/{ko-17dcd5a5.js → ko-ad0ce0ec.js} +17 -17
- package/dist/cjs/{label-9f8d1d91.js → label-f96276bb.js} +2 -2
- package/dist/cjs/{loadable-5b060a4f.js → loadable-471967b7.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-9b81e6cf.js → locale-e0d1f1bf.js} +4 -4
- package/dist/cjs/{lt-c9be9b00.js → lt-3b78c9a4.js} +17 -17
- package/dist/cjs/{lv-248530d7.js → lv-12bf16ef.js} +17 -17
- package/dist/cjs/{math-6ee01348.js → math-d1a3aaa3.js} +1 -1
- package/dist/cjs/{mk-760ed6ab.js → mk-32609311.js} +17 -17
- package/dist/cjs/{nb-31205227.js → nb-ffdea9a6.js} +17 -17
- package/dist/cjs/{nl-06fe2f90.js → nl-3ab4c16c.js} +17 -17
- package/dist/cjs/{observers-f2e62a5a.js → observers-470ae6da.js} +1 -1
- package/dist/cjs/{openCloseComponent-9f8e6544.js → openCloseComponent-b4577cbd.js} +2 -2
- package/dist/cjs/{pl-1f1ba6ad.js → pl-ba05d6d3.js} +17 -17
- package/dist/cjs/{pt-ccd6bbc8.js → pt-9e772b76.js} +17 -17
- package/dist/cjs/{pt-br-22edbbda.js → pt-br-46221bee.js} +17 -17
- package/dist/cjs/{resources-35cd10ab.js → resources-0afd289e.js} +1 -1
- package/dist/cjs/{resources-637fd1f8.js → resources-23935e2d.js} +5 -5
- package/dist/cjs/{resources-23ce7fb2.js → resources-28a7ca32.js} +1 -1
- package/dist/cjs/{resources-ea11d975.js → resources-4fb73fb3.js} +1 -1
- package/dist/cjs/{resources-bb516458.js → resources-70f4e8f2.js} +1 -1
- package/dist/cjs/{resources-88e65e57.js → resources-9445430b.js} +1 -1
- package/dist/cjs/{resources-5f89a3d3.js → resources-a2931aee.js} +1 -1
- package/dist/cjs/{ro-7726fc31.js → ro-d5b658b6.js} +17 -17
- package/dist/cjs/{ru-fa27bc9d.js → ru-43b0996d.js} +17 -17
- package/dist/cjs/{sk-fffb58c5.js → sk-44ccecda.js} +17 -17
- package/dist/cjs/{sl-0d3057b2.js → sl-7d6b06a7.js} +17 -17
- package/dist/cjs/{sortableComponent-e0921fcb.js → sortableComponent-22a91e22.js} +1 -1
- package/dist/cjs/{sr-3bfc3a73.js → sr-661e8a9d.js} +17 -17
- package/dist/cjs/{sv-f8b6cfd6.js → sv-7f9ef68a.js} +17 -17
- package/dist/cjs/{t9n-2be9bdf5.js → t9n-b07eaf88.js} +3 -3
- package/dist/cjs/{th-a013d8cc.js → th-7f7898ea.js} +17 -17
- package/dist/cjs/{throttle-d596d879.js → throttle-50647341.js} +2 -2
- package/dist/cjs/{tr-5732ee86.js → tr-43dad46a.js} +17 -17
- package/dist/cjs/{uk-f0cbe762.js → uk-f344323a.js} +17 -17
- package/dist/cjs/{utils-dd3f7a4f.js → utils-0b3c1711.js} +3 -3
- package/dist/cjs/{utils-990c8789.js → utils-c3ce585e.js} +1 -1
- package/dist/cjs/{vi-cfb58834.js → vi-bb298313.js} +17 -17
- package/dist/cjs/{zh-cn-919838a4.js → zh-cn-ad507dd6.js} +17 -17
- package/dist/cjs/{zh-hk-4f9606b4.js → zh-hk-c5f07e1a.js} +17 -17
- package/dist/cjs/{zh-tw-9519e8cf.js → zh-tw-316941eb.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.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 +1 -1
- 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 +2 -10
- 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.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/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 +1 -1
- 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.css +3 -3
- package/dist/collection/components/sheet/sheet.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/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 +5 -5
- package/dist/collection/components/table-cell/resources.js +1 -1
- package/dist/collection/components/table-cell/table-cell.css +1 -0
- 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.css +1 -0
- 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 +1 -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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +2 -8
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/components/input-text.js +1 -1
- package/dist/components/input.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/components/table-header.js +2 -2
- 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 +1 -1
- 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-a13170a9.js → ExpandToggle-88dd2305.js} +5 -5
- package/dist/esm/{FloatingArrow-3e596587.js → FloatingArrow-adc23407.js} +2 -2
- package/dist/esm/{Heading-4c559770.js → Heading-610e015f.js} +2 -2
- package/dist/esm/{app-globals-28631f06.js → app-globals-a2dd9088.js} +2 -2
- package/dist/esm/{ar-ccfa23b3.js → ar-a34e4331.js} +17 -17
- package/dist/esm/{array-8b75f1c0.js → array-df136c83.js} +1 -1
- package/dist/esm/{bg-4daa4ea9.js → bg-7d5393fe.js} +17 -17
- package/dist/esm/{browser-c5ba3f93.js → browser-98466c38.js} +1 -1
- package/dist/esm/{bs-2eb3521b.js → bs-468c2ed7.js} +17 -17
- package/dist/esm/{ca-f139bd90.js → ca-277e4886.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 +13 -13
- 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 +19 -19
- 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-3277567a.js → calcite-input-time-picker.calcite-time-picker-d98f3ae8.js} +61 -61
- package/dist/esm/calcite-input-time-picker_2.entry.js +17 -17
- package/dist/esm/calcite-input-time-zone.entry.js +15 -21
- 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 +15 -15
- 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 +13 -13
- 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 +10 -10
- 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 +14 -14
- 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-c77e1805.js → conditionalSlot-598d2a10.js} +3 -3
- package/dist/esm/{cs-6253ac20.js → cs-d4396e66.js} +17 -17
- package/dist/esm/{da-f177d5cc.js → da-9afee29d.js} +17 -17
- package/dist/esm/{de-5a00214a.js → de-7e0cfea4.js} +17 -17
- package/dist/esm/{de-at-673a2679.js → de-at-7750489c.js} +17 -17
- package/dist/esm/{de-ch-00b071f4.js → de-ch-e8ade6bd.js} +17 -17
- package/dist/esm/{debounce-5ae6eb33.js → debounce-1d506949.js} +1 -1
- package/dist/esm/{dom-40c685da.js → dom-86d1d306.js} +3 -3
- package/dist/esm/{el-775fa3a9.js → el-93cde66a.js} +17 -17
- package/dist/esm/{en-au-c4fbbe1e.js → en-au-dc1fb699.js} +17 -17
- package/dist/esm/{en-ca-d68c2add.js → en-ca-a2feb51a.js} +17 -17
- package/dist/esm/{en-gb-5b709e5f.js → en-gb-0c3ba0b8.js} +17 -17
- package/dist/esm/{es-3093b211.js → es-d1062882.js} +17 -17
- package/dist/esm/{es-mx-714ed015.js → es-mx-ae231e5c.js} +17 -17
- package/dist/esm/{et-8f8b618c.js → et-5a0e1e22.js} +17 -17
- package/dist/esm/{fi-5a6f3c36.js → fi-5ec0d6f4.js} +17 -17
- package/dist/esm/{filter-53dcd356.js → filter-45645789.js} +2 -2
- package/dist/esm/{floating-ui-a133b999.js → floating-ui-8436145e.js} +3 -3
- package/dist/esm/{focusTrapComponent-9c0a581d.js → focusTrapComponent-4542fa4e.js} +2 -2
- package/dist/esm/{form-bf828fda.js → form-35975a6d.js} +3 -3
- package/dist/esm/{fr-5bdff7bc.js → fr-a7335e87.js} +17 -17
- package/dist/esm/{fr-ch-53816870.js → fr-ch-fc670dad.js} +17 -17
- package/dist/esm/{guid-4f17c467.js → guid-39c3c100.js} +1 -1
- package/dist/esm/{he-633158c5.js → he-5fd4f42e.js} +17 -17
- package/dist/esm/{hi-122b1fb2.js → hi-e21a5801.js} +17 -17
- package/dist/esm/{hr-32243765.js → hr-1f7c73c3.js} +17 -17
- package/dist/esm/{hu-c23a7df2.js → hu-c70b0ac7.js} +17 -17
- package/dist/esm/{id-96cc5073.js → id-17b4523e.js} +17 -17
- package/dist/esm/{index-406e44b4.js → index-076873a8.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{interactive-f95d0bcf.js → interactive-bab5bdfd.js} +2 -2
- package/dist/esm/{it-f6d294e8.js → it-846ecbbb.js} +17 -17
- package/dist/esm/{it-ch-440523f2.js → it-ch-a51d1840.js} +17 -17
- package/dist/esm/{ja-4a586612.js → ja-3d42cf3b.js} +17 -17
- package/dist/esm/{key-f7cad141.js → key-c67d5809.js} +1 -1
- package/dist/esm/{ko-2f16bbb0.js → ko-606eca1d.js} +17 -17
- package/dist/esm/{label-3df3f1af.js → label-7f0b95fb.js} +2 -2
- package/dist/esm/{loadable-e8773ab4.js → loadable-185c3945.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-1ae4b4f6.js → locale-b0e55910.js} +4 -4
- package/dist/esm/{lt-1bb677c8.js → lt-6cc1c3fb.js} +17 -17
- package/dist/esm/{lv-1bcf40fc.js → lv-fe5b4414.js} +17 -17
- package/dist/esm/{math-4f9e2ec0.js → math-ec63d34d.js} +1 -1
- package/dist/esm/{mk-81bb7208.js → mk-64c9a0c1.js} +17 -17
- package/dist/esm/{nb-6eb49b2b.js → nb-9534d3d9.js} +17 -17
- package/dist/esm/{nl-58511187.js → nl-76cec413.js} +17 -17
- package/dist/esm/{observers-892f9bee.js → observers-8af482aa.js} +1 -1
- package/dist/esm/{openCloseComponent-7b838257.js → openCloseComponent-cfd85a9a.js} +2 -2
- package/dist/esm/{pl-a9ae6019.js → pl-129c5fbc.js} +17 -17
- package/dist/esm/{pt-47d87d77.js → pt-7ca34d79.js} +17 -17
- package/dist/esm/{pt-br-89841c73.js → pt-br-d088344e.js} +17 -17
- package/dist/esm/{resources-f2b3e45d.js → resources-0f68f1f1.js} +1 -1
- package/dist/esm/{resources-67ebee8b.js → resources-27bf9767.js} +1 -1
- package/dist/esm/{resources-609b43c2.js → resources-4cd5f6bd.js} +1 -1
- package/dist/esm/{resources-c563003f.js → resources-62e4fb51.js} +1 -1
- package/dist/esm/{resources-c3b61a89.js → resources-8168b87a.js} +5 -5
- package/dist/esm/{resources-d2690872.js → resources-972aa52c.js} +1 -1
- package/dist/esm/{resources-4f7ddc6c.js → resources-9a30c5bb.js} +1 -1
- package/dist/esm/{ro-eeff4fb4.js → ro-9e6ee065.js} +17 -17
- package/dist/esm/{ru-0accada8.js → ru-183c30ec.js} +17 -17
- package/dist/esm/{sk-6f1efc73.js → sk-183e7e59.js} +17 -17
- package/dist/esm/{sl-169f4eaa.js → sl-ffd7fff9.js} +17 -17
- package/dist/esm/{sortableComponent-bb341ca7.js → sortableComponent-32c76e0c.js} +1 -1
- package/dist/esm/{sr-21002c0c.js → sr-ac375b86.js} +17 -17
- package/dist/esm/{sv-a103d4ed.js → sv-fb6582e2.js} +17 -17
- package/dist/esm/{t9n-4e2c563e.js → t9n-ea88db47.js} +3 -3
- package/dist/esm/{th-026e329c.js → th-a8b17862.js} +17 -17
- package/dist/esm/{throttle-ad2adb4c.js → throttle-6d7240c7.js} +2 -2
- package/dist/esm/{tr-b8fefddb.js → tr-44eb8e5f.js} +17 -17
- package/dist/esm/{uk-36265c5e.js → uk-422cecec.js} +17 -17
- package/dist/esm/{utils-1c34f7e9.js → utils-0f23a749.js} +3 -3
- package/dist/esm/{utils-5456754c.js → utils-7c100b64.js} +1 -1
- package/dist/esm/{vi-8250a90a.js → vi-69163bc4.js} +17 -17
- package/dist/esm/{zh-cn-390e355a.js → zh-cn-b7ac9b95.js} +17 -17
- package/dist/esm/{zh-hk-abc904cf.js → zh-hk-bde8be6c.js} +17 -17
- package/dist/esm/{zh-tw-52f5ebec.js → zh-tw-f4348505.js} +17 -17
- package/dist/extras/docs-json.json +11 -11
- package/dist/extras/vscode-data.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/input-time-zone/input-time-zone.d.ts +0 -1
- package/dist/types/components/table/table.d.ts +4 -4
- package/hydrate/index.js +9 -15
- package/package.json +2 -2
- package/dist/calcite/p-04067259.entry.js +0 -6
- package/dist/calcite/p-09a2f7d6.js +0 -6
- package/dist/calcite/p-2312c3ea.js +0 -6
- package/dist/calcite/p-2cc73fc6.js +0 -6
- package/dist/calcite/p-2e9df62b.entry.js +0 -6
- package/dist/calcite/p-37d312e1.entry.js +0 -6
- package/dist/calcite/p-39fcdd3d.js +0 -6
- package/dist/calcite/p-4b329e5c.js +0 -6
- package/dist/calcite/p-4d010dbf.entry.js +0 -6
- package/dist/calcite/p-4d3c81d1.entry.js +0 -6
- package/dist/calcite/p-ac8899df.entry.js +0 -6
- package/dist/calcite/p-c37b90d9.entry.js +0 -6
- package/dist/calcite/p-cb51951b.entry.js +0 -6
- package/dist/calcite/p-de2cc0b0.entry.js +0 -6
- package/dist/calcite/p-eda9314a.entry.js +0 -6
- package/dist/calcite/p-f413e0fa.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.7.1-next.
|
|
4
|
+
* v1.7.1-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,h as e,F as i,a as n,f as o}from"./p-c0998ebd.js";import{c as a,d as l}from"./p-2312c3ea.js";import{b as s,s as r,h as c,g as h,i as d}from"./p-8855b89e.js";import{c as p,d as x}from"./p-b7baabd1.js";import{c as b}from"./p-89ff598b.js";import{c as u,s as m,d as w,u as v}from"./p-28b495e7.js";import{C as f}from"./p-78a6caff.js";import"./p-90b233f6.js";import"./p-34027ea7.js";import"./p-c5c8c0fc.js";const g="content",y=class{constructor(e){t(this,e),this.handleHeaderSlotChange=t=>{this.hasHeader=!!s(t)},this.handleFooterSlotChange=t=>{this.hasFooter=!!s(t)},this.handleAlertsSlotChange=t=>{this.hasAlerts=!!s(t),r(t)?.map((t=>{"CALCITE-ALERT"===t.nodeName&&(t.slottedInShell=!0)}))},this.handleSheetsSlotChange=t=>{this.hasSheets=!!s(t),r(t)?.map((t=>{"CALCITE-SHEET"===t.nodeName&&(t.slottedInShell=!0)}))},this.handleModalsSlotChange=t=>{this.hasModals=!!s(t),r(t)?.map((t=>{"CALCITE-MODAL"===t.nodeName&&(t.slottedInShell=!0)}))},this.contentBehind=!1,this.hasHeader=!1,this.hasFooter=!1,this.hasAlerts=!1,this.hasModals=!1,this.hasSheets=!1}connectedCallback(){a(this)}disconnectedCallback(){l(this)}renderHeader(){return e("div",{hidden:!this.hasHeader},e("slot",{key:"header",name:"header",onSlotchange:this.handleHeaderSlotChange}))}renderFooter(){return e("div",{class:"footer",hidden:!this.hasFooter,key:"footer"},e("slot",{name:"footer",onSlotchange:this.handleFooterSlotChange}))}renderAlerts(){return e("div",{hidden:!this.hasAlerts},e("slot",{key:"alerts",name:"alerts",onSlotchange:this.handleAlertsSlotChange}))}renderSheets(){return e("div",{hidden:!this.hasSheets},e("slot",{key:"sheets",name:"sheets",onSlotchange:this.handleSheetsSlotChange}))}renderModals(){return e("div",{hidden:!this.hasModals},e("slot",{key:"modals",name:"modals",onSlotchange:this.handleModalsSlotChange}))}renderContent(){const t=e("slot",{key:"default-slot"}),i=e("slot",{key:"center-row-slot",name:"center-row"}),n=e("slot",{key:"panel-bottom-slot",name:"panel-bottom"}),o=e("slot",{key:"panel-top-slot",name:"panel-top"}),a="content-container";return this.contentBehind?[e("div",{class:{[g]:!0,"content--behind":!0},key:a},t),e("div",{class:"center-content"},o,n,i)]:[e("div",{class:g,key:a},o,t,n,i)]}renderMain(){return e("div",{class:"main"},e("slot",{name:"panel-start"}),this.renderContent(),e("slot",{name:"panel-end"}))}renderPositionedSlots(){return e("div",{class:"positioned-slot-wrapper"},this.renderAlerts(),this.renderModals(),this.renderSheets())}render(){return e(i,null,this.renderHeader(),this.renderMain(),this.renderFooter(),this.renderPositionedSlots())}get el(){return n(this)}};y.style=":host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:absolute;inset:0px;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;--calcite-shell-tip-spacing:26vw}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0px;border-width:0px;z-index:calc(var(--calcite-app-z-index) - 1);display:initial}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3)}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-top]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-bottom]::slotted(calcite-shell-center-row:not([detached])){border-inline-start-width:1px;border-inline-end-width:1px;border-color:var(--calcite-ui-border-3)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}::slotted(calcite-shell-center-row){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-app-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);inset-block-end:0.5rem;inset-inline:var(--calcite-shell-tip-spacing)}slot[name=center-row]::slotted(calcite-shell-center-row),slot[name=panel-bottom]::slotted(calcite-shell-center-row){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-center-row){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}:host([hidden]){display:none}[hidden]{display:none}";const z="action-bar",k=class{constructor(e){t(this,e),this.detached=!1,this.heightScale="s",this.position="end"}connectedCallback(){a(this)}disconnectedCallback(){l(this)}render(){const{el:t}=this,n=e("div",{class:"content"},e("slot",null)),o=c(t,z),a=[o?e("div",{class:"action-bar-container",key:"action-bar"},e("slot",{name:z})):null,n];return"end"===o?.position&&a.reverse(),e(i,null,a)}get el(){return n(this)}};k.style=":host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{z-index:var(--calcite-app-z-index);display:flex;flex:1 1 auto;overflow:hidden;background-color:transparent}.content{margin:0px;display:flex;block-size:100%;inline-size:100%;overflow:hidden;flex:1 0 0}.action-bar-container{display:flex}:host([detached]){margin-inline:0.5rem;margin-block:0.5rem 1.5rem}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}:host([detached]){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;border-width:0px;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -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)}:host([position=end]){align-self:flex-end}:host([position=start]){align-self:flex-start}:host([height-scale=s]){block-size:33.333333%}:host([height-scale=m]){block-size:70%}:host([height-scale=l]){block-size:100%}:host([height-scale=l][detached]){block-size:calc(100% - 2rem)}::slotted(calcite-panel){block-size:100%;inline-size:100%}::slotted(calcite-action-bar),::slotted(calcite-action-bar[position=end]){border-inline-end:1px solid;border-color:var(--calcite-ui-border-3)}:host([hidden]){display:none}[hidden]{display:none}";const C=class{constructor(e){t(this,e),this.initialContentWidth=null,this.initialContentHeight=null,this.initialClientX=null,this.initialClientY=null,this.contentWidthMax=null,this.contentWidthMin=null,this.contentHeightMax=null,this.contentHeightMin=null,this.step=1,this.stepMultiplier=10,this.actionBars=[],this.storeContentEl=t=>{this.contentEl=t},this.getKeyAdjustedSize=t=>{const{key:e}=t,{el:i,step:n,stepMultiplier:o,layout:a,contentWidthMin:l,contentWidthMax:s,initialContentWidth:r,initialContentHeight:c,contentHeightMin:d,contentHeightMax:p,position:x}=this,b=n*o;["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"].indexOf(e)>-1&&t.preventDefault();const u=["ArrowLeft","ArrowRight"],m=["ArrowDown","ArrowUp"],w="rtl"===h(i)&&u.includes(e)?-1:1;if("horizontal"===a?"end"===x?e===m[1]||e===u[0]:e===m[0]||e===u[1]:e===m[1]||("end"===x?e===u[0]:e===u[1])){const e=t.shiftKey?b:n;return"horizontal"===a?c+w*e:r+w*e}if("horizontal"===a?"end"===x?e===m[0]||e===u[0]:e===m[1]||e===u[1]:e===m[0]||("end"===x?e===u[1]:e===u[0])){const e=t.shiftKey?b:n;return"horizontal"===a?c-w*e:r-w*e}return"Home"===e&&"horizontal"===a&&"number"==typeof d?d:"Home"===e&&"vertical"===a&&"number"==typeof l?l:"End"===e&&"horizontal"===a&&"number"==typeof p?p:"End"===e&&"vertical"===a&&"number"==typeof s?s:"PageDown"===e?"horizontal"===a?c-b:r-b:"PageUp"===e?"horizontal"===a?c+b:r+b:null},this.initialKeydownWidth=t=>{this.setInitialContentWidth();const e=this.getKeyAdjustedSize(t);"number"==typeof e&&this.setContentWidth(e)},this.initialKeydownHeight=t=>{this.setInitialContentHeight();const e=this.getKeyAdjustedSize(t);"number"==typeof e&&this.setContentHeight(e)},this.separatorKeyDown=t=>{"horizontal"===this.layout?this.initialKeydownHeight(t):this.initialKeydownWidth(t)},this.separatorPointerMove=t=>{t.preventDefault();const{el:e,layout:i,initialContentWidth:n,initialContentHeight:o,position:a,initialClientX:l,initialClientY:s}=this,r="horizontal"===i?t.clientY-s:t.clientX-l,c="vertical"===i&&"rtl"===h(e)?-1:1,d="end"===a?-c*r:c*r;"horizontal"===i?this.setContentHeight(o+d):this.setContentWidth(n+d)},this.separatorPointerUp=t=>{d(t)&&(t.preventDefault(),document.removeEventListener("pointerup",this.separatorPointerUp),document.removeEventListener("pointermove",this.separatorPointerMove))},this.setInitialContentHeight=()=>{this.initialContentHeight=this.contentEl?.getBoundingClientRect().height},this.setInitialContentWidth=()=>{this.initialContentWidth=this.contentEl?.getBoundingClientRect().width},this.separatorPointerDown=t=>{if(!d(t))return;t.preventDefault();const{separatorEl:e}=this;e&&document.activeElement!==e&&e.focus(),"horizontal"===this.layout?(this.setInitialContentHeight(),this.initialClientY=t.clientY):(this.setInitialContentWidth(),this.initialClientX=t.clientX),document.addEventListener("pointerup",this.separatorPointerUp),document.addEventListener("pointermove",this.separatorPointerMove)},this.connectSeparator=t=>{this.disconnectSeparator(),this.separatorEl=t,t?.addEventListener("pointerdown",this.separatorPointerDown)},this.disconnectSeparator=()=>{this.separatorEl?.removeEventListener("pointerdown",this.separatorPointerDown)},this.setActionBarsLayout=t=>{t.forEach((t=>t.layout=this.layout))},this.handleActionBarSlotChange=t=>{const e=r(t).filter((t=>t?.matches("calcite-action-bar")));this.actionBars=e,this.setActionBarsLayout(e)},this.handleHeaderSlotChange=t=>{this.hasHeader=s(t)},this.collapsed=!1,this.detached=!1,this.displayMode="dock",this.detachedHeightScale=void 0,this.heightScale=void 0,this.widthScale="m",this.layout="vertical",this.position="start",this.resizable=!1,this.messages=void 0,this.messageOverrides=void 0,this.contentWidth=null,this.contentHeight=null,this.defaultMessages=void 0,this.effectiveLocale="",this.hasHeader=!1}handleDetached(t){t?this.displayMode="float":"float"===this.displayMode&&(this.displayMode="dock")}handleDisplayMode(t){this.detached="float"===t}handleDetachedHeightScale(t){this.heightScale=t}handleHeightScale(t){this.detachedHeightScale=t}layoutHandler(){this.setActionBarsLayout(this.actionBars)}onMessagesChange(){}connectedCallback(){a(this),p(this),u(this)}async componentWillLoad(){await m(this)}disconnectedCallback(){l(this),this.disconnectSeparator(),x(this),w(this)}componentDidLoad(){this.updateAriaValues()}effectiveLocaleChange(){v(this,this.effectiveLocale)}renderHeader(){return e("div",{class:"content__header",hidden:!this.hasHeader,key:"header"},e("slot",{name:"header",onSlotchange:this.handleHeaderSlotChange}))}render(){const{collapsed:t,position:i,initialContentWidth:n,initialContentHeight:o,contentWidth:a,contentWidthMax:l,contentWidthMin:s,contentHeight:r,contentHeightMax:c,contentHeightMin:d,resizable:p,layout:x,displayMode:b}=this,u=h(this.el),m="float"!==b&&p,w=m?"horizontal"===x?r?{height:`${r}px`}:null:a?{width:`${a}px`}:null:null,v=!t&&m?e("div",{"aria-label":this.messages.resize,"aria-orientation":"horizontal"===x?"vertical":"horizontal","aria-valuemax":"horizontal"==x?c:l,"aria-valuemin":"horizontal"==x?d:s,"aria-valuenow":"horizontal"==x?r??o:a??n,class:"separator",key:"separator",onKeyDown:this.separatorKeyDown,role:"separator",tabIndex:0,"touch-action":"none",ref:this.connectSeparator}):null,g=e("div",{class:{[f.rtl]:"rtl"===u,content:!0,"content--overlay":"overlay"===b,"content--float":"float"===b,[f.calciteAnimate]:"overlay"===b,["horizontal"===x?"start"===i?f.calciteAnimateInDown:f.calciteAnimateInUp:"ltr"===u&&"end"===i||"rtl"===u&&"start"===i?f.calciteAnimateInLeft:f.calciteAnimateInRight]:"overlay"===b},hidden:t,key:"content",style:w,ref:this.storeContentEl},this.renderHeader(),e("div",{class:"content__body"},e("slot",null)),v),y=[e("slot",{key:"action-bar",name:"action-bar",onSlotchange:this.handleActionBarSlotChange}),g];return"end"===i&&y.reverse(),e("div",{class:{container:!0}},y)}setContentWidth(t){const{contentWidthMax:e,contentWidthMin:i}=this,n=Math.round(t);this.contentWidth="number"==typeof e&&"number"==typeof i?b(n,i,e):n}updateAriaValues(){const{contentEl:t}=this,e=t&&getComputedStyle(t);e&&("horizontal"===this.layout?this.updateHeights(e):this.updateWidths(e),o(this))}setContentHeight(t){const{contentHeightMax:e,contentHeightMin:i}=this,n=Math.round(t);this.contentHeight="number"==typeof e&&"number"==typeof i?b(n,i,e):n}updateWidths(t){const e=parseInt(t.getPropertyValue("max-width"),10),i=parseInt(t.getPropertyValue("min-width"),10),n=parseInt(t.getPropertyValue("width"),10);"number"!=typeof n||isNaN(n)||(this.initialContentWidth=n),"number"!=typeof e||isNaN(e)||(this.contentWidthMax=e),"number"!=typeof i||isNaN(i)||(this.contentWidthMin=i)}updateHeights(t){const e=parseInt(t.getPropertyValue("max-height"),10),i=parseInt(t.getPropertyValue("min-height"),10),n=parseInt(t.getPropertyValue("height"),10);"number"!=typeof n||isNaN(n)||(this.initialContentHeight=n),"number"!=typeof e||isNaN(e)||(this.contentHeightMax=e),"number"!=typeof i||isNaN(i)||(this.contentHeightMin=i)}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{detached:["handleDetached"],displayMode:["handleDisplayMode"],detachedHeightScale:["handleDetachedHeightScale"],heightScale:["handleHeightScale"],layout:["layoutHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};C.style=":host{pointer-events:none;position:relative;display:flex;flex:0 1 auto;align-items:stretch;z-index:var(--calcite-shell-panel-z-index, var(--calcite-app-z-index));--calcite-shell-panel-detached-max-height:unset;--calcite-shell-panel-max-height:unset;--calcite-shell-panel-shadow-block-start-internal:0 4px 8px -1px rgba(0, 0, 0, 0.08),\n 0 2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-block-end-internal:0 -4px 8px -1px rgba(0, 0, 0, 0.08),\n 0 -2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-start-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08),\n 2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-end-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08),\n -2px 0 4px -1px rgba(0, 0, 0, 0.04)}.calcite--rtl.content--overlay{--calcite-shell-panel-shadow-inline-start-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08),\n -2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-end-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08),\n 2px 0 4px -1px rgba(0, 0, 0, 0.04)}:host([layout=vertical]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-app-z-index) + 1))}:host([layout=vertical][display-mode=overlay]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-app-z-index-header) + 1))}:host([layout=vertical][width-scale=s]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 12vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 300px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical][width-scale=m]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 20vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 420px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical][width-scale=l]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 45vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 680px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 340px)}:host([layout=horizontal][height-scale=s]) .content{--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 20vh)\n )}:host([layout=horizontal]) .content{--calcite-shell-panel-min-height-internal:var(--calcite-shell-panel-min-height, 5vh);--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 30vh)\n )}:host([layout=horizontal][height-scale=l]) .content{--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 40vh)\n )}.container{pointer-events:none;box-sizing:border-box;display:flex;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}.container *{box-sizing:border-box}:host([layout=horizontal]) .container{flex-direction:column}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}.separator{pointer-events:auto;position:absolute;display:flex;background-color:transparent;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-ui-border-2)}.separator:focus{background-color:var(--calcite-ui-brand);opacity:1}:host([layout=vertical]) .separator{inset-block:0px;block-size:100%;inline-size:0.125rem;cursor:col-resize}:host([layout=horizontal][position=start]) .separator{inset-block-end:0px}:host([layout=horizontal][position=end]) .separator{inset-block-start:0px}:host([layout=horizontal]) .separator{inset-inline-end:0px;block-size:0.125rem;inline-size:100%;cursor:row-resize}:host([layout=vertical][position=start]) .separator{inset-inline-end:-2px}:host([layout=horizontal][position=start]) .separator{inset-block-end:-2px}:host([layout=vertical][position=end]) .separator{inset-inline-start:-2px}:host([layout=horizontal][position=end]) .separator{inset-block-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}::slotted(.calcite-match-height){display:flex;flex:1 1 auto;overflow:hidden}.content{pointer-events:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;background-color:var(--calcite-ui-background);padding:0px;transition:max-block-size var(--calcite-animation-timing), max-inline-size var(--calcite-animation-timing)}:host([layout=vertical]) .content{inline-size:var(--calcite-shell-panel-width-internal);max-inline-size:var(--calcite-shell-panel-max-width-internal);min-inline-size:var(--calcite-shell-panel-min-width-internal)}:host([layout=horizontal]) .content{block-size:var(--calcite-shell-panel-height-internal);max-block-size:var(--calcite-shell-panel-max-height-internal);min-block-size:var(--calcite-shell-panel-min-height-internal)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.content--overlay{position:absolute;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -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)}:host([layout=vertical]) .content--overlay{inset-block-start:0px;block-size:100%}:host([layout=horizontal]) .content--overlay{inset-inline-start:0px;inline-size:100%}:host([layout=vertical][position=start]) .content--overlay{inset-inline-start:100%;box-shadow:var(--calcite-shell-panel-shadow-inline-start-internal)}:host([layout=vertical][position=end]) .content--overlay{inset-inline-end:100%;box-shadow:var(--calcite-shell-panel-shadow-inline-end-internal)}:host([layout=horizontal][position=start]) .content--overlay{inset-block-start:100%;box-shadow:var(--calcite-shell-panel-shadow-block-start-internal)}:host([layout=horizontal][position=end]) .content--overlay{inset-block-end:100%;box-shadow:var(--calcite-shell-panel-shadow-block-end-internal)}.content--float{margin-inline:0.5rem;margin-block:0.5rem auto;block-size:auto;overflow:hidden;border-radius:0.25rem;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -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);max-block-size:var(--calcite-shell-panel-max-height-internal, calc(100% - 1rem))}.content--float ::slotted(calcite-panel),.content--float ::slotted(calcite-flow){max-block-size:unset}:host([layout=horizontal]) .content--float{margin-block:0.5rem}:host([position=start]) .content--float ::slotted(calcite-panel),:host([position=start]) .content--float ::slotted(calcite-flow),:host([position=end]) .content--float ::slotted(calcite-panel),:host([position=end]) .content--float ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){border-inline-end:none}:host([layout=horizontal]) slot[name=action-bar]::slotted(calcite-action-bar){border-inline:0}:host([layout=horizontal][position=start]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=start]) .content ::slotted(calcite-panel){border-inline:0;border-block-start:0}:host([layout=horizontal][position=end]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=end]) .content ::slotted(calcite-panel){border-inline:0;border-block-end:0}:host([hidden]){display:none}[hidden]{display:none}";export{y as calcite_shell,k as calcite_shell_center_row,C as calcite_shell_panel}
|
|
6
|
+
import{r as t,h as e,F as i,a as n,f as o}from"./p-1e2ba4bf.js";import{c as a,d as l}from"./p-f36629d7.js";import{b as s,s as r,h as c,g as h,i as d}from"./p-ec54c252.js";import{c as p,d as x}from"./p-681ad15b.js";import{c as b}from"./p-d75bbbf9.js";import{c as u,s as m,d as w,u as v}from"./p-6d89139d.js";import{C as f}from"./p-4f0e68f6.js";import"./p-cecee68f.js";import"./p-6d654c82.js";import"./p-d5c1db84.js";const g="content",y=class{constructor(e){t(this,e),this.handleHeaderSlotChange=t=>{this.hasHeader=!!s(t)},this.handleFooterSlotChange=t=>{this.hasFooter=!!s(t)},this.handleAlertsSlotChange=t=>{this.hasAlerts=!!s(t),r(t)?.map((t=>{"CALCITE-ALERT"===t.nodeName&&(t.slottedInShell=!0)}))},this.handleSheetsSlotChange=t=>{this.hasSheets=!!s(t),r(t)?.map((t=>{"CALCITE-SHEET"===t.nodeName&&(t.slottedInShell=!0)}))},this.handleModalsSlotChange=t=>{this.hasModals=!!s(t),r(t)?.map((t=>{"CALCITE-MODAL"===t.nodeName&&(t.slottedInShell=!0)}))},this.contentBehind=!1,this.hasHeader=!1,this.hasFooter=!1,this.hasAlerts=!1,this.hasModals=!1,this.hasSheets=!1}connectedCallback(){a(this)}disconnectedCallback(){l(this)}renderHeader(){return e("div",{hidden:!this.hasHeader},e("slot",{key:"header",name:"header",onSlotchange:this.handleHeaderSlotChange}))}renderFooter(){return e("div",{class:"footer",hidden:!this.hasFooter,key:"footer"},e("slot",{name:"footer",onSlotchange:this.handleFooterSlotChange}))}renderAlerts(){return e("div",{hidden:!this.hasAlerts},e("slot",{key:"alerts",name:"alerts",onSlotchange:this.handleAlertsSlotChange}))}renderSheets(){return e("div",{hidden:!this.hasSheets},e("slot",{key:"sheets",name:"sheets",onSlotchange:this.handleSheetsSlotChange}))}renderModals(){return e("div",{hidden:!this.hasModals},e("slot",{key:"modals",name:"modals",onSlotchange:this.handleModalsSlotChange}))}renderContent(){const t=e("slot",{key:"default-slot"}),i=e("slot",{key:"center-row-slot",name:"center-row"}),n=e("slot",{key:"panel-bottom-slot",name:"panel-bottom"}),o=e("slot",{key:"panel-top-slot",name:"panel-top"}),a="content-container";return this.contentBehind?[e("div",{class:{[g]:!0,"content--behind":!0},key:a},t),e("div",{class:"center-content"},o,n,i)]:[e("div",{class:g,key:a},o,t,n,i)]}renderMain(){return e("div",{class:"main"},e("slot",{name:"panel-start"}),this.renderContent(),e("slot",{name:"panel-end"}))}renderPositionedSlots(){return e("div",{class:"positioned-slot-wrapper"},this.renderAlerts(),this.renderModals(),this.renderSheets())}render(){return e(i,null,this.renderHeader(),this.renderMain(),this.renderFooter(),this.renderPositionedSlots())}get el(){return n(this)}};y.style=":host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:absolute;inset:0px;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;--calcite-shell-tip-spacing:26vw}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0px;border-width:0px;z-index:calc(var(--calcite-app-z-index) - 1);display:initial}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3)}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-top]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-bottom]::slotted(calcite-shell-center-row:not([detached])){border-inline-start-width:1px;border-inline-end-width:1px;border-color:var(--calcite-ui-border-3)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}::slotted(calcite-shell-center-row){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-app-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);inset-block-end:0.5rem;inset-inline:var(--calcite-shell-tip-spacing)}slot[name=center-row]::slotted(calcite-shell-center-row),slot[name=panel-bottom]::slotted(calcite-shell-center-row){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-center-row){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}:host([hidden]){display:none}[hidden]{display:none}";const z="action-bar",k=class{constructor(e){t(this,e),this.detached=!1,this.heightScale="s",this.position="end"}connectedCallback(){a(this)}disconnectedCallback(){l(this)}render(){const{el:t}=this,n=e("div",{class:"content"},e("slot",null)),o=c(t,z),a=[o?e("div",{class:"action-bar-container",key:"action-bar"},e("slot",{name:z})):null,n];return"end"===o?.position&&a.reverse(),e(i,null,a)}get el(){return n(this)}};k.style=":host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{z-index:var(--calcite-app-z-index);display:flex;flex:1 1 auto;overflow:hidden;background-color:transparent}.content{margin:0px;display:flex;block-size:100%;inline-size:100%;overflow:hidden;flex:1 0 0}.action-bar-container{display:flex}:host([detached]){margin-inline:0.5rem;margin-block:0.5rem 1.5rem}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}:host([detached]){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;border-width:0px;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -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)}:host([position=end]){align-self:flex-end}:host([position=start]){align-self:flex-start}:host([height-scale=s]){block-size:33.333333%}:host([height-scale=m]){block-size:70%}:host([height-scale=l]){block-size:100%}:host([height-scale=l][detached]){block-size:calc(100% - 2rem)}::slotted(calcite-panel){block-size:100%;inline-size:100%}::slotted(calcite-action-bar),::slotted(calcite-action-bar[position=end]){border-inline-end:1px solid;border-color:var(--calcite-ui-border-3)}:host([hidden]){display:none}[hidden]{display:none}";const C=class{constructor(e){t(this,e),this.initialContentWidth=null,this.initialContentHeight=null,this.initialClientX=null,this.initialClientY=null,this.contentWidthMax=null,this.contentWidthMin=null,this.contentHeightMax=null,this.contentHeightMin=null,this.step=1,this.stepMultiplier=10,this.actionBars=[],this.storeContentEl=t=>{this.contentEl=t},this.getKeyAdjustedSize=t=>{const{key:e}=t,{el:i,step:n,stepMultiplier:o,layout:a,contentWidthMin:l,contentWidthMax:s,initialContentWidth:r,initialContentHeight:c,contentHeightMin:d,contentHeightMax:p,position:x}=this,b=n*o;["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"].indexOf(e)>-1&&t.preventDefault();const u=["ArrowLeft","ArrowRight"],m=["ArrowDown","ArrowUp"],w="rtl"===h(i)&&u.includes(e)?-1:1;if("horizontal"===a?"end"===x?e===m[1]||e===u[0]:e===m[0]||e===u[1]:e===m[1]||("end"===x?e===u[0]:e===u[1])){const e=t.shiftKey?b:n;return"horizontal"===a?c+w*e:r+w*e}if("horizontal"===a?"end"===x?e===m[0]||e===u[0]:e===m[1]||e===u[1]:e===m[0]||("end"===x?e===u[1]:e===u[0])){const e=t.shiftKey?b:n;return"horizontal"===a?c-w*e:r-w*e}return"Home"===e&&"horizontal"===a&&"number"==typeof d?d:"Home"===e&&"vertical"===a&&"number"==typeof l?l:"End"===e&&"horizontal"===a&&"number"==typeof p?p:"End"===e&&"vertical"===a&&"number"==typeof s?s:"PageDown"===e?"horizontal"===a?c-b:r-b:"PageUp"===e?"horizontal"===a?c+b:r+b:null},this.initialKeydownWidth=t=>{this.setInitialContentWidth();const e=this.getKeyAdjustedSize(t);"number"==typeof e&&this.setContentWidth(e)},this.initialKeydownHeight=t=>{this.setInitialContentHeight();const e=this.getKeyAdjustedSize(t);"number"==typeof e&&this.setContentHeight(e)},this.separatorKeyDown=t=>{"horizontal"===this.layout?this.initialKeydownHeight(t):this.initialKeydownWidth(t)},this.separatorPointerMove=t=>{t.preventDefault();const{el:e,layout:i,initialContentWidth:n,initialContentHeight:o,position:a,initialClientX:l,initialClientY:s}=this,r="horizontal"===i?t.clientY-s:t.clientX-l,c="vertical"===i&&"rtl"===h(e)?-1:1,d="end"===a?-c*r:c*r;"horizontal"===i?this.setContentHeight(o+d):this.setContentWidth(n+d)},this.separatorPointerUp=t=>{d(t)&&(t.preventDefault(),document.removeEventListener("pointerup",this.separatorPointerUp),document.removeEventListener("pointermove",this.separatorPointerMove))},this.setInitialContentHeight=()=>{this.initialContentHeight=this.contentEl?.getBoundingClientRect().height},this.setInitialContentWidth=()=>{this.initialContentWidth=this.contentEl?.getBoundingClientRect().width},this.separatorPointerDown=t=>{if(!d(t))return;t.preventDefault();const{separatorEl:e}=this;e&&document.activeElement!==e&&e.focus(),"horizontal"===this.layout?(this.setInitialContentHeight(),this.initialClientY=t.clientY):(this.setInitialContentWidth(),this.initialClientX=t.clientX),document.addEventListener("pointerup",this.separatorPointerUp),document.addEventListener("pointermove",this.separatorPointerMove)},this.connectSeparator=t=>{this.disconnectSeparator(),this.separatorEl=t,t?.addEventListener("pointerdown",this.separatorPointerDown)},this.disconnectSeparator=()=>{this.separatorEl?.removeEventListener("pointerdown",this.separatorPointerDown)},this.setActionBarsLayout=t=>{t.forEach((t=>t.layout=this.layout))},this.handleActionBarSlotChange=t=>{const e=r(t).filter((t=>t?.matches("calcite-action-bar")));this.actionBars=e,this.setActionBarsLayout(e)},this.handleHeaderSlotChange=t=>{this.hasHeader=s(t)},this.collapsed=!1,this.detached=!1,this.displayMode="dock",this.detachedHeightScale=void 0,this.heightScale=void 0,this.widthScale="m",this.layout="vertical",this.position="start",this.resizable=!1,this.messages=void 0,this.messageOverrides=void 0,this.contentWidth=null,this.contentHeight=null,this.defaultMessages=void 0,this.effectiveLocale="",this.hasHeader=!1}handleDetached(t){t?this.displayMode="float":"float"===this.displayMode&&(this.displayMode="dock")}handleDisplayMode(t){this.detached="float"===t}handleDetachedHeightScale(t){this.heightScale=t}handleHeightScale(t){this.detachedHeightScale=t}layoutHandler(){this.setActionBarsLayout(this.actionBars)}onMessagesChange(){}connectedCallback(){a(this),p(this),u(this)}async componentWillLoad(){await m(this)}disconnectedCallback(){l(this),this.disconnectSeparator(),x(this),w(this)}componentDidLoad(){this.updateAriaValues()}effectiveLocaleChange(){v(this,this.effectiveLocale)}renderHeader(){return e("div",{class:"content__header",hidden:!this.hasHeader,key:"header"},e("slot",{name:"header",onSlotchange:this.handleHeaderSlotChange}))}render(){const{collapsed:t,position:i,initialContentWidth:n,initialContentHeight:o,contentWidth:a,contentWidthMax:l,contentWidthMin:s,contentHeight:r,contentHeightMax:c,contentHeightMin:d,resizable:p,layout:x,displayMode:b}=this,u=h(this.el),m="float"!==b&&p,w=m?"horizontal"===x?r?{height:`${r}px`}:null:a?{width:`${a}px`}:null:null,v=!t&&m?e("div",{"aria-label":this.messages.resize,"aria-orientation":"horizontal"===x?"vertical":"horizontal","aria-valuemax":"horizontal"==x?c:l,"aria-valuemin":"horizontal"==x?d:s,"aria-valuenow":"horizontal"==x?r??o:a??n,class:"separator",key:"separator",onKeyDown:this.separatorKeyDown,role:"separator",tabIndex:0,"touch-action":"none",ref:this.connectSeparator}):null,g=e("div",{class:{[f.rtl]:"rtl"===u,content:!0,"content--overlay":"overlay"===b,"content--float":"float"===b,[f.calciteAnimate]:"overlay"===b,["horizontal"===x?"start"===i?f.calciteAnimateInDown:f.calciteAnimateInUp:"ltr"===u&&"end"===i||"rtl"===u&&"start"===i?f.calciteAnimateInLeft:f.calciteAnimateInRight]:"overlay"===b},hidden:t,key:"content",style:w,ref:this.storeContentEl},this.renderHeader(),e("div",{class:"content__body"},e("slot",null)),v),y=[e("slot",{key:"action-bar",name:"action-bar",onSlotchange:this.handleActionBarSlotChange}),g];return"end"===i&&y.reverse(),e("div",{class:{container:!0}},y)}setContentWidth(t){const{contentWidthMax:e,contentWidthMin:i}=this,n=Math.round(t);this.contentWidth="number"==typeof e&&"number"==typeof i?b(n,i,e):n}updateAriaValues(){const{contentEl:t}=this,e=t&&getComputedStyle(t);e&&("horizontal"===this.layout?this.updateHeights(e):this.updateWidths(e),o(this))}setContentHeight(t){const{contentHeightMax:e,contentHeightMin:i}=this,n=Math.round(t);this.contentHeight="number"==typeof e&&"number"==typeof i?b(n,i,e):n}updateWidths(t){const e=parseInt(t.getPropertyValue("max-width"),10),i=parseInt(t.getPropertyValue("min-width"),10),n=parseInt(t.getPropertyValue("width"),10);"number"!=typeof n||isNaN(n)||(this.initialContentWidth=n),"number"!=typeof e||isNaN(e)||(this.contentWidthMax=e),"number"!=typeof i||isNaN(i)||(this.contentWidthMin=i)}updateHeights(t){const e=parseInt(t.getPropertyValue("max-height"),10),i=parseInt(t.getPropertyValue("min-height"),10),n=parseInt(t.getPropertyValue("height"),10);"number"!=typeof n||isNaN(n)||(this.initialContentHeight=n),"number"!=typeof e||isNaN(e)||(this.contentHeightMax=e),"number"!=typeof i||isNaN(i)||(this.contentHeightMin=i)}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{detached:["handleDetached"],displayMode:["handleDisplayMode"],detachedHeightScale:["handleDetachedHeightScale"],heightScale:["handleHeightScale"],layout:["layoutHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};C.style=":host{pointer-events:none;position:relative;display:flex;flex:0 1 auto;align-items:stretch;z-index:var(--calcite-shell-panel-z-index, var(--calcite-app-z-index));--calcite-shell-panel-detached-max-height:unset;--calcite-shell-panel-max-height:unset;--calcite-shell-panel-shadow-block-start-internal:0 4px 8px -1px rgba(0, 0, 0, 0.08),\n 0 2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-block-end-internal:0 -4px 8px -1px rgba(0, 0, 0, 0.08),\n 0 -2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-start-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08),\n 2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-end-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08),\n -2px 0 4px -1px rgba(0, 0, 0, 0.04)}.calcite--rtl.content--overlay{--calcite-shell-panel-shadow-inline-start-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08),\n -2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-shell-panel-shadow-inline-end-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08),\n 2px 0 4px -1px rgba(0, 0, 0, 0.04)}:host([layout=vertical]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-app-z-index) + 1))}:host([layout=vertical][display-mode=overlay]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-app-z-index-header) + 1))}:host([layout=vertical][width-scale=s]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 12vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 300px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical][width-scale=m]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 20vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 420px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical][width-scale=l]) .content{--calcite-shell-panel-width-internal:var(--calcite-shell-panel-width, 45vw);--calcite-shell-panel-max-width-internal:var(--calcite-shell-panel-max-width, 680px);--calcite-shell-panel-min-width-internal:var(--calcite-shell-panel-min-width, 340px)}:host([layout=horizontal][height-scale=s]) .content{--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 20vh)\n )}:host([layout=horizontal]) .content{--calcite-shell-panel-min-height-internal:var(--calcite-shell-panel-min-height, 5vh);--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 30vh)\n )}:host([layout=horizontal][height-scale=l]) .content{--calcite-shell-panel-max-height-internal:var(\n --calcite-shell-panel-max-height,\n var(--calcite-shell-panel-detached-max-height, 40vh)\n )}.container{pointer-events:none;box-sizing:border-box;display:flex;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}.container *{box-sizing:border-box}:host([layout=horizontal]) .container{flex-direction:column}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}.separator{pointer-events:auto;position:absolute;display:flex;background-color:transparent;opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-ui-border-2)}.separator:focus{background-color:var(--calcite-ui-brand);opacity:1}:host([layout=vertical]) .separator{inset-block:0px;block-size:100%;inline-size:0.125rem;cursor:col-resize}:host([layout=horizontal][position=start]) .separator{inset-block-end:0px}:host([layout=horizontal][position=end]) .separator{inset-block-start:0px}:host([layout=horizontal]) .separator{inset-inline-end:0px;block-size:0.125rem;inline-size:100%;cursor:row-resize}:host([layout=vertical][position=start]) .separator{inset-inline-end:-2px}:host([layout=horizontal][position=start]) .separator{inset-block-end:-2px}:host([layout=vertical][position=end]) .separator{inset-inline-start:-2px}:host([layout=horizontal][position=end]) .separator{inset-block-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}::slotted(.calcite-match-height){display:flex;flex:1 1 auto;overflow:hidden}.content{pointer-events:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;background-color:var(--calcite-ui-background);padding:0px;transition:max-block-size var(--calcite-animation-timing), max-inline-size var(--calcite-animation-timing)}:host([layout=vertical]) .content{inline-size:var(--calcite-shell-panel-width-internal);max-inline-size:var(--calcite-shell-panel-max-width-internal);min-inline-size:var(--calcite-shell-panel-min-width-internal)}:host([layout=horizontal]) .content{block-size:var(--calcite-shell-panel-height-internal);max-block-size:var(--calcite-shell-panel-max-height-internal);min-block-size:var(--calcite-shell-panel-min-height-internal)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.content--overlay{position:absolute;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -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)}:host([layout=vertical]) .content--overlay{inset-block-start:0px;block-size:100%}:host([layout=horizontal]) .content--overlay{inset-inline-start:0px;inline-size:100%}:host([layout=vertical][position=start]) .content--overlay{inset-inline-start:100%;box-shadow:var(--calcite-shell-panel-shadow-inline-start-internal)}:host([layout=vertical][position=end]) .content--overlay{inset-inline-end:100%;box-shadow:var(--calcite-shell-panel-shadow-inline-end-internal)}:host([layout=horizontal][position=start]) .content--overlay{inset-block-start:100%;box-shadow:var(--calcite-shell-panel-shadow-block-start-internal)}:host([layout=horizontal][position=end]) .content--overlay{inset-block-end:100%;box-shadow:var(--calcite-shell-panel-shadow-block-end-internal)}.content--float{margin-inline:0.5rem;margin-block:0.5rem auto;block-size:auto;overflow:hidden;border-radius:0.25rem;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -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);max-block-size:var(--calcite-shell-panel-max-height-internal, calc(100% - 1rem))}.content--float ::slotted(calcite-panel),.content--float ::slotted(calcite-flow){max-block-size:unset}:host([layout=horizontal]) .content--float{margin-block:0.5rem}:host([position=start]) .content--float ::slotted(calcite-panel),:host([position=start]) .content--float ::slotted(calcite-flow),:host([position=end]) .content--float ::slotted(calcite-panel),:host([position=end]) .content--float ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){border-inline-end:none}:host([layout=horizontal]) slot[name=action-bar]::slotted(calcite-action-bar){border-inline:0}:host([layout=horizontal][position=start]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=start]) .content ::slotted(calcite-panel){border-inline:0;border-block-start:0}:host([layout=horizontal][position=end]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=end]) .content ::slotted(calcite-panel){border-inline:0;border-block-end:0}:host([hidden]){display:none}[hidden]{display:none}";export{y as calcite_shell,k as calcite_shell_center_row,C as calcite_shell_panel}
|
|
@@ -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.7.1-next.
|
|
4
|
+
* v1.7.1-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as e,h as i,a as s,F as n}from"./p-c0998ebd.js";import{i as r,g as a,d as o,j as l}from"./p-8855b89e.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-ca9571d4.js";import{c as j,d as A,u as z}from"./p-fc5d4a53.js";import{i as S}from"./p-c5c8c0fc.js";import{c as F,s as O,a as $}from"./p-e151baea.js";import{c as D,d as I}from"./p-b7baabd1.js";import{r as q,c as E,a as N}from"./p-89ff598b.js";import{u as L,s as K,c as U,d as P}from"./p-28b495e7.js";import{t as T}from"./p-f4261fb9.js";import"./p-34027ea7.js";import"./p-78a6caff.js";import"./p-a589742b.js";import"./p-90b233f6.js";import"./p-dd5c2bf0.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-1e2ba4bf.js";import{i as r,g as a,d as o,j as l}from"./p-ec54c252.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-ccf5deb3.js";import{c as j,d as A,u as z}from"./p-13c29de5.js";import{i as S}from"./p-d5c1db84.js";import{c as F,s as O,a as $}from"./p-8f6fef56.js";import{c as D,d as I}from"./p-681ad15b.js";import{r as q,c as E,a as N}from"./p-d75bbbf9.js";import{u as L,s as K,c as U,d as P}from"./p-6d89139d.js";import{t as T}from"./p-887444be.js";import"./p-6d654c82.js";import"./p-4f0e68f6.js";import"./p-8db9a211.js";import"./p-cecee68f.js";import"./p-c21c35f7.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.7.1-next.
|
|
4
|
+
* v1.7.1-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,h as a,a as o}from"./p-
|
|
6
|
+
import{r as t,h as a,a as o}from"./p-1e2ba4bf.js";import{d as s}from"./p-ec54c252.js";import{c as i,u as d,d as e}from"./p-13c29de5.js";import{s as r,a as l,c as p}from"./p-8f6fef56.js";import"./p-6d654c82.js";import"./p-4f0e68f6.js";import"./p-8db9a211.js";const c=class{constructor(a){t(this,a),this.appearance="solid",this.kind="brand",this.disabled=!1,this.icon="plus",this.iconFlipRtl=!1,this.label=void 0,this.loading=!1,this.scale="m",this.text=void 0,this.textEnabled=!1}connectedCallback(){i(this)}componentWillLoad(){r(this)}componentDidLoad(){l(this)}componentDidRender(){d(this)}disconnectedCallback(){e(this)}async setFocus(){await p(this),s(this.buttonEl)}render(){const{appearance:t,kind:o,disabled:s,loading:i,scale:d,textEnabled:e,icon:r,label:l,text:p,iconFlipRtl:c}=this;return a("calcite-button",{appearance:"solid"===t?"solid":"outline-fill",class:"button",disabled:s,iconFlipRtl:c?"start":null,iconStart:r,kind:o,label:l,loading:i,round:!0,scale:d,title:e?null:l||p||null,type:"button",width:"auto",ref:t=>{this.buttonEl=t}},this.textEnabled?this.text:null)}get el(){return o(this)}};c.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:flex;background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}calcite-button{--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}calcite-button:hover{--tw-shadow:0 12px 32px -2px rgba(0, 0, 0, 0.1), 0 4px 20px 0 rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 12px 32px -2px var(--tw-shadow-color), 0 4px 20px 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)}calcite-button:active{--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px 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([hidden]){display:none}[hidden]{display:none}";export{c as calcite_fab}
|
|
@@ -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.7.1-next.
|
|
4
|
+
* v1.7.1-next.2
|
|
5
5
|
*/
|
|
6
|
-
import{d as _}from"./p-
|
|
6
|
+
import{d as _}from"./p-e4b69cd8.js";import"./p-1e2ba4bf.js";import"./p-e6017353.js";import"./p-ec54c252.js";import"./p-6d654c82.js";import"./p-4f0e68f6.js";import"./p-13c29de5.js";import"./p-8db9a211.js";import"./p-d5c1db84.js";import"./p-6b7921aa.js";import"./p-8f6fef56.js";import"./p-681ad15b.js";import"./p-cecee68f.js";import"./p-da08a08e.js";import"./p-d75bbbf9.js";import"./p-6d89139d.js";var m="січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),r="січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),p=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function t(_,m,r){var p,t;return"m"===r?m?"хвилина":"хвилину":"h"===r?m?"година":"годину":_+" "+(p=+_,t={ss:m?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:m?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:m?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[r].split("_"),p%10==1&&p%100!=11?t[0]:p%10>=2&&p%10<=4&&(p%100<10||p%100>=20)?t[1]:t[2])}var s=function(_,t){return p.test(t)?m[_.month()]:r[_.month()]};s.s=r,s.f=m;var e={name:"uk",weekdays:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),weekdaysShort:"ндл_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:s,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekStart:1,relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:t,mm:t,h:t,hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"}};_.locale(e,null,!0);export default e;
|