@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
|
@@ -2,9 +2,10 @@
|
|
|
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, Fragment, h, Listen, Method, Prop } from "@stencil/core";
|
|
5
|
+
import { Component, Element, Event, Fragment, h, Listen, Method, Prop, Watch } from "@stencil/core";
|
|
6
6
|
import { focusElement, getElementDir } from "../../utils/dom";
|
|
7
7
|
import { connectLabel, disconnectLabel } from "../../utils/label";
|
|
8
|
+
import { afterConnectDefaultValueSet, connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
8
9
|
import { CSS } from "./resources";
|
|
9
10
|
import { CSS_UTILITY } from "../../utils/resources";
|
|
10
11
|
import { createObserver } from "../../utils/observers";
|
|
@@ -28,10 +29,18 @@ export class CalciteSelect {
|
|
|
28
29
|
* When true, it prevents the option from being selected.
|
|
29
30
|
*/
|
|
30
31
|
this.disabled = false;
|
|
32
|
+
/**
|
|
33
|
+
* When true, makes the component required for form-submission.
|
|
34
|
+
*
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
this.required = false;
|
|
31
38
|
/**
|
|
32
39
|
* The component scale.
|
|
33
40
|
*/
|
|
34
41
|
this.scale = "m";
|
|
42
|
+
/** The value of the selectedOption */
|
|
43
|
+
this.value = null;
|
|
35
44
|
/**
|
|
36
45
|
* The component width.
|
|
37
46
|
*/
|
|
@@ -44,7 +53,7 @@ export class CalciteSelect {
|
|
|
44
53
|
requestAnimationFrame(() => this.emitChangeEvent());
|
|
45
54
|
};
|
|
46
55
|
this.populateInternalSelect = () => {
|
|
47
|
-
const optionsAndGroups = Array.from(this.el.children);
|
|
56
|
+
const optionsAndGroups = Array.from(this.el.children).filter((child) => child.tagName === "CALCITE-OPTION" || child.tagName === "CALCITE-OPTION-GROUP");
|
|
48
57
|
this.clearInternalSelect();
|
|
49
58
|
optionsAndGroups.forEach((optionOrGroup) => { var _a; return (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.append(this.toNativeElement(optionOrGroup)); });
|
|
50
59
|
};
|
|
@@ -58,6 +67,13 @@ export class CalciteSelect {
|
|
|
58
67
|
this.calciteSelectChange.emit();
|
|
59
68
|
};
|
|
60
69
|
}
|
|
70
|
+
valueHandler(value) {
|
|
71
|
+
const items = this.el.querySelectorAll("calcite-option");
|
|
72
|
+
items.forEach((item) => (item.selected = item.value === value));
|
|
73
|
+
}
|
|
74
|
+
selectedOptionHandler(selectedOption) {
|
|
75
|
+
this.value = selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value;
|
|
76
|
+
}
|
|
61
77
|
//--------------------------------------------------------------------------
|
|
62
78
|
//
|
|
63
79
|
// Lifecycle
|
|
@@ -71,11 +87,17 @@ export class CalciteSelect {
|
|
|
71
87
|
childList: true
|
|
72
88
|
});
|
|
73
89
|
connectLabel(this);
|
|
90
|
+
connectForm(this);
|
|
74
91
|
}
|
|
75
92
|
disconnectedCallback() {
|
|
76
93
|
var _a;
|
|
77
94
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
78
95
|
disconnectLabel(this);
|
|
96
|
+
disconnectForm(this);
|
|
97
|
+
}
|
|
98
|
+
componentDidLoad() {
|
|
99
|
+
var _a, _b;
|
|
100
|
+
afterConnectDefaultValueSet(this, (_b = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "");
|
|
79
101
|
}
|
|
80
102
|
//--------------------------------------------------------------------------
|
|
81
103
|
//
|
|
@@ -180,7 +202,8 @@ export class CalciteSelect {
|
|
|
180
202
|
return (h(Fragment, null,
|
|
181
203
|
h("select", { "aria-label": this.label, class: { [CSS.select]: true, [CSS_UTILITY.rtl]: dir === "rtl" }, disabled: this.disabled, onChange: this.handleInternalSelectChange, ref: this.storeSelectRef },
|
|
182
204
|
h("slot", null)),
|
|
183
|
-
this.renderChevron(dir)
|
|
205
|
+
this.renderChevron(dir),
|
|
206
|
+
h(HiddenFormInputSlot, { component: this })));
|
|
184
207
|
}
|
|
185
208
|
static get is() { return "calcite-select"; }
|
|
186
209
|
static get encapsulation() { return "shadow"; }
|
|
@@ -226,6 +249,44 @@ export class CalciteSelect {
|
|
|
226
249
|
"attribute": "label",
|
|
227
250
|
"reflect": false
|
|
228
251
|
},
|
|
252
|
+
"name": {
|
|
253
|
+
"type": "string",
|
|
254
|
+
"mutable": false,
|
|
255
|
+
"complexType": {
|
|
256
|
+
"original": "string",
|
|
257
|
+
"resolved": "string",
|
|
258
|
+
"references": {}
|
|
259
|
+
},
|
|
260
|
+
"required": false,
|
|
261
|
+
"optional": false,
|
|
262
|
+
"docs": {
|
|
263
|
+
"tags": [],
|
|
264
|
+
"text": "The select's name. Gets submitted with the form."
|
|
265
|
+
},
|
|
266
|
+
"attribute": "name",
|
|
267
|
+
"reflect": false
|
|
268
|
+
},
|
|
269
|
+
"required": {
|
|
270
|
+
"type": "boolean",
|
|
271
|
+
"mutable": false,
|
|
272
|
+
"complexType": {
|
|
273
|
+
"original": "boolean",
|
|
274
|
+
"resolved": "boolean",
|
|
275
|
+
"references": {}
|
|
276
|
+
},
|
|
277
|
+
"required": false,
|
|
278
|
+
"optional": false,
|
|
279
|
+
"docs": {
|
|
280
|
+
"tags": [{
|
|
281
|
+
"name": "internal",
|
|
282
|
+
"text": undefined
|
|
283
|
+
}],
|
|
284
|
+
"text": "When true, makes the component required for form-submission."
|
|
285
|
+
},
|
|
286
|
+
"attribute": "required",
|
|
287
|
+
"reflect": true,
|
|
288
|
+
"defaultValue": "false"
|
|
289
|
+
},
|
|
229
290
|
"scale": {
|
|
230
291
|
"type": "string",
|
|
231
292
|
"mutable": false,
|
|
@@ -249,6 +310,24 @@ export class CalciteSelect {
|
|
|
249
310
|
"reflect": true,
|
|
250
311
|
"defaultValue": "\"m\""
|
|
251
312
|
},
|
|
313
|
+
"value": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"mutable": true,
|
|
316
|
+
"complexType": {
|
|
317
|
+
"original": "string",
|
|
318
|
+
"resolved": "string",
|
|
319
|
+
"references": {}
|
|
320
|
+
},
|
|
321
|
+
"required": false,
|
|
322
|
+
"optional": false,
|
|
323
|
+
"docs": {
|
|
324
|
+
"tags": [],
|
|
325
|
+
"text": "The value of the selectedOption"
|
|
326
|
+
},
|
|
327
|
+
"attribute": "value",
|
|
328
|
+
"reflect": false,
|
|
329
|
+
"defaultValue": "null"
|
|
330
|
+
},
|
|
252
331
|
"selectedOption": {
|
|
253
332
|
"type": "unknown",
|
|
254
333
|
"mutable": true,
|
|
@@ -330,6 +409,13 @@ export class CalciteSelect {
|
|
|
330
409
|
}
|
|
331
410
|
}; }
|
|
332
411
|
static get elementRef() { return "el"; }
|
|
412
|
+
static get watchers() { return [{
|
|
413
|
+
"propName": "value",
|
|
414
|
+
"methodName": "valueHandler"
|
|
415
|
+
}, {
|
|
416
|
+
"propName": "selectedOption",
|
|
417
|
+
"methodName": "selectedOptionHandler"
|
|
418
|
+
}]; }
|
|
333
419
|
static get listeners() { return [{
|
|
334
420
|
"name": "calciteOptionChange",
|
|
335
421
|
"method": "handleOptionOrGroupChange",
|
|
@@ -125,11 +125,6 @@
|
|
|
125
125
|
display: flex;
|
|
126
126
|
flex-direction: row;
|
|
127
127
|
position: relative;
|
|
128
|
-
border-width: 0;
|
|
129
|
-
border-top-width: 1px;
|
|
130
|
-
border-bottom-width: 1px;
|
|
131
|
-
border-style: solid;
|
|
132
|
-
border-color: var(--calcite-ui-border-3);
|
|
133
128
|
justify-content: space-between;
|
|
134
129
|
overflow: hidden;
|
|
135
130
|
}
|
|
@@ -140,15 +135,11 @@
|
|
|
140
135
|
|
|
141
136
|
.content {
|
|
142
137
|
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
flex-wrap: nowrap;
|
|
143
140
|
height: 100%;
|
|
144
141
|
overflow: auto;
|
|
145
142
|
width: 100%;
|
|
146
|
-
border-width: 0;
|
|
147
|
-
border-left-width: 1px;
|
|
148
|
-
border-right-width: 1px;
|
|
149
|
-
border-style: solid;
|
|
150
|
-
border-color: var(--calcite-ui-border-3);
|
|
151
|
-
flex-flow: column nowrap;
|
|
152
143
|
}
|
|
153
144
|
|
|
154
145
|
.content ::slotted(calcite-shell-center-row),
|
|
@@ -186,6 +177,15 @@
|
|
|
186
177
|
z-index: 1;
|
|
187
178
|
}
|
|
188
179
|
|
|
180
|
+
::slotted(calcite-panel),
|
|
181
|
+
::slotted(calcite-flow) {
|
|
182
|
+
border-width: 1px;
|
|
183
|
+
border-color: var(--calcite-ui-border-3);
|
|
184
|
+
border-style: solid;
|
|
185
|
+
border-left-width: 0;
|
|
186
|
+
border-right-width: 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
189
|
slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])) {
|
|
190
190
|
border-left-width: 1px;
|
|
191
191
|
border-right-width: 1px;
|
|
@@ -76,18 +76,6 @@
|
|
|
76
76
|
* Currently only used in Checkbox.
|
|
77
77
|
*/
|
|
78
78
|
|
|
79
|
-
:host {
|
|
80
|
-
/* Base ":host" styles for the component */
|
|
81
|
-
box-sizing: border-box;
|
|
82
|
-
background-color: var(--calcite-ui-foreground-1);
|
|
83
|
-
color: var(--calcite-ui-text-2);
|
|
84
|
-
font-size: var(--calcite-font-size--1);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
:host * {
|
|
88
|
-
box-sizing: border-box;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
79
|
:root {
|
|
92
80
|
--calcite-popper-transition: 150ms ease-in-out;
|
|
93
81
|
}
|
|
@@ -97,11 +85,25 @@
|
|
|
97
85
|
}
|
|
98
86
|
|
|
99
87
|
:host {
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: stretch;
|
|
90
|
+
flex: 0 1 auto;
|
|
91
|
+
--calcite-shell-panel-detached-max-height: unset;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.container {
|
|
95
|
+
box-sizing: border-box;
|
|
100
96
|
display: flex;
|
|
101
97
|
align-items: stretch;
|
|
102
98
|
background-color: transparent;
|
|
99
|
+
flex: 1 1 auto;
|
|
103
100
|
pointer-events: none;
|
|
104
|
-
--calcite-
|
|
101
|
+
color: var(--calcite-ui-text-2);
|
|
102
|
+
font-size: var(--calcite-font-size--1);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.container * {
|
|
106
|
+
box-sizing: border-box;
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
::slotted(calcite-panel),
|
|
@@ -196,18 +198,33 @@
|
|
|
196
198
|
max-height: unset;
|
|
197
199
|
}
|
|
198
200
|
|
|
201
|
+
:host([position=start]) .content--detached ::slotted(calcite-panel),
|
|
202
|
+
:host([position=start]) .content--detached ::slotted(calcite-flow),
|
|
203
|
+
:host([position=end]) .content--detached ::slotted(calcite-panel),
|
|
204
|
+
:host([position=end]) .content--detached ::slotted(calcite-flow) {
|
|
205
|
+
border-style: none;
|
|
206
|
+
}
|
|
207
|
+
|
|
199
208
|
.content[hidden] {
|
|
200
209
|
display: none;
|
|
201
210
|
}
|
|
202
211
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
border-
|
|
212
|
+
slot[name=action-bar]::slotted(calcite-action-bar),
|
|
213
|
+
.content ::slotted(calcite-flow),
|
|
214
|
+
.content ::slotted(calcite-panel) {
|
|
215
|
+
border-width: 1px;
|
|
216
|
+
border-color: var(--calcite-ui-border-3);
|
|
217
|
+
border-style: solid;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),
|
|
221
|
+
:host([position=start]) .content ::slotted(calcite-flow),
|
|
222
|
+
:host([position=start]) .content ::slotted(calcite-panel) {
|
|
223
|
+
border-inline-start: none;
|
|
207
224
|
}
|
|
208
225
|
|
|
209
|
-
:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar)
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
border-
|
|
226
|
+
:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),
|
|
227
|
+
:host([position=end]) .content ::slotted(calcite-flow),
|
|
228
|
+
:host([position=end]) .content ::slotted(calcite-panel) {
|
|
229
|
+
border-inline-end: none;
|
|
213
230
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
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, Prop, Watch, h
|
|
5
|
+
import { Component, Element, Event, Prop, Watch, h } from "@stencil/core";
|
|
6
6
|
import { CSS, SLOTS } from "./resources";
|
|
7
7
|
import { getSlotted } from "../../utils/dom";
|
|
8
8
|
/**
|
|
@@ -58,7 +58,7 @@ export class CalciteShellPanel {
|
|
|
58
58
|
if (position === "end") {
|
|
59
59
|
mainNodes.reverse();
|
|
60
60
|
}
|
|
61
|
-
return h(
|
|
61
|
+
return h("div", { class: { [CSS.container]: true } }, mainNodes);
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "calcite-shell-panel"; }
|
|
64
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -420,4 +420,19 @@
|
|
|
420
420
|
right: unset;
|
|
421
421
|
left: 0;
|
|
422
422
|
text-align: left;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
::slotted(input[slot=hidden-form-input]) {
|
|
426
|
+
bottom: 0 !important;
|
|
427
|
+
left: 0 !important;
|
|
428
|
+
margin: 0 !important;
|
|
429
|
+
opacity: 0 !important;
|
|
430
|
+
outline: none !important;
|
|
431
|
+
padding: 0 !important;
|
|
432
|
+
position: absolute !important;
|
|
433
|
+
right: 0 !important;
|
|
434
|
+
top: 0 !important;
|
|
435
|
+
transform: none !important;
|
|
436
|
+
-webkit-appearance: none !important;
|
|
437
|
+
z-index: -1 !important;
|
|
423
438
|
}
|
|
@@ -8,6 +8,7 @@ import { getKey } from "../../utils/key";
|
|
|
8
8
|
import { intersects } from "../../utils/dom";
|
|
9
9
|
import { clamp } from "../../utils/math";
|
|
10
10
|
import { connectLabel, disconnectLabel } from "../../utils/label";
|
|
11
|
+
import { afterConnectDefaultValueSet, connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
11
12
|
export class CalciteSlider {
|
|
12
13
|
constructor() {
|
|
13
14
|
//--------------------------------------------------------------------------
|
|
@@ -35,6 +36,10 @@ export class CalciteSlider {
|
|
|
35
36
|
this.mirrored = false;
|
|
36
37
|
/** Use finer point for handles */
|
|
37
38
|
this.precise = false;
|
|
39
|
+
/**
|
|
40
|
+
* When true, makes the component required for form-submission.
|
|
41
|
+
*/
|
|
42
|
+
this.required = false;
|
|
38
43
|
/** When true, enables snap selection along the step interval */
|
|
39
44
|
this.snap = false;
|
|
40
45
|
/** Interval to move on up/down keys */
|
|
@@ -107,14 +112,17 @@ export class CalciteSlider {
|
|
|
107
112
|
//--------------------------------------------------------------------------
|
|
108
113
|
connectedCallback() {
|
|
109
114
|
connectLabel(this);
|
|
115
|
+
connectForm(this);
|
|
110
116
|
}
|
|
111
117
|
disconnectedCallback() {
|
|
112
118
|
disconnectLabel(this);
|
|
119
|
+
disconnectForm(this);
|
|
113
120
|
}
|
|
114
121
|
componentWillLoad() {
|
|
115
122
|
this.isRange = !!(this.maxValue || this.maxValue === 0);
|
|
116
123
|
this.tickValues = this.generateTickValues();
|
|
117
124
|
this.value = this.clamp(this.value);
|
|
125
|
+
afterConnectDefaultValueSet(this, this.value);
|
|
118
126
|
if (this.snap) {
|
|
119
127
|
this.value = this.getClosestStep(this.value);
|
|
120
128
|
}
|
|
@@ -292,7 +300,8 @@ export class CalciteSlider {
|
|
|
292
300
|
this.hasHistogram && this.precise && !this.labelHandles && histogramPreciseHandle,
|
|
293
301
|
!this.hasHistogram && this.precise && this.labelHandles && labeledPreciseHandle,
|
|
294
302
|
this.hasHistogram && !this.precise && this.labelHandles && histogramLabeledHandle,
|
|
295
|
-
this.hasHistogram && this.precise && this.labelHandles && histogramLabeledPreciseHandle
|
|
303
|
+
this.hasHistogram && this.precise && this.labelHandles && histogramLabeledPreciseHandle,
|
|
304
|
+
h(HiddenFormInputSlot, { component: this }))));
|
|
296
305
|
}
|
|
297
306
|
renderGraph() {
|
|
298
307
|
return this.histogram ? (h("div", { class: "graph" },
|
|
@@ -980,6 +989,23 @@ export class CalciteSlider {
|
|
|
980
989
|
"reflect": true,
|
|
981
990
|
"defaultValue": "false"
|
|
982
991
|
},
|
|
992
|
+
"name": {
|
|
993
|
+
"type": "string",
|
|
994
|
+
"mutable": false,
|
|
995
|
+
"complexType": {
|
|
996
|
+
"original": "string",
|
|
997
|
+
"resolved": "string",
|
|
998
|
+
"references": {}
|
|
999
|
+
},
|
|
1000
|
+
"required": false,
|
|
1001
|
+
"optional": false,
|
|
1002
|
+
"docs": {
|
|
1003
|
+
"tags": [],
|
|
1004
|
+
"text": "The name of the slider"
|
|
1005
|
+
},
|
|
1006
|
+
"attribute": "name",
|
|
1007
|
+
"reflect": true
|
|
1008
|
+
},
|
|
983
1009
|
"pageStep": {
|
|
984
1010
|
"type": "number",
|
|
985
1011
|
"mutable": false,
|
|
@@ -1015,6 +1041,24 @@ export class CalciteSlider {
|
|
|
1015
1041
|
"reflect": false,
|
|
1016
1042
|
"defaultValue": "false"
|
|
1017
1043
|
},
|
|
1044
|
+
"required": {
|
|
1045
|
+
"type": "boolean",
|
|
1046
|
+
"mutable": false,
|
|
1047
|
+
"complexType": {
|
|
1048
|
+
"original": "boolean",
|
|
1049
|
+
"resolved": "boolean",
|
|
1050
|
+
"references": {}
|
|
1051
|
+
},
|
|
1052
|
+
"required": false,
|
|
1053
|
+
"optional": false,
|
|
1054
|
+
"docs": {
|
|
1055
|
+
"tags": [],
|
|
1056
|
+
"text": "When true, makes the component required for form-submission."
|
|
1057
|
+
},
|
|
1058
|
+
"attribute": "required",
|
|
1059
|
+
"reflect": true,
|
|
1060
|
+
"defaultValue": "false"
|
|
1061
|
+
},
|
|
1018
1062
|
"snap": {
|
|
1019
1063
|
"type": "boolean",
|
|
1020
1064
|
"mutable": false,
|
|
@@ -233,4 +233,19 @@
|
|
|
233
233
|
:host([checked]:focus) .calcite--rtl .handle {
|
|
234
234
|
right: auto;
|
|
235
235
|
left: -1px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
::slotted(input[slot=hidden-form-input]) {
|
|
239
|
+
bottom: 0 !important;
|
|
240
|
+
left: 0 !important;
|
|
241
|
+
margin: 0 !important;
|
|
242
|
+
opacity: 0 !important;
|
|
243
|
+
outline: none !important;
|
|
244
|
+
padding: 0 !important;
|
|
245
|
+
position: absolute !important;
|
|
246
|
+
right: 0 !important;
|
|
247
|
+
top: 0 !important;
|
|
248
|
+
transform: none !important;
|
|
249
|
+
-webkit-appearance: none !important;
|
|
250
|
+
z-index: -1 !important;
|
|
236
251
|
}
|
|
@@ -2,13 +2,12 @@
|
|
|
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,
|
|
6
|
-
import { getElementDir } from "../../utils/dom";
|
|
7
|
-
import { hiddenInputStyle } from "../../utils/form";
|
|
8
|
-
import { guid } from "../../utils/guid";
|
|
5
|
+
import { Component, Element, Event, h, Host, Method, Prop, State, Watch } from "@stencil/core";
|
|
6
|
+
import { focusElement, getElementDir } from "../../utils/dom";
|
|
9
7
|
import { getKey } from "../../utils/key";
|
|
10
8
|
import { CSS_UTILITY } from "../../utils/resources";
|
|
11
9
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
10
|
+
import { connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
12
11
|
export class CalciteSwitch {
|
|
13
12
|
constructor() {
|
|
14
13
|
//--------------------------------------------------------------------------
|
|
@@ -26,24 +25,30 @@ export class CalciteSwitch {
|
|
|
26
25
|
this.switched = false;
|
|
27
26
|
/** True if the switch is initially on */
|
|
28
27
|
this.checked = false;
|
|
29
|
-
|
|
28
|
+
//--------------------------------------------------------------------------
|
|
29
|
+
//
|
|
30
|
+
// Private Methods
|
|
31
|
+
//
|
|
32
|
+
//--------------------------------------------------------------------------
|
|
33
|
+
this.keyDownHandler = (e) => {
|
|
34
|
+
const key = getKey(e.key);
|
|
35
|
+
if (!this.disabled && (key === " " || key === "Enter")) {
|
|
36
|
+
this.toggle();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
30
39
|
this.clickHandler = () => {
|
|
31
40
|
this.toggle();
|
|
32
41
|
};
|
|
42
|
+
this.setSwitchEl = (el) => {
|
|
43
|
+
this.switchEl = el;
|
|
44
|
+
};
|
|
33
45
|
}
|
|
34
46
|
disabledWatcher(newDisabled) {
|
|
35
|
-
this.inputEl.disabled = newDisabled;
|
|
36
47
|
this.tabindex = newDisabled ? -1 : 0;
|
|
37
48
|
}
|
|
38
|
-
nameChanged(newName) {
|
|
39
|
-
this.inputEl.name = newName;
|
|
40
|
-
}
|
|
41
49
|
switchedWatcher(switched) {
|
|
42
50
|
this.checked = switched;
|
|
43
51
|
}
|
|
44
|
-
checkedWatcher(checked) {
|
|
45
|
-
this.inputEl.checked = checked;
|
|
46
|
-
}
|
|
47
52
|
//--------------------------------------------------------------------------
|
|
48
53
|
//
|
|
49
54
|
// Public Methods
|
|
@@ -51,31 +56,14 @@ export class CalciteSwitch {
|
|
|
51
56
|
//--------------------------------------------------------------------------
|
|
52
57
|
/** Sets focus on the component. */
|
|
53
58
|
async setFocus() {
|
|
54
|
-
this.
|
|
59
|
+
focusElement(this.switchEl);
|
|
55
60
|
}
|
|
56
|
-
//--------------------------------------------------------------------------
|
|
57
|
-
//
|
|
58
|
-
// Private Methods
|
|
59
|
-
//
|
|
60
|
-
//--------------------------------------------------------------------------
|
|
61
61
|
onLabelClick() {
|
|
62
62
|
if (!this.disabled) {
|
|
63
63
|
this.toggle();
|
|
64
64
|
this.setFocus();
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
setupInput() {
|
|
68
|
-
this.checked && this.inputEl.setAttribute("checked", "");
|
|
69
|
-
this.inputEl.disabled = this.disabled;
|
|
70
|
-
this.inputEl.id = `${this.guid}-input`;
|
|
71
|
-
this.inputEl.name = this.name;
|
|
72
|
-
this.inputEl.style.cssText = hiddenInputStyle;
|
|
73
|
-
this.inputEl.type = "checkbox";
|
|
74
|
-
if (this.value) {
|
|
75
|
-
this.inputEl.value = this.value != null ? this.value.toString() : "";
|
|
76
|
-
}
|
|
77
|
-
this.el.appendChild(this.inputEl);
|
|
78
|
-
}
|
|
79
67
|
toggle() {
|
|
80
68
|
this.checked = !this.checked;
|
|
81
69
|
this.calciteSwitchChange.emit({
|
|
@@ -86,35 +74,24 @@ export class CalciteSwitch {
|
|
|
86
74
|
}
|
|
87
75
|
//--------------------------------------------------------------------------
|
|
88
76
|
//
|
|
89
|
-
// Event Listeners
|
|
90
|
-
//
|
|
91
|
-
//--------------------------------------------------------------------------
|
|
92
|
-
keyDownHandler(e) {
|
|
93
|
-
const key = getKey(e.key);
|
|
94
|
-
if (!this.disabled && (key === " " || key === "Enter")) {
|
|
95
|
-
this.toggle();
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
//--------------------------------------------------------------------------
|
|
99
|
-
//
|
|
100
77
|
// Lifecycle
|
|
101
78
|
//
|
|
102
79
|
//--------------------------------------------------------------------------
|
|
103
80
|
connectedCallback() {
|
|
104
|
-
connectLabel(this);
|
|
105
81
|
const initiallyChecked = this.checked || this.switched;
|
|
106
82
|
if (initiallyChecked) {
|
|
107
83
|
// if either prop is set, we ensure both are synced initially
|
|
108
84
|
this.switched = this.checked = initiallyChecked;
|
|
109
85
|
}
|
|
86
|
+
connectLabel(this);
|
|
87
|
+
connectForm(this);
|
|
110
88
|
}
|
|
111
89
|
disconnectedCallback() {
|
|
112
90
|
disconnectLabel(this);
|
|
91
|
+
disconnectForm(this);
|
|
113
92
|
}
|
|
114
93
|
componentWillLoad() {
|
|
115
|
-
this.guid = this.el.id || `calcite-switch-${guid()}`;
|
|
116
94
|
this.tabindex = this.el.getAttribute("tabindex") || this.disabled ? -1 : 0;
|
|
117
|
-
this.setupInput();
|
|
118
95
|
}
|
|
119
96
|
// --------------------------------------------------------------------------
|
|
120
97
|
//
|
|
@@ -123,10 +100,11 @@ export class CalciteSwitch {
|
|
|
123
100
|
// --------------------------------------------------------------------------
|
|
124
101
|
render() {
|
|
125
102
|
const dir = getElementDir(this.el);
|
|
126
|
-
return (h(Host, {
|
|
127
|
-
h("div", { class: { container: true, [CSS_UTILITY.rtl]: dir === "rtl" } },
|
|
103
|
+
return (h(Host, { onKeyDown: this.keyDownHandler },
|
|
104
|
+
h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: { container: true, [CSS_UTILITY.rtl]: dir === "rtl" }, onClick: this.clickHandler, ref: this.setSwitchEl, role: "switch", tabindex: this.tabindex },
|
|
128
105
|
h("div", { class: "track" },
|
|
129
|
-
h("div", { class: "handle" }))
|
|
106
|
+
h("div", { class: "handle" })),
|
|
107
|
+
h(HiddenFormInputSlot, { component: this }))));
|
|
130
108
|
}
|
|
131
109
|
static get is() { return "calcite-switch"; }
|
|
132
110
|
static get encapsulation() { return "shadow"; }
|
|
@@ -181,7 +159,7 @@ export class CalciteSwitch {
|
|
|
181
159
|
"references": {}
|
|
182
160
|
},
|
|
183
161
|
"required": false,
|
|
184
|
-
"optional":
|
|
162
|
+
"optional": false,
|
|
185
163
|
"docs": {
|
|
186
164
|
"tags": [],
|
|
187
165
|
"text": "The name of the switch input"
|
|
@@ -260,17 +238,16 @@ export class CalciteSwitch {
|
|
|
260
238
|
"references": {}
|
|
261
239
|
},
|
|
262
240
|
"required": false,
|
|
263
|
-
"optional":
|
|
241
|
+
"optional": false,
|
|
264
242
|
"docs": {
|
|
265
243
|
"tags": [],
|
|
266
244
|
"text": "The value of the switch input"
|
|
267
245
|
},
|
|
268
246
|
"attribute": "value",
|
|
269
|
-
"reflect":
|
|
247
|
+
"reflect": false
|
|
270
248
|
}
|
|
271
249
|
}; }
|
|
272
250
|
static get states() { return {
|
|
273
|
-
"guid": {},
|
|
274
251
|
"tabindex": {}
|
|
275
252
|
}; }
|
|
276
253
|
static get events() { return [{
|
|
@@ -311,21 +288,8 @@ export class CalciteSwitch {
|
|
|
311
288
|
static get watchers() { return [{
|
|
312
289
|
"propName": "disabled",
|
|
313
290
|
"methodName": "disabledWatcher"
|
|
314
|
-
}, {
|
|
315
|
-
"propName": "name",
|
|
316
|
-
"methodName": "nameChanged"
|
|
317
291
|
}, {
|
|
318
292
|
"propName": "switched",
|
|
319
293
|
"methodName": "switchedWatcher"
|
|
320
|
-
}, {
|
|
321
|
-
"propName": "checked",
|
|
322
|
-
"methodName": "checkedWatcher"
|
|
323
|
-
}]; }
|
|
324
|
-
static get listeners() { return [{
|
|
325
|
-
"name": "keydown",
|
|
326
|
-
"method": "keyDownHandler",
|
|
327
|
-
"target": undefined,
|
|
328
|
-
"capture": false,
|
|
329
|
-
"passive": false
|
|
330
294
|
}]; }
|
|
331
295
|
}
|
|
@@ -22,8 +22,6 @@ export class CalciteTileSelect {
|
|
|
22
22
|
this.disabled = false;
|
|
23
23
|
/** The hidden state of the tile select. */
|
|
24
24
|
this.hidden = false;
|
|
25
|
-
/** The name of the tile select. This name will appear in form submissions as either a radio or checkbox identifier based on the `type` property. */
|
|
26
|
-
this.name = "";
|
|
27
25
|
/** Display an interactive radio or checkbox. */
|
|
28
26
|
this.inputEnabled = false;
|
|
29
27
|
/** The side of the tile that the radio or checkbox appears on when inputEnabled is true. */
|
|
@@ -273,11 +271,11 @@ export class CalciteTileSelect {
|
|
|
273
271
|
"reflect": true
|
|
274
272
|
},
|
|
275
273
|
"name": {
|
|
276
|
-
"type": "
|
|
274
|
+
"type": "any",
|
|
277
275
|
"mutable": false,
|
|
278
276
|
"complexType": {
|
|
279
|
-
"original": "
|
|
280
|
-
"resolved": "
|
|
277
|
+
"original": "any",
|
|
278
|
+
"resolved": "any",
|
|
281
279
|
"references": {}
|
|
282
280
|
},
|
|
283
281
|
"required": false,
|
|
@@ -287,8 +285,7 @@ export class CalciteTileSelect {
|
|
|
287
285
|
"text": "The name of the tile select. This name will appear in form submissions as either a radio or checkbox identifier based on the `type` property."
|
|
288
286
|
},
|
|
289
287
|
"attribute": "name",
|
|
290
|
-
"reflect": true
|
|
291
|
-
"defaultValue": "\"\""
|
|
288
|
+
"reflect": true
|
|
292
289
|
},
|
|
293
290
|
"inputEnabled": {
|
|
294
291
|
"type": "boolean",
|