@esri/calcite-components 1.0.0-next.294 → 1.0.0-next.295
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-8007a0b4.system.entry.js → p-143cffd9.system.entry.js} +1 -1
- 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-26efaed7.entry.js +5 -0
- 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-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-3833285b.system.entry.js +5 -0
- package/dist/calcite/{p-e638ff0e.entry.js → p-396efb80.entry.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-41023be5.system.entry.js +5 -0
- package/dist/calcite/{p-49d5ee42.system.entry.js → p-46285b9c.system.entry.js} +1 -1
- 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-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-2418cceb.entry.js → p-70efa39d.entry.js} +1 -1
- 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-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-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-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-b9fa225e.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-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-dd5ff164.entry.js +5 -0
- 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-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-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-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-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-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/calcite/{p-5322b333.system.entry.js → p-fcb6db39.system.entry.js} +1 -1
- 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 +25 -26
- 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 +12 -4
- 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 +75 -56
- 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 +2 -2
- 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 +3 -3
- 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/{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 +104 -54
- 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-panel/calcite-panel.css +2 -2
- 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/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 +79 -57
- package/dist/components/calcite-panel.js +1 -1
- 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/custom-elements/index.js +785 -441
- 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 +25 -26
- 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 +12 -4
- 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 +76 -57
- 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 +2 -2
- 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 +3 -3
- 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/{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 +1 -1
- 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 +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-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/{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-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/hydrate/index.js +811 -451
- 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-17e666d6.system.entry.js +0 -5
- package/dist/calcite/p-22ecf6df.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-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/esm/form-cee9f632.js +0 -20
- 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
|
@@ -156,8 +156,8 @@ let CalciteColorPickerHexInput = class extends HTMLElement {
|
|
|
156
156
|
* The hex value.
|
|
157
157
|
*/
|
|
158
158
|
this.value = normalizeHex(DEFAULT_COLOR.hex());
|
|
159
|
-
this.onCalciteInputBlur = (
|
|
160
|
-
const node =
|
|
159
|
+
this.onCalciteInputBlur = () => {
|
|
160
|
+
const node = this.inputNode;
|
|
161
161
|
const inputValue = node.value;
|
|
162
162
|
const hex = `#${inputValue}`;
|
|
163
163
|
const willClearValue = this.allowEmpty && !inputValue;
|
|
@@ -170,9 +170,8 @@ let CalciteColorPickerHexInput = class extends HTMLElement {
|
|
|
170
170
|
? ""
|
|
171
171
|
: this.formatForInternalInput(rgbToHex(this.internalColor.object()));
|
|
172
172
|
};
|
|
173
|
-
this.onInputChange = (
|
|
174
|
-
const
|
|
175
|
-
const inputValue = node.value;
|
|
173
|
+
this.onInputChange = () => {
|
|
174
|
+
const inputValue = this.inputNode.value;
|
|
176
175
|
let value;
|
|
177
176
|
if (inputValue) {
|
|
178
177
|
const hex = inputValue;
|
|
@@ -248,8 +247,12 @@ let CalciteColorPickerHexInput = class extends HTMLElement {
|
|
|
248
247
|
// using @Listen as a workaround for VDOM listener not firing
|
|
249
248
|
onInputKeyDown(event) {
|
|
250
249
|
const { altKey, ctrlKey, metaKey, shiftKey } = event;
|
|
251
|
-
const {
|
|
250
|
+
const { internalColor, value } = this;
|
|
252
251
|
const key = getKey(event.key);
|
|
252
|
+
if (key === "Tab" || key === "Enter") {
|
|
253
|
+
this.onInputChange();
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
253
256
|
const isNudgeKey = key === "ArrowDown" || key === "ArrowUp";
|
|
254
257
|
if (isNudgeKey) {
|
|
255
258
|
if (!value) {
|
|
@@ -264,16 +267,9 @@ let CalciteColorPickerHexInput = class extends HTMLElement {
|
|
|
264
267
|
return;
|
|
265
268
|
}
|
|
266
269
|
const withModifiers = altKey || ctrlKey || metaKey;
|
|
267
|
-
const exceededHexLength = inputNode.value.length >= 6;
|
|
268
|
-
const focusedElement = el.shadowRoot.activeElement;
|
|
269
|
-
const hasTextSelection =
|
|
270
|
-
// can't use window.getSelection() because of FF bug: https://bugzilla.mozilla.org/show_bug.cgi?id=85686
|
|
271
|
-
focusedElement.selectionStart != focusedElement.selectionEnd;
|
|
272
270
|
const singleChar = key.length === 1;
|
|
273
271
|
const validHexChar = hexChar.test(key);
|
|
274
|
-
if (singleChar &&
|
|
275
|
-
!withModifiers &&
|
|
276
|
-
(!validHexChar || (!hasTextSelection && exceededHexLength))) {
|
|
272
|
+
if (singleChar && !withModifiers && !validHexChar) {
|
|
277
273
|
event.preventDefault();
|
|
278
274
|
}
|
|
279
275
|
}
|
|
@@ -286,7 +282,7 @@ let CalciteColorPickerHexInput = class extends HTMLElement {
|
|
|
286
282
|
const { el, intlHex, value } = this;
|
|
287
283
|
const hexInputValue = this.formatForInternalInput(value);
|
|
288
284
|
const elementDir = getElementDir(el);
|
|
289
|
-
return (h("div", { class: CSS.container }, h("calcite-input", { class: CSS.input, dir: elementDir, label: intlHex, onCalciteInputBlur: this.onCalciteInputBlur,
|
|
285
|
+
return (h("div", { class: CSS.container }, 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 }), hexInputValue ? (h("calcite-color-picker-swatch", { active: true, class: CSS.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
290
286
|
}
|
|
291
287
|
//--------------------------------------------------------------------------
|
|
292
288
|
//
|
|
@@ -221,9 +221,9 @@ let CalciteColorPicker$1 = class extends HTMLElement {
|
|
|
221
221
|
* @see [ColorValue](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-color-picker/interfaces.ts#L10)
|
|
222
222
|
*/
|
|
223
223
|
this.value = defaultValue;
|
|
224
|
-
this.colorUpdateLocked = false;
|
|
225
224
|
this.colorFieldAndSliderHovered = false;
|
|
226
225
|
this.hueThumbState = "idle";
|
|
226
|
+
this.internalColorUpdateContext = null;
|
|
227
227
|
this.mode = CSSColorMode.HEX;
|
|
228
228
|
this.shiftKeyChannelAdjustment = 0;
|
|
229
229
|
this.sliderThumbState = "idle";
|
|
@@ -532,7 +532,7 @@ let CalciteColorPicker$1 = class extends HTMLElement {
|
|
|
532
532
|
this.drawColorFieldAndSlider();
|
|
533
533
|
this.updateChannelsFromColor(color);
|
|
534
534
|
this.previousColor = oldColor;
|
|
535
|
-
if (this.
|
|
535
|
+
if (this.internalColorUpdateContext) {
|
|
536
536
|
return;
|
|
537
537
|
}
|
|
538
538
|
this.value = this.toValue(color);
|
|
@@ -559,7 +559,10 @@ let CalciteColorPicker$1 = class extends HTMLElement {
|
|
|
559
559
|
this.setMode(nextMode);
|
|
560
560
|
}
|
|
561
561
|
const dragging = this.sliderThumbState === "drag" || this.hueThumbState === "drag";
|
|
562
|
-
if (this.
|
|
562
|
+
if (this.internalColorUpdateContext) {
|
|
563
|
+
if (this.internalColorUpdateContext === "initial") {
|
|
564
|
+
return;
|
|
565
|
+
}
|
|
563
566
|
this.calciteColorPickerInput.emit();
|
|
564
567
|
if (!dragging) {
|
|
565
568
|
this.calciteColorPickerChange.emit();
|
|
@@ -630,15 +633,15 @@ let CalciteColorPicker$1 = class extends HTMLElement {
|
|
|
630
633
|
}
|
|
631
634
|
connectedCallback() {
|
|
632
635
|
const { allowEmpty, color: color$1, format, value } = this;
|
|
633
|
-
const
|
|
636
|
+
const willSetNoColor = allowEmpty && !value;
|
|
634
637
|
const parsedMode = parseMode(value);
|
|
635
|
-
const valueIsCompatible = (format === "auto" && parsedMode) || format === parsedMode;
|
|
636
|
-
const initialColor =
|
|
638
|
+
const valueIsCompatible = willSetNoColor || (format === "auto" && parsedMode) || format === parsedMode;
|
|
639
|
+
const initialColor = willSetNoColor ? null : valueIsCompatible ? color(value) : color$1;
|
|
637
640
|
if (!valueIsCompatible) {
|
|
638
641
|
this.showIncompatibleColorWarning(value, format);
|
|
639
642
|
}
|
|
640
643
|
this.setMode(format);
|
|
641
|
-
this.internalColorSet(initialColor, false);
|
|
644
|
+
this.internalColorSet(initialColor, false, "initial");
|
|
642
645
|
this.updateDimensions(this.scale);
|
|
643
646
|
}
|
|
644
647
|
disconnectedCallback() {
|
|
@@ -703,14 +706,14 @@ let CalciteColorPicker$1 = class extends HTMLElement {
|
|
|
703
706
|
}
|
|
704
707
|
return "none";
|
|
705
708
|
}
|
|
706
|
-
internalColorSet(color, skipEqual = true) {
|
|
709
|
+
internalColorSet(color, skipEqual = true, context = "internal") {
|
|
707
710
|
if (skipEqual && colorEqual(color, this.color)) {
|
|
708
711
|
return;
|
|
709
712
|
}
|
|
710
|
-
this.
|
|
713
|
+
this.internalColorUpdateContext = context;
|
|
711
714
|
this.color = color;
|
|
712
715
|
this.value = this.toValue(color);
|
|
713
|
-
this.
|
|
716
|
+
this.internalColorUpdateContext = null;
|
|
714
717
|
}
|
|
715
718
|
toValue(color, format = this.mode) {
|
|
716
719
|
if (!color) {
|
|
@@ -11,6 +11,7 @@ import { u as updatePopper, c as createPopper, C as CSS } from './popper.js';
|
|
|
11
11
|
import { g as guid } from './guid.js';
|
|
12
12
|
import { C as ComboboxChildSelector, g as getItemAncestors, a as getItemChildren, h as hasActiveChildren, b as ComboboxItem, c as ComboboxItemGroup, d as ComboboxDefaultPlacement } from './utils2.js';
|
|
13
13
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label.js';
|
|
14
|
+
import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, H as HiddenFormInputSlot } from './form.js';
|
|
14
15
|
import { c as createObserver } from './observers.js';
|
|
15
16
|
import { d as defineCustomElement$3 } from './calcite-chip2.js';
|
|
16
17
|
import { d as defineCustomElement$2 } from './calcite-icon2.js';
|
|
@@ -154,7 +155,7 @@ const filter = (data, value) => {
|
|
|
154
155
|
return result;
|
|
155
156
|
};
|
|
156
157
|
|
|
157
|
-
const calciteComboboxCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;position:relative}:host([disabled]){pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);padding:0 var(--calcite-combobox-item-spacing-unit-l) 0 var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding:0 var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input{-ms-flex-positive:1;flex-grow:1;font-family:inherit;padding:0;background-color:transparent;border-style:none;color:var(--calcite-ui-text-1);-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:inherit;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-width:120px;margin-bottom:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-bottom:0;margin-top:0;padding:0}.wrapper--active .input-single{cursor:text}.input--hidden{width:0;min-width:0;opacity:0;pointer-events:none}.input--icon{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.label{padding:0;display:-ms-flexbox;display:flex;font-weight:var(--calcite-font-weight-normal);-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-top:0;padding-bottom:0;padding-left:var(--calcite-combobox-item-spacing-unit-l);padding-right:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:1rem}.icon-end{-ms-flex:none;flex:none}.popper-container{width:100%;display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.popper-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.popper-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.popper-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.popper-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.popper-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.popper-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.popper-container--active{pointer-events:initial;visibility:visible}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{overflow-y:auto;max-height:100vh;background-color:var(--calcite-ui-foreground-1);width:var(--calcite-dropdown-width)}.list{display:block;margin:0;padding:0}.list--hide{height:0;overflow:hidden}.chip{margin:calc(var(--calcite-combobox-item-spacing-unit-s) / 2) var(--calcite-combobox-item-spacing-unit-s) calc(var(--calcite-combobox-item-spacing-unit-s) / 2) 0;max-width:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.chip:last-child{margin-right:0}.chip--rtl{margin-right:unset;margin-left:var(--calcite-combobox-item-spacing-unit-l)}.chip--rtl:last-child{margin-left:0}.item{display:block}";
|
|
158
|
+
const calciteComboboxCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block;position:relative}:host([disabled]){pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);padding:0 var(--calcite-combobox-item-spacing-unit-l) 0 var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding:0 var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input{-ms-flex-positive:1;flex-grow:1;font-family:inherit;padding:0;background-color:transparent;border-style:none;color:var(--calcite-ui-text-1);-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:inherit;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-width:120px;margin-bottom:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-bottom:0;margin-top:0;padding:0}.wrapper--active .input-single{cursor:text}.input--hidden{width:0;min-width:0;opacity:0;pointer-events:none}.input--icon{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.label{padding:0;display:-ms-flexbox;display:flex;font-weight:var(--calcite-font-weight-normal);-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-top:0;padding-bottom:0;padding-left:var(--calcite-combobox-item-spacing-unit-l);padding-right:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:1rem}.icon-end{-ms-flex:none;flex:none}.popper-container{width:100%;display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.popper-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.popper-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.popper-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.popper-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.popper-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.popper-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.popper-container--active{pointer-events:initial;visibility:visible}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{overflow-y:auto;max-height:100vh;background-color:var(--calcite-ui-foreground-1);width:var(--calcite-dropdown-width)}.list{display:block;margin:0;padding:0}.list--hide{height:0;overflow:hidden}.chip{margin:calc(var(--calcite-combobox-item-spacing-unit-s) / 2) var(--calcite-combobox-item-spacing-unit-s) calc(var(--calcite-combobox-item-spacing-unit-s) / 2) 0;max-width:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.chip:last-child{margin-right:0}.chip--rtl{margin-right:unset;margin-left:var(--calcite-combobox-item-spacing-unit-l)}.chip--rtl:last-child{margin-left:0}.item{display:block}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
158
159
|
|
|
159
160
|
const isGroup = (el) => el.tagName === ComboboxItemGroup;
|
|
160
161
|
let CalciteCombobox$1 = class extends HTMLElement {
|
|
@@ -181,6 +182,12 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
181
182
|
this.maxItems = 0;
|
|
182
183
|
/** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */
|
|
183
184
|
this.overlayPositioning = "absolute";
|
|
185
|
+
/**
|
|
186
|
+
* When true, makes the component required for form-submission.
|
|
187
|
+
*
|
|
188
|
+
* @internal
|
|
189
|
+
*/
|
|
190
|
+
this.required = false;
|
|
184
191
|
/** specify the selection mode
|
|
185
192
|
* - multi: allow any number of selected items (default)
|
|
186
193
|
* - single: only one selection)
|
|
@@ -189,6 +196,14 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
189
196
|
this.selectionMode = "multi";
|
|
190
197
|
/** Specify the scale of the combobox, defaults to m */
|
|
191
198
|
this.scale = "m";
|
|
199
|
+
/** The value(s) of the selectedItem(s) */
|
|
200
|
+
this.value = null;
|
|
201
|
+
//--------------------------------------------------------------------------
|
|
202
|
+
//
|
|
203
|
+
// Private State/Props
|
|
204
|
+
//
|
|
205
|
+
//--------------------------------------------------------------------------
|
|
206
|
+
this.internalValueChangeFlag = false;
|
|
192
207
|
this.items = [];
|
|
193
208
|
this.groupItems = [];
|
|
194
209
|
this.selectedItems = [];
|
|
@@ -207,6 +222,18 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
207
222
|
this.inputHeight = 0;
|
|
208
223
|
this.ignoreSelectedEventsFlag = false;
|
|
209
224
|
this.activeTransitionProp = "opacity";
|
|
225
|
+
// --------------------------------------------------------------------------
|
|
226
|
+
//
|
|
227
|
+
// Private Methods
|
|
228
|
+
//
|
|
229
|
+
// --------------------------------------------------------------------------
|
|
230
|
+
this.getValue = () => {
|
|
231
|
+
const items = this.selectedItems.map((item) => item === null || item === void 0 ? void 0 : item.value.toString());
|
|
232
|
+
return (items === null || items === void 0 ? void 0 : items.length) ? (items.length > 1 ? items : items[0]) : "";
|
|
233
|
+
};
|
|
234
|
+
this.onLabelClick = () => {
|
|
235
|
+
this.setFocus();
|
|
236
|
+
};
|
|
210
237
|
this.keydownHandler = (event) => {
|
|
211
238
|
const key = getKey(event.key, getElementDir(this.el));
|
|
212
239
|
switch (key) {
|
|
@@ -301,7 +328,10 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
301
328
|
}
|
|
302
329
|
this.calciteComboboxChipDismiss.emit(event.detail);
|
|
303
330
|
};
|
|
304
|
-
this.setFocusClick = () => {
|
|
331
|
+
this.setFocusClick = (event) => {
|
|
332
|
+
if (event.composedPath().some((node) => node.tagName === "CALCITE-CHIP")) {
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
305
335
|
this.setFocus();
|
|
306
336
|
};
|
|
307
337
|
this.setInactiveIfNotContained = (event) => {
|
|
@@ -389,8 +419,9 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
389
419
|
}
|
|
390
420
|
};
|
|
391
421
|
this.comboboxFocusHandler = () => {
|
|
422
|
+
var _a;
|
|
392
423
|
this.active = true;
|
|
393
|
-
this.textInput.focus();
|
|
424
|
+
(_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
394
425
|
};
|
|
395
426
|
this.comboboxBlurHandler = (event) => {
|
|
396
427
|
this.setInactiveIfNotContained(event);
|
|
@@ -417,6 +448,21 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
417
448
|
maxItemsHandler() {
|
|
418
449
|
this.setMaxScrollerHeight();
|
|
419
450
|
}
|
|
451
|
+
valueHandler(value) {
|
|
452
|
+
if (!this.internalValueChangeFlag) {
|
|
453
|
+
const items = this.getItems();
|
|
454
|
+
if (Array.isArray(value)) {
|
|
455
|
+
items.forEach((item) => (item.selected = value.includes(item.value)));
|
|
456
|
+
}
|
|
457
|
+
else if (value) {
|
|
458
|
+
items.forEach((item) => (item.selected = value === item.value));
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
items.forEach((item) => (item.selected = false));
|
|
462
|
+
}
|
|
463
|
+
this.updateItems();
|
|
464
|
+
}
|
|
465
|
+
}
|
|
420
466
|
//--------------------------------------------------------------------------
|
|
421
467
|
//
|
|
422
468
|
// Event Listeners
|
|
@@ -465,13 +511,20 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
465
511
|
// --------------------------------------------------------------------------
|
|
466
512
|
connectedCallback() {
|
|
467
513
|
var _a;
|
|
514
|
+
this.internalValueChangeFlag = true;
|
|
515
|
+
this.value = this.getValue();
|
|
516
|
+
this.internalValueChangeFlag = false;
|
|
468
517
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
469
518
|
this.createPopper();
|
|
470
519
|
connectLabel(this);
|
|
520
|
+
connectForm(this);
|
|
471
521
|
}
|
|
472
522
|
componentWillLoad() {
|
|
473
523
|
this.updateItems();
|
|
474
524
|
}
|
|
525
|
+
componentDidLoad() {
|
|
526
|
+
afterConnectDefaultValueSet(this, this.getValue());
|
|
527
|
+
}
|
|
475
528
|
componentDidRender() {
|
|
476
529
|
if (this.el.offsetHeight !== this.inputHeight) {
|
|
477
530
|
this.reposition();
|
|
@@ -483,19 +536,17 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
483
536
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
484
537
|
this.destroyPopper();
|
|
485
538
|
disconnectLabel(this);
|
|
539
|
+
disconnectForm(this);
|
|
540
|
+
}
|
|
541
|
+
selectedItemsHandler() {
|
|
542
|
+
this.internalValueChangeFlag = true;
|
|
543
|
+
this.value = this.getValue();
|
|
544
|
+
this.internalValueChangeFlag = false;
|
|
486
545
|
}
|
|
487
546
|
/** when search text is cleared, reset active to */
|
|
488
547
|
textHandler() {
|
|
489
548
|
this.updateActiveItemIndex(-1);
|
|
490
549
|
}
|
|
491
|
-
// --------------------------------------------------------------------------
|
|
492
|
-
//
|
|
493
|
-
// Private Methods
|
|
494
|
-
//
|
|
495
|
-
// --------------------------------------------------------------------------
|
|
496
|
-
onLabelClick() {
|
|
497
|
-
this.setFocus();
|
|
498
|
-
}
|
|
499
550
|
getModifiers() {
|
|
500
551
|
const flipModifier = {
|
|
501
552
|
name: "flip",
|
|
@@ -543,9 +594,11 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
543
594
|
calculateSingleItemHeight(item) {
|
|
544
595
|
let height = item.offsetHeight;
|
|
545
596
|
// if item has children items, don't count their height twice
|
|
546
|
-
const children = item.querySelectorAll(ComboboxChildSelector);
|
|
547
|
-
children
|
|
548
|
-
|
|
597
|
+
const children = Array.from(item.querySelectorAll(ComboboxChildSelector));
|
|
598
|
+
children
|
|
599
|
+
.map((child) => child === null || child === void 0 ? void 0 : child.offsetHeight)
|
|
600
|
+
.forEach((offsetHeight) => {
|
|
601
|
+
height -= offsetHeight;
|
|
549
602
|
});
|
|
550
603
|
return height;
|
|
551
604
|
}
|
|
@@ -563,16 +616,17 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
563
616
|
this.emitCalciteLookupChange();
|
|
564
617
|
this.emitComboboxChange();
|
|
565
618
|
this.resetText();
|
|
566
|
-
this.textInput.focus();
|
|
567
619
|
this.filterItems("");
|
|
568
620
|
}
|
|
569
621
|
else {
|
|
570
622
|
this.ignoreSelectedEventsFlag = true;
|
|
571
|
-
this.items.forEach((el) => (el.selected = el === item));
|
|
623
|
+
this.items.forEach((el) => (el.selected = el === item ? value : false));
|
|
572
624
|
this.ignoreSelectedEventsFlag = false;
|
|
573
625
|
this.selectedItems = this.getSelectedItems();
|
|
574
626
|
this.emitComboboxChange();
|
|
575
|
-
this.textInput
|
|
627
|
+
if (this.textInput) {
|
|
628
|
+
this.textInput.value = item.textLabel;
|
|
629
|
+
}
|
|
576
630
|
this.active = false;
|
|
577
631
|
this.updateActiveItemIndex(-1);
|
|
578
632
|
this.resetText();
|
|
@@ -629,7 +683,9 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
629
683
|
return this.selectionMode === "single" && this.items.some((item) => item.icon);
|
|
630
684
|
}
|
|
631
685
|
resetText() {
|
|
632
|
-
this.textInput
|
|
686
|
+
if (this.textInput) {
|
|
687
|
+
this.textInput.value = "";
|
|
688
|
+
}
|
|
633
689
|
this.text = "";
|
|
634
690
|
}
|
|
635
691
|
getItems() {
|
|
@@ -717,6 +773,7 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
717
773
|
}
|
|
718
774
|
}
|
|
719
775
|
updateActiveItemIndex(index) {
|
|
776
|
+
var _a;
|
|
720
777
|
this.activeItemIndex = index;
|
|
721
778
|
let activeDescendant = null;
|
|
722
779
|
this.visibleItems.forEach((el, i) => {
|
|
@@ -731,7 +788,7 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
731
788
|
this.activeDescendant = activeDescendant;
|
|
732
789
|
if (this.activeItemIndex > -1) {
|
|
733
790
|
this.activeChipIndex = -1;
|
|
734
|
-
this.textInput.focus();
|
|
791
|
+
(_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
735
792
|
}
|
|
736
793
|
}
|
|
737
794
|
isMulti() {
|
|
@@ -808,12 +865,14 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
808
865
|
wrapper: true,
|
|
809
866
|
"wrapper--single": single || !this.selectedItems.length,
|
|
810
867
|
"wrapper--active": open
|
|
811
|
-
}, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" }, h("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), h("label", { class: "screen-readers-only", htmlFor: `${guid}-input`, id: labelId }, label), this.renderInput()), this.renderIconEnd()), h("ul", { "aria-labelledby": labelId, "aria-multiselectable": "true", class: "screen-readers-only", id: guid, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderPopperContainer()));
|
|
868
|
+
}, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" }, h("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), h("label", { class: "screen-readers-only", htmlFor: `${guid}-input`, id: labelId }, label), this.renderInput()), this.renderIconEnd()), h("ul", { "aria-labelledby": labelId, "aria-multiselectable": "true", class: "screen-readers-only", id: guid, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderPopperContainer(), h(HiddenFormInputSlot, { component: this })));
|
|
812
869
|
}
|
|
813
870
|
get el() { return this; }
|
|
814
871
|
static get watchers() { return {
|
|
815
872
|
"active": ["activeHandler"],
|
|
816
873
|
"maxItems": ["maxItemsHandler"],
|
|
874
|
+
"value": ["valueHandler"],
|
|
875
|
+
"selectedItems": ["selectedItemsHandler"],
|
|
817
876
|
"text": ["textHandler"]
|
|
818
877
|
}; }
|
|
819
878
|
static get style() { return calciteComboboxCss; }
|
|
@@ -824,10 +883,13 @@ CalciteCombobox$1 = /*@__PURE__*/ proxyCustomElement(CalciteCombobox$1, [1, "cal
|
|
|
824
883
|
"label": [1],
|
|
825
884
|
"placeholder": [1],
|
|
826
885
|
"maxItems": [2, "max-items"],
|
|
886
|
+
"name": [513],
|
|
827
887
|
"allowCustomValues": [4, "allow-custom-values"],
|
|
828
888
|
"overlayPositioning": [1, "overlay-positioning"],
|
|
889
|
+
"required": [4],
|
|
829
890
|
"selectionMode": [513, "selection-mode"],
|
|
830
891
|
"scale": [513],
|
|
892
|
+
"value": [1025],
|
|
831
893
|
"items": [32],
|
|
832
894
|
"groupItems": [32],
|
|
833
895
|
"selectedItems": [32],
|
|
@@ -206,7 +206,9 @@ let CalciteDatePicker = class extends HTMLElement {
|
|
|
206
206
|
*/
|
|
207
207
|
this.reset = () => {
|
|
208
208
|
var _a, _b, _c, _d, _e, _f;
|
|
209
|
-
if (
|
|
209
|
+
if (!Array.isArray(this.valueAsDate) &&
|
|
210
|
+
this.valueAsDate &&
|
|
211
|
+
((_a = this.valueAsDate) === null || _a === void 0 ? void 0 : _a.getTime()) !== ((_b = this.activeDate) === null || _b === void 0 ? void 0 : _b.getTime())) {
|
|
210
212
|
this.activeDate = new Date(this.valueAsDate);
|
|
211
213
|
}
|
|
212
214
|
if (this.startAsDate && ((_c = this.startAsDate) === null || _c === void 0 ? void 0 : _c.getTime()) !== ((_d = this.activeStartDate) === null || _d === void 0 ? void 0 : _d.getTime())) {
|
|
@@ -275,8 +277,10 @@ let CalciteDatePicker = class extends HTMLElement {
|
|
|
275
277
|
};
|
|
276
278
|
}
|
|
277
279
|
handleValueAsDate(date) {
|
|
278
|
-
this.activeDate
|
|
279
|
-
|
|
280
|
+
if (!Array.isArray(date) && date && date !== this.activeDate) {
|
|
281
|
+
this.activeDate = date;
|
|
282
|
+
this.calciteDatePickerChange.emit(date);
|
|
283
|
+
}
|
|
280
284
|
}
|
|
281
285
|
handleRangeChange() {
|
|
282
286
|
const { startAsDate: startDate, endAsDate: endDate } = this;
|
|
@@ -289,7 +293,12 @@ let CalciteDatePicker = class extends HTMLElement {
|
|
|
289
293
|
//
|
|
290
294
|
// --------------------------------------------------------------------------
|
|
291
295
|
connectedCallback() {
|
|
292
|
-
if (this.value) {
|
|
296
|
+
if (Array.isArray(this.value)) {
|
|
297
|
+
this.valueAsDate = this.value.map((v) => dateFromISO(v));
|
|
298
|
+
this.start = this.value[0];
|
|
299
|
+
this.end = this.value[1];
|
|
300
|
+
}
|
|
301
|
+
else if (this.value) {
|
|
293
302
|
this.valueAsDate = dateFromISO(this.value);
|
|
294
303
|
}
|
|
295
304
|
if (this.start) {
|
|
@@ -340,8 +349,17 @@ let CalciteDatePicker = class extends HTMLElement {
|
|
|
340
349
|
const dir = getElementDir(this.el);
|
|
341
350
|
return (h(Host, { onBlur: this.reset, onKeyUp: this.keyUpHandler, role: "application" }, this.renderCalendar(activeDate, dir, maxDate, minDate, date, endDate)));
|
|
342
351
|
}
|
|
343
|
-
|
|
344
|
-
|
|
352
|
+
valueHandler(value) {
|
|
353
|
+
if (Array.isArray(value)) {
|
|
354
|
+
this.valueAsDate = value.map((v) => dateFromISO(v));
|
|
355
|
+
this.start = value[0];
|
|
356
|
+
this.end = value[1];
|
|
357
|
+
}
|
|
358
|
+
else if (value) {
|
|
359
|
+
this.valueAsDate = dateFromISO(value);
|
|
360
|
+
this.start = "";
|
|
361
|
+
this.end = "";
|
|
362
|
+
}
|
|
345
363
|
}
|
|
346
364
|
startWatcher(start) {
|
|
347
365
|
this.setStartAsDate(dateFromISO(start));
|
|
@@ -419,7 +437,7 @@ let CalciteDatePicker = class extends HTMLElement {
|
|
|
419
437
|
"valueAsDate": ["handleValueAsDate"],
|
|
420
438
|
"startAsDate": ["handleRangeChange"],
|
|
421
439
|
"endAsDate": ["handleRangeChange"],
|
|
422
|
-
"value": ["
|
|
440
|
+
"value": ["valueHandler"],
|
|
423
441
|
"start": ["startWatcher"],
|
|
424
442
|
"end": ["endWatcher"],
|
|
425
443
|
"locale": ["loadLocaleData"]
|
|
@@ -39,6 +39,12 @@ let CalciteFilter = class extends HTMLElement {
|
|
|
39
39
|
* When true, disabled prevents interaction. This state shows items with lower opacity/grayed.
|
|
40
40
|
*/
|
|
41
41
|
this.disabled = false;
|
|
42
|
+
/**
|
|
43
|
+
* The resulting items after filtering.
|
|
44
|
+
*
|
|
45
|
+
* @readonly
|
|
46
|
+
*/
|
|
47
|
+
this.filteredItems = [];
|
|
42
48
|
// --------------------------------------------------------------------------
|
|
43
49
|
//
|
|
44
50
|
// Private Methods
|
|
@@ -46,10 +52,8 @@ let CalciteFilter = class extends HTMLElement {
|
|
|
46
52
|
// --------------------------------------------------------------------------
|
|
47
53
|
this.filter = debounce((value) => {
|
|
48
54
|
const regex = new RegExp(value, "i");
|
|
49
|
-
if (this.
|
|
50
|
-
|
|
51
|
-
The data property expects an array of objects`);
|
|
52
|
-
this.calciteFilterChange.emit([]);
|
|
55
|
+
if (this.items.length === 0) {
|
|
56
|
+
this.updateFiltered([]);
|
|
53
57
|
return;
|
|
54
58
|
}
|
|
55
59
|
const find = (input, RE) => {
|
|
@@ -69,10 +73,10 @@ let CalciteFilter = class extends HTMLElement {
|
|
|
69
73
|
});
|
|
70
74
|
return found;
|
|
71
75
|
};
|
|
72
|
-
const result = this.
|
|
76
|
+
const result = this.items.filter((item) => {
|
|
73
77
|
return find(item, regex);
|
|
74
78
|
});
|
|
75
|
-
this.
|
|
79
|
+
this.updateFiltered(result);
|
|
76
80
|
}, filterDebounceInMs);
|
|
77
81
|
this.inputHandler = (event) => {
|
|
78
82
|
const target = event.target;
|
|
@@ -85,13 +89,28 @@ let CalciteFilter = class extends HTMLElement {
|
|
|
85
89
|
};
|
|
86
90
|
this.clear = () => {
|
|
87
91
|
this.value = "";
|
|
88
|
-
this.calciteFilterChange.emit(this.data);
|
|
89
92
|
this.setFocus();
|
|
90
93
|
};
|
|
91
94
|
}
|
|
95
|
+
watchDataHandler(value) {
|
|
96
|
+
this.items = value;
|
|
97
|
+
}
|
|
98
|
+
watchItemsHandler() {
|
|
99
|
+
this.filter(this.value);
|
|
100
|
+
}
|
|
92
101
|
valueHandler(value) {
|
|
93
102
|
this.filter(value);
|
|
94
103
|
}
|
|
104
|
+
//--------------------------------------------------------------------------
|
|
105
|
+
//
|
|
106
|
+
// Lifecycle
|
|
107
|
+
//
|
|
108
|
+
//--------------------------------------------------------------------------
|
|
109
|
+
connectedCallback() {
|
|
110
|
+
if (this.data && !this.items) {
|
|
111
|
+
this.items = this.data;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
95
114
|
// --------------------------------------------------------------------------
|
|
96
115
|
//
|
|
97
116
|
// Public Methods
|
|
@@ -101,6 +120,11 @@ let CalciteFilter = class extends HTMLElement {
|
|
|
101
120
|
async setFocus() {
|
|
102
121
|
focusElement(this.textInput);
|
|
103
122
|
}
|
|
123
|
+
updateFiltered(filtered) {
|
|
124
|
+
this.filteredItems.length = 0;
|
|
125
|
+
this.filteredItems = this.filteredItems.concat(filtered);
|
|
126
|
+
this.calciteFilterChange.emit(filtered);
|
|
127
|
+
}
|
|
104
128
|
// --------------------------------------------------------------------------
|
|
105
129
|
//
|
|
106
130
|
// Render Methods
|
|
@@ -115,13 +139,17 @@ let CalciteFilter = class extends HTMLElement {
|
|
|
115
139
|
}
|
|
116
140
|
get el() { return this; }
|
|
117
141
|
static get watchers() { return {
|
|
142
|
+
"data": ["watchDataHandler"],
|
|
143
|
+
"items": ["watchItemsHandler"],
|
|
118
144
|
"value": ["valueHandler"]
|
|
119
145
|
}; }
|
|
120
146
|
static get style() { return calciteFilterCss; }
|
|
121
147
|
};
|
|
122
148
|
CalciteFilter = /*@__PURE__*/ proxyCustomElement(CalciteFilter, [1, "calcite-filter", {
|
|
123
149
|
"data": [16],
|
|
150
|
+
"items": [1040],
|
|
124
151
|
"disabled": [516],
|
|
152
|
+
"filteredItems": [1040],
|
|
125
153
|
"intlClear": [1, "intl-clear"],
|
|
126
154
|
"intlLabel": [1, "intl-label"],
|
|
127
155
|
"placeholder": [1],
|