@esri/calcite-components 1.0.0-beta.66 → 1.0.0-beta.67
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/classifyObjects16.json +1 -0
- package/dist/calcite/assets/calcite-icon/classifyObjects24.json +1 -0
- package/dist/calcite/assets/calcite-icon/classifyObjects32.json +1 -0
- package/dist/calcite/assets/calcite-icon/classifyPixels16.json +1 -0
- package/dist/calcite/assets/calcite-icon/classifyPixels24.json +1 -0
- package/dist/calcite/assets/calcite-icon/classifyPixels32.json +1 -0
- package/dist/calcite/assets/calcite-icon/dataCloud16.json +1 -0
- package/dist/calcite/assets/calcite-icon/dataCloud24.json +1 -0
- package/dist/calcite/assets/calcite-icon/dataCloud32.json +1 -0
- package/dist/calcite/assets/calcite-icon/dataFolder16.json +1 -0
- package/dist/calcite/assets/calcite-icon/dataFolder24.json +1 -0
- package/dist/calcite/assets/calcite-icon/dataFolder32.json +1 -0
- package/dist/calcite/assets/calcite-icon/dataRaster16.json +1 -0
- package/dist/calcite/assets/calcite-icon/dataRaster24.json +1 -0
- package/dist/calcite/assets/calcite-icon/dataRaster32.json +1 -0
- package/dist/calcite/assets/calcite-icon/distributeHeightEvenly16.json +1 -0
- package/dist/calcite/assets/calcite-icon/distributeHeightEvenly24.json +1 -0
- package/dist/calcite/assets/calcite-icon/distributeHeightEvenly32.json +1 -0
- package/dist/calcite/assets/calcite-icon/distributeWidthEvenly16.json +1 -0
- package/dist/calcite/assets/calcite-icon/distributeWidthEvenly24.json +1 -0
- package/dist/calcite/assets/calcite-icon/distributeWidthEvenly32.json +1 -0
- package/dist/calcite/assets/calcite-icon/gridUnit16.json +1 -0
- package/dist/calcite/assets/calcite-icon/gridUnit24.json +1 -0
- package/dist/calcite/assets/calcite-icon/gridUnit32.json +1 -0
- package/dist/calcite/assets/calcite-icon/horizontalDistribute16.json +1 -0
- package/dist/calcite/assets/calcite-icon/horizontalDistribute24.json +1 -0
- package/dist/calcite/assets/calcite-icon/horizontalDistribute32.json +1 -0
- package/dist/calcite/assets/calcite-icon/imageChips16.json +1 -0
- package/dist/calcite/assets/calcite-icon/imageChips24.json +1 -0
- package/dist/calcite/assets/calcite-icon/imageChips32.json +1 -0
- package/dist/calcite/assets/calcite-icon/imageUnit16.json +1 -0
- package/dist/calcite/assets/calcite-icon/imageUnit24.json +1 -0
- package/dist/calcite/assets/calcite-icon/imageUnit32.json +1 -0
- package/dist/calcite/assets/calcite-icon/newTraining16.json +1 -0
- package/dist/calcite/assets/calcite-icon/newTraining24.json +1 -0
- package/dist/calcite/assets/calcite-icon/newTraining32.json +1 -0
- package/dist/calcite/assets/calcite-icon/retrain16.json +1 -0
- package/dist/calcite/assets/calcite-icon/retrain24.json +1 -0
- package/dist/calcite/assets/calcite-icon/retrain32.json +1 -0
- package/dist/calcite/assets/calcite-icon/smartForm16.json +1 -0
- package/dist/calcite/assets/calcite-icon/smartForm24.json +1 -0
- package/dist/calcite/assets/calcite-icon/smartForm32.json +1 -0
- package/dist/calcite/assets/calcite-icon/verticalDistribute16.json +1 -0
- package/dist/calcite/assets/calcite-icon/verticalDistribute24.json +1 -0
- package/dist/calcite/assets/calcite-icon/verticalDistribute32.json +1 -0
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/{p-ba9a6f8f.system.entry.js → p-00f2f64d.system.entry.js} +1 -1
- package/dist/calcite/p-010e5fb9.entry.js +1 -0
- package/dist/calcite/p-03b25bb5.entry.js +1 -0
- package/dist/calcite/{p-77520d33.system.entry.js → p-058f3354.system.entry.js} +1 -1
- package/dist/calcite/p-0671d67f.entry.js +1 -0
- package/dist/calcite/p-0a465f92.entry.js +1 -0
- package/dist/calcite/p-0aa3fc7e.entry.js +1 -0
- package/dist/calcite/{p-e9216986.system.entry.js → p-0b539bae.system.entry.js} +1 -1
- package/dist/calcite/p-0c356cca.entry.js +1 -0
- package/dist/calcite/p-1114dae7.entry.js +1 -0
- package/dist/calcite/{p-15e25ab3.system.entry.js → p-14893331.system.entry.js} +1 -1
- package/dist/calcite/p-19a2021f.entry.js +1 -0
- package/dist/calcite/{p-cfa93160.system.entry.js → p-1a53829b.system.entry.js} +1 -1
- package/dist/calcite/p-1c3c9e42.entry.js +1 -0
- package/dist/calcite/{p-45e12d86.system.entry.js → p-1df0fd29.system.entry.js} +1 -1
- package/dist/calcite/p-203e04e5.entry.js +1 -0
- package/dist/calcite/p-23edddc9.entry.js +1 -0
- package/dist/calcite/p-2e9e2b7c.entry.js +1 -0
- package/dist/calcite/p-32a0f498.entry.js +1 -0
- package/dist/calcite/p-340e1f88.entry.js +1 -0
- package/dist/calcite/p-38b3ff5f.system.entry.js +1 -0
- package/dist/calcite/{p-7e2c1399.system.entry.js → p-39b743d9.system.entry.js} +1 -1
- package/dist/calcite/p-3b55b390.entry.js +1 -0
- package/dist/calcite/p-3cdef0cd.entry.js +1 -0
- package/dist/calcite/p-44810e63.entry.js +1 -0
- package/dist/calcite/p-4936ee1a.entry.js +1 -0
- package/dist/calcite/p-4a69f94f.entry.js +1 -0
- package/dist/calcite/p-4bb3e49c.entry.js +1 -0
- package/dist/calcite/p-4dc4c758.entry.js +1 -0
- package/dist/calcite/p-4e3dcb60.entry.js +1 -0
- package/dist/calcite/{p-e65cf6e0.system.entry.js → p-4f24139e.system.entry.js} +1 -1
- package/dist/calcite/{p-f5ad69e5.system.entry.js → p-55379ee6.system.entry.js} +1 -1
- package/dist/calcite/{p-c2cdcf33.system.entry.js → p-55f7adaa.system.entry.js} +1 -1
- package/dist/calcite/{p-676484bf.system.entry.js → p-59f7b582.system.entry.js} +1 -1
- package/dist/calcite/p-5eab55c1.entry.js +1 -0
- package/dist/calcite/{p-01f6db2b.system.entry.js → p-5f50d376.system.entry.js} +1 -1
- package/dist/calcite/p-62977e6b.system.entry.js +1 -0
- package/dist/calcite/p-6350bcd3.system.js +1 -0
- package/dist/calcite/p-65f4f1e9.entry.js +1 -0
- package/dist/calcite/{p-e3342b5f.system.js → p-674bc090.system.js} +1 -1
- package/dist/calcite/p-69837b80.entry.js +1 -0
- package/dist/calcite/p-69e382de.entry.js +1 -0
- package/dist/calcite/p-6a7d2f7c.entry.js +1 -0
- package/dist/calcite/p-6cb2f24f.entry.js +1 -0
- package/dist/calcite/{p-8066a582.system.entry.js → p-6d98d9dc.system.entry.js} +1 -1
- package/dist/calcite/{p-90887bf6.system.entry.js → p-6edac967.system.entry.js} +1 -1
- package/dist/calcite/{p-b3324059.system.entry.js → p-771da7ed.system.entry.js} +1 -1
- package/dist/calcite/{p-7112ec9e.system.entry.js → p-79e0b61b.system.entry.js} +1 -1
- package/dist/calcite/{p-f1f596a0.system.entry.js → p-7a241325.system.entry.js} +1 -1
- package/dist/calcite/{p-441fcc89.js → p-7b71e1d4.js} +1 -1
- package/dist/calcite/p-7c5c2b30.js +1 -0
- package/dist/calcite/p-7e4036a3.system.entry.js +1 -0
- package/dist/calcite/{p-906e0684.system.entry.js → p-7e4be59e.system.entry.js} +1 -1
- package/dist/calcite/p-81371076.entry.js +1 -0
- package/dist/calcite/p-8242ef10.entry.js +1 -0
- package/dist/calcite/{p-4107613e.system.entry.js → p-835b14f7.system.entry.js} +1 -1
- package/dist/calcite/p-875b172e.entry.js +1 -0
- package/dist/calcite/p-8975e7c8.entry.js +1 -0
- package/dist/calcite/p-8a16620b.system.js +1 -0
- package/dist/calcite/p-8cfab352.entry.js +1 -0
- package/dist/calcite/p-8d9bf455.entry.js +1 -0
- package/dist/calcite/p-8e46c987.entry.js +1 -0
- package/dist/calcite/{p-0ee0512b.system.entry.js → p-8ef1afae.system.entry.js} +1 -1
- package/dist/calcite/p-8fb7b17f.system.entry.js +1 -0
- package/dist/calcite/p-90ee6b48.entry.js +1 -0
- package/dist/calcite/p-93a7d961.system.entry.js +1 -0
- package/dist/calcite/{p-840de724.system.entry.js → p-950bdd5b.system.entry.js} +1 -1
- package/dist/calcite/p-97b06cc3.entry.js +1 -0
- package/dist/calcite/{p-4d1cae73.system.js → p-987310d2.system.js} +1 -1
- package/dist/calcite/{p-3e9f473a.system.entry.js → p-9c371694.system.entry.js} +1 -1
- package/dist/calcite/{p-db2a9048.system.entry.js → p-a096738b.system.entry.js} +1 -1
- package/dist/calcite/p-a09cd797.entry.js +1 -0
- package/dist/calcite/p-a0d4c79d.entry.js +1 -0
- package/dist/calcite/{p-653f00bd.system.entry.js → p-a54a11ee.system.entry.js} +1 -1
- package/dist/calcite/p-a75f07ae.entry.js +1 -0
- package/dist/calcite/p-a83557c6.entry.js +1 -0
- package/dist/calcite/{p-2f744f8a.system.entry.js → p-ac44517b.system.entry.js} +1 -1
- package/dist/calcite/{p-e7713081.system.entry.js → p-ad290529.system.entry.js} +1 -1
- package/dist/calcite/{p-b97e3263.system.entry.js → p-b10d0018.system.entry.js} +1 -1
- package/dist/calcite/p-b286e0a5.system.entry.js +1 -0
- package/dist/calcite/p-b2a6687b.system.js +1 -0
- package/dist/calcite/{p-51593443.system.entry.js → p-b2a79aa2.system.entry.js} +1 -1
- package/dist/calcite/p-b4cc79dc.system.js +1 -0
- package/dist/calcite/p-bd291e00.entry.js +1 -0
- package/dist/calcite/p-be531ce4.system.entry.js +1 -0
- package/dist/calcite/p-be6b31d0.entry.js +1 -0
- package/dist/calcite/p-bfca7d51.entry.js +1 -0
- package/dist/calcite/{p-6f99158e.system.entry.js → p-c0ee1569.system.entry.js} +1 -1
- package/dist/calcite/p-c15a632e.system.entry.js +1 -0
- package/dist/calcite/{p-322095a3.system.entry.js → p-c23bfaf9.system.entry.js} +1 -1
- package/dist/calcite/{p-7dff967a.system.entry.js → p-c2cd9c1d.system.entry.js} +1 -1
- package/dist/calcite/{p-8b943830.system.entry.js → p-c4953aa6.system.entry.js} +1 -1
- package/dist/calcite/p-c5257119.entry.js +1 -0
- package/dist/calcite/{p-eeb1583a.system.entry.js → p-c59d3bb3.system.entry.js} +1 -1
- package/dist/calcite/p-c95a18d4.entry.js +1 -0
- package/dist/calcite/p-cd8d0dda.entry.js +1 -0
- package/dist/calcite/p-cfdbd2e1.entry.js +1 -0
- package/dist/calcite/p-d2907af5.entry.js +1 -0
- package/dist/calcite/p-d2b9513d.entry.js +1 -0
- package/dist/calcite/p-d5e63242.entry.js +1 -0
- package/dist/calcite/p-d74caa31.system.entry.js +1 -0
- package/dist/calcite/p-d78a24bb.entry.js +1 -0
- package/dist/calcite/{p-8f7497a3.system.entry.js → p-d7e0ef91.system.entry.js} +1 -1
- package/dist/calcite/{p-dc61109d.system.entry.js → p-d8a015cb.system.entry.js} +1 -1
- package/dist/calcite/{p-39c9b962.js → p-dc825c55.js} +0 -0
- package/dist/calcite/{p-981dc477.js → p-dcfa0bba.js} +1 -1
- package/dist/calcite/{p-c48b236c.system.entry.js → p-dd3f7c73.system.entry.js} +1 -1
- package/dist/calcite/{p-e47e38f1.system.entry.js → p-ddf50685.system.entry.js} +1 -1
- package/dist/calcite/p-de00c01f.entry.js +1 -0
- package/dist/calcite/{p-cf8a3739.system.entry.js → p-de9b7982.system.entry.js} +1 -1
- package/dist/calcite/p-ebb0ef70.entry.js +1 -0
- package/dist/calcite/p-ec397dae.entry.js +1 -0
- package/dist/calcite/{p-7e7fd06e.system.entry.js → p-ef0ea98b.system.entry.js} +1 -1
- package/dist/calcite/p-ef38dee8.js +1 -0
- package/dist/calcite/{p-680ad0f4.system.entry.js → p-efe6556c.system.entry.js} +1 -1
- package/dist/calcite/{p-33e41953.system.entry.js → p-f1eddb0f.system.entry.js} +1 -1
- package/dist/calcite/p-f95c5864.entry.js +1 -0
- package/dist/calcite/p-fc725435.entry.js +1 -0
- package/dist/cjs/{CalciteExpandToggle-e35b7189.js → CalciteExpandToggle-b5735fd2.js} +3 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-action-bar.cjs.entry.js +4 -5
- package/dist/cjs/calcite-action-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-menu.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +3 -3
- package/dist/cjs/calcite-action.cjs.entry.js +3 -3
- package/dist/cjs/calcite-alert.cjs.entry.js +2 -2
- package/dist/cjs/calcite-avatar.cjs.entry.js +2 -2
- package/dist/cjs/calcite-block_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-card.cjs.entry.js +2 -2
- package/dist/cjs/calcite-checkbox.cjs.entry.js +8 -10
- package/dist/cjs/calcite-chip.cjs.entry.js +2 -2
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +5 -5
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-fab.cjs.entry.js +2 -2
- package/dist/cjs/calcite-filter.cjs.entry.js +2 -2
- package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +48 -13
- package/dist/cjs/calcite-handle.cjs.entry.js +1 -1
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-message.cjs.entry.js +2 -2
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input.cjs.entry.js +3 -3
- package/dist/cjs/calcite-label.cjs.entry.js +7 -5
- package/dist/cjs/calcite-link.cjs.entry.js +2 -2
- package/dist/cjs/calcite-list_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-loader.cjs.entry.js +1 -1
- package/dist/cjs/calcite-modal.cjs.entry.js +2 -2
- package/dist/cjs/calcite-notice.cjs.entry.js +2 -2
- package/dist/cjs/calcite-option_3.cjs.entry.js +5 -5
- package/dist/cjs/calcite-pagination.cjs.entry.js +2 -2
- package/dist/cjs/calcite-panel.cjs.entry.js +2 -2
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +5 -5
- package/dist/cjs/calcite-popover_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-progress.cjs.entry.js +1 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-radio_2.cjs.entry.js +18 -20
- package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
- package/dist/cjs/calcite-scrim.cjs.entry.js +1 -1
- package/dist/cjs/calcite-shell_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js +2 -2
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-switch.cjs.entry.js +22 -15
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +20 -7
- package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tip_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tree_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite.cjs.js +2 -2
- package/dist/cjs/{dom-ee66dd65.js → dom-c9cafa59.js} +6 -3
- package/dist/cjs/{label-b6516b5f.js → label-80f9023b.js} +23 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{popper-cadf2c79.js → popper-a103e375.js} +1 -1
- package/dist/cjs/{resources-5df8daed.js → resources-bbca3cea.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/calcite-action/calcite-action.css +1 -1
- package/dist/collection/components/calcite-action/calcite-action.js +1 -1
- package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +2 -3
- package/dist/collection/components/calcite-action-bar/utils.js +1 -0
- package/dist/collection/components/calcite-block-section/calcite-block-section.js +1 -1
- package/dist/collection/components/calcite-button/calcite-button.js +1 -1
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +29 -13
- package/dist/collection/components/calcite-combobox/calcite-combobox.css +2 -1
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +3 -3
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +0 -1
- package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyObjects16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyObjects24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyObjects32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyPixels16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyPixels24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/classifyPixels32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/dataCloud16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/dataCloud24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/dataCloud32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/dataFolder16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/dataFolder24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/dataFolder32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/dataRaster16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/dataRaster24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/dataRaster32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeHeightEvenly16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeHeightEvenly24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeHeightEvenly32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeWidthEvenly16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeWidthEvenly24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/distributeWidthEvenly32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/gridUnit16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/gridUnit24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/gridUnit32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/horizontalDistribute16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/horizontalDistribute24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/horizontalDistribute32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/imageChips16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/imageChips24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/imageChips32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/imageUnit16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/imageUnit24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/imageUnit32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/newTraining16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/newTraining24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/newTraining32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/retrain16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/retrain24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/retrain32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/smartForm16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/smartForm24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/smartForm32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/verticalDistribute16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/verticalDistribute24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/verticalDistribute32.json +1 -0
- package/dist/collection/components/calcite-label/calcite-label.js +13 -7
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +38 -22
- package/dist/collection/components/calcite-shell/calcite-shell.js +1 -1
- package/dist/collection/components/calcite-slider/calcite-slider.js +60 -11
- package/dist/collection/components/calcite-switch/calcite-switch.css +7 -7
- package/dist/collection/components/calcite-switch/calcite-switch.js +42 -12
- package/dist/collection/components/calcite-tab/calcite-tab.css +0 -1
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +0 -1
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +46 -12
- package/dist/collection/components/calcite-value-list/calcite-value-list.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/label.js +22 -5
- package/dist/collection/utils/resources.js +20 -3
- package/dist/custom-elements/index.js +237 -164
- package/dist/custom-elements/index.mjs +237 -164
- package/dist/esm/{CalciteExpandToggle-bc0a6dce.js → CalciteExpandToggle-a149fed4.js} +3 -2
- package/dist/esm/calcite-accordion_2.entry.js +3 -3
- package/dist/esm/calcite-action-bar.entry.js +4 -5
- package/dist/esm/calcite-action-group.entry.js +2 -2
- package/dist/esm/calcite-action-menu.entry.js +2 -2
- package/dist/esm/calcite-action-pad.entry.js +3 -3
- package/dist/esm/calcite-action.entry.js +3 -3
- package/dist/esm/calcite-alert.entry.js +2 -2
- package/dist/esm/calcite-avatar.entry.js +2 -2
- package/dist/esm/calcite-block_2.entry.js +4 -4
- package/dist/esm/calcite-button.entry.js +3 -3
- package/dist/esm/calcite-card.entry.js +2 -2
- package/dist/esm/calcite-checkbox.entry.js +9 -11
- package/dist/esm/calcite-chip.entry.js +2 -2
- package/dist/esm/calcite-color-picker_3.entry.js +4 -4
- package/dist/esm/calcite-combobox_3.entry.js +11 -11
- package/dist/esm/calcite-date-picker_4.entry.js +5 -5
- package/dist/esm/calcite-dropdown_3.entry.js +6 -6
- package/dist/esm/calcite-fab.entry.js +2 -2
- package/dist/esm/calcite-filter.entry.js +2 -2
- package/dist/esm/calcite-flow.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +48 -13
- package/dist/esm/calcite-handle.entry.js +1 -1
- package/dist/esm/calcite-icon.entry.js +2 -2
- package/dist/esm/calcite-inline-editable.entry.js +3 -3
- package/dist/esm/calcite-input-date-picker.entry.js +4 -4
- package/dist/esm/calcite-input-message.entry.js +2 -2
- package/dist/esm/calcite-input-time-picker_2.entry.js +4 -4
- package/dist/esm/calcite-input.entry.js +3 -3
- package/dist/esm/calcite-label.entry.js +7 -5
- package/dist/esm/calcite-link.entry.js +2 -2
- package/dist/esm/calcite-list_3.entry.js +4 -4
- package/dist/esm/calcite-loader.entry.js +1 -1
- package/dist/esm/calcite-modal.entry.js +2 -2
- package/dist/esm/calcite-notice.entry.js +2 -2
- package/dist/esm/calcite-option_3.entry.js +5 -5
- package/dist/esm/calcite-pagination.entry.js +2 -2
- package/dist/esm/calcite-panel.entry.js +2 -2
- package/dist/esm/calcite-pick-list_3.entry.js +5 -5
- package/dist/esm/calcite-popover_2.entry.js +4 -4
- package/dist/esm/calcite-progress.entry.js +1 -1
- package/dist/esm/calcite-radio-button-group.entry.js +1 -1
- package/dist/esm/calcite-radio-group_2.entry.js +4 -4
- package/dist/esm/calcite-radio_2.entry.js +19 -21
- package/dist/esm/calcite-rating.entry.js +3 -3
- package/dist/esm/calcite-scrim.entry.js +1 -1
- package/dist/esm/calcite-shell_3.entry.js +4 -4
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-split-button.entry.js +2 -2
- package/dist/esm/calcite-stepper_2.entry.js +3 -3
- package/dist/esm/calcite-switch.entry.js +22 -15
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-tile-select_2.entry.js +21 -8
- package/dist/esm/calcite-tile.entry.js +2 -2
- package/dist/esm/calcite-tip_3.entry.js +4 -4
- package/dist/esm/calcite-tooltip_2.entry.js +4 -4
- package/dist/esm/calcite-tree_2.entry.js +3 -3
- package/dist/esm/calcite-value-list_2.entry.js +4 -4
- package/dist/esm/calcite.js +2 -2
- package/dist/esm/{dom-ec7a9520.js → dom-b369a031.js} +6 -3
- package/dist/esm/{label-8ac2645e.js → label-7b249c54.js} +23 -6
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{popper-0d4b3dd2.js → popper-2757192a.js} +1 -1
- package/dist/esm/{resources-ea3035c7.js → resources-c651d73a.js} +1 -1
- package/dist/esm-es5/CalciteExpandToggle-a149fed4.js +1 -0
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
- package/dist/esm-es5/calcite-action.entry.js +1 -1
- package/dist/esm-es5/calcite-alert.entry.js +1 -1
- package/dist/esm-es5/calcite-avatar.entry.js +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-button.entry.js +1 -1
- package/dist/esm-es5/calcite-card.entry.js +1 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
- package/dist/esm-es5/calcite-chip.entry.js +1 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
- package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
- package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm-es5/calcite-fab.entry.js +1 -1
- package/dist/esm-es5/calcite-filter.entry.js +1 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-icon.entry.js +1 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm-es5/calcite-input-message.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input.entry.js +1 -1
- package/dist/esm-es5/calcite-label.entry.js +1 -1
- package/dist/esm-es5/calcite-link.entry.js +1 -1
- package/dist/esm-es5/calcite-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +1 -1
- package/dist/esm-es5/calcite-notice.entry.js +1 -1
- package/dist/esm-es5/calcite-option_3.entry.js +1 -1
- package/dist/esm-es5/calcite-pagination.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +1 -1
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
- package/dist/esm-es5/calcite-radio_2.entry.js +1 -1
- package/dist/esm-es5/calcite-rating.entry.js +1 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-split-button.entry.js +1 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
- package/dist/esm-es5/calcite-switch.entry.js +1 -1
- package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
- package/dist/esm-es5/calcite-tile-select_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/dom-b369a031.js +1 -0
- package/dist/esm-es5/label-7b249c54.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{popper-0d4b3dd2.js → popper-2757192a.js} +1 -1
- package/dist/esm-es5/{resources-ea3035c7.js → resources-c651d73a.js} +1 -1
- package/dist/extras/docs-json.json +81 -24
- package/dist/loader/index.d.ts +0 -1
- package/dist/types/components/calcite-action/calcite-action.d.ts +1 -1
- package/dist/types/components/calcite-action-bar/utils.d.ts +1 -0
- package/dist/types/components/calcite-button/calcite-button.d.ts +3 -0
- package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +8 -2
- package/dist/types/components/calcite-label/calcite-label.d.ts +5 -3
- package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +8 -3
- package/dist/types/components/calcite-shell/calcite-shell.d.ts +1 -1
- package/dist/types/components/calcite-slider/calcite-slider.d.ts +22 -1
- package/dist/types/components/calcite-switch/calcite-switch.d.ts +8 -3
- package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +10 -5
- package/dist/types/components/calcite-value-list/calcite-value-list.d.ts +1 -1
- package/dist/types/components/interfaces.d.ts +1 -0
- package/dist/types/components.d.ts +25 -7
- package/dist/types/preact.d.ts +12 -7
- package/dist/types/utils/resources.d.ts +7 -0
- package/hydrate/index.js +155 -78
- package/package.json +12 -12
- package/readme.md +3 -3
- package/CHANGELOG.md +0 -1431
- package/dist/calcite/p-01f309de.entry.js +0 -1
- package/dist/calcite/p-02013380.entry.js +0 -1
- package/dist/calcite/p-06af2b97.entry.js +0 -1
- package/dist/calcite/p-0957989c.entry.js +0 -1
- package/dist/calcite/p-115c2989.entry.js +0 -1
- package/dist/calcite/p-132025e5.entry.js +0 -1
- package/dist/calcite/p-1441bba1.entry.js +0 -1
- package/dist/calcite/p-17f66e5b.system.js +0 -1
- package/dist/calcite/p-1d7d17f3.entry.js +0 -1
- package/dist/calcite/p-235a5000.entry.js +0 -1
- package/dist/calcite/p-2648d645.entry.js +0 -1
- package/dist/calcite/p-2844f72a.entry.js +0 -1
- package/dist/calcite/p-284523f0.entry.js +0 -1
- package/dist/calcite/p-2d76967a.entry.js +0 -1
- package/dist/calcite/p-3217f221.entry.js +0 -1
- package/dist/calcite/p-321ed163.system.entry.js +0 -1
- package/dist/calcite/p-3466b8f4.entry.js +0 -1
- package/dist/calcite/p-3468de6a.entry.js +0 -1
- package/dist/calcite/p-3b3f0d31.entry.js +0 -1
- package/dist/calcite/p-3f79ed38.entry.js +0 -1
- package/dist/calcite/p-40174e0b.entry.js +0 -1
- package/dist/calcite/p-42c55e48.entry.js +0 -1
- package/dist/calcite/p-43c67a28.entry.js +0 -1
- package/dist/calcite/p-50856554.entry.js +0 -1
- package/dist/calcite/p-51d664e2.system.js +0 -1
- package/dist/calcite/p-53090d53.entry.js +0 -1
- package/dist/calcite/p-5aa9d5e8.entry.js +0 -1
- package/dist/calcite/p-5d57b25e.entry.js +0 -1
- package/dist/calcite/p-5e3f50f6.system.entry.js +0 -1
- package/dist/calcite/p-6543184d.entry.js +0 -1
- package/dist/calcite/p-6aefea3d.entry.js +0 -1
- package/dist/calcite/p-6ef90810.entry.js +0 -1
- package/dist/calcite/p-6fe6db0a.entry.js +0 -1
- package/dist/calcite/p-771338f3.system.entry.js +0 -1
- package/dist/calcite/p-7d1978f4.entry.js +0 -1
- package/dist/calcite/p-7d61c919.entry.js +0 -1
- package/dist/calcite/p-7e06dd39.system.entry.js +0 -1
- package/dist/calcite/p-7e40fbb9.entry.js +0 -1
- package/dist/calcite/p-82be2fac.entry.js +0 -1
- package/dist/calcite/p-84d0c6a3.entry.js +0 -1
- package/dist/calcite/p-8943850c.entry.js +0 -1
- package/dist/calcite/p-8b2501bb.entry.js +0 -1
- package/dist/calcite/p-8c9b39be.system.js +0 -1
- package/dist/calcite/p-8e5b56cd.entry.js +0 -1
- package/dist/calcite/p-8e9fa7f4.entry.js +0 -1
- package/dist/calcite/p-902299da.entry.js +0 -1
- package/dist/calcite/p-927bee80.system.entry.js +0 -1
- package/dist/calcite/p-95a853ee.system.entry.js +0 -1
- package/dist/calcite/p-991a02de.entry.js +0 -1
- package/dist/calcite/p-9c6146b8.js +0 -1
- package/dist/calcite/p-a2781944.entry.js +0 -1
- package/dist/calcite/p-a478337e.system.entry.js +0 -1
- package/dist/calcite/p-a84cffce.js +0 -1
- package/dist/calcite/p-b6e53e2a.entry.js +0 -1
- package/dist/calcite/p-b80dbaa5.entry.js +0 -1
- package/dist/calcite/p-bdc19f64.system.entry.js +0 -1
- package/dist/calcite/p-bfff060e.entry.js +0 -1
- package/dist/calcite/p-c2113d43.entry.js +0 -1
- package/dist/calcite/p-c3a502d6.entry.js +0 -1
- package/dist/calcite/p-d01479f8.system.entry.js +0 -1
- package/dist/calcite/p-d4ade74e.entry.js +0 -1
- package/dist/calcite/p-d8e7123d.entry.js +0 -1
- package/dist/calcite/p-de3c777a.entry.js +0 -1
- package/dist/calcite/p-e3a68dcd.entry.js +0 -1
- package/dist/calcite/p-e3fd77ce.system.js +0 -1
- package/dist/calcite/p-e5f1adf8.entry.js +0 -1
- package/dist/calcite/p-e67bb19c.entry.js +0 -1
- package/dist/calcite/p-ea094bdf.entry.js +0 -1
- package/dist/calcite/p-f5155eea.entry.js +0 -1
- package/dist/calcite/p-f633307c.entry.js +0 -1
- package/dist/calcite/p-faac0f15.entry.js +0 -1
- package/dist/calcite/p-fd91755c.entry.js +0 -1
- package/dist/esm-es5/CalciteExpandToggle-bc0a6dce.js +0 -1
- package/dist/esm-es5/dom-ec7a9520.js +0 -1
- package/dist/esm-es5/label-8ac2645e.js +0 -1
|
@@ -74,22 +74,32 @@ export class CalciteSlider {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
else {
|
|
77
|
-
this
|
|
77
|
+
this.setValue(this.dragProp, this.clamp(value, this.dragProp));
|
|
78
78
|
}
|
|
79
|
-
this.emitChange();
|
|
80
79
|
}
|
|
81
80
|
};
|
|
82
81
|
this.dragEnd = () => {
|
|
83
82
|
document.removeEventListener("pointermove", this.dragUpdate);
|
|
84
83
|
document.removeEventListener("pointerup", this.dragEnd);
|
|
85
84
|
document.removeEventListener("pointercancel", this.dragEnd);
|
|
86
|
-
this.emitChange();
|
|
87
85
|
this.focusActiveHandle();
|
|
86
|
+
if (this.lastDragPropValue != this[this.dragProp]) {
|
|
87
|
+
this.emitChange();
|
|
88
|
+
}
|
|
88
89
|
this.dragProp = null;
|
|
90
|
+
this.lastDragPropValue = null;
|
|
89
91
|
this.minValueDragRange = null;
|
|
90
92
|
this.maxValueDragRange = null;
|
|
91
93
|
this.minMaxValueRange = null;
|
|
92
94
|
};
|
|
95
|
+
/**
|
|
96
|
+
* Set the reference of the track Element
|
|
97
|
+
* @internal
|
|
98
|
+
* @param node
|
|
99
|
+
*/
|
|
100
|
+
this.storeTrackRef = (node) => {
|
|
101
|
+
this.trackEl = node;
|
|
102
|
+
};
|
|
93
103
|
}
|
|
94
104
|
histogramWatcher(newHistogram) {
|
|
95
105
|
this.hasHistogram = !!newHistogram;
|
|
@@ -248,7 +258,7 @@ export class CalciteSlider {
|
|
|
248
258
|
return (h(Host, { id: id, onTouchStart: this.handleTouchStart },
|
|
249
259
|
h("div", { class: { container: true, "container--range": this.isRange } },
|
|
250
260
|
this.renderGraph(),
|
|
251
|
-
h("div", { class: "track" },
|
|
261
|
+
h("div", { class: "track", ref: this.storeTrackRef },
|
|
252
262
|
h("div", { class: "track__range", onPointerDown: () => this.dragStart("minMaxValue"), style: {
|
|
253
263
|
left: `${mirror ? 100 - maxInterval : minInterval}%`,
|
|
254
264
|
right: `${mirror ? minInterval : 100 - maxInterval}%`
|
|
@@ -393,8 +403,7 @@ export class CalciteSlider {
|
|
|
393
403
|
return;
|
|
394
404
|
}
|
|
395
405
|
event.preventDefault();
|
|
396
|
-
this
|
|
397
|
-
this.emitChange();
|
|
406
|
+
this.setValue(activeProp, this.clamp(adjustment, activeProp));
|
|
398
407
|
}
|
|
399
408
|
clickHandler() {
|
|
400
409
|
this.focusActiveHandle();
|
|
@@ -413,8 +422,12 @@ export class CalciteSlider {
|
|
|
413
422
|
prop = closerToMax || position > this.maxValue ? "maxValue" : "minValue";
|
|
414
423
|
}
|
|
415
424
|
}
|
|
416
|
-
this
|
|
425
|
+
this.lastDragPropValue = this[prop];
|
|
417
426
|
this.dragStart(prop);
|
|
427
|
+
const isThumbActive = this.el.shadowRoot.querySelector(".thumb:active");
|
|
428
|
+
if (!isThumbActive) {
|
|
429
|
+
this.setValue(prop, this.clamp(position, prop));
|
|
430
|
+
}
|
|
418
431
|
}
|
|
419
432
|
handleTouchStart(event) {
|
|
420
433
|
// needed to prevent extra click at the end of a handle drag
|
|
@@ -469,9 +482,30 @@ export class CalciteSlider {
|
|
|
469
482
|
break;
|
|
470
483
|
}
|
|
471
484
|
}
|
|
485
|
+
emitInput() {
|
|
486
|
+
this.calciteSliderInput.emit();
|
|
487
|
+
this.calciteSliderUpdate.emit();
|
|
488
|
+
}
|
|
472
489
|
emitChange() {
|
|
473
490
|
this.calciteSliderChange.emit();
|
|
474
|
-
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* Set the prop value if changed at the component level
|
|
494
|
+
* @param valueProp
|
|
495
|
+
* @param value
|
|
496
|
+
*/
|
|
497
|
+
setValue(valueProp, value) {
|
|
498
|
+
const oldValue = this[valueProp];
|
|
499
|
+
const valueChanged = oldValue !== value;
|
|
500
|
+
if (!valueChanged) {
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
this[valueProp] = value;
|
|
504
|
+
const dragging = this.dragProp;
|
|
505
|
+
if (!dragging) {
|
|
506
|
+
this.emitChange();
|
|
507
|
+
}
|
|
508
|
+
this.emitInput();
|
|
475
509
|
}
|
|
476
510
|
/**
|
|
477
511
|
* If number is outside range, constrain to min or max
|
|
@@ -494,7 +528,7 @@ export class CalciteSlider {
|
|
|
494
528
|
*/
|
|
495
529
|
translate(x) {
|
|
496
530
|
const range = this.max - this.min;
|
|
497
|
-
const { left, width } = this.
|
|
531
|
+
const { left, width } = this.trackEl.getBoundingClientRect();
|
|
498
532
|
const percent = (x - left) / width;
|
|
499
533
|
const mirror = this.shouldMirror();
|
|
500
534
|
let value = this.clamp(this.min + range * (mirror ? 1 - percent : percent));
|
|
@@ -1057,6 +1091,21 @@ export class CalciteSlider {
|
|
|
1057
1091
|
"tickValues": {}
|
|
1058
1092
|
}; }
|
|
1059
1093
|
static get events() { return [{
|
|
1094
|
+
"method": "calciteSliderInput",
|
|
1095
|
+
"name": "calciteSliderInput",
|
|
1096
|
+
"bubbles": true,
|
|
1097
|
+
"cancelable": true,
|
|
1098
|
+
"composed": true,
|
|
1099
|
+
"docs": {
|
|
1100
|
+
"tags": [],
|
|
1101
|
+
"text": "Fires on all updates to the slider.\n:warning: Will be fired frequently during drag. If you are performing any\nexpensive operations consider using a debounce or throttle to avoid\nlocking up the main thread."
|
|
1102
|
+
},
|
|
1103
|
+
"complexType": {
|
|
1104
|
+
"original": "any",
|
|
1105
|
+
"resolved": "any",
|
|
1106
|
+
"references": {}
|
|
1107
|
+
}
|
|
1108
|
+
}, {
|
|
1060
1109
|
"method": "calciteSliderChange",
|
|
1061
1110
|
"name": "calciteSliderChange",
|
|
1062
1111
|
"bubbles": true,
|
|
@@ -1064,7 +1113,7 @@ export class CalciteSlider {
|
|
|
1064
1113
|
"composed": true,
|
|
1065
1114
|
"docs": {
|
|
1066
1115
|
"tags": [],
|
|
1067
|
-
"text": "Fires on
|
|
1116
|
+
"text": "Fires on when the thumb is released on slider\nIf you need to constantly listen to the drag event,\nplease use calciteSliderInput instead"
|
|
1068
1117
|
},
|
|
1069
1118
|
"complexType": {
|
|
1070
1119
|
"original": "any",
|
|
@@ -1079,7 +1128,7 @@ export class CalciteSlider {
|
|
|
1079
1128
|
"composed": true,
|
|
1080
1129
|
"docs": {
|
|
1081
1130
|
"tags": [{
|
|
1082
|
-
"text": "use
|
|
1131
|
+
"text": "use calciteSliderInput instead",
|
|
1083
1132
|
"name": "deprecated"
|
|
1084
1133
|
}],
|
|
1085
1134
|
"text": "Fires on all updates to the slider.\n:warning: Will be fired frequently during drag. If you are performing any\nexpensive operations consider using a debounce or throttle to avoid\nlocking up the main thread."
|
|
@@ -194,23 +194,23 @@
|
|
|
194
194
|
box-shadow: inset 0 0 0 1px var(--calcite-ui-brand);
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
:host([
|
|
197
|
+
:host([checked]) .track {
|
|
198
198
|
background-color: var(--calcite-ui-brand);
|
|
199
199
|
border-color: var(--calcite-ui-brand-hover);
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
:host([
|
|
202
|
+
:host([checked]) .handle {
|
|
203
203
|
left: auto;
|
|
204
204
|
border-color: var(--calcite-ui-brand);
|
|
205
205
|
right: -1px;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
:host([
|
|
208
|
+
:host([checked]:hover) .track {
|
|
209
209
|
background-color: var(--calcite-ui-brand);
|
|
210
210
|
border-color: var(--calcite-ui-brand-hover);
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
:host([
|
|
213
|
+
:host([checked]:hover) .handle {
|
|
214
214
|
border-color: var(--calcite-ui-brand-hover);
|
|
215
215
|
box-shadow: inset 0 0 0 1px var(--calcite-ui-brand-hover);
|
|
216
216
|
}
|
|
@@ -220,17 +220,17 @@
|
|
|
220
220
|
right: -1px;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
:host([
|
|
223
|
+
:host([checked]) .calcite--rtl .handle {
|
|
224
224
|
right: auto;
|
|
225
225
|
left: -1px;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
:host([
|
|
228
|
+
:host([checked]:active) .calcite--rtl .handle {
|
|
229
229
|
right: auto;
|
|
230
230
|
left: -1px;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
:host([
|
|
233
|
+
:host([checked]:focus) .calcite--rtl .handle {
|
|
234
234
|
right: auto;
|
|
235
235
|
left: -1px;
|
|
236
236
|
}
|
|
@@ -16,8 +16,12 @@ export class CalciteSwitch {
|
|
|
16
16
|
this.disabled = false;
|
|
17
17
|
/** The scale of the switch */
|
|
18
18
|
this.scale = "m";
|
|
19
|
-
/** True if the switch is initially on
|
|
19
|
+
/** True if the switch is initially on
|
|
20
|
+
* @deprecated use 'checked' instead.
|
|
21
|
+
*/
|
|
20
22
|
this.switched = false;
|
|
23
|
+
/** True if the switch is initially on */
|
|
24
|
+
this.checked = false;
|
|
21
25
|
this.inputEl = document.createElement("input");
|
|
22
26
|
//--------------------------------------------------------------------------
|
|
23
27
|
//
|
|
@@ -31,9 +35,6 @@ export class CalciteSwitch {
|
|
|
31
35
|
}
|
|
32
36
|
};
|
|
33
37
|
this.clickHandler = () => {
|
|
34
|
-
if (this.labelEl) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
38
|
this.toggle();
|
|
38
39
|
};
|
|
39
40
|
}
|
|
@@ -44,8 +45,11 @@ export class CalciteSwitch {
|
|
|
44
45
|
nameChanged(newName) {
|
|
45
46
|
this.inputEl.name = newName;
|
|
46
47
|
}
|
|
47
|
-
switchedWatcher(
|
|
48
|
-
this.
|
|
48
|
+
switchedWatcher(switched) {
|
|
49
|
+
this.checked = switched;
|
|
50
|
+
}
|
|
51
|
+
checkedWatcher(checked) {
|
|
52
|
+
this.inputEl.checked = checked;
|
|
49
53
|
}
|
|
50
54
|
//--------------------------------------------------------------------------
|
|
51
55
|
//
|
|
@@ -57,7 +61,7 @@ export class CalciteSwitch {
|
|
|
57
61
|
this.el.focus();
|
|
58
62
|
}
|
|
59
63
|
setupInput() {
|
|
60
|
-
this.
|
|
64
|
+
this.checked && this.inputEl.setAttribute("checked", "");
|
|
61
65
|
this.inputEl.disabled = this.disabled;
|
|
62
66
|
this.inputEl.id = `${this.guid}-input`;
|
|
63
67
|
this.inputEl.name = this.name;
|
|
@@ -69,9 +73,11 @@ export class CalciteSwitch {
|
|
|
69
73
|
this.el.appendChild(this.inputEl);
|
|
70
74
|
}
|
|
71
75
|
toggle() {
|
|
72
|
-
this.
|
|
76
|
+
this.checked = !this.checked;
|
|
73
77
|
this.calciteSwitchChange.emit({
|
|
74
|
-
|
|
78
|
+
// todo: We should remove emmitting redudant props in event payload.
|
|
79
|
+
// https://github.com/Esri/calcite-components/issues/3163
|
|
80
|
+
switched: this.checked
|
|
75
81
|
});
|
|
76
82
|
}
|
|
77
83
|
//--------------------------------------------------------------------------
|
|
@@ -108,7 +114,7 @@ export class CalciteSwitch {
|
|
|
108
114
|
// --------------------------------------------------------------------------
|
|
109
115
|
render() {
|
|
110
116
|
const dir = getElementDir(this.el);
|
|
111
|
-
return (h(Host, { "aria-checked": this.
|
|
117
|
+
return (h(Host, { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), onClick: this.clickHandler, role: "switch", tabindex: this.tabindex },
|
|
112
118
|
h("div", { class: { container: true, [CSS_UTILITY.rtl]: dir === "rtl" } },
|
|
113
119
|
h("div", { class: "track" },
|
|
114
120
|
h("div", { class: "handle" })))));
|
|
@@ -198,6 +204,27 @@ export class CalciteSwitch {
|
|
|
198
204
|
"defaultValue": "\"m\""
|
|
199
205
|
},
|
|
200
206
|
"switched": {
|
|
207
|
+
"type": "boolean",
|
|
208
|
+
"mutable": false,
|
|
209
|
+
"complexType": {
|
|
210
|
+
"original": "boolean",
|
|
211
|
+
"resolved": "boolean",
|
|
212
|
+
"references": {}
|
|
213
|
+
},
|
|
214
|
+
"required": false,
|
|
215
|
+
"optional": false,
|
|
216
|
+
"docs": {
|
|
217
|
+
"tags": [{
|
|
218
|
+
"text": "use 'checked' instead.",
|
|
219
|
+
"name": "deprecated"
|
|
220
|
+
}],
|
|
221
|
+
"text": "True if the switch is initially on"
|
|
222
|
+
},
|
|
223
|
+
"attribute": "switched",
|
|
224
|
+
"reflect": false,
|
|
225
|
+
"defaultValue": "false"
|
|
226
|
+
},
|
|
227
|
+
"checked": {
|
|
201
228
|
"type": "boolean",
|
|
202
229
|
"mutable": true,
|
|
203
230
|
"complexType": {
|
|
@@ -211,7 +238,7 @@ export class CalciteSwitch {
|
|
|
211
238
|
"tags": [],
|
|
212
239
|
"text": "True if the switch is initially on"
|
|
213
240
|
},
|
|
214
|
-
"attribute": "
|
|
241
|
+
"attribute": "checked",
|
|
215
242
|
"reflect": true,
|
|
216
243
|
"defaultValue": "false"
|
|
217
244
|
},
|
|
@@ -245,7 +272,7 @@ export class CalciteSwitch {
|
|
|
245
272
|
"composed": true,
|
|
246
273
|
"docs": {
|
|
247
274
|
"tags": [],
|
|
248
|
-
"text": "Fires when the
|
|
275
|
+
"text": "Fires when the checked value has changed."
|
|
249
276
|
},
|
|
250
277
|
"complexType": {
|
|
251
278
|
"original": "any",
|
|
@@ -281,6 +308,9 @@ export class CalciteSwitch {
|
|
|
281
308
|
}, {
|
|
282
309
|
"propName": "switched",
|
|
283
310
|
"methodName": "switchedWatcher"
|
|
311
|
+
}, {
|
|
312
|
+
"propName": "checked",
|
|
313
|
+
"methodName": "checkedWatcher"
|
|
284
314
|
}]; }
|
|
285
315
|
static get listeners() { return [{
|
|
286
316
|
"name": "keydown",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Element, h, Prop, Listen, Watch, State, Method } from "@stencil/core";
|
|
1
|
+
import { Component, Element, Event, h, Prop, Listen, Watch, State, Method } from "@stencil/core";
|
|
2
2
|
import { getElementDir } from "../../utils/dom";
|
|
3
3
|
import { CSS_UTILITY } from "../../utils/resources";
|
|
4
4
|
import { guid } from "../../utils/guid";
|
|
@@ -57,30 +57,42 @@ export class CalciteTileSelect {
|
|
|
57
57
|
// Event Listeners
|
|
58
58
|
//
|
|
59
59
|
//--------------------------------------------------------------------------
|
|
60
|
-
|
|
60
|
+
checkboxChangeHandler(event) {
|
|
61
61
|
const checkbox = event.target;
|
|
62
62
|
if (checkbox === this.input) {
|
|
63
63
|
this.checked = checkbox.checked;
|
|
64
64
|
}
|
|
65
|
+
event.stopPropagation();
|
|
66
|
+
this.calciteTileSelectChange.emit();
|
|
65
67
|
}
|
|
66
|
-
|
|
68
|
+
checkboxFocusHandler(event) {
|
|
67
69
|
const checkbox = event.target;
|
|
68
70
|
if (checkbox === this.input) {
|
|
69
71
|
this.focused = event.detail;
|
|
70
72
|
}
|
|
73
|
+
event.stopPropagation();
|
|
71
74
|
}
|
|
72
|
-
|
|
75
|
+
radioButtonChangeHandler(event) {
|
|
73
76
|
const radioButton = event.target;
|
|
74
77
|
if (radioButton === this.input) {
|
|
75
78
|
this.checked = radioButton.checked;
|
|
76
79
|
}
|
|
77
80
|
event.stopPropagation();
|
|
81
|
+
this.calciteTileSelectChange.emit();
|
|
78
82
|
}
|
|
79
|
-
|
|
83
|
+
radioButtonCheckedChangeHandler(event) {
|
|
84
|
+
const radioButton = event.target;
|
|
85
|
+
if (radioButton === this.input) {
|
|
86
|
+
this.checked = radioButton.checked;
|
|
87
|
+
}
|
|
88
|
+
event.stopPropagation();
|
|
89
|
+
}
|
|
90
|
+
radioButtonFocusHandler(event) {
|
|
80
91
|
const radioButton = event.target;
|
|
81
92
|
if (radioButton === this.input) {
|
|
82
93
|
this.focused = radioButton.focused;
|
|
83
94
|
}
|
|
95
|
+
event.stopPropagation();
|
|
84
96
|
}
|
|
85
97
|
click(event) {
|
|
86
98
|
const target = event.target;
|
|
@@ -388,6 +400,22 @@ export class CalciteTileSelect {
|
|
|
388
400
|
static get states() { return {
|
|
389
401
|
"focused": {}
|
|
390
402
|
}; }
|
|
403
|
+
static get events() { return [{
|
|
404
|
+
"method": "calciteTileSelectChange",
|
|
405
|
+
"name": "calciteTileSelectChange",
|
|
406
|
+
"bubbles": true,
|
|
407
|
+
"cancelable": true,
|
|
408
|
+
"composed": true,
|
|
409
|
+
"docs": {
|
|
410
|
+
"tags": [],
|
|
411
|
+
"text": "Emits a custom change event. For checkboxes, it emits when the checkbox is checked or unchecked. For radios it only emits when it is checked."
|
|
412
|
+
},
|
|
413
|
+
"complexType": {
|
|
414
|
+
"original": "any",
|
|
415
|
+
"resolved": "any",
|
|
416
|
+
"references": {}
|
|
417
|
+
}
|
|
418
|
+
}]; }
|
|
391
419
|
static get methods() { return {
|
|
392
420
|
"setFocus": {
|
|
393
421
|
"complexType": {
|
|
@@ -416,25 +444,31 @@ export class CalciteTileSelect {
|
|
|
416
444
|
}]; }
|
|
417
445
|
static get listeners() { return [{
|
|
418
446
|
"name": "calciteCheckboxChange",
|
|
419
|
-
"method": "
|
|
447
|
+
"method": "checkboxChangeHandler",
|
|
448
|
+
"target": undefined,
|
|
449
|
+
"capture": false,
|
|
450
|
+
"passive": false
|
|
451
|
+
}, {
|
|
452
|
+
"name": "calciteInternalCheckboxFocus",
|
|
453
|
+
"method": "checkboxFocusHandler",
|
|
420
454
|
"target": undefined,
|
|
421
455
|
"capture": false,
|
|
422
456
|
"passive": false
|
|
423
457
|
}, {
|
|
424
|
-
"name": "
|
|
425
|
-
"method": "
|
|
458
|
+
"name": "calciteRadioButtonChange",
|
|
459
|
+
"method": "radioButtonChangeHandler",
|
|
426
460
|
"target": undefined,
|
|
427
461
|
"capture": false,
|
|
428
462
|
"passive": false
|
|
429
463
|
}, {
|
|
430
|
-
"name": "
|
|
431
|
-
"method": "
|
|
464
|
+
"name": "calciteInternalRadioButtonCheckedChange",
|
|
465
|
+
"method": "radioButtonCheckedChangeHandler",
|
|
432
466
|
"target": undefined,
|
|
433
467
|
"capture": false,
|
|
434
468
|
"passive": false
|
|
435
469
|
}, {
|
|
436
|
-
"name": "
|
|
437
|
-
"method": "
|
|
470
|
+
"name": "calciteInternalRadioButtonFocus",
|
|
471
|
+
"method": "radioButtonFocusHandler",
|
|
438
472
|
"target": undefined,
|
|
439
473
|
"capture": false,
|
|
440
474
|
"passive": false
|
|
@@ -6,7 +6,7 @@ import List from "../calcite-pick-list/shared-list-render";
|
|
|
6
6
|
import { getRoundRobinIndex } from "../../utils/array";
|
|
7
7
|
import { createObserver } from "../../utils/observers";
|
|
8
8
|
/**
|
|
9
|
-
* @slot - A slot for adding `calcite-
|
|
9
|
+
* @slot - A slot for adding `calcite-value-list-item` elements. Items are displayed as a vertical list.
|
|
10
10
|
* @slot menu-actions - A slot for adding a button + menu combo for performing actions like sorting.
|
|
11
11
|
*/
|
|
12
12
|
export class CalciteValueList {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { escapeRegExp, forIn } from "lodash-es";
|
|
2
2
|
export const filter = (data, value) => {
|
|
3
3
|
const escapedValue = escapeRegExp(value);
|
|
4
|
-
const regex = new RegExp(escapedValue, "
|
|
4
|
+
const regex = new RegExp(escapedValue, "i");
|
|
5
5
|
if (data.length === 0) {
|
|
6
6
|
console.warn(`No data was passed to the filter function.
|
|
7
7
|
The data argument should be an array of objects`);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { closestElementCrossShadowBoundary, queryElementRoots } from "./dom";
|
|
2
2
|
const labelTagName = "calcite-label";
|
|
3
3
|
const labelClickEvent = "calciteInternalLabelClick";
|
|
4
|
+
const onLabelClickMap = new WeakMap();
|
|
4
5
|
const findLabelForComponent = (componentEl) => {
|
|
5
6
|
const id = componentEl.id;
|
|
6
7
|
return ((id && queryElementRoots(componentEl, `${labelTagName}[for="${id}"]`)) ||
|
|
@@ -10,16 +11,25 @@ const findLabelForComponent = (componentEl) => {
|
|
|
10
11
|
* Helper to set up label interactions on connectedCallback.
|
|
11
12
|
*/
|
|
12
13
|
export function connectLabel(component) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
const labelEl = findLabelForComponent(component.el);
|
|
15
|
+
if (!labelEl) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
component.labelEl = labelEl;
|
|
19
|
+
const boundOnLabelClick = onLabelClick.bind(component);
|
|
20
|
+
onLabelClickMap.set(component.el, boundOnLabelClick);
|
|
21
|
+
component.labelEl.addEventListener(labelClickEvent, boundOnLabelClick);
|
|
16
22
|
}
|
|
17
23
|
/**
|
|
18
24
|
* Helper to tear down label interactions on disconnectedCallback.
|
|
19
25
|
*/
|
|
20
26
|
export function disconnectLabel(component) {
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
if (!component.labelEl) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const boundOnLabelClick = onLabelClickMap.get(component.el);
|
|
31
|
+
component.labelEl.removeEventListener(labelClickEvent, boundOnLabelClick);
|
|
32
|
+
onLabelClickMap.delete(component.el);
|
|
23
33
|
}
|
|
24
34
|
/**
|
|
25
35
|
* Helper to get the label text from a component.
|
|
@@ -28,3 +38,10 @@ export function getLabelText(component) {
|
|
|
28
38
|
var _a, _b;
|
|
29
39
|
return component.label || ((_b = (_a = component.labelEl) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || "";
|
|
30
40
|
}
|
|
41
|
+
function onLabelClick(event) {
|
|
42
|
+
const containedLabelableChildClicked = this.el.contains(event.detail.sourceEvent.target);
|
|
43
|
+
if (containedLabelableChildClicked) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
this.onLabelClick(event);
|
|
47
|
+
}
|
|
@@ -1,7 +1,24 @@
|
|
|
1
|
+
const autoTheme = "calcite-theme-auto";
|
|
2
|
+
const darkTheme = "calcite-theme-dark";
|
|
3
|
+
const lightTheme = "calcite-theme-light";
|
|
4
|
+
export const THEMES = [
|
|
5
|
+
{
|
|
6
|
+
name: "light",
|
|
7
|
+
className: lightTheme
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: "dark",
|
|
11
|
+
className: darkTheme
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: "auto",
|
|
15
|
+
className: autoTheme
|
|
16
|
+
}
|
|
17
|
+
];
|
|
1
18
|
export const CSS_UTILITY = {
|
|
2
|
-
autoTheme
|
|
3
|
-
darkTheme
|
|
4
|
-
lightTheme
|
|
19
|
+
autoTheme,
|
|
20
|
+
darkTheme,
|
|
21
|
+
lightTheme,
|
|
5
22
|
rtl: "calcite--rtl"
|
|
6
23
|
};
|
|
7
24
|
export const TEXT = {
|