@esri/calcite-components 1.4.0-next.4 → 1.4.0-next.6
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-1b48dcda.entry.js → p-00e1b3a8.entry.js} +2 -2
- package/dist/calcite/{p-4a86d1ab.js → p-02706e35.js} +1 -1
- package/dist/calcite/p-058ac7cb.entry.js +6 -0
- package/dist/calcite/{p-be5734f7.js → p-08fb12d7.js} +2 -2
- package/dist/calcite/{p-5081856a.entry.js → p-09339f89.entry.js} +2 -2
- package/dist/calcite/{p-549d3d07.entry.js → p-0f9e9bef.entry.js} +2 -2
- package/dist/calcite/{p-198ab071.entry.js → p-15d26e08.entry.js} +2 -2
- package/dist/calcite/{p-c6c82380.entry.js → p-1678bfd5.entry.js} +2 -2
- package/dist/calcite/{p-14f78c1b.entry.js → p-18e2b588.entry.js} +2 -2
- package/dist/calcite/{p-14eccdb3.entry.js → p-198abcbb.entry.js} +2 -2
- package/dist/calcite/p-1bcc4ef2.js +6 -0
- package/dist/calcite/{p-4be0d67c.entry.js → p-20c6068d.entry.js} +2 -2
- package/dist/calcite/{p-2468ff71.js → p-238464b3.js} +1 -1
- package/dist/calcite/{p-10335369.js → p-24833d0f.js} +2 -2
- package/dist/calcite/{p-a8ae64d6.js → p-28ee6675.js} +1 -1
- package/dist/calcite/{p-f8af9a6c.js → p-2d155925.js} +1 -1
- package/dist/calcite/{p-f8ff6c94.entry.js → p-2f987df1.entry.js} +2 -2
- package/dist/calcite/{p-a0d99484.entry.js → p-309c88b2.entry.js} +2 -2
- package/dist/calcite/{p-460df0b5.js → p-36a4f2c8.js} +1 -1
- package/dist/calcite/{p-607951d2.entry.js → p-3c58757e.entry.js} +2 -2
- package/dist/calcite/{p-3465fcef.js → p-3d782f5e.js} +1 -1
- package/dist/calcite/{p-9170dc8c.entry.js → p-3e4ed9a3.entry.js} +2 -2
- package/dist/calcite/{p-29675f69.entry.js → p-3f09b972.entry.js} +2 -2
- package/dist/calcite/{p-b88213e9.entry.js → p-3fb7e1e9.entry.js} +2 -2
- package/dist/calcite/{p-4094c395.js → p-49e5e96a.js} +1 -1
- package/dist/calcite/{p-e4676089.entry.js → p-4ad0e5e7.entry.js} +2 -2
- package/dist/calcite/{p-167a7bdc.js → p-50e95bdb.js} +1 -1
- package/dist/calcite/{p-e7e84acd.entry.js → p-51f4cb23.entry.js} +2 -2
- package/dist/calcite/{p-09b5e911.entry.js → p-520cf1b0.entry.js} +2 -2
- package/dist/calcite/{p-690e8224.entry.js → p-56d69bd6.entry.js} +2 -2
- package/dist/calcite/{p-4612e3c4.entry.js → p-5b82075d.entry.js} +2 -2
- package/dist/calcite/{p-5099d131.entry.js → p-6582a43e.entry.js} +2 -2
- package/dist/calcite/{p-99546fc2.entry.js → p-6989f500.entry.js} +2 -2
- package/dist/calcite/{p-ac512a57.entry.js → p-6aadaed2.entry.js} +2 -2
- package/dist/calcite/{p-eabc3a81.entry.js → p-6c011dac.entry.js} +2 -2
- package/dist/calcite/{p-110f836d.js → p-6e1f7f1f.js} +1 -1
- package/dist/calcite/{p-762e069e.entry.js → p-70edce50.entry.js} +2 -2
- package/dist/calcite/{p-00346107.entry.js → p-71294102.entry.js} +2 -2
- package/dist/calcite/{p-c592404b.entry.js → p-721669b1.entry.js} +2 -2
- package/dist/calcite/{p-cc5d73b1.entry.js → p-7773ec0c.entry.js} +2 -2
- package/dist/calcite/{p-7aac398a.js → p-78ecccfd.js} +2 -2
- package/dist/calcite/{p-7c069e47.entry.js → p-794cd7e0.entry.js} +2 -2
- package/dist/calcite/{p-1e353e72.js → p-7e85033a.js} +1 -1
- package/dist/calcite/{p-37601822.entry.js → p-829a8016.entry.js} +2 -2
- package/dist/calcite/{p-bfa1073e.entry.js → p-8576f7a9.entry.js} +2 -2
- package/dist/calcite/{p-4dd1d026.entry.js → p-85ce36b4.entry.js} +2 -2
- package/dist/calcite/{p-fbb43fd3.entry.js → p-89b037e5.entry.js} +2 -2
- package/dist/calcite/{p-7c93f55c.entry.js → p-8bc8392a.entry.js} +2 -2
- package/dist/calcite/{p-d83e122d.js → p-8d592b3c.js} +1 -1
- package/dist/calcite/{p-bf3b07a8.entry.js → p-8d911c0f.entry.js} +2 -2
- package/dist/calcite/{p-518e42e2.js → p-8e4e219a.js} +1 -1
- package/dist/calcite/{p-798257c9.js → p-8eb6d3d6.js} +2 -2
- package/dist/calcite/{p-9d6d46fb.js → p-8eed6488.js} +1 -1
- package/dist/calcite/{p-1f65fd97.entry.js → p-902ccf8c.entry.js} +2 -2
- package/dist/calcite/{p-41b1924f.entry.js → p-90faa188.entry.js} +2 -2
- package/dist/calcite/{p-5b0e38f4.entry.js → p-94ae14ed.entry.js} +2 -2
- package/dist/calcite/{p-2477ffab.js → p-977a7373.js} +2 -2
- package/dist/calcite/{p-fc5a05c8.js → p-9c5561f6.js} +2 -2
- package/dist/calcite/{p-71ee6c09.js → p-9ecad02c.js} +2 -2
- package/dist/calcite/p-a2dcc545.js +6 -0
- package/dist/calcite/{p-6c28a6a6.entry.js → p-ac50f328.entry.js} +2 -2
- package/dist/calcite/{p-af19d2eb.entry.js → p-acbe9c99.entry.js} +2 -2
- package/dist/calcite/p-ad29a95f.js +6 -0
- package/dist/calcite/{p-3476e72e.js → p-ae330013.js} +2 -2
- package/dist/calcite/{p-88e0c279.js → p-b0388e91.js} +2 -2
- package/dist/calcite/{p-07e56bf4.js → p-b086f92d.js} +1 -1
- package/dist/calcite/p-b3099221.js +6 -0
- package/dist/calcite/{p-c33810ce.js → p-b3f59734.js} +1 -1
- package/dist/calcite/{p-12b426c9.entry.js → p-b7f76e88.entry.js} +2 -2
- package/dist/calcite/p-bb1f280b.entry.js +6 -0
- package/dist/calcite/{p-cafbf219.entry.js → p-bde56e46.entry.js} +2 -2
- package/dist/calcite/{p-48071f1a.entry.js → p-bde9a8bf.entry.js} +2 -2
- package/dist/calcite/{p-e88938fe.entry.js → p-becceac4.entry.js} +2 -2
- package/dist/calcite/p-c3bd1ae0.entry.js +6 -0
- package/dist/calcite/{p-8ac1324f.entry.js → p-c477bf75.entry.js} +2 -2
- package/dist/calcite/{p-db1f6411.js → p-c4e985ef.js} +2 -2
- package/dist/calcite/{p-605ff48d.entry.js → p-c9159a0a.entry.js} +2 -2
- package/dist/calcite/{p-4569f702.entry.js → p-ca95c6ed.entry.js} +2 -2
- package/dist/calcite/{p-dc554515.entry.js → p-cabf475d.entry.js} +2 -2
- package/dist/calcite/p-cc008746.js +6 -0
- package/dist/calcite/{p-b6d1694c.entry.js → p-cd8ecd59.entry.js} +2 -2
- package/dist/calcite/{p-b1c81dcc.js → p-cf5e973f.js} +2 -2
- package/dist/calcite/{p-90b23414.entry.js → p-d4f5d56a.entry.js} +2 -2
- package/dist/calcite/{p-0e0a4c8e.entry.js → p-dda5a868.entry.js} +2 -2
- package/dist/calcite/p-de460c7f.js +6 -0
- package/dist/calcite/p-e907c9d7.entry.js +6 -0
- package/dist/calcite/{p-23c694da.entry.js → p-e9dedbc2.entry.js} +2 -2
- package/dist/calcite/{p-74a4ac3e.js → p-ece4c169.js} +1 -1
- package/dist/calcite/{p-df5d4340.entry.js → p-ef9439cd.entry.js} +2 -2
- package/dist/calcite/p-f0eab93a.entry.js +6 -0
- package/dist/calcite/{p-01e73d3c.entry.js → p-f1dc743d.entry.js} +2 -2
- package/dist/calcite/{p-feb44263.entry.js → p-f2bf5444.entry.js} +2 -2
- package/dist/calcite/{p-ab5ba8d8.entry.js → p-f44b8d1c.entry.js} +2 -2
- package/dist/calcite/{p-083022ce.entry.js → p-fd37640e.entry.js} +2 -2
- package/dist/calcite/{p-18fe3593.entry.js → p-fd38d722.entry.js} +2 -2
- package/dist/calcite/p-ff1e2786.js +6 -0
- package/dist/cjs/{ExpandToggle-9c9692c9.js → ExpandToggle-34efb36e.js} +5 -5
- package/dist/cjs/{FloatingArrow-8cad3e02.js → FloatingArrow-ca4a438c.js} +2 -2
- package/dist/cjs/{Heading-a54c437a.js → Heading-16403a18.js} +2 -2
- package/dist/cjs/{app-globals-6921d6ca.js → app-globals-08fa4928.js} +2 -2
- package/dist/cjs/{array-11eaef78.js → array-a48e72f4.js} +1 -1
- 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 +11 -11
- 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 +12 -12
- package/dist/cjs/calcite-button.cjs.entry.js +13 -13
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
- package/dist/cjs/calcite-chip-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-chip.cjs.entry.js +12 -12
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +585 -339
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +18 -18
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +13 -13
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter.cjs.entry.js +13 -13
- package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -12
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
- 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 +12 -12
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +18 -18
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +14 -14
- package/dist/cjs/calcite-input.cjs.entry.js +13 -13
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +50 -40
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
- package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
- package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
- package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-popover.cjs.entry.js +16 -16
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-text-area.cjs.entry.js +15 -15
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- 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 +16 -16
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{composed-offset-position.esm-5a2f9ff8.js → composed-offset-position.esm-00262258.js} +1 -1
- package/dist/cjs/{conditionalSlot-39f2741e.js → conditionalSlot-44ce332c.js} +3 -3
- package/dist/cjs/{debounce-f09b6263.js → debounce-a2674dc4.js} +1 -1
- package/dist/cjs/{dom-1b2f41d1.js → dom-c4a69490.js} +3 -3
- package/dist/cjs/{filter-c268fa9a.js → filter-a7677076.js} +2 -2
- package/dist/cjs/{floating-ui-86f1cd7e.js → floating-ui-b9ad845e.js} +71 -65
- package/dist/cjs/{focusTrapComponent-84a6204d.js → focusTrapComponent-ad111b58.js} +2 -2
- package/dist/cjs/{form-c4ef3b01.js → form-4441b5de.js} +3 -3
- package/dist/cjs/{guid-053b3b9f.js → guid-3ea77659.js} +1 -1
- package/dist/cjs/{index-3f1e65e1.js → index-5631fa22.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{interactive-002e7de1.js → interactive-0d0f7af7.js} +1 -1
- package/dist/cjs/{key-26c7350c.js → key-5a12f647.js} +1 -1
- package/dist/cjs/{label-c5a73703.js → label-81db116a.js} +2 -2
- package/dist/cjs/{loadable-21f49ddd.js → loadable-9733bc78.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-bec864db.js → locale-cd52f850.js} +4 -4
- package/dist/cjs/{math-b23a2620.js → math-d7fcd025.js} +1 -1
- package/dist/cjs/{observers-7b381996.js → observers-6aa64455.js} +1 -1
- package/dist/cjs/{openCloseComponent-d285707d.js → openCloseComponent-f2d47f5b.js} +2 -2
- package/dist/cjs/{resources-4b35c7c3.js → resources-4a16f695.js} +1 -1
- package/dist/cjs/{resources-ccc69560.js → resources-7805e29e.js} +5 -5
- package/dist/cjs/{resources-d72b2060.js → resources-9c69ee5f.js} +1 -1
- package/dist/cjs/{resources-6603995b.js → resources-a3154079.js} +1 -1
- package/dist/cjs/{resources-42c16d2f.js → resources-cb69cc10.js} +1 -1
- package/dist/cjs/{resources-adbdd1d0.js → resources-fb8b0a5e.js} +1 -1
- package/dist/cjs/{sortable.esm-e90f34c4.js → sortable.esm-b954a413.js} +1 -1
- package/dist/cjs/{t9n-d1d3fae9.js → t9n-e49fe20d.js} +3 -3
- package/dist/cjs/{throttle-d2814ea6.js → throttle-3df9debd.js} +2 -2
- package/dist/cjs/utils-136fb325.js +213 -0
- package/dist/cjs/{utils-da168911.js → utils-411455bc.js} +3 -3
- 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.css +59 -52
- package/dist/collection/components/color-picker/color-picker.js +448 -233
- package/dist/collection/components/color-picker/resources.js +37 -27
- package/dist/collection/components/color-picker/utils.js +116 -30
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +19 -16
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +225 -118
- package/dist/collection/components/color-picker-hex-input/resources.js +3 -3
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.css +10 -6
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +34 -7
- package/dist/collection/components/color-picker-swatch/resources.js +8 -2
- 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-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/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/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-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/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 +60 -30
- package/dist/collection/components/list/resources.js +2 -2
- 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/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/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/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/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/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/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/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/array.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip-group.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +2 -2
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +377 -314
- 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 +2 -617
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +40 -30
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover.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-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-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 +252 -88
- package/dist/components/color-picker-swatch.js +42 -2118
- package/dist/components/composed-offset-position.esm.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +2 -2
- package/dist/components/date.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/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +68 -62
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +2116 -0
- package/dist/components/input-number.js +623 -0
- package/dist/components/input.js +2 -2
- package/dist/components/interactive.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +2 -2
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/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/tabs.js +1 -1
- package/dist/components/throttle.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/components/utils.js +112 -31
- package/dist/components/utils2.js +1 -1
- package/dist/components/utils3.js +1 -1
- package/dist/esm/{ExpandToggle-095e2f69.js → ExpandToggle-84cd3334.js} +5 -5
- package/dist/esm/{FloatingArrow-4e190499.js → FloatingArrow-2a728102.js} +2 -2
- package/dist/esm/{Heading-08826e02.js → Heading-aa5e7f03.js} +2 -2
- package/dist/esm/{app-globals-a86875ad.js → app-globals-9a63f836.js} +2 -2
- package/dist/esm/{array-937e8e63.js → array-cba42ef7.js} +1 -1
- 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 +11 -11
- 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 +12 -12
- package/dist/esm/calcite-button.entry.js +13 -13
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +10 -10
- package/dist/esm/calcite-chip-group.entry.js +8 -8
- package/dist/esm/calcite-chip.entry.js +12 -12
- package/dist/esm/calcite-color-picker_3.entry.js +585 -339
- package/dist/esm/calcite-combobox_3.entry.js +18 -18
- package/dist/esm/calcite-date-picker_4.entry.js +13 -13
- package/dist/esm/calcite-dropdown_3.entry.js +12 -12
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter.entry.js +13 -13
- package/dist/esm/calcite-flow-item.entry.js +12 -12
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +13 -13
- 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 +12 -12
- package/dist/esm/calcite-input-date-picker.entry.js +18 -18
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +13 -13
- package/dist/esm/calcite-input-text.entry.js +13 -13
- package/dist/esm/calcite-input-time-picker_2.entry.js +14 -14
- package/dist/esm/calcite-input.entry.js +13 -13
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +7 -7
- package/dist/esm/calcite-list_3.entry.js +50 -40
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +13 -13
- package/dist/esm/calcite-notice.entry.js +12 -12
- package/dist/esm/calcite-option_3.entry.js +10 -10
- package/dist/esm/calcite-pagination.entry.js +10 -10
- package/dist/esm/calcite-panel.entry.js +14 -14
- package/dist/esm/calcite-pick-list_3.entry.js +16 -16
- package/dist/esm/calcite-popover.entry.js +16 -16
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +10 -10
- package/dist/esm/calcite-rating.entry.js +13 -13
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +9 -9
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +4 -4
- package/dist/esm/calcite-stepper_2.entry.js +10 -10
- package/dist/esm/calcite-switch.entry.js +10 -10
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-text-area.entry.js +15 -15
- package/dist/esm/calcite-tile-select_2.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +8 -8
- 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 +16 -16
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/{composed-offset-position.esm-fb83e249.js → composed-offset-position.esm-2c2ff148.js} +1 -1
- package/dist/esm/{conditionalSlot-98fcfe31.js → conditionalSlot-734f45e3.js} +3 -3
- package/dist/esm/{debounce-911eef82.js → debounce-13053af0.js} +1 -1
- package/dist/esm/{dom-2b55c6b1.js → dom-3643d47b.js} +3 -3
- package/dist/esm/{filter-6a2a0d23.js → filter-c124b3a7.js} +2 -2
- package/dist/esm/{floating-ui-1f96fa4e.js → floating-ui-dde330fd.js} +71 -65
- package/dist/esm/{focusTrapComponent-9f5c20f0.js → focusTrapComponent-be382f0c.js} +2 -2
- package/dist/esm/{form-ef433149.js → form-9b4d08d5.js} +3 -3
- package/dist/esm/{guid-08c9d9d2.js → guid-00c961cf.js} +1 -1
- package/dist/esm/{index-34f68bbe.js → index-de813188.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{interactive-a2eb6b56.js → interactive-7577fa95.js} +1 -1
- package/dist/esm/{key-a12e3d36.js → key-204f54dc.js} +1 -1
- package/dist/esm/{label-e5638056.js → label-aa3ca023.js} +2 -2
- package/dist/esm/{loadable-7ddbc3f7.js → loadable-295e7059.js} +1 -1
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{locale-cdbef5ac.js → locale-cf07a13b.js} +4 -4
- package/dist/esm/{math-2b6a45bc.js → math-81cb18a5.js} +1 -1
- package/dist/esm/{observers-58b3356b.js → observers-e24920a0.js} +1 -1
- package/dist/esm/{openCloseComponent-6350a6b9.js → openCloseComponent-d6957380.js} +2 -2
- package/dist/esm/{resources-f97f2e3d.js → resources-20a9105d.js} +1 -1
- package/dist/esm/{resources-95e5c0bc.js → resources-510afe06.js} +1 -1
- package/dist/esm/{resources-52988112.js → resources-b814eba0.js} +5 -5
- package/dist/esm/{resources-87498192.js → resources-b81c1240.js} +1 -1
- package/dist/esm/{resources-66bba32b.js → resources-d27d888f.js} +1 -1
- package/dist/esm/{resources-509df361.js → resources-f496ba11.js} +1 -1
- package/dist/esm/{sortable.esm-69990d9c.js → sortable.esm-8c3ec43a.js} +1 -1
- package/dist/esm/{t9n-c5155b27.js → t9n-62bf4e90.js} +3 -3
- package/dist/esm/{throttle-161e1712.js → throttle-ab3e5fce.js} +2 -2
- package/dist/esm/utils-119581ee.js +195 -0
- package/dist/esm/{utils-4c71f289.js → utils-1692b158.js} +3 -3
- package/dist/extras/docs-json.json +156 -30
- package/dist/extras/vscode-data.json +22 -2
- 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/color-picker/color-picker.d.ts +54 -23
- package/dist/types/components/color-picker/interfaces.d.ts +1 -0
- package/dist/types/components/color-picker/resources.d.ts +28 -18
- package/dist/types/components/color-picker/utils.d.ts +16 -7
- package/dist/types/components/color-picker-hex-input/color-picker-hex-input.d.ts +33 -16
- package/dist/types/components/color-picker-hex-input/resources.d.ts +2 -2
- package/dist/types/components/color-picker-swatch/color-picker-swatch.d.ts +3 -2
- package/dist/types/components/color-picker-swatch/resources.d.ts +6 -1
- package/dist/types/components/list/list.d.ts +7 -2
- package/dist/types/components/list/resources.d.ts +1 -1
- package/dist/types/components.d.ts +62 -6
- package/dist/types/preact.d.ts +2 -1
- package/hydrate/index.js +796 -447
- package/package.json +4 -5
- package/dist/calcite/p-2927ff1d.js +0 -6
- package/dist/calcite/p-3623550f.entry.js +0 -6
- package/dist/calcite/p-5782f6ba.js +0 -6
- package/dist/calcite/p-5e1869b5.js +0 -6
- package/dist/calcite/p-663a4c37.js +0 -6
- package/dist/calcite/p-8b7561ca.js +0 -6
- package/dist/calcite/p-95860b15.entry.js +0 -6
- package/dist/calcite/p-b0a41644.js +0 -6
- package/dist/calcite/p-b1dcf567.js +0 -6
- package/dist/calcite/p-b73ede81.entry.js +0 -6
- package/dist/calcite/p-c107f270.entry.js +0 -6
- package/dist/calcite/p-f8d77f71.entry.js +0 -6
- package/dist/cjs/utils-78b4120a.js +0 -124
- package/dist/esm/utils-ab93be5f.js +0 -114
|
@@ -1,43 +1,132 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.4.0-next.
|
|
4
|
+
* v1.4.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { h } from "@stencil/core";
|
|
7
|
+
import { alphaToOpacity, hexChar, hexify, isLonghandHex, isValidHex, normalizeHex, opacityToAlpha, rgbToHex } from "../color-picker/utils";
|
|
8
|
+
import { CSS } from "./resources";
|
|
7
9
|
import Color from "color";
|
|
8
10
|
import { focusElement } from "../../utils/dom";
|
|
9
11
|
import { componentLoaded, setComponentLoaded, setUpLoadableComponent } from "../../utils/loadable";
|
|
10
|
-
import {
|
|
11
|
-
import { CSS } from "./resources";
|
|
12
|
+
import { OPACITY_LIMITS } from "../color-picker/resources";
|
|
12
13
|
const DEFAULT_COLOR = Color();
|
|
13
14
|
export class ColorPickerHexInput {
|
|
14
15
|
constructor() {
|
|
15
|
-
this.
|
|
16
|
-
const node = this.
|
|
16
|
+
this.onHexInputBlur = () => {
|
|
17
|
+
const node = this.hexInputNode;
|
|
17
18
|
const inputValue = node.value;
|
|
18
19
|
const hex = `#${inputValue}`;
|
|
19
|
-
const
|
|
20
|
-
|
|
20
|
+
const { allowEmpty, internalColor } = this;
|
|
21
|
+
const willClearValue = allowEmpty && !inputValue;
|
|
22
|
+
const isLonghand = isLonghandHex(hex);
|
|
23
|
+
if (willClearValue || (isValidHex(hex) && isLonghand)) {
|
|
21
24
|
return;
|
|
22
25
|
}
|
|
23
26
|
// manipulating DOM directly since rerender doesn't update input value
|
|
24
27
|
node.value =
|
|
25
|
-
|
|
28
|
+
allowEmpty && !internalColor
|
|
26
29
|
? ""
|
|
27
|
-
: this.
|
|
30
|
+
: this.formatHexForInternalInput(rgbToHex(
|
|
31
|
+
// always display hex input in RRGGBB format
|
|
32
|
+
internalColor.object()));
|
|
33
|
+
};
|
|
34
|
+
this.onOpacityInputBlur = () => {
|
|
35
|
+
const node = this.opacityInputNode;
|
|
36
|
+
const inputValue = node.value;
|
|
37
|
+
const { allowEmpty, internalColor } = this;
|
|
38
|
+
const willClearValue = allowEmpty && !inputValue;
|
|
39
|
+
if (willClearValue) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
// manipulating DOM directly since rerender doesn't update input value
|
|
43
|
+
node.value =
|
|
44
|
+
allowEmpty && !internalColor ? "" : this.formatOpacityForInternalInput(internalColor);
|
|
45
|
+
};
|
|
46
|
+
this.onHexInputChange = () => {
|
|
47
|
+
const nodeValue = this.hexInputNode.value;
|
|
48
|
+
let value = nodeValue;
|
|
49
|
+
if (value) {
|
|
50
|
+
const normalized = normalizeHex(value, false);
|
|
51
|
+
const preserveExistingAlpha = isValidHex(normalized) && this.alphaChannel;
|
|
52
|
+
if (preserveExistingAlpha && this.internalColor) {
|
|
53
|
+
const alphaHex = normalizeHex(this.internalColor.hexa(), true).slice(-2);
|
|
54
|
+
value = `${normalized + alphaHex}`;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
this.internalSetValue(value, this.value);
|
|
28
58
|
};
|
|
29
|
-
this.
|
|
30
|
-
|
|
59
|
+
this.onOpacityInputChange = () => {
|
|
60
|
+
const node = this.opacityInputNode;
|
|
61
|
+
let value;
|
|
62
|
+
if (!node.value) {
|
|
63
|
+
value = node.value;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const alpha = opacityToAlpha(Number(node.value));
|
|
67
|
+
value = this.internalColor?.alpha(alpha).hexa();
|
|
68
|
+
}
|
|
69
|
+
this.internalSetValue(value, this.value);
|
|
70
|
+
};
|
|
71
|
+
this.onInputKeyDown = (event) => {
|
|
72
|
+
const { altKey, ctrlKey, metaKey, shiftKey } = event;
|
|
73
|
+
const { alphaChannel, hexInputNode, internalColor, value } = this;
|
|
74
|
+
const { key } = event;
|
|
75
|
+
const composedPath = event.composedPath();
|
|
76
|
+
if (key === "Tab" || key === "Enter") {
|
|
77
|
+
if (composedPath.includes(hexInputNode)) {
|
|
78
|
+
this.onHexInputChange();
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
this.onOpacityInputChange();
|
|
82
|
+
}
|
|
83
|
+
if (key === "Enter") {
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
}
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const isNudgeKey = key === "ArrowDown" || key === "ArrowUp";
|
|
89
|
+
const oldValue = this.value;
|
|
90
|
+
if (isNudgeKey) {
|
|
91
|
+
if (!value) {
|
|
92
|
+
this.internalSetValue(this.previousNonNullValue, oldValue);
|
|
93
|
+
event.preventDefault();
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
const direction = key === "ArrowUp" ? 1 : -1;
|
|
97
|
+
const bump = shiftKey ? 10 : 1;
|
|
98
|
+
this.internalSetValue(hexify(this.nudgeRGBChannels(internalColor, bump * direction, composedPath.includes(hexInputNode) ? "rgb" : "a"), alphaChannel), oldValue);
|
|
99
|
+
event.preventDefault();
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
const withModifiers = altKey || ctrlKey || metaKey;
|
|
103
|
+
const singleChar = key.length === 1;
|
|
104
|
+
const validHexChar = hexChar.test(key);
|
|
105
|
+
if (singleChar && !withModifiers && !validHexChar) {
|
|
106
|
+
event.preventDefault();
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
this.onHexInputPaste = (event) => {
|
|
110
|
+
const hex = event.clipboardData.getData("text");
|
|
111
|
+
if (isValidHex(hex)) {
|
|
112
|
+
event.preventDefault();
|
|
113
|
+
this.hexInputNode.value = hex.slice(1);
|
|
114
|
+
}
|
|
31
115
|
};
|
|
32
116
|
this.previousNonNullValue = this.value;
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
117
|
+
this.storeHexInputRef = (node) => {
|
|
118
|
+
this.hexInputNode = node;
|
|
119
|
+
};
|
|
120
|
+
this.storeOpacityInputRef = (node) => {
|
|
121
|
+
this.opacityInputNode = node;
|
|
35
122
|
};
|
|
36
|
-
this.hexLabel = "Hex";
|
|
37
123
|
this.allowEmpty = false;
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
124
|
+
this.alphaChannel = false;
|
|
125
|
+
this.hexLabel = "Hex";
|
|
126
|
+
this.messages = undefined;
|
|
40
127
|
this.numberingSystem = undefined;
|
|
128
|
+
this.scale = "m";
|
|
129
|
+
this.value = normalizeHex(hexify(DEFAULT_COLOR, this.alphaChannel), this.alphaChannel, true);
|
|
41
130
|
this.internalColor = DEFAULT_COLOR;
|
|
42
131
|
}
|
|
43
132
|
//--------------------------------------------------------------------------
|
|
@@ -46,10 +135,10 @@ export class ColorPickerHexInput {
|
|
|
46
135
|
//
|
|
47
136
|
//--------------------------------------------------------------------------
|
|
48
137
|
connectedCallback() {
|
|
49
|
-
const { allowEmpty, value } = this;
|
|
138
|
+
const { allowEmpty, alphaChannel, value } = this;
|
|
50
139
|
if (value) {
|
|
51
|
-
const normalized = normalizeHex(value);
|
|
52
|
-
if (isValidHex(normalized)) {
|
|
140
|
+
const normalized = normalizeHex(value, alphaChannel);
|
|
141
|
+
if (isValidHex(normalized, alphaChannel)) {
|
|
53
142
|
this.internalSetValue(normalized, normalized, false);
|
|
54
143
|
}
|
|
55
144
|
return;
|
|
@@ -67,54 +156,21 @@ export class ColorPickerHexInput {
|
|
|
67
156
|
handleValueChange(value, oldValue) {
|
|
68
157
|
this.internalSetValue(value, oldValue, false);
|
|
69
158
|
}
|
|
70
|
-
// using @Listen as a workaround for VDOM listener not firing
|
|
71
|
-
onInputKeyDown(event) {
|
|
72
|
-
const { altKey, ctrlKey, metaKey, shiftKey } = event;
|
|
73
|
-
const { internalColor, value } = this;
|
|
74
|
-
const { key } = event;
|
|
75
|
-
if (key === "Tab" || key === "Enter") {
|
|
76
|
-
this.onInputChange();
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
const isNudgeKey = key === "ArrowDown" || key === "ArrowUp";
|
|
80
|
-
const oldValue = this.value;
|
|
81
|
-
if (isNudgeKey) {
|
|
82
|
-
if (!value) {
|
|
83
|
-
this.internalSetValue(this.previousNonNullValue, oldValue);
|
|
84
|
-
event.preventDefault();
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
const direction = key === "ArrowUp" ? 1 : -1;
|
|
88
|
-
const bump = shiftKey ? 10 : 1;
|
|
89
|
-
this.internalSetValue(normalizeHex(this.nudgeRGBChannels(internalColor, bump * direction).hex()), oldValue);
|
|
90
|
-
event.preventDefault();
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
const withModifiers = altKey || ctrlKey || metaKey;
|
|
94
|
-
const singleChar = key.length === 1;
|
|
95
|
-
const validHexChar = hexChar.test(key);
|
|
96
|
-
if (singleChar && !withModifiers && !validHexChar) {
|
|
97
|
-
event.preventDefault();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
onPaste(event) {
|
|
101
|
-
const hex = event.clipboardData.getData("text");
|
|
102
|
-
if (isValidHex(hex)) {
|
|
103
|
-
event.preventDefault();
|
|
104
|
-
this.inputNode.value = hex.slice(1);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
159
|
//--------------------------------------------------------------------------
|
|
108
160
|
//
|
|
109
161
|
// Lifecycle
|
|
110
162
|
//
|
|
111
163
|
//--------------------------------------------------------------------------
|
|
112
164
|
render() {
|
|
113
|
-
const { value } = this;
|
|
114
|
-
const hexInputValue = this.
|
|
115
|
-
|
|
165
|
+
const { alphaChannel, hexLabel, internalColor, messages, scale, value } = this;
|
|
166
|
+
const hexInputValue = this.formatHexForInternalInput(value);
|
|
167
|
+
const opacityInputValue = this.formatOpacityForInternalInput(internalColor);
|
|
168
|
+
const inputScale = scale === "l" ? "m" : "s";
|
|
169
|
+
return (h("div", { class: CSS.container }, h("calcite-input", { class: CSS.hexInput, label: messages?.hex || hexLabel, maxLength: 6, numberingSystem: this.numberingSystem, onCalciteInputChange: this.onHexInputChange, onCalciteInternalInputBlur: this.onHexInputBlur, onKeyDown: this.onInputKeyDown, onPaste: this.onHexInputPaste, prefixText: "#", scale: inputScale, value: hexInputValue,
|
|
116
170
|
// eslint-disable-next-line react/jsx-sort-props
|
|
117
|
-
ref: this.
|
|
171
|
+
ref: this.storeHexInputRef }), alphaChannel ? (h("calcite-input-number", { class: CSS.opacityInput, key: "opacity-input", label: messages?.opacity, max: OPACITY_LIMITS.max, maxLength: 3, min: OPACITY_LIMITS.min, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputNumberChange: this.onOpacityInputChange, onCalciteInternalInputNumberBlur: this.onOpacityInputBlur, onKeyDown: this.onInputKeyDown, scale: inputScale, suffixText: "%", value: opacityInputValue,
|
|
172
|
+
// eslint-disable-next-line react/jsx-sort-props
|
|
173
|
+
ref: this.storeOpacityInputRef })) : null));
|
|
118
174
|
}
|
|
119
175
|
//--------------------------------------------------------------------------
|
|
120
176
|
//
|
|
@@ -124,7 +180,7 @@ export class ColorPickerHexInput {
|
|
|
124
180
|
/** Sets focus on the component. */
|
|
125
181
|
async setFocus() {
|
|
126
182
|
await componentLoaded(this);
|
|
127
|
-
focusElement(this.
|
|
183
|
+
focusElement(this.hexInputNode);
|
|
128
184
|
}
|
|
129
185
|
//--------------------------------------------------------------------------
|
|
130
186
|
//
|
|
@@ -133,13 +189,17 @@ export class ColorPickerHexInput {
|
|
|
133
189
|
//--------------------------------------------------------------------------
|
|
134
190
|
internalSetValue(value, oldValue, emit = true) {
|
|
135
191
|
if (value) {
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
192
|
+
const { alphaChannel } = this;
|
|
193
|
+
const normalized = normalizeHex(value, alphaChannel, alphaChannel);
|
|
194
|
+
if (isValidHex(normalized, alphaChannel)) {
|
|
195
|
+
const { internalColor: currentColor } = this;
|
|
196
|
+
const nextColor = Color(normalized);
|
|
197
|
+
const normalizedLonghand = normalizeHex(hexify(nextColor, alphaChannel), alphaChannel);
|
|
198
|
+
const changed = !currentColor ||
|
|
199
|
+
normalizedLonghand !== normalizeHex(hexify(currentColor, alphaChannel), alphaChannel);
|
|
200
|
+
this.internalColor = nextColor;
|
|
201
|
+
this.previousNonNullValue = normalizedLonghand;
|
|
202
|
+
this.value = normalizedLonghand;
|
|
143
203
|
if (changed && emit) {
|
|
144
204
|
this.calciteColorPickerHexInputChange.emit();
|
|
145
205
|
}
|
|
@@ -156,16 +216,28 @@ export class ColorPickerHexInput {
|
|
|
156
216
|
}
|
|
157
217
|
this.value = oldValue;
|
|
158
218
|
}
|
|
159
|
-
|
|
160
|
-
return hex ? hex.replace("#", "") : "";
|
|
219
|
+
formatHexForInternalInput(hex) {
|
|
220
|
+
return hex ? hex.replace("#", "").slice(0, 6) : "";
|
|
161
221
|
}
|
|
162
|
-
|
|
163
|
-
return
|
|
222
|
+
formatOpacityForInternalInput(color) {
|
|
223
|
+
return color ? `${alphaToOpacity(color.alpha())}` : "";
|
|
164
224
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
225
|
+
nudgeRGBChannels(color, amount, context) {
|
|
226
|
+
let nudgedChannels;
|
|
227
|
+
const channels = color.array();
|
|
228
|
+
const rgbChannels = channels.slice(0, 3);
|
|
229
|
+
if (context === "rgb") {
|
|
230
|
+
const nudgedRGBChannels = rgbChannels.map((channel) => channel + amount);
|
|
231
|
+
nudgedChannels = [
|
|
232
|
+
...nudgedRGBChannels,
|
|
233
|
+
this.alphaChannel ? channels[3] : undefined
|
|
234
|
+
];
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
const nudgedAlpha = opacityToAlpha(alphaToOpacity(color.alpha()) + amount);
|
|
238
|
+
nudgedChannels = [...rgbChannels, nudgedAlpha];
|
|
168
239
|
}
|
|
240
|
+
return Color(nudgedChannels);
|
|
169
241
|
}
|
|
170
242
|
static get is() { return "calcite-color-picker-hex-input"; }
|
|
171
243
|
static get encapsulation() { return "shadow"; }
|
|
@@ -181,25 +253,25 @@ export class ColorPickerHexInput {
|
|
|
181
253
|
}
|
|
182
254
|
static get properties() {
|
|
183
255
|
return {
|
|
184
|
-
"
|
|
185
|
-
"type": "
|
|
256
|
+
"allowEmpty": {
|
|
257
|
+
"type": "boolean",
|
|
186
258
|
"mutable": false,
|
|
187
259
|
"complexType": {
|
|
188
|
-
"original": "
|
|
189
|
-
"resolved": "
|
|
260
|
+
"original": "boolean",
|
|
261
|
+
"resolved": "boolean",
|
|
190
262
|
"references": {}
|
|
191
263
|
},
|
|
192
264
|
"required": false,
|
|
193
265
|
"optional": false,
|
|
194
266
|
"docs": {
|
|
195
267
|
"tags": [],
|
|
196
|
-
"text": "
|
|
268
|
+
"text": "When `false`, an empty color (`null`) will be allowed as a `value`. Otherwise, a color value is enforced on the component.\n\nWhen `true`, a color value is enforced, and clearing the input or blurring will restore the last valid `value`. When `false`, an empty color (`null`) will be allowed as a `value`."
|
|
197
269
|
},
|
|
198
|
-
"attribute": "
|
|
270
|
+
"attribute": "allow-empty",
|
|
199
271
|
"reflect": false,
|
|
200
|
-
"defaultValue": "
|
|
272
|
+
"defaultValue": "false"
|
|
201
273
|
},
|
|
202
|
-
"
|
|
274
|
+
"alphaChannel": {
|
|
203
275
|
"type": "boolean",
|
|
204
276
|
"mutable": false,
|
|
205
277
|
"complexType": {
|
|
@@ -211,12 +283,78 @@ export class ColorPickerHexInput {
|
|
|
211
283
|
"optional": false,
|
|
212
284
|
"docs": {
|
|
213
285
|
"tags": [],
|
|
214
|
-
"text": "When
|
|
286
|
+
"text": "When true, the component will allow updates to the color's alpha value."
|
|
215
287
|
},
|
|
216
|
-
"attribute": "
|
|
288
|
+
"attribute": "alpha-channel",
|
|
217
289
|
"reflect": false,
|
|
218
290
|
"defaultValue": "false"
|
|
219
291
|
},
|
|
292
|
+
"hexLabel": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"mutable": false,
|
|
295
|
+
"complexType": {
|
|
296
|
+
"original": "string",
|
|
297
|
+
"resolved": "string",
|
|
298
|
+
"references": {}
|
|
299
|
+
},
|
|
300
|
+
"required": false,
|
|
301
|
+
"optional": false,
|
|
302
|
+
"docs": {
|
|
303
|
+
"tags": [{
|
|
304
|
+
"name": "deprecated",
|
|
305
|
+
"text": "use `messages` instead"
|
|
306
|
+
}],
|
|
307
|
+
"text": "Specifies accessible label for the input field."
|
|
308
|
+
},
|
|
309
|
+
"attribute": "hex-label",
|
|
310
|
+
"reflect": false,
|
|
311
|
+
"defaultValue": "\"Hex\""
|
|
312
|
+
},
|
|
313
|
+
"messages": {
|
|
314
|
+
"type": "unknown",
|
|
315
|
+
"mutable": false,
|
|
316
|
+
"complexType": {
|
|
317
|
+
"original": "ColorPickerMessages",
|
|
318
|
+
"resolved": "{ b: string; blue: string; deleteColor: string; g: string; green: string; h: string; hsv: string; hex: string; hue: string; noColor: string; opacity: string; r: string; red: string; rgb: string; s: string; saturation: string; saveColor: string; saved: string; v: string; value: string; }",
|
|
319
|
+
"references": {
|
|
320
|
+
"ColorPickerMessages": {
|
|
321
|
+
"location": "import",
|
|
322
|
+
"path": "../color-picker/assets/color-picker/t9n"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"required": false,
|
|
327
|
+
"optional": false,
|
|
328
|
+
"docs": {
|
|
329
|
+
"tags": [{
|
|
330
|
+
"name": "internal",
|
|
331
|
+
"text": undefined
|
|
332
|
+
}],
|
|
333
|
+
"text": "Messages are passed by parent component for accessible labels."
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"numberingSystem": {
|
|
337
|
+
"type": "string",
|
|
338
|
+
"mutable": false,
|
|
339
|
+
"complexType": {
|
|
340
|
+
"original": "NumberingSystem",
|
|
341
|
+
"resolved": "\"arab\" | \"arabext\" | \"bali\" | \"beng\" | \"deva\" | \"fullwide\" | \"gujr\" | \"guru\" | \"hanidec\" | \"khmr\" | \"knda\" | \"laoo\" | \"latn\" | \"limb\" | \"mlym\" | \"mong\" | \"mymr\" | \"orya\" | \"tamldec\" | \"telu\" | \"thai\" | \"tibt\"",
|
|
342
|
+
"references": {
|
|
343
|
+
"NumberingSystem": {
|
|
344
|
+
"location": "import",
|
|
345
|
+
"path": "../../utils/locale"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"required": false,
|
|
350
|
+
"optional": true,
|
|
351
|
+
"docs": {
|
|
352
|
+
"tags": [],
|
|
353
|
+
"text": "Specifies the Unicode numeral system used by the component for localization."
|
|
354
|
+
},
|
|
355
|
+
"attribute": "numbering-system",
|
|
356
|
+
"reflect": false
|
|
357
|
+
},
|
|
220
358
|
"scale": {
|
|
221
359
|
"type": "string",
|
|
222
360
|
"mutable": false,
|
|
@@ -252,33 +390,11 @@ export class ColorPickerHexInput {
|
|
|
252
390
|
"optional": false,
|
|
253
391
|
"docs": {
|
|
254
392
|
"tags": [],
|
|
255
|
-
"text": "The
|
|
393
|
+
"text": "The hex value."
|
|
256
394
|
},
|
|
257
395
|
"attribute": "value",
|
|
258
396
|
"reflect": true,
|
|
259
|
-
"defaultValue": "normalizeHex(DEFAULT_COLOR.
|
|
260
|
-
},
|
|
261
|
-
"numberingSystem": {
|
|
262
|
-
"type": "string",
|
|
263
|
-
"mutable": false,
|
|
264
|
-
"complexType": {
|
|
265
|
-
"original": "NumberingSystem",
|
|
266
|
-
"resolved": "\"arab\" | \"arabext\" | \"bali\" | \"beng\" | \"deva\" | \"fullwide\" | \"gujr\" | \"guru\" | \"hanidec\" | \"khmr\" | \"knda\" | \"laoo\" | \"latn\" | \"limb\" | \"mlym\" | \"mong\" | \"mymr\" | \"orya\" | \"tamldec\" | \"telu\" | \"thai\" | \"tibt\"",
|
|
267
|
-
"references": {
|
|
268
|
-
"NumberingSystem": {
|
|
269
|
-
"location": "import",
|
|
270
|
-
"path": "../../utils/locale"
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
"required": false,
|
|
275
|
-
"optional": true,
|
|
276
|
-
"docs": {
|
|
277
|
-
"tags": [],
|
|
278
|
-
"text": "Specifies the Unicode numeral system used by the component for localization."
|
|
279
|
-
},
|
|
280
|
-
"attribute": "numbering-system",
|
|
281
|
-
"reflect": false
|
|
397
|
+
"defaultValue": "normalizeHex(\n hexify(DEFAULT_COLOR, this.alphaChannel),\n this.alphaChannel,\n true\n )"
|
|
282
398
|
}
|
|
283
399
|
};
|
|
284
400
|
}
|
|
@@ -332,13 +448,4 @@ export class ColorPickerHexInput {
|
|
|
332
448
|
"methodName": "handleValueChange"
|
|
333
449
|
}];
|
|
334
450
|
}
|
|
335
|
-
static get listeners() {
|
|
336
|
-
return [{
|
|
337
|
-
"name": "keydown",
|
|
338
|
-
"method": "onInputKeyDown",
|
|
339
|
-
"target": undefined,
|
|
340
|
-
"capture": true,
|
|
341
|
-
"passive": false
|
|
342
|
-
}];
|
|
343
|
-
}
|
|
344
451
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.4.0-next.
|
|
4
|
+
* v1.4.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
export const CSS = {
|
|
7
7
|
container: "container",
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
hexInput: "hex-input",
|
|
9
|
+
opacityInput: "opacity-input"
|
|
10
10
|
};
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.swatch {
|
|
109
|
-
overflow:
|
|
109
|
+
overflow: hidden;
|
|
110
110
|
block-size: inherit;
|
|
111
111
|
inline-size: inherit;
|
|
112
112
|
}
|
|
@@ -116,9 +116,13 @@
|
|
|
116
116
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
.no-color
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
.swatch--no-color rect {
|
|
120
|
+
fill: var(--calcite-ui-foreground-1);
|
|
121
|
+
}
|
|
122
|
+
.swatch--no-color line {
|
|
123
|
+
stroke: var(--calcite-ui-danger);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.checker {
|
|
127
|
+
fill: #cacaca;
|
|
124
128
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.4.0-next.
|
|
4
|
+
* v1.4.0-next.6
|
|
5
5
|
*/
|
|
6
|
-
import { h } from "@stencil/core";
|
|
6
|
+
import { Fragment, h } from "@stencil/core";
|
|
7
7
|
import Color from "color";
|
|
8
8
|
import { getModeName } from "../../utils/dom";
|
|
9
|
-
import {
|
|
9
|
+
import { hexify } from "../color-picker/utils";
|
|
10
|
+
import { CHECKER_DIMENSIONS, COLORS, CSS } from "./resources";
|
|
10
11
|
export class ColorPickerSwatch {
|
|
11
12
|
constructor() {
|
|
12
13
|
this.active = false;
|
|
@@ -14,7 +15,7 @@ export class ColorPickerSwatch {
|
|
|
14
15
|
this.scale = "m";
|
|
15
16
|
}
|
|
16
17
|
handleColorChange(color) {
|
|
17
|
-
this.internalColor = Color(color);
|
|
18
|
+
this.internalColor = color ? Color(color) : null;
|
|
18
19
|
}
|
|
19
20
|
//--------------------------------------------------------------------------
|
|
20
21
|
//
|
|
@@ -25,12 +26,38 @@ export class ColorPickerSwatch {
|
|
|
25
26
|
this.handleColorChange(this.color);
|
|
26
27
|
}
|
|
27
28
|
render() {
|
|
29
|
+
const isEmpty = !this.internalColor;
|
|
30
|
+
const classes = {
|
|
31
|
+
[CSS.swatch]: true,
|
|
32
|
+
[CSS.noColorSwatch]: isEmpty
|
|
33
|
+
};
|
|
34
|
+
return (h("svg", { class: classes, xmlns: "http://www.w3.org/2000/svg" }, this.renderSwatch()));
|
|
35
|
+
}
|
|
36
|
+
renderSwatch() {
|
|
28
37
|
const { active, el, internalColor } = this;
|
|
29
38
|
const borderRadius = active ? "100%" : "0";
|
|
30
|
-
const hex = internalColor.hex();
|
|
31
39
|
const theme = getModeName(el);
|
|
32
40
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
33
|
-
|
|
41
|
+
const commonSwatchProps = {
|
|
42
|
+
height: "100%",
|
|
43
|
+
rx: borderRadius,
|
|
44
|
+
stroke: borderColor,
|
|
45
|
+
// stroke-width and clip-path are needed to hide overflowing portion of stroke
|
|
46
|
+
// see https://stackoverflow.com/a/7273346/194216
|
|
47
|
+
// using attribute to work around Stencil using the prop name vs the attribute when rendering
|
|
48
|
+
["stroke-width"]: "2",
|
|
49
|
+
width: "100%"
|
|
50
|
+
};
|
|
51
|
+
const isEmpty = !internalColor;
|
|
52
|
+
if (isEmpty) {
|
|
53
|
+
return (h(Fragment, null, h("clipPath", { id: "shape" }, h("rect", { height: "100%", rx: borderRadius, width: "100%" })), h("rect", { "clip-path": `inset(0 round ${borderRadius})`, rx: borderRadius, ...commonSwatchProps }), h("line", { "clip-path": "url(#shape)", "stroke-width": "3", x1: "100%", x2: "0", y1: "0", y2: "100%" })));
|
|
54
|
+
}
|
|
55
|
+
const alpha = internalColor.alpha();
|
|
56
|
+
const hex = hexify(internalColor);
|
|
57
|
+
const hexa = hexify(internalColor, alpha < 1);
|
|
58
|
+
return (h(Fragment, null, h("title", null, hexa), h("defs", null, h("pattern", { height: CHECKER_DIMENSIONS.size, id: "checker", patternUnits: "userSpaceOnUse", width: CHECKER_DIMENSIONS.size, x: "0", y: "0" }, h("rect", { class: CSS.checker, height: CHECKER_DIMENSIONS.squareSize, width: CHECKER_DIMENSIONS.squareSize, x: "0", y: "0" }), h("rect", { class: CSS.checker, height: CHECKER_DIMENSIONS.squareSize, width: CHECKER_DIMENSIONS.squareSize, x: CHECKER_DIMENSIONS.squareSize, y: CHECKER_DIMENSIONS.squareSize }))), h("rect", { fill: "url(#checker)", height: "100%", rx: borderRadius, width: "100%" }), h("rect", { fill: hex, style: {
|
|
59
|
+
"clip-path": alpha < 1 ? "polygon(100% 0, 0 0, 0 100%)" : `inset(0 round ${borderRadius})`
|
|
60
|
+
}, ...commonSwatchProps }), alpha < 1 ? (h("rect", { fill: hexa, key: "opacity-fill", style: { "clip-path": "polygon(100% 0, 100% 100%, 0 100%)" }, ...commonSwatchProps })) : null));
|
|
34
61
|
}
|
|
35
62
|
static get is() { return "calcite-color-picker-swatch"; }
|
|
36
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -68,7 +95,7 @@ export class ColorPickerSwatch {
|
|
|
68
95
|
"type": "string",
|
|
69
96
|
"mutable": false,
|
|
70
97
|
"complexType": {
|
|
71
|
-
"original": "string",
|
|
98
|
+
"original": "string | null",
|
|
72
99
|
"resolved": "string",
|
|
73
100
|
"references": {}
|
|
74
101
|
},
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.4.0-next.
|
|
4
|
+
* v1.4.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
export const CSS = {
|
|
7
7
|
swatch: "swatch",
|
|
8
|
-
|
|
8
|
+
noColorSwatch: "swatch--no-color",
|
|
9
|
+
checker: "checker"
|
|
9
10
|
};
|
|
10
11
|
export const COLORS = {
|
|
11
12
|
borderLight: "rgba(0, 0, 0, 0.3)",
|
|
12
13
|
borderDark: "rgba(255, 255, 255, 0.15)"
|
|
13
14
|
};
|
|
15
|
+
const checkerSquareSize = 4;
|
|
16
|
+
export const CHECKER_DIMENSIONS = {
|
|
17
|
+
squareSize: checkerSquareSize,
|
|
18
|
+
size: checkerSquareSize * 2
|
|
19
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.4.0-next.
|
|
4
|
+
* v1.4.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { h, Host } from "@stencil/core";
|
|
7
7
|
import { debounce } from "lodash-es";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.4.0-next.
|
|
4
|
+
* v1.4.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
export const ComboboxItem = "CALCITE-COMBOBOX-ITEM";
|
|
7
7
|
export const ComboboxItemGroup = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.4.0-next.
|
|
4
|
+
* v1.4.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { nodeListToArray } from "../../utils/dom";
|
|
7
7
|
import { ComboboxChildSelector } from "./resources";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.4.0-next.
|
|
4
|
+
* v1.4.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { h, Host } from "@stencil/core";
|
|
7
7
|
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.4.0-next.
|
|
4
|
+
* v1.4.0-next.6
|
|
5
5
|
*/
|
|
6
6
|
import { h } from "@stencil/core";
|
|
7
7
|
import { getElementProp } from "../../utils/dom";
|