@esri/calcite-components 1.0.0-next.294 → 1.0.0-next.298
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/checkExtent16.json +1 -0
- package/dist/calcite/assets/calcite-icon/checkExtent24.json +1 -0
- package/dist/calcite/assets/calcite-icon/checkExtent32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTime16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTime24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTime32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeLargest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeLargest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeLargest32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeSmallest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeSmallest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeSmallest32.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeXBar16.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeXBar24.json +1 -0
- package/dist/calcite/assets/calcite-icon/driveTimeXBar32.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupItems16.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupItems24.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupItems32.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupLayoutElements16.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupLayoutElements24.json +1 -0
- package/dist/calcite/assets/calcite-icon/groupLayoutElements32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsLargest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsLargest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsLargest32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsSmallest16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsSmallest24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsSmallest32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsXBar16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsXBar24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ringsXBar32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupItems16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupItems24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupItems32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupLayoutElements16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupLayoutElements24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ungroupLayoutElements32.json +1 -0
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/{p-dc99bb00.system.entry.js → p-00716aa8.system.entry.js} +1 -1
- package/dist/calcite/{p-413b4857.system.entry.js → p-044d603d.system.entry.js} +1 -1
- package/dist/calcite/{p-6621aee1.entry.js → p-05da7439.entry.js} +1 -1
- package/dist/calcite/{p-7c37ca39.entry.js → p-08d707c4.entry.js} +1 -1
- package/dist/calcite/{p-fba65e4a.system.entry.js → p-10708f87.system.entry.js} +1 -1
- package/dist/calcite/p-109049e6.system.entry.js +5 -0
- package/dist/calcite/{p-58e98b2d.system.entry.js → p-127e3513.system.entry.js} +1 -1
- package/dist/calcite/p-1434e37e.entry.js +5 -0
- package/dist/calcite/{p-c8e4117c.system.entry.js → p-15f3a0d7.system.entry.js} +1 -1
- package/dist/calcite/{p-de3a04c2.system.entry.js → p-16bb48f6.system.entry.js} +1 -1
- package/dist/calcite/{p-c99d8f9e.system.entry.js → p-16f2d814.system.entry.js} +1 -1
- package/dist/calcite/p-1942876c.js +5 -0
- package/dist/calcite/{p-cca94491.system.entry.js → p-1a1e9057.system.entry.js} +1 -1
- package/dist/calcite/p-1a962bdd.js +5 -0
- package/dist/calcite/p-1aa89347.system.entry.js +5 -0
- package/dist/calcite/{p-a8569c55.system.entry.js → p-1c8fe17f.system.entry.js} +1 -1
- package/dist/calcite/{p-6988c6b7.system.entry.js → p-1dd440e6.system.entry.js} +1 -1
- package/dist/calcite/{p-7a6c6382.entry.js → p-21c8ac06.entry.js} +1 -1
- package/dist/calcite/{p-6c8a562f.system.entry.js → p-243d95ab.system.entry.js} +1 -1
- package/dist/calcite/{p-3f1d1bad.entry.js → p-2451da5b.entry.js} +1 -1
- package/dist/calcite/p-288bc438.system.js +5 -0
- package/dist/calcite/{p-4185db77.entry.js → p-289bc56f.entry.js} +1 -1
- package/dist/calcite/{p-9affee61.entry.js → p-29771742.entry.js} +1 -1
- package/dist/calcite/{p-8953f712.entry.js → p-2aa3007a.entry.js} +1 -1
- package/dist/calcite/p-2d09cc25.js +5 -0
- package/dist/calcite/p-2e29554c.js +5 -0
- package/dist/calcite/{p-3962cd38.entry.js → p-33802886.entry.js} +1 -1
- package/dist/calcite/{p-25a31861.system.js → p-34e5baa7.system.js} +1 -1
- package/dist/calcite/p-3a592bf3.system.entry.js +5 -0
- package/dist/calcite/p-3dae9da3.js +5 -0
- package/dist/calcite/{p-bf8b70a8.entry.js → p-3e6fcede.entry.js} +1 -1
- package/dist/calcite/p-3eb1dc0f.entry.js +5 -0
- package/dist/calcite/{p-c9ecea64.entry.js → p-48f03121.entry.js} +1 -1
- package/dist/calcite/{p-83302e1c.entry.js → p-4acfb654.entry.js} +1 -1
- package/dist/calcite/{p-bf25e278.system.entry.js → p-4d11efdb.system.entry.js} +1 -1
- package/dist/calcite/{p-b8d040e5.system.entry.js → p-4e16515a.system.entry.js} +1 -1
- package/dist/calcite/{p-c60e3a71.entry.js → p-4f1f83d2.entry.js} +1 -1
- package/dist/calcite/{p-1e875199.entry.js → p-502ea583.entry.js} +1 -1
- package/dist/calcite/p-523bc291.system.js +5 -0
- package/dist/calcite/p-54394dfe.system.entry.js +5 -0
- package/dist/calcite/p-578509a8.entry.js +5 -0
- package/dist/calcite/p-592da79d.system.entry.js +5 -0
- package/dist/calcite/p-5c0c29bc.entry.js +5 -0
- package/dist/calcite/p-5eee672a.system.entry.js +5 -0
- package/dist/calcite/{p-ba1322e6.system.entry.js → p-5f2a9710.system.entry.js} +1 -1
- package/dist/calcite/{p-36e5db45.entry.js → p-5f817b79.entry.js} +1 -1
- package/dist/calcite/{p-e638ff0e.entry.js → p-6296644b.entry.js} +1 -1
- package/dist/calcite/p-63e60894.entry.js +5 -0
- package/dist/calcite/{p-daa110fe.system.entry.js → p-6484ffb7.system.entry.js} +1 -1
- package/dist/calcite/{p-28261aae.entry.js → p-659898bf.entry.js} +1 -1
- package/dist/calcite/{p-d11ad046.system.js → p-6d44b7d9.system.js} +1 -1
- package/dist/calcite/p-6f1cca21.system.js +5 -0
- package/dist/calcite/{p-e7819705.entry.js → p-714ae4f6.entry.js} +1 -1
- package/dist/calcite/{p-3bb30b44.system.entry.js → p-74f390e1.system.entry.js} +1 -1
- package/dist/calcite/{p-d4059426.entry.js → p-75264173.entry.js} +1 -1
- package/dist/calcite/{p-76ccd204.entry.js → p-765fb8ed.entry.js} +1 -1
- package/dist/calcite/p-784e414b.entry.js +5 -0
- package/dist/calcite/{p-cacca548.entry.js → p-78d0db7b.entry.js} +1 -1
- package/dist/calcite/{p-98789055.system.entry.js → p-7ba971b5.system.entry.js} +1 -1
- package/dist/calcite/{p-f281f1e9.entry.js → p-7bb94bfa.entry.js} +1 -1
- package/dist/calcite/{p-502736d8.system.entry.js → p-81538774.system.entry.js} +1 -1
- package/dist/calcite/p-81ab443c.entry.js +5 -0
- package/dist/calcite/p-82139130.entry.js +5 -0
- package/dist/calcite/{p-7b869bc5.entry.js → p-82c6cd9a.entry.js} +1 -1
- package/dist/calcite/{p-45257edb.js → p-8340b572.js} +1 -1
- package/dist/calcite/{p-58716826.system.entry.js → p-840f2937.system.entry.js} +2 -2
- package/dist/calcite/p-85032edc.system.entry.js +5 -0
- package/dist/calcite/{p-b41deed0.system.entry.js → p-8b2ead09.system.entry.js} +1 -1
- package/dist/calcite/p-8baa9ba4.entry.js +5 -0
- package/dist/calcite/{p-7ade2294.system.entry.js → p-8fef13ca.system.entry.js} +1 -1
- package/dist/calcite/{p-75f714c9.entry.js → p-9338b0bc.entry.js} +1 -1
- package/dist/calcite/p-9577dfd9.entry.js +5 -0
- package/dist/calcite/{p-c48b4b7e.system.entry.js → p-95b9a0f2.system.entry.js} +1 -1
- package/dist/calcite/p-968ea270.entry.js +5 -0
- package/dist/calcite/p-99a1c131.entry.js +5 -0
- package/dist/calcite/{p-83ccefba.system.entry.js → p-9abbbcbd.system.entry.js} +1 -1
- package/dist/calcite/p-9be6633a.entry.js +5 -0
- package/dist/calcite/{p-9fc0dc2c.system.entry.js → p-9f240615.system.entry.js} +1 -1
- package/dist/calcite/{p-f6f4648e.system.entry.js → p-a5269f14.system.entry.js} +1 -1
- package/dist/calcite/{p-684ccd4e.system.entry.js → p-a8dc2982.system.entry.js} +1 -1
- package/dist/calcite/{p-0100aeb0.entry.js → p-ace12b8d.entry.js} +1 -1
- package/dist/calcite/{p-7dd5c4e4.entry.js → p-aced5f01.entry.js} +1 -1
- package/dist/calcite/{p-f32e61bb.system.entry.js → p-aec398f3.system.entry.js} +1 -1
- package/dist/calcite/{p-eed43a57.system.entry.js → p-b1351c3e.system.entry.js} +1 -1
- package/dist/calcite/p-b1a96c72.system.entry.js +5 -0
- package/dist/calcite/{p-8007a0b4.system.entry.js → p-b2bbac37.system.entry.js} +1 -1
- package/dist/calcite/{p-3cf93a58.system.entry.js → p-b4b1081f.system.entry.js} +1 -1
- package/dist/calcite/p-b94bf8ac.system.entry.js +5 -0
- package/dist/calcite/p-c0e35328.entry.js +5 -0
- package/dist/calcite/p-c34c4414.system.js +5 -0
- package/dist/calcite/{p-a09634e2.entry.js → p-c3ba61ea.entry.js} +1 -1
- package/dist/calcite/{p-fe16f05e.system.entry.js → p-c4cb4fab.system.entry.js} +1 -1
- package/dist/calcite/p-c87c04a9.entry.js +5 -0
- package/dist/calcite/p-ca3bb147.entry.js +5 -0
- package/dist/calcite/{p-527146c8.system.entry.js → p-cbe9f1a2.system.entry.js} +1 -1
- package/dist/calcite/{p-a7ba0292.system.js → p-cbf6bb04.system.js} +1 -1
- package/dist/calcite/p-cc2085c7.system.entry.js +5 -0
- package/dist/calcite/{p-507b2cc4.entry.js → p-cc788d2e.entry.js} +1 -1
- package/dist/calcite/p-cced5508.system.entry.js +5 -0
- package/dist/calcite/{p-dcf30b00.system.entry.js → p-cf03b144.system.entry.js} +1 -1
- package/dist/calcite/{p-b018fbbd.entry.js → p-d550ee4d.entry.js} +1 -1
- package/dist/calcite/{p-72fa390e.entry.js → p-d6e30c54.entry.js} +1 -1
- package/dist/calcite/{p-79cbbf2d.js → p-d6f20229.js} +1 -1
- package/dist/calcite/{p-3e438b5b.system.entry.js → p-dabb63b5.system.entry.js} +1 -1
- package/dist/calcite/{p-9fa024e6.system.entry.js → p-dd464e44.system.entry.js} +1 -1
- package/dist/calcite/{p-38ee7306.system.entry.js → p-deb36fde.system.entry.js} +1 -1
- package/dist/calcite/{p-b4e7b593.system.entry.js → p-defcee80.system.entry.js} +1 -1
- package/dist/calcite/{p-e35e7216.system.js → p-dff7dc90.system.js} +1 -1
- package/dist/calcite/{p-aad45edf.system.js → p-e095517f.system.js} +1 -1
- package/dist/calcite/{p-09da1c54.system.entry.js → p-e33fe285.system.entry.js} +1 -1
- package/dist/calcite/p-e52495d3.system.entry.js +5 -0
- package/dist/calcite/p-e5932886.system.entry.js +5 -0
- package/dist/calcite/{p-9fa5e356.entry.js → p-e5e3b591.entry.js} +1 -1
- package/dist/calcite/p-e62a9b1d.system.entry.js +5 -0
- package/dist/calcite/p-e6c84e63.entry.js +5 -0
- package/dist/calcite/{p-a5bfc29d.system.entry.js → p-e6d05ad6.system.entry.js} +1 -1
- package/dist/calcite/{p-49d5ee42.system.entry.js → p-e70cb594.system.entry.js} +1 -1
- package/dist/calcite/{p-809ddb6a.js → p-e956e279.js} +1 -1
- package/dist/calcite/{p-c399cfce.entry.js → p-eada9cef.entry.js} +1 -1
- package/dist/calcite/{p-b244a00c.entry.js → p-ecc00ef0.entry.js} +1 -1
- package/dist/calcite/p-ed15771f.system.entry.js +5 -0
- package/dist/calcite/p-ed453bfb.entry.js +5 -0
- package/dist/calcite/{p-f93a7fce.entry.js → p-ef39847e.entry.js} +1 -1
- package/dist/calcite/{p-cd41629f.entry.js → p-efb2169a.entry.js} +1 -1
- package/dist/calcite/{p-06646eed.system.entry.js → p-f0338acf.system.entry.js} +1 -1
- package/dist/calcite/{p-3383d9b4.entry.js → p-f1c5e7cf.entry.js} +1 -1
- package/dist/calcite/{p-58eca102.entry.js → p-f278dd53.entry.js} +1 -1
- package/dist/calcite/p-f44e01bf.entry.js +5 -0
- package/dist/calcite/{p-5efd7297.entry.js → p-f9c46578.entry.js} +1 -1
- package/dist/calcite/{p-10de63d7.system.entry.js → p-fc47547f.system.entry.js} +1 -1
- package/dist/calcite/p-fc643963.entry.js +5 -0
- package/dist/cjs/{CalciteExpandToggle-6a9f9858.js → CalciteExpandToggle-5f60c98b.js} +1 -1
- package/dist/cjs/{CalciteHeading-363b0525.js → CalciteHeading-112c19f9.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-bar.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -1
- package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action.cjs.entry.js +1 -1
- package/dist/cjs/calcite-alert.cjs.entry.js +1 -1
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-card.cjs.entry.js +1 -1
- package/dist/cjs/calcite-checkbox.cjs.entry.js +36 -85
- package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +26 -27
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +81 -22
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +28 -10
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
- package/dist/cjs/calcite-filter.cjs.entry.js +34 -8
- package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -5
- package/dist/cjs/calcite-handle.cjs.entry.js +1 -1
- package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +51 -42
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +68 -15
- package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +13 -4
- package/dist/cjs/calcite-input.cjs.entry.js +78 -58
- package/dist/cjs/calcite-label.cjs.entry.js +1 -1
- package/dist/cjs/calcite-link.cjs.entry.js +1 -1
- package/dist/cjs/calcite-list_3.cjs.entry.js +3 -3
- package/dist/cjs/calcite-loader.cjs.entry.js +1 -1
- package/dist/cjs/calcite-modal.cjs.entry.js +1 -1
- package/dist/cjs/calcite-notice.cjs.entry.js +1 -1
- package/dist/cjs/calcite-option_3.cjs.entry.js +31 -5
- package/dist/cjs/calcite-pagination.cjs.entry.js +1 -1
- package/dist/cjs/calcite-panel.cjs.entry.js +5 -4
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +3 -3
- package/dist/cjs/calcite-popover_2.cjs.entry.js +3 -3
- 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 +20 -24
- package/dist/cjs/calcite-radio_2.cjs.entry.js +81 -75
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -4
- package/dist/cjs/calcite-scrim.cjs.entry.js +1 -1
- package/dist/cjs/calcite-shell_3.cjs.entry.js +5 -4
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js +1 -1
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-switch.cjs.entry.js +25 -49
- package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +1 -3
- package/dist/cjs/calcite-tile.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tip_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tree_2.cjs.entry.js +16 -9
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite.cjs.js +2 -2
- package/dist/cjs/form-a5b44a1f.js +179 -0
- package/dist/cjs/{index-cee0daa9.js → index-6b5d2de5.js} +8 -365
- package/dist/cjs/{label-549c3d9d.js → label-8e3552b2.js} +33 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/math-145c80e2.js +21 -0
- package/dist/cjs/{resources-38563593.js → resources-3f7b51c8.js} +1 -1
- package/dist/cjs/{resources-f9c141d2.js → resources-cd25dbae.js} +1 -1
- package/dist/collection/components/calcite-button/calcite-button.css +20 -14
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +22 -11
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +63 -112
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +13 -10
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +11 -15
- package/dist/collection/components/calcite-combobox/calcite-combobox.css +15 -0
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +139 -19
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +45 -15
- package/dist/collection/components/calcite-filter/calcite-filter.js +79 -8
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements32.json +1 -0
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css +8 -54
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +43 -32
- package/dist/collection/components/calcite-inline-editable/resources.js +7 -7
- package/dist/collection/components/calcite-input/calcite-input.css +102 -68
- package/dist/collection/components/calcite-input/calcite-input.js +107 -56
- package/dist/collection/components/calcite-input/resources.js +14 -12
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.css +15 -0
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +163 -40
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.css +15 -0
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +34 -3
- package/dist/collection/components/calcite-list-item/calcite-list-item.css +7 -0
- package/dist/collection/components/calcite-panel/calcite-panel.css +10 -4
- package/dist/collection/components/calcite-panel/calcite-panel.js +3 -2
- package/dist/collection/components/calcite-panel/resources.js +1 -0
- package/dist/collection/components/calcite-popover/calcite-popover.css +1 -0
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +18 -1
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +83 -84
- package/dist/collection/components/calcite-radio-button/resources.js +1 -1
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.css +15 -0
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +58 -22
- package/dist/collection/components/calcite-rating/calcite-rating.css +15 -0
- package/dist/collection/components/calcite-rating/calcite-rating.js +49 -1
- package/dist/collection/components/calcite-select/calcite-select.css +15 -0
- package/dist/collection/components/calcite-select/calcite-select.js +89 -3
- package/dist/collection/components/calcite-shell/calcite-shell.css +11 -11
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +38 -21
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +2 -2
- package/dist/collection/components/calcite-shell-panel/resources.js +1 -0
- package/dist/collection/components/calcite-slider/calcite-slider.css +15 -0
- package/dist/collection/components/calcite-slider/calcite-slider.js +45 -1
- package/dist/collection/components/calcite-switch/calcite-switch.css +15 -0
- package/dist/collection/components/calcite-switch/calcite-switch.js +28 -64
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +4 -7
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +15 -8
- package/dist/collection/utils/form.js +167 -14
- package/dist/collection/utils/label.js +33 -4
- package/dist/collection/utils/math.js +11 -0
- package/dist/components/calcite-button2.js +1 -1
- package/dist/components/calcite-checkbox2.js +37 -87
- package/dist/components/calcite-color-picker-hex-input2.js +11 -15
- package/dist/components/calcite-color-picker.js +13 -10
- package/dist/components/calcite-combobox.js +82 -20
- package/dist/components/calcite-date-picker2.js +25 -7
- package/dist/components/calcite-filter2.js +35 -7
- package/dist/components/calcite-inline-editable.js +52 -42
- package/dist/components/calcite-input-date-picker.js +68 -12
- package/dist/components/calcite-input-time-picker.js +12 -2
- package/dist/components/calcite-input2.js +82 -59
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-panel.js +3 -2
- package/dist/components/calcite-popover2.js +1 -1
- package/dist/components/calcite-radio-button.js +83 -76
- package/dist/components/calcite-radio-group.js +20 -22
- package/dist/components/calcite-rating.js +13 -2
- package/dist/components/calcite-select.js +32 -3
- package/dist/components/calcite-shell-panel.js +4 -3
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +12 -2
- package/dist/components/calcite-switch2.js +25 -51
- package/dist/components/calcite-tile-select.js +1 -3
- package/dist/components/calcite-tree-item.js +15 -8
- package/dist/components/form.js +169 -15
- package/dist/components/label.js +33 -4
- package/dist/components/math.js +12 -1
- package/dist/custom-elements/index.js +801 -445
- package/dist/esm/{CalciteExpandToggle-235a6bfd.js → CalciteExpandToggle-677f2f8b.js} +1 -1
- package/dist/esm/{CalciteHeading-dea3bd05.js → CalciteHeading-1d6cd311.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +1 -1
- package/dist/esm/calcite-action-bar.entry.js +2 -2
- package/dist/esm/calcite-action-group.entry.js +1 -1
- package/dist/esm/calcite-action-menu.entry.js +1 -1
- package/dist/esm/calcite-action-pad.entry.js +2 -2
- package/dist/esm/calcite-action.entry.js +1 -1
- package/dist/esm/calcite-alert.entry.js +1 -1
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block_2.entry.js +2 -2
- package/dist/esm/calcite-button.entry.js +3 -3
- package/dist/esm/calcite-card.entry.js +1 -1
- package/dist/esm/calcite-checkbox.entry.js +36 -85
- package/dist/esm/calcite-chip.entry.js +1 -1
- package/dist/esm/calcite-color-picker_3.entry.js +26 -27
- package/dist/esm/calcite-combobox_3.entry.js +81 -22
- package/dist/esm/calcite-date-picker_4.entry.js +28 -10
- package/dist/esm/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/calcite-filter.entry.js +34 -8
- package/dist/esm/calcite-flow.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +13 -5
- package/dist/esm/calcite-handle.entry.js +1 -1
- package/dist/esm/calcite-icon.entry.js +1 -1
- package/dist/esm/calcite-inline-editable.entry.js +51 -42
- package/dist/esm/calcite-input-date-picker.entry.js +68 -15
- package/dist/esm/calcite-input-message.entry.js +1 -1
- package/dist/esm/calcite-input-time-picker_2.entry.js +13 -4
- package/dist/esm/calcite-input.entry.js +79 -59
- package/dist/esm/calcite-label.entry.js +1 -1
- package/dist/esm/calcite-link.entry.js +1 -1
- package/dist/esm/calcite-list_3.entry.js +3 -3
- package/dist/esm/calcite-loader.entry.js +1 -1
- package/dist/esm/calcite-modal.entry.js +1 -1
- package/dist/esm/calcite-notice.entry.js +1 -1
- package/dist/esm/calcite-option_3.entry.js +31 -5
- package/dist/esm/calcite-pagination.entry.js +1 -1
- package/dist/esm/calcite-panel.entry.js +5 -4
- package/dist/esm/calcite-pick-list_3.entry.js +3 -3
- package/dist/esm/calcite-popover_2.entry.js +3 -3
- 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 +20 -24
- package/dist/esm/calcite-radio_2.entry.js +82 -76
- package/dist/esm/calcite-rating.entry.js +13 -4
- package/dist/esm/calcite-scrim.entry.js +1 -1
- package/dist/esm/calcite-shell_3.entry.js +5 -4
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-split-button.entry.js +1 -1
- package/dist/esm/calcite-stepper_2.entry.js +1 -1
- package/dist/esm/calcite-switch.entry.js +26 -50
- package/dist/esm/calcite-tab_4.entry.js +1 -1
- package/dist/esm/calcite-tile-select_2.entry.js +1 -3
- package/dist/esm/calcite-tile.entry.js +1 -1
- package/dist/esm/calcite-tip_3.entry.js +2 -2
- package/dist/esm/calcite-tooltip_2.entry.js +1 -1
- package/dist/esm/calcite-tree_2.entry.js +16 -9
- package/dist/esm/calcite-value-list_2.entry.js +2 -2
- package/dist/esm/calcite.js +2 -2
- package/dist/esm/form-160b0fb5.js +174 -0
- package/dist/esm/{index-66803519.js → index-9de00868.js} +8 -365
- package/dist/esm/{label-bb61bdef.js → label-5559055d.js} +33 -4
- package/dist/esm/loader.js +2 -2
- package/dist/esm/math-456207f5.js +18 -0
- package/dist/esm/{resources-8dd80c84.js → resources-16a2a25a.js} +1 -1
- package/dist/esm/{resources-c59a1a15.js → resources-bece7a88.js} +1 -1
- package/dist/esm-es5/{CalciteExpandToggle-235a6bfd.js → CalciteExpandToggle-677f2f8b.js} +1 -1
- package/dist/esm-es5/{CalciteHeading-dea3bd05.js → CalciteHeading-1d6cd311.js} +1 -1
- 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 +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-flow.entry.js +1 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-handle.entry.js +1 -1
- package/dist/esm-es5/calcite-icon.entry.js +1 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-loader.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 +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- 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-progress.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button-group.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 +2 -2
- package/dist/esm-es5/calcite-rating.entry.js +1 -1
- package/dist/esm-es5/calcite-scrim.entry.js +1 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-sortable-list.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 +2 -2
- 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/form-160b0fb5.js +5 -0
- package/dist/esm-es5/index-9de00868.js +5 -0
- package/dist/esm-es5/label-5559055d.js +5 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/math-456207f5.js +5 -0
- package/dist/esm-es5/{resources-8dd80c84.js → resources-16a2a25a.js} +1 -1
- package/dist/esm-es5/{resources-c59a1a15.js → resources-bece7a88.js} +1 -1
- package/dist/extras/docs-json.json +320 -59
- package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +22 -23
- package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +1 -1
- package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +21 -3
- package/dist/types/components/calcite-date-picker/calcite-date-picker.d.ts +20 -8
- package/dist/types/components/calcite-filter/calcite-filter.d.ts +19 -0
- package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +5 -6
- package/dist/types/components/calcite-input/calcite-input.d.ts +14 -8
- package/dist/types/components/calcite-input/resources.d.ts +2 -0
- package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +37 -8
- package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +11 -2
- package/dist/types/components/calcite-panel/resources.d.ts +1 -0
- package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +14 -15
- package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +13 -4
- package/dist/types/components/calcite-rating/calcite-rating.d.ts +12 -1
- package/dist/types/components/calcite-select/calcite-select.d.ts +19 -1
- package/dist/types/components/calcite-shell-panel/resources.d.ts +1 -0
- package/dist/types/components/calcite-slider/calcite-slider.d.ts +10 -1
- package/dist/types/components/calcite-switch/calcite-switch.d.ts +10 -9
- package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +1 -1
- package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +2 -0
- package/dist/types/components.d.ts +171 -18
- package/dist/types/utils/form.d.ts +112 -1
- package/dist/types/utils/label.d.ts +5 -0
- package/dist/types/utils/math.d.ts +1 -0
- package/hydrate/index.js +827 -455
- package/package.json +8 -9
- package/readme.md +2 -2
- package/CHANGELOG.md +0 -1506
- package/dist/calcite/p-05107123.entry.js +0 -5
- package/dist/calcite/p-05d1dfc6.js +0 -5
- package/dist/calcite/p-0d4e82ab.system.entry.js +0 -5
- package/dist/calcite/p-10759c71.system.entry.js +0 -5
- package/dist/calcite/p-11113310.entry.js +0 -5
- package/dist/calcite/p-12e1c83f.system.entry.js +0 -5
- package/dist/calcite/p-1421e818.entry.js +0 -5
- package/dist/calcite/p-157d05ce.js +0 -5
- package/dist/calcite/p-17e666d6.system.entry.js +0 -5
- package/dist/calcite/p-22ecf6df.entry.js +0 -5
- package/dist/calcite/p-2418cceb.entry.js +0 -5
- package/dist/calcite/p-2ba00b89.js +0 -5
- package/dist/calcite/p-2ecafa35.system.entry.js +0 -5
- package/dist/calcite/p-329e1831.system.entry.js +0 -5
- package/dist/calcite/p-3994ac99.system.entry.js +0 -5
- package/dist/calcite/p-42128a12.entry.js +0 -5
- package/dist/calcite/p-47313747.system.js +0 -5
- package/dist/calcite/p-4c7e3915.system.entry.js +0 -5
- package/dist/calcite/p-4ecd0331.entry.js +0 -5
- package/dist/calcite/p-5322b333.system.entry.js +0 -5
- package/dist/calcite/p-5e6d76dc.entry.js +0 -5
- package/dist/calcite/p-777c833f.system.entry.js +0 -5
- package/dist/calcite/p-8711a0ae.system.entry.js +0 -5
- package/dist/calcite/p-89cdfa96.system.js +0 -5
- package/dist/calcite/p-8bc3e126.entry.js +0 -5
- package/dist/calcite/p-948aca0d.system.entry.js +0 -5
- package/dist/calcite/p-99ff3a2f.entry.js +0 -5
- package/dist/calcite/p-9fe349b9.entry.js +0 -5
- package/dist/calcite/p-a2cc027e.entry.js +0 -5
- package/dist/calcite/p-b42d730f.entry.js +0 -5
- package/dist/calcite/p-b4960d06.system.js +0 -5
- package/dist/calcite/p-bbe2337b.system.entry.js +0 -5
- package/dist/calcite/p-bbedf98c.entry.js +0 -5
- package/dist/calcite/p-be52c734.entry.js +0 -5
- package/dist/calcite/p-cb7b6425.entry.js +0 -5
- package/dist/calcite/p-d35e423d.js +0 -5
- package/dist/calcite/p-df9b4b76.entry.js +0 -5
- package/dist/calcite/p-e24b6c4a.system.entry.js +0 -5
- package/dist/calcite/p-e382c4e9.entry.js +0 -5
- package/dist/calcite/p-e40dd6fe.system.entry.js +0 -5
- package/dist/calcite/p-e5805bf1.entry.js +0 -5
- package/dist/calcite/p-eccb140e.entry.js +0 -5
- package/dist/calcite/p-f5bb39bb.js +0 -5
- package/dist/calcite/p-fb1da0f5.system.js +0 -5
- package/dist/cjs/form-00fb301c.js +0 -22
- package/dist/cjs/math-9d44163f.js +0 -9
- package/dist/esm/form-cee9f632.js +0 -20
- package/dist/esm/math-250d4476.js +0 -7
- package/dist/esm-es5/form-cee9f632.js +0 -5
- package/dist/esm-es5/index-66803519.js +0 -5
- package/dist/esm-es5/label-bb61bdef.js +0 -5
- package/dist/esm-es5/math-250d4476.js +0 -5
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
|
-
import { Component, Element, Event, h, Host,
|
|
5
|
+
import { Component, Element, Event, h, Host, Method, Prop } from "@stencil/core";
|
|
6
6
|
import { guid } from "../../utils/guid";
|
|
7
|
-
import {
|
|
8
|
-
import { hiddenInputStyle } from "../../utils/form";
|
|
7
|
+
import { HiddenFormInputSlot } from "../../utils/form";
|
|
9
8
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
9
|
+
import { connectForm, disconnectForm } from "../../utils/form";
|
|
10
10
|
export class CalciteCheckbox {
|
|
11
11
|
constructor() {
|
|
12
12
|
//--------------------------------------------------------------------------
|
|
@@ -29,8 +29,12 @@ export class CalciteCheckbox {
|
|
|
29
29
|
* https://css-tricks.com/indeterminate-checkboxes/
|
|
30
30
|
* */
|
|
31
31
|
this.indeterminate = false;
|
|
32
|
-
/**
|
|
33
|
-
|
|
32
|
+
/**
|
|
33
|
+
* When true, makes the component required for form-submission.
|
|
34
|
+
*
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
this.required = false;
|
|
34
38
|
/** specify the scale of the checkbox, defaults to m */
|
|
35
39
|
this.scale = "m";
|
|
36
40
|
//--------------------------------------------------------------------------
|
|
@@ -42,13 +46,6 @@ export class CalciteCheckbox {
|
|
|
42
46
|
this.indeterminatePath = "M13 8v1H3V8z";
|
|
43
47
|
//--------------------------------------------------------------------------
|
|
44
48
|
//
|
|
45
|
-
// State
|
|
46
|
-
//
|
|
47
|
-
//--------------------------------------------------------------------------
|
|
48
|
-
/** The focused state of the checkbox. */
|
|
49
|
-
this.focused = false;
|
|
50
|
-
//--------------------------------------------------------------------------
|
|
51
|
-
//
|
|
52
49
|
// Private Methods
|
|
53
50
|
//
|
|
54
51
|
//--------------------------------------------------------------------------
|
|
@@ -56,26 +53,34 @@ export class CalciteCheckbox {
|
|
|
56
53
|
this.toggle = () => {
|
|
57
54
|
if (!this.disabled) {
|
|
58
55
|
this.checked = !this.checked;
|
|
59
|
-
|
|
56
|
+
this.setFocus();
|
|
60
57
|
this.indeterminate = false;
|
|
61
58
|
this.calciteCheckboxChange.emit();
|
|
62
59
|
}
|
|
63
60
|
};
|
|
61
|
+
this.keyDownHandler = (event) => {
|
|
62
|
+
if (event.key === " " || event.key === "Enter") {
|
|
63
|
+
this.toggle();
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
64
67
|
this.clickHandler = () => {
|
|
65
68
|
this.toggle();
|
|
66
69
|
};
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
//--------------------------------------------------------------------------
|
|
71
|
+
//
|
|
72
|
+
// Event Listeners
|
|
73
|
+
//
|
|
74
|
+
//--------------------------------------------------------------------------
|
|
75
|
+
this.onToggleBlur = () => {
|
|
76
|
+
this.calciteInternalCheckboxBlur.emit(false);
|
|
77
|
+
};
|
|
78
|
+
this.onToggleFocus = () => {
|
|
79
|
+
this.calciteInternalCheckboxFocus.emit(true);
|
|
80
|
+
};
|
|
81
|
+
this.onLabelClick = () => {
|
|
82
|
+
this.toggle();
|
|
69
83
|
};
|
|
70
|
-
}
|
|
71
|
-
checkedWatcher(newChecked) {
|
|
72
|
-
this.input.checked = newChecked;
|
|
73
|
-
}
|
|
74
|
-
disabledChanged(disabled) {
|
|
75
|
-
this.input.disabled = disabled;
|
|
76
|
-
}
|
|
77
|
-
nameChanged(newName) {
|
|
78
|
-
this.input.name = newName;
|
|
79
84
|
}
|
|
80
85
|
//--------------------------------------------------------------------------
|
|
81
86
|
//
|
|
@@ -84,29 +89,8 @@ export class CalciteCheckbox {
|
|
|
84
89
|
//--------------------------------------------------------------------------
|
|
85
90
|
/** Sets focus on the component. */
|
|
86
91
|
async setFocus() {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
//--------------------------------------------------------------------------
|
|
90
|
-
//
|
|
91
|
-
// Event Listeners
|
|
92
|
-
//
|
|
93
|
-
//--------------------------------------------------------------------------
|
|
94
|
-
mouseenter() {
|
|
95
|
-
this.hovered = true;
|
|
96
|
-
}
|
|
97
|
-
mouseleave() {
|
|
98
|
-
this.hovered = false;
|
|
99
|
-
}
|
|
100
|
-
onInputBlur() {
|
|
101
|
-
this.focused = false;
|
|
102
|
-
this.calciteInternalCheckboxBlur.emit(false);
|
|
103
|
-
}
|
|
104
|
-
onInputFocus() {
|
|
105
|
-
this.focused = true;
|
|
106
|
-
this.calciteInternalCheckboxFocus.emit(true);
|
|
107
|
-
}
|
|
108
|
-
onLabelClick() {
|
|
109
|
-
this.toggle();
|
|
92
|
+
var _a;
|
|
93
|
+
(_a = this.toggleEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
110
94
|
}
|
|
111
95
|
//--------------------------------------------------------------------------
|
|
112
96
|
//
|
|
@@ -115,52 +99,25 @@ export class CalciteCheckbox {
|
|
|
115
99
|
//--------------------------------------------------------------------------
|
|
116
100
|
connectedCallback() {
|
|
117
101
|
this.guid = this.el.id || `calcite-checkbox-${guid()}`;
|
|
118
|
-
this.initialChecked = this.checked;
|
|
119
|
-
this.renderHiddenCheckboxInput();
|
|
120
|
-
const form = closestElementCrossShadowBoundary(this.el, "form");
|
|
121
|
-
if (form) {
|
|
122
|
-
form.addEventListener("reset", this.formResetHandler);
|
|
123
|
-
}
|
|
124
102
|
connectLabel(this);
|
|
125
|
-
|
|
126
|
-
componentDidLoad() {
|
|
127
|
-
this.input.setAttribute("aria-label", getLabelText(this));
|
|
103
|
+
connectForm(this);
|
|
128
104
|
}
|
|
129
105
|
disconnectedCallback() {
|
|
130
|
-
this.input.parentNode.removeChild(this.input);
|
|
131
|
-
const form = closestElementCrossShadowBoundary(this.el, "form");
|
|
132
|
-
if (form) {
|
|
133
|
-
form.removeEventListener("reset", this.formResetHandler);
|
|
134
|
-
}
|
|
135
106
|
disconnectLabel(this);
|
|
107
|
+
disconnectForm(this);
|
|
136
108
|
}
|
|
137
109
|
// --------------------------------------------------------------------------
|
|
138
110
|
//
|
|
139
111
|
// Render Methods
|
|
140
112
|
//
|
|
141
113
|
// --------------------------------------------------------------------------
|
|
142
|
-
renderHiddenCheckboxInput() {
|
|
143
|
-
this.input = document.createElement("input");
|
|
144
|
-
this.checked && this.input.setAttribute("checked", "");
|
|
145
|
-
this.input.disabled = this.disabled;
|
|
146
|
-
this.input.id = `${this.guid}-input`;
|
|
147
|
-
this.input.name = this.name;
|
|
148
|
-
this.input.onblur = this.onInputBlur.bind(this);
|
|
149
|
-
this.input.onfocus = this.onInputFocus.bind(this);
|
|
150
|
-
this.input.style.cssText = hiddenInputStyle;
|
|
151
|
-
this.input.type = "checkbox";
|
|
152
|
-
this.input.setAttribute("aria-label", getLabelText(this));
|
|
153
|
-
if (this.value) {
|
|
154
|
-
this.input.value = this.value != null ? this.value.toString() : "";
|
|
155
|
-
}
|
|
156
|
-
this.el.appendChild(this.input);
|
|
157
|
-
}
|
|
158
114
|
render() {
|
|
159
|
-
return (h(Host, { onClick: this.clickHandler },
|
|
160
|
-
h("div", { class:
|
|
115
|
+
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler },
|
|
116
|
+
h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: "toggle", onBlur: this.onToggleBlur, onFocus: this.onToggleFocus, ref: (toggleEl) => (this.toggleEl = toggleEl), role: "checkbox", tabIndex: 0 },
|
|
161
117
|
h("svg", { class: "check-svg", viewBox: "0 0 16 16" },
|
|
162
118
|
h("path", { d: this.getPath() })),
|
|
163
|
-
h("slot", null))
|
|
119
|
+
h("slot", null)),
|
|
120
|
+
h(HiddenFormInputSlot, { component: this })));
|
|
164
121
|
}
|
|
165
122
|
static get is() { return "calcite-checkbox"; }
|
|
166
123
|
static get encapsulation() { return "shadow"; }
|
|
@@ -284,22 +241,42 @@ export class CalciteCheckbox {
|
|
|
284
241
|
"reflect": false
|
|
285
242
|
},
|
|
286
243
|
"name": {
|
|
287
|
-
"type": "
|
|
244
|
+
"type": "any",
|
|
288
245
|
"mutable": false,
|
|
289
246
|
"complexType": {
|
|
290
|
-
"original": "
|
|
291
|
-
"resolved": "
|
|
247
|
+
"original": "any",
|
|
248
|
+
"resolved": "any",
|
|
292
249
|
"references": {}
|
|
293
250
|
},
|
|
294
251
|
"required": false,
|
|
295
|
-
"optional":
|
|
252
|
+
"optional": false,
|
|
296
253
|
"docs": {
|
|
297
254
|
"tags": [],
|
|
298
255
|
"text": "The name of the checkbox input"
|
|
299
256
|
},
|
|
300
257
|
"attribute": "name",
|
|
258
|
+
"reflect": true
|
|
259
|
+
},
|
|
260
|
+
"required": {
|
|
261
|
+
"type": "boolean",
|
|
262
|
+
"mutable": false,
|
|
263
|
+
"complexType": {
|
|
264
|
+
"original": "boolean",
|
|
265
|
+
"resolved": "boolean",
|
|
266
|
+
"references": {}
|
|
267
|
+
},
|
|
268
|
+
"required": false,
|
|
269
|
+
"optional": false,
|
|
270
|
+
"docs": {
|
|
271
|
+
"tags": [{
|
|
272
|
+
"name": "internal",
|
|
273
|
+
"text": undefined
|
|
274
|
+
}],
|
|
275
|
+
"text": "When true, makes the component required for form-submission."
|
|
276
|
+
},
|
|
277
|
+
"attribute": "required",
|
|
301
278
|
"reflect": true,
|
|
302
|
-
"defaultValue": "
|
|
279
|
+
"defaultValue": "false"
|
|
303
280
|
},
|
|
304
281
|
"scale": {
|
|
305
282
|
"type": "string",
|
|
@@ -333,7 +310,7 @@ export class CalciteCheckbox {
|
|
|
333
310
|
"references": {}
|
|
334
311
|
},
|
|
335
312
|
"required": false,
|
|
336
|
-
"optional":
|
|
313
|
+
"optional": false,
|
|
337
314
|
"docs": {
|
|
338
315
|
"tags": [],
|
|
339
316
|
"text": "The value of the checkbox input"
|
|
@@ -342,9 +319,6 @@ export class CalciteCheckbox {
|
|
|
342
319
|
"reflect": false
|
|
343
320
|
}
|
|
344
321
|
}; }
|
|
345
|
-
static get states() { return {
|
|
346
|
-
"focused": {}
|
|
347
|
-
}; }
|
|
348
322
|
static get events() { return [{
|
|
349
323
|
"method": "calciteInternalCheckboxBlur",
|
|
350
324
|
"name": "calciteInternalCheckboxBlur",
|
|
@@ -416,27 +390,4 @@ export class CalciteCheckbox {
|
|
|
416
390
|
}
|
|
417
391
|
}; }
|
|
418
392
|
static get elementRef() { return "el"; }
|
|
419
|
-
static get watchers() { return [{
|
|
420
|
-
"propName": "checked",
|
|
421
|
-
"methodName": "checkedWatcher"
|
|
422
|
-
}, {
|
|
423
|
-
"propName": "disabled",
|
|
424
|
-
"methodName": "disabledChanged"
|
|
425
|
-
}, {
|
|
426
|
-
"propName": "name",
|
|
427
|
-
"methodName": "nameChanged"
|
|
428
|
-
}]; }
|
|
429
|
-
static get listeners() { return [{
|
|
430
|
-
"name": "mouseenter",
|
|
431
|
-
"method": "mouseenter",
|
|
432
|
-
"target": undefined,
|
|
433
|
-
"capture": false,
|
|
434
|
-
"passive": true
|
|
435
|
-
}, {
|
|
436
|
-
"name": "mouseleave",
|
|
437
|
-
"method": "mouseleave",
|
|
438
|
-
"target": undefined,
|
|
439
|
-
"capture": false,
|
|
440
|
-
"passive": true
|
|
441
|
-
}]; }
|
|
442
393
|
}
|
|
@@ -140,9 +140,9 @@ export class CalciteColorPicker {
|
|
|
140
140
|
* @see [ColorValue](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-color-picker/interfaces.ts#L10)
|
|
141
141
|
*/
|
|
142
142
|
this.value = defaultValue;
|
|
143
|
-
this.colorUpdateLocked = false;
|
|
144
143
|
this.colorFieldAndSliderHovered = false;
|
|
145
144
|
this.hueThumbState = "idle";
|
|
145
|
+
this.internalColorUpdateContext = null;
|
|
146
146
|
this.mode = CSSColorMode.HEX;
|
|
147
147
|
this.shiftKeyChannelAdjustment = 0;
|
|
148
148
|
this.sliderThumbState = "idle";
|
|
@@ -452,7 +452,7 @@ export class CalciteColorPicker {
|
|
|
452
452
|
this.drawColorFieldAndSlider();
|
|
453
453
|
this.updateChannelsFromColor(color);
|
|
454
454
|
this.previousColor = oldColor;
|
|
455
|
-
if (this.
|
|
455
|
+
if (this.internalColorUpdateContext) {
|
|
456
456
|
return;
|
|
457
457
|
}
|
|
458
458
|
this.value = this.toValue(color);
|
|
@@ -479,7 +479,10 @@ export class CalciteColorPicker {
|
|
|
479
479
|
this.setMode(nextMode);
|
|
480
480
|
}
|
|
481
481
|
const dragging = this.sliderThumbState === "drag" || this.hueThumbState === "drag";
|
|
482
|
-
if (this.
|
|
482
|
+
if (this.internalColorUpdateContext) {
|
|
483
|
+
if (this.internalColorUpdateContext === "initial") {
|
|
484
|
+
return;
|
|
485
|
+
}
|
|
483
486
|
this.calciteColorPickerInput.emit();
|
|
484
487
|
if (!dragging) {
|
|
485
488
|
this.calciteColorPickerChange.emit();
|
|
@@ -550,15 +553,15 @@ export class CalciteColorPicker {
|
|
|
550
553
|
}
|
|
551
554
|
connectedCallback() {
|
|
552
555
|
const { allowEmpty, color, format, value } = this;
|
|
553
|
-
const
|
|
556
|
+
const willSetNoColor = allowEmpty && !value;
|
|
554
557
|
const parsedMode = parseMode(value);
|
|
555
|
-
const valueIsCompatible = (format === "auto" && parsedMode) || format === parsedMode;
|
|
556
|
-
const initialColor =
|
|
558
|
+
const valueIsCompatible = willSetNoColor || (format === "auto" && parsedMode) || format === parsedMode;
|
|
559
|
+
const initialColor = willSetNoColor ? null : valueIsCompatible ? Color(value) : color;
|
|
557
560
|
if (!valueIsCompatible) {
|
|
558
561
|
this.showIncompatibleColorWarning(value, format);
|
|
559
562
|
}
|
|
560
563
|
this.setMode(format);
|
|
561
|
-
this.internalColorSet(initialColor, false);
|
|
564
|
+
this.internalColorSet(initialColor, false, "initial");
|
|
562
565
|
this.updateDimensions(this.scale);
|
|
563
566
|
}
|
|
564
567
|
disconnectedCallback() {
|
|
@@ -644,14 +647,14 @@ export class CalciteColorPicker {
|
|
|
644
647
|
}
|
|
645
648
|
return "none";
|
|
646
649
|
}
|
|
647
|
-
internalColorSet(color, skipEqual = true) {
|
|
650
|
+
internalColorSet(color, skipEqual = true, context = "internal") {
|
|
648
651
|
if (skipEqual && colorEqual(color, this.color)) {
|
|
649
652
|
return;
|
|
650
653
|
}
|
|
651
|
-
this.
|
|
654
|
+
this.internalColorUpdateContext = context;
|
|
652
655
|
this.color = color;
|
|
653
656
|
this.value = this.toValue(color);
|
|
654
|
-
this.
|
|
657
|
+
this.internalColorUpdateContext = null;
|
|
655
658
|
}
|
|
656
659
|
toValue(color, format = this.mode) {
|
|
657
660
|
if (!color) {
|
package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js
CHANGED
|
@@ -41,8 +41,8 @@ export class CalciteColorPickerHexInput {
|
|
|
41
41
|
* The hex value.
|
|
42
42
|
*/
|
|
43
43
|
this.value = normalizeHex(DEFAULT_COLOR.hex());
|
|
44
|
-
this.onCalciteInputBlur = (
|
|
45
|
-
const node =
|
|
44
|
+
this.onCalciteInputBlur = () => {
|
|
45
|
+
const node = this.inputNode;
|
|
46
46
|
const inputValue = node.value;
|
|
47
47
|
const hex = `#${inputValue}`;
|
|
48
48
|
const willClearValue = this.allowEmpty && !inputValue;
|
|
@@ -55,9 +55,8 @@ export class CalciteColorPickerHexInput {
|
|
|
55
55
|
? ""
|
|
56
56
|
: this.formatForInternalInput(rgbToHex(this.internalColor.object()));
|
|
57
57
|
};
|
|
58
|
-
this.onInputChange = (
|
|
59
|
-
const
|
|
60
|
-
const inputValue = node.value;
|
|
58
|
+
this.onInputChange = () => {
|
|
59
|
+
const inputValue = this.inputNode.value;
|
|
61
60
|
let value;
|
|
62
61
|
if (inputValue) {
|
|
63
62
|
const hex = inputValue;
|
|
@@ -133,8 +132,12 @@ export class CalciteColorPickerHexInput {
|
|
|
133
132
|
// using @Listen as a workaround for VDOM listener not firing
|
|
134
133
|
onInputKeyDown(event) {
|
|
135
134
|
const { altKey, ctrlKey, metaKey, shiftKey } = event;
|
|
136
|
-
const {
|
|
135
|
+
const { internalColor, value } = this;
|
|
137
136
|
const key = getKey(event.key);
|
|
137
|
+
if (key === "Tab" || key === "Enter") {
|
|
138
|
+
this.onInputChange();
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
138
141
|
const isNudgeKey = key === "ArrowDown" || key === "ArrowUp";
|
|
139
142
|
if (isNudgeKey) {
|
|
140
143
|
if (!value) {
|
|
@@ -149,16 +152,9 @@ export class CalciteColorPickerHexInput {
|
|
|
149
152
|
return;
|
|
150
153
|
}
|
|
151
154
|
const withModifiers = altKey || ctrlKey || metaKey;
|
|
152
|
-
const exceededHexLength = inputNode.value.length >= 6;
|
|
153
|
-
const focusedElement = el.shadowRoot.activeElement;
|
|
154
|
-
const hasTextSelection =
|
|
155
|
-
// can't use window.getSelection() because of FF bug: https://bugzilla.mozilla.org/show_bug.cgi?id=85686
|
|
156
|
-
focusedElement.selectionStart != focusedElement.selectionEnd;
|
|
157
155
|
const singleChar = key.length === 1;
|
|
158
156
|
const validHexChar = hexChar.test(key);
|
|
159
|
-
if (singleChar &&
|
|
160
|
-
!withModifiers &&
|
|
161
|
-
(!validHexChar || (!hasTextSelection && exceededHexLength))) {
|
|
157
|
+
if (singleChar && !withModifiers && !validHexChar) {
|
|
162
158
|
event.preventDefault();
|
|
163
159
|
}
|
|
164
160
|
}
|
|
@@ -172,7 +168,7 @@ export class CalciteColorPickerHexInput {
|
|
|
172
168
|
const hexInputValue = this.formatForInternalInput(value);
|
|
173
169
|
const elementDir = getElementDir(el);
|
|
174
170
|
return (h("div", { class: CSS.container },
|
|
175
|
-
h("calcite-input", { class: CSS.input, dir: elementDir, label: intlHex, onCalciteInputBlur: this.onCalciteInputBlur,
|
|
171
|
+
h("calcite-input", { class: CSS.input, dir: elementDir, label: intlHex, maxLength: 6, onCalciteInputBlur: this.onCalciteInputBlur, onCalciteInputChange: this.onInputChange, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }),
|
|
176
172
|
hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
177
173
|
}
|
|
178
174
|
//--------------------------------------------------------------------------
|
|
@@ -350,4 +350,19 @@
|
|
|
350
350
|
|
|
351
351
|
.item {
|
|
352
352
|
display: block;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
::slotted(input[slot=hidden-form-input]) {
|
|
356
|
+
bottom: 0 !important;
|
|
357
|
+
left: 0 !important;
|
|
358
|
+
margin: 0 !important;
|
|
359
|
+
opacity: 0 !important;
|
|
360
|
+
outline: none !important;
|
|
361
|
+
padding: 0 !important;
|
|
362
|
+
position: absolute !important;
|
|
363
|
+
right: 0 !important;
|
|
364
|
+
top: 0 !important;
|
|
365
|
+
transform: none !important;
|
|
366
|
+
-webkit-appearance: none !important;
|
|
367
|
+
z-index: -1 !important;
|
|
353
368
|
}
|