@esri/calcite-components 1.0.0-beta.67 → 1.0.0-beta.68
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/assets/calcite-icon/penMark16.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMark24.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMark32.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMarkPlus16.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMarkPlus24.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMarkPlus32.json +1 -0
- package/dist/calcite/assets/calcite-icon/subscript16.json +1 -0
- package/dist/calcite/assets/calcite-icon/subscript24.json +1 -0
- package/dist/calcite/assets/calcite-icon/subscript32.json +1 -0
- package/dist/calcite/assets/calcite-icon/superscript16.json +1 -0
- package/dist/calcite/assets/calcite-icon/superscript24.json +1 -0
- package/dist/calcite/assets/calcite-icon/superscript32.json +1 -0
- package/dist/calcite/calcite.esm.js +5 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/index.esm.js +4 -0
- package/dist/calcite/p-00d72f16.entry.js +5 -0
- package/dist/calcite/p-01c3783e.system.entry.js +5 -0
- package/dist/calcite/p-021d44b7.system.entry.js +5 -0
- package/dist/calcite/p-050dc7e6.system.entry.js +5 -0
- package/dist/calcite/p-05bf835f.js +5 -0
- package/dist/calcite/p-07ba39b6.js +5 -0
- package/dist/calcite/p-0e30afe6.entry.js +5 -0
- package/dist/calcite/p-0fb8cdc5.entry.js +5 -0
- package/dist/calcite/p-0fc8b24c.system.entry.js +5 -0
- package/dist/calcite/p-0fd333ff.entry.js +5 -0
- package/dist/calcite/p-10ccc21d.entry.js +5 -0
- package/dist/calcite/p-157d05ce.js +5 -0
- package/dist/calcite/p-175764f3.system.entry.js +5 -0
- package/dist/calcite/p-18078190.entry.js +5 -0
- package/dist/calcite/p-18574b32.entry.js +5 -0
- package/dist/calcite/p-1aaf7f83.entry.js +5 -0
- package/dist/calcite/p-1b2c1f55.entry.js +5 -0
- package/dist/calcite/p-1d6404b5.system.js +5 -0
- package/dist/calcite/p-1f99b038.entry.js +5 -0
- package/dist/calcite/p-1fb7138b.js +5 -0
- package/dist/calcite/p-20042561.entry.js +5 -0
- package/dist/calcite/p-22ad79b1.entry.js +5 -0
- package/dist/calcite/p-24b86e03.entry.js +5 -0
- package/dist/calcite/p-26045881.entry.js +5 -0
- package/dist/calcite/p-26508b91.js +5 -0
- package/dist/calcite/p-2920aa02.entry.js +5 -0
- package/dist/calcite/p-29b110b2.entry.js +5 -0
- package/dist/calcite/p-2ba00b89.js +5 -0
- package/dist/calcite/p-318e95d7.system.entry.js +5 -0
- package/dist/calcite/p-31c4a271.system.entry.js +5 -0
- package/dist/calcite/p-32faf98b.system.entry.js +5 -0
- package/dist/calcite/p-32fbf8cd.system.js +5 -0
- package/dist/calcite/p-349333f8.system.entry.js +5 -0
- package/dist/calcite/p-34a1c944.entry.js +5 -0
- package/dist/calcite/p-34a6550f.system.entry.js +5 -0
- package/dist/calcite/p-361ddbb6.entry.js +5 -0
- package/dist/calcite/p-378b83de.entry.js +5 -0
- package/dist/calcite/p-378ffa38.system.js +5 -0
- package/dist/calcite/p-37cee0ea.entry.js +5 -0
- package/dist/calcite/p-3929447c.system.entry.js +5 -0
- package/dist/calcite/p-3b17d8d0.system.js +5 -0
- package/dist/calcite/p-3ba8024a.system.entry.js +5 -0
- package/dist/calcite/p-4035444d.system.js +5 -0
- package/dist/calcite/p-41e9b889.entry.js +5 -0
- package/dist/calcite/p-43494684.entry.js +5 -0
- package/dist/calcite/p-45d123be.system.entry.js +5 -0
- package/dist/calcite/p-47313747.system.js +5 -0
- package/dist/calcite/p-473cfb74.system.entry.js +5 -0
- package/dist/calcite/p-477bac2c.system.js +5 -0
- package/dist/calcite/p-485062f4.system.entry.js +5 -0
- package/dist/calcite/p-4c7e3d8e.system.entry.js +5 -0
- package/dist/calcite/p-4de6f4fd.system.js +5 -0
- package/dist/calcite/p-4e06a168.entry.js +5 -0
- package/dist/calcite/p-51cb078a.entry.js +5 -0
- package/dist/calcite/p-52cc870b.js +5 -0
- package/dist/calcite/p-530584ff.system.entry.js +5 -0
- package/dist/calcite/p-568ed3d6.system.entry.js +5 -0
- package/dist/calcite/p-56b352bf.system.js +5 -0
- package/dist/calcite/p-57f5866d.system.entry.js +5 -0
- package/dist/calcite/p-5c221c33.system.entry.js +5 -0
- package/dist/calcite/p-5cb26137.system.entry.js +5 -0
- package/dist/calcite/p-61038b30.js +5 -0
- package/dist/calcite/p-64d90b14.system.js +5 -0
- package/dist/calcite/p-67fd79db.entry.js +5 -0
- package/dist/calcite/p-693a4d5f.entry.js +5 -0
- package/dist/calcite/p-69548a7d.system.entry.js +5 -0
- package/dist/calcite/p-6a541e77.system.js +5 -0
- package/dist/calcite/p-6cc23c39.system.js +5 -0
- package/dist/calcite/p-72563742.js +5 -0
- package/dist/calcite/p-727c8f36.system.entry.js +5 -0
- package/dist/calcite/p-728501db.system.js +5 -0
- package/dist/calcite/p-72ffc6d7.entry.js +5 -0
- package/dist/calcite/p-745e41ea.entry.js +5 -0
- package/dist/calcite/p-75793454.entry.js +5 -0
- package/dist/calcite/p-7839d1c9.entry.js +5 -0
- package/dist/calcite/p-7a544774.system.entry.js +5 -0
- package/dist/calcite/p-7b01fe89.js +5 -0
- package/dist/calcite/p-7b600760.entry.js +5 -0
- package/dist/calcite/p-7c0debe0.system.entry.js +5 -0
- package/dist/calcite/p-7cdfec27.system.js +5 -0
- package/dist/calcite/p-7ed4c551.system.js +5 -0
- package/dist/calcite/p-7f4a5f8e.system.entry.js +5 -0
- package/dist/calcite/p-81a82d01.system.entry.js +5 -0
- package/dist/calcite/p-85a2bf7c.system.entry.js +5 -0
- package/dist/calcite/p-8655c0a1.entry.js +5 -0
- package/dist/calcite/p-87b93729.entry.js +5 -0
- package/dist/calcite/p-87e83c0d.system.entry.js +5 -0
- package/dist/calcite/p-8a63221d.js +5 -0
- package/dist/calcite/p-8efb43fc.entry.js +5 -0
- package/dist/calcite/p-8fcfe861.js +5 -0
- package/dist/calcite/p-91645bf7.system.js +5 -0
- package/dist/calcite/p-9358deb1.system.entry.js +5 -0
- package/dist/calcite/p-93d8a7d5.entry.js +5 -0
- package/dist/calcite/p-95a3a0ce.entry.js +5 -0
- package/dist/calcite/p-9965ea81.system.js +5 -0
- package/dist/calcite/p-99da965d.system.entry.js +5 -0
- package/dist/calcite/p-9ac1fa0b.system.entry.js +5 -0
- package/dist/calcite/p-9caae570.entry.js +5 -0
- package/dist/calcite/p-9d3ee5cf.system.entry.js +5 -0
- package/dist/calcite/p-9d83f268.system.entry.js +5 -0
- package/dist/calcite/p-9dbb69f7.entry.js +5 -0
- package/dist/calcite/p-9e4f2697.system.entry.js +5 -0
- package/dist/calcite/p-a0c02648.system.js +5 -0
- package/dist/calcite/p-a20df95c.js +5 -0
- package/dist/calcite/p-a62de092.js +5 -0
- package/dist/calcite/p-a7521c0d.entry.js +5 -0
- package/dist/calcite/p-a8cd5cde.system.entry.js +5 -0
- package/dist/calcite/p-a93678c6.system.entry.js +5 -0
- package/dist/calcite/p-aad45edf.system.js +5 -0
- package/dist/calcite/p-ac3d8784.entry.js +5 -0
- package/dist/calcite/p-ac9607f2.system.js +11 -0
- package/dist/calcite/p-acaad99b.system.entry.js +5 -0
- package/dist/calcite/p-accdb0ce.js +5 -0
- package/dist/calcite/p-b06207bb.js +5 -0
- package/dist/calcite/p-b2ab0485.js +5 -0
- package/dist/calcite/p-b701101e.entry.js +5 -0
- package/dist/calcite/p-ba255377.entry.js +5 -0
- package/dist/calcite/p-ba9b4f62.system.entry.js +5 -0
- package/dist/calcite/p-bb916828.system.entry.js +5 -0
- package/dist/calcite/p-bc02d9ef.system.entry.js +5 -0
- package/dist/calcite/p-bcc323ec.system.entry.js +5 -0
- package/dist/calcite/p-bd555b2e.system.entry.js +5 -0
- package/dist/calcite/p-be3b0fee.entry.js +5 -0
- package/dist/calcite/p-bfc162ee.system.entry.js +5 -0
- package/dist/calcite/p-c0dd929a.entry.js +5 -0
- package/dist/calcite/p-c1995144.system.entry.js +5 -0
- package/dist/calcite/p-c20278e8.system.entry.js +5 -0
- package/dist/calcite/p-c31243c5.entry.js +5 -0
- package/dist/calcite/p-c3922ef7.system.entry.js +5 -0
- package/dist/calcite/p-c57f8690.entry.js +5 -0
- package/dist/calcite/p-c5ec8d74.js +11 -0
- package/dist/calcite/p-c74fc589.system.js +5 -0
- package/dist/calcite/p-caf7085a.system.js +5 -0
- package/dist/calcite/p-cb228ac0.entry.js +5 -0
- package/dist/calcite/p-cbdf0e6c.js +5 -0
- package/dist/calcite/p-cd8f7781.system.entry.js +5 -0
- package/dist/calcite/p-d35e423d.js +5 -0
- package/dist/calcite/p-d5d62977.entry.js +5 -0
- package/dist/calcite/p-d7a7a544.system.entry.js +5 -0
- package/dist/calcite/p-d7e5b807.system.entry.js +5 -0
- package/dist/calcite/p-da9603a3.entry.js +5 -0
- package/dist/calcite/p-db10485b.system.js +5 -0
- package/dist/calcite/p-de0f4633.entry.js +5 -0
- package/dist/calcite/p-e020662f.system.js +5 -0
- package/dist/calcite/p-e33a2dd2.system.entry.js +5 -0
- package/dist/calcite/p-e3a30266.system.entry.js +5 -0
- package/dist/calcite/p-e4acb5a8.js +5 -0
- package/dist/calcite/p-e693758c.entry.js +5 -0
- package/dist/calcite/p-e9044cc1.entry.js +5 -0
- package/dist/calcite/p-eb3ee207.entry.js +5 -0
- package/dist/calcite/p-f07d3627.js +5 -0
- package/dist/calcite/p-f141da0f.entry.js +5 -0
- package/dist/calcite/p-f243b615.js +5 -0
- package/dist/calcite/p-f37563ac.system.entry.js +5 -0
- package/dist/calcite/p-f4299b95.entry.js +5 -0
- package/dist/calcite/p-f5d25746.system.entry.js +5 -0
- package/dist/calcite/p-f8d975a1.system.entry.js +5 -0
- package/dist/calcite/p-fb1da0f5.system.js +5 -0
- package/dist/calcite/p-fc4846f0.system.entry.js +5 -0
- package/dist/calcite/p-fe52131d.entry.js +5 -0
- package/dist/calcite/p-ff04f827.system.entry.js +5 -0
- package/dist/calcite/p-fff0a881.entry.js +5 -0
- package/dist/cjs/CalciteExpandToggle-0d802f83.js +94 -0
- package/dist/cjs/CalciteHeading-381b977d.js +19 -0
- package/dist/cjs/array-a5dedf5a.js +11 -0
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +8 -4
- package/dist/cjs/calcite-action-bar.cjs.entry.js +12 -8
- package/dist/cjs/calcite-action-group.cjs.entry.js +9 -5
- package/dist/cjs/calcite-action-menu.cjs.entry.js +14 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -6
- package/dist/cjs/calcite-action.cjs.entry.js +11 -11
- package/dist/cjs/calcite-alert.cjs.entry.js +9 -5
- package/dist/cjs/calcite-avatar.cjs.entry.js +8 -4
- package/dist/cjs/calcite-block_2.cjs.entry.js +21 -14
- package/dist/cjs/calcite-button.cjs.entry.js +59 -38
- package/dist/cjs/calcite-card.cjs.entry.js +8 -4
- package/dist/cjs/calcite-checkbox.cjs.entry.js +14 -10
- package/dist/cjs/calcite-chip.cjs.entry.js +7 -3
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +11 -7
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +25 -21
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +15 -11
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +45 -36
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -3
- package/dist/cjs/calcite-filter.cjs.entry.js +10 -6
- package/dist/cjs/calcite-flow.cjs.entry.js +6 -2
- package/dist/cjs/calcite-graph_2.cjs.entry.js +19 -15
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -1
- package/dist/cjs/calcite-icon.cjs.entry.js +8 -4
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +21 -17
- package/dist/cjs/calcite-input-message.cjs.entry.js +7 -3
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +19 -15
- package/dist/cjs/calcite-input.cjs.entry.js +25 -26
- package/dist/cjs/calcite-label.cjs.entry.js +7 -3
- package/dist/cjs/calcite-link.cjs.entry.js +13 -3
- package/dist/cjs/calcite-list_3.cjs.entry.js +30 -5
- package/dist/cjs/calcite-loader.cjs.entry.js +7 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +9 -5
- package/dist/cjs/calcite-notice.cjs.entry.js +9 -5
- package/dist/cjs/calcite-option_3.cjs.entry.js +17 -13
- package/dist/cjs/calcite-pagination.cjs.entry.js +7 -3
- package/dist/cjs/calcite-panel.cjs.entry.js +9 -5
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +12 -8
- package/dist/cjs/calcite-popover_2.cjs.entry.js +9 -5
- package/dist/cjs/calcite-progress.cjs.entry.js +5 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +5 -1
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +19 -15
- package/dist/cjs/calcite-radio_2.cjs.entry.js +24 -20
- package/dist/cjs/calcite-rating.cjs.entry.js +16 -12
- package/dist/cjs/calcite-scrim.cjs.entry.js +5 -1
- package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -3
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +7 -3
- package/dist/cjs/calcite-split-button.cjs.entry.js +7 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +8 -4
- package/dist/cjs/calcite-switch.cjs.entry.js +21 -17
- package/dist/cjs/calcite-tab_4.cjs.entry.js +9 -5
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +7 -3
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -3
- package/dist/cjs/calcite-tip_3.cjs.entry.js +9 -5
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +12 -7
- package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -4
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -8
- package/dist/cjs/calcite.cjs.js +6 -2
- package/dist/cjs/debounce-95979061.js +495 -0
- package/dist/cjs/dom-19822169.js +170 -0
- package/dist/cjs/forIn-a5d553af.js +622 -0
- package/dist/cjs/form-00fb301c.js +22 -0
- package/dist/cjs/guid-b270f0db.js +20 -0
- package/dist/cjs/index-1987a382.js +2066 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/interfaces-54651c1c.js +13 -0
- package/dist/cjs/key-8bfb93ec.js +37 -0
- package/dist/cjs/label-549c3d9d.js +58 -0
- package/dist/cjs/loader.cjs.js +6 -2
- package/dist/cjs/locale-69dc9583.js +123 -0
- package/dist/cjs/math-9d44163f.js +9 -0
- package/dist/cjs/number-e6448e15.js +45 -0
- package/dist/cjs/observers-41837607.js +22 -0
- package/dist/cjs/popper-cd9c0742.js +1790 -0
- package/dist/cjs/resources-407a4290.js +20 -0
- package/dist/cjs/resources-7dcd68d1.js +232 -0
- package/dist/cjs/resources-d0619f6a.js +346 -0
- package/dist/cjs/resources-ffe563a2.js +21 -0
- package/dist/cjs/sortable.esm-d7a4560b.js +3019 -0
- package/dist/cjs/utils-55d67711.js +123 -0
- package/dist/collection/components/calcite-accordion/calcite-accordion.js +4 -0
- package/dist/collection/components/calcite-accordion/interfaces.js +4 -0
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +4 -0
- package/dist/collection/components/calcite-action/calcite-action.css +17 -68
- package/dist/collection/components/calcite-action/calcite-action.js +34 -31
- package/dist/collection/components/calcite-action/resources.js +4 -0
- package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +4 -0
- package/dist/collection/components/calcite-action-bar/resources.js +4 -0
- package/dist/collection/components/calcite-action-bar/utils.js +4 -0
- package/dist/collection/components/calcite-action-group/calcite-action-group.js +4 -0
- package/dist/collection/components/calcite-action-group/resources.js +4 -0
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +8 -2
- package/dist/collection/components/calcite-action-menu/resources.js +4 -0
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +4 -0
- package/dist/collection/components/calcite-action-pad/resources.js +4 -0
- package/dist/collection/components/calcite-alert/calcite-alert.css +0 -62
- package/dist/collection/components/calcite-alert/calcite-alert.js +4 -0
- package/dist/collection/components/calcite-alert/interfaces.js +4 -0
- package/dist/collection/components/calcite-alert/resources.js +4 -0
- package/dist/collection/components/calcite-avatar/calcite-avatar.js +4 -0
- package/dist/collection/components/calcite-avatar/utils.js +4 -0
- package/dist/collection/components/calcite-block/calcite-block.css +18 -0
- package/dist/collection/components/calcite-block/calcite-block.js +11 -6
- package/dist/collection/components/calcite-block/resources.js +8 -2
- package/dist/collection/components/calcite-block-section/calcite-block-section.css +1 -0
- package/dist/collection/components/calcite-block-section/calcite-block-section.js +4 -0
- package/dist/collection/components/calcite-block-section/interfaces.js +4 -0
- package/dist/collection/components/calcite-block-section/resources.js +4 -0
- package/dist/collection/components/calcite-button/calcite-button.js +35 -35
- package/dist/collection/components/calcite-button/interfaces.js +4 -0
- package/dist/collection/components/calcite-button/resources.js +4 -0
- package/dist/collection/components/calcite-card/calcite-card.js +4 -0
- package/dist/collection/components/calcite-card/resources.js +4 -0
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +4 -1
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +8 -4
- package/dist/collection/components/calcite-chip/calcite-chip.js +4 -0
- package/dist/collection/components/calcite-chip/interfaces.js +4 -0
- package/dist/collection/components/calcite-chip/resources.js +4 -0
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +4 -0
- package/dist/collection/components/calcite-color-picker/interfaces.js +4 -0
- package/dist/collection/components/calcite-color-picker/resources.js +4 -0
- package/dist/collection/components/calcite-color-picker/utils.js +4 -0
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +4 -0
- package/dist/collection/components/calcite-color-picker-hex-input/resources.js +4 -0
- package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.js +4 -0
- package/dist/collection/components/calcite-color-picker-swatch/resources.js +4 -0
- package/dist/collection/components/calcite-combobox/calcite-combobox.css +17 -4
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +19 -14
- package/dist/collection/components/calcite-combobox/interfaces.js +4 -0
- package/dist/collection/components/calcite-combobox/resources.js +4 -0
- package/dist/collection/components/calcite-combobox/utils.js +4 -0
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +1 -1
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +4 -0
- package/dist/collection/components/calcite-combobox-item/resources.js +4 -0
- package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js +4 -0
- package/dist/collection/components/calcite-combobox-item-group/resources.js +4 -0
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +4 -0
- package/dist/collection/components/calcite-date-picker/interfaces.js +4 -0
- package/dist/collection/components/calcite-date-picker/resources.js +4 -0
- package/dist/collection/components/calcite-date-picker/utils.js +4 -0
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +1 -1
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +4 -0
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css +1 -1
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +4 -0
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +1 -1
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js +4 -0
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +42 -31
- package/dist/collection/components/calcite-dropdown/interfaces.js +4 -0
- package/dist/collection/components/calcite-dropdown/resources.js +4 -0
- package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +4 -0
- package/dist/collection/components/calcite-dropdown-group/interfaces.js +4 -0
- package/dist/collection/components/calcite-dropdown-group/resources.js +4 -0
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +4 -0
- package/dist/collection/components/calcite-dropdown-item/resources.js +4 -0
- package/dist/collection/components/calcite-fab/calcite-fab.js +4 -0
- package/dist/collection/components/calcite-fab/resources.js +4 -0
- package/dist/collection/components/calcite-filter/calcite-filter.js +5 -1
- package/dist/collection/components/calcite-filter/resources.js +4 -0
- package/dist/collection/components/calcite-flow/calcite-flow.js +4 -0
- package/dist/collection/components/calcite-flow/interfaces.js +4 -0
- package/dist/collection/components/calcite-flow/resources.js +4 -0
- package/dist/collection/components/calcite-graph/calcite-graph.js +4 -0
- package/dist/collection/components/calcite-graph/interfaces.js +4 -0
- package/dist/collection/components/calcite-graph/util.js +4 -0
- package/dist/collection/components/calcite-handle/calcite-handle.js +4 -0
- package/dist/collection/components/calcite-handle/resources.js +4 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript32.json +1 -0
- package/dist/collection/components/calcite-icon/calcite-icon.js +4 -0
- package/dist/collection/components/calcite-icon/resources.js +4 -0
- package/dist/collection/components/calcite-icon/utils.js +4 -0
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +9 -4
- package/dist/collection/components/calcite-inline-editable/resources.js +4 -0
- package/dist/collection/components/calcite-input/calcite-input.js +18 -19
- package/dist/collection/components/calcite-input/interfaces.js +4 -0
- package/dist/collection/components/calcite-input/resources.js +4 -0
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +12 -8
- package/dist/collection/components/calcite-input-message/calcite-input-message.js +4 -0
- package/dist/collection/components/calcite-input-message/interfaces.js +4 -0
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +14 -10
- package/dist/collection/components/calcite-label/calcite-label.js +4 -0
- package/dist/collection/components/calcite-label/resources.js +4 -0
- package/dist/collection/components/calcite-link/calcite-link.js +15 -1
- package/dist/collection/components/calcite-list/calcite-list.js +37 -1
- package/dist/collection/components/calcite-list/resources.js +4 -0
- package/dist/collection/components/calcite-list-item/calcite-list-item.js +34 -2
- package/dist/collection/components/calcite-list-item/resources.js +4 -0
- package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.js +4 -0
- package/dist/collection/components/calcite-list-item-group/resources.js +4 -0
- package/dist/collection/components/calcite-loader/calcite-loader.css +3 -3
- package/dist/collection/components/calcite-loader/calcite-loader.js +4 -0
- package/dist/collection/components/calcite-modal/calcite-modal.js +4 -0
- package/dist/collection/components/calcite-modal/interfaces.js +4 -0
- package/dist/collection/components/calcite-modal/resources.js +4 -0
- package/dist/collection/components/calcite-notice/calcite-notice.css +18 -6
- package/dist/collection/components/calcite-notice/calcite-notice.js +4 -0
- package/dist/collection/components/calcite-notice/resources.js +4 -0
- package/dist/collection/components/calcite-option/calcite-option.js +4 -0
- package/dist/collection/components/calcite-option-group/calcite-option-group.js +4 -0
- package/dist/collection/components/calcite-pagination/calcite-pagination.js +4 -0
- package/dist/collection/components/calcite-pagination/resources.js +4 -0
- package/dist/collection/components/calcite-panel/calcite-panel.js +4 -0
- package/dist/collection/components/calcite-panel/resources.js +4 -0
- package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +4 -0
- package/dist/collection/components/calcite-pick-list/resources.js +4 -0
- package/dist/collection/components/calcite-pick-list/shared-list-logic.js +4 -0
- package/dist/collection/components/calcite-pick-list/shared-list-render.js +4 -0
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +4 -0
- package/dist/collection/components/calcite-pick-list-group/resources.js +4 -0
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +4 -0
- package/dist/collection/components/calcite-pick-list-item/resources.js +4 -0
- package/dist/collection/components/calcite-popover/calcite-popover.js +4 -0
- package/dist/collection/components/calcite-popover/resources.js +4 -0
- package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +4 -0
- package/dist/collection/components/calcite-progress/calcite-progress.js +4 -0
- package/dist/collection/components/calcite-radio/calcite-radio.js +4 -0
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +19 -15
- package/dist/collection/components/calcite-radio-button/resources.js +4 -0
- package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.js +4 -0
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +12 -8
- package/dist/collection/components/calcite-radio-group/interfaces.js +4 -0
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +1 -5
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +4 -0
- package/dist/collection/components/calcite-radio-group-item/resources.js +4 -0
- package/dist/collection/components/calcite-rating/calcite-rating.js +12 -8
- package/dist/collection/components/calcite-rating/resources.js +4 -0
- package/dist/collection/components/calcite-scrim/calcite-scrim.js +4 -0
- package/dist/collection/components/calcite-scrim/resources.js +4 -0
- package/dist/collection/components/calcite-select/calcite-select.js +12 -8
- package/dist/collection/components/calcite-select/resources.js +4 -0
- package/dist/collection/components/calcite-shell/calcite-shell.js +4 -0
- package/dist/collection/components/calcite-shell/resources.js +4 -0
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +4 -0
- package/dist/collection/components/calcite-shell-center-row/resources.js +4 -0
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +4 -0
- package/dist/collection/components/calcite-shell-panel/resources.js +4 -0
- package/dist/collection/components/calcite-slider/calcite-slider.js +13 -9
- package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.js +4 -0
- package/dist/collection/components/calcite-sortable-list/resources.js +4 -0
- package/dist/collection/components/calcite-split-button/calcite-split-button.js +4 -0
- package/dist/collection/components/calcite-split-button/resources.js +4 -0
- package/dist/collection/components/calcite-stepper/calcite-stepper.js +4 -0
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +4 -0
- package/dist/collection/components/calcite-switch/calcite-switch.js +15 -11
- package/dist/collection/components/calcite-tab/calcite-tab.js +4 -0
- package/dist/collection/components/calcite-tab/interfaces.js +4 -0
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +4 -0
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +4 -0
- package/dist/collection/components/calcite-tabs/calcite-tabs.js +4 -0
- package/dist/collection/components/calcite-tabs/interfaces.js +4 -0
- package/dist/collection/components/calcite-tabs/resources.js +4 -0
- package/dist/collection/components/calcite-tile/calcite-tile.js +4 -0
- package/dist/collection/components/calcite-tile/resources.js +4 -0
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +4 -0
- package/dist/collection/components/calcite-tile-select/interfaces.js +4 -0
- package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.js +4 -0
- package/dist/collection/components/calcite-tile-select-group/interfaces.js +4 -0
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +4 -0
- package/dist/collection/components/calcite-time-picker/resources.js +4 -0
- package/dist/collection/components/calcite-tip/calcite-tip.js +4 -0
- package/dist/collection/components/calcite-tip/resources.js +4 -0
- package/dist/collection/components/calcite-tip-group/calcite-tip-group.js +4 -0
- package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js +4 -0
- package/dist/collection/components/calcite-tip-manager/resources.js +4 -0
- package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +4 -0
- package/dist/collection/components/calcite-tooltip/resources.js +4 -0
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +7 -2
- package/dist/collection/components/calcite-tree/calcite-tree.js +4 -0
- package/dist/collection/components/calcite-tree/interfaces.js +4 -0
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +4 -0
- package/dist/collection/components/calcite-tree-item/interfaces.js +4 -0
- package/dist/collection/components/calcite-tree-item/resources.js +4 -0
- package/dist/collection/components/calcite-value-list/calcite-value-list.js +4 -0
- package/dist/collection/components/calcite-value-list/resources.js +4 -0
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +4 -0
- package/dist/collection/components/calcite-value-list-item/resources.js +4 -0
- package/dist/collection/components/functional/CalciteExpandToggle.js +4 -0
- package/dist/collection/components/functional/CalciteHeading.js +4 -0
- package/dist/collection/components/interfaces.js +4 -0
- package/dist/collection/utils/array.js +4 -0
- package/dist/collection/utils/date.js +4 -0
- package/dist/collection/utils/dom.js +4 -0
- package/dist/collection/utils/filter.js +4 -0
- package/dist/collection/utils/form.js +4 -0
- package/dist/collection/utils/guid.js +4 -0
- package/dist/collection/utils/key.js +4 -0
- package/dist/collection/utils/label.js +8 -4
- package/dist/collection/utils/locale.js +4 -0
- package/dist/collection/utils/math.js +4 -0
- package/dist/collection/utils/number.js +4 -3
- package/dist/collection/utils/observers.js +4 -0
- package/dist/collection/utils/popper.js +4 -0
- package/dist/collection/utils/resources.js +4 -0
- package/dist/collection/utils/time.js +4 -0
- package/dist/components/CalciteExpandToggle.js +87 -0
- package/dist/components/CalciteHeading.js +16 -0
- package/dist/components/array.js +9 -0
- package/dist/components/calcite-accordion-item.d.ts +11 -0
- package/dist/components/calcite-accordion-item.js +153 -0
- package/dist/components/calcite-accordion.d.ts +11 -0
- package/dist/components/calcite-accordion.js +167 -0
- package/dist/components/calcite-action-bar.d.ts +11 -0
- package/dist/components/calcite-action-bar.js +266 -0
- package/dist/components/calcite-action-group.d.ts +11 -0
- package/dist/components/calcite-action-group.js +10 -0
- package/dist/components/calcite-action-group2.js +135 -0
- package/dist/components/calcite-action-menu.d.ts +11 -0
- package/dist/components/calcite-action-menu.js +10 -0
- package/dist/components/calcite-action-menu2.js +354 -0
- package/dist/components/calcite-action-pad.d.ts +11 -0
- package/dist/components/calcite-action-pad.js +198 -0
- package/dist/components/calcite-action.d.ts +11 -0
- package/dist/components/calcite-action.js +10 -0
- package/dist/components/calcite-action2.js +183 -0
- package/dist/components/calcite-alert.d.ts +11 -0
- package/dist/components/calcite-alert.js +232 -0
- package/dist/components/calcite-avatar.d.ts +11 -0
- package/dist/components/calcite-avatar.js +171 -0
- package/dist/components/calcite-block-section.d.ts +11 -0
- package/dist/components/calcite-block-section.js +139 -0
- package/dist/components/calcite-block.d.ts +11 -0
- package/dist/components/calcite-block.js +216 -0
- package/dist/components/calcite-button.d.ts +11 -0
- package/dist/components/calcite-button.js +10 -0
- package/dist/components/calcite-button2.js +243 -0
- package/dist/components/calcite-card.d.ts +11 -0
- package/dist/components/calcite-card.js +156 -0
- package/dist/components/calcite-checkbox.d.ts +11 -0
- package/dist/components/calcite-checkbox.js +10 -0
- package/dist/components/calcite-checkbox2.js +203 -0
- package/dist/components/calcite-chip.d.ts +11 -0
- package/dist/components/calcite-chip.js +10 -0
- package/dist/components/calcite-chip2.js +121 -0
- package/dist/components/calcite-color-picker-hex-input.d.ts +11 -0
- package/dist/components/calcite-color-picker-hex-input.js +10 -0
- package/dist/components/calcite-color-picker-hex-input2.js +353 -0
- package/dist/components/calcite-color-picker-swatch.d.ts +11 -0
- package/dist/components/calcite-color-picker-swatch.js +10 -0
- package/dist/components/calcite-color-picker-swatch2.js +2176 -0
- package/dist/components/calcite-color-picker.d.ts +11 -0
- package/dist/components/calcite-color-picker.js +966 -0
- package/dist/components/calcite-combobox-item-group.d.ts +11 -0
- package/dist/components/calcite-combobox-item-group.js +68 -0
- package/dist/components/calcite-combobox-item.d.ts +11 -0
- package/dist/components/calcite-combobox-item.js +168 -0
- package/dist/components/calcite-combobox.d.ts +11 -0
- package/dist/components/calcite-combobox.js +871 -0
- package/dist/components/calcite-date-picker-day.d.ts +11 -0
- package/dist/components/calcite-date-picker-day.js +10 -0
- package/dist/components/calcite-date-picker-day2.js +99 -0
- package/dist/components/calcite-date-picker-month-header.d.ts +11 -0
- package/dist/components/calcite-date-picker-month-header.js +10 -0
- package/dist/components/calcite-date-picker-month-header2.js +170 -0
- package/dist/components/calcite-date-picker-month.d.ts +11 -0
- package/dist/components/calcite-date-picker-month.js +10 -0
- package/dist/components/calcite-date-picker-month2.js +313 -0
- package/dist/components/calcite-date-picker.d.ts +11 -0
- package/dist/components/calcite-date-picker.js +10 -0
- package/dist/components/calcite-date-picker2.js +486 -0
- package/dist/components/calcite-dropdown-group.d.ts +11 -0
- package/dist/components/calcite-dropdown-group.js +90 -0
- package/dist/components/calcite-dropdown-item.d.ts +11 -0
- package/dist/components/calcite-dropdown-item.js +202 -0
- package/dist/components/calcite-dropdown.d.ts +11 -0
- package/dist/components/calcite-dropdown.js +10 -0
- package/dist/components/calcite-dropdown2.js +390 -0
- package/dist/components/calcite-fab.d.ts +11 -0
- package/dist/components/calcite-fab.js +127 -0
- package/dist/components/calcite-filter.d.ts +11 -0
- package/dist/components/calcite-filter.js +10 -0
- package/dist/components/calcite-filter2.js +165 -0
- package/dist/components/calcite-flow.d.ts +11 -0
- package/dist/components/calcite-flow.js +138 -0
- package/dist/components/calcite-graph.d.ts +11 -0
- package/dist/components/calcite-graph.js +10 -0
- package/dist/components/calcite-graph2.js +203 -0
- package/dist/components/calcite-handle.d.ts +11 -0
- package/dist/components/calcite-handle.js +10 -0
- package/dist/components/calcite-handle2.js +107 -0
- package/dist/components/calcite-icon.d.ts +11 -0
- package/dist/components/calcite-icon.js +10 -0
- package/dist/components/calcite-icon2.js +185 -0
- package/dist/components/calcite-inline-editable.d.ts +11 -0
- package/dist/components/calcite-inline-editable.js +242 -0
- package/dist/components/calcite-input-date-picker.d.ts +11 -0
- package/dist/components/calcite-input-date-picker.js +471 -0
- package/dist/components/calcite-input-message.d.ts +11 -0
- package/dist/components/calcite-input-message.js +97 -0
- package/dist/components/calcite-input-time-picker.d.ts +11 -0
- package/dist/components/calcite-input-time-picker.js +278 -0
- package/dist/components/calcite-input.d.ts +11 -0
- package/dist/components/calcite-input.js +10 -0
- package/dist/components/calcite-input2.js +494 -0
- package/dist/components/calcite-label.d.ts +11 -0
- package/dist/components/calcite-label.js +84 -0
- package/dist/components/calcite-link.d.ts +11 -0
- package/dist/components/calcite-link.js +10 -0
- package/dist/components/calcite-link2.js +97 -0
- package/dist/components/calcite-list-item-group.d.ts +11 -0
- package/dist/components/calcite-list-item-group.js +57 -0
- package/dist/components/calcite-list-item.d.ts +11 -0
- package/dist/components/calcite-list-item.js +117 -0
- package/dist/components/calcite-list.d.ts +11 -0
- package/dist/components/calcite-list.js +59 -0
- package/dist/components/calcite-loader.d.ts +11 -0
- package/dist/components/calcite-loader.js +10 -0
- package/dist/components/calcite-loader2.js +107 -0
- package/dist/components/calcite-modal.d.ts +11 -0
- package/dist/components/calcite-modal.js +417 -0
- package/dist/components/calcite-notice.d.ts +11 -0
- package/dist/components/calcite-notice.js +140 -0
- package/dist/components/calcite-option-group.d.ts +11 -0
- package/dist/components/calcite-option-group.js +61 -0
- package/dist/components/calcite-option.d.ts +11 -0
- package/dist/components/calcite-option.js +107 -0
- package/dist/components/calcite-pagination.d.ts +11 -0
- package/dist/components/calcite-pagination.js +207 -0
- package/dist/components/calcite-panel.d.ts +11 -0
- package/dist/components/calcite-panel.js +309 -0
- package/dist/components/calcite-pick-list-group.d.ts +11 -0
- package/dist/components/calcite-pick-list-group.js +70 -0
- package/dist/components/calcite-pick-list-item.d.ts +11 -0
- package/dist/components/calcite-pick-list-item.js +10 -0
- package/dist/components/calcite-pick-list-item2.js +230 -0
- package/dist/components/calcite-pick-list.d.ts +11 -0
- package/dist/components/calcite-pick-list.js +196 -0
- package/dist/components/calcite-popover-manager.d.ts +11 -0
- package/dist/components/calcite-popover-manager.js +93 -0
- package/dist/components/calcite-popover.d.ts +11 -0
- package/dist/components/calcite-popover.js +10 -0
- package/dist/components/calcite-popover2.js +332 -0
- package/dist/components/calcite-progress.d.ts +11 -0
- package/dist/components/calcite-progress.js +10 -0
- package/dist/components/calcite-progress2.js +52 -0
- package/dist/components/calcite-radio-button-group.d.ts +11 -0
- package/dist/components/calcite-radio-button-group.js +116 -0
- package/dist/components/calcite-radio-button.d.ts +11 -0
- package/dist/components/calcite-radio-button.js +291 -0
- package/dist/components/calcite-radio-group-item.d.ts +11 -0
- package/dist/components/calcite-radio-group-item.js +139 -0
- package/dist/components/calcite-radio-group.d.ts +11 -0
- package/dist/components/calcite-radio-group.js +233 -0
- package/dist/components/calcite-radio.d.ts +11 -0
- package/dist/components/calcite-radio.js +10 -0
- package/dist/components/calcite-radio2.js +68 -0
- package/dist/components/calcite-rating.d.ts +11 -0
- package/dist/components/calcite-rating.js +160 -0
- package/dist/components/calcite-scrim.d.ts +11 -0
- package/dist/components/calcite-scrim.js +10 -0
- package/dist/components/calcite-scrim2.js +74 -0
- package/dist/components/calcite-select.d.ts +11 -0
- package/dist/components/calcite-select.js +221 -0
- package/dist/components/calcite-shell-center-row.d.ts +11 -0
- package/dist/components/calcite-shell-center-row.js +81 -0
- package/dist/components/calcite-shell-panel.d.ts +11 -0
- package/dist/components/calcite-shell-panel.js +100 -0
- package/dist/components/calcite-shell.d.ts +11 -0
- package/dist/components/calcite-shell.js +99 -0
- package/dist/components/calcite-slider.d.ts +11 -0
- package/dist/components/calcite-slider.js +746 -0
- package/dist/components/calcite-sortable-list.d.ts +11 -0
- package/dist/components/calcite-sortable-list.js +190 -0
- package/dist/components/calcite-split-button.d.ts +11 -0
- package/dist/components/calcite-split-button.js +127 -0
- package/dist/components/calcite-stepper-item.d.ts +11 -0
- package/dist/components/calcite-stepper-item.js +189 -0
- package/dist/components/calcite-stepper.d.ts +11 -0
- package/dist/components/calcite-stepper.js +247 -0
- package/dist/components/calcite-switch.d.ts +11 -0
- package/dist/components/calcite-switch.js +10 -0
- package/dist/components/calcite-switch2.js +162 -0
- package/dist/components/calcite-tab-nav.d.ts +11 -0
- package/dist/components/calcite-tab-nav.js +10 -0
- package/dist/components/calcite-tab-nav2.js +209 -0
- package/dist/components/calcite-tab-title.d.ts +11 -0
- package/dist/components/calcite-tab-title.js +10 -0
- package/dist/components/calcite-tab-title2.js +230 -0
- package/dist/components/calcite-tab.d.ts +11 -0
- package/dist/components/calcite-tab.js +10 -0
- package/dist/components/calcite-tab2.js +122 -0
- package/dist/components/calcite-tabs.d.ts +11 -0
- package/dist/components/calcite-tabs.js +10 -0
- package/dist/components/calcite-tabs2.js +183 -0
- package/dist/components/calcite-tile-select-group.d.ts +11 -0
- package/dist/components/calcite-tile-select-group.js +45 -0
- package/dist/components/calcite-tile-select.d.ts +11 -0
- package/dist/components/calcite-tile-select.js +218 -0
- package/dist/components/calcite-tile.d.ts +11 -0
- package/dist/components/calcite-tile.js +10 -0
- package/dist/components/calcite-tile2.js +98 -0
- package/dist/components/calcite-time-picker.d.ts +11 -0
- package/dist/components/calcite-time-picker.js +10 -0
- package/dist/components/calcite-time-picker2.js +707 -0
- package/dist/components/calcite-tip-group.d.ts +11 -0
- package/dist/components/calcite-tip-group.js +38 -0
- package/dist/components/calcite-tip-manager.d.ts +11 -0
- package/dist/components/calcite-tip-manager.js +218 -0
- package/dist/components/calcite-tip.d.ts +11 -0
- package/dist/components/calcite-tip.js +140 -0
- package/dist/components/calcite-tooltip-manager.d.ts +11 -0
- package/dist/components/calcite-tooltip-manager.js +10 -0
- package/dist/components/calcite-tooltip-manager2.js +168 -0
- package/dist/components/calcite-tooltip.d.ts +11 -0
- package/dist/components/calcite-tooltip.js +224 -0
- package/dist/components/calcite-tree-item.d.ts +11 -0
- package/dist/components/calcite-tree-item.js +303 -0
- package/dist/components/calcite-tree.d.ts +11 -0
- package/dist/components/calcite-tree.js +216 -0
- package/dist/components/calcite-value-list-item.d.ts +11 -0
- package/dist/components/calcite-value-list-item.js +180 -0
- package/dist/components/calcite-value-list.d.ts +11 -0
- package/dist/components/calcite-value-list.js +271 -0
- package/dist/components/date.js +159 -0
- package/dist/components/debounce.js +486 -0
- package/dist/components/dom.js +153 -0
- package/dist/components/forIn.js +619 -0
- package/dist/components/form.js +20 -0
- package/dist/components/guid.js +18 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +5 -0
- package/dist/components/interfaces.js +13 -0
- package/dist/components/interfaces2.js +14 -0
- package/dist/components/key.js +33 -0
- package/dist/components/label.js +54 -0
- package/dist/components/locale.js +118 -0
- package/dist/components/math.js +7 -0
- package/dist/components/number.js +40 -0
- package/dist/components/observers.js +22 -0
- package/dist/components/popper.js +1785 -0
- package/dist/components/resources.js +24 -0
- package/dist/components/resources2.js +13 -0
- package/dist/components/resources3.js +18 -0
- package/dist/components/resources4.js +32 -0
- package/dist/components/shared-list-render.js +286 -0
- package/dist/components/sortable.esm.js +3017 -0
- package/dist/components/utils.js +113 -0
- package/dist/components/utils2.js +38 -0
- package/dist/custom-elements/index.js +298 -249
- package/dist/esm/CalciteExpandToggle-151a563a.js +87 -0
- package/dist/esm/CalciteHeading-1735f17a.js +16 -0
- package/dist/esm/array-91a648e2.js +9 -0
- package/dist/esm/calcite-accordion_2.entry.js +8 -4
- package/dist/esm/calcite-action-bar.entry.js +12 -8
- package/dist/esm/calcite-action-group.entry.js +9 -5
- package/dist/esm/calcite-action-menu.entry.js +14 -8
- package/dist/esm/calcite-action-pad.entry.js +10 -6
- package/dist/esm/calcite-action.entry.js +11 -11
- package/dist/esm/calcite-alert.entry.js +9 -5
- package/dist/esm/calcite-avatar.entry.js +8 -4
- package/dist/esm/calcite-block_2.entry.js +21 -14
- package/dist/esm/calcite-button.entry.js +59 -38
- package/dist/esm/calcite-card.entry.js +8 -4
- package/dist/esm/calcite-checkbox.entry.js +14 -10
- package/dist/esm/calcite-chip.entry.js +7 -3
- package/dist/esm/calcite-color-picker_3.entry.js +11 -7
- package/dist/esm/calcite-combobox_3.entry.js +25 -21
- package/dist/esm/calcite-date-picker_4.entry.js +15 -11
- package/dist/esm/calcite-dropdown_3.entry.js +45 -36
- package/dist/esm/calcite-fab.entry.js +7 -3
- package/dist/esm/calcite-filter.entry.js +10 -6
- package/dist/esm/calcite-flow.entry.js +6 -2
- package/dist/esm/calcite-graph_2.entry.js +19 -15
- package/dist/esm/calcite-handle.entry.js +5 -1
- package/dist/esm/calcite-icon.entry.js +8 -4
- package/dist/esm/calcite-inline-editable.entry.js +12 -7
- package/dist/esm/calcite-input-date-picker.entry.js +21 -17
- package/dist/esm/calcite-input-message.entry.js +7 -3
- package/dist/esm/calcite-input-time-picker_2.entry.js +19 -15
- package/dist/esm/calcite-input.entry.js +25 -26
- package/dist/esm/calcite-label.entry.js +7 -3
- package/dist/esm/calcite-link.entry.js +13 -3
- package/dist/esm/calcite-list_3.entry.js +30 -5
- package/dist/esm/calcite-loader.entry.js +7 -3
- package/dist/esm/calcite-modal.entry.js +9 -5
- package/dist/esm/calcite-notice.entry.js +9 -5
- package/dist/esm/calcite-option_3.entry.js +17 -13
- package/dist/esm/calcite-pagination.entry.js +7 -3
- package/dist/esm/calcite-panel.entry.js +9 -5
- package/dist/esm/calcite-pick-list_3.entry.js +12 -8
- package/dist/esm/calcite-popover_2.entry.js +9 -5
- package/dist/esm/calcite-progress.entry.js +5 -1
- package/dist/esm/calcite-radio-button-group.entry.js +5 -1
- package/dist/esm/calcite-radio-group_2.entry.js +19 -15
- package/dist/esm/calcite-radio_2.entry.js +24 -20
- package/dist/esm/calcite-rating.entry.js +16 -12
- package/dist/esm/calcite-scrim.entry.js +5 -1
- package/dist/esm/calcite-shell_3.entry.js +7 -3
- package/dist/esm/calcite-sortable-list.entry.js +7 -3
- package/dist/esm/calcite-split-button.entry.js +7 -3
- package/dist/esm/calcite-stepper_2.entry.js +8 -4
- package/dist/esm/calcite-switch.entry.js +21 -17
- package/dist/esm/calcite-tab_4.entry.js +9 -5
- package/dist/esm/calcite-tile-select_2.entry.js +7 -3
- package/dist/esm/calcite-tile.entry.js +7 -3
- package/dist/esm/calcite-tip_3.entry.js +9 -5
- package/dist/esm/calcite-tooltip_2.entry.js +12 -7
- package/dist/esm/calcite-tree_2.entry.js +8 -4
- package/dist/esm/calcite-value-list_2.entry.js +12 -8
- package/dist/esm/calcite.js +6 -2
- package/dist/esm/debounce-79648d42.js +486 -0
- package/dist/esm/dom-f24e866c.js +153 -0
- package/dist/esm/forIn-48d8fb84.js +619 -0
- package/dist/esm/form-cee9f632.js +20 -0
- package/dist/esm/guid-196bd5ea.js +18 -0
- package/dist/esm/index-d653c37f.js +2033 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/interfaces-51dc4e1b.js +13 -0
- package/dist/esm/key-69001a68.js +33 -0
- package/dist/esm/label-bb61bdef.js +54 -0
- package/dist/esm/loader.js +6 -2
- package/dist/esm/locale-6c1b85c7.js +118 -0
- package/dist/esm/math-250d4476.js +7 -0
- package/dist/esm/number-e7393766.js +40 -0
- package/dist/esm/observers-8f0bc419.js +20 -0
- package/dist/esm/popper-7499ea4f.js +1785 -0
- package/dist/esm/resources-3b481489.js +216 -0
- package/dist/esm/resources-510eed1a.js +325 -0
- package/dist/esm/resources-584acd9b.js +17 -0
- package/dist/esm/resources-7c6029b6.js +16 -0
- package/dist/esm/sortable.esm-04824d33.js +3017 -0
- package/dist/esm/utils-6beb0662.js +113 -0
- package/dist/esm-es5/CalciteExpandToggle-151a563a.js +5 -0
- package/dist/esm-es5/CalciteHeading-1735f17a.js +5 -0
- package/dist/esm-es5/array-91a648e2.js +5 -0
- package/dist/esm-es5/calcite-accordion_2.entry.js +5 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +5 -1
- package/dist/esm-es5/calcite-action-group.entry.js +5 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +5 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +5 -1
- package/dist/esm-es5/calcite-action.entry.js +5 -1
- package/dist/esm-es5/calcite-alert.entry.js +5 -1
- package/dist/esm-es5/calcite-avatar.entry.js +5 -1
- package/dist/esm-es5/calcite-block_2.entry.js +5 -1
- package/dist/esm-es5/calcite-button.entry.js +5 -1
- package/dist/esm-es5/calcite-card.entry.js +5 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +5 -1
- package/dist/esm-es5/calcite-chip.entry.js +5 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +5 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +5 -1
- package/dist/esm-es5/calcite-date-picker_4.entry.js +5 -1
- package/dist/esm-es5/calcite-dropdown_3.entry.js +5 -1
- package/dist/esm-es5/calcite-fab.entry.js +5 -1
- package/dist/esm-es5/calcite-filter.entry.js +5 -1
- package/dist/esm-es5/calcite-flow.entry.js +5 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +5 -1
- package/dist/esm-es5/calcite-handle.entry.js +5 -1
- package/dist/esm-es5/calcite-icon.entry.js +5 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +5 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +5 -1
- package/dist/esm-es5/calcite-input-message.entry.js +5 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +5 -1
- package/dist/esm-es5/calcite-input.entry.js +5 -1
- package/dist/esm-es5/calcite-label.entry.js +5 -1
- package/dist/esm-es5/calcite-link.entry.js +5 -1
- package/dist/esm-es5/calcite-list_3.entry.js +5 -1
- package/dist/esm-es5/calcite-loader.entry.js +5 -1
- package/dist/esm-es5/calcite-modal.entry.js +5 -1
- package/dist/esm-es5/calcite-notice.entry.js +5 -1
- package/dist/esm-es5/calcite-option_3.entry.js +5 -1
- package/dist/esm-es5/calcite-pagination.entry.js +5 -1
- package/dist/esm-es5/calcite-panel.entry.js +5 -1
- package/dist/esm-es5/calcite-pick-list_3.entry.js +5 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +5 -1
- package/dist/esm-es5/calcite-progress.entry.js +5 -1
- package/dist/esm-es5/calcite-radio-button-group.entry.js +5 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +5 -1
- package/dist/esm-es5/calcite-radio_2.entry.js +5 -1
- package/dist/esm-es5/calcite-rating.entry.js +5 -1
- package/dist/esm-es5/calcite-scrim.entry.js +5 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +5 -1
- package/dist/esm-es5/calcite-sortable-list.entry.js +5 -1
- package/dist/esm-es5/calcite-split-button.entry.js +5 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +5 -1
- package/dist/esm-es5/calcite-switch.entry.js +5 -1
- package/dist/esm-es5/calcite-tab_4.entry.js +5 -1
- package/dist/esm-es5/calcite-tile-select_2.entry.js +5 -1
- package/dist/esm-es5/calcite-tile.entry.js +5 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +5 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +5 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +5 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +5 -1
- package/dist/esm-es5/calcite.js +5 -1
- package/dist/esm-es5/debounce-79648d42.js +5 -0
- package/dist/esm-es5/dom-f24e866c.js +5 -0
- package/dist/esm-es5/forIn-48d8fb84.js +5 -0
- package/dist/esm-es5/form-cee9f632.js +5 -0
- package/dist/esm-es5/guid-196bd5ea.js +5 -0
- package/dist/esm-es5/index-d653c37f.js +5 -0
- package/dist/esm-es5/index.js +4 -0
- package/dist/esm-es5/interfaces-51dc4e1b.js +5 -0
- package/dist/esm-es5/key-69001a68.js +5 -0
- package/dist/esm-es5/label-bb61bdef.js +5 -0
- package/dist/esm-es5/loader.js +5 -1
- package/dist/esm-es5/locale-6c1b85c7.js +5 -0
- package/dist/esm-es5/math-250d4476.js +5 -0
- package/dist/esm-es5/number-e7393766.js +5 -0
- package/dist/esm-es5/observers-8f0bc419.js +5 -0
- package/dist/esm-es5/popper-7499ea4f.js +5 -0
- package/dist/esm-es5/resources-3b481489.js +5 -0
- package/dist/esm-es5/resources-510eed1a.js +5 -0
- package/dist/esm-es5/resources-584acd9b.js +5 -0
- package/dist/esm-es5/resources-7c6029b6.js +5 -0
- package/dist/esm-es5/sortable.esm-04824d33.js +11 -0
- package/dist/esm-es5/utils-6beb0662.js +5 -0
- package/dist/extras/docs-json.json +36 -10
- package/dist/loader/cdn.js +4 -1
- package/dist/loader/index.cjs.js +4 -1
- package/dist/loader/index.es2017.js +4 -1
- package/dist/loader/index.js +4 -1
- package/dist/types/components/calcite-action/calcite-action.d.ts +2 -2
- package/dist/types/components/calcite-block/resources.d.ts +2 -0
- package/dist/types/components/calcite-button/calcite-button.d.ts +10 -3
- package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +1 -1
- package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +1 -1
- package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +6 -4
- package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +1 -1
- package/dist/types/components/calcite-input/calcite-input.d.ts +1 -1
- package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +1 -1
- package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +2 -2
- package/dist/types/components/calcite-link/calcite-link.d.ts +2 -1
- package/dist/types/components/calcite-list/calcite-list.d.ts +3 -0
- package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +3 -0
- package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +1 -1
- package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +1 -1
- package/dist/types/components/calcite-rating/calcite-rating.d.ts +1 -1
- package/dist/types/components/calcite-select/calcite-select.d.ts +1 -1
- package/dist/types/components/calcite-slider/calcite-slider.d.ts +1 -1
- package/dist/types/components/calcite-switch/calcite-switch.d.ts +1 -1
- package/dist/types/components.d.ts +14 -4
- package/dist/types/utils/number.d.ts +0 -1
- package/hydrate/index.js +303 -250
- package/package.json +35 -37
- package/readme.md +5 -5
- package/dist/calcite/p-00f2f64d.system.entry.js +0 -1
- package/dist/calcite/p-010e5fb9.entry.js +0 -1
- package/dist/calcite/p-03b25bb5.entry.js +0 -1
- package/dist/calcite/p-058f3354.system.entry.js +0 -1
- package/dist/calcite/p-0671d67f.entry.js +0 -1
- package/dist/calcite/p-0a465f92.entry.js +0 -1
- package/dist/calcite/p-0aa3fc7e.entry.js +0 -1
- package/dist/calcite/p-0ae16e31.js +0 -1
- package/dist/calcite/p-0b539bae.system.entry.js +0 -1
- package/dist/calcite/p-0c356cca.entry.js +0 -1
- package/dist/calcite/p-1114dae7.entry.js +0 -1
- package/dist/calcite/p-14893331.system.entry.js +0 -1
- package/dist/calcite/p-170fb8e8.system.entry.js +0 -1
- package/dist/calcite/p-18a62b5e.js +0 -1
- package/dist/calcite/p-19a2021f.entry.js +0 -1
- package/dist/calcite/p-19ac376f.js +0 -1
- package/dist/calcite/p-19d3b749.system.entry.js +0 -1
- package/dist/calcite/p-1a53829b.system.entry.js +0 -1
- package/dist/calcite/p-1c3c9e42.entry.js +0 -1
- package/dist/calcite/p-1df0fd29.system.entry.js +0 -1
- package/dist/calcite/p-203e04e5.entry.js +0 -1
- package/dist/calcite/p-23b87c6a.system.entry.js +0 -1
- package/dist/calcite/p-23edddc9.entry.js +0 -1
- package/dist/calcite/p-2a9b4a25.system.js +0 -1
- package/dist/calcite/p-2c235db8.system.js +0 -1
- package/dist/calcite/p-2e9e2b7c.entry.js +0 -1
- package/dist/calcite/p-30f1442b.js +0 -1
- package/dist/calcite/p-32a0f498.entry.js +0 -1
- package/dist/calcite/p-340e1f88.entry.js +0 -1
- package/dist/calcite/p-3426e87b.system.js +0 -1
- package/dist/calcite/p-354fbadd.js +0 -1
- package/dist/calcite/p-38b3ff5f.system.entry.js +0 -1
- package/dist/calcite/p-39b743d9.system.entry.js +0 -1
- package/dist/calcite/p-3b55b390.entry.js +0 -1
- package/dist/calcite/p-3cdef0cd.entry.js +0 -1
- package/dist/calcite/p-43a9faca.js +0 -1
- package/dist/calcite/p-44810e63.entry.js +0 -1
- package/dist/calcite/p-482ec054.system.js +0 -1
- package/dist/calcite/p-4936ee1a.entry.js +0 -1
- package/dist/calcite/p-4a69f94f.entry.js +0 -1
- package/dist/calcite/p-4bb3e49c.entry.js +0 -1
- package/dist/calcite/p-4dc4c758.entry.js +0 -1
- package/dist/calcite/p-4e3dcb60.entry.js +0 -1
- package/dist/calcite/p-4f24139e.system.entry.js +0 -1
- package/dist/calcite/p-4fce2a7a.system.js +0 -1
- package/dist/calcite/p-4fda49e6.js +0 -1
- package/dist/calcite/p-50ea2036.system.js +0 -1
- package/dist/calcite/p-53caa311.system.js +0 -1
- package/dist/calcite/p-55379ee6.system.entry.js +0 -1
- package/dist/calcite/p-559ffa87.js +0 -1
- package/dist/calcite/p-55f7adaa.system.entry.js +0 -1
- package/dist/calcite/p-58421494.js +0 -1
- package/dist/calcite/p-59f7b582.system.entry.js +0 -1
- package/dist/calcite/p-5a1b0338.system.js +0 -1
- package/dist/calcite/p-5eab55c1.entry.js +0 -1
- package/dist/calcite/p-5f50d376.system.entry.js +0 -1
- package/dist/calcite/p-62977e6b.system.entry.js +0 -1
- package/dist/calcite/p-6350bcd3.system.js +0 -1
- package/dist/calcite/p-65f4f1e9.entry.js +0 -1
- package/dist/calcite/p-674bc090.system.js +0 -1
- package/dist/calcite/p-675364da.system.entry.js +0 -1
- package/dist/calcite/p-69837b80.entry.js +0 -1
- package/dist/calcite/p-69e382de.entry.js +0 -1
- package/dist/calcite/p-6a7d2f7c.entry.js +0 -1
- package/dist/calcite/p-6cb2f24f.entry.js +0 -1
- package/dist/calcite/p-6d98d9dc.system.entry.js +0 -1
- package/dist/calcite/p-6edac967.system.entry.js +0 -1
- package/dist/calcite/p-7521b7ab.system.entry.js +0 -1
- package/dist/calcite/p-771da7ed.system.entry.js +0 -1
- package/dist/calcite/p-79e0b61b.system.entry.js +0 -1
- package/dist/calcite/p-7a241325.system.entry.js +0 -1
- package/dist/calcite/p-7b71e1d4.js +0 -1
- package/dist/calcite/p-7b856f76.system.entry.js +0 -1
- package/dist/calcite/p-7c5c2b30.js +0 -1
- package/dist/calcite/p-7e4036a3.system.entry.js +0 -1
- package/dist/calcite/p-7e4be59e.system.entry.js +0 -1
- package/dist/calcite/p-81371076.entry.js +0 -1
- package/dist/calcite/p-8242ef10.entry.js +0 -1
- package/dist/calcite/p-82a11724.system.js +0 -7
- package/dist/calcite/p-835b14f7.system.entry.js +0 -1
- package/dist/calcite/p-875b172e.entry.js +0 -1
- package/dist/calcite/p-8958d1f6.system.js +0 -1
- package/dist/calcite/p-8975e7c8.entry.js +0 -1
- package/dist/calcite/p-8a16620b.system.js +0 -1
- package/dist/calcite/p-8a30b93d.system.js +0 -1
- package/dist/calcite/p-8cfab352.entry.js +0 -1
- package/dist/calcite/p-8d5f5ebf.js +0 -1
- package/dist/calcite/p-8d9bf455.entry.js +0 -1
- package/dist/calcite/p-8dc31333.js +0 -1
- package/dist/calcite/p-8e46c987.entry.js +0 -1
- package/dist/calcite/p-8ef1afae.system.entry.js +0 -1
- package/dist/calcite/p-8fb7b17f.system.entry.js +0 -1
- package/dist/calcite/p-90b88d97.system.entry.js +0 -1
- package/dist/calcite/p-90ee6b48.entry.js +0 -1
- package/dist/calcite/p-93a7d961.system.entry.js +0 -1
- package/dist/calcite/p-950bdd5b.system.entry.js +0 -1
- package/dist/calcite/p-95dfb659.system.js +0 -1
- package/dist/calcite/p-97b06cc3.entry.js +0 -1
- package/dist/calcite/p-987310d2.system.js +0 -1
- package/dist/calcite/p-9c371694.system.entry.js +0 -1
- package/dist/calcite/p-a096738b.system.entry.js +0 -1
- package/dist/calcite/p-a09cd797.entry.js +0 -1
- package/dist/calcite/p-a0d4c79d.entry.js +0 -1
- package/dist/calcite/p-a4e6e35b.js +0 -1
- package/dist/calcite/p-a54a11ee.system.entry.js +0 -1
- package/dist/calcite/p-a57a7f49.js +0 -7
- package/dist/calcite/p-a6b26bd1.system.js +0 -1
- package/dist/calcite/p-a75f07ae.entry.js +0 -1
- package/dist/calcite/p-a83557c6.entry.js +0 -1
- package/dist/calcite/p-a8650c17.system.js +0 -1
- package/dist/calcite/p-ac44517b.system.entry.js +0 -1
- package/dist/calcite/p-ad290529.system.entry.js +0 -1
- package/dist/calcite/p-b10d0018.system.entry.js +0 -1
- package/dist/calcite/p-b2425e21.js +0 -1
- package/dist/calcite/p-b286e0a5.system.entry.js +0 -1
- package/dist/calcite/p-b2a6687b.system.js +0 -1
- package/dist/calcite/p-b2a79aa2.system.entry.js +0 -1
- package/dist/calcite/p-b4cc79dc.system.js +0 -1
- package/dist/calcite/p-bd291e00.entry.js +0 -1
- package/dist/calcite/p-be531ce4.system.entry.js +0 -1
- package/dist/calcite/p-be6b31d0.entry.js +0 -1
- package/dist/calcite/p-bfca7d51.entry.js +0 -1
- package/dist/calcite/p-c0ee1569.system.entry.js +0 -1
- package/dist/calcite/p-c15a632e.system.entry.js +0 -1
- package/dist/calcite/p-c23bfaf9.system.entry.js +0 -1
- package/dist/calcite/p-c2cd9c1d.system.entry.js +0 -1
- package/dist/calcite/p-c4953aa6.system.entry.js +0 -1
- package/dist/calcite/p-c5257119.entry.js +0 -1
- package/dist/calcite/p-c59d3bb3.system.entry.js +0 -1
- package/dist/calcite/p-c95a18d4.entry.js +0 -1
- package/dist/calcite/p-caf80cd7.js +0 -1
- package/dist/calcite/p-cd8d0dda.entry.js +0 -1
- package/dist/calcite/p-cebd4de5.js +0 -1
- package/dist/calcite/p-cfdbd2e1.entry.js +0 -1
- package/dist/calcite/p-d2907af5.entry.js +0 -1
- package/dist/calcite/p-d2b9513d.entry.js +0 -1
- package/dist/calcite/p-d53c2d2e.system.js +0 -1
- package/dist/calcite/p-d5e63242.entry.js +0 -1
- package/dist/calcite/p-d74caa31.system.entry.js +0 -1
- package/dist/calcite/p-d78a24bb.entry.js +0 -1
- package/dist/calcite/p-d7e0ef91.system.entry.js +0 -1
- package/dist/calcite/p-d858b7ab.js +0 -1
- package/dist/calcite/p-d8a015cb.system.entry.js +0 -1
- package/dist/calcite/p-dc825c55.js +0 -1
- package/dist/calcite/p-dcfa0bba.js +0 -1
- package/dist/calcite/p-dd3f7c73.system.entry.js +0 -1
- package/dist/calcite/p-dda58d1e.system.js +0 -1
- package/dist/calcite/p-ddf50685.system.entry.js +0 -1
- package/dist/calcite/p-de00c01f.entry.js +0 -1
- package/dist/calcite/p-de9b7982.system.entry.js +0 -1
- package/dist/calcite/p-defdc464.system.js +0 -1
- package/dist/calcite/p-e87acd87.system.js +0 -1
- package/dist/calcite/p-ea51eaaa.js +0 -1
- package/dist/calcite/p-ebb0ef70.entry.js +0 -1
- package/dist/calcite/p-ec397dae.entry.js +0 -1
- package/dist/calcite/p-ef0ea98b.system.entry.js +0 -1
- package/dist/calcite/p-ef38dee8.js +0 -1
- package/dist/calcite/p-efe6556c.system.entry.js +0 -1
- package/dist/calcite/p-f02d04ab.system.js +0 -1
- package/dist/calcite/p-f1eddb0f.system.entry.js +0 -1
- package/dist/calcite/p-f95c5864.entry.js +0 -1
- package/dist/calcite/p-fc725435.entry.js +0 -1
- package/dist/cjs/CalciteExpandToggle-b5735fd2.js +0 -90
- package/dist/cjs/CalciteHeading-177f59f2.js +0 -15
- package/dist/cjs/array-4fc5abfa.js +0 -7
- package/dist/cjs/debounce-11980960.js +0 -491
- package/dist/cjs/dom-c9cafa59.js +0 -166
- package/dist/cjs/forIn-46535ded.js +0 -618
- package/dist/cjs/form-432ae178.js +0 -18
- package/dist/cjs/guid-4637ad8f.js +0 -16
- package/dist/cjs/index-105d9087.js +0 -2062
- package/dist/cjs/interfaces-bc0f5779.js +0 -9
- package/dist/cjs/key-f470de4c.js +0 -33
- package/dist/cjs/label-80f9023b.js +0 -54
- package/dist/cjs/locale-eb4486ae.js +0 -119
- package/dist/cjs/math-750406eb.js +0 -5
- package/dist/cjs/number-77308374.js +0 -45
- package/dist/cjs/observers-88b3a2d4.js +0 -18
- package/dist/cjs/popper-a103e375.js +0 -1786
- package/dist/cjs/resources-41daa7d4.js +0 -228
- package/dist/cjs/resources-76637167.js +0 -17
- package/dist/cjs/resources-ae299e51.js +0 -16
- package/dist/cjs/resources-bbca3cea.js +0 -342
- package/dist/cjs/sortable.esm-bcce1d94.js +0 -3015
- package/dist/cjs/utils-d549a0a9.js +0 -119
- package/dist/custom-elements/bundles/accordion.d.ts +0 -1
- package/dist/custom-elements/bundles/accordion.js +0 -5
- package/dist/custom-elements/bundles/action-bar.d.ts +0 -1
- package/dist/custom-elements/bundles/action-bar.js +0 -5
- package/dist/custom-elements/bundles/action-menu.d.ts +0 -1
- package/dist/custom-elements/bundles/action-menu.js +0 -5
- package/dist/custom-elements/bundles/action-pad.d.ts +0 -1
- package/dist/custom-elements/bundles/action-pad.js +0 -5
- package/dist/custom-elements/bundles/action.d.ts +0 -1
- package/dist/custom-elements/bundles/action.js +0 -5
- package/dist/custom-elements/bundles/alert.d.ts +0 -1
- package/dist/custom-elements/bundles/alert.js +0 -5
- package/dist/custom-elements/bundles/avatar.d.ts +0 -1
- package/dist/custom-elements/bundles/avatar.js +0 -5
- package/dist/custom-elements/bundles/block.d.ts +0 -1
- package/dist/custom-elements/bundles/block.js +0 -5
- package/dist/custom-elements/bundles/button.d.ts +0 -1
- package/dist/custom-elements/bundles/button.js +0 -5
- package/dist/custom-elements/bundles/card.d.ts +0 -1
- package/dist/custom-elements/bundles/card.js +0 -5
- package/dist/custom-elements/bundles/checkbox.d.ts +0 -1
- package/dist/custom-elements/bundles/checkbox.js +0 -5
- package/dist/custom-elements/bundles/chip.d.ts +0 -1
- package/dist/custom-elements/bundles/chip.js +0 -5
- package/dist/custom-elements/bundles/color-picker.d.ts +0 -1
- package/dist/custom-elements/bundles/color-picker.js +0 -5
- package/dist/custom-elements/bundles/combobox.d.ts +0 -1
- package/dist/custom-elements/bundles/combobox.js +0 -5
- package/dist/custom-elements/bundles/date-picker.d.ts +0 -1
- package/dist/custom-elements/bundles/date-picker.js +0 -5
- package/dist/custom-elements/bundles/dropdown.d.ts +0 -1
- package/dist/custom-elements/bundles/dropdown.js +0 -5
- package/dist/custom-elements/bundles/fab.d.ts +0 -1
- package/dist/custom-elements/bundles/fab.js +0 -5
- package/dist/custom-elements/bundles/flow.d.ts +0 -1
- package/dist/custom-elements/bundles/flow.js +0 -5
- package/dist/custom-elements/bundles/icon.d.ts +0 -1
- package/dist/custom-elements/bundles/icon.js +0 -5
- package/dist/custom-elements/bundles/inline-editable.d.ts +0 -1
- package/dist/custom-elements/bundles/inline-editable.js +0 -5
- package/dist/custom-elements/bundles/input-date-picker.d.ts +0 -1
- package/dist/custom-elements/bundles/input-date-picker.js +0 -5
- package/dist/custom-elements/bundles/input-message.d.ts +0 -1
- package/dist/custom-elements/bundles/input-message.js +0 -5
- package/dist/custom-elements/bundles/input-time-picker.d.ts +0 -1
- package/dist/custom-elements/bundles/input-time-picker.js +0 -5
- package/dist/custom-elements/bundles/input.d.ts +0 -1
- package/dist/custom-elements/bundles/input.js +0 -5
- package/dist/custom-elements/bundles/label.d.ts +0 -1
- package/dist/custom-elements/bundles/label.js +0 -5
- package/dist/custom-elements/bundles/link.d.ts +0 -1
- package/dist/custom-elements/bundles/link.js +0 -5
- package/dist/custom-elements/bundles/list.d.ts +0 -1
- package/dist/custom-elements/bundles/list.js +0 -5
- package/dist/custom-elements/bundles/loader.d.ts +0 -1
- package/dist/custom-elements/bundles/loader.js +0 -5
- package/dist/custom-elements/bundles/modal.d.ts +0 -1
- package/dist/custom-elements/bundles/modal.js +0 -5
- package/dist/custom-elements/bundles/notice.d.ts +0 -1
- package/dist/custom-elements/bundles/notice.js +0 -5
- package/dist/custom-elements/bundles/pagination.d.ts +0 -1
- package/dist/custom-elements/bundles/pagination.js +0 -5
- package/dist/custom-elements/bundles/panel.d.ts +0 -1
- package/dist/custom-elements/bundles/panel.js +0 -5
- package/dist/custom-elements/bundles/pick-list.d.ts +0 -1
- package/dist/custom-elements/bundles/pick-list.js +0 -5
- package/dist/custom-elements/bundles/popover.d.ts +0 -1
- package/dist/custom-elements/bundles/popover.js +0 -5
- package/dist/custom-elements/bundles/progress.d.ts +0 -1
- package/dist/custom-elements/bundles/progress.js +0 -5
- package/dist/custom-elements/bundles/radio-button-group.d.ts +0 -1
- package/dist/custom-elements/bundles/radio-button-group.js +0 -5
- package/dist/custom-elements/bundles/radio-button.d.ts +0 -1
- package/dist/custom-elements/bundles/radio-button.js +0 -5
- package/dist/custom-elements/bundles/radio-group.d.ts +0 -1
- package/dist/custom-elements/bundles/radio-group.js +0 -5
- package/dist/custom-elements/bundles/rating.d.ts +0 -1
- package/dist/custom-elements/bundles/rating.js +0 -5
- package/dist/custom-elements/bundles/scrim.d.ts +0 -1
- package/dist/custom-elements/bundles/scrim.js +0 -5
- package/dist/custom-elements/bundles/select.d.ts +0 -1
- package/dist/custom-elements/bundles/select.js +0 -5
- package/dist/custom-elements/bundles/shell.d.ts +0 -1
- package/dist/custom-elements/bundles/shell.js +0 -5
- package/dist/custom-elements/bundles/slider.d.ts +0 -1
- package/dist/custom-elements/bundles/slider.js +0 -5
- package/dist/custom-elements/bundles/sortable-list.d.ts +0 -1
- package/dist/custom-elements/bundles/sortable-list.js +0 -5
- package/dist/custom-elements/bundles/split-button.d.ts +0 -1
- package/dist/custom-elements/bundles/split-button.js +0 -5
- package/dist/custom-elements/bundles/stepper.d.ts +0 -1
- package/dist/custom-elements/bundles/stepper.js +0 -5
- package/dist/custom-elements/bundles/switch.d.ts +0 -1
- package/dist/custom-elements/bundles/switch.js +0 -5
- package/dist/custom-elements/bundles/tab.d.ts +0 -1
- package/dist/custom-elements/bundles/tab.js +0 -5
- package/dist/custom-elements/bundles/tile-select-group.d.ts +0 -1
- package/dist/custom-elements/bundles/tile-select-group.js +0 -5
- package/dist/custom-elements/bundles/tile.d.ts +0 -1
- package/dist/custom-elements/bundles/tile.js +0 -5
- package/dist/custom-elements/bundles/tip.d.ts +0 -1
- package/dist/custom-elements/bundles/tip.js +0 -5
- package/dist/custom-elements/bundles/tooltip.d.ts +0 -1
- package/dist/custom-elements/bundles/tooltip.js +0 -5
- package/dist/custom-elements/bundles/tree.d.ts +0 -1
- package/dist/custom-elements/bundles/tree.js +0 -5
- package/dist/custom-elements/bundles/value-list.d.ts +0 -1
- package/dist/custom-elements/bundles/value-list.js +0 -5
- package/dist/custom-elements/index.mjs +0 -24489
- package/dist/custom-elements/utils.d.ts +0 -2
- package/dist/custom-elements/utils.js +0 -11
- package/dist/esm/CalciteExpandToggle-a149fed4.js +0 -83
- package/dist/esm/CalciteHeading-29855e9f.js +0 -12
- package/dist/esm/array-af19adb2.js +0 -5
- package/dist/esm/debounce-047e09f4.js +0 -482
- package/dist/esm/dom-b369a031.js +0 -149
- package/dist/esm/forIn-d55260fc.js +0 -615
- package/dist/esm/form-8aa0d95b.js +0 -16
- package/dist/esm/guid-09142681.js +0 -14
- package/dist/esm/index-f8f0bea7.js +0 -2029
- package/dist/esm/interfaces-355fccb6.js +0 -9
- package/dist/esm/key-ec82f942.js +0 -29
- package/dist/esm/label-7b249c54.js +0 -50
- package/dist/esm/locale-8436bbe1.js +0 -114
- package/dist/esm/math-c8e7aa13.js +0 -3
- package/dist/esm/number-358ca1d4.js +0 -39
- package/dist/esm/observers-c93d4fe5.js +0 -16
- package/dist/esm/popper-2757192a.js +0 -1781
- package/dist/esm/resources-28d71943.js +0 -212
- package/dist/esm/resources-82817f70.js +0 -13
- package/dist/esm/resources-c651d73a.js +0 -321
- package/dist/esm/resources-c72ebfea.js +0 -12
- package/dist/esm/sortable.esm-2f5354d3.js +0 -3013
- package/dist/esm/utils-60acc1d6.js +0 -109
- package/dist/esm-es5/CalciteExpandToggle-a149fed4.js +0 -1
- package/dist/esm-es5/CalciteHeading-29855e9f.js +0 -1
- package/dist/esm-es5/array-af19adb2.js +0 -1
- package/dist/esm-es5/debounce-047e09f4.js +0 -1
- package/dist/esm-es5/dom-b369a031.js +0 -1
- package/dist/esm-es5/forIn-d55260fc.js +0 -1
- package/dist/esm-es5/form-8aa0d95b.js +0 -1
- package/dist/esm-es5/guid-09142681.js +0 -1
- package/dist/esm-es5/index-f8f0bea7.js +0 -1
- package/dist/esm-es5/interfaces-355fccb6.js +0 -1
- package/dist/esm-es5/key-ec82f942.js +0 -1
- package/dist/esm-es5/label-7b249c54.js +0 -1
- package/dist/esm-es5/locale-8436bbe1.js +0 -1
- package/dist/esm-es5/math-c8e7aa13.js +0 -1
- package/dist/esm-es5/number-358ca1d4.js +0 -1
- package/dist/esm-es5/observers-c93d4fe5.js +0 -1
- package/dist/esm-es5/popper-2757192a.js +0 -1
- package/dist/esm-es5/resources-28d71943.js +0 -1
- package/dist/esm-es5/resources-82817f70.js +0 -1
- package/dist/esm-es5/resources-c651d73a.js +0 -1
- package/dist/esm-es5/resources-c72ebfea.js +0 -1
- package/dist/esm-es5/sortable.esm-2f5354d3.js +0 -7
- package/dist/esm-es5/utils-60acc1d6.js +0 -1
|
@@ -0,0 +1,966 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
+
*/
|
|
5
|
+
import { attachShadow, createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
|
+
import { c as color, d as defineCustomElement$a } from './calcite-color-picker-swatch2.js';
|
|
7
|
+
import { D as DEFAULT_COLOR, T as TEXT, a as DIMENSIONS, H as HSV_LIMITS, C as CSS, d as defineCustomElement$b, b as DEFAULT_STORAGE_KEY_PREFIX, R as RGB_LIMITS } from './calcite-color-picker-hex-input2.js';
|
|
8
|
+
import { f as focusElement, a as getElementDir, C as CSS_UTILITY } from './dom.js';
|
|
9
|
+
import { n as normalizeHex, C as CSSColorMode, p as parseMode, c as colorEqual } from './utils.js';
|
|
10
|
+
import { g as getKey } from './key.js';
|
|
11
|
+
import { c as clamp } from './math.js';
|
|
12
|
+
import { d as defineCustomElement$c } from './calcite-button2.js';
|
|
13
|
+
import { d as defineCustomElement$9 } from './calcite-icon2.js';
|
|
14
|
+
import { d as defineCustomElement$8 } from './calcite-input2.js';
|
|
15
|
+
import { d as defineCustomElement$7 } from './calcite-loader2.js';
|
|
16
|
+
import { d as defineCustomElement$6 } from './calcite-progress2.js';
|
|
17
|
+
import { d as defineCustomElement$5 } from './calcite-tab2.js';
|
|
18
|
+
import { d as defineCustomElement$4 } from './calcite-tab-nav2.js';
|
|
19
|
+
import { d as defineCustomElement$3 } from './calcite-tab-title2.js';
|
|
20
|
+
import { d as defineCustomElement$2 } from './calcite-tabs2.js';
|
|
21
|
+
import { d as debounce, i as isObject } from './debounce.js';
|
|
22
|
+
|
|
23
|
+
/** Error message constants. */
|
|
24
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Creates a throttled function that only invokes `func` at most once per
|
|
28
|
+
* every `wait` milliseconds. The throttled function comes with a `cancel`
|
|
29
|
+
* method to cancel delayed `func` invocations and a `flush` method to
|
|
30
|
+
* immediately invoke them. Provide `options` to indicate whether `func`
|
|
31
|
+
* should be invoked on the leading and/or trailing edge of the `wait`
|
|
32
|
+
* timeout. The `func` is invoked with the last arguments provided to the
|
|
33
|
+
* throttled function. Subsequent calls to the throttled function return the
|
|
34
|
+
* result of the last `func` invocation.
|
|
35
|
+
*
|
|
36
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
37
|
+
* invoked on the trailing edge of the timeout only if the throttled function
|
|
38
|
+
* is invoked more than once during the `wait` timeout.
|
|
39
|
+
*
|
|
40
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
41
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
42
|
+
*
|
|
43
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
44
|
+
* for details over the differences between `_.throttle` and `_.debounce`.
|
|
45
|
+
*
|
|
46
|
+
* @static
|
|
47
|
+
* @memberOf _
|
|
48
|
+
* @since 0.1.0
|
|
49
|
+
* @category Function
|
|
50
|
+
* @param {Function} func The function to throttle.
|
|
51
|
+
* @param {number} [wait=0] The number of milliseconds to throttle invocations to.
|
|
52
|
+
* @param {Object} [options={}] The options object.
|
|
53
|
+
* @param {boolean} [options.leading=true]
|
|
54
|
+
* Specify invoking on the leading edge of the timeout.
|
|
55
|
+
* @param {boolean} [options.trailing=true]
|
|
56
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
57
|
+
* @returns {Function} Returns the new throttled function.
|
|
58
|
+
* @example
|
|
59
|
+
*
|
|
60
|
+
* // Avoid excessively updating the position while scrolling.
|
|
61
|
+
* jQuery(window).on('scroll', _.throttle(updatePosition, 100));
|
|
62
|
+
*
|
|
63
|
+
* // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
|
|
64
|
+
* var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
|
|
65
|
+
* jQuery(element).on('click', throttled);
|
|
66
|
+
*
|
|
67
|
+
* // Cancel the trailing throttled invocation.
|
|
68
|
+
* jQuery(window).on('popstate', throttled.cancel);
|
|
69
|
+
*/
|
|
70
|
+
function throttle(func, wait, options) {
|
|
71
|
+
var leading = true,
|
|
72
|
+
trailing = true;
|
|
73
|
+
|
|
74
|
+
if (typeof func != 'function') {
|
|
75
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
76
|
+
}
|
|
77
|
+
if (isObject(options)) {
|
|
78
|
+
leading = 'leading' in options ? !!options.leading : leading;
|
|
79
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
80
|
+
}
|
|
81
|
+
return debounce(func, wait, {
|
|
82
|
+
'leading': leading,
|
|
83
|
+
'maxWait': wait,
|
|
84
|
+
'trailing': trailing
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const calciteColorPickerCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .container{width:160px}:host([scale=s]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(20px, 1fr))}:host([scale=s]) .channels{-ms-flex-direction:column;flex-direction:column}:host([scale=s]) .channel{width:100%;margin-bottom:4px}:host([scale=s]) .channel:last-child{margin-bottom:0}:host([scale=m]) .container{width:272px}:host([scale=l]) .control-section.section.calcite--rtl>:nth-child(2){margin-left:0;margin-right:12px}:host([scale=l]) .header{padding-bottom:0}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{width:464px}:host([scale=l]) .color-field-and-slider{margin-bottom:-20px}:host([scale=l]) .section{padding:0 16px 16px}:host([scale=l]) .section:first-of-type{padding-top:16px}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, minmax(28px, 1fr));grid-gap:12px;padding-top:16px}:host([scale=l]) .control-section{-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:baseline;align-items:baseline}:host([scale=l]) .control-section>:nth-child(2){margin-left:12px}:host([scale=l]) .color-hex-options{-ms-flex-negative:1;flex-shrink:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around;min-height:98px;width:160px}:host([scale=l]) .color-mode-container{-ms-flex-negative:3;flex-shrink:3}:host([appearance=minimal]) .container{border:none}.container{background-color:var(--calcite-ui-foreground-1);display:inline-block;border:1px solid var(--calcite-ui-border-1)}.color-field-and-slider-wrap{position:relative}.scope{font-size:var(--calcite-font-size--1);padding:0;margin-bottom:0;margin-right:0;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:0.5rem;height:0.5rem;position:absolute;pointer-events:none;margin-top:-0.25rem;margin-left:-0.25rem;outline-offset:10px}.scope:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px;outline-offset:12px}.color-field-and-slider{margin-bottom:-16px}.color-field-and-slider--interactive{cursor:pointer}.control-section{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.section{padding:0 12px 12px}.section:first-of-type{padding-top:12px}.color-hex-options,.section--split{-ms-flex-positive:1;flex-grow:1}.header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;color:var(--calcite-ui-text-1);padding-bottom:0.25rem}.header--hex,.color-mode-container{padding-top:12px}.channels{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.channel{width:31%}.saved-colors{padding-top:12px;display:grid;grid-template-columns:repeat(auto-fill, minmax(24px, 1fr));grid-gap:8px;width:100%}.saved-colors-buttons{display:-ms-flexbox;display:flex}.saved-color{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.saved-color:hover{-webkit-transition:outline-color 100ms ease-in-out;transition:outline-color 100ms ease-in-out;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}";
|
|
89
|
+
|
|
90
|
+
const throttleFor60FpsInMs = 16;
|
|
91
|
+
const defaultValue = normalizeHex(DEFAULT_COLOR.hex());
|
|
92
|
+
const defaultFormat = "auto";
|
|
93
|
+
let CalciteColorPicker$1 = class extends HTMLElement {
|
|
94
|
+
constructor() {
|
|
95
|
+
super();
|
|
96
|
+
this.__registerHost();
|
|
97
|
+
attachShadow(this);
|
|
98
|
+
this.calciteColorPickerChange = createEvent(this, "calciteColorPickerChange", 7);
|
|
99
|
+
this.calciteColorPickerInput = createEvent(this, "calciteColorPickerInput", 7);
|
|
100
|
+
//--------------------------------------------------------------------------
|
|
101
|
+
//
|
|
102
|
+
// Public properties
|
|
103
|
+
//
|
|
104
|
+
//--------------------------------------------------------------------------
|
|
105
|
+
/**
|
|
106
|
+
* When false, empty color (null) will be allowed as a value. Otherwise, a color value is always enforced by the component.
|
|
107
|
+
*
|
|
108
|
+
* When true, clearing the input and blurring will restore the last valid color set. When false, it will set it to empty.
|
|
109
|
+
*/
|
|
110
|
+
this.allowEmpty = false;
|
|
111
|
+
/** specify the appearance - default (containing border), or minimal (no containing border) */
|
|
112
|
+
this.appearance = "default";
|
|
113
|
+
/**
|
|
114
|
+
* Internal prop for advanced use-cases.
|
|
115
|
+
*
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
this.color = DEFAULT_COLOR;
|
|
119
|
+
/**
|
|
120
|
+
* The format of the value property.
|
|
121
|
+
*
|
|
122
|
+
* When "auto", the format will be inferred from `value` when set.
|
|
123
|
+
* @default "auto"
|
|
124
|
+
*/
|
|
125
|
+
this.format = defaultFormat;
|
|
126
|
+
/** When true, hides the hex input */
|
|
127
|
+
this.hideHex = false;
|
|
128
|
+
/** When true, hides the RGB/HSV channel inputs */
|
|
129
|
+
this.hideChannels = false;
|
|
130
|
+
/** When true, hides the saved colors section */
|
|
131
|
+
this.hideSaved = false;
|
|
132
|
+
/** Label used for the blue channel
|
|
133
|
+
* @default "B"
|
|
134
|
+
*/
|
|
135
|
+
this.intlB = TEXT.b;
|
|
136
|
+
/** Label used for the blue channel description
|
|
137
|
+
* @default "Blue"
|
|
138
|
+
*/
|
|
139
|
+
this.intlBlue = TEXT.blue;
|
|
140
|
+
/** Label used for the delete color button.
|
|
141
|
+
* @default "Delete color"
|
|
142
|
+
*/
|
|
143
|
+
this.intlDeleteColor = TEXT.deleteColor;
|
|
144
|
+
/** Label used for the green channel
|
|
145
|
+
* @default "G"
|
|
146
|
+
*/
|
|
147
|
+
this.intlG = TEXT.g;
|
|
148
|
+
/** Label used for the green channel description
|
|
149
|
+
* @default "Green"
|
|
150
|
+
*/
|
|
151
|
+
this.intlGreen = TEXT.green;
|
|
152
|
+
/** Label used for the hue channel
|
|
153
|
+
* @default "H"
|
|
154
|
+
*/
|
|
155
|
+
this.intlH = TEXT.h;
|
|
156
|
+
/** Label used for the HSV mode
|
|
157
|
+
* @default "HSV"
|
|
158
|
+
*/
|
|
159
|
+
this.intlHsv = TEXT.hsv;
|
|
160
|
+
/** Label used for the hex input
|
|
161
|
+
* @default "Hex"
|
|
162
|
+
*/
|
|
163
|
+
this.intlHex = TEXT.hex;
|
|
164
|
+
/** Label used for the hue channel description
|
|
165
|
+
* @default "Hue"
|
|
166
|
+
*/
|
|
167
|
+
this.intlHue = TEXT.hue;
|
|
168
|
+
/**
|
|
169
|
+
* Label used for the hex input when there is no color selected.
|
|
170
|
+
* @default "No color"
|
|
171
|
+
*/
|
|
172
|
+
this.intlNoColor = TEXT.noColor;
|
|
173
|
+
/** Label used for the red channel
|
|
174
|
+
* @default "R"
|
|
175
|
+
*/
|
|
176
|
+
this.intlR = TEXT.r;
|
|
177
|
+
/** Label used for the red channel description
|
|
178
|
+
* @default "Red"
|
|
179
|
+
*/
|
|
180
|
+
this.intlRed = TEXT.red;
|
|
181
|
+
/** Label used for the RGB mode
|
|
182
|
+
* @default "RGB"
|
|
183
|
+
*/
|
|
184
|
+
this.intlRgb = TEXT.rgb;
|
|
185
|
+
/** Label used for the saturation channel
|
|
186
|
+
* @default "S"
|
|
187
|
+
*/
|
|
188
|
+
this.intlS = TEXT.s;
|
|
189
|
+
/** Label used for the saturation channel description
|
|
190
|
+
* @default "Saturation"
|
|
191
|
+
*/
|
|
192
|
+
this.intlSaturation = TEXT.saturation;
|
|
193
|
+
/** Label used for the save color button.
|
|
194
|
+
* @default "Save color"
|
|
195
|
+
*/
|
|
196
|
+
this.intlSaveColor = TEXT.saveColor;
|
|
197
|
+
/** Label used for the saved colors section
|
|
198
|
+
* @default "Saved"
|
|
199
|
+
*/
|
|
200
|
+
this.intlSaved = TEXT.saved;
|
|
201
|
+
/** Label used for the value channel
|
|
202
|
+
* @default "V"
|
|
203
|
+
*/
|
|
204
|
+
this.intlV = TEXT.v;
|
|
205
|
+
/** Label used for the
|
|
206
|
+
* @default "Value"
|
|
207
|
+
*/
|
|
208
|
+
this.intlValue = TEXT.value;
|
|
209
|
+
/**
|
|
210
|
+
* The scale of the color picker.
|
|
211
|
+
*/
|
|
212
|
+
this.scale = "m";
|
|
213
|
+
/**
|
|
214
|
+
* The color value.
|
|
215
|
+
*
|
|
216
|
+
* This value can be either a {@link https://developer.mozilla.org/en-US/docs/Web/CSS/color|CSS string}
|
|
217
|
+
* a RGB, HSL or HSV object.
|
|
218
|
+
*
|
|
219
|
+
* The type will be preserved as the color is updated.
|
|
220
|
+
* @default "#007ac2"
|
|
221
|
+
* @see [ColorValue](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-color-picker/interfaces.ts#L10)
|
|
222
|
+
*/
|
|
223
|
+
this.value = defaultValue;
|
|
224
|
+
this.colorUpdateLocked = false;
|
|
225
|
+
this.colorFieldAndSliderHovered = false;
|
|
226
|
+
this.hueThumbState = "idle";
|
|
227
|
+
this.mode = CSSColorMode.HEX;
|
|
228
|
+
this.shiftKeyChannelAdjustment = 0;
|
|
229
|
+
this.sliderThumbState = "idle";
|
|
230
|
+
this.colorFieldAndSliderInteractive = false;
|
|
231
|
+
this.channelMode = "rgb";
|
|
232
|
+
this.channels = this.toChannels(DEFAULT_COLOR);
|
|
233
|
+
this.dimensions = DIMENSIONS.m;
|
|
234
|
+
this.savedColors = [];
|
|
235
|
+
this.handleTabActivate = (event) => {
|
|
236
|
+
this.channelMode = event.currentTarget.getAttribute("data-color-mode");
|
|
237
|
+
this.updateChannelsFromColor(this.color);
|
|
238
|
+
};
|
|
239
|
+
this.handleColorFieldScopeKeyDown = (event) => {
|
|
240
|
+
const key = getKey(event.key);
|
|
241
|
+
const arrowKeyToXYOffset = {
|
|
242
|
+
ArrowUp: { x: 0, y: -10 },
|
|
243
|
+
ArrowRight: { x: 10, y: 0 },
|
|
244
|
+
ArrowDown: { x: 0, y: 10 },
|
|
245
|
+
ArrowLeft: { x: -10, y: 0 }
|
|
246
|
+
};
|
|
247
|
+
if (arrowKeyToXYOffset[key]) {
|
|
248
|
+
event.preventDefault();
|
|
249
|
+
this.scopeOrientation = key === "ArrowDown" || key === "ArrowUp" ? "vertical" : "horizontal";
|
|
250
|
+
this.captureColorFieldColor(this.colorFieldScopeLeft + arrowKeyToXYOffset[key].x || 0, this.colorFieldScopeTop + arrowKeyToXYOffset[key].y || 0, false);
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
this.handleHueScopeKeyDown = (event) => {
|
|
254
|
+
const modifier = event.shiftKey ? 10 : 1;
|
|
255
|
+
const key = getKey(event.key);
|
|
256
|
+
const arrowKeyToXOffset = {
|
|
257
|
+
ArrowUp: 1,
|
|
258
|
+
ArrowRight: 1,
|
|
259
|
+
ArrowDown: -1,
|
|
260
|
+
ArrowLeft: -1
|
|
261
|
+
};
|
|
262
|
+
if (arrowKeyToXOffset[key]) {
|
|
263
|
+
event.preventDefault();
|
|
264
|
+
const delta = arrowKeyToXOffset[key] * modifier;
|
|
265
|
+
const hue = this.baseColorFieldColor.hue();
|
|
266
|
+
const color = this.baseColorFieldColor.hue(hue + delta);
|
|
267
|
+
this.internalColorSet(color, false);
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
this.handleHexInputChange = (event) => {
|
|
271
|
+
event.stopPropagation();
|
|
272
|
+
const { allowEmpty, color: color$1 } = this;
|
|
273
|
+
const input = event.target;
|
|
274
|
+
const hex = input.value;
|
|
275
|
+
if (allowEmpty && !hex) {
|
|
276
|
+
this.internalColorSet(null);
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
const normalizedHex = color$1 && normalizeHex(color$1.hex());
|
|
280
|
+
if (hex !== normalizedHex) {
|
|
281
|
+
this.internalColorSet(color(hex));
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
this.handleSavedColorSelect = (event) => {
|
|
285
|
+
const swatch = event.currentTarget;
|
|
286
|
+
this.internalColorSet(color(swatch.color));
|
|
287
|
+
};
|
|
288
|
+
this.handleChannelInput = (event) => {
|
|
289
|
+
const input = event.currentTarget;
|
|
290
|
+
const internalInput = event.detail.nativeEvent.target;
|
|
291
|
+
const channelIndex = Number(input.getAttribute("data-channel-index"));
|
|
292
|
+
const limit = this.channelMode === "rgb"
|
|
293
|
+
? RGB_LIMITS[Object.keys(RGB_LIMITS)[channelIndex]]
|
|
294
|
+
: HSV_LIMITS[Object.keys(HSV_LIMITS)[channelIndex]];
|
|
295
|
+
let inputValue;
|
|
296
|
+
if (this.allowEmpty && !input.value) {
|
|
297
|
+
inputValue = "";
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
const value = Number(input.value) + this.shiftKeyChannelAdjustment;
|
|
301
|
+
const clamped = clamp(value, 0, limit);
|
|
302
|
+
inputValue = clamped.toString();
|
|
303
|
+
}
|
|
304
|
+
input.value = inputValue;
|
|
305
|
+
internalInput.value = inputValue;
|
|
306
|
+
};
|
|
307
|
+
this.handleChannelChange = (event) => {
|
|
308
|
+
const input = event.currentTarget;
|
|
309
|
+
const channelIndex = Number(input.getAttribute("data-channel-index"));
|
|
310
|
+
const channels = [...this.channels];
|
|
311
|
+
const shouldClearChannels = this.allowEmpty && !input.value;
|
|
312
|
+
if (shouldClearChannels) {
|
|
313
|
+
this.channels = [null, null, null];
|
|
314
|
+
this.internalColorSet(null);
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
channels[channelIndex] = Number(input.value);
|
|
318
|
+
this.updateColorFromChannels(channels);
|
|
319
|
+
};
|
|
320
|
+
this.handleSavedColorKeyDown = (event) => {
|
|
321
|
+
if (event.key === " " || event.key === "Enter") {
|
|
322
|
+
event.preventDefault();
|
|
323
|
+
event.stopPropagation();
|
|
324
|
+
this.handleSavedColorSelect(event);
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
this.handleColorFieldAndSliderMouseLeave = () => {
|
|
328
|
+
this.colorFieldAndSliderInteractive = false;
|
|
329
|
+
this.colorFieldAndSliderHovered = false;
|
|
330
|
+
if (this.sliderThumbState !== "drag" && this.hueThumbState !== "drag") {
|
|
331
|
+
this.hueThumbState = "idle";
|
|
332
|
+
this.sliderThumbState = "idle";
|
|
333
|
+
this.drawColorFieldAndSlider();
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
this.handleColorFieldAndSliderMouseDown = (event) => {
|
|
337
|
+
const { offsetX, offsetY } = event;
|
|
338
|
+
const region = this.getCanvasRegion(offsetY);
|
|
339
|
+
if (region === "color-field") {
|
|
340
|
+
this.hueThumbState = "drag";
|
|
341
|
+
this.captureColorFieldColor(offsetX, offsetY);
|
|
342
|
+
}
|
|
343
|
+
else if (region === "slider") {
|
|
344
|
+
this.sliderThumbState = "drag";
|
|
345
|
+
this.captureHueSliderColor(offsetX);
|
|
346
|
+
}
|
|
347
|
+
// prevent text selection outside of color field & slider area
|
|
348
|
+
event.preventDefault();
|
|
349
|
+
document.addEventListener("mousemove", this.globalMouseMoveHandler);
|
|
350
|
+
document.addEventListener("mouseup", this.globalMouseUpHandler, { once: true });
|
|
351
|
+
this.activeColorFieldAndSliderRect =
|
|
352
|
+
this.fieldAndSliderRenderingContext.canvas.getBoundingClientRect();
|
|
353
|
+
};
|
|
354
|
+
this.globalMouseUpHandler = () => {
|
|
355
|
+
const previouslyDragging = this.sliderThumbState === "drag" || this.hueThumbState === "drag";
|
|
356
|
+
this.hueThumbState = "idle";
|
|
357
|
+
this.sliderThumbState = "idle";
|
|
358
|
+
this.activeColorFieldAndSliderRect = null;
|
|
359
|
+
this.drawColorFieldAndSlider();
|
|
360
|
+
if (previouslyDragging) {
|
|
361
|
+
this.calciteColorPickerChange.emit();
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
this.globalMouseMoveHandler = (event) => {
|
|
365
|
+
const { el, dimensions } = this;
|
|
366
|
+
const sliderThumbDragging = this.sliderThumbState === "drag";
|
|
367
|
+
const hueThumbDragging = this.hueThumbState === "drag";
|
|
368
|
+
if (!el.isConnected || (!sliderThumbDragging && !hueThumbDragging)) {
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
let samplingX;
|
|
372
|
+
let samplingY;
|
|
373
|
+
const colorFieldAndSliderRect = this.activeColorFieldAndSliderRect;
|
|
374
|
+
const { clientX, clientY } = event;
|
|
375
|
+
if (this.colorFieldAndSliderHovered) {
|
|
376
|
+
samplingX = clientX - colorFieldAndSliderRect.x;
|
|
377
|
+
samplingY = clientY - colorFieldAndSliderRect.y;
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
const colorFieldWidth = dimensions.colorField.width;
|
|
381
|
+
const colorFieldHeight = dimensions.colorField.height;
|
|
382
|
+
const hueSliderHeight = dimensions.slider.height;
|
|
383
|
+
if (clientX < colorFieldAndSliderRect.x + colorFieldWidth &&
|
|
384
|
+
clientX > colorFieldAndSliderRect.x) {
|
|
385
|
+
samplingX = clientX - colorFieldAndSliderRect.x;
|
|
386
|
+
}
|
|
387
|
+
else if (clientX < colorFieldAndSliderRect.x) {
|
|
388
|
+
samplingX = 0;
|
|
389
|
+
}
|
|
390
|
+
else {
|
|
391
|
+
samplingX = colorFieldWidth;
|
|
392
|
+
}
|
|
393
|
+
if (clientY < colorFieldAndSliderRect.y + colorFieldHeight + hueSliderHeight &&
|
|
394
|
+
clientY > colorFieldAndSliderRect.y) {
|
|
395
|
+
samplingY = clientY - colorFieldAndSliderRect.y;
|
|
396
|
+
}
|
|
397
|
+
else if (clientY < colorFieldAndSliderRect.y) {
|
|
398
|
+
samplingY = 0;
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
samplingY = colorFieldHeight + hueSliderHeight;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
if (hueThumbDragging) {
|
|
405
|
+
this.captureColorFieldColor(samplingX, samplingY, false);
|
|
406
|
+
}
|
|
407
|
+
else {
|
|
408
|
+
this.captureHueSliderColor(samplingX);
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
this.handleColorFieldAndSliderMouseEnterOrMove = ({ offsetX, offsetY }) => {
|
|
412
|
+
const { dimensions: { colorField, slider, thumb } } = this;
|
|
413
|
+
this.colorFieldAndSliderInteractive = offsetY <= colorField.height + slider.height;
|
|
414
|
+
this.colorFieldAndSliderHovered = true;
|
|
415
|
+
const region = this.getCanvasRegion(offsetY);
|
|
416
|
+
if (region === "color-field") {
|
|
417
|
+
const prevHueThumbState = this.hueThumbState;
|
|
418
|
+
const color = this.baseColorFieldColor.hsv();
|
|
419
|
+
const centerX = Math.round(color.saturationv() / (HSV_LIMITS.s / colorField.width));
|
|
420
|
+
const centerY = Math.round(colorField.height - color.value() / (HSV_LIMITS.v / colorField.height));
|
|
421
|
+
const hoveringThumb = this.containsPoint(offsetX, offsetY, centerX, centerY, thumb.radius);
|
|
422
|
+
let transitionedBetweenHoverAndIdle = false;
|
|
423
|
+
if (prevHueThumbState === "idle" && hoveringThumb) {
|
|
424
|
+
this.hueThumbState = "hover";
|
|
425
|
+
transitionedBetweenHoverAndIdle = true;
|
|
426
|
+
}
|
|
427
|
+
else if (prevHueThumbState === "hover" && !hoveringThumb) {
|
|
428
|
+
this.hueThumbState = "idle";
|
|
429
|
+
transitionedBetweenHoverAndIdle = true;
|
|
430
|
+
}
|
|
431
|
+
if (this.hueThumbState !== "drag") {
|
|
432
|
+
if (transitionedBetweenHoverAndIdle) {
|
|
433
|
+
// refresh since we won't update color and thus no redraw
|
|
434
|
+
this.drawColorFieldAndSlider();
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
else if (region === "slider") {
|
|
439
|
+
const sliderThumbColor = this.baseColorFieldColor.hsv().saturationv(100).value(100);
|
|
440
|
+
const prevSliderThumbState = this.sliderThumbState;
|
|
441
|
+
const sliderThumbCenterX = Math.round(sliderThumbColor.hue() / (360 / slider.width));
|
|
442
|
+
const sliderThumbCenterY = Math.round((slider.height + this.getSliderCapSpacing()) / 2) + colorField.height;
|
|
443
|
+
const hoveringSliderThumb = this.containsPoint(offsetX, offsetY, sliderThumbCenterX, sliderThumbCenterY, thumb.radius);
|
|
444
|
+
let sliderThumbTransitionedBetweenHoverAndIdle = false;
|
|
445
|
+
if (prevSliderThumbState === "idle" && hoveringSliderThumb) {
|
|
446
|
+
this.sliderThumbState = "hover";
|
|
447
|
+
sliderThumbTransitionedBetweenHoverAndIdle = true;
|
|
448
|
+
}
|
|
449
|
+
else if (prevSliderThumbState === "hover" && !hoveringSliderThumb) {
|
|
450
|
+
this.sliderThumbState = "idle";
|
|
451
|
+
sliderThumbTransitionedBetweenHoverAndIdle = true;
|
|
452
|
+
}
|
|
453
|
+
if (this.sliderThumbState !== "drag") {
|
|
454
|
+
if (sliderThumbTransitionedBetweenHoverAndIdle) {
|
|
455
|
+
// refresh since we won't update color and thus no redraw
|
|
456
|
+
this.drawColorFieldAndSlider();
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
};
|
|
461
|
+
this.storeColorFieldScope = (node) => {
|
|
462
|
+
this.colorFieldScopeNode = node;
|
|
463
|
+
};
|
|
464
|
+
this.renderChannelsTabTitle = (channelMode) => {
|
|
465
|
+
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
466
|
+
const active = channelMode === activeChannelMode;
|
|
467
|
+
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
468
|
+
return (h("calcite-tab-title", { active: active, class: CSS.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
469
|
+
};
|
|
470
|
+
this.renderChannelsTab = (channelMode) => {
|
|
471
|
+
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
472
|
+
const active = channelMode === activeChannelMode;
|
|
473
|
+
const isRgb = channelMode === "rgb";
|
|
474
|
+
const channelLabels = isRgb ? [intlR, intlG, intlB] : [intlH, intlS, intlV];
|
|
475
|
+
const channelAriaLabels = isRgb
|
|
476
|
+
? [intlRed, intlGreen, intlBlue]
|
|
477
|
+
: [intlHue, intlSaturation, intlValue];
|
|
478
|
+
return (h("calcite-tab", { active: active, class: CSS.control, key: channelMode }, h("div", { class: CSS.channels }, channels.map((channel, index) => this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index])))));
|
|
479
|
+
};
|
|
480
|
+
this.renderChannel = (value, index, label, ariaLabel) => (h("calcite-input", { class: CSS.channel, "data-channel-index": index, label: ariaLabel, numberButtonType: "none", onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value === null || value === void 0 ? void 0 : value.toString() }));
|
|
481
|
+
this.deleteColor = () => {
|
|
482
|
+
const colorToDelete = this.color.hex();
|
|
483
|
+
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
484
|
+
if (!inStorage) {
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
const savedColors = this.savedColors.filter((color) => color !== colorToDelete);
|
|
488
|
+
this.savedColors = savedColors;
|
|
489
|
+
const storageKey = `${DEFAULT_STORAGE_KEY_PREFIX}${this.storageId}`;
|
|
490
|
+
if (this.storageId) {
|
|
491
|
+
localStorage.setItem(storageKey, JSON.stringify(savedColors));
|
|
492
|
+
}
|
|
493
|
+
};
|
|
494
|
+
this.saveColor = () => {
|
|
495
|
+
const colorToSave = this.color.hex();
|
|
496
|
+
const alreadySaved = this.savedColors.indexOf(colorToSave) > -1;
|
|
497
|
+
if (alreadySaved) {
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
const savedColors = [...this.savedColors, colorToSave];
|
|
501
|
+
this.savedColors = savedColors;
|
|
502
|
+
const storageKey = `${DEFAULT_STORAGE_KEY_PREFIX}${this.storageId}`;
|
|
503
|
+
if (this.storageId) {
|
|
504
|
+
localStorage.setItem(storageKey, JSON.stringify(savedColors));
|
|
505
|
+
}
|
|
506
|
+
};
|
|
507
|
+
this.drawColorFieldAndSlider = throttle(() => {
|
|
508
|
+
if (!this.fieldAndSliderRenderingContext) {
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
this.drawColorField();
|
|
512
|
+
this.drawHueSlider();
|
|
513
|
+
}, throttleFor60FpsInMs);
|
|
514
|
+
this.captureColorFieldColor = (x, y, skipEqual = true) => {
|
|
515
|
+
const { dimensions: { colorField: { height, width } } } = this;
|
|
516
|
+
const saturation = Math.round((HSV_LIMITS.s / width) * x);
|
|
517
|
+
const value = Math.round((HSV_LIMITS.v / height) * (height - y));
|
|
518
|
+
this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(saturation).value(value), skipEqual);
|
|
519
|
+
};
|
|
520
|
+
this.initColorFieldAndSlider = (canvas) => {
|
|
521
|
+
this.fieldAndSliderRenderingContext = canvas.getContext("2d");
|
|
522
|
+
this.setCanvasContextSize(canvas, {
|
|
523
|
+
width: this.dimensions.colorField.width,
|
|
524
|
+
height: this.dimensions.colorField.height +
|
|
525
|
+
this.dimensions.slider.height +
|
|
526
|
+
this.getSliderCapSpacing() * 2
|
|
527
|
+
});
|
|
528
|
+
this.drawColorFieldAndSlider();
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
handleColorChange(color, oldColor) {
|
|
532
|
+
this.drawColorFieldAndSlider();
|
|
533
|
+
this.updateChannelsFromColor(color);
|
|
534
|
+
this.previousColor = oldColor;
|
|
535
|
+
if (this.colorUpdateLocked) {
|
|
536
|
+
return;
|
|
537
|
+
}
|
|
538
|
+
this.value = this.toValue(color);
|
|
539
|
+
}
|
|
540
|
+
handleFormatChange(format) {
|
|
541
|
+
this.setMode(format);
|
|
542
|
+
this.value = this.toValue(this.color);
|
|
543
|
+
}
|
|
544
|
+
handleScaleChange(scale = "m") {
|
|
545
|
+
this.updateDimensions(scale);
|
|
546
|
+
}
|
|
547
|
+
handleValueChange(value, oldValue) {
|
|
548
|
+
const { allowEmpty, format } = this;
|
|
549
|
+
const checkMode = !allowEmpty || value;
|
|
550
|
+
let modeChanged = false;
|
|
551
|
+
if (checkMode) {
|
|
552
|
+
const nextMode = parseMode(value);
|
|
553
|
+
if (!nextMode || (format !== "auto" && nextMode !== format)) {
|
|
554
|
+
this.showIncompatibleColorWarning(value, format);
|
|
555
|
+
this.value = oldValue;
|
|
556
|
+
return;
|
|
557
|
+
}
|
|
558
|
+
modeChanged = this.mode !== nextMode;
|
|
559
|
+
this.setMode(nextMode);
|
|
560
|
+
}
|
|
561
|
+
const dragging = this.sliderThumbState === "drag" || this.hueThumbState === "drag";
|
|
562
|
+
if (this.colorUpdateLocked) {
|
|
563
|
+
this.calciteColorPickerInput.emit();
|
|
564
|
+
if (!dragging) {
|
|
565
|
+
this.calciteColorPickerChange.emit();
|
|
566
|
+
}
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
const color$1 = allowEmpty && !value ? null : color(value);
|
|
570
|
+
const colorChanged = !colorEqual(color$1, this.color);
|
|
571
|
+
if (modeChanged || colorChanged) {
|
|
572
|
+
this.color = color$1;
|
|
573
|
+
this.calciteColorPickerInput.emit();
|
|
574
|
+
if (!dragging) {
|
|
575
|
+
this.calciteColorPickerChange.emit();
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
//--------------------------------------------------------------------------
|
|
580
|
+
//
|
|
581
|
+
// Internal State/Props
|
|
582
|
+
//
|
|
583
|
+
//--------------------------------------------------------------------------
|
|
584
|
+
get baseColorFieldColor() {
|
|
585
|
+
return this.color || this.previousColor || DEFAULT_COLOR;
|
|
586
|
+
}
|
|
587
|
+
// using @Listen as a workaround for VDOM listener not firing
|
|
588
|
+
handleChannelKeyUpOrDown(event) {
|
|
589
|
+
this.shiftKeyChannelAdjustment = 0;
|
|
590
|
+
const key = getKey(event.key);
|
|
591
|
+
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
592
|
+
!event.composedPath().some((node) => { var _a; return (_a = node.classList) === null || _a === void 0 ? void 0 : _a.contains(CSS.channel); })) {
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
const { shiftKey } = event;
|
|
596
|
+
event.preventDefault();
|
|
597
|
+
if (!this.color) {
|
|
598
|
+
this.internalColorSet(this.previousColor);
|
|
599
|
+
event.stopPropagation();
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
602
|
+
// this gets applied to the input's up/down arrow increment/decrement
|
|
603
|
+
const complementaryBump = 9;
|
|
604
|
+
this.shiftKeyChannelAdjustment =
|
|
605
|
+
key === "ArrowUp" && shiftKey
|
|
606
|
+
? complementaryBump
|
|
607
|
+
: key === "ArrowDown" && shiftKey
|
|
608
|
+
? -complementaryBump
|
|
609
|
+
: 0;
|
|
610
|
+
}
|
|
611
|
+
//--------------------------------------------------------------------------
|
|
612
|
+
//
|
|
613
|
+
// Public Methods
|
|
614
|
+
//
|
|
615
|
+
//--------------------------------------------------------------------------
|
|
616
|
+
/** Sets focus on the component. */
|
|
617
|
+
async setFocus() {
|
|
618
|
+
return focusElement(this.colorFieldScopeNode);
|
|
619
|
+
}
|
|
620
|
+
//--------------------------------------------------------------------------
|
|
621
|
+
//
|
|
622
|
+
// Lifecycle
|
|
623
|
+
//
|
|
624
|
+
//--------------------------------------------------------------------------
|
|
625
|
+
componentWillLoad() {
|
|
626
|
+
const storageKey = `${DEFAULT_STORAGE_KEY_PREFIX}${this.storageId}`;
|
|
627
|
+
if (this.storageId && localStorage.getItem(storageKey)) {
|
|
628
|
+
this.savedColors = JSON.parse(localStorage.getItem(storageKey));
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
connectedCallback() {
|
|
632
|
+
const { allowEmpty, color: color$1, format, value } = this;
|
|
633
|
+
const valueIsNoColor = allowEmpty && !value;
|
|
634
|
+
const parsedMode = parseMode(value);
|
|
635
|
+
const valueIsCompatible = (format === "auto" && parsedMode) || format === parsedMode;
|
|
636
|
+
const initialColor = valueIsNoColor ? null : valueIsCompatible ? color(value) : color$1;
|
|
637
|
+
if (!valueIsCompatible) {
|
|
638
|
+
this.showIncompatibleColorWarning(value, format);
|
|
639
|
+
}
|
|
640
|
+
this.setMode(format);
|
|
641
|
+
this.internalColorSet(initialColor, false);
|
|
642
|
+
this.updateDimensions(this.scale);
|
|
643
|
+
}
|
|
644
|
+
disconnectedCallback() {
|
|
645
|
+
document.removeEventListener("mousemove", this.globalMouseMoveHandler);
|
|
646
|
+
document.removeEventListener("mouseup", this.globalMouseUpHandler);
|
|
647
|
+
}
|
|
648
|
+
//--------------------------------------------------------------------------
|
|
649
|
+
//
|
|
650
|
+
// Render Methods
|
|
651
|
+
//
|
|
652
|
+
//--------------------------------------------------------------------------
|
|
653
|
+
render() {
|
|
654
|
+
const { allowEmpty, color, intlDeleteColor, el, hideHex, hideChannels, hideSaved, intlHex, intlSaved, intlSaveColor, savedColors, scale } = this;
|
|
655
|
+
const selectedColorInHex = color ? color.hex() : null;
|
|
656
|
+
const hexInputScale = scale === "l" ? "m" : "s";
|
|
657
|
+
const { colorFieldAndSliderInteractive, colorFieldScopeTop, colorFieldScopeLeft, hueScopeLeft, hueScopeTop, scopeOrientation, dimensions: { colorField: { height: colorFieldHeight, width: colorFieldWidth }, slider: { height: sliderHeight } } } = this;
|
|
658
|
+
const hueTop = hueScopeTop !== null && hueScopeTop !== void 0 ? hueScopeTop : sliderHeight / 2 + colorFieldHeight;
|
|
659
|
+
const hueLeft = hueScopeLeft !== null && hueScopeLeft !== void 0 ? hueScopeLeft : (colorFieldWidth * DEFAULT_COLOR.hue()) / HSV_LIMITS.h;
|
|
660
|
+
const elementDir = getElementDir(el);
|
|
661
|
+
const noColor = color === null;
|
|
662
|
+
const vertical = scopeOrientation === "vertical";
|
|
663
|
+
return (h("div", { class: CSS.container }, h("div", { class: CSS.colorFieldAndSliderWrap }, h("canvas", { class: {
|
|
664
|
+
[CSS.colorFieldAndSlider]: true,
|
|
665
|
+
[CSS.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
666
|
+
}, onMouseDown: this.handleColorFieldAndSliderMouseDown, onMouseEnter: this.handleColorFieldAndSliderMouseEnterOrMove, onMouseLeave: this.handleColorFieldAndSliderMouseLeave, onMouseMove: this.handleColorFieldAndSliderMouseEnterOrMove, ref: this.initColorFieldAndSlider }), h("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color === null || color === void 0 ? void 0 : color.saturationv() : color === null || color === void 0 ? void 0 : color.value()) || "0", class: { [CSS.scope]: true, [CSS.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), h("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": (color === null || color === void 0 ? void 0 : color.round().hue()) || DEFAULT_COLOR.round().hue(), class: { [CSS.scope]: true, [CSS.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (h("div", { class: {
|
|
667
|
+
[CSS.controlSection]: true,
|
|
668
|
+
[CSS.section]: true,
|
|
669
|
+
[CSS_UTILITY.rtl]: elementDir === "rtl"
|
|
670
|
+
} }, hideHex ? null : (h("div", { class: CSS.hexOptions }, h("span", { class: {
|
|
671
|
+
[CSS.header]: true,
|
|
672
|
+
[CSS.headerHex]: true
|
|
673
|
+
} }, intlHex), h("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS.control, dir: elementDir, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (h("calcite-tabs", { class: {
|
|
674
|
+
[CSS.colorModeContainer]: true,
|
|
675
|
+
[CSS.splitSection]: true
|
|
676
|
+
}, dir: elementDir, scale: hexInputScale }, h("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (h("div", { class: { [CSS.savedColorsSection]: true, [CSS.section]: true } }, h("div", { class: CSS.header }, h("label", null, intlSaved), h("div", { class: CSS.savedColorsButtons }, h("calcite-button", { appearance: "transparent", class: CSS.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale }), h("calcite-button", { appearance: "transparent", class: CSS.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale }))), savedColors.length > 0 ? (h("div", { class: CSS.savedColors }, [
|
|
677
|
+
...savedColors.map((color) => (h("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
|
678
|
+
])) : null))));
|
|
679
|
+
}
|
|
680
|
+
// --------------------------------------------------------------------------
|
|
681
|
+
//
|
|
682
|
+
// Private Methods
|
|
683
|
+
//
|
|
684
|
+
//--------------------------------------------------------------------------
|
|
685
|
+
showIncompatibleColorWarning(value, format) {
|
|
686
|
+
console.warn(`ignoring color value (${value}) as it is not compatible with the current format (${format})`);
|
|
687
|
+
}
|
|
688
|
+
setMode(format) {
|
|
689
|
+
this.mode = format === "auto" ? this.mode : format;
|
|
690
|
+
}
|
|
691
|
+
captureHueSliderColor(x) {
|
|
692
|
+
const { dimensions: { slider: { width } } } = this;
|
|
693
|
+
const hue = (360 / width) * x;
|
|
694
|
+
this.internalColorSet(this.baseColorFieldColor.hue(hue), false);
|
|
695
|
+
}
|
|
696
|
+
getCanvasRegion(y) {
|
|
697
|
+
const { dimensions: { colorField: { height: colorFieldHeight }, slider: { height: sliderHeight } } } = this;
|
|
698
|
+
if (y <= colorFieldHeight) {
|
|
699
|
+
return "color-field";
|
|
700
|
+
}
|
|
701
|
+
if (y <= colorFieldHeight + sliderHeight) {
|
|
702
|
+
return "slider";
|
|
703
|
+
}
|
|
704
|
+
return "none";
|
|
705
|
+
}
|
|
706
|
+
internalColorSet(color, skipEqual = true) {
|
|
707
|
+
if (skipEqual && colorEqual(color, this.color)) {
|
|
708
|
+
return;
|
|
709
|
+
}
|
|
710
|
+
this.colorUpdateLocked = true;
|
|
711
|
+
this.color = color;
|
|
712
|
+
this.value = this.toValue(color);
|
|
713
|
+
this.colorUpdateLocked = false;
|
|
714
|
+
}
|
|
715
|
+
toValue(color, format = this.mode) {
|
|
716
|
+
if (!color) {
|
|
717
|
+
return null;
|
|
718
|
+
}
|
|
719
|
+
const hexMode = "hex";
|
|
720
|
+
if (format.includes(hexMode)) {
|
|
721
|
+
return normalizeHex(color.round()[hexMode]());
|
|
722
|
+
}
|
|
723
|
+
if (format.includes("-css")) {
|
|
724
|
+
return color[format.replace("-css", "").replace("a", "")]().round().string();
|
|
725
|
+
}
|
|
726
|
+
const colorObject = color[format]().round().object();
|
|
727
|
+
if (format.endsWith("a")) {
|
|
728
|
+
// normalize alpha prop
|
|
729
|
+
colorObject.a = colorObject.alpha;
|
|
730
|
+
delete colorObject.alpha;
|
|
731
|
+
}
|
|
732
|
+
return colorObject;
|
|
733
|
+
}
|
|
734
|
+
getSliderCapSpacing() {
|
|
735
|
+
const { dimensions: { slider: { height }, thumb: { radius } } } = this;
|
|
736
|
+
return radius * 2 - height;
|
|
737
|
+
}
|
|
738
|
+
updateDimensions(scale = "m") {
|
|
739
|
+
this.dimensions = DIMENSIONS[scale];
|
|
740
|
+
}
|
|
741
|
+
drawColorField() {
|
|
742
|
+
const context = this.fieldAndSliderRenderingContext;
|
|
743
|
+
const { dimensions: { colorField: { height, width } } } = this;
|
|
744
|
+
context.fillStyle = this.baseColorFieldColor.hsv().saturationv(100).value(100).string();
|
|
745
|
+
context.fillRect(0, 0, width, height);
|
|
746
|
+
const whiteGradient = context.createLinearGradient(0, 0, width, 0);
|
|
747
|
+
whiteGradient.addColorStop(0, "rgba(255,255,255,1)");
|
|
748
|
+
whiteGradient.addColorStop(1, "rgba(255,255,255,0)");
|
|
749
|
+
context.fillStyle = whiteGradient;
|
|
750
|
+
context.fillRect(0, 0, width, height);
|
|
751
|
+
const blackGradient = context.createLinearGradient(0, 0, 0, height);
|
|
752
|
+
blackGradient.addColorStop(0, "rgba(0,0,0,0)");
|
|
753
|
+
blackGradient.addColorStop(1, "rgba(0,0,0,1)");
|
|
754
|
+
context.fillStyle = blackGradient;
|
|
755
|
+
context.fillRect(0, 0, width, height);
|
|
756
|
+
this.drawActiveColorFieldColor();
|
|
757
|
+
}
|
|
758
|
+
setCanvasContextSize(canvas, { height, width }) {
|
|
759
|
+
const devicePixelRatio = window.devicePixelRatio || 1;
|
|
760
|
+
canvas.width = width * devicePixelRatio;
|
|
761
|
+
canvas.height = height * devicePixelRatio;
|
|
762
|
+
canvas.style.height = `${height}px`;
|
|
763
|
+
canvas.style.width = `${width}px`;
|
|
764
|
+
const context = canvas.getContext("2d");
|
|
765
|
+
context.scale(devicePixelRatio, devicePixelRatio);
|
|
766
|
+
}
|
|
767
|
+
containsPoint(testPointX, testPointY, boundsX, boundsY, boundsRadius) {
|
|
768
|
+
return (Math.pow(testPointX - boundsX, 2) + Math.pow(testPointY - boundsY, 2) <=
|
|
769
|
+
Math.pow(boundsRadius, 2));
|
|
770
|
+
}
|
|
771
|
+
drawActiveColorFieldColor() {
|
|
772
|
+
const { color } = this;
|
|
773
|
+
if (!color) {
|
|
774
|
+
return;
|
|
775
|
+
}
|
|
776
|
+
const hsvColor = color.hsv();
|
|
777
|
+
const { dimensions: { colorField: { height, width }, thumb: { radius } } } = this;
|
|
778
|
+
const x = hsvColor.saturationv() / (HSV_LIMITS.s / width);
|
|
779
|
+
const y = height - hsvColor.value() / (HSV_LIMITS.v / height);
|
|
780
|
+
requestAnimationFrame(() => {
|
|
781
|
+
this.colorFieldScopeLeft = x;
|
|
782
|
+
this.colorFieldScopeTop = y;
|
|
783
|
+
});
|
|
784
|
+
this.drawThumb(this.fieldAndSliderRenderingContext, radius, x, y, hsvColor, this.hueThumbState);
|
|
785
|
+
}
|
|
786
|
+
drawThumb(context, radius, x, y, color, state) {
|
|
787
|
+
const startAngle = 0;
|
|
788
|
+
const endAngle = 2 * Math.PI;
|
|
789
|
+
context.beginPath();
|
|
790
|
+
context.arc(x, y, radius, startAngle, endAngle);
|
|
791
|
+
context.shadowBlur = state === "hover" ? 32 : 16;
|
|
792
|
+
context.shadowColor = `rgba(0, 0, 0, ${state === "drag" ? 0.32 : 0.16})`;
|
|
793
|
+
context.fillStyle = "#fff";
|
|
794
|
+
context.fill();
|
|
795
|
+
context.beginPath();
|
|
796
|
+
context.arc(x, y, radius - 3, startAngle, endAngle);
|
|
797
|
+
context.shadowBlur = 0;
|
|
798
|
+
context.shadowColor = "transparent";
|
|
799
|
+
context.fillStyle = color.rgb().string();
|
|
800
|
+
context.fill();
|
|
801
|
+
}
|
|
802
|
+
drawActiveHueSliderColor() {
|
|
803
|
+
const { color } = this;
|
|
804
|
+
if (!color) {
|
|
805
|
+
return;
|
|
806
|
+
}
|
|
807
|
+
const hsvColor = color.hsv().saturationv(100).value(100);
|
|
808
|
+
const { dimensions: { colorField: { height: colorFieldHeight }, slider: { height, width }, thumb: { radius } } } = this;
|
|
809
|
+
const x = hsvColor.hue() / (360 / width);
|
|
810
|
+
const y = height / 2 + colorFieldHeight;
|
|
811
|
+
requestAnimationFrame(() => {
|
|
812
|
+
this.hueScopeLeft = x;
|
|
813
|
+
this.hueScopeTop = y;
|
|
814
|
+
});
|
|
815
|
+
this.drawThumb(this.fieldAndSliderRenderingContext, radius, x, y, hsvColor, this.sliderThumbState);
|
|
816
|
+
}
|
|
817
|
+
drawHueSlider() {
|
|
818
|
+
const context = this.fieldAndSliderRenderingContext;
|
|
819
|
+
const { dimensions: { colorField: { height: colorFieldHeight }, slider: { height, width } } } = this;
|
|
820
|
+
const gradient = context.createLinearGradient(0, 0, width, 0);
|
|
821
|
+
const hueSliderColorStopKeywords = ["red", "yellow", "lime", "cyan", "blue", "magenta", "red"];
|
|
822
|
+
const offset = 1 / (hueSliderColorStopKeywords.length - 1);
|
|
823
|
+
let currentOffset = 0;
|
|
824
|
+
hueSliderColorStopKeywords.forEach((keyword) => {
|
|
825
|
+
gradient.addColorStop(currentOffset, color(keyword).string());
|
|
826
|
+
currentOffset += offset;
|
|
827
|
+
});
|
|
828
|
+
context.fillStyle = gradient;
|
|
829
|
+
context.clearRect(0, colorFieldHeight, width, height + this.getSliderCapSpacing() * 2);
|
|
830
|
+
context.fillRect(0, colorFieldHeight, width, height);
|
|
831
|
+
this.drawActiveHueSliderColor();
|
|
832
|
+
}
|
|
833
|
+
updateColorFromChannels(channels) {
|
|
834
|
+
this.internalColorSet(color(channels, this.channelMode));
|
|
835
|
+
}
|
|
836
|
+
updateChannelsFromColor(color) {
|
|
837
|
+
this.channels = color ? this.toChannels(color) : [null, null, null];
|
|
838
|
+
}
|
|
839
|
+
toChannels(color) {
|
|
840
|
+
const { channelMode } = this;
|
|
841
|
+
return color[channelMode]()
|
|
842
|
+
.array()
|
|
843
|
+
.map((value) => Math.floor(value));
|
|
844
|
+
}
|
|
845
|
+
get el() { return this; }
|
|
846
|
+
static get watchers() { return {
|
|
847
|
+
"color": ["handleColorChange"],
|
|
848
|
+
"format": ["handleFormatChange"],
|
|
849
|
+
"scale": ["handleScaleChange"],
|
|
850
|
+
"value": ["handleValueChange"]
|
|
851
|
+
}; }
|
|
852
|
+
static get style() { return calciteColorPickerCss; }
|
|
853
|
+
};
|
|
854
|
+
CalciteColorPicker$1 = /*@__PURE__*/ proxyCustomElement(CalciteColorPicker$1, [1, "calcite-color-picker", {
|
|
855
|
+
"allowEmpty": [4, "allow-empty"],
|
|
856
|
+
"appearance": [513],
|
|
857
|
+
"color": [1040],
|
|
858
|
+
"format": [1],
|
|
859
|
+
"hideHex": [4, "hide-hex"],
|
|
860
|
+
"hideChannels": [4, "hide-channels"],
|
|
861
|
+
"hideSaved": [4, "hide-saved"],
|
|
862
|
+
"intlB": [1, "intl-b"],
|
|
863
|
+
"intlBlue": [1, "intl-blue"],
|
|
864
|
+
"intlDeleteColor": [1, "intl-delete-color"],
|
|
865
|
+
"intlG": [1, "intl-g"],
|
|
866
|
+
"intlGreen": [1, "intl-green"],
|
|
867
|
+
"intlH": [1, "intl-h"],
|
|
868
|
+
"intlHsv": [1, "intl-hsv"],
|
|
869
|
+
"intlHex": [1, "intl-hex"],
|
|
870
|
+
"intlHue": [1, "intl-hue"],
|
|
871
|
+
"intlNoColor": [1, "intl-no-color"],
|
|
872
|
+
"intlR": [1, "intl-r"],
|
|
873
|
+
"intlRed": [1, "intl-red"],
|
|
874
|
+
"intlRgb": [1, "intl-rgb"],
|
|
875
|
+
"intlS": [1, "intl-s"],
|
|
876
|
+
"intlSaturation": [1, "intl-saturation"],
|
|
877
|
+
"intlSaveColor": [1, "intl-save-color"],
|
|
878
|
+
"intlSaved": [1, "intl-saved"],
|
|
879
|
+
"intlV": [1, "intl-v"],
|
|
880
|
+
"intlValue": [1, "intl-value"],
|
|
881
|
+
"scale": [513],
|
|
882
|
+
"storageId": [1, "storage-id"],
|
|
883
|
+
"value": [1025],
|
|
884
|
+
"colorFieldAndSliderInteractive": [32],
|
|
885
|
+
"channelMode": [32],
|
|
886
|
+
"channels": [32],
|
|
887
|
+
"dimensions": [32],
|
|
888
|
+
"savedColors": [32],
|
|
889
|
+
"colorFieldScopeTop": [32],
|
|
890
|
+
"colorFieldScopeLeft": [32],
|
|
891
|
+
"scopeOrientation": [32],
|
|
892
|
+
"hueScopeLeft": [32],
|
|
893
|
+
"hueScopeTop": [32],
|
|
894
|
+
"setFocus": [64]
|
|
895
|
+
}, [[2, "keydown", "handleChannelKeyUpOrDown"], [2, "keyup", "handleChannelKeyUpOrDown"]]]);
|
|
896
|
+
function defineCustomElement$1() {
|
|
897
|
+
const components = ["calcite-color-picker", "calcite-button", "calcite-color-picker-hex-input", "calcite-color-picker-swatch", "calcite-icon", "calcite-input", "calcite-loader", "calcite-progress", "calcite-tab", "calcite-tab-nav", "calcite-tab-title", "calcite-tabs"];
|
|
898
|
+
components.forEach(tagName => { switch (tagName) {
|
|
899
|
+
case "calcite-color-picker":
|
|
900
|
+
if (!customElements.get(tagName)) {
|
|
901
|
+
customElements.define(tagName, CalciteColorPicker$1);
|
|
902
|
+
}
|
|
903
|
+
break;
|
|
904
|
+
case "calcite-button":
|
|
905
|
+
if (!customElements.get(tagName)) {
|
|
906
|
+
defineCustomElement$c();
|
|
907
|
+
}
|
|
908
|
+
break;
|
|
909
|
+
case "calcite-color-picker-hex-input":
|
|
910
|
+
if (!customElements.get(tagName)) {
|
|
911
|
+
defineCustomElement$b();
|
|
912
|
+
}
|
|
913
|
+
break;
|
|
914
|
+
case "calcite-color-picker-swatch":
|
|
915
|
+
if (!customElements.get(tagName)) {
|
|
916
|
+
defineCustomElement$a();
|
|
917
|
+
}
|
|
918
|
+
break;
|
|
919
|
+
case "calcite-icon":
|
|
920
|
+
if (!customElements.get(tagName)) {
|
|
921
|
+
defineCustomElement$9();
|
|
922
|
+
}
|
|
923
|
+
break;
|
|
924
|
+
case "calcite-input":
|
|
925
|
+
if (!customElements.get(tagName)) {
|
|
926
|
+
defineCustomElement$8();
|
|
927
|
+
}
|
|
928
|
+
break;
|
|
929
|
+
case "calcite-loader":
|
|
930
|
+
if (!customElements.get(tagName)) {
|
|
931
|
+
defineCustomElement$7();
|
|
932
|
+
}
|
|
933
|
+
break;
|
|
934
|
+
case "calcite-progress":
|
|
935
|
+
if (!customElements.get(tagName)) {
|
|
936
|
+
defineCustomElement$6();
|
|
937
|
+
}
|
|
938
|
+
break;
|
|
939
|
+
case "calcite-tab":
|
|
940
|
+
if (!customElements.get(tagName)) {
|
|
941
|
+
defineCustomElement$5();
|
|
942
|
+
}
|
|
943
|
+
break;
|
|
944
|
+
case "calcite-tab-nav":
|
|
945
|
+
if (!customElements.get(tagName)) {
|
|
946
|
+
defineCustomElement$4();
|
|
947
|
+
}
|
|
948
|
+
break;
|
|
949
|
+
case "calcite-tab-title":
|
|
950
|
+
if (!customElements.get(tagName)) {
|
|
951
|
+
defineCustomElement$3();
|
|
952
|
+
}
|
|
953
|
+
break;
|
|
954
|
+
case "calcite-tabs":
|
|
955
|
+
if (!customElements.get(tagName)) {
|
|
956
|
+
defineCustomElement$2();
|
|
957
|
+
}
|
|
958
|
+
break;
|
|
959
|
+
} });
|
|
960
|
+
}
|
|
961
|
+
defineCustomElement$1();
|
|
962
|
+
|
|
963
|
+
const CalciteColorPicker = CalciteColorPicker$1;
|
|
964
|
+
const defineCustomElement = defineCustomElement$1;
|
|
965
|
+
|
|
966
|
+
export { CalciteColorPicker, defineCustomElement };
|