@esri/calcite-components 1.0.0-next.292 → 1.0.0-next.296
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/penMark16.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMark24.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMark32.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMarkPlus16.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMarkPlus24.json +1 -0
- package/dist/calcite/assets/calcite-icon/penMarkPlus32.json +1 -0
- package/dist/calcite/assets/calcite-icon/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/subscript16.json +1 -0
- package/dist/calcite/assets/calcite-icon/subscript24.json +1 -0
- package/dist/calcite/assets/calcite-icon/subscript32.json +1 -0
- package/dist/calcite/assets/calcite-icon/superscript16.json +1 -0
- package/dist/calcite/assets/calcite-icon/superscript24.json +1 -0
- package/dist/calcite/assets/calcite-icon/superscript32.json +1 -0
- package/dist/calcite/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-fc4846f0.system.entry.js → p-00716aa8.system.entry.js} +1 -1
- package/dist/calcite/{p-69548a7d.system.entry.js → p-044d603d.system.entry.js} +1 -1
- package/dist/calcite/{p-37cee0ea.entry.js → p-05da7439.entry.js} +1 -1
- package/dist/calcite/{p-f4299b95.entry.js → p-08d707c4.entry.js} +1 -1
- package/dist/calcite/{p-e33a2dd2.system.entry.js → p-10708f87.system.entry.js} +1 -1
- package/dist/calcite/p-109049e6.system.entry.js +5 -0
- package/dist/calcite/{p-d7e5b807.system.entry.js → p-127e3513.system.entry.js} +1 -1
- package/dist/calcite/p-1434e37e.entry.js +5 -0
- package/dist/calcite/{p-01c3783e.system.entry.js → p-143cffd9.system.entry.js} +1 -1
- package/dist/calcite/{p-050dc7e6.system.entry.js → p-15f3a0d7.system.entry.js} +1 -1
- package/dist/calcite/{p-c20278e8.system.entry.js → p-16bb48f6.system.entry.js} +1 -1
- package/dist/calcite/{p-3ba8024a.system.entry.js → p-16f2d814.system.entry.js} +1 -1
- package/dist/calcite/p-1942876c.js +5 -0
- package/dist/calcite/{p-f8d975a1.system.entry.js → p-1a1e9057.system.entry.js} +1 -1
- package/dist/calcite/{p-61038b30.js → p-1a962bdd.js} +1 -1
- package/dist/calcite/p-1aa89347.system.entry.js +5 -0
- package/dist/calcite/{p-7c0debe0.system.entry.js → p-1c8fe17f.system.entry.js} +1 -1
- package/dist/calcite/{p-473cfb74.system.entry.js → p-1dd440e6.system.entry.js} +1 -1
- package/dist/calcite/p-21c8ac06.entry.js +5 -0
- package/dist/calcite/{p-4c7e3d8e.system.entry.js → p-243d95ab.system.entry.js} +1 -1
- package/dist/calcite/{p-2920aa02.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-da9603a3.entry.js → p-289bc56f.entry.js} +1 -1
- package/dist/calcite/{p-10ccc21d.entry.js → p-29771742.entry.js} +1 -1
- package/dist/calcite/{p-c0dd929a.entry.js → p-2aa3007a.entry.js} +1 -1
- package/dist/calcite/p-2e29554c.js +5 -0
- package/dist/calcite/{p-8efb43fc.entry.js → p-33802886.entry.js} +1 -1
- package/dist/calcite/{p-32fbf8cd.system.js → p-34e5baa7.system.js} +1 -1
- package/dist/calcite/p-3833285b.system.entry.js +5 -0
- package/dist/calcite/p-3a592bf3.system.entry.js +5 -0
- package/dist/calcite/p-3dae9da3.js +5 -0
- package/dist/calcite/{p-fff0a881.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-00d72f16.entry.js → p-48f03121.entry.js} +1 -1
- package/dist/calcite/{p-22ad79b1.entry.js → p-4acfb654.entry.js} +1 -1
- package/dist/calcite/{p-3929447c.system.entry.js → p-4d11efdb.system.entry.js} +1 -1
- package/dist/calcite/{p-0fc8b24c.system.entry.js → p-4e16515a.system.entry.js} +1 -1
- package/dist/calcite/p-4f1f83d2.entry.js +5 -0
- package/dist/calcite/p-502ea583.entry.js +5 -0
- 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-175764f3.system.entry.js → p-5f2a9710.system.entry.js} +1 -1
- package/dist/calcite/{p-87b93729.entry.js → p-5f817b79.entry.js} +1 -1
- package/dist/calcite/{p-e693758c.entry.js → p-6296644b.entry.js} +1 -1
- package/dist/calcite/p-63e60894.entry.js +5 -0
- package/dist/calcite/{p-acaad99b.system.entry.js → p-6484ffb7.system.entry.js} +1 -1
- package/dist/calcite/{p-8655c0a1.entry.js → p-659898bf.entry.js} +1 -1
- package/dist/calcite/{p-7cdfec27.system.js → p-6d44b7d9.system.js} +1 -1
- package/dist/calcite/p-6f1cca21.system.js +5 -0
- package/dist/calcite/{p-72ffc6d7.entry.js → p-70efa39d.entry.js} +1 -1
- package/dist/calcite/{p-7839d1c9.entry.js → p-714ae4f6.entry.js} +1 -1
- package/dist/calcite/{p-9d83f268.system.entry.js → p-74f390e1.system.entry.js} +1 -1
- package/dist/calcite/p-75264173.entry.js +5 -0
- package/dist/calcite/{p-41e9b889.entry.js → p-765fb8ed.entry.js} +1 -1
- package/dist/calcite/{p-be3b0fee.entry.js → p-78d0db7b.entry.js} +1 -1
- package/dist/calcite/{p-9e4f2697.system.entry.js → p-7ba971b5.system.entry.js} +1 -1
- package/dist/calcite/{p-c57f8690.entry.js → p-7bb94bfa.entry.js} +1 -1
- package/dist/calcite/p-81538774.system.entry.js +5 -0
- package/dist/calcite/p-81ab443c.entry.js +5 -0
- package/dist/calcite/p-82139130.entry.js +5 -0
- package/dist/calcite/{p-20042561.entry.js → p-82c6cd9a.entry.js} +1 -1
- package/dist/calcite/p-8340b572.js +5 -0
- package/dist/calcite/{p-a93678c6.system.entry.js → p-840f2937.system.entry.js} +2 -2
- package/dist/calcite/p-85032edc.system.entry.js +5 -0
- package/dist/calcite/{p-57f5866d.system.entry.js → p-8b2ead09.system.entry.js} +1 -1
- package/dist/calcite/p-8baa9ba4.entry.js +5 -0
- package/dist/calcite/p-8fef13ca.system.entry.js +5 -0
- package/dist/calcite/{p-1aaf7f83.entry.js → p-9338b0bc.entry.js} +1 -1
- package/dist/calcite/p-9577dfd9.entry.js +5 -0
- package/dist/calcite/{p-c3922ef7.system.entry.js → p-95b9a0f2.system.entry.js} +1 -1
- package/dist/calcite/p-968ea270.entry.js +5 -0
- package/dist/calcite/{p-9358deb1.system.entry.js → p-9abbbcbd.system.entry.js} +1 -1
- package/dist/calcite/p-9be6633a.entry.js +5 -0
- package/dist/calcite/{p-021d44b7.system.entry.js → p-9f240615.system.entry.js} +1 -1
- package/dist/calcite/{p-e3a30266.system.entry.js → p-a5269f14.system.entry.js} +1 -1
- package/dist/calcite/{p-31c4a271.system.entry.js → p-a8dc2982.system.entry.js} +1 -1
- package/dist/calcite/{p-75793454.entry.js → p-ace12b8d.entry.js} +1 -1
- package/dist/calcite/{p-1b2c1f55.entry.js → p-aced5f01.entry.js} +1 -1
- package/dist/calcite/{p-85a2bf7c.system.entry.js → p-aec398f3.system.entry.js} +1 -1
- package/dist/calcite/p-b1351c3e.system.entry.js +5 -0
- package/dist/calcite/p-b1a96c72.system.entry.js +5 -0
- package/dist/calcite/p-b1f88d45.system.js +5 -0
- package/dist/calcite/{p-bb916828.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-0e30afe6.entry.js → p-c3ba61ea.entry.js} +1 -1
- package/dist/calcite/{p-cd8f7781.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-34a6550f.system.entry.js → p-cbe9f1a2.system.entry.js} +1 -1
- package/dist/calcite/{p-64d90b14.system.js → p-cbf6bb04.system.js} +1 -1
- package/dist/calcite/{p-ac3d8784.entry.js → p-cc788d2e.entry.js} +1 -1
- package/dist/calcite/p-cced5508.system.entry.js +5 -0
- package/dist/calcite/{p-45d123be.system.entry.js → p-cf03b144.system.entry.js} +1 -1
- package/dist/calcite/{p-8fcfe861.js → p-d53cc958.js} +1 -1
- package/dist/calcite/p-d550ee4d.entry.js +5 -0
- package/dist/calcite/{p-18078190.entry.js → p-d6e30c54.entry.js} +1 -1
- package/dist/calcite/{p-7b01fe89.js → p-d6f20229.js} +1 -1
- package/dist/calcite/{p-ff04f827.system.entry.js → p-dabb63b5.system.entry.js} +1 -1
- package/dist/calcite/{p-99da965d.system.entry.js → p-dd464e44.system.entry.js} +1 -1
- package/dist/calcite/p-dd5ff164.entry.js +5 -0
- package/dist/calcite/{p-bd555b2e.system.entry.js → p-deb36fde.system.entry.js} +1 -1
- package/dist/calcite/{p-ba9b4f62.system.entry.js → p-defcee80.system.entry.js} +1 -1
- package/dist/calcite/{p-3b17d8d0.system.js → p-dff7dc90.system.js} +1 -1
- package/dist/calcite/{p-318e95d7.system.entry.js → p-e33fe285.system.entry.js} +1 -1
- package/dist/calcite/p-e52495d3.system.entry.js +5 -0
- package/dist/calcite/{p-7b600760.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-87e83c0d.system.entry.js → p-e6d05ad6.system.entry.js} +1 -1
- package/dist/calcite/{p-5cb26137.system.entry.js → p-e70cb594.system.entry.js} +1 -1
- package/dist/calcite/{p-a20df95c.js → p-e956e279.js} +1 -1
- package/dist/calcite/p-eada9cef.entry.js +5 -0
- package/dist/calcite/{p-eb3ee207.entry.js → p-ecc00ef0.entry.js} +1 -1
- package/dist/calcite/{p-51cb078a.entry.js → p-ef39847e.entry.js} +1 -1
- package/dist/calcite/{p-f141da0f.entry.js → p-efb2169a.entry.js} +1 -1
- package/dist/calcite/{p-a8cd5cde.system.entry.js → p-f0338acf.system.entry.js} +1 -1
- package/dist/calcite/{p-95a3a0ce.entry.js → p-f1c5e7cf.entry.js} +1 -1
- package/dist/calcite/{p-1f99b038.entry.js → p-f278dd53.entry.js} +1 -1
- package/dist/calcite/{p-9dbb69f7.entry.js → p-f9c46578.entry.js} +1 -1
- package/dist/calcite/{p-32faf98b.system.entry.js → p-fc47547f.system.entry.js} +1 -1
- package/dist/calcite/p-fc643963.entry.js +5 -0
- package/dist/calcite/{p-f37563ac.system.entry.js → p-fcb6db39.system.entry.js} +1 -1
- package/dist/cjs/{CalciteExpandToggle-0d802f83.js → CalciteExpandToggle-5f60c98b.js} +1 -1
- package/dist/cjs/{CalciteHeading-381b977d.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 +3 -3
- package/dist/cjs/calcite-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-card.cjs.entry.js +2 -2
- package/dist/cjs/calcite-checkbox.cjs.entry.js +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 +83 -24
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +28 -10
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
- package/dist/cjs/calcite-filter.cjs.entry.js +43 -14
- package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +28 -12
- 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 +70 -17
- 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 +103 -71
- package/dist/cjs/calcite-label.cjs.entry.js +1 -1
- package/dist/cjs/calcite-link.cjs.entry.js +1 -1
- package/dist/cjs/calcite-list_3.cjs.entry.js +3 -3
- package/dist/cjs/calcite-loader.cjs.entry.js +2 -2
- 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 +5 -5
- 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 +29 -48
- 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 +2 -2
- package/dist/cjs/calcite-tip_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +3 -3
- 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 +3 -3
- package/dist/cjs/form-a5b44a1f.js +179 -0
- package/dist/cjs/{index-1987a382.js → index-6b5d2de5.js} +81 -429
- package/dist/cjs/{label-549c3d9d.js → label-8e3552b2.js} +33 -4
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{popper-cd9c0742.js → popper-87bf13e6.js} +2 -2
- package/dist/cjs/{resources-7dcd68d1.js → resources-3f7b51c8.js} +1 -1
- package/dist/cjs/{resources-d0619f6a.js → resources-cd25dbae.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/calcite-accordion/calcite-accordion.js +2 -2
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +8 -8
- package/dist/collection/components/calcite-action/calcite-action.js +4 -4
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +2 -2
- package/dist/collection/components/calcite-alert/calcite-alert.js +6 -6
- package/dist/collection/components/calcite-block/calcite-block.css +2 -2
- package/dist/collection/components/calcite-block/calcite-block.js +4 -4
- package/dist/collection/components/calcite-button/calcite-button.css +20 -14
- package/dist/collection/components/calcite-button/calcite-button.js +4 -4
- package/dist/collection/components/calcite-card/calcite-card.js +8 -8
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +22 -11
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +71 -120
- package/dist/collection/components/calcite-chip/calcite-chip.js +2 -2
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +59 -56
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +15 -19
- package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.js +2 -2
- package/dist/collection/components/calcite-combobox/calcite-combobox.css +18 -0
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +146 -26
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +51 -21
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +2 -2
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +6 -6
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +5 -5
- package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +2 -2
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +33 -27
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +6 -6
- package/dist/collection/components/calcite-fab/calcite-fab.js +2 -2
- package/dist/collection/components/calcite-filter/calcite-filter.js +108 -19
- package/dist/collection/components/calcite-graph/calcite-graph.js +48 -6
- package/dist/collection/components/calcite-graph/util.js +1 -1
- package/dist/collection/components/calcite-handle/calcite-handle.js +2 -2
- 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/penMark16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/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/subscript16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript32.json +1 -0
- package/dist/collection/components/calcite-icon/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 +55 -44
- 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 +144 -81
- 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 +174 -51
- package/dist/collection/components/calcite-input-message/calcite-input-message.js +2 -2
- 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-label/calcite-label.js +2 -2
- package/dist/collection/components/calcite-list-item/calcite-list-item.css +7 -0
- package/dist/collection/components/calcite-loader/calcite-loader.css +0 -3
- package/dist/collection/components/calcite-modal/calcite-modal.js +2 -2
- package/dist/collection/components/calcite-notice/calcite-notice.js +2 -2
- package/dist/collection/components/calcite-option/calcite-option.js +2 -2
- package/dist/collection/components/calcite-option-group/calcite-option-group.js +2 -2
- package/dist/collection/components/calcite-pagination/calcite-pagination.js +8 -8
- package/dist/collection/components/calcite-panel/calcite-panel.css +8 -4
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +10 -10
- package/dist/collection/components/calcite-popover/calcite-popover.css +1 -0
- package/dist/collection/components/calcite-popover/calcite-popover.js +9 -9
- package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +2 -2
- package/dist/collection/components/calcite-radio/calcite-radio.js +4 -4
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +18 -1
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +95 -96
- 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-radio-group-item/calcite-radio-group-item.js +2 -2
- package/dist/collection/components/calcite-rating/calcite-rating.css +15 -0
- package/dist/collection/components/calcite-rating/calcite-rating.js +53 -5
- package/dist/collection/components/calcite-scrim/calcite-scrim.js +2 -2
- package/dist/collection/components/calcite-select/calcite-select.css +15 -0
- package/dist/collection/components/calcite-select/calcite-select.js +91 -5
- 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 +17 -4
- package/dist/collection/components/calcite-slider/calcite-slider.js +48 -4
- package/dist/collection/components/calcite-split-button/calcite-split-button.js +2 -2
- package/dist/collection/components/calcite-stepper/calcite-stepper.js +4 -4
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +14 -14
- package/dist/collection/components/calcite-switch/calcite-switch.css +15 -0
- package/dist/collection/components/calcite-switch/calcite-switch.js +35 -66
- package/dist/collection/components/calcite-tab/calcite-tab.js +4 -4
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +14 -14
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +16 -16
- package/dist/collection/components/calcite-tile/calcite-tile.css +4 -0
- package/dist/collection/components/calcite-tile/calcite-tile.js +2 -2
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +4 -7
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +30 -30
- package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +5 -5
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +2 -2
- package/dist/collection/components/calcite-tree/calcite-tree.js +10 -10
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +35 -28
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +6 -6
- package/dist/collection/utils/form.js +167 -14
- package/dist/collection/utils/label.js +33 -4
- package/dist/collection/utils/popper.js +2 -2
- package/dist/components/calcite-accordion-item.js +2 -2
- package/dist/components/calcite-accordion.js +2 -2
- package/dist/components/calcite-action-bar.js +2 -2
- package/dist/components/calcite-action-group2.js +2 -2
- package/dist/components/calcite-action-menu2.js +2 -2
- package/dist/components/calcite-action-pad.js +2 -2
- package/dist/components/calcite-action2.js +2 -2
- package/dist/components/calcite-alert.js +2 -2
- package/dist/components/calcite-avatar.js +2 -2
- package/dist/components/calcite-block-section.js +2 -2
- package/dist/components/calcite-block.js +3 -3
- package/dist/components/calcite-button2.js +3 -3
- package/dist/components/calcite-card.js +11 -5
- package/dist/components/calcite-checkbox2.js +39 -89
- package/dist/components/calcite-chip2.js +2 -2
- package/dist/components/calcite-color-picker-hex-input2.js +13 -17
- package/dist/components/calcite-color-picker-swatch2.js +2 -2
- package/dist/components/calcite-color-picker.js +15 -12
- package/dist/components/calcite-combobox-item-group.js +2 -2
- package/dist/components/calcite-combobox-item.js +2 -2
- package/dist/components/calcite-combobox.js +85 -23
- package/dist/components/calcite-date-picker-day2.js +2 -2
- package/dist/components/calcite-date-picker-month-header2.js +2 -2
- package/dist/components/calcite-date-picker-month2.js +2 -2
- package/dist/components/calcite-date-picker2.js +27 -9
- package/dist/components/calcite-dropdown-group.js +2 -2
- package/dist/components/calcite-dropdown-item.js +3 -3
- package/dist/components/calcite-dropdown2.js +3 -3
- package/dist/components/calcite-fab.js +2 -2
- package/dist/components/calcite-filter2.js +47 -16
- package/dist/components/calcite-flow.js +2 -2
- package/dist/components/calcite-graph2.js +20 -10
- package/dist/components/calcite-handle2.js +2 -2
- package/dist/components/calcite-icon2.js +2 -2
- package/dist/components/calcite-inline-editable.js +52 -42
- package/dist/components/calcite-input-date-picker.js +71 -15
- package/dist/components/calcite-input-message.js +2 -2
- package/dist/components/calcite-input-time-picker.js +14 -4
- package/dist/components/calcite-input2.js +107 -72
- package/dist/components/calcite-label.js +1 -75
- package/dist/components/calcite-label2.js +81 -0
- package/dist/components/calcite-link2.js +2 -2
- package/dist/components/calcite-list-item-group.js +2 -2
- package/dist/components/calcite-list-item.js +3 -3
- package/dist/components/calcite-list.js +2 -2
- package/dist/components/calcite-loader2.js +3 -3
- package/dist/components/calcite-modal.js +2 -2
- package/dist/components/calcite-notice.js +2 -2
- package/dist/components/calcite-option-group.js +2 -2
- package/dist/components/calcite-option.js +2 -2
- package/dist/components/calcite-pagination.js +2 -2
- package/dist/components/calcite-panel.js +3 -3
- package/dist/components/calcite-pick-list-group.js +2 -2
- package/dist/components/calcite-pick-list-item2.js +2 -2
- package/dist/components/calcite-pick-list.js +2 -2
- package/dist/components/calcite-popover-manager.js +2 -2
- package/dist/components/calcite-popover2.js +4 -4
- package/dist/components/calcite-progress2.js +2 -2
- package/dist/components/calcite-radio-button-group.js +2 -2
- package/dist/components/calcite-radio-button.js +83 -76
- package/dist/components/calcite-radio-group-item.js +2 -2
- package/dist/components/calcite-radio-group.js +22 -24
- package/dist/components/calcite-radio2.js +2 -2
- package/dist/components/calcite-rating.js +15 -4
- package/dist/components/calcite-scrim2.js +2 -2
- package/dist/components/calcite-select.js +34 -5
- package/dist/components/calcite-shell-center-row.js +2 -2
- package/dist/components/calcite-shell-panel.js +5 -4
- package/dist/components/calcite-shell.js +3 -3
- package/dist/components/calcite-slider.js +15 -5
- package/dist/components/calcite-sortable-list.js +2 -2
- package/dist/components/calcite-split-button.js +2 -2
- package/dist/components/calcite-stepper-item.js +2 -2
- package/dist/components/calcite-stepper.js +2 -2
- package/dist/components/calcite-switch2.js +32 -53
- package/dist/components/calcite-tab-nav2.js +2 -2
- package/dist/components/calcite-tab-title2.js +2 -2
- package/dist/components/calcite-tab2.js +2 -2
- package/dist/components/calcite-tabs2.js +2 -2
- package/dist/components/calcite-tile-select-group.js +2 -2
- package/dist/components/calcite-tile-select.js +3 -5
- package/dist/components/calcite-tile2.js +3 -3
- package/dist/components/calcite-time-picker2.js +2 -2
- package/dist/components/calcite-tip-group.js +2 -2
- package/dist/components/calcite-tip-manager.js +2 -2
- package/dist/components/calcite-tip.js +2 -2
- package/dist/components/calcite-tooltip-manager2.js +2 -2
- package/dist/components/calcite-tooltip.js +3 -3
- package/dist/components/calcite-tree-item.js +17 -10
- package/dist/components/calcite-tree.js +2 -2
- package/dist/components/calcite-value-list-item.js +2 -2
- package/dist/components/calcite-value-list.js +2 -2
- package/dist/components/form.js +169 -15
- package/dist/components/label.js +33 -4
- package/dist/components/popper.js +2 -2
- package/dist/custom-elements/index.js +945 -572
- package/dist/esm/{CalciteExpandToggle-151a563a.js → CalciteExpandToggle-677f2f8b.js} +1 -1
- package/dist/esm/{CalciteHeading-1735f17a.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 +3 -3
- package/dist/esm/calcite-button.entry.js +3 -3
- package/dist/esm/calcite-card.entry.js +2 -2
- package/dist/esm/calcite-checkbox.entry.js +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 +83 -24
- package/dist/esm/calcite-date-picker_4.entry.js +28 -10
- package/dist/esm/calcite-dropdown_3.entry.js +4 -4
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/calcite-filter.entry.js +43 -14
- package/dist/esm/calcite-flow.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +28 -12
- 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 +70 -17
- 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 +104 -72
- package/dist/esm/calcite-label.entry.js +1 -1
- package/dist/esm/calcite-link.entry.js +1 -1
- package/dist/esm/calcite-list_3.entry.js +3 -3
- package/dist/esm/calcite-loader.entry.js +2 -2
- 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 +5 -5
- 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 +30 -49
- 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 +2 -2
- package/dist/esm/calcite-tip_3.entry.js +2 -2
- package/dist/esm/calcite-tooltip_2.entry.js +3 -3
- 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 +3 -3
- package/dist/esm/form-160b0fb5.js +174 -0
- package/dist/esm/{index-d653c37f.js → index-9de00868.js} +81 -429
- package/dist/esm/{label-bb61bdef.js → label-5559055d.js} +33 -4
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{popper-7499ea4f.js → popper-dc4b45cf.js} +2 -2
- package/dist/esm/{resources-510eed1a.js → resources-16a2a25a.js} +1 -1
- package/dist/esm/{resources-3b481489.js → resources-bece7a88.js} +1 -1
- package/dist/esm-es5/{CalciteExpandToggle-151a563a.js → CalciteExpandToggle-677f2f8b.js} +1 -1
- package/dist/esm-es5/{CalciteHeading-1735f17a.js → CalciteHeading-1d6cd311.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
- package/dist/esm-es5/calcite-action.entry.js +1 -1
- package/dist/esm-es5/calcite-alert.entry.js +1 -1
- package/dist/esm-es5/calcite-avatar.entry.js +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-button.entry.js +1 -1
- package/dist/esm-es5/calcite-card.entry.js +1 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
- package/dist/esm-es5/calcite-chip.entry.js +1 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
- package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
- package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm-es5/calcite-fab.entry.js +1 -1
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow.entry.js +1 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-handle.entry.js +1 -1
- package/dist/esm-es5/calcite-icon.entry.js +1 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
- package/dist/esm-es5/calcite-input-message.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +1 -1
- package/dist/esm-es5/calcite-link.entry.js +1 -1
- package/dist/esm-es5/calcite-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-loader.entry.js +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +1 -1
- package/dist/esm-es5/calcite-notice.entry.js +1 -1
- package/dist/esm-es5/calcite-option_3.entry.js +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +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 +2 -2
- 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/popper-dc4b45cf.js +5 -0
- package/dist/esm-es5/{resources-510eed1a.js → resources-16a2a25a.js} +1 -1
- package/dist/esm-es5/{resources-3b481489.js → resources-bece7a88.js} +1 -1
- package/dist/extras/docs-json.json +797 -480
- 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 +24 -1
- package/dist/types/components/calcite-graph/calcite-graph.d.ts +4 -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 +21 -9
- 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-modal/calcite-modal.d.ts +2 -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 +199 -22
- package/dist/types/utils/form.d.ts +112 -1
- package/dist/types/utils/label.d.ts +5 -0
- package/dist/types/utils/popper.d.ts +1 -1
- package/hydrate/index.js +889 -497
- package/package.json +20 -21
- package/readme.md +5 -5
- package/CHANGELOG.md +0 -1492
- package/dist/calcite/p-07ba39b6.js +0 -5
- package/dist/calcite/p-0fb8cdc5.entry.js +0 -5
- package/dist/calcite/p-0fd333ff.entry.js +0 -5
- package/dist/calcite/p-18574b32.entry.js +0 -5
- package/dist/calcite/p-24b86e03.entry.js +0 -5
- package/dist/calcite/p-26045881.entry.js +0 -5
- package/dist/calcite/p-29b110b2.entry.js +0 -5
- package/dist/calcite/p-2ba00b89.js +0 -5
- package/dist/calcite/p-3331d93d.system.entry.js +0 -5
- package/dist/calcite/p-349333f8.system.entry.js +0 -5
- package/dist/calcite/p-34a1c944.entry.js +0 -5
- package/dist/calcite/p-361ddbb6.entry.js +0 -5
- package/dist/calcite/p-43494684.entry.js +0 -5
- package/dist/calcite/p-47313747.system.js +0 -5
- package/dist/calcite/p-485062f4.system.entry.js +0 -5
- package/dist/calcite/p-4e06a168.entry.js +0 -5
- package/dist/calcite/p-530584ff.system.entry.js +0 -5
- package/dist/calcite/p-568ed3d6.system.entry.js +0 -5
- package/dist/calcite/p-5c221c33.system.entry.js +0 -5
- package/dist/calcite/p-67fd79db.entry.js +0 -5
- package/dist/calcite/p-693a4d5f.entry.js +0 -5
- package/dist/calcite/p-727c8f36.system.entry.js +0 -5
- package/dist/calcite/p-728501db.system.js +0 -5
- package/dist/calcite/p-745e41ea.entry.js +0 -5
- package/dist/calcite/p-7a544774.system.entry.js +0 -5
- package/dist/calcite/p-7f4a5f8e.system.entry.js +0 -5
- package/dist/calcite/p-81a82d01.system.entry.js +0 -5
- package/dist/calcite/p-93d8a7d5.entry.js +0 -5
- package/dist/calcite/p-9965ea81.system.js +0 -5
- package/dist/calcite/p-9ac1fa0b.system.entry.js +0 -5
- package/dist/calcite/p-9caae570.entry.js +0 -5
- package/dist/calcite/p-9d3ee5cf.system.entry.js +0 -5
- package/dist/calcite/p-a7521c0d.entry.js +0 -5
- package/dist/calcite/p-b701101e.entry.js +0 -5
- package/dist/calcite/p-ba255377.entry.js +0 -5
- package/dist/calcite/p-bcc323ec.system.entry.js +0 -5
- package/dist/calcite/p-bfc162ee.system.entry.js +0 -5
- package/dist/calcite/p-c1995144.system.entry.js +0 -5
- package/dist/calcite/p-c31243c5.entry.js +0 -5
- package/dist/calcite/p-c74fc589.system.js +0 -5
- package/dist/calcite/p-cb228ac0.entry.js +0 -5
- package/dist/calcite/p-cbdf0e6c.js +0 -5
- package/dist/calcite/p-d35e423d.js +0 -5
- package/dist/calcite/p-d5d62977.entry.js +0 -5
- package/dist/calcite/p-d7a7a544.system.entry.js +0 -5
- package/dist/calcite/p-de0f4633.entry.js +0 -5
- package/dist/calcite/p-e9044cc1.entry.js +0 -5
- package/dist/calcite/p-eedb78db.entry.js +0 -5
- package/dist/calcite/p-f5d25746.system.entry.js +0 -5
- package/dist/calcite/p-fb1da0f5.system.js +0 -5
- package/dist/calcite/p-fe52131d.entry.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-d653c37f.js +0 -5
- package/dist/esm-es5/label-bb61bdef.js +0 -5
- package/dist/esm-es5/popper-7499ea4f.js +0 -5
|
@@ -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 {
|
|
5
|
+
import { createEvent, h, Host, Build, forceUpdate, Fragment, getAssetPath, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
6
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -39,7 +39,7 @@ let CalciteAccordion$1 = class extends HTMLElement {
|
|
|
39
39
|
constructor() {
|
|
40
40
|
super();
|
|
41
41
|
this.__registerHost();
|
|
42
|
-
|
|
42
|
+
this.__attachShadow();
|
|
43
43
|
this.calciteAccordionChange = createEvent(this, "calciteAccordionChange", 7);
|
|
44
44
|
//--------------------------------------------------------------------------
|
|
45
45
|
//
|
|
@@ -336,7 +336,7 @@ let CalciteAccordionItem$1 = class extends HTMLElement {
|
|
|
336
336
|
constructor() {
|
|
337
337
|
super();
|
|
338
338
|
this.__registerHost();
|
|
339
|
-
|
|
339
|
+
this.__attachShadow();
|
|
340
340
|
this.calciteAccordionItemKeyEvent = createEvent(this, "calciteAccordionItemKeyEvent", 7);
|
|
341
341
|
this.calciteAccordionItemSelect = createEvent(this, "calciteAccordionItemSelect", 7);
|
|
342
342
|
this.calciteAccordionItemClose = createEvent(this, "calciteAccordionItemClose", 7);
|
|
@@ -483,7 +483,7 @@ let CalciteAction$1 = class extends HTMLElement {
|
|
|
483
483
|
constructor() {
|
|
484
484
|
super();
|
|
485
485
|
this.__registerHost();
|
|
486
|
-
|
|
486
|
+
this.__attachShadow();
|
|
487
487
|
this.calciteActionClick = createEvent(this, "calciteActionClick", 7);
|
|
488
488
|
// --------------------------------------------------------------------------
|
|
489
489
|
//
|
|
@@ -1980,7 +1980,7 @@ let CalciteActionBar$1 = class extends HTMLElement {
|
|
|
1980
1980
|
constructor() {
|
|
1981
1981
|
super();
|
|
1982
1982
|
this.__registerHost();
|
|
1983
|
-
|
|
1983
|
+
this.__attachShadow();
|
|
1984
1984
|
this.calciteActionBarToggle = createEvent(this, "calciteActionBarToggle", 7);
|
|
1985
1985
|
// --------------------------------------------------------------------------
|
|
1986
1986
|
//
|
|
@@ -2156,7 +2156,7 @@ let CalciteActionGroup$1 = class extends HTMLElement {
|
|
|
2156
2156
|
constructor() {
|
|
2157
2157
|
super();
|
|
2158
2158
|
this.__registerHost();
|
|
2159
|
-
|
|
2159
|
+
this.__attachShadow();
|
|
2160
2160
|
// --------------------------------------------------------------------------
|
|
2161
2161
|
//
|
|
2162
2162
|
// Properties
|
|
@@ -2223,7 +2223,7 @@ let CalciteActionMenu$1 = class extends HTMLElement {
|
|
|
2223
2223
|
constructor() {
|
|
2224
2224
|
super();
|
|
2225
2225
|
this.__registerHost();
|
|
2226
|
-
|
|
2226
|
+
this.__attachShadow();
|
|
2227
2227
|
this.calciteActionMenuOpenChange = createEvent(this, "calciteActionMenuOpenChange", 7);
|
|
2228
2228
|
// --------------------------------------------------------------------------
|
|
2229
2229
|
//
|
|
@@ -2512,7 +2512,7 @@ let CalciteActionPad$1 = class extends HTMLElement {
|
|
|
2512
2512
|
constructor() {
|
|
2513
2513
|
super();
|
|
2514
2514
|
this.__registerHost();
|
|
2515
|
-
|
|
2515
|
+
this.__attachShadow();
|
|
2516
2516
|
this.calciteActionPadToggle = createEvent(this, "calciteActionPadToggle", 7);
|
|
2517
2517
|
// --------------------------------------------------------------------------
|
|
2518
2518
|
//
|
|
@@ -2645,7 +2645,7 @@ let CalciteAlert$1 = class extends HTMLElement {
|
|
|
2645
2645
|
constructor() {
|
|
2646
2646
|
super();
|
|
2647
2647
|
this.__registerHost();
|
|
2648
|
-
|
|
2648
|
+
this.__attachShadow();
|
|
2649
2649
|
this.calciteAlertClose = createEvent(this, "calciteAlertClose", 7);
|
|
2650
2650
|
this.calciteAlertOpen = createEvent(this, "calciteAlertOpen", 7);
|
|
2651
2651
|
this.calciteAlertSync = createEvent(this, "calciteAlertSync", 7);
|
|
@@ -2973,7 +2973,7 @@ let CalciteAvatar$1 = class extends HTMLElement {
|
|
|
2973
2973
|
constructor() {
|
|
2974
2974
|
super();
|
|
2975
2975
|
this.__registerHost();
|
|
2976
|
-
|
|
2976
|
+
this.__attachShadow();
|
|
2977
2977
|
//--------------------------------------------------------------------------
|
|
2978
2978
|
//
|
|
2979
2979
|
// Properties
|
|
@@ -3096,13 +3096,13 @@ const CalciteHeading = (props, children) => {
|
|
|
3096
3096
|
return h(HeadingTag, Object.assign({}, props), children);
|
|
3097
3097
|
};
|
|
3098
3098
|
|
|
3099
|
-
const calciteBlockCss = "@-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}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-direction:column;flex-direction:column;padding:0;-webkit-transition-property:margin;transition-property:margin;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);border-width:0;border-bottom-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid;-ms-flex-preferred-size:auto;flex-basis:auto}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:justify;align-content:space-between;color:var(--calcite-ui-text-2);}.heading{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.header{-ms-flex-pack:start;justify-content:flex-start;padding:0}.header,.toggle{grid-area:header}.header-container{display:grid;-ms-flex-align:stretch;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:\"handle header control menu\";grid-column:header-start/menu-end;grid-row:1/2}.header-container>.header{padding-top:0.75rem;padding-bottom:0.75rem;padding-left:0;padding-right:0}.toggle{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;font-family:inherit;-ms-flex-align:center;align-items:center;margin:0;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:0;padding-right:0;border-style:none;cursor:pointer;text-align:left;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;background-color:transparent}.toggle:hover{background-color:var(--calcite-ui-foreground-2)}.toggle:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-loader[inline]{grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0;padding-left:
|
|
3099
|
+
const calciteBlockCss = "@-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}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-direction:column;flex-direction:column;padding:0;-webkit-transition-property:margin;transition-property:margin;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);border-width:0;border-bottom-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid;-ms-flex-preferred-size:auto;flex-basis:auto}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:justify;align-content:space-between;color:var(--calcite-ui-text-2);}.heading{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.header{-ms-flex-pack:start;justify-content:flex-start;padding:0}.header,.toggle{grid-area:header}.header-container{display:grid;-ms-flex-align:stretch;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:\"handle header control menu\";grid-column:header-start/menu-end;grid-row:1/2}.header-container>.header{padding-top:0.75rem;padding-bottom:0.75rem;padding-left:0;padding-right:0}.toggle{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;font-family:inherit;-ms-flex-align:center;align-items:center;margin:0;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:0;padding-right:0;border-style:none;cursor:pointer;text-align:left;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;background-color:transparent}.toggle:hover{background-color:var(--calcite-ui-foreground-2)}.toggle:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}calcite-loader[inline]{grid-area:control;align-self:center}calcite-handle{grid-area:handle}.title{margin:0;padding-left:0.75rem;padding-right:0.75rem;padding-top:0;padding-bottom:0}.header .title .heading{padding:0;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2);font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;line-height:1.25;-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.summary{padding:0;font-size:var(--calcite-font-size--2);color:var(--calcite-ui-text-3);margin-top:0.125rem;word-wrap:break-word;word-break:break-word}.icon{margin-left:0.75rem}.status-icon.valid{color:var(--calcite-ui-success)}.status-icon.invalid{color:var(--calcite-ui-danger)}.status-icon.loading{-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}50%{-webkit-transform:rotate(180deg);transform:rotate(180deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.toggle-icon{margin-right:1rem;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-3);-webkit-transition-property:color;transition-property:color;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.toggle:hover .toggle-icon{color:var(--calcite-ui-text-1)}.content{padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem;position:relative;-webkit-animation:in var(--calcite-animation-timing) ease-in-out;animation:in var(--calcite-animation-timing) ease-in-out}.control-container{display:-ms-flexbox;display:flex;margin:0;grid-area:control}calcite-action-menu{grid-area:menu}.calcite--rtl .toggle-icon{margin-right:0;margin-left:1rem}.calcite--rtl .icon{margin-left:0;margin-right:0.75rem}:host([open]){margin-top:0.5rem;margin-bottom:0.5rem}:host([open]) .header .title .heading{color:var(--calcite-ui-text-1)}:host([disabled]){pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;user-select:none}:host([disabled]) .header-container{opacity:0.5}:host([drag-handle]) .calcite--rtl .title{padding-left:0;padding-right:0.25rem}";
|
|
3100
3100
|
|
|
3101
3101
|
let CalciteBlock$1 = class extends HTMLElement {
|
|
3102
3102
|
constructor() {
|
|
3103
3103
|
super();
|
|
3104
3104
|
this.__registerHost();
|
|
3105
|
-
|
|
3105
|
+
this.__attachShadow();
|
|
3106
3106
|
this.calciteBlockToggle = createEvent(this, "calciteBlockToggle", 7);
|
|
3107
3107
|
// --------------------------------------------------------------------------
|
|
3108
3108
|
//
|
|
@@ -3218,7 +3218,7 @@ let CalciteBlockSection$1 = class extends HTMLElement {
|
|
|
3218
3218
|
constructor() {
|
|
3219
3219
|
super();
|
|
3220
3220
|
this.__registerHost();
|
|
3221
|
-
|
|
3221
|
+
this.__attachShadow();
|
|
3222
3222
|
this.calciteBlockSectionToggle = createEvent(this, "calciteBlockSectionToggle", 7);
|
|
3223
3223
|
/**
|
|
3224
3224
|
* When true, the block's section content will be displayed.
|
|
@@ -3327,14 +3327,43 @@ const TEXT$h = {
|
|
|
3327
3327
|
loading: "Loading"
|
|
3328
3328
|
};
|
|
3329
3329
|
|
|
3330
|
-
|
|
3330
|
+
/**
|
|
3331
|
+
* Exported for testing purposes only
|
|
3332
|
+
* @internal
|
|
3333
|
+
*/
|
|
3331
3334
|
const labelClickEvent = "calciteInternalLabelClick";
|
|
3335
|
+
const labelTagName = "calcite-label";
|
|
3332
3336
|
const onLabelClickMap = new WeakMap();
|
|
3333
3337
|
const findLabelForComponent = (componentEl) => {
|
|
3334
|
-
const id = componentEl
|
|
3335
|
-
|
|
3336
|
-
|
|
3338
|
+
const { id } = componentEl;
|
|
3339
|
+
const forLabel = id && queryElementRoots(componentEl, `${labelTagName}[for="${id}"]`);
|
|
3340
|
+
if (forLabel) {
|
|
3341
|
+
return forLabel;
|
|
3342
|
+
}
|
|
3343
|
+
const parentLabel = closestElementCrossShadowBoundary(componentEl, labelTagName);
|
|
3344
|
+
if (!parentLabel ||
|
|
3345
|
+
// labelable components within other custom elements are not considered labelable
|
|
3346
|
+
hasAncestorCustomElements(parentLabel, componentEl)) {
|
|
3347
|
+
return null;
|
|
3348
|
+
}
|
|
3349
|
+
return parentLabel;
|
|
3337
3350
|
};
|
|
3351
|
+
function hasAncestorCustomElements(label, componentEl) {
|
|
3352
|
+
let traversedElements;
|
|
3353
|
+
const customElementAncestorCheckEventType = "custom-element-ancestor-check";
|
|
3354
|
+
const listener = (event) => {
|
|
3355
|
+
event.stopImmediatePropagation();
|
|
3356
|
+
const composedPath = event.composedPath();
|
|
3357
|
+
traversedElements = composedPath.slice(composedPath.indexOf(componentEl), composedPath.indexOf(label));
|
|
3358
|
+
};
|
|
3359
|
+
label.addEventListener(customElementAncestorCheckEventType, listener, { once: true });
|
|
3360
|
+
componentEl.dispatchEvent(new CustomEvent(customElementAncestorCheckEventType, { composed: true, bubbles: true }));
|
|
3361
|
+
label.removeEventListener(customElementAncestorCheckEventType, listener);
|
|
3362
|
+
const ancestorCustomElements = traversedElements
|
|
3363
|
+
.filter((el) => el !== componentEl && el !== label)
|
|
3364
|
+
.filter((el) => { var _a; return (_a = el.tagName) === null || _a === void 0 ? void 0 : _a.includes("-"); });
|
|
3365
|
+
return ancestorCustomElements.length > 0;
|
|
3366
|
+
}
|
|
3338
3367
|
/**
|
|
3339
3368
|
* Helper to set up label interactions on connectedCallback.
|
|
3340
3369
|
*/
|
|
@@ -3374,13 +3403,13 @@ function onLabelClick(event) {
|
|
|
3374
3403
|
this.onLabelClick(event);
|
|
3375
3404
|
}
|
|
3376
3405
|
|
|
3377
|
-
const calciteButtonCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;width:auto;vertical-align:middle}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{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}:host button:focus,:host a:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host button,:host a{--calcite-button-content-margin:0.5rem;--calcite-button-padding-x:7px;--calcite-button-padding-y:3px;padding:var(--calcite-button-padding-y) var(--calcite-button-padding-x) var(--calcite-button-padding-y) var(--calcite-button-padding-x);position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-decoration:none;width:100%;height:100%;border-radius:0;border-style:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:inherit;font-weight:var(--calcite-font-weight-normal);-webkit-transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out, -webkit-box-shadow 0.15s ease-in-out}:host button:hover,:host a:hover{text-decoration:none}.content{display:-ms-flexbox;display:flex;-ms-flex-preferred-size:auto;flex-basis:auto;margin-left:var(--calcite-button-content-margin);margin-right:var(--calcite-button-content-margin)}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-content-margin:0.75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-button-content-margin:1rem}:host(:not([icon-start])) .content{margin-left:unset}:host(:not([icon-end])) .content{margin-right:unset}:host([icon-start]:not([icon-end])) .calcite--rtl .content{margin-left:unset;margin-right:var(--calcite-button-content-margin)}:host([icon-end]:not([icon-start])) .calcite--rtl .content{margin-right:unset;margin-left:var(--calcite-button-content-margin)}:host([width=auto]){width:auto}:host([width=half]){width:50%}:host([width=full]){width:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{-ms-flex-pack:center;justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{-ms-flex-pack:start;justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{-ms-flex-pack:justify;justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-right:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-left:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-start-space-between]:not([width=auto])) .calcite--rtl .icon--start{margin-right:unset;margin-left:auto}:host([alignment=icon-end-space-between]:not([width=auto])) .calcite--rtl .icon--end{margin-left:unset;margin-right:auto}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-left:var(--calcite-button-content-margin)}:host([alignment=center]) a.calcite--rtl:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button.calcite--rtl:not(.content--slotted) .icon--start+.icon--end{margin-left:unset;margin-right:var(--calcite-button-content-margin)}.icon{display:-ms-inline-flexbox;display:inline-flex;position:relative;margin:0;font-weight:var(--calcite-font-weight-normal);line-height:inherit}:host([loading]),:host([disabled]){pointer-events:none}:host([loading]) button,:host([loading]) a,:host([disabled]) button,:host([disabled]) a{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}@-webkit-keyframes loader-in{0%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}100%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes loader-in{0%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}100%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes loader-out{0%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}}@keyframes loader-out{0%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}}.calcite-button--loader{display:-ms-flexbox;display:flex}.calcite-button--loader calcite-loader{margin:0;-webkit-transition:width 300ms ease-in-out, opacity 300ms ease-in-out, -webkit-transform 300ms ease-in-out;transition:width 300ms ease-in-out, opacity 300ms ease-in-out, -webkit-transform 300ms ease-in-out;transition:width 300ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out;transition:width 300ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out, -webkit-transform 300ms ease-in-out}.calcite-button--loader calcite-loader.loading-in{-webkit-animation-name:loader-in;animation-name:loader-in;-webkit-animation-duration:310ms;animation-duration:310ms}.calcite-button--loader calcite-loader.loading-out{-webkit-animation-name:loader-out;animation-name:loader-out;-webkit-animation-duration:310ms;animation-duration:310ms}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{-webkit-margin-end:var(--calcite-button-content-margin);margin-inline-end:var(--calcite-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance=solid]) button,:host([appearance=solid]) a{border-width:1px;border-style:solid;border-color:transparent}:host([appearance=solid][color=blue]) button,:host([appearance=solid][color=blue]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-brand)}:host([appearance=solid][color=blue]) button:hover,:host([appearance=solid][color=blue]) button:focus,:host([appearance=solid][color=blue]) a:hover,:host([appearance=solid][color=blue]) a:focus{background-color:var(--calcite-ui-brand-hover)}:host([appearance=solid][color=blue]) button:active,:host([appearance=solid][color=blue]) a:active{background-color:var(--calcite-ui-brand-press)}:host([appearance=solid][color=blue]) button calcite-loader,:host([appearance=solid][color=blue]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=red]) button,:host([appearance=solid][color=red]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-danger)}:host([appearance=solid][color=red]) button:hover,:host([appearance=solid][color=red]) button:focus,:host([appearance=solid][color=red]) a:hover,:host([appearance=solid][color=red]) a:focus{background-color:var(--calcite-ui-danger-hover)}:host([appearance=solid][color=red]) button:active,:host([appearance=solid][color=red]) a:active{background-color:var(--calcite-ui-danger-press)}:host([appearance=solid][color=red]) button calcite-loader,:host([appearance=solid][color=red]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=neutral]) button,:host([appearance=solid][color=neutral]) a{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}:host([appearance=solid][color=neutral]) button:hover,:host([appearance=solid][color=neutral]) button:focus,:host([appearance=solid][color=neutral]) a:hover,:host([appearance=solid][color=neutral]) a:focus{background-color:var(--calcite-ui-foreground-2)}:host([appearance=solid][color=neutral]) button:active,:host([appearance=solid][color=neutral]) a:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=solid][color=neutral]) button calcite-loader,:host([appearance=solid][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=solid][color=inverse]) button,:host([appearance=solid][color=inverse]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-inverse)}:host([appearance=solid][color=inverse]) button:hover,:host([appearance=solid][color=inverse]) button:focus,:host([appearance=solid][color=inverse]) a:hover,:host([appearance=solid][color=inverse]) a:focus{background-color:var(--calcite-ui-inverse-hover)}:host([appearance=solid][color=inverse]) button:active,:host([appearance=solid][color=inverse]) a:active{background-color:var(--calcite-ui-inverse-press)}:host([appearance=solid][color=inverse]) button calcite-loader,:host([appearance=solid][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=outline]) button,:host([appearance=outline]) a{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline][color=blue]) button,:host([appearance=outline][color=blue]) a{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand)}:host([appearance=outline][color=blue]) button:hover,:host([appearance=outline][color=blue]) a:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}:host([appearance=outline][color=blue]) button:focus,:host([appearance=outline][color=blue]) a:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([appearance=outline][color=blue]) button:active,:host([appearance=outline][color=blue]) a:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance=outline][color=blue]) button calcite-loader,:host([appearance=outline][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=outline][color=red]) button,:host([appearance=outline][color=red]) a{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger)}:host([appearance=outline][color=red]) button:hover,:host([appearance=outline][color=red]) a:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}:host([appearance=outline][color=red]) button:focus,:host([appearance=outline][color=red]) a:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}:host([appearance=outline][color=red]) button:active,:host([appearance=outline][color=red]) a:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance=outline][color=red]) button calcite-loader,:host([appearance=outline][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=outline][color=neutral]) button,:host([appearance=outline][color=neutral]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:hover,:host([appearance=outline][color=neutral]) a:hover{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:focus,:host([appearance=outline][color=neutral]) a:focus{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:active,:host([appearance=outline][color=neutral]) a:active{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button calcite-loader,:host([appearance=outline][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=outline][color=inverse]) button,:host([appearance=outline][color=inverse]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}:host([appearance=outline][color=inverse]) button:hover,:host([appearance=outline][color=inverse]) a:hover{border-color:var(--calcite-ui-inverse-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}:host([appearance=outline][color=inverse]) button:focus,:host([appearance=outline][color=inverse]) a:focus{border-color:var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}:host([appearance=outline][color=inverse]) button:active,:host([appearance=outline][color=inverse]) a:active{border-color:var(--calcite-ui-inverse-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}:host([appearance=outline][color=inverse]) button calcite-loader,:host([appearance=outline][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=clear]) button,:host([appearance=clear]) a{background-color:transparent;border-width:1px;border-style:solid;-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=clear][color=blue]) button,:host([appearance=clear][color=blue]) a{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand)}:host([appearance=clear][color=blue]) button:hover,:host([appearance=clear][color=blue]) a:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}:host([appearance=clear][color=blue]) button:focus,:host([appearance=clear][color=blue]) a:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([appearance=clear][color=blue]) button:active,:host([appearance=clear][color=blue]) a:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance=clear][color=blue]) button calcite-loader,:host([appearance=clear][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=clear][color=red]) button,:host([appearance=clear][color=red]) a{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger)}:host([appearance=clear][color=red]) button:hover,:host([appearance=clear][color=red]) a:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}:host([appearance=clear][color=red]) button:focus,:host([appearance=clear][color=red]) a:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}:host([appearance=clear][color=red]) button:active,:host([appearance=clear][color=red]) a:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance=clear][color=red]) button calcite-loader,:host([appearance=clear][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=clear][color=neutral]) button,:host([appearance=clear][color=neutral]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:hover,:host([appearance=clear][color=neutral]) a:hover{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:focus,:host([appearance=clear][color=neutral]) a:focus{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:active,:host([appearance=clear][color=neutral]) a:active{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button calcite-loader,:host([appearance=clear][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=clear][color=inverse]) button,:host([appearance=clear][color=inverse]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}:host([appearance=clear][color=inverse]) button:hover,:host([appearance=clear][color=inverse]) a:hover{border-color:var(--calcite-ui-inverse-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}:host([appearance=clear][color=inverse]) button:focus,:host([appearance=clear][color=inverse]) a:focus{border-color:var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}:host([appearance=clear][color=inverse]) button:active,:host([appearance=clear][color=inverse]) a:active{border-color:var(--calcite-ui-inverse-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}:host([appearance=clear][color=inverse]) button calcite-loader,:host([appearance=clear][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=outline][split-child=primary]) button,:host([appearance=clear][split-child=primary]) button{border-right-width:0;border-left-width:1px}:host([appearance=outline][split-child=primary]) button.calcite--rtl,:host([appearance=clear][split-child=primary]) button.calcite--rtl{border-left-width:0;border-right-width:1px}:host([appearance=outline][split-child=secondary]) button,:host([appearance=clear][split-child=secondary]) button{border-left-width:0;border-right-width:1px}:host([appearance=outline][split-child=secondary]) button.calcite--rtl,:host([appearance=clear][split-child=secondary]) button.calcite--rtl{border-right-width:0;border-left-width:1px}:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) button,:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) a{background-color:transparent}:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) button:hover,:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) button:focus,:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) a:hover,:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) a:focus{background-color:var(--calcite-button-transparent-hover)}:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) button:active,:host([appearance=transparent]:not(.calcite-inline-editable__enable-editing-button)) a:active{background-color:var(--calcite-button-transparent-press)}:host([appearance=transparent][color=blue]) button,:host([appearance=transparent][color=blue]) a{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=blue]) button:hover,:host([appearance=transparent][color=blue]) a:hover{color:var(--calcite-ui-brand-hover)}:host([appearance=transparent][color=blue]) button:focus,:host([appearance=transparent][color=blue]) a:focus{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=blue]) button:active,:host([appearance=transparent][color=blue]) a:active{color:var(--calcite-ui-brand-press)}:host([appearance=transparent][color=blue]) button calcite-loader,:host([appearance=transparent][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=red]) button,:host([appearance=transparent][color=red]) a{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=red]) button:hover,:host([appearance=transparent][color=red]) a:hover{color:var(--calcite-ui-danger-hover)}:host([appearance=transparent][color=red]) button:focus,:host([appearance=transparent][color=red]) a:focus{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=red]) button:active,:host([appearance=transparent][color=red]) a:active{color:var(--calcite-ui-danger-press)}:host([appearance=transparent][color=red]) button calcite-loader,:host([appearance=transparent][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=neutral]:not(.calcite-inline-editable__cancel-editing-button)) button,:host([appearance=transparent][color=neutral]:not(.calcite-inline-editable__cancel-editing-button)) a,:host([appearance=transparent][color=neutral]:not(.calcite-inline-editable__cancel-editing-button)) calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].calcite-inline-editable__cancel-editing-button) button{color:var(--calcite-ui-text-3);border-top-width:1px;border-top-color:var(--calcite-ui-border-input);border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-input);border-bottom-style:solid;border-top-style:solid}:host([appearance=transparent][color=neutral].calcite-inline-editable__cancel-editing-button) button:not(.content--slotted){--calcite-button-padding-y:0}:host([appearance=transparent][color=neutral].calcite-inline-editable__cancel-editing-button) button:hover{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].calcite-inline-editable__enable-editing-button) button{background-color:transparent}:host([appearance=transparent][color=inverse]) button,:host([appearance=transparent][color=inverse]) a,:host([appearance=transparent][color=inverse]) calcite-loader{color:var(--calcite-ui-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:0.5rem;--calcite-button-padding-y:0.25rem}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-button-padding-x:11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]:not([appearance=transparent])) button.content--slotted,:host([scale=m]:not([appearance=transparent])) a.content--slotted{--calcite-button-padding-y:7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:0.75rem;--calcite-button-padding-y:0.5rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-button-padding-x:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]:not([appearance=transparent])) button.content--slotted,:host([scale=l]:not([appearance=transparent])) a.content--slotted{--calcite-button-padding-y:11px}:host([scale=l][appearance=transparent]) button.content--slotted,:host([scale=l][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:1rem;--calcite-button-padding-y:0.75rem}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:3px;font-size:var(--calcite-font-size-0);line-height:1.25rem;width:1.5rem;min-height:1.5rem}:host([scale=s][appearance=transparent]) button:not(.content--slotted),:host([scale=s][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.25rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:7px;font-size:var(--calcite-font-size-0);line-height:1.25rem;width:2rem;min-height:2rem}:host([scale=m][appearance=transparent]) button:not(.content--slotted),:host([scale=m][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.5rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:9px;font-size:var(--calcite-font-size-0);line-height:1.25rem;width:2.75rem;min-height:2.75rem}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:23px;font-size:var(--calcite-font-size-0);line-height:1.25rem;height:1.5rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;height:2rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:43px;font-size:var(--calcite-font-size-0);line-height:1.25rem;height:2.75rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{-webkit-margin-start:1rem;margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:2.75rem}";
|
|
3406
|
+
const calciteButtonCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;width:auto;vertical-align:middle}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{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}:host button:focus,:host a:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}:host button,:host a{--calcite-button-content-margin:0.5rem;--calcite-button-padding-x:7px;--calcite-button-padding-y:3px;padding:var(--calcite-button-padding-y) var(--calcite-button-padding-x) var(--calcite-button-padding-y) var(--calcite-button-padding-x);position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-decoration:none;width:100%;height:100%;border-radius:0;border-style:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:inherit;font-weight:var(--calcite-font-weight-normal);-webkit-transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out, -webkit-box-shadow 0.15s ease-in-out}:host button:hover,:host a:hover{text-decoration:none}.content{display:-ms-flexbox;display:flex;-ms-flex-preferred-size:auto;flex-basis:auto;margin-left:var(--calcite-button-content-margin);margin-right:var(--calcite-button-content-margin)}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-content-margin:0.75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-button-content-margin:1rem}:host(:not([icon-start])) .content{margin-left:unset}:host(:not([icon-end])) .content{margin-right:unset}:host([icon-start]:not([icon-end])) .calcite--rtl .content{margin-left:unset;margin-right:var(--calcite-button-content-margin)}:host([icon-end]:not([icon-start])) .calcite--rtl .content{margin-right:unset;margin-left:var(--calcite-button-content-margin)}:host([width=auto]){width:auto}:host([width=half]){width:50%}:host([width=full]){width:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{-ms-flex-pack:center;justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{-ms-flex-pack:start;justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{-ms-flex-pack:justify;justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-right:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-left:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-start-space-between]:not([width=auto])) .calcite--rtl .icon--start{margin-right:unset;margin-left:auto}:host([alignment=icon-end-space-between]:not([width=auto])) .calcite--rtl .icon--end{margin-left:unset;margin-right:auto}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-left:var(--calcite-button-content-margin)}:host([alignment=center]) a.calcite--rtl:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button.calcite--rtl:not(.content--slotted) .icon--start+.icon--end{margin-left:unset;margin-right:var(--calcite-button-content-margin)}.icon{display:-ms-inline-flexbox;display:inline-flex;position:relative;margin:0;font-weight:var(--calcite-font-weight-normal);line-height:inherit}:host([loading]),:host([disabled]){pointer-events:none}:host([loading]) button,:host([loading]) a,:host([disabled]) button,:host([disabled]) a{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}@-webkit-keyframes loader-in{0%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}100%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes loader-in{0%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}100%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes loader-out{0%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}}@keyframes loader-out{0%{width:1em;opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{width:0;opacity:0;-webkit-transform:scale(0.5);transform:scale(0.5)}}.calcite-button--loader{display:-ms-flexbox;display:flex}.calcite-button--loader calcite-loader{margin:0;-webkit-transition:width 300ms ease-in-out, opacity 300ms ease-in-out, -webkit-transform 300ms ease-in-out;transition:width 300ms ease-in-out, opacity 300ms ease-in-out, -webkit-transform 300ms ease-in-out;transition:width 300ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out;transition:width 300ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out, -webkit-transform 300ms ease-in-out}.calcite-button--loader calcite-loader.loading-in{-webkit-animation-name:loader-in;animation-name:loader-in;-webkit-animation-duration:310ms;animation-duration:310ms}.calcite-button--loader calcite-loader.loading-out{-webkit-animation-name:loader-out;animation-name:loader-out;-webkit-animation-duration:310ms;animation-duration:310ms}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{-webkit-margin-end:var(--calcite-button-content-margin);margin-inline-end:var(--calcite-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance=solid]) button,:host([appearance=solid]) a{border-width:1px;border-style:solid;border-color:transparent}:host([appearance=solid][color=blue]) button,:host([appearance=solid][color=blue]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-brand)}:host([appearance=solid][color=blue]) button:hover,:host([appearance=solid][color=blue]) button:focus,:host([appearance=solid][color=blue]) a:hover,:host([appearance=solid][color=blue]) a:focus{background-color:var(--calcite-ui-brand-hover)}:host([appearance=solid][color=blue]) button:active,:host([appearance=solid][color=blue]) a:active{background-color:var(--calcite-ui-brand-press)}:host([appearance=solid][color=blue]) button calcite-loader,:host([appearance=solid][color=blue]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=red]) button,:host([appearance=solid][color=red]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-danger)}:host([appearance=solid][color=red]) button:hover,:host([appearance=solid][color=red]) button:focus,:host([appearance=solid][color=red]) a:hover,:host([appearance=solid][color=red]) a:focus{background-color:var(--calcite-ui-danger-hover)}:host([appearance=solid][color=red]) button:active,:host([appearance=solid][color=red]) a:active{background-color:var(--calcite-ui-danger-press)}:host([appearance=solid][color=red]) button calcite-loader,:host([appearance=solid][color=red]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=solid][color=neutral]) button,:host([appearance=solid][color=neutral]) a{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}:host([appearance=solid][color=neutral]) button:hover,:host([appearance=solid][color=neutral]) button:focus,:host([appearance=solid][color=neutral]) a:hover,:host([appearance=solid][color=neutral]) a:focus{background-color:var(--calcite-ui-foreground-2)}:host([appearance=solid][color=neutral]) button:active,:host([appearance=solid][color=neutral]) a:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=solid][color=neutral]) button calcite-loader,:host([appearance=solid][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=solid][color=inverse]) button,:host([appearance=solid][color=inverse]) a{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-inverse)}:host([appearance=solid][color=inverse]) button:hover,:host([appearance=solid][color=inverse]) button:focus,:host([appearance=solid][color=inverse]) a:hover,:host([appearance=solid][color=inverse]) a:focus{background-color:var(--calcite-ui-inverse-hover)}:host([appearance=solid][color=inverse]) button:active,:host([appearance=solid][color=inverse]) a:active{background-color:var(--calcite-ui-inverse-press)}:host([appearance=solid][color=inverse]) button calcite-loader,:host([appearance=solid][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-inverse)}:host([appearance=outline]) button,:host([appearance=outline]) a{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline][color=blue]) button,:host([appearance=outline][color=blue]) a{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand)}:host([appearance=outline][color=blue]) button:hover,:host([appearance=outline][color=blue]) a:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}:host([appearance=outline][color=blue]) button:focus,:host([appearance=outline][color=blue]) a:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([appearance=outline][color=blue]) button:active,:host([appearance=outline][color=blue]) a:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance=outline][color=blue]) button calcite-loader,:host([appearance=outline][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=outline][color=red]) button,:host([appearance=outline][color=red]) a{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger)}:host([appearance=outline][color=red]) button:hover,:host([appearance=outline][color=red]) a:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}:host([appearance=outline][color=red]) button:focus,:host([appearance=outline][color=red]) a:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}:host([appearance=outline][color=red]) button:active,:host([appearance=outline][color=red]) a:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance=outline][color=red]) button calcite-loader,:host([appearance=outline][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=outline][color=neutral]) button,:host([appearance=outline][color=neutral]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:hover,:host([appearance=outline][color=neutral]) a:hover{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:focus,:host([appearance=outline][color=neutral]) a:focus{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button:active,:host([appearance=outline][color=neutral]) a:active{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=outline][color=neutral]) button calcite-loader,:host([appearance=outline][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=outline][color=inverse]) button,:host([appearance=outline][color=inverse]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}:host([appearance=outline][color=inverse]) button:hover,:host([appearance=outline][color=inverse]) a:hover{border-color:var(--calcite-ui-inverse-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}:host([appearance=outline][color=inverse]) button:focus,:host([appearance=outline][color=inverse]) a:focus{border-color:var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}:host([appearance=outline][color=inverse]) button:active,:host([appearance=outline][color=inverse]) a:active{border-color:var(--calcite-ui-inverse-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}:host([appearance=outline][color=inverse]) button calcite-loader,:host([appearance=outline][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=clear]) button,:host([appearance=clear]) a{background-color:transparent;border-width:1px;border-style:solid;-webkit-box-shadow:inset 0 0 0 1px transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=clear][color=blue]) button,:host([appearance=clear][color=blue]) a{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand)}:host([appearance=clear][color=blue]) button:hover,:host([appearance=clear][color=blue]) a:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}:host([appearance=clear][color=blue]) button:focus,:host([appearance=clear][color=blue]) a:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host([appearance=clear][color=blue]) button:active,:host([appearance=clear][color=blue]) a:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}:host([appearance=clear][color=blue]) button calcite-loader,:host([appearance=clear][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=clear][color=red]) button,:host([appearance=clear][color=red]) a{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger)}:host([appearance=clear][color=red]) button:hover,:host([appearance=clear][color=red]) a:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}:host([appearance=clear][color=red]) button:focus,:host([appearance=clear][color=red]) a:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}:host([appearance=clear][color=red]) button:active,:host([appearance=clear][color=red]) a:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}:host([appearance=clear][color=red]) button calcite-loader,:host([appearance=clear][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=clear][color=neutral]) button,:host([appearance=clear][color=neutral]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:hover,:host([appearance=clear][color=neutral]) a:hover{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:focus,:host([appearance=clear][color=neutral]) a:focus{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button:active,:host([appearance=clear][color=neutral]) a:active{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3);box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}:host([appearance=clear][color=neutral]) button calcite-loader,:host([appearance=clear][color=neutral]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=clear][color=inverse]) button,:host([appearance=clear][color=inverse]) a{color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}:host([appearance=clear][color=inverse]) button:hover,:host([appearance=clear][color=inverse]) a:hover{border-color:var(--calcite-ui-inverse-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}:host([appearance=clear][color=inverse]) button:focus,:host([appearance=clear][color=inverse]) a:focus{border-color:var(--calcite-ui-inverse);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}:host([appearance=clear][color=inverse]) button:active,:host([appearance=clear][color=inverse]) a:active{border-color:var(--calcite-ui-inverse-press);-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}:host([appearance=clear][color=inverse]) button calcite-loader,:host([appearance=clear][color=inverse]) a calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=outline][split-child=primary]) button,:host([appearance=clear][split-child=primary]) button{border-right-width:0;border-left-width:1px}:host([appearance=outline][split-child=primary]) button.calcite--rtl,:host([appearance=clear][split-child=primary]) button.calcite--rtl{border-left-width:0;border-right-width:1px}:host([appearance=outline][split-child=secondary]) button,:host([appearance=clear][split-child=secondary]) button{border-left-width:0;border-right-width:1px}:host([appearance=outline][split-child=secondary]) button.calcite--rtl,:host([appearance=clear][split-child=secondary]) button.calcite--rtl{border-right-width:0;border-left-width:1px}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:transparent}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) button:focus,:host([appearance=transparent]:not(.enable-editing-button)) a:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:focus{background-color:var(--calcite-button-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-button-transparent-press)}:host([appearance=transparent][color=blue]) button,:host([appearance=transparent][color=blue]) a{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=blue]) button:hover,:host([appearance=transparent][color=blue]) a:hover{color:var(--calcite-ui-brand-hover)}:host([appearance=transparent][color=blue]) button:focus,:host([appearance=transparent][color=blue]) a:focus{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=blue]) button:active,:host([appearance=transparent][color=blue]) a:active{color:var(--calcite-ui-brand-press)}:host([appearance=transparent][color=blue]) button calcite-loader,:host([appearance=transparent][color=blue]) a calcite-loader{color:var(--calcite-ui-brand)}:host([appearance=transparent][color=red]) button,:host([appearance=transparent][color=red]) a{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=red]) button:hover,:host([appearance=transparent][color=red]) a:hover{color:var(--calcite-ui-danger-hover)}:host([appearance=transparent][color=red]) button:focus,:host([appearance=transparent][color=red]) a:focus{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=red]) button:active,:host([appearance=transparent][color=red]) a:active{color:var(--calcite-ui-danger-press)}:host([appearance=transparent][color=red]) button calcite-loader,:host([appearance=transparent][color=red]) a calcite-loader{color:var(--calcite-ui-danger)}:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][color=neutral]:not(.cancel-editing-button)) calcite-loader{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].cancel-editing-button) button{color:var(--calcite-ui-text-3);border-top-width:1px;border-top-color:var(--calcite-ui-border-input);border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-input);border-bottom-style:solid;border-top-style:solid}:host([appearance=transparent][color=neutral].cancel-editing-button) button:not(.content--slotted){--calcite-button-padding-y:0}:host([appearance=transparent][color=neutral].cancel-editing-button) button:hover{color:var(--calcite-ui-text-1)}:host([appearance=transparent][color=neutral].enable-editing-button) button{background-color:transparent}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][color=inverse]) button,:host([appearance=transparent][color=inverse]) a,:host([appearance=transparent][color=inverse]) calcite-loader{color:var(--calcite-ui-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:0.5rem;--calcite-button-padding-y:0.25rem}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-button-padding-x:11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]:not([appearance=transparent])) button.content--slotted,:host([scale=m]:not([appearance=transparent])) a.content--slotted{--calcite-button-padding-y:7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:0.75rem;--calcite-button-padding-y:0.5rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-button-padding-x:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]:not([appearance=transparent])) button.content--slotted,:host([scale=l]:not([appearance=transparent])) a.content--slotted{--calcite-button-padding-y:11px}:host([scale=l][appearance=transparent]) button.content--slotted,:host([scale=l][appearance=transparent]) a.content--slotted{--calcite-button-padding-x:1rem;--calcite-button-padding-y:0.75rem}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:3px;font-size:var(--calcite-font-size-0);line-height:1.25rem;width:1.5rem;min-height:1.5rem}:host([scale=s][appearance=transparent]) button:not(.content--slotted),:host([scale=s][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.25rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:7px;font-size:var(--calcite-font-size-0);line-height:1.25rem;width:2rem;min-height:2rem}:host([scale=m][appearance=transparent]) button:not(.content--slotted),:host([scale=m][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.5rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-button-padding-x:0.125rem;--calcite-button-padding-y:9px;font-size:var(--calcite-font-size-0);line-height:1.25rem;width:2.75rem;min-height:2.75rem}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y:0.625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:23px;font-size:var(--calcite-font-size-0);line-height:1.25rem;height:1.5rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;height:2rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x:43px;font-size:var(--calcite-font-size-0);line-height:1.25rem;height:2.75rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{-webkit-margin-start:1rem;margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x:2.75rem}";
|
|
3378
3407
|
|
|
3379
3408
|
let CalciteButton$1 = class extends HTMLElement {
|
|
3380
3409
|
constructor() {
|
|
3381
3410
|
super();
|
|
3382
3411
|
this.__registerHost();
|
|
3383
|
-
|
|
3412
|
+
this.__attachShadow();
|
|
3384
3413
|
//--------------------------------------------------------------------------
|
|
3385
3414
|
//
|
|
3386
3415
|
// Properties
|
|
@@ -3544,7 +3573,7 @@ let CalciteCard$1 = class extends HTMLElement {
|
|
|
3544
3573
|
constructor() {
|
|
3545
3574
|
super();
|
|
3546
3575
|
this.__registerHost();
|
|
3547
|
-
|
|
3576
|
+
this.__attachShadow();
|
|
3548
3577
|
this.calciteCardSelect = createEvent(this, "calciteCardSelect", 7);
|
|
3549
3578
|
//--------------------------------------------------------------------------
|
|
3550
3579
|
//
|
|
@@ -3611,7 +3640,7 @@ let CalciteCard$1 = class extends HTMLElement {
|
|
|
3611
3640
|
}
|
|
3612
3641
|
renderCheckbox() {
|
|
3613
3642
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
3614
|
-
return (h("label", {
|
|
3643
|
+
return (h("calcite-label", { class: CSS$H.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, h("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
3615
3644
|
}
|
|
3616
3645
|
renderHeader() {
|
|
3617
3646
|
const title = this.el.querySelector(`[slot=${SLOTS$j.title}]`);
|
|
@@ -3629,28 +3658,179 @@ let CalciteCard$1 = class extends HTMLElement {
|
|
|
3629
3658
|
static get style() { return calciteCardCss; }
|
|
3630
3659
|
};
|
|
3631
3660
|
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3661
|
+
/**
|
|
3662
|
+
* Exported for testing purposes.
|
|
3663
|
+
*/
|
|
3664
|
+
const hiddenFormInputSlotName = "hidden-form-input";
|
|
3665
|
+
function isCheckable(component) {
|
|
3666
|
+
return "checked" in component;
|
|
3667
|
+
}
|
|
3668
|
+
const onFormResetMap = new WeakMap();
|
|
3669
|
+
const formComponentSet = new WeakSet();
|
|
3670
|
+
function hasRegisteredFormComponentParent(form, formComponentEl) {
|
|
3671
|
+
// we use events as a way to test for nested form-associated components across shadow bounds
|
|
3672
|
+
const formComponentRegisterEventName = "calciteInternalFormComponentRegister";
|
|
3673
|
+
let hasRegisteredFormComponentParent = false;
|
|
3674
|
+
form.addEventListener(formComponentRegisterEventName, (event) => {
|
|
3675
|
+
hasRegisteredFormComponentParent = event
|
|
3676
|
+
.composedPath()
|
|
3677
|
+
.some((element) => formComponentSet.has(element));
|
|
3678
|
+
event.stopPropagation();
|
|
3679
|
+
}, { once: true });
|
|
3680
|
+
formComponentEl.dispatchEvent(new CustomEvent(formComponentRegisterEventName, {
|
|
3681
|
+
bubbles: true,
|
|
3682
|
+
composed: true
|
|
3683
|
+
}));
|
|
3684
|
+
return hasRegisteredFormComponentParent;
|
|
3685
|
+
}
|
|
3686
|
+
/**
|
|
3687
|
+
* Helper to set up form interactions on connectedCallback.
|
|
3688
|
+
*/
|
|
3689
|
+
function connectForm(component) {
|
|
3690
|
+
const { el, value } = component;
|
|
3691
|
+
const form = closestElementCrossShadowBoundary(el, "form");
|
|
3692
|
+
if (!form || hasRegisteredFormComponentParent(form, el)) {
|
|
3693
|
+
return;
|
|
3694
|
+
}
|
|
3695
|
+
component.formEl = form;
|
|
3696
|
+
component.defaultValue = value;
|
|
3697
|
+
if (isCheckable(component)) {
|
|
3698
|
+
component.defaultChecked = component.checked;
|
|
3699
|
+
}
|
|
3700
|
+
const boundOnFormReset = (component.onFormReset || onFormReset).bind(component);
|
|
3701
|
+
form.addEventListener("reset", boundOnFormReset);
|
|
3702
|
+
formComponentSet.add(el);
|
|
3703
|
+
}
|
|
3704
|
+
function onFormReset() {
|
|
3705
|
+
if (isCheckable(this)) {
|
|
3706
|
+
this.checked = this.defaultChecked;
|
|
3707
|
+
return;
|
|
3708
|
+
}
|
|
3709
|
+
this.value = this.defaultValue;
|
|
3710
|
+
}
|
|
3711
|
+
/**
|
|
3712
|
+
* Helper to tear down form interactions on disconnectedCallback.
|
|
3713
|
+
*/
|
|
3714
|
+
function disconnectForm(component) {
|
|
3715
|
+
const { el, formEl } = component;
|
|
3716
|
+
if (!formEl) {
|
|
3717
|
+
return;
|
|
3718
|
+
}
|
|
3719
|
+
const boundOnFormReset = onFormResetMap.get(el);
|
|
3720
|
+
formEl.removeEventListener("reset", boundOnFormReset);
|
|
3721
|
+
onFormResetMap.delete(el);
|
|
3722
|
+
component.formEl = null;
|
|
3723
|
+
formComponentSet.delete(el);
|
|
3724
|
+
}
|
|
3725
|
+
/**
|
|
3726
|
+
* Helper for setting the default value on initialization after connectedCallback.
|
|
3727
|
+
*
|
|
3728
|
+
* Note that this is only needed if the default value cannot be determined on connectedCallback.
|
|
3729
|
+
*/
|
|
3730
|
+
function afterConnectDefaultValueSet(component, value) {
|
|
3731
|
+
component.defaultValue = value;
|
|
3732
|
+
}
|
|
3733
|
+
/**
|
|
3734
|
+
* Helper for maintaining a form-associated's hidden input in sync with the component.
|
|
3735
|
+
*
|
|
3736
|
+
* Based on Ionic's approach: https://github.com/ionic-team/ionic-framework/blob/e4bf052794af9aac07f887013b9250d2a045eba3/core/src/utils/helpers.ts#L198
|
|
3737
|
+
*/
|
|
3738
|
+
function syncHiddenFormInput(component) {
|
|
3739
|
+
const { el, formEl, name, value } = component;
|
|
3740
|
+
const { ownerDocument } = el;
|
|
3741
|
+
const inputs = el.querySelectorAll(`input[slot="${hiddenFormInputSlotName}"]`);
|
|
3742
|
+
if (!formEl || !name) {
|
|
3743
|
+
inputs.forEach((input) => input.remove());
|
|
3744
|
+
return;
|
|
3745
|
+
}
|
|
3746
|
+
const values = Array.isArray(value) ? value : [value];
|
|
3747
|
+
const extra = [];
|
|
3748
|
+
const seen = new Set();
|
|
3749
|
+
inputs.forEach((input) => {
|
|
3750
|
+
const valueMatch = values.find((val) =>
|
|
3751
|
+
/* intentional non-strict equality check */
|
|
3752
|
+
val == input.value);
|
|
3753
|
+
if (valueMatch != null) {
|
|
3754
|
+
seen.add(valueMatch);
|
|
3755
|
+
defaultSyncHiddenFormInput(component, input, valueMatch);
|
|
3756
|
+
}
|
|
3757
|
+
else {
|
|
3758
|
+
extra.push(input);
|
|
3759
|
+
}
|
|
3760
|
+
});
|
|
3761
|
+
let docFrag;
|
|
3762
|
+
values.forEach((value) => {
|
|
3763
|
+
if (seen.has(value)) {
|
|
3764
|
+
return;
|
|
3765
|
+
}
|
|
3766
|
+
let input = extra.pop();
|
|
3767
|
+
if (!input) {
|
|
3768
|
+
input = ownerDocument.createElement("input");
|
|
3769
|
+
input.slot = hiddenFormInputSlotName;
|
|
3770
|
+
}
|
|
3771
|
+
if (!docFrag) {
|
|
3772
|
+
docFrag = ownerDocument.createDocumentFragment();
|
|
3773
|
+
}
|
|
3774
|
+
docFrag.append(input);
|
|
3775
|
+
defaultSyncHiddenFormInput(component, input, value);
|
|
3776
|
+
});
|
|
3777
|
+
if (docFrag) {
|
|
3778
|
+
el.append(docFrag);
|
|
3779
|
+
}
|
|
3780
|
+
extra.forEach((input) => input.remove());
|
|
3781
|
+
}
|
|
3782
|
+
function defaultSyncHiddenFormInput(component, input, value) {
|
|
3783
|
+
var _a;
|
|
3784
|
+
const { defaultValue, disabled, name, required } = component;
|
|
3785
|
+
// keep in sync to prevent losing reset value
|
|
3786
|
+
input.defaultValue = defaultValue;
|
|
3787
|
+
input.disabled = disabled;
|
|
3788
|
+
input.name = name;
|
|
3789
|
+
input.required = required;
|
|
3790
|
+
input.tabIndex = -1;
|
|
3791
|
+
if (isCheckable(component)) {
|
|
3792
|
+
// keep in sync to prevent losing reset value
|
|
3793
|
+
input.defaultChecked = component.defaultChecked;
|
|
3794
|
+
// heuristic to support default/on mode from https://html.spec.whatwg.org/multipage/input.html#dom-input-value-default-on
|
|
3795
|
+
input.value = component.checked ? value || "on" : "";
|
|
3796
|
+
// we disable the component when not checked to avoid having its value submitted
|
|
3797
|
+
if (!disabled && !component.checked) {
|
|
3798
|
+
input.disabled = true;
|
|
3799
|
+
}
|
|
3800
|
+
}
|
|
3801
|
+
else {
|
|
3802
|
+
input.value = value || "";
|
|
3803
|
+
}
|
|
3804
|
+
(_a = component.syncHiddenFormInput) === null || _a === void 0 ? void 0 : _a.call(component, input);
|
|
3805
|
+
}
|
|
3806
|
+
/**
|
|
3807
|
+
* Helper to render the slot for form-associated component's hidden input.
|
|
3808
|
+
*
|
|
3809
|
+
* If the component has a default slot, this must be placed at the bottom of the component's root container to ensure it is the last child.
|
|
3810
|
+
*
|
|
3811
|
+
* render(): VNode {
|
|
3812
|
+
* <Host>
|
|
3813
|
+
* <div class={CSS.container}>
|
|
3814
|
+
* // ...
|
|
3815
|
+
* <HiddenFormInputSlot component={this} />
|
|
3816
|
+
* </div>
|
|
3817
|
+
* </Host>
|
|
3818
|
+
* }
|
|
3819
|
+
*
|
|
3820
|
+
* Note that the hidden-form-input Sass mixin must be added to the component's style to apply specific styles.
|
|
3821
|
+
*/
|
|
3822
|
+
const HiddenFormInputSlot = ({ component }) => {
|
|
3823
|
+
syncHiddenFormInput(component);
|
|
3824
|
+
return h("slot", { name: hiddenFormInputSlotName });
|
|
3825
|
+
};
|
|
3646
3826
|
|
|
3647
|
-
const calciteCheckboxCss = "@-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([scale=s]){--calcite-checkbox-size:0.75rem}:host([scale=m]){--calcite-checkbox-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-checkbox-size:1rem}:host{display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{overflow:hidden;display:block;background-color:var(--calcite-ui-foreground-1);pointer-events:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);stroke:currentColor;stroke-width:1;fill:currentColor;width:var(--calcite-checkbox-size);height:var(--calcite-checkbox-size);-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);color:var(--calcite-ui-background)}:host
|
|
3827
|
+
const calciteCheckboxCss = "@-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([scale=s]){--calcite-checkbox-size:0.75rem}:host([scale=m]){--calcite-checkbox-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-checkbox-size:1rem}:host{display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{overflow:hidden;display:block;background-color:var(--calcite-ui-foreground-1);pointer-events:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);stroke:currentColor;stroke-width:1;fill:currentColor;width:var(--calcite-checkbox-size);height:var(--calcite-checkbox-size);-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);color:var(--calcite-ui-background)}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host .toggle:focus .check-svg,:host .toggle:active .check-svg{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out}:host([disabled]){cursor:default;opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}::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}";
|
|
3648
3828
|
|
|
3649
3829
|
let CalciteCheckbox$1 = class extends HTMLElement {
|
|
3650
3830
|
constructor() {
|
|
3651
3831
|
super();
|
|
3652
3832
|
this.__registerHost();
|
|
3653
|
-
|
|
3833
|
+
this.__attachShadow();
|
|
3654
3834
|
this.calciteInternalCheckboxBlur = createEvent(this, "calciteInternalCheckboxBlur", 7);
|
|
3655
3835
|
this.calciteCheckboxChange = createEvent(this, "calciteCheckboxChange", 7);
|
|
3656
3836
|
this.calciteInternalCheckboxFocus = createEvent(this, "calciteInternalCheckboxFocus", 7);
|
|
@@ -3674,8 +3854,12 @@ let CalciteCheckbox$1 = class extends HTMLElement {
|
|
|
3674
3854
|
* https://css-tricks.com/indeterminate-checkboxes/
|
|
3675
3855
|
* */
|
|
3676
3856
|
this.indeterminate = false;
|
|
3677
|
-
/**
|
|
3678
|
-
|
|
3857
|
+
/**
|
|
3858
|
+
* When true, makes the component required for form-submission.
|
|
3859
|
+
*
|
|
3860
|
+
* @internal
|
|
3861
|
+
*/
|
|
3862
|
+
this.required = false;
|
|
3679
3863
|
/** specify the scale of the checkbox, defaults to m */
|
|
3680
3864
|
this.scale = "m";
|
|
3681
3865
|
//--------------------------------------------------------------------------
|
|
@@ -3687,13 +3871,6 @@ let CalciteCheckbox$1 = class extends HTMLElement {
|
|
|
3687
3871
|
this.indeterminatePath = "M13 8v1H3V8z";
|
|
3688
3872
|
//--------------------------------------------------------------------------
|
|
3689
3873
|
//
|
|
3690
|
-
// State
|
|
3691
|
-
//
|
|
3692
|
-
//--------------------------------------------------------------------------
|
|
3693
|
-
/** The focused state of the checkbox. */
|
|
3694
|
-
this.focused = false;
|
|
3695
|
-
//--------------------------------------------------------------------------
|
|
3696
|
-
//
|
|
3697
3874
|
// Private Methods
|
|
3698
3875
|
//
|
|
3699
3876
|
//--------------------------------------------------------------------------
|
|
@@ -3701,26 +3878,34 @@ let CalciteCheckbox$1 = class extends HTMLElement {
|
|
|
3701
3878
|
this.toggle = () => {
|
|
3702
3879
|
if (!this.disabled) {
|
|
3703
3880
|
this.checked = !this.checked;
|
|
3704
|
-
|
|
3881
|
+
this.setFocus();
|
|
3705
3882
|
this.indeterminate = false;
|
|
3706
3883
|
this.calciteCheckboxChange.emit();
|
|
3707
3884
|
}
|
|
3708
3885
|
};
|
|
3886
|
+
this.keyDownHandler = (event) => {
|
|
3887
|
+
if (event.key === " " || event.key === "Enter") {
|
|
3888
|
+
this.toggle();
|
|
3889
|
+
event.preventDefault();
|
|
3890
|
+
}
|
|
3891
|
+
};
|
|
3709
3892
|
this.clickHandler = () => {
|
|
3710
3893
|
this.toggle();
|
|
3711
3894
|
};
|
|
3712
|
-
|
|
3713
|
-
|
|
3895
|
+
//--------------------------------------------------------------------------
|
|
3896
|
+
//
|
|
3897
|
+
// Event Listeners
|
|
3898
|
+
//
|
|
3899
|
+
//--------------------------------------------------------------------------
|
|
3900
|
+
this.onToggleBlur = () => {
|
|
3901
|
+
this.calciteInternalCheckboxBlur.emit(false);
|
|
3902
|
+
};
|
|
3903
|
+
this.onToggleFocus = () => {
|
|
3904
|
+
this.calciteInternalCheckboxFocus.emit(true);
|
|
3905
|
+
};
|
|
3906
|
+
this.onLabelClick = () => {
|
|
3907
|
+
this.toggle();
|
|
3714
3908
|
};
|
|
3715
|
-
}
|
|
3716
|
-
checkedWatcher(newChecked) {
|
|
3717
|
-
this.input.checked = newChecked;
|
|
3718
|
-
}
|
|
3719
|
-
disabledChanged(disabled) {
|
|
3720
|
-
this.input.disabled = disabled;
|
|
3721
|
-
}
|
|
3722
|
-
nameChanged(newName) {
|
|
3723
|
-
this.input.name = newName;
|
|
3724
3909
|
}
|
|
3725
3910
|
//--------------------------------------------------------------------------
|
|
3726
3911
|
//
|
|
@@ -3729,29 +3914,8 @@ let CalciteCheckbox$1 = class extends HTMLElement {
|
|
|
3729
3914
|
//--------------------------------------------------------------------------
|
|
3730
3915
|
/** Sets focus on the component. */
|
|
3731
3916
|
async setFocus() {
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
//--------------------------------------------------------------------------
|
|
3735
|
-
//
|
|
3736
|
-
// Event Listeners
|
|
3737
|
-
//
|
|
3738
|
-
//--------------------------------------------------------------------------
|
|
3739
|
-
mouseenter() {
|
|
3740
|
-
this.hovered = true;
|
|
3741
|
-
}
|
|
3742
|
-
mouseleave() {
|
|
3743
|
-
this.hovered = false;
|
|
3744
|
-
}
|
|
3745
|
-
onInputBlur() {
|
|
3746
|
-
this.focused = false;
|
|
3747
|
-
this.calciteInternalCheckboxBlur.emit(false);
|
|
3748
|
-
}
|
|
3749
|
-
onInputFocus() {
|
|
3750
|
-
this.focused = true;
|
|
3751
|
-
this.calciteInternalCheckboxFocus.emit(true);
|
|
3752
|
-
}
|
|
3753
|
-
onLabelClick() {
|
|
3754
|
-
this.toggle();
|
|
3917
|
+
var _a;
|
|
3918
|
+
(_a = this.toggleEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
3755
3919
|
}
|
|
3756
3920
|
//--------------------------------------------------------------------------
|
|
3757
3921
|
//
|
|
@@ -3760,55 +3924,22 @@ let CalciteCheckbox$1 = class extends HTMLElement {
|
|
|
3760
3924
|
//--------------------------------------------------------------------------
|
|
3761
3925
|
connectedCallback() {
|
|
3762
3926
|
this.guid = this.el.id || `calcite-checkbox-${guid()}`;
|
|
3763
|
-
this.initialChecked = this.checked;
|
|
3764
|
-
this.renderHiddenCheckboxInput();
|
|
3765
|
-
const form = closestElementCrossShadowBoundary(this.el, "form");
|
|
3766
|
-
if (form) {
|
|
3767
|
-
form.addEventListener("reset", this.formResetHandler);
|
|
3768
|
-
}
|
|
3769
3927
|
connectLabel(this);
|
|
3770
|
-
|
|
3771
|
-
componentDidLoad() {
|
|
3772
|
-
this.input.setAttribute("aria-label", getLabelText(this));
|
|
3928
|
+
connectForm(this);
|
|
3773
3929
|
}
|
|
3774
3930
|
disconnectedCallback() {
|
|
3775
|
-
this.input.parentNode.removeChild(this.input);
|
|
3776
|
-
const form = closestElementCrossShadowBoundary(this.el, "form");
|
|
3777
|
-
if (form) {
|
|
3778
|
-
form.removeEventListener("reset", this.formResetHandler);
|
|
3779
|
-
}
|
|
3780
3931
|
disconnectLabel(this);
|
|
3932
|
+
disconnectForm(this);
|
|
3781
3933
|
}
|
|
3782
3934
|
// --------------------------------------------------------------------------
|
|
3783
3935
|
//
|
|
3784
3936
|
// Render Methods
|
|
3785
3937
|
//
|
|
3786
3938
|
// --------------------------------------------------------------------------
|
|
3787
|
-
renderHiddenCheckboxInput() {
|
|
3788
|
-
this.input = document.createElement("input");
|
|
3789
|
-
this.checked && this.input.setAttribute("checked", "");
|
|
3790
|
-
this.input.disabled = this.disabled;
|
|
3791
|
-
this.input.id = `${this.guid}-input`;
|
|
3792
|
-
this.input.name = this.name;
|
|
3793
|
-
this.input.onblur = this.onInputBlur.bind(this);
|
|
3794
|
-
this.input.onfocus = this.onInputFocus.bind(this);
|
|
3795
|
-
this.input.style.cssText = hiddenInputStyle;
|
|
3796
|
-
this.input.type = "checkbox";
|
|
3797
|
-
this.input.setAttribute("aria-label", getLabelText(this));
|
|
3798
|
-
if (this.value) {
|
|
3799
|
-
this.input.value = this.value != null ? this.value.toString() : "";
|
|
3800
|
-
}
|
|
3801
|
-
this.el.appendChild(this.input);
|
|
3802
|
-
}
|
|
3803
3939
|
render() {
|
|
3804
|
-
return (h(Host, { onClick: this.clickHandler }, h("div", { class:
|
|
3940
|
+
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: "toggle", onBlur: this.onToggleBlur, onFocus: this.onToggleFocus, ref: (toggleEl) => (this.toggleEl = toggleEl), role: "checkbox", tabIndex: 0 }, h("svg", { class: "check-svg", viewBox: "0 0 16 16" }, h("path", { d: this.getPath() })), h("slot", null)), h(HiddenFormInputSlot, { component: this })));
|
|
3805
3941
|
}
|
|
3806
3942
|
get el() { return this; }
|
|
3807
|
-
static get watchers() { return {
|
|
3808
|
-
"checked": ["checkedWatcher"],
|
|
3809
|
-
"disabled": ["disabledChanged"],
|
|
3810
|
-
"name": ["nameChanged"]
|
|
3811
|
-
}; }
|
|
3812
3943
|
static get style() { return calciteCheckboxCss; }
|
|
3813
3944
|
};
|
|
3814
3945
|
|
|
@@ -3834,7 +3965,7 @@ let CalciteChip$1 = class extends HTMLElement {
|
|
|
3834
3965
|
constructor() {
|
|
3835
3966
|
super();
|
|
3836
3967
|
this.__registerHost();
|
|
3837
|
-
|
|
3968
|
+
this.__attachShadow();
|
|
3838
3969
|
this.calciteChipDismiss = createEvent(this, "calciteChipDismiss", 7);
|
|
3839
3970
|
//--------------------------------------------------------------------------
|
|
3840
3971
|
//
|
|
@@ -6104,7 +6235,7 @@ let CalciteColorPicker$1 = class extends HTMLElement {
|
|
|
6104
6235
|
constructor() {
|
|
6105
6236
|
super();
|
|
6106
6237
|
this.__registerHost();
|
|
6107
|
-
|
|
6238
|
+
this.__attachShadow();
|
|
6108
6239
|
this.calciteColorPickerChange = createEvent(this, "calciteColorPickerChange", 7);
|
|
6109
6240
|
this.calciteColorPickerInput = createEvent(this, "calciteColorPickerInput", 7);
|
|
6110
6241
|
//--------------------------------------------------------------------------
|
|
@@ -6231,9 +6362,9 @@ let CalciteColorPicker$1 = class extends HTMLElement {
|
|
|
6231
6362
|
* @see [ColorValue](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-color-picker/interfaces.ts#L10)
|
|
6232
6363
|
*/
|
|
6233
6364
|
this.value = defaultValue;
|
|
6234
|
-
this.colorUpdateLocked = false;
|
|
6235
6365
|
this.colorFieldAndSliderHovered = false;
|
|
6236
6366
|
this.hueThumbState = "idle";
|
|
6367
|
+
this.internalColorUpdateContext = null;
|
|
6237
6368
|
this.mode = CSSColorMode.HEX;
|
|
6238
6369
|
this.shiftKeyChannelAdjustment = 0;
|
|
6239
6370
|
this.sliderThumbState = "idle";
|
|
@@ -6542,7 +6673,7 @@ let CalciteColorPicker$1 = class extends HTMLElement {
|
|
|
6542
6673
|
this.drawColorFieldAndSlider();
|
|
6543
6674
|
this.updateChannelsFromColor(color);
|
|
6544
6675
|
this.previousColor = oldColor;
|
|
6545
|
-
if (this.
|
|
6676
|
+
if (this.internalColorUpdateContext) {
|
|
6546
6677
|
return;
|
|
6547
6678
|
}
|
|
6548
6679
|
this.value = this.toValue(color);
|
|
@@ -6569,7 +6700,10 @@ let CalciteColorPicker$1 = class extends HTMLElement {
|
|
|
6569
6700
|
this.setMode(nextMode);
|
|
6570
6701
|
}
|
|
6571
6702
|
const dragging = this.sliderThumbState === "drag" || this.hueThumbState === "drag";
|
|
6572
|
-
if (this.
|
|
6703
|
+
if (this.internalColorUpdateContext) {
|
|
6704
|
+
if (this.internalColorUpdateContext === "initial") {
|
|
6705
|
+
return;
|
|
6706
|
+
}
|
|
6573
6707
|
this.calciteColorPickerInput.emit();
|
|
6574
6708
|
if (!dragging) {
|
|
6575
6709
|
this.calciteColorPickerChange.emit();
|
|
@@ -6640,15 +6774,15 @@ let CalciteColorPicker$1 = class extends HTMLElement {
|
|
|
6640
6774
|
}
|
|
6641
6775
|
connectedCallback() {
|
|
6642
6776
|
const { allowEmpty, color: color$1, format, value } = this;
|
|
6643
|
-
const
|
|
6777
|
+
const willSetNoColor = allowEmpty && !value;
|
|
6644
6778
|
const parsedMode = parseMode(value);
|
|
6645
|
-
const valueIsCompatible = (format === "auto" && parsedMode) || format === parsedMode;
|
|
6646
|
-
const initialColor =
|
|
6779
|
+
const valueIsCompatible = willSetNoColor || (format === "auto" && parsedMode) || format === parsedMode;
|
|
6780
|
+
const initialColor = willSetNoColor ? null : valueIsCompatible ? color(value) : color$1;
|
|
6647
6781
|
if (!valueIsCompatible) {
|
|
6648
6782
|
this.showIncompatibleColorWarning(value, format);
|
|
6649
6783
|
}
|
|
6650
6784
|
this.setMode(format);
|
|
6651
|
-
this.internalColorSet(initialColor, false);
|
|
6785
|
+
this.internalColorSet(initialColor, false, "initial");
|
|
6652
6786
|
this.updateDimensions(this.scale);
|
|
6653
6787
|
}
|
|
6654
6788
|
disconnectedCallback() {
|
|
@@ -6713,14 +6847,14 @@ let CalciteColorPicker$1 = class extends HTMLElement {
|
|
|
6713
6847
|
}
|
|
6714
6848
|
return "none";
|
|
6715
6849
|
}
|
|
6716
|
-
internalColorSet(color, skipEqual = true) {
|
|
6850
|
+
internalColorSet(color, skipEqual = true, context = "internal") {
|
|
6717
6851
|
if (skipEqual && colorEqual(color, this.color)) {
|
|
6718
6852
|
return;
|
|
6719
6853
|
}
|
|
6720
|
-
this.
|
|
6854
|
+
this.internalColorUpdateContext = context;
|
|
6721
6855
|
this.color = color;
|
|
6722
6856
|
this.value = this.toValue(color);
|
|
6723
|
-
this.
|
|
6857
|
+
this.internalColorUpdateContext = null;
|
|
6724
6858
|
}
|
|
6725
6859
|
toValue(color, format = this.mode) {
|
|
6726
6860
|
if (!color) {
|
|
@@ -6875,7 +7009,7 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement {
|
|
|
6875
7009
|
constructor() {
|
|
6876
7010
|
super();
|
|
6877
7011
|
this.__registerHost();
|
|
6878
|
-
|
|
7012
|
+
this.__attachShadow();
|
|
6879
7013
|
this.calciteColorPickerHexInputChange = createEvent(this, "calciteColorPickerHexInputChange", 7);
|
|
6880
7014
|
//--------------------------------------------------------------------------
|
|
6881
7015
|
//
|
|
@@ -6906,8 +7040,8 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement {
|
|
|
6906
7040
|
* The hex value.
|
|
6907
7041
|
*/
|
|
6908
7042
|
this.value = normalizeHex(DEFAULT_COLOR.hex());
|
|
6909
|
-
this.onCalciteInputBlur = (
|
|
6910
|
-
const node =
|
|
7043
|
+
this.onCalciteInputBlur = () => {
|
|
7044
|
+
const node = this.inputNode;
|
|
6911
7045
|
const inputValue = node.value;
|
|
6912
7046
|
const hex = `#${inputValue}`;
|
|
6913
7047
|
const willClearValue = this.allowEmpty && !inputValue;
|
|
@@ -6920,9 +7054,8 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement {
|
|
|
6920
7054
|
? ""
|
|
6921
7055
|
: this.formatForInternalInput(rgbToHex(this.internalColor.object()));
|
|
6922
7056
|
};
|
|
6923
|
-
this.onInputChange = (
|
|
6924
|
-
const
|
|
6925
|
-
const inputValue = node.value;
|
|
7057
|
+
this.onInputChange = () => {
|
|
7058
|
+
const inputValue = this.inputNode.value;
|
|
6926
7059
|
let value;
|
|
6927
7060
|
if (inputValue) {
|
|
6928
7061
|
const hex = inputValue;
|
|
@@ -6998,8 +7131,12 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement {
|
|
|
6998
7131
|
// using @Listen as a workaround for VDOM listener not firing
|
|
6999
7132
|
onInputKeyDown(event) {
|
|
7000
7133
|
const { altKey, ctrlKey, metaKey, shiftKey } = event;
|
|
7001
|
-
const {
|
|
7134
|
+
const { internalColor, value } = this;
|
|
7002
7135
|
const key = getKey(event.key);
|
|
7136
|
+
if (key === "Tab" || key === "Enter") {
|
|
7137
|
+
this.onInputChange();
|
|
7138
|
+
return;
|
|
7139
|
+
}
|
|
7003
7140
|
const isNudgeKey = key === "ArrowDown" || key === "ArrowUp";
|
|
7004
7141
|
if (isNudgeKey) {
|
|
7005
7142
|
if (!value) {
|
|
@@ -7014,16 +7151,9 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement {
|
|
|
7014
7151
|
return;
|
|
7015
7152
|
}
|
|
7016
7153
|
const withModifiers = altKey || ctrlKey || metaKey;
|
|
7017
|
-
const exceededHexLength = inputNode.value.length >= 6;
|
|
7018
|
-
const focusedElement = el.shadowRoot.activeElement;
|
|
7019
|
-
const hasTextSelection =
|
|
7020
|
-
// can't use window.getSelection() because of FF bug: https://bugzilla.mozilla.org/show_bug.cgi?id=85686
|
|
7021
|
-
focusedElement.selectionStart != focusedElement.selectionEnd;
|
|
7022
7154
|
const singleChar = key.length === 1;
|
|
7023
7155
|
const validHexChar = hexChar.test(key);
|
|
7024
|
-
if (singleChar &&
|
|
7025
|
-
!withModifiers &&
|
|
7026
|
-
(!validHexChar || (!hasTextSelection && exceededHexLength))) {
|
|
7156
|
+
if (singleChar && !withModifiers && !validHexChar) {
|
|
7027
7157
|
event.preventDefault();
|
|
7028
7158
|
}
|
|
7029
7159
|
}
|
|
@@ -7036,7 +7166,7 @@ let CalciteColorPickerHexInput$1 = class extends HTMLElement {
|
|
|
7036
7166
|
const { el, intlHex, value } = this;
|
|
7037
7167
|
const hexInputValue = this.formatForInternalInput(value);
|
|
7038
7168
|
const elementDir = getElementDir(el);
|
|
7039
|
-
return (h("div", { class: CSS$E.container }, h("calcite-input", { class: CSS$E.input, dir: elementDir, label: intlHex, onCalciteInputBlur: this.onCalciteInputBlur,
|
|
7169
|
+
return (h("div", { class: CSS$E.container }, h("calcite-input", { class: CSS$E.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$E.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
7040
7170
|
}
|
|
7041
7171
|
//--------------------------------------------------------------------------
|
|
7042
7172
|
//
|
|
@@ -7075,7 +7205,7 @@ let CalciteColorPickerSwatch$1 = class extends HTMLElement {
|
|
|
7075
7205
|
constructor() {
|
|
7076
7206
|
super();
|
|
7077
7207
|
this.__registerHost();
|
|
7078
|
-
|
|
7208
|
+
this.__attachShadow();
|
|
7079
7209
|
//--------------------------------------------------------------------------
|
|
7080
7210
|
//
|
|
7081
7211
|
// Properties
|
|
@@ -8915,9 +9045,9 @@ function createPopper({ referenceEl, el, placement, overlayPositioning = "absolu
|
|
|
8915
9045
|
modifiers
|
|
8916
9046
|
});
|
|
8917
9047
|
}
|
|
8918
|
-
function updatePopper({ el, modifiers, placement: PopperPlacement, popper }) {
|
|
9048
|
+
async function updatePopper({ el, modifiers, placement: PopperPlacement, popper }) {
|
|
8919
9049
|
const placement = getPlacement(el, PopperPlacement);
|
|
8920
|
-
popper.setOptions({
|
|
9050
|
+
await popper.setOptions({
|
|
8921
9051
|
modifiers,
|
|
8922
9052
|
placement
|
|
8923
9053
|
});
|
|
@@ -8958,14 +9088,14 @@ function getDepth(element) {
|
|
|
8958
9088
|
return result.snapshotLength;
|
|
8959
9089
|
}
|
|
8960
9090
|
|
|
8961
|
-
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}.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}";
|
|
9091
|
+
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}";
|
|
8962
9092
|
|
|
8963
9093
|
const isGroup = (el) => el.tagName === ComboboxItemGroup;
|
|
8964
9094
|
let CalciteCombobox$1 = class extends HTMLElement {
|
|
8965
9095
|
constructor() {
|
|
8966
9096
|
super();
|
|
8967
9097
|
this.__registerHost();
|
|
8968
|
-
|
|
9098
|
+
this.__attachShadow();
|
|
8969
9099
|
this.calciteLookupChange = createEvent(this, "calciteLookupChange", 7);
|
|
8970
9100
|
this.calciteComboboxChange = createEvent(this, "calciteComboboxChange", 7);
|
|
8971
9101
|
this.calciteComboboxFilterChange = createEvent(this, "calciteComboboxFilterChange", 7);
|
|
@@ -8985,6 +9115,12 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
8985
9115
|
this.maxItems = 0;
|
|
8986
9116
|
/** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */
|
|
8987
9117
|
this.overlayPositioning = "absolute";
|
|
9118
|
+
/**
|
|
9119
|
+
* When true, makes the component required for form-submission.
|
|
9120
|
+
*
|
|
9121
|
+
* @internal
|
|
9122
|
+
*/
|
|
9123
|
+
this.required = false;
|
|
8988
9124
|
/** specify the selection mode
|
|
8989
9125
|
* - multi: allow any number of selected items (default)
|
|
8990
9126
|
* - single: only one selection)
|
|
@@ -8993,6 +9129,14 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
8993
9129
|
this.selectionMode = "multi";
|
|
8994
9130
|
/** Specify the scale of the combobox, defaults to m */
|
|
8995
9131
|
this.scale = "m";
|
|
9132
|
+
/** The value(s) of the selectedItem(s) */
|
|
9133
|
+
this.value = null;
|
|
9134
|
+
//--------------------------------------------------------------------------
|
|
9135
|
+
//
|
|
9136
|
+
// Private State/Props
|
|
9137
|
+
//
|
|
9138
|
+
//--------------------------------------------------------------------------
|
|
9139
|
+
this.internalValueChangeFlag = false;
|
|
8996
9140
|
this.items = [];
|
|
8997
9141
|
this.groupItems = [];
|
|
8998
9142
|
this.selectedItems = [];
|
|
@@ -9011,6 +9155,18 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
9011
9155
|
this.inputHeight = 0;
|
|
9012
9156
|
this.ignoreSelectedEventsFlag = false;
|
|
9013
9157
|
this.activeTransitionProp = "opacity";
|
|
9158
|
+
// --------------------------------------------------------------------------
|
|
9159
|
+
//
|
|
9160
|
+
// Private Methods
|
|
9161
|
+
//
|
|
9162
|
+
// --------------------------------------------------------------------------
|
|
9163
|
+
this.getValue = () => {
|
|
9164
|
+
const items = this.selectedItems.map((item) => item === null || item === void 0 ? void 0 : item.value.toString());
|
|
9165
|
+
return (items === null || items === void 0 ? void 0 : items.length) ? (items.length > 1 ? items : items[0]) : "";
|
|
9166
|
+
};
|
|
9167
|
+
this.onLabelClick = () => {
|
|
9168
|
+
this.setFocus();
|
|
9169
|
+
};
|
|
9014
9170
|
this.keydownHandler = (event) => {
|
|
9015
9171
|
const key = getKey(event.key, getElementDir(this.el));
|
|
9016
9172
|
switch (key) {
|
|
@@ -9105,7 +9261,10 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
9105
9261
|
}
|
|
9106
9262
|
this.calciteComboboxChipDismiss.emit(event.detail);
|
|
9107
9263
|
};
|
|
9108
|
-
this.setFocusClick = () => {
|
|
9264
|
+
this.setFocusClick = (event) => {
|
|
9265
|
+
if (event.composedPath().some((node) => node.tagName === "CALCITE-CHIP")) {
|
|
9266
|
+
return;
|
|
9267
|
+
}
|
|
9109
9268
|
this.setFocus();
|
|
9110
9269
|
};
|
|
9111
9270
|
this.setInactiveIfNotContained = (event) => {
|
|
@@ -9193,8 +9352,9 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
9193
9352
|
}
|
|
9194
9353
|
};
|
|
9195
9354
|
this.comboboxFocusHandler = () => {
|
|
9355
|
+
var _a;
|
|
9196
9356
|
this.active = true;
|
|
9197
|
-
this.textInput.focus();
|
|
9357
|
+
(_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
9198
9358
|
};
|
|
9199
9359
|
this.comboboxBlurHandler = (event) => {
|
|
9200
9360
|
this.setInactiveIfNotContained(event);
|
|
@@ -9221,6 +9381,21 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
9221
9381
|
maxItemsHandler() {
|
|
9222
9382
|
this.setMaxScrollerHeight();
|
|
9223
9383
|
}
|
|
9384
|
+
valueHandler(value) {
|
|
9385
|
+
if (!this.internalValueChangeFlag) {
|
|
9386
|
+
const items = this.getItems();
|
|
9387
|
+
if (Array.isArray(value)) {
|
|
9388
|
+
items.forEach((item) => (item.selected = value.includes(item.value)));
|
|
9389
|
+
}
|
|
9390
|
+
else if (value) {
|
|
9391
|
+
items.forEach((item) => (item.selected = value === item.value));
|
|
9392
|
+
}
|
|
9393
|
+
else {
|
|
9394
|
+
items.forEach((item) => (item.selected = false));
|
|
9395
|
+
}
|
|
9396
|
+
this.updateItems();
|
|
9397
|
+
}
|
|
9398
|
+
}
|
|
9224
9399
|
//--------------------------------------------------------------------------
|
|
9225
9400
|
//
|
|
9226
9401
|
// Event Listeners
|
|
@@ -9246,7 +9421,7 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
9246
9421
|
const { popper, menuEl } = this;
|
|
9247
9422
|
const modifiers = this.getModifiers();
|
|
9248
9423
|
popper
|
|
9249
|
-
? updatePopper({
|
|
9424
|
+
? await updatePopper({
|
|
9250
9425
|
el: menuEl,
|
|
9251
9426
|
modifiers,
|
|
9252
9427
|
placement: ComboboxDefaultPlacement,
|
|
@@ -9269,13 +9444,20 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
9269
9444
|
// --------------------------------------------------------------------------
|
|
9270
9445
|
connectedCallback() {
|
|
9271
9446
|
var _a;
|
|
9447
|
+
this.internalValueChangeFlag = true;
|
|
9448
|
+
this.value = this.getValue();
|
|
9449
|
+
this.internalValueChangeFlag = false;
|
|
9272
9450
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
9273
9451
|
this.createPopper();
|
|
9274
9452
|
connectLabel(this);
|
|
9453
|
+
connectForm(this);
|
|
9275
9454
|
}
|
|
9276
9455
|
componentWillLoad() {
|
|
9277
9456
|
this.updateItems();
|
|
9278
9457
|
}
|
|
9458
|
+
componentDidLoad() {
|
|
9459
|
+
afterConnectDefaultValueSet(this, this.getValue());
|
|
9460
|
+
}
|
|
9279
9461
|
componentDidRender() {
|
|
9280
9462
|
if (this.el.offsetHeight !== this.inputHeight) {
|
|
9281
9463
|
this.reposition();
|
|
@@ -9287,19 +9469,17 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
9287
9469
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
9288
9470
|
this.destroyPopper();
|
|
9289
9471
|
disconnectLabel(this);
|
|
9472
|
+
disconnectForm(this);
|
|
9473
|
+
}
|
|
9474
|
+
selectedItemsHandler() {
|
|
9475
|
+
this.internalValueChangeFlag = true;
|
|
9476
|
+
this.value = this.getValue();
|
|
9477
|
+
this.internalValueChangeFlag = false;
|
|
9290
9478
|
}
|
|
9291
9479
|
/** when search text is cleared, reset active to */
|
|
9292
9480
|
textHandler() {
|
|
9293
9481
|
this.updateActiveItemIndex(-1);
|
|
9294
9482
|
}
|
|
9295
|
-
// --------------------------------------------------------------------------
|
|
9296
|
-
//
|
|
9297
|
-
// Private Methods
|
|
9298
|
-
//
|
|
9299
|
-
// --------------------------------------------------------------------------
|
|
9300
|
-
onLabelClick() {
|
|
9301
|
-
this.setFocus();
|
|
9302
|
-
}
|
|
9303
9483
|
getModifiers() {
|
|
9304
9484
|
const flipModifier = {
|
|
9305
9485
|
name: "flip",
|
|
@@ -9347,9 +9527,11 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
9347
9527
|
calculateSingleItemHeight(item) {
|
|
9348
9528
|
let height = item.offsetHeight;
|
|
9349
9529
|
// if item has children items, don't count their height twice
|
|
9350
|
-
const children = item.querySelectorAll(ComboboxChildSelector);
|
|
9351
|
-
children
|
|
9352
|
-
|
|
9530
|
+
const children = Array.from(item.querySelectorAll(ComboboxChildSelector));
|
|
9531
|
+
children
|
|
9532
|
+
.map((child) => child === null || child === void 0 ? void 0 : child.offsetHeight)
|
|
9533
|
+
.forEach((offsetHeight) => {
|
|
9534
|
+
height -= offsetHeight;
|
|
9353
9535
|
});
|
|
9354
9536
|
return height;
|
|
9355
9537
|
}
|
|
@@ -9367,16 +9549,17 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
9367
9549
|
this.emitCalciteLookupChange();
|
|
9368
9550
|
this.emitComboboxChange();
|
|
9369
9551
|
this.resetText();
|
|
9370
|
-
this.textInput.focus();
|
|
9371
9552
|
this.filterItems("");
|
|
9372
9553
|
}
|
|
9373
9554
|
else {
|
|
9374
9555
|
this.ignoreSelectedEventsFlag = true;
|
|
9375
|
-
this.items.forEach((el) => (el.selected = el === item));
|
|
9556
|
+
this.items.forEach((el) => (el.selected = el === item ? value : false));
|
|
9376
9557
|
this.ignoreSelectedEventsFlag = false;
|
|
9377
9558
|
this.selectedItems = this.getSelectedItems();
|
|
9378
9559
|
this.emitComboboxChange();
|
|
9379
|
-
this.textInput
|
|
9560
|
+
if (this.textInput) {
|
|
9561
|
+
this.textInput.value = item.textLabel;
|
|
9562
|
+
}
|
|
9380
9563
|
this.active = false;
|
|
9381
9564
|
this.updateActiveItemIndex(-1);
|
|
9382
9565
|
this.resetText();
|
|
@@ -9433,7 +9616,9 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
9433
9616
|
return this.selectionMode === "single" && this.items.some((item) => item.icon);
|
|
9434
9617
|
}
|
|
9435
9618
|
resetText() {
|
|
9436
|
-
this.textInput
|
|
9619
|
+
if (this.textInput) {
|
|
9620
|
+
this.textInput.value = "";
|
|
9621
|
+
}
|
|
9437
9622
|
this.text = "";
|
|
9438
9623
|
}
|
|
9439
9624
|
getItems() {
|
|
@@ -9521,6 +9706,7 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
9521
9706
|
}
|
|
9522
9707
|
}
|
|
9523
9708
|
updateActiveItemIndex(index) {
|
|
9709
|
+
var _a;
|
|
9524
9710
|
this.activeItemIndex = index;
|
|
9525
9711
|
let activeDescendant = null;
|
|
9526
9712
|
this.visibleItems.forEach((el, i) => {
|
|
@@ -9535,7 +9721,7 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
9535
9721
|
this.activeDescendant = activeDescendant;
|
|
9536
9722
|
if (this.activeItemIndex > -1) {
|
|
9537
9723
|
this.activeChipIndex = -1;
|
|
9538
|
-
this.textInput.focus();
|
|
9724
|
+
(_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
9539
9725
|
}
|
|
9540
9726
|
}
|
|
9541
9727
|
isMulti() {
|
|
@@ -9612,12 +9798,14 @@ let CalciteCombobox$1 = class extends HTMLElement {
|
|
|
9612
9798
|
wrapper: true,
|
|
9613
9799
|
"wrapper--single": single || !this.selectedItems.length,
|
|
9614
9800
|
"wrapper--active": open
|
|
9615
|
-
}, 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()));
|
|
9801
|
+
}, 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 })));
|
|
9616
9802
|
}
|
|
9617
9803
|
get el() { return this; }
|
|
9618
9804
|
static get watchers() { return {
|
|
9619
9805
|
"active": ["activeHandler"],
|
|
9620
9806
|
"maxItems": ["maxItemsHandler"],
|
|
9807
|
+
"value": ["valueHandler"],
|
|
9808
|
+
"selectedItems": ["selectedItemsHandler"],
|
|
9621
9809
|
"text": ["textHandler"]
|
|
9622
9810
|
}; }
|
|
9623
9811
|
static get style() { return calciteComboboxCss; }
|
|
@@ -9642,7 +9830,7 @@ let CalciteComboboxItem$1 = class extends HTMLElement {
|
|
|
9642
9830
|
constructor() {
|
|
9643
9831
|
super();
|
|
9644
9832
|
this.__registerHost();
|
|
9645
|
-
|
|
9833
|
+
this.__attachShadow();
|
|
9646
9834
|
this.calciteComboboxItemChange = createEvent(this, "calciteComboboxItemChange", 7);
|
|
9647
9835
|
// --------------------------------------------------------------------------
|
|
9648
9836
|
//
|
|
@@ -9761,7 +9949,7 @@ let CalciteComboboxItemGroup$1 = class extends HTMLElement {
|
|
|
9761
9949
|
constructor() {
|
|
9762
9950
|
super();
|
|
9763
9951
|
this.__registerHost();
|
|
9764
|
-
|
|
9952
|
+
this.__attachShadow();
|
|
9765
9953
|
this.guid = guid();
|
|
9766
9954
|
this.scale = "m";
|
|
9767
9955
|
}
|
|
@@ -10147,7 +10335,7 @@ let CalciteDatePicker$1 = class extends HTMLElement {
|
|
|
10147
10335
|
constructor() {
|
|
10148
10336
|
super();
|
|
10149
10337
|
this.__registerHost();
|
|
10150
|
-
|
|
10338
|
+
this.__attachShadow();
|
|
10151
10339
|
this.calciteDatePickerChange = createEvent(this, "calciteDatePickerChange", 7);
|
|
10152
10340
|
this.calciteDatePickerRangeChange = createEvent(this, "calciteDatePickerRangeChange", 7);
|
|
10153
10341
|
/** Localized string for "previous month" (used for aria label)
|
|
@@ -10281,7 +10469,9 @@ let CalciteDatePicker$1 = class extends HTMLElement {
|
|
|
10281
10469
|
*/
|
|
10282
10470
|
this.reset = () => {
|
|
10283
10471
|
var _a, _b, _c, _d, _e, _f;
|
|
10284
|
-
if (
|
|
10472
|
+
if (!Array.isArray(this.valueAsDate) &&
|
|
10473
|
+
this.valueAsDate &&
|
|
10474
|
+
((_a = this.valueAsDate) === null || _a === void 0 ? void 0 : _a.getTime()) !== ((_b = this.activeDate) === null || _b === void 0 ? void 0 : _b.getTime())) {
|
|
10285
10475
|
this.activeDate = new Date(this.valueAsDate);
|
|
10286
10476
|
}
|
|
10287
10477
|
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())) {
|
|
@@ -10350,8 +10540,10 @@ let CalciteDatePicker$1 = class extends HTMLElement {
|
|
|
10350
10540
|
};
|
|
10351
10541
|
}
|
|
10352
10542
|
handleValueAsDate(date) {
|
|
10353
|
-
this.activeDate
|
|
10354
|
-
|
|
10543
|
+
if (!Array.isArray(date) && date && date !== this.activeDate) {
|
|
10544
|
+
this.activeDate = date;
|
|
10545
|
+
this.calciteDatePickerChange.emit(date);
|
|
10546
|
+
}
|
|
10355
10547
|
}
|
|
10356
10548
|
handleRangeChange() {
|
|
10357
10549
|
const { startAsDate: startDate, endAsDate: endDate } = this;
|
|
@@ -10364,7 +10556,12 @@ let CalciteDatePicker$1 = class extends HTMLElement {
|
|
|
10364
10556
|
//
|
|
10365
10557
|
// --------------------------------------------------------------------------
|
|
10366
10558
|
connectedCallback() {
|
|
10367
|
-
if (this.value) {
|
|
10559
|
+
if (Array.isArray(this.value)) {
|
|
10560
|
+
this.valueAsDate = this.value.map((v) => dateFromISO(v));
|
|
10561
|
+
this.start = this.value[0];
|
|
10562
|
+
this.end = this.value[1];
|
|
10563
|
+
}
|
|
10564
|
+
else if (this.value) {
|
|
10368
10565
|
this.valueAsDate = dateFromISO(this.value);
|
|
10369
10566
|
}
|
|
10370
10567
|
if (this.start) {
|
|
@@ -10415,8 +10612,17 @@ let CalciteDatePicker$1 = class extends HTMLElement {
|
|
|
10415
10612
|
const dir = getElementDir(this.el);
|
|
10416
10613
|
return (h(Host, { onBlur: this.reset, onKeyUp: this.keyUpHandler, role: "application" }, this.renderCalendar(activeDate, dir, maxDate, minDate, date, endDate)));
|
|
10417
10614
|
}
|
|
10418
|
-
|
|
10419
|
-
|
|
10615
|
+
valueHandler(value) {
|
|
10616
|
+
if (Array.isArray(value)) {
|
|
10617
|
+
this.valueAsDate = value.map((v) => dateFromISO(v));
|
|
10618
|
+
this.start = value[0];
|
|
10619
|
+
this.end = value[1];
|
|
10620
|
+
}
|
|
10621
|
+
else if (value) {
|
|
10622
|
+
this.valueAsDate = dateFromISO(value);
|
|
10623
|
+
this.start = "";
|
|
10624
|
+
this.end = "";
|
|
10625
|
+
}
|
|
10420
10626
|
}
|
|
10421
10627
|
startWatcher(start) {
|
|
10422
10628
|
this.setStartAsDate(dateFromISO(start));
|
|
@@ -10494,7 +10700,7 @@ let CalciteDatePicker$1 = class extends HTMLElement {
|
|
|
10494
10700
|
"valueAsDate": ["handleValueAsDate"],
|
|
10495
10701
|
"startAsDate": ["handleRangeChange"],
|
|
10496
10702
|
"endAsDate": ["handleRangeChange"],
|
|
10497
|
-
"value": ["
|
|
10703
|
+
"value": ["valueHandler"],
|
|
10498
10704
|
"start": ["startWatcher"],
|
|
10499
10705
|
"end": ["endWatcher"],
|
|
10500
10706
|
"locale": ["loadLocaleData"]
|
|
@@ -10508,7 +10714,7 @@ let CalciteDatePickerDay$1 = class extends HTMLElement {
|
|
|
10508
10714
|
constructor() {
|
|
10509
10715
|
super();
|
|
10510
10716
|
this.__registerHost();
|
|
10511
|
-
|
|
10717
|
+
this.__attachShadow();
|
|
10512
10718
|
this.calciteDaySelect = createEvent(this, "calciteDaySelect", 7);
|
|
10513
10719
|
this.calciteDayHover = createEvent(this, "calciteDayHover", 7);
|
|
10514
10720
|
/** Date is outside of range and can't be selected */
|
|
@@ -10572,7 +10778,7 @@ let CalciteDatePickerMonth$1 = class extends HTMLElement {
|
|
|
10572
10778
|
constructor() {
|
|
10573
10779
|
super();
|
|
10574
10780
|
this.__registerHost();
|
|
10575
|
-
|
|
10781
|
+
this.__attachShadow();
|
|
10576
10782
|
this.calciteDatePickerSelect = createEvent(this, "calciteDatePickerSelect", 7);
|
|
10577
10783
|
this.calciteDatePickerHover = createEvent(this, "calciteDatePickerHover", 7);
|
|
10578
10784
|
this.calciteDatePickerActiveDateChange = createEvent(this, "calciteDatePickerActiveDateChange", 7);
|
|
@@ -10847,7 +11053,7 @@ let CalciteDatePickerMonthHeader$1 = class extends HTMLElement {
|
|
|
10847
11053
|
constructor() {
|
|
10848
11054
|
super();
|
|
10849
11055
|
this.__registerHost();
|
|
10850
|
-
|
|
11056
|
+
this.__attachShadow();
|
|
10851
11057
|
this.calciteDatePickerSelect = createEvent(this, "calciteDatePickerSelect", 7);
|
|
10852
11058
|
//--------------------------------------------------------------------------
|
|
10853
11059
|
//
|
|
@@ -10980,7 +11186,7 @@ let CalciteDropdown$1 = class extends HTMLElement {
|
|
|
10980
11186
|
constructor() {
|
|
10981
11187
|
super();
|
|
10982
11188
|
this.__registerHost();
|
|
10983
|
-
|
|
11189
|
+
this.__attachShadow();
|
|
10984
11190
|
this.calciteDropdownSelect = createEvent(this, "calciteDropdownSelect", 7);
|
|
10985
11191
|
this.calciteDropdownOpen = createEvent(this, "calciteDropdownOpen", 7);
|
|
10986
11192
|
this.calciteDropdownClose = createEvent(this, "calciteDropdownClose", 7);
|
|
@@ -11145,7 +11351,7 @@ let CalciteDropdown$1 = class extends HTMLElement {
|
|
|
11145
11351
|
this.setMaxScrollerHeight();
|
|
11146
11352
|
const modifiers = this.getModifiers();
|
|
11147
11353
|
popper
|
|
11148
|
-
? updatePopper({
|
|
11354
|
+
? await updatePopper({
|
|
11149
11355
|
el: menuEl,
|
|
11150
11356
|
modifiers,
|
|
11151
11357
|
placement,
|
|
@@ -11336,7 +11542,7 @@ let CalciteDropdownGroup$1 = class extends HTMLElement {
|
|
|
11336
11542
|
constructor() {
|
|
11337
11543
|
super();
|
|
11338
11544
|
this.__registerHost();
|
|
11339
|
-
|
|
11545
|
+
this.__attachShadow();
|
|
11340
11546
|
this.calciteDropdownItemChange = createEvent(this, "calciteDropdownItemChange", 7);
|
|
11341
11547
|
/** specify the selection mode - multi (allow any number of (or no) active items), single (allow and require one active item),
|
|
11342
11548
|
none (no active items), defaults to single */
|
|
@@ -11397,13 +11603,13 @@ const CSS$y = {
|
|
|
11397
11603
|
containerNone: "container--none-selection"
|
|
11398
11604
|
};
|
|
11399
11605
|
|
|
11400
|
-
const calciteDropdownItemCss = "@-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}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem;padding-right:0.5rem;padding-left:1.5rem;padding-top:0.25rem;padding-bottom:0.25rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem;padding-right:0.75rem;padding-left:2rem;padding-top:0.5rem;padding-bottom:0.5rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-right:1rem;padding-left:2.5rem;padding-top:0.75rem;padding-bottom:0.75rem}.container--s.calcite--rtl{padding-right:1.5rem;padding-left:0.5rem}.container--m.calcite--rtl{padding-right:2rem;padding-left:0.75rem}.container--l.calcite--rtl{padding-right:2.5rem;padding-left:1rem}:host{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;position:relative}.container{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative}.dropdown-item-content{margin-right:auto;margin-left:0.25rem}.calcite--rtl .dropdown-item-content{margin-left:auto;margin-right:0}:host,.container--link a{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}:host(:focus)
|
|
11606
|
+
const calciteDropdownItemCss = "@-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}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem;padding-right:0.5rem;padding-left:1.5rem;padding-top:0.25rem;padding-bottom:0.25rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem;padding-right:0.75rem;padding-left:2rem;padding-top:0.5rem;padding-bottom:0.5rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-right:1rem;padding-left:2.5rem;padding-top:0.75rem;padding-bottom:0.75rem}.container--s.calcite--rtl{padding-right:1.5rem;padding-left:0.5rem}.container--m.calcite--rtl{padding-right:2rem;padding-left:0.75rem}.container--l.calcite--rtl{padding-right:2.5rem;padding-left:1rem}:host{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;position:relative}.container{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative}.dropdown-item-content{margin-right:auto;margin-left:0.25rem}.calcite--rtl .dropdown-item-content{margin-left:auto;margin-right:0}:host,.container--link a{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}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.container--link{padding:0}.container--link a{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative}.container--s .dropdown-link{font-size:var(--calcite-font-size--2);line-height:1rem;padding-right:0.5rem;padding-left:1.5rem;padding-top:0.25rem;padding-bottom:0.25rem}.container--m .dropdown-link{font-size:var(--calcite-font-size--1);line-height:1rem;padding-right:0.75rem;padding-left:2rem;padding-top:0.5rem;padding-bottom:0.5rem}.container--l .dropdown-link{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-right:1rem;padding-left:2.5rem;padding-top:0.75rem;padding-bottom:0.75rem}:host(:hover) .container,:host(:active) .container{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);text-decoration:none}:host(:hover) .container--link .dropdown-link,:host(:active) .container--link .dropdown-link{color:var(--calcite-ui-text-1)}:host(:focus) .container{color:var(--calcite-ui-text-1);text-decoration:none}:host(:active) .container{background-color:var(--calcite-ui-foreground-3)}:host(:hover) .container:before,:host(:active) .container:before,:host(:focus) .container:before{opacity:1}.calcite--rtl:before{left:unset;right:1rem}.calcite--rtl .dropdown-link{padding-right:0;padding-left:0}:host([active]) .container:not(.container--none-selection),:host([active]) .container--link .dropdown-link{color:var(--calcite-ui-text-1);font-weight:var(--calcite-font-weight-medium)}:host([active]) .container:not(.container--none-selection):before,:host([active]) .container--link .dropdown-link:before{opacity:1;color:var(--calcite-ui-brand)}:host([active]) .container:not(.container--none-selection) calcite-icon,:host([active]) .container--link .dropdown-link calcite-icon{color:var(--calcite-ui-brand)}.container--multi-selection:before,.container--none-selection:before{display:none}.container--s:before{left:0.5rem}.container--m:before{left:0.75rem}.container--l:before{left:1rem}.calcite--rtl:before{left:unset}.container--s.calcite--rtl:before{right:0.5rem}.container--m.calcite--rtl:before{right:0.75rem}.container--l.calcite--rtl:before{right:1rem}.dropdown-item-icon{position:absolute;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(0.9);transform:scale(0.9)}.container--s .dropdown-item-icon{left:0.25rem}.container--m .dropdown-item-icon{left:0.5rem}.container--l .dropdown-item-icon{left:0.75rem}.calcite--rtl .dropdown-item-icon{left:unset;margin-left:0}.container--s.calcite--rtl .dropdown-item-icon{right:0.25rem}.container--m.calcite--rtl .dropdown-item-icon{right:0.5rem}.container--l.calcite--rtl .dropdown-item-icon{right:0.75rem}:host(:hover) .dropdown-item-icon{color:var(--calcite-ui-border-1);opacity:1}:host([active]) .dropdown-item-icon{color:var(--calcite-ui-brand);opacity:1}.container--s .dropdown-item-icon-start{margin-right:0.5rem;margin-left:0.25rem}.container--s .dropdown-item-icon-end{margin-left:0.5rem}.container--m .dropdown-item-icon-start{margin-right:0.75rem;margin-left:0.25rem}.container--m .dropdown-item-icon-end{margin-left:0.75rem}.container--l .dropdown-item-icon-start{margin-right:1rem;margin-left:0.25rem}.container--l .dropdown-item-icon-end{margin-left:1rem}.calcite--rtl .dropdown-item-icon-start{margin-right:0}.calcite--rtl .dropdown-item-icon-end{margin-left:0}.container--s.calcite--rtl .dropdown-item-icon-start{margin-left:0.5rem}.container--s.calcite--rtl .dropdown-item-icon-end{margin-right:0.5rem}.container--m.calcite--rtl .dropdown-item-icon-start{margin-left:0.75rem}.container--m.calcite--rtl .dropdown-item-icon-end{margin-right:0.75rem}.container--l.calcite--rtl .dropdown-item-icon-start{margin-left:1rem}.container--l.calcite--rtl .dropdown-item-icon-end{margin-right:1rem}.calcite--rtl calcite-icon{margin-right:0;margin-left:0.75rem}";
|
|
11401
11607
|
|
|
11402
11608
|
let CalciteDropdownItem$1 = class extends HTMLElement {
|
|
11403
11609
|
constructor() {
|
|
11404
11610
|
super();
|
|
11405
11611
|
this.__registerHost();
|
|
11406
|
-
|
|
11612
|
+
this.__attachShadow();
|
|
11407
11613
|
this.calciteDropdownItemSelect = createEvent(this, "calciteDropdownItemSelect", 7);
|
|
11408
11614
|
this.calciteDropdownItemKeyEvent = createEvent(this, "calciteDropdownItemKeyEvent", 7);
|
|
11409
11615
|
this.calciteDropdownCloseRequest = createEvent(this, "calciteDropdownCloseRequest", 7);
|
|
@@ -11562,7 +11768,7 @@ let CalciteFab$1 = class extends HTMLElement {
|
|
|
11562
11768
|
constructor() {
|
|
11563
11769
|
super();
|
|
11564
11770
|
this.__registerHost();
|
|
11565
|
-
|
|
11771
|
+
this.__attachShadow();
|
|
11566
11772
|
// --------------------------------------------------------------------------
|
|
11567
11773
|
//
|
|
11568
11774
|
// Properties
|
|
@@ -11645,13 +11851,18 @@ let CalciteFilter$1 = class extends HTMLElement {
|
|
|
11645
11851
|
constructor() {
|
|
11646
11852
|
super();
|
|
11647
11853
|
this.__registerHost();
|
|
11648
|
-
|
|
11854
|
+
this.__attachShadow();
|
|
11649
11855
|
this.calciteFilterChange = createEvent(this, "calciteFilterChange", 7);
|
|
11650
11856
|
/**
|
|
11651
11857
|
* When true, disabled prevents interaction. This state shows items with lower opacity/grayed.
|
|
11652
11858
|
*/
|
|
11653
11859
|
this.disabled = false;
|
|
11654
|
-
|
|
11860
|
+
/**
|
|
11861
|
+
* The resulting items after filtering.
|
|
11862
|
+
*
|
|
11863
|
+
* @readonly
|
|
11864
|
+
*/
|
|
11865
|
+
this.filteredItems = [];
|
|
11655
11866
|
// --------------------------------------------------------------------------
|
|
11656
11867
|
//
|
|
11657
11868
|
// Private Methods
|
|
@@ -11659,10 +11870,8 @@ let CalciteFilter$1 = class extends HTMLElement {
|
|
|
11659
11870
|
// --------------------------------------------------------------------------
|
|
11660
11871
|
this.filter = debounce$1((value) => {
|
|
11661
11872
|
const regex = new RegExp(value, "i");
|
|
11662
|
-
if (this.
|
|
11663
|
-
|
|
11664
|
-
The data property expects an array of objects`);
|
|
11665
|
-
this.calciteFilterChange.emit([]);
|
|
11873
|
+
if (this.items.length === 0) {
|
|
11874
|
+
this.updateFiltered([]);
|
|
11666
11875
|
return;
|
|
11667
11876
|
}
|
|
11668
11877
|
const find = (input, RE) => {
|
|
@@ -11682,15 +11891,14 @@ let CalciteFilter$1 = class extends HTMLElement {
|
|
|
11682
11891
|
});
|
|
11683
11892
|
return found;
|
|
11684
11893
|
};
|
|
11685
|
-
const result = this.
|
|
11894
|
+
const result = this.items.filter((item) => {
|
|
11686
11895
|
return find(item, regex);
|
|
11687
11896
|
});
|
|
11688
|
-
this.
|
|
11897
|
+
this.updateFiltered(result);
|
|
11689
11898
|
}, filterDebounceInMs);
|
|
11690
11899
|
this.inputHandler = (event) => {
|
|
11691
11900
|
const target = event.target;
|
|
11692
|
-
this.
|
|
11693
|
-
this.filter(target.value);
|
|
11901
|
+
this.value = target.value;
|
|
11694
11902
|
};
|
|
11695
11903
|
this.keyDownHandler = ({ key }) => {
|
|
11696
11904
|
if (key === "Escape") {
|
|
@@ -11698,12 +11906,29 @@ let CalciteFilter$1 = class extends HTMLElement {
|
|
|
11698
11906
|
}
|
|
11699
11907
|
};
|
|
11700
11908
|
this.clear = () => {
|
|
11701
|
-
this.
|
|
11702
|
-
this.empty = true;
|
|
11703
|
-
this.calciteFilterChange.emit(this.data);
|
|
11909
|
+
this.value = "";
|
|
11704
11910
|
this.setFocus();
|
|
11705
11911
|
};
|
|
11706
11912
|
}
|
|
11913
|
+
watchDataHandler(value) {
|
|
11914
|
+
this.items = value;
|
|
11915
|
+
}
|
|
11916
|
+
watchItemsHandler() {
|
|
11917
|
+
this.filter(this.value);
|
|
11918
|
+
}
|
|
11919
|
+
valueHandler(value) {
|
|
11920
|
+
this.filter(value);
|
|
11921
|
+
}
|
|
11922
|
+
//--------------------------------------------------------------------------
|
|
11923
|
+
//
|
|
11924
|
+
// Lifecycle
|
|
11925
|
+
//
|
|
11926
|
+
//--------------------------------------------------------------------------
|
|
11927
|
+
connectedCallback() {
|
|
11928
|
+
if (this.data && !this.items) {
|
|
11929
|
+
this.items = this.data;
|
|
11930
|
+
}
|
|
11931
|
+
}
|
|
11707
11932
|
// --------------------------------------------------------------------------
|
|
11708
11933
|
//
|
|
11709
11934
|
// Public Methods
|
|
@@ -11713,6 +11938,11 @@ let CalciteFilter$1 = class extends HTMLElement {
|
|
|
11713
11938
|
async setFocus() {
|
|
11714
11939
|
focusElement(this.textInput);
|
|
11715
11940
|
}
|
|
11941
|
+
updateFiltered(filtered) {
|
|
11942
|
+
this.filteredItems.length = 0;
|
|
11943
|
+
this.filteredItems = this.filteredItems.concat(filtered);
|
|
11944
|
+
this.calciteFilterChange.emit(filtered);
|
|
11945
|
+
}
|
|
11716
11946
|
// --------------------------------------------------------------------------
|
|
11717
11947
|
//
|
|
11718
11948
|
// Render Methods
|
|
@@ -11723,9 +11953,14 @@ let CalciteFilter$1 = class extends HTMLElement {
|
|
|
11723
11953
|
const { disabled } = this;
|
|
11724
11954
|
return (h(Fragment, null, disabled ? h("calcite-scrim", null) : null, h("div", { class: CSS$w.container }, h("label", { class: rtl ? CSS_UTILITY.rtl : null }, h("calcite-input", { "aria-label": this.intlLabel || TEXT$c.filterLabel, class: rtl ? CSS_UTILITY.rtl : null, disabled: this.disabled, icon: ICONS$8.search, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
11725
11955
|
this.textInput = el;
|
|
11726
|
-
}, type: "text", value:
|
|
11956
|
+
}, type: "text", value: this.value })), this.value ? (h("button", { "aria-label": this.intlClear || TEXT$c.clear, class: CSS$w.clearButton, onClick: this.clear }, h("calcite-icon", { icon: ICONS$8.close }))) : null)));
|
|
11727
11957
|
}
|
|
11728
11958
|
get el() { return this; }
|
|
11959
|
+
static get watchers() { return {
|
|
11960
|
+
"data": ["watchDataHandler"],
|
|
11961
|
+
"items": ["watchItemsHandler"],
|
|
11962
|
+
"value": ["valueHandler"]
|
|
11963
|
+
}; }
|
|
11729
11964
|
static get style() { return calciteFilterCss; }
|
|
11730
11965
|
};
|
|
11731
11966
|
|
|
@@ -11741,7 +11976,7 @@ let CalciteFlow$1 = class extends HTMLElement {
|
|
|
11741
11976
|
constructor() {
|
|
11742
11977
|
super();
|
|
11743
11978
|
this.__registerHost();
|
|
11744
|
-
|
|
11979
|
+
this.__attachShadow();
|
|
11745
11980
|
this.panelCount = 0;
|
|
11746
11981
|
this.flowDirection = null;
|
|
11747
11982
|
this.panels = [];
|
|
@@ -11886,7 +12121,7 @@ function translate({ width, height, min, max }) {
|
|
|
11886
12121
|
const rangeX = max[0] - min[0];
|
|
11887
12122
|
const rangeY = max[1] - min[1];
|
|
11888
12123
|
return (point) => {
|
|
11889
|
-
const x = (point[0] / rangeX) * width;
|
|
12124
|
+
const x = ((point[0] - min[0]) / rangeX) * width;
|
|
11890
12125
|
const y = height - (point[1] / rangeY) * height;
|
|
11891
12126
|
return [x, y];
|
|
11892
12127
|
};
|
|
@@ -11944,7 +12179,7 @@ let CalciteGraph$1 = class extends HTMLElement {
|
|
|
11944
12179
|
constructor() {
|
|
11945
12180
|
super();
|
|
11946
12181
|
this.__registerHost();
|
|
11947
|
-
|
|
12182
|
+
this.__attachShadow();
|
|
11948
12183
|
//--------------------------------------------------------------------------
|
|
11949
12184
|
//
|
|
11950
12185
|
// Properties
|
|
@@ -11972,17 +12207,25 @@ let CalciteGraph$1 = class extends HTMLElement {
|
|
|
11972
12207
|
//
|
|
11973
12208
|
//--------------------------------------------------------------------------
|
|
11974
12209
|
render() {
|
|
11975
|
-
const { data, colorStops, width, height, highlightMax, highlightMin } = this;
|
|
12210
|
+
const { data, colorStops, width, height, highlightMax, highlightMin, min, max } = this;
|
|
11976
12211
|
const id = this.graphId;
|
|
11977
12212
|
// if we have no data, return empty svg
|
|
11978
12213
|
if (!data || data.length === 0) {
|
|
11979
12214
|
return (h("svg", { class: "svg", height: height, preserveAspectRatio: "none", viewBox: `0 0 ${width} ${height}`, width: width }));
|
|
11980
12215
|
}
|
|
11981
|
-
const { min, max } = range(data);
|
|
11982
|
-
|
|
11983
|
-
|
|
11984
|
-
|
|
11985
|
-
|
|
12216
|
+
const { min: rangeMin, max: rangeMax } = range(data);
|
|
12217
|
+
let currentMin = rangeMin;
|
|
12218
|
+
let currentMax = rangeMax;
|
|
12219
|
+
if (min < rangeMin[0]) {
|
|
12220
|
+
currentMin = [min, 0];
|
|
12221
|
+
}
|
|
12222
|
+
if (max > rangeMax[0]) {
|
|
12223
|
+
currentMax = [max, rangeMax[1]];
|
|
12224
|
+
}
|
|
12225
|
+
const t = translate({ min: currentMin, max: currentMax, width, height });
|
|
12226
|
+
const [hMinX] = t([highlightMin, currentMax[1]]);
|
|
12227
|
+
const [hMaxX] = t([highlightMax, currentMax[1]]);
|
|
12228
|
+
const areaPath = area({ data, min: rangeMin, max: rangeMax, t });
|
|
11986
12229
|
const fill = colorStops ? `url(#linear-gradient-${id})` : undefined;
|
|
11987
12230
|
return (h("svg", { class: "svg", height: height, preserveAspectRatio: "none", viewBox: `0 0 ${width} ${height}`, width: width }, colorStops ? (h("defs", null, h("linearGradient", { id: `linear-gradient-${id}`, x1: "0", x2: "1", y1: "0", y2: "0" }, colorStops.map(({ offset, color, opacity }) => (h("stop", { offset: `${offset * 100}%`, "stop-color": color, "stop-opacity": opacity })))))) : null, highlightMin !== undefined ? ([
|
|
11988
12231
|
h("mask", { height: "100%", id: `${id}1`, width: "100%", x: "0%", y: "0%" }, h("path", { d: `
|
|
@@ -12029,7 +12272,7 @@ let CalciteHandle$1 = class extends HTMLElement {
|
|
|
12029
12272
|
constructor() {
|
|
12030
12273
|
super();
|
|
12031
12274
|
this.__registerHost();
|
|
12032
|
-
|
|
12275
|
+
this.__attachShadow();
|
|
12033
12276
|
this.calciteHandleNudge = createEvent(this, "calciteHandleNudge", 7);
|
|
12034
12277
|
// --------------------------------------------------------------------------
|
|
12035
12278
|
//
|
|
@@ -12163,7 +12406,7 @@ let CalciteIcon$1 = class extends HTMLElement {
|
|
|
12163
12406
|
constructor() {
|
|
12164
12407
|
super();
|
|
12165
12408
|
this.__registerHost();
|
|
12166
|
-
|
|
12409
|
+
this.__attachShadow();
|
|
12167
12410
|
//--------------------------------------------------------------------------
|
|
12168
12411
|
//
|
|
12169
12412
|
// Properties
|
|
@@ -12251,13 +12494,13 @@ let CalciteIcon$1 = class extends HTMLElement {
|
|
|
12251
12494
|
};
|
|
12252
12495
|
|
|
12253
12496
|
const CSS$s = {
|
|
12254
|
-
wrapper: "
|
|
12255
|
-
confirmChangesButton: "
|
|
12256
|
-
cancelEditingButton: "
|
|
12257
|
-
inputWrapper: "
|
|
12258
|
-
cancelEditingButtonWrapper: "
|
|
12259
|
-
enableEditingButton: "
|
|
12260
|
-
controlsWrapper: "
|
|
12497
|
+
wrapper: "wrapper",
|
|
12498
|
+
confirmChangesButton: "confirm-changes-button",
|
|
12499
|
+
cancelEditingButton: "cancel-editing-button",
|
|
12500
|
+
inputWrapper: "input-wrapper",
|
|
12501
|
+
cancelEditingButtonWrapper: "cancel-editing-button-wrapper",
|
|
12502
|
+
enableEditingButton: "enable-editing-button",
|
|
12503
|
+
controlsWrapper: "controls-wrapper"
|
|
12261
12504
|
};
|
|
12262
12505
|
const TEXT$b = {
|
|
12263
12506
|
intlEnablingEditing: "Click to edit",
|
|
@@ -12265,12 +12508,13 @@ const TEXT$b = {
|
|
|
12265
12508
|
intlConfirmChanges: "Save"
|
|
12266
12509
|
};
|
|
12267
12510
|
|
|
12268
|
-
const calciteInlineEditableCss = "@-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)}}
|
|
12511
|
+
const calciteInlineEditableCss = "@-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([scale=s]) .controls-wrapper{height:1.5rem}:host([scale=m]) .controls-wrapper{height:2rem}:host([scale=l]) .controls-wrapper{height:2.75rem}:host(:not([editing-enabled]):not([disabled])) .wrapper:hover{background-color:var(--calcite-ui-foreground-2)}.wrapper{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;background-color:var(--calcite-ui-foreground-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.wrapper .input-wrapper{-ms-flex:1 1 0%;flex:1 1 0%}.controls-wrapper{display:-ms-flexbox;display:flex}:host([disabled]) .cancel-editing-button-wrapper{border-color:var(--calcite-ui-border-2)}";
|
|
12269
12512
|
|
|
12270
12513
|
let CalciteInlineEditable$1 = class extends HTMLElement {
|
|
12271
12514
|
constructor() {
|
|
12272
12515
|
super();
|
|
12273
12516
|
this.__registerHost();
|
|
12517
|
+
this.__attachShadow();
|
|
12274
12518
|
this.calciteInlineEditableEditingCancel = createEvent(this, "calciteInlineEditableEditingCancel", 7);
|
|
12275
12519
|
this.calciteInlineEditableChangesConfirm = createEvent(this, "calciteInlineEditableChangesConfirm", 7);
|
|
12276
12520
|
this.calciteInlineEditableEnableEditingChange = createEvent(this, "calciteInlineEditableEnableEditingChange", 7);
|
|
@@ -12299,39 +12543,38 @@ let CalciteInlineEditable$1 = class extends HTMLElement {
|
|
|
12299
12543
|
* @default "Save"
|
|
12300
12544
|
*/
|
|
12301
12545
|
this.intlConfirmChanges = TEXT$b.intlConfirmChanges;
|
|
12302
|
-
this.editingCancelTransitionProp = "border-top-color";
|
|
12303
|
-
//--------------------------------------------------------------------------
|
|
12304
|
-
//
|
|
12305
|
-
// Private Methods
|
|
12306
|
-
//
|
|
12307
|
-
//--------------------------------------------------------------------------
|
|
12308
12546
|
this.transitionEnd = (event) => {
|
|
12309
|
-
if (!this.editingEnabled &&
|
|
12547
|
+
if (!this.editingEnabled && !!this.shouldEmitCancel) {
|
|
12310
12548
|
this.calciteInlineEditableEditingCancel.emit(event);
|
|
12311
12549
|
}
|
|
12312
12550
|
};
|
|
12313
12551
|
this.enableEditing = () => {
|
|
12314
|
-
this.htmlInput.tabIndex = undefined;
|
|
12315
12552
|
this.valuePriorToEditing = this.inputElement.value;
|
|
12316
12553
|
this.editingEnabled = true;
|
|
12317
12554
|
this.inputElement.setFocus();
|
|
12318
12555
|
this.calciteInlineEditableEnableEditingChange.emit();
|
|
12319
12556
|
};
|
|
12320
12557
|
this.disableEditing = () => {
|
|
12321
|
-
this.htmlInput.tabIndex = -1;
|
|
12322
12558
|
this.editingEnabled = false;
|
|
12323
12559
|
};
|
|
12324
|
-
this.cancelEditingEnd = () => {
|
|
12325
|
-
this.enableEditingButton.setFocus();
|
|
12326
|
-
this.el.removeEventListener("calciteInlineEditableEditingCancel", this.cancelEditingEnd);
|
|
12327
|
-
};
|
|
12328
12560
|
this.cancelEditing = () => {
|
|
12329
12561
|
this.inputElement.value = this.valuePriorToEditing;
|
|
12330
|
-
this.el.addEventListener("calciteInlineEditableEditingCancel", this.cancelEditingEnd);
|
|
12331
12562
|
this.disableEditing();
|
|
12563
|
+
this.enableEditingButton.setFocus();
|
|
12332
12564
|
};
|
|
12333
12565
|
this.escapeKeyHandler = async (e) => {
|
|
12334
12566
|
if (e.key !== "Escape") {
|
|
12567
|
+
if (e.key === "Tab" && this.shouldShowControls) {
|
|
12568
|
+
if (!e.shiftKey && e.target === this.inputElement) {
|
|
12569
|
+
e.preventDefault();
|
|
12570
|
+
this.cancelEditingButton.setFocus();
|
|
12571
|
+
}
|
|
12572
|
+
if (!!e.shiftKey && e.target === this.cancelEditingButton) {
|
|
12573
|
+
e.preventDefault();
|
|
12574
|
+
e.stopPropagation();
|
|
12575
|
+
this.inputElement.setFocus();
|
|
12576
|
+
}
|
|
12577
|
+
}
|
|
12335
12578
|
return;
|
|
12336
12579
|
}
|
|
12337
12580
|
this.cancelEditing();
|
|
@@ -12360,6 +12603,7 @@ let CalciteInlineEditable$1 = class extends HTMLElement {
|
|
|
12360
12603
|
this.loading = true;
|
|
12361
12604
|
await this.afterConfirm();
|
|
12362
12605
|
this.disableEditing();
|
|
12606
|
+
this.enableEditingButton.setFocus();
|
|
12363
12607
|
}
|
|
12364
12608
|
}
|
|
12365
12609
|
catch (e) {
|
|
@@ -12372,11 +12616,23 @@ let CalciteInlineEditable$1 = class extends HTMLElement {
|
|
|
12372
12616
|
disabledWatcher(disabled) {
|
|
12373
12617
|
this.inputElement.disabled = disabled;
|
|
12374
12618
|
}
|
|
12619
|
+
editingEnabledWatcher(newValue, oldValue) {
|
|
12620
|
+
this.inputElement.editingEnabled = newValue;
|
|
12621
|
+
if (!newValue && !!oldValue) {
|
|
12622
|
+
this.shouldEmitCancel = true;
|
|
12623
|
+
}
|
|
12624
|
+
}
|
|
12375
12625
|
//--------------------------------------------------------------------------
|
|
12376
12626
|
//
|
|
12377
12627
|
// Lifecycle
|
|
12378
12628
|
//
|
|
12379
12629
|
//--------------------------------------------------------------------------
|
|
12630
|
+
connectedCallback() {
|
|
12631
|
+
connectLabel(this);
|
|
12632
|
+
}
|
|
12633
|
+
disconnectedCallback() {
|
|
12634
|
+
disconnectLabel(this);
|
|
12635
|
+
}
|
|
12380
12636
|
componentWillLoad() {
|
|
12381
12637
|
this.inputElement = this.el.querySelector("calcite-input");
|
|
12382
12638
|
this.inputElement.disabled = this.disabled;
|
|
@@ -12384,21 +12640,12 @@ let CalciteInlineEditable$1 = class extends HTMLElement {
|
|
|
12384
12640
|
this.scale =
|
|
12385
12641
|
this.scale || this.inputElement.scale || getElementProp(this.el, "scale", undefined);
|
|
12386
12642
|
}
|
|
12387
|
-
componentDidLoad() {
|
|
12388
|
-
this.htmlInput = this.inputElement.querySelector("input");
|
|
12389
|
-
if (!this.editingEnabled) {
|
|
12390
|
-
this.htmlInput.tabIndex = -1;
|
|
12391
|
-
}
|
|
12392
|
-
}
|
|
12393
|
-
connectedCallback() {
|
|
12394
|
-
connectLabel(this);
|
|
12395
|
-
}
|
|
12396
|
-
disconnectedCallback() {
|
|
12397
|
-
disconnectLabel(this);
|
|
12398
|
-
}
|
|
12399
12643
|
render() {
|
|
12400
|
-
return (h("div", { class: CSS$s.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd }, h("div", { class: CSS$s.inputWrapper }, h("slot", null)), h("div", { class: CSS$s.controlsWrapper },
|
|
12401
|
-
|
|
12644
|
+
return (h("div", { class: CSS$s.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd }, h("div", { class: CSS$s.inputWrapper }, h("slot", null)), h("div", { class: CSS$s.controlsWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$s.enableEditingButton, color: "neutral", disabled: this.disabled, iconStart: "pencil", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {
|
|
12645
|
+
opacity: this.editingEnabled ? "0" : "1",
|
|
12646
|
+
width: this.editingEnabled ? "0" : "inherit"
|
|
12647
|
+
} }), this.shouldShowControls && [
|
|
12648
|
+
h("div", { class: CSS$s.cancelEditingButtonWrapper }, h("calcite-button", { appearance: "transparent", class: CSS$s.cancelEditingButton, color: "neutral", disabled: this.disabled, iconStart: "x", label: this.intlCancelEditing, onClick: this.cancelEditingHandler, ref: (el) => (this.cancelEditingButton = el), scale: this.scale })),
|
|
12402
12649
|
h("calcite-button", { appearance: "solid", class: CSS$s.confirmChangesButton, color: "blue", disabled: this.disabled, iconStart: "check", label: this.intlConfirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, scale: this.scale })
|
|
12403
12650
|
])));
|
|
12404
12651
|
}
|
|
@@ -12412,9 +12659,6 @@ let CalciteInlineEditable$1 = class extends HTMLElement {
|
|
|
12412
12659
|
this.disableEditing();
|
|
12413
12660
|
}
|
|
12414
12661
|
}
|
|
12415
|
-
onLabelClick() {
|
|
12416
|
-
this.setFocus();
|
|
12417
|
-
}
|
|
12418
12662
|
//--------------------------------------------------------------------------
|
|
12419
12663
|
//
|
|
12420
12664
|
// Public Methods
|
|
@@ -12429,29 +12673,40 @@ let CalciteInlineEditable$1 = class extends HTMLElement {
|
|
|
12429
12673
|
(_b = this.enableEditingButton) === null || _b === void 0 ? void 0 : _b.setFocus();
|
|
12430
12674
|
}
|
|
12431
12675
|
}
|
|
12676
|
+
//--------------------------------------------------------------------------
|
|
12677
|
+
//
|
|
12678
|
+
// Private Methods
|
|
12679
|
+
//
|
|
12680
|
+
//--------------------------------------------------------------------------
|
|
12681
|
+
onLabelClick() {
|
|
12682
|
+
this.setFocus();
|
|
12683
|
+
}
|
|
12432
12684
|
get shouldShowControls() {
|
|
12433
12685
|
return this.editingEnabled && this.controls;
|
|
12434
12686
|
}
|
|
12435
12687
|
get el() { return this; }
|
|
12436
12688
|
static get watchers() { return {
|
|
12437
|
-
"disabled": ["disabledWatcher"]
|
|
12689
|
+
"disabled": ["disabledWatcher"],
|
|
12690
|
+
"editingEnabled": ["editingEnabledWatcher"]
|
|
12438
12691
|
}; }
|
|
12439
12692
|
static get style() { return calciteInlineEditableCss; }
|
|
12440
12693
|
};
|
|
12441
12694
|
|
|
12442
12695
|
const CSS$r = {
|
|
12443
|
-
loader: "
|
|
12444
|
-
clearButton: "
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
|
|
12451
|
-
|
|
12452
|
-
|
|
12453
|
-
|
|
12454
|
-
|
|
12696
|
+
loader: "loader",
|
|
12697
|
+
clearButton: "clear-button",
|
|
12698
|
+
editingEnabled: "editing-enabled",
|
|
12699
|
+
inlineChild: "inline-child",
|
|
12700
|
+
inputIcon: "icon",
|
|
12701
|
+
prefix: "prefix",
|
|
12702
|
+
suffix: "suffix",
|
|
12703
|
+
numberButtonWrapper: "number-button-wrapper",
|
|
12704
|
+
buttonItemHorizontal: "number-button-item--horizontal",
|
|
12705
|
+
wrapper: "element-wrapper",
|
|
12706
|
+
inputWrapper: "wrapper",
|
|
12707
|
+
actionWrapper: "action-wrapper",
|
|
12708
|
+
resizeIconWrapper: "resize-icon-wrapper",
|
|
12709
|
+
numberButtonItem: "number-button-item"
|
|
12455
12710
|
};
|
|
12456
12711
|
const INPUT_TYPE_ICONS = {
|
|
12457
12712
|
tel: "phone",
|
|
@@ -12465,12 +12720,13 @@ const SLOTS$g = {
|
|
|
12465
12720
|
action: "action"
|
|
12466
12721
|
};
|
|
12467
12722
|
|
|
12468
|
-
const calciteInputCss = "@-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)}}.sc-calcite-input:root{--calcite-animation-timing:300ms}.calcite-animate.sc-calcite-input{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.sc-calcite-input{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down.sc-calcite-input{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up.sc-calcite-input{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale.sc-calcite-input{-webkit-animation-name:in-scale;animation-name:in-scale}.sc-calcite-input:root{--calcite-popper-transition:150ms ease-in-out}[hidden].sc-calcite-input-h{display:none}[scale=s].sc-calcite-input-h input.sc-calcite-input,[scale=s].sc-calcite-input-h .calcite-input__prefix.sc-calcite-input,[scale=s].sc-calcite-input-h .calcite-input__suffix.sc-calcite-input{font-size:var(--calcite-font-size--2);line-height:1rem;padding:0.5rem;height:1.5rem}[scale=s].sc-calcite-input-h textarea.sc-calcite-input{height:1.5rem;min-height:1.5rem}[scale=s].sc-calcite-input-h .calcite-input__number-button-wrapper.sc-calcite-input,[scale=s].sc-calcite-input-h .calcite-input__action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=s].sc-calcite-input-h .calcite-input__action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:1.5rem}[scale=s].sc-calcite-input-h input[type=file].sc-calcite-input{height:1.5rem}[scale=s].sc-calcite-input-h .calcite-input__clear-button.sc-calcite-input{min-height:1.5rem;min-width:1.5rem}[scale=s].sc-calcite-input-h textarea.sc-calcite-input{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.5rem;padding-right:0.5rem;height:auto}[scale=m].sc-calcite-input-h input.sc-calcite-input,[scale=m].sc-calcite-input-h .calcite-input__prefix.sc-calcite-input,[scale=m].sc-calcite-input-h .calcite-input__suffix.sc-calcite-input{font-size:var(--calcite-font-size--1);line-height:1rem;padding:0.75rem;height:2rem}[scale=m].sc-calcite-input-h textarea.sc-calcite-input{min-height:2rem}[scale=m].sc-calcite-input-h .calcite-input__number-button-wrapper.sc-calcite-input,[scale=m].sc-calcite-input-h .calcite-input__action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=m].sc-calcite-input-h .calcite-input__action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:2rem}[scale=m].sc-calcite-input-h input[type=file].sc-calcite-input{height:2rem}[scale=m].sc-calcite-input-h .calcite-input__clear-button.sc-calcite-input{min-height:2rem;min-width:2rem}[scale=m].sc-calcite-input-h textarea.sc-calcite-input{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;height:auto}[scale=l].sc-calcite-input-h input.sc-calcite-input,[scale=l].sc-calcite-input-h .calcite-input__prefix.sc-calcite-input,[scale=l].sc-calcite-input-h .calcite-input__suffix.sc-calcite-input{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding:1rem;height:2.75rem}[scale=l].sc-calcite-input-h textarea.sc-calcite-input{min-height:2.75rem}[scale=l].sc-calcite-input-h .calcite-input__number-button-wrapper.sc-calcite-input,[scale=l].sc-calcite-input-h .calcite-input__action-wrapper.sc-calcite-input calcite-button.sc-calcite-input,[scale=l].sc-calcite-input-h .calcite-input__action-wrapper.sc-calcite-input calcite-button.sc-calcite-input button.sc-calcite-input{height:2.75rem}[scale=l].sc-calcite-input-h input[type=file].sc-calcite-input{height:2.75rem}[scale=l].sc-calcite-input-h .calcite-input__clear-button.sc-calcite-input{min-height:2.75rem;min-width:2.75rem}[scale=l].sc-calcite-input-h textarea.sc-calcite-input{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;height:auto}[disabled].sc-calcite-input-h{pointer-events:none}[disabled].sc-calcite-input-h .calcite-input__wrapper.sc-calcite-input{pointer-events:none;--text-opacity:var(--calcite-ui-opacity-disabled)}[disabled].sc-calcite-input-h button.sc-calcite-input,[disabled].sc-calcite-input-h textarea.sc-calcite-input,[disabled].sc-calcite-input-h input.sc-calcite-input{pointer-events:none}[disabled].sc-calcite-input-h textarea.sc-calcite-input{resize:none}.sc-calcite-input-h textarea.sc-calcite-input,.sc-calcite-input-h input.sc-calcite-input{-webkit-transition:150ms ease-in-out, height 0s;transition:150ms ease-in-out, height 0s;-webkit-appearance:none;width:100%;border-radius:0;position:relative;max-height:100%;max-width:100%;margin:0;font-weight:var(--calcite-font-weight-normal);font-family:inherit;-ms-flex:1 1 0%;flex:1 1 0%;display:-ms-flexbox;display:flex;color:var(--calcite-ui-text-1);-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1)}.sc-calcite-input-h input[type=search].sc-calcite-input::-webkit-search-decoration{-webkit-appearance:none}.sc-calcite-input-h input.sc-calcite-input,.sc-calcite-input-h textarea.sc-calcite-input{color:var(--calcite-ui-text-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input)}.sc-calcite-input-h input.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input:-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}.sc-calcite-input-h input.sc-calcite-input::-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}.sc-calcite-input-h input.sc-calcite-input::placeholder,.sc-calcite-input-h input.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h input.sc-calcite-input::-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::placeholder,.sc-calcite-input-h textarea.sc-calcite-input:-ms-input-placeholder,.sc-calcite-input-h textarea.sc-calcite-input::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}.sc-calcite-input-h input.sc-calcite-input:focus,.sc-calcite-input-h textarea.sc-calcite-input:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}.sc-calcite-input-h input[readonly].sc-calcite-input,.sc-calcite-input-h textarea[readonly].sc-calcite-input{background-color:var(--calcite-ui-background)}.sc-calcite-input-h input[readonly].sc-calcite-input:focus,.sc-calcite-input-h textarea[readonly].sc-calcite-input:focus{color:var(--calcite-ui-text-1)}.sc-calcite-input-h calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-3)}.sc-calcite-input-h textarea.sc-calcite-input,.sc-calcite-input-h input.sc-calcite-input{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}.sc-calcite-input-h textarea.sc-calcite-input:focus,.sc-calcite-input-h input.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}[status=invalid].sc-calcite-input-h input.sc-calcite-input,[status=invalid].sc-calcite-input-h textarea.sc-calcite-input{border-color:var(--calcite-ui-danger)}[status=invalid].sc-calcite-input-h input.sc-calcite-input:focus,[status=invalid].sc-calcite-input-h textarea.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}[scale=s].sc-calcite-input-h .calcite-input__icon.sc-calcite-input{left:0.5rem}[scale=s].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input__icon.sc-calcite-input{left:unset;right:0.5rem}[scale=m].sc-calcite-input-h .calcite-input__icon.sc-calcite-input{left:0.75rem}[scale=m].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input__icon.sc-calcite-input{left:unset;right:0.75rem}[scale=l].sc-calcite-input-h .calcite-input__icon.sc-calcite-input{left:1rem}[scale=l].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input__icon.sc-calcite-input{left:unset;right:1rem}[icon][scale=s].sc-calcite-input-h input.sc-calcite-input{padding-left:2rem}[icon][scale=s].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{padding-right:2rem;padding-left:0.5rem}[icon][scale=m].sc-calcite-input-h input.sc-calcite-input{padding-left:2.5rem}[icon][scale=m].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{padding-right:2.5rem;padding-left:0.5rem}[icon][scale=l].sc-calcite-input-h input.sc-calcite-input{padding-left:3rem}[icon][scale=l].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{padding-right:3rem;padding-left:0.5rem}.calcite-input__element-wrapper.sc-calcite-input{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex:1 1 0%;flex:1 1 0%;position:relative;-ms-flex-order:3;order:3}.calcite-input__icon.sc-calcite-input{display:block;position:absolute;pointer-events:none;z-index:10;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}input[type=text].sc-calcite-input::-ms-clear,input[type=text].sc-calcite-input::-ms-reveal{display:none;width:0;height:0}input[type=search].sc-calcite-input::-webkit-search-decoration,input[type=search].sc-calcite-input::-webkit-search-cancel-button,input[type=search].sc-calcite-input::-webkit-search-results-button,input[type=search].sc-calcite-input::-webkit-search-results-decoration,input[type=date].sc-calcite-input::-webkit-clear-button,input[type=time].sc-calcite-input::-webkit-clear-button{display:none}.calcite-input__clear-button.sc-calcite-input{pointer-events:initial;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;display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;min-height:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);border-left-width:0;-ms-flex-order:4;order:4;margin:0}.calcite-input__clear-button.sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.calcite-input__clear-button.sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.calcite-input__clear-button.sc-calcite-input:active{background-color:var(--calcite-ui-foreground-3)}.calcite-input__clear-button.sc-calcite-input:active calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}.calcite-input__clear-button.sc-calcite-input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.calcite-input__clear-button.sc-calcite-input:disabled{opacity:var(--calcite-ui-opacity-disabled)}.calcite--rtl.sc-calcite-input .calcite-input__clear-button.sc-calcite-input{border-left-color:var(--calcite-ui-border-input);border-width:1px;border-right-width:0}.calcite-input__loader.sc-calcite-input{top:1px;left:1px;right:1px;display:block;pointer-events:none;position:absolute}.calcite-input__action-wrapper.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-order:7;order:7}.calcite-input__prefix.sc-calcite-input,.calcite-input__suffix.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:var(--calcite-font-weight-medium);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);color:var(--calcite-ui-text-2);line-height:1;word-wrap:break-word;overflow-wrap:break-word}.calcite-input__prefix.sc-calcite-input{-ms-flex-order:2;order:2;border-right-width:0}.calcite-input__suffix.sc-calcite-input{-ms-flex-order:5;order:5;border-left-width:0}.calcite--rtl.sc-calcite-input .calcite-input__prefix.sc-calcite-input{border-right-width:1px;border-left-width:0}.calcite--rtl.sc-calcite-input .calcite-input__suffix.sc-calcite-input{border-left-width:1px;border-right-width:0}[alignment=start].sc-calcite-input-h textarea.sc-calcite-input,[alignment=start].sc-calcite-input-h input.sc-calcite-input{text-align:left}[alignment=start].sc-calcite-input-h .calcite--rtl.sc-calcite-input textarea.sc-calcite-input,[alignment=start].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{text-align:right}[alignment=end].sc-calcite-input-h textarea.sc-calcite-input,[alignment=end].sc-calcite-input-h input.sc-calcite-input{text-align:right}[alignment=end].sc-calcite-input-h .calcite--rtl.sc-calcite-input textarea.sc-calcite-input,[alignment=end].sc-calcite-input-h .calcite--rtl.sc-calcite-input input.sc-calcite-input{text-align:left}.sc-calcite-input-h input[type=number].sc-calcite-input{-moz-appearance:textfield}.sc-calcite-input-h input[type=number].sc-calcite-input::-webkit-inner-spin-button,.sc-calcite-input-h input[type=number].sc-calcite-input::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}.calcite-input__number-button-wrapper.sc-calcite-input{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;pointer-events:none;-ms-flex-order:6;order:6;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}[number-button-type=vertical].sc-calcite-input-h .calcite-input__wrapper.sc-calcite-input{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}[number-button-type=vertical].sc-calcite-input-h input.sc-calcite-input,[number-button-type=vertical].sc-calcite-input-h textarea.sc-calcite-input{-ms-flex-order:2;order:2}[number-button-type=horizontal].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input__number-button-item[data-adjustment=down].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}[number-button-type=horizontal].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input__number-button-item[data-adjustment=up].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=down].sc-calcite-input,.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=up].sc-calcite-input{min-height:100%;max-height:100%;-ms-flex-order:1;order:1;-ms-flex-item-align:stretch;align-self:stretch}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=down].sc-calcite-input calcite-icon.sc-calcite-input,.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=up].sc-calcite-input calcite-icon.sc-calcite-input{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=down].sc-calcite-input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-right-width:0}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=down].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=down].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=up].sc-calcite-input{-ms-flex-order:5;order:5}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=up].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}.calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=up].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}[number-button-type=vertical].sc-calcite-input-h .calcite-input__number-button-item[data-adjustment=down].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}[number-button-type=vertical].sc-calcite-input-h .calcite-input__number-button-item[data-adjustment=down].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}[number-button-type=vertical].sc-calcite-input-h .calcite-input__number-button-item[data-adjustment=up].sc-calcite-input:hover{background-color:var(--calcite-ui-foreground-2)}[number-button-type=vertical].sc-calcite-input-h .calcite-input__number-button-item[data-adjustment=up].sc-calcite-input:hover calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}.calcite--rtl.sc-calcite-input .calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=down].sc-calcite-input{border-width:1px;border-left-width:0;border-color:var(--calcite-ui-border-input)}.calcite--rtl.sc-calcite-input .calcite-input__number-button-item.calcite-input__number-button-item--horizontal[data-adjustment=up].sc-calcite-input{border-width:1px;border-right-width:0;border-color:var(--calcite-ui-border-input)}[number-button-type=vertical].sc-calcite-input-h .calcite-input__number-button-item[data-adjustment=down].sc-calcite-input,[number-button-type=vertical].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input__number-button-item[data-adjustment=down].sc-calcite-input{border-top-width:0}.calcite-input__number-button-item.sc-calcite-input{max-height:50%;min-height:50%;pointer-events:initial;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;padding-top:0;padding-bottom:0;padding-left:0.5rem;padding-right:0.5rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);border-left-width:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;margin:0}.calcite-input__number-button-item.sc-calcite-input calcite-icon.sc-calcite-input{pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.calcite-input__number-button-item.sc-calcite-input:focus{background-color:var(--calcite-ui-foreground-2)}.calcite-input__number-button-item.sc-calcite-input:focus calcite-icon.sc-calcite-input{color:var(--calcite-ui-text-1)}.calcite-input__number-button-item.sc-calcite-input:active{background-color:var(--calcite-ui-foreground-3)}[number-button-type=vertical].sc-calcite-input-h .calcite--rtl.sc-calcite-input .calcite-input__number-button-item.sc-calcite-input{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-right-width:0}.calcite-input__wrapper.sc-calcite-input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;position:relative}.sc-calcite-input-h input.sc-calcite-input::-webkit-calendar-picker-indicator{display:none}.sc-calcite-input-h input[type=date].sc-calcite-input::-webkit-input-placeholder{visibility:hidden !important}.sc-calcite-input-h textarea.sc-calcite-input::-webkit-resizer{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;bottom:0;right:0;padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){.calcite-input__resize-icon-wrapper.sc-calcite-input{display:none}}.calcite-input__resize-icon-wrapper.sc-calcite-input{bottom:2px;right:2px;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);position:absolute;z-index:10;pointer-events:none;width:0.75rem;height:0.75rem}.calcite-input__resize-icon-wrapper.sc-calcite-input calcite-icon.sc-calcite-input{bottom:0.25rem;right:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl.sc-calcite-input textarea.sc-calcite-input::-webkit-resizer{right:unset;left:0}.calcite--rtl.sc-calcite-input .calcite-input__resize-icon-wrapper.sc-calcite-input{left:2px;right:unset}.calcite--rtl.sc-calcite-input .calcite-input__resize-icon-wrapper.sc-calcite-input calcite-icon.sc-calcite-input{bottom:0.25rem;right:0.25rem;-webkit-transform:rotate(45deg);transform:rotate(45deg)}[type=color].sc-calcite-input-h input.sc-calcite-input{padding:0.25rem}[type=file].sc-calcite-input-h input.sc-calcite-input{background-color:var(--calcite-ui-foreground-1);cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);text-align:center}[type=file][scale=s].sc-calcite-input-h input.sc-calcite-input{padding-top:1px;padding-bottom:1px;padding-left:0.5rem;padding-right:0.5rem}[type=file][scale=m].sc-calcite-input-h input.sc-calcite-input{padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem}[type=file][scale=l].sc-calcite-input-h input.sc-calcite-input{padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem}.no-bottom-border.sc-calcite-input-h input.sc-calcite-input.sc-calcite-input{border-bottom-width:0}.border-t-color-1.sc-calcite-input-h input.sc-calcite-input.sc-calcite-input{border-top-color:var(--calcite-ui-border-1)}";
|
|
12723
|
+
const calciteInputCss = "@-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([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{font-size:var(--calcite-font-size--2);line-height:1rem;padding:0.5rem;height:1.5rem}:host([scale=s]) textarea{height:1.5rem;min-height:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{height:1.5rem}:host([scale=s]) input[type=file]{height:1.5rem}:host([scale=s]) .clear-button{min-height:1.5rem;min-width:1.5rem}:host([scale=s]) textarea{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.5rem;padding-right:0.5rem;height:auto}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{font-size:var(--calcite-font-size--1);line-height:1rem;padding:0.75rem;height:2rem}:host([scale=m]) textarea{min-height:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{height:2rem}:host([scale=m]) input[type=file]{height:2rem}:host([scale=m]) .clear-button{min-height:2rem;min-width:2rem}:host([scale=m]) textarea{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;height:auto}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding:1rem;height:2.75rem}:host([scale=l]) textarea{min-height:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{height:2.75rem}:host([scale=l]) input[type=file]{height:2.75rem}:host([scale=l]) .clear-button{min-height:2.75rem;min-width:2.75rem}:host([scale=l]) textarea{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;height:auto}:host([disabled]){pointer-events:none}:host([disabled]) .wrapper{pointer-events:none;--text-opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) button,:host([disabled]) textarea,:host([disabled]) input{pointer-events:none}:host([disabled]) textarea{resize:none}:host textarea,:host input{-webkit-transition:150ms ease-in-out, height 0s;transition:150ms ease-in-out, height 0s;-webkit-appearance:none;width:100%;border-radius:0;position:relative;max-height:100%;max-width:100%;margin:0;font-weight:var(--calcite-font-weight-normal);font-family:inherit;-ms-flex:1 1 0%;flex:1 1 0%;display:-ms-flexbox;display:flex;color:var(--calcite-ui-text-1);-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1)}:host input[type=search]::-webkit-search-decoration{-webkit-appearance:none}:host input,:host textarea{color:var(--calcite-ui-text-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input)}:host input:-ms-input-placeholder,:host textarea:-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}:host input::-ms-input-placeholder,:host textarea::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}:host input::placeholder,:host input:-ms-input-placeholder,:host input::-ms-input-placeholder,:host textarea::placeholder,:host textarea:-ms-input-placeholder,:host textarea::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}:host input:focus,:host textarea:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}:host input[readonly],:host textarea[readonly]{background-color:var(--calcite-ui-background)}:host input[readonly]:focus,:host textarea[readonly]:focus{color:var(--calcite-ui-text-1)}:host calcite-icon{color:var(--calcite-ui-text-3)}:host textarea,:host input{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}:host textarea:focus,:host input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}:host([scale=s]) .icon{left:0.5rem}:host([scale=s]) .calcite--rtl .icon{left:unset;right:0.5rem}:host([scale=m]) .icon{left:0.75rem}:host([scale=m]) .calcite--rtl .icon{left:unset;right:0.75rem}:host([scale=l]) .icon{left:1rem}:host([scale=l]) .calcite--rtl .icon{left:unset;right:1rem}:host([icon][scale=s]) input{padding-left:2rem}:host([icon][scale=s]) .calcite--rtl input{padding-right:2rem;padding-left:0.5rem}:host([icon][scale=m]) input{padding-left:2.5rem}:host([icon][scale=m]) .calcite--rtl input{padding-right:2.5rem;padding-left:0.5rem}:host([icon][scale=l]) input{padding-left:3rem}:host([icon][scale=l]) .calcite--rtl input{padding-right:3rem;padding-left:0.5rem}.element-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex:1 1 0%;flex:1 1 0%;position:relative;-ms-flex-order:3;order:3}.icon{display:block;position:absolute;pointer-events:none;z-index:10;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;width:0;height:0}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;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;display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;min-height:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);border-left-width:0;-ms-flex-order:4;order:4;margin:0}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.calcite--rtl .clear-button{border-left-color:var(--calcite-ui-border-input);border-width:1px;border-right-width:0}.loader{top:1px;left:1px;right:1px;display:block;pointer-events:none;position:absolute}.action-wrapper{display:-ms-flexbox;display:flex;-ms-flex-order:7;order:7}.prefix,.suffix{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:var(--calcite-font-weight-medium);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);color:var(--calcite-ui-text-2);line-height:1;word-wrap:break-word;overflow-wrap:break-word}.prefix{-ms-flex-order:2;order:2;border-right-width:0}.suffix{-ms-flex-order:5;order:5;border-left-width:0}.calcite--rtl .prefix{border-right-width:1px;border-left-width:0}.calcite--rtl .suffix{border-left-width:1px;border-right-width:0}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:left}:host([alignment=start]) .calcite--rtl textarea,:host([alignment=start]) .calcite--rtl input{text-align:right}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:right}:host([alignment=end]) .calcite--rtl textarea,:host([alignment=end]) .calcite--rtl input{text-align:left}:host input[type=number]{-moz-appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}.number-button-wrapper{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;pointer-events:none;-ms-flex-order:6;order:6;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}:host([number-button-type=vertical]) .wrapper{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{-ms-flex-order:2;order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{min-height:100%;max-height:100%;-ms-flex-order:1;order:1;-ms-flex-item-align:stretch;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-right-width:0}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:5;order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}.calcite--rtl .number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-left-width:0;border-color:var(--calcite-ui-border-input)}.calcite--rtl .number-button-item.number-button-item--horizontal[data-adjustment=up]{border-width:1px;border-right-width:0;border-color:var(--calcite-ui-border-input)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down],:host([number-button-type=vertical]) .calcite--rtl .number-button-item[data-adjustment=down]{border-top-width:0}.number-button-item{max-height:50%;min-height:50%;pointer-events:initial;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;padding-top:0;padding-bottom:0;padding-left:0.5rem;padding-right:0.5rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);border-left-width:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;margin:0}.number-button-item calcite-icon{pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.number-button-item:focus{background-color:var(--calcite-ui-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item:active{background-color:var(--calcite-ui-foreground-3)}:host([number-button-type=vertical]) .calcite--rtl .number-button-item{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-right-width:0}.wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;position:relative}:host input::-webkit-calendar-picker-indicator{display:none}:host input[type=date]::-webkit-input-placeholder{visibility:hidden !important}:host textarea::-webkit-resizer{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;bottom:0;right:0;padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){.resize-icon-wrapper{display:none}}.resize-icon-wrapper{bottom:2px;right:2px;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);position:absolute;z-index:10;pointer-events:none;width:0.75rem;height:0.75rem}.resize-icon-wrapper calcite-icon{bottom:0.25rem;right:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl textarea::-webkit-resizer{right:unset;left:0}.calcite--rtl .resize-icon-wrapper{left:2px;right:unset}.calcite--rtl .resize-icon-wrapper calcite-icon{bottom:0.25rem;right:0.25rem;-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host([type=color]) input{padding:0.25rem}:host([type=file]) input{background-color:var(--calcite-ui-foreground-1);cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);text-align:center}:host([type=file][scale=s]) input{padding-top:1px;padding-bottom:1px;padding-left:0.5rem;padding-right:0.5rem}:host([type=file][scale=m]) input{padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem}:host([type=file][scale=l]) input{padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem}:host(.no-bottom-border) input{border-bottom-width:0}:host(.border-t-color-1) input{border-top-color:var(--calcite-ui-border-1)}:host .inline-child{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;background-color:transparent}:host .inline-child .editing-enabled{background-color:inherit}:host .inline-child:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}::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}";
|
|
12469
12724
|
|
|
12470
12725
|
let CalciteInput$1 = class extends HTMLElement {
|
|
12471
12726
|
constructor() {
|
|
12472
12727
|
super();
|
|
12473
12728
|
this.__registerHost();
|
|
12729
|
+
this.__attachShadow();
|
|
12474
12730
|
this.calciteInputFocus = createEvent(this, "calciteInputFocus", 7);
|
|
12475
12731
|
this.calciteInputBlur = createEvent(this, "calciteInputBlur", 7);
|
|
12476
12732
|
this.calciteInputInput = createEvent(this, "calciteInputInput", 7);
|
|
@@ -12492,6 +12748,8 @@ let CalciteInput$1 = class extends HTMLElement {
|
|
|
12492
12748
|
this.disabled = false;
|
|
12493
12749
|
/** for number values, displays the locale's group separator */
|
|
12494
12750
|
this.groupSeparator = false;
|
|
12751
|
+
/** when true, the component will not be visible */
|
|
12752
|
+
this.hidden = false;
|
|
12495
12753
|
/**
|
|
12496
12754
|
* string to override English loading text
|
|
12497
12755
|
* @default "Loading"
|
|
@@ -12518,6 +12776,8 @@ let CalciteInput$1 = class extends HTMLElement {
|
|
|
12518
12776
|
this.scale = "m";
|
|
12519
12777
|
/** specify the status of the input field, determines message and icons */
|
|
12520
12778
|
this.status = "idle";
|
|
12779
|
+
/** @internal adds inline styles for text input when slotted in calcite-inline-editable */
|
|
12780
|
+
this.editingEnabled = false;
|
|
12521
12781
|
/**
|
|
12522
12782
|
* specify the input type
|
|
12523
12783
|
*
|
|
@@ -12526,6 +12786,20 @@ let CalciteInput$1 = class extends HTMLElement {
|
|
|
12526
12786
|
this.type = "text";
|
|
12527
12787
|
/** keep track of the rendered child type */
|
|
12528
12788
|
this.childElType = "input";
|
|
12789
|
+
//--------------------------------------------------------------------------
|
|
12790
|
+
//
|
|
12791
|
+
// Private Methods
|
|
12792
|
+
//
|
|
12793
|
+
//--------------------------------------------------------------------------
|
|
12794
|
+
this.keyDownHandler = (event) => {
|
|
12795
|
+
if (this.readOnly || this.disabled) {
|
|
12796
|
+
return;
|
|
12797
|
+
}
|
|
12798
|
+
if (this.isClearable && getKey(event.key) === "Escape") {
|
|
12799
|
+
this.clearInputValue(event);
|
|
12800
|
+
event.preventDefault();
|
|
12801
|
+
}
|
|
12802
|
+
};
|
|
12529
12803
|
this.clearInputValue = (nativeEvent) => {
|
|
12530
12804
|
this.setValue(null, nativeEvent, true);
|
|
12531
12805
|
};
|
|
@@ -12627,36 +12901,27 @@ let CalciteInput$1 = class extends HTMLElement {
|
|
|
12627
12901
|
event.preventDefault();
|
|
12628
12902
|
};
|
|
12629
12903
|
this.nudgeNumberValue = (direction, nativeEvent) => {
|
|
12630
|
-
if (this.type !== "number") {
|
|
12904
|
+
if ((nativeEvent instanceof KeyboardEvent && nativeEvent.repeat) || this.type !== "number") {
|
|
12631
12905
|
return;
|
|
12632
12906
|
}
|
|
12633
|
-
const value = this.value;
|
|
12634
12907
|
const inputMax = this.maxString ? parseFloat(this.maxString) : null;
|
|
12635
12908
|
const inputMin = this.minString ? parseFloat(this.minString) : null;
|
|
12636
|
-
const
|
|
12637
|
-
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
}
|
|
12645
|
-
this.setValue(newValue, nativeEvent, true);
|
|
12909
|
+
const valueNudgeDelayInMs = 500;
|
|
12910
|
+
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
12911
|
+
this.nudgeNumberValueIntervalId = setInterval(() => {
|
|
12912
|
+
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
12913
|
+
}, valueNudgeDelayInMs);
|
|
12914
|
+
};
|
|
12915
|
+
this.numberButtonMouseUpAndMouseOutHandler = () => {
|
|
12916
|
+
clearInterval(this.nudgeNumberValueIntervalId);
|
|
12646
12917
|
};
|
|
12647
|
-
this.
|
|
12918
|
+
this.numberButtonMouseDownHandler = (event) => {
|
|
12648
12919
|
// todo, when dropping ie11 support, refactor to use stepup/stepdown
|
|
12649
12920
|
// prevent blur and re-focus of input on mousedown
|
|
12650
12921
|
event.preventDefault();
|
|
12651
12922
|
const direction = event.target.dataset.adjustment;
|
|
12652
12923
|
this.nudgeNumberValue(direction, event);
|
|
12653
12924
|
};
|
|
12654
|
-
this.reset = (nativeEvent) => {
|
|
12655
|
-
if (this.type === "number") {
|
|
12656
|
-
nativeEvent.preventDefault();
|
|
12657
|
-
}
|
|
12658
|
-
this.setValue(this.defaultValue, nativeEvent);
|
|
12659
|
-
};
|
|
12660
12925
|
this.setChildElRef = (el) => {
|
|
12661
12926
|
this.childEl = el;
|
|
12662
12927
|
};
|
|
@@ -12690,6 +12955,9 @@ let CalciteInput$1 = class extends HTMLElement {
|
|
|
12690
12955
|
}
|
|
12691
12956
|
}
|
|
12692
12957
|
};
|
|
12958
|
+
this.inputKeyUpHandler = () => {
|
|
12959
|
+
clearInterval(this.nudgeNumberValueIntervalId);
|
|
12960
|
+
};
|
|
12693
12961
|
}
|
|
12694
12962
|
disabledWatcher() {
|
|
12695
12963
|
this.setDisabledAction();
|
|
@@ -12730,10 +12998,10 @@ let CalciteInput$1 = class extends HTMLElement {
|
|
|
12730
12998
|
//--------------------------------------------------------------------------
|
|
12731
12999
|
connectedCallback() {
|
|
12732
13000
|
var _a;
|
|
12733
|
-
this.form = closestElementCrossShadowBoundary(this.el, "form");
|
|
12734
|
-
(_a = this.form) === null || _a === void 0 ? void 0 : _a.addEventListener("reset", this.reset);
|
|
12735
13001
|
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
12736
13002
|
this.status = getElementProp(this.el, "status", this.status);
|
|
13003
|
+
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
13004
|
+
this.editingEnabled = (_a = this.inlineEditableEl) === null || _a === void 0 ? void 0 : _a.editingEnabled;
|
|
12737
13005
|
if (this.type === "number" && this.value) {
|
|
12738
13006
|
if (isValidNumber(this.value)) {
|
|
12739
13007
|
this.localizedValue = localizeNumberString(this.value, this.locale, this.groupSeparator);
|
|
@@ -12743,16 +13011,15 @@ let CalciteInput$1 = class extends HTMLElement {
|
|
|
12743
13011
|
}
|
|
12744
13012
|
}
|
|
12745
13013
|
connectLabel(this);
|
|
13014
|
+
connectForm(this);
|
|
12746
13015
|
}
|
|
12747
13016
|
disconnectedCallback() {
|
|
12748
|
-
var _a;
|
|
12749
|
-
(_a = this.form) === null || _a === void 0 ? void 0 : _a.removeEventListener("reset", this.reset);
|
|
12750
13017
|
disconnectLabel(this);
|
|
13018
|
+
disconnectForm(this);
|
|
12751
13019
|
}
|
|
12752
13020
|
componentWillLoad() {
|
|
12753
13021
|
var _a, _b;
|
|
12754
13022
|
this.childElType = this.type === "textarea" ? "textarea" : "input";
|
|
12755
|
-
this.defaultValue = this.value;
|
|
12756
13023
|
this.maxString = (_a = this.max) === null || _a === void 0 ? void 0 : _a.toString();
|
|
12757
13024
|
this.minString = (_b = this.min) === null || _b === void 0 ? void 0 : _b.toString();
|
|
12758
13025
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
@@ -12760,9 +13027,6 @@ let CalciteInput$1 = class extends HTMLElement {
|
|
|
12760
13027
|
componentDidLoad() {
|
|
12761
13028
|
this.slottedActionEl = this.el.querySelector("[slot=action]");
|
|
12762
13029
|
this.setDisabledAction();
|
|
12763
|
-
if (this.type === "number" && this.childEl) {
|
|
12764
|
-
this.childEl.style.cssText = hiddenInputStyle;
|
|
12765
|
-
}
|
|
12766
13030
|
}
|
|
12767
13031
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
12768
13032
|
if (this.type === "number" && property === "value" && newValue && !isValidNumber(newValue)) {
|
|
@@ -12773,20 +13037,6 @@ let CalciteInput$1 = class extends HTMLElement {
|
|
|
12773
13037
|
}
|
|
12774
13038
|
//--------------------------------------------------------------------------
|
|
12775
13039
|
//
|
|
12776
|
-
// Event Listeners
|
|
12777
|
-
//
|
|
12778
|
-
//--------------------------------------------------------------------------
|
|
12779
|
-
keyDownHandler(event) {
|
|
12780
|
-
if (this.readOnly || this.disabled) {
|
|
12781
|
-
return;
|
|
12782
|
-
}
|
|
12783
|
-
if (this.isClearable && getKey(event.key) === "Escape") {
|
|
12784
|
-
this.clearInputValue(event);
|
|
12785
|
-
event.preventDefault();
|
|
12786
|
-
}
|
|
12787
|
-
}
|
|
12788
|
-
//--------------------------------------------------------------------------
|
|
12789
|
-
//
|
|
12790
13040
|
// Public Methods
|
|
12791
13041
|
//
|
|
12792
13042
|
//--------------------------------------------------------------------------
|
|
@@ -12800,14 +13050,45 @@ let CalciteInput$1 = class extends HTMLElement {
|
|
|
12800
13050
|
(_b = this.childEl) === null || _b === void 0 ? void 0 : _b.focus();
|
|
12801
13051
|
}
|
|
12802
13052
|
}
|
|
12803
|
-
//--------------------------------------------------------------------------
|
|
12804
|
-
//
|
|
12805
|
-
// Private Methods
|
|
12806
|
-
//
|
|
12807
|
-
//--------------------------------------------------------------------------
|
|
12808
13053
|
onLabelClick() {
|
|
12809
13054
|
this.setFocus();
|
|
12810
13055
|
}
|
|
13056
|
+
incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent) {
|
|
13057
|
+
const value = this.value;
|
|
13058
|
+
const inputStep = this.step === "any" ? 1 : Math.abs(this.step || 1);
|
|
13059
|
+
const inputVal = value && value !== "" ? parseFloat(value) : 0;
|
|
13060
|
+
let newValue = value;
|
|
13061
|
+
if (direction === "up" && ((!inputMax && inputMax !== 0) || inputVal < inputMax)) {
|
|
13062
|
+
newValue = (inputVal + inputStep).toString();
|
|
13063
|
+
}
|
|
13064
|
+
if (direction === "down" && ((!inputMin && inputMin !== 0) || inputVal > inputMin)) {
|
|
13065
|
+
newValue = (inputVal - inputStep).toString();
|
|
13066
|
+
}
|
|
13067
|
+
this.setValue(newValue, nativeEvent, true);
|
|
13068
|
+
}
|
|
13069
|
+
onFormReset() {
|
|
13070
|
+
this.setValue(this.defaultValue);
|
|
13071
|
+
}
|
|
13072
|
+
syncHiddenFormInput(input) {
|
|
13073
|
+
var _a, _b, _c, _d;
|
|
13074
|
+
if (this.type === "number") {
|
|
13075
|
+
input.type = "number";
|
|
13076
|
+
input.min = (_b = (_a = this.min) === null || _a === void 0 ? void 0 : _a.toString(10)) !== null && _b !== void 0 ? _b : "";
|
|
13077
|
+
input.max = (_d = (_c = this.max) === null || _c === void 0 ? void 0 : _c.toString(10)) !== null && _d !== void 0 ? _d : "";
|
|
13078
|
+
}
|
|
13079
|
+
else if (this.type === "text") {
|
|
13080
|
+
input.type = "text";
|
|
13081
|
+
if (this.minLength != null) {
|
|
13082
|
+
input.minLength = this.minLength;
|
|
13083
|
+
}
|
|
13084
|
+
if (this.maxLength != null) {
|
|
13085
|
+
input.maxLength = this.maxLength;
|
|
13086
|
+
}
|
|
13087
|
+
}
|
|
13088
|
+
else if (this.type === "password") {
|
|
13089
|
+
input.type = "password";
|
|
13090
|
+
}
|
|
13091
|
+
}
|
|
12811
13092
|
setDisabledAction() {
|
|
12812
13093
|
if (!this.slottedActionEl) {
|
|
12813
13094
|
return;
|
|
@@ -12831,26 +13112,31 @@ let CalciteInput$1 = class extends HTMLElement {
|
|
|
12831
13112
|
const numberButtonsHorizontalUp = (h("button", { class: {
|
|
12832
13113
|
[CSS$r.numberButtonItem]: true,
|
|
12833
13114
|
[CSS$r.buttonItemHorizontal]: isHorizontalNumberButton
|
|
12834
|
-
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly,
|
|
13115
|
+
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onMouseDown: this.numberButtonMouseDownHandler, onMouseOut: this.numberButtonMouseUpAndMouseOutHandler, onMouseUp: this.numberButtonMouseUpAndMouseOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-up", scale: "s" })));
|
|
12835
13116
|
const numberButtonsHorizontalDown = (h("button", { class: {
|
|
12836
13117
|
[CSS$r.numberButtonItem]: true,
|
|
12837
13118
|
[CSS$r.buttonItemHorizontal]: isHorizontalNumberButton
|
|
12838
|
-
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly,
|
|
13119
|
+
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onMouseDown: this.numberButtonMouseDownHandler, onMouseOut: this.numberButtonMouseUpAndMouseOutHandler, onMouseUp: this.numberButtonMouseUpAndMouseOutHandler, tabIndex: -1, type: "button" }, h("calcite-icon", { icon: "chevron-down", scale: "s" })));
|
|
12839
13120
|
const numberButtonsVertical = (h("div", { class: CSS$r.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
12840
13121
|
const prefixText = h("div", { class: CSS$r.prefix }, this.prefixText);
|
|
12841
13122
|
const suffixText = h("div", { class: CSS$r.suffix }, this.suffixText);
|
|
12842
|
-
const localeNumberInput = this.type === "number" ? (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, tabIndex: this.disabled ? -1 : 0, type: "text", value: this.localizedValue })) : null;
|
|
12843
|
-
const childEl =
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
13123
|
+
const localeNumberInput = this.type === "number" ? (h("input", { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildNumberElRef, tabIndex: this.disabled ? -1 : 0, type: "text", value: this.localizedValue })) : null;
|
|
13124
|
+
const childEl = this.type !== "number"
|
|
13125
|
+
? [
|
|
13126
|
+
h(this.childElType, { "aria-label": getLabelText(this), autofocus: this.autofocus ? true : null, class: {
|
|
13127
|
+
[CSS$r.editingEnabled]: this.editingEnabled,
|
|
13128
|
+
[CSS$r.inlineChild]: !!this.inlineEditableEl
|
|
13129
|
+
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.el.enterKeyHint, inputMode: this.el.inputMode, max: this.maxString, maxLength: this.maxLength, min: this.minString, minLength: this.minLength, name: this.name, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeyDownHandler, onKeyUp: this.inputKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, ref: this.setChildElRef, required: this.required ? true : null, step: this.step, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: this.type, value: this.value }),
|
|
13130
|
+
this.isTextarea ? (h("div", { class: CSS$r.resizeIconWrapper }, h("calcite-icon", { icon: "chevron-down", scale: "s" }))) : null
|
|
13131
|
+
]
|
|
13132
|
+
: null;
|
|
13133
|
+
return (h(Host, { onClick: this.inputFocusHandler, onKeyDown: this.keyDownHandler }, h("div", { class: { [CSS$r.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" }, dir: dir }, this.type === "number" && this.numberButtonType === "horizontal"
|
|
12848
13134
|
? numberButtonsHorizontalDown
|
|
12849
13135
|
: null, this.prefixText ? prefixText : null, h("div", { class: CSS$r.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), h("div", { class: CSS$r.actionWrapper }, h("slot", { name: SLOTS$g.action })), this.type === "number" && this.numberButtonType === "vertical"
|
|
12850
13136
|
? numberButtonsVertical
|
|
12851
13137
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal"
|
|
12852
13138
|
? numberButtonsHorizontalUp
|
|
12853
|
-
: null)));
|
|
13139
|
+
: null, h(HiddenFormInputSlot, { component: this }))));
|
|
12854
13140
|
}
|
|
12855
13141
|
get el() { return this; }
|
|
12856
13142
|
static get watchers() { return {
|
|
@@ -12864,18 +13150,27 @@ let CalciteInput$1 = class extends HTMLElement {
|
|
|
12864
13150
|
static get style() { return calciteInputCss; }
|
|
12865
13151
|
};
|
|
12866
13152
|
|
|
12867
|
-
const calciteInputDatePickerCss = "@-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}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-box-shadow:none;box-shadow:none;display:inline-block;vertical-align:top;width:100%;position:relative;overflow:visible}:host .menu-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}:host .menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host .menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host .menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host .menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host .menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.calendar-picker-wrapper{-webkit-box-shadow:none;box-shadow:none;position:static;width:100%;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:-ms-flexbox;display:flex}:host([range]) .input-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}:host([range]) .horizontal-arrow-container{background-color:var(--calcite-ui-background);padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-left-width:0;border-right-width:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{top:1.5rem;left:0;padding-left:0.625rem;padding-right:0.625rem;margin-left:1px;margin-right:1px;position:absolute;z-index:10;background-color:var(--calcite-ui-foreground-1)}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{width:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{width:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{width:398px}.menu-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}:host([active]) .menu-container{visibility:visible;pointer-events:auto}.input .calcite-input__wrapper{margin-top:0}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{top:1.5rem;padding-left:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{width:0.75rem;height:0.75rem;min-width:0}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{top:2.25rem;padding-left:0.875rem;padding-right:0.875rem}:host([range][layout=vertical][active]) .vertical-arrow-container{display:none}";
|
|
13153
|
+
const calciteInputDatePickerCss = "@-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}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-box-shadow:none;box-shadow:none;display:inline-block;vertical-align:top;width:100%;position:relative;overflow:visible}:host .menu-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}:host .menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host .menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host .menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host .menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host .menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.calendar-picker-wrapper{-webkit-box-shadow:none;box-shadow:none;position:static;width:100%;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:-ms-flexbox;display:flex}:host([range]) .input-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}:host([range]) .horizontal-arrow-container{background-color:var(--calcite-ui-background);padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-left-width:0;border-right-width:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{top:1.5rem;left:0;padding-left:0.625rem;padding-right:0.625rem;margin-left:1px;margin-right:1px;position:absolute;z-index:10;background-color:var(--calcite-ui-foreground-1)}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{width:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{width:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{width:398px}.menu-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}:host([active]) .menu-container{visibility:visible;pointer-events:auto}.input .calcite-input__wrapper{margin-top:0}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{top:1.5rem;padding-left:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{width:0.75rem;height:0.75rem;min-width:0}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{top:2.25rem;padding-left:0.875rem;padding-right:0.875rem}:host([range][layout=vertical][active]) .vertical-arrow-container{display:none}::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}";
|
|
12868
13154
|
|
|
12869
13155
|
const DEFAULT_PLACEMENT = "bottom-leading";
|
|
12870
13156
|
let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
12871
13157
|
constructor() {
|
|
12872
13158
|
super();
|
|
12873
13159
|
this.__registerHost();
|
|
12874
|
-
|
|
13160
|
+
this.__attachShadow();
|
|
12875
13161
|
this.calciteDatePickerChange = createEvent(this, "calciteDatePickerChange", 7);
|
|
12876
13162
|
this.calciteDatePickerRangeChange = createEvent(this, "calciteDatePickerRangeChange", 7);
|
|
12877
13163
|
this.calciteInputDatePickerOpen = createEvent(this, "calciteInputDatePickerOpen", 7);
|
|
12878
13164
|
this.calciteInputDatePickerClose = createEvent(this, "calciteInputDatePickerClose", 7);
|
|
13165
|
+
//--------------------------------------------------------------------------
|
|
13166
|
+
//
|
|
13167
|
+
// Public Properties
|
|
13168
|
+
//
|
|
13169
|
+
//--------------------------------------------------------------------------
|
|
13170
|
+
/**
|
|
13171
|
+
* When false, the component won't be interactive.
|
|
13172
|
+
*/
|
|
13173
|
+
this.disabled = false;
|
|
12879
13174
|
/** Expand or collapse when calendar does not have input */
|
|
12880
13175
|
this.active = false;
|
|
12881
13176
|
/** Localized string for "previous month" (used for aria label)
|
|
@@ -12892,6 +13187,12 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
12892
13187
|
this.scale = "m";
|
|
12893
13188
|
/** Range mode activation */
|
|
12894
13189
|
this.range = false;
|
|
13190
|
+
/**
|
|
13191
|
+
* When true, makes the component required for form-submission.
|
|
13192
|
+
*
|
|
13193
|
+
* @internal
|
|
13194
|
+
*/
|
|
13195
|
+
this.required = false;
|
|
12895
13196
|
/** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */
|
|
12896
13197
|
this.overlayPositioning = "absolute";
|
|
12897
13198
|
/** Disables the default behaviour on the third click of narrowing or extending the range and instead starts a new range. */
|
|
@@ -12966,6 +13267,7 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
12966
13267
|
const { startDate, endDate } = event.detail;
|
|
12967
13268
|
this.start = dateToISO(startDate);
|
|
12968
13269
|
this.end = dateToISO(endDate);
|
|
13270
|
+
this.value = [this.start, this.end];
|
|
12969
13271
|
if (this.shouldFocusRangeEnd()) {
|
|
12970
13272
|
(_a = this.endInput) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
12971
13273
|
}
|
|
@@ -12974,6 +13276,23 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
12974
13276
|
}
|
|
12975
13277
|
};
|
|
12976
13278
|
}
|
|
13279
|
+
valueHandler(value) {
|
|
13280
|
+
if (Array.isArray(value)) {
|
|
13281
|
+
this.valueAsDate = value.map((v) => dateFromISO(v));
|
|
13282
|
+
this.start = value[0];
|
|
13283
|
+
this.end = value[1];
|
|
13284
|
+
}
|
|
13285
|
+
else if (value) {
|
|
13286
|
+
this.valueAsDate = dateFromISO(value);
|
|
13287
|
+
this.start = "";
|
|
13288
|
+
this.end = "";
|
|
13289
|
+
}
|
|
13290
|
+
else {
|
|
13291
|
+
this.valueAsDate = undefined;
|
|
13292
|
+
this.start = undefined;
|
|
13293
|
+
this.end = undefined;
|
|
13294
|
+
}
|
|
13295
|
+
}
|
|
12977
13296
|
activeHandler() {
|
|
12978
13297
|
this.reposition();
|
|
12979
13298
|
}
|
|
@@ -13003,7 +13322,7 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
13003
13322
|
const { popper, menuEl } = this;
|
|
13004
13323
|
const modifiers = this.getModifiers();
|
|
13005
13324
|
popper
|
|
13006
|
-
? updatePopper({
|
|
13325
|
+
? await updatePopper({
|
|
13007
13326
|
el: menuEl,
|
|
13008
13327
|
modifiers,
|
|
13009
13328
|
placement: DEFAULT_PLACEMENT,
|
|
@@ -13017,8 +13336,15 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
13017
13336
|
//
|
|
13018
13337
|
// --------------------------------------------------------------------------
|
|
13019
13338
|
connectedCallback() {
|
|
13020
|
-
if (this.value) {
|
|
13339
|
+
if (Array.isArray(this.value)) {
|
|
13340
|
+
this.valueAsDate = this.value.map((v) => dateFromISO(v));
|
|
13341
|
+
this.start = this.value[0];
|
|
13342
|
+
this.end = this.value[1];
|
|
13343
|
+
}
|
|
13344
|
+
else if (this.value) {
|
|
13021
13345
|
this.valueAsDate = dateFromISO(this.value);
|
|
13346
|
+
this.start = "";
|
|
13347
|
+
this.end = "";
|
|
13022
13348
|
}
|
|
13023
13349
|
if (this.start) {
|
|
13024
13350
|
this.startAsDate = dateFromISO(this.start);
|
|
@@ -13034,6 +13360,7 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
13034
13360
|
}
|
|
13035
13361
|
this.createPopper();
|
|
13036
13362
|
connectLabel(this);
|
|
13363
|
+
connectForm(this);
|
|
13037
13364
|
}
|
|
13038
13365
|
async componentWillLoad() {
|
|
13039
13366
|
await this.loadLocaleData();
|
|
@@ -13041,9 +13368,11 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
13041
13368
|
disconnectedCallback() {
|
|
13042
13369
|
this.destroyPopper();
|
|
13043
13370
|
disconnectLabel(this);
|
|
13371
|
+
disconnectForm(this);
|
|
13044
13372
|
}
|
|
13045
13373
|
render() {
|
|
13046
13374
|
var _a, _b;
|
|
13375
|
+
const { disabled } = this;
|
|
13047
13376
|
const date = dateFromRange(this.range ? this.startAsDate : this.valueAsDate, this.minAsDate, this.maxAsDate);
|
|
13048
13377
|
const endDate = this.range
|
|
13049
13378
|
? dateFromRange(this.endAsDate, this.minAsDate, this.maxAsDate)
|
|
@@ -13051,7 +13380,7 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
13051
13380
|
const formattedEndDate = endDate ? endDate.toLocaleDateString(this.locale) : "";
|
|
13052
13381
|
const formattedDate = date ? date.toLocaleDateString(this.locale) : "";
|
|
13053
13382
|
const dir = getElementDir(this.el);
|
|
13054
|
-
return (h(Host, { onBlur: this.deactivate, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": this.active.toString(), class: "input-container", dir: dir, role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, icon: "calendar", label: getLabelText(this), "number-button-type": "none", onCalciteInputBlur: this.inputBlur, onCalciteInputFocus: this.startInputFocus, onCalciteInputInput: this.inputInput, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), h("div", { "aria-hidden": (!this.active).toString(), class: "menu-container", ref: this.setMenuEl }, h("div", { class: {
|
|
13383
|
+
return (h(Host, { onBlur: this.deactivate, onKeyUp: this.keyUpHandler, role: "application" }, this.localeData && (h("div", { "aria-expanded": this.active.toString(), class: "input-container", dir: dir, role: "application" }, h("div", { class: "input-wrapper", ref: this.setStartWrapper }, h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", onCalciteInputBlur: this.inputBlur, onCalciteInputFocus: this.startInputFocus, onCalciteInputInput: this.inputInput, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), h("div", { "aria-hidden": (!this.active).toString(), class: "menu-container", ref: this.setMenuEl }, h("div", { class: {
|
|
13055
13384
|
["calendar-picker-wrapper"]: true,
|
|
13056
13385
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
13057
13386
|
[CSS$C.animation]: true,
|
|
@@ -13059,7 +13388,7 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
13059
13388
|
}, onTransitionEnd: this.transitionEnd }, h("calcite-date-picker", { activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, locale: this.locale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (h("div", { class: "horizontal-arrow-container" }, h("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (h("div", { class: "vertical-arrow-container" }, h("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (h("div", { class: "input-wrapper", ref: this.setEndWrapper }, h("calcite-input", { class: {
|
|
13060
13389
|
input: true,
|
|
13061
13390
|
"border-t-color-1": this.layout === "vertical" && this.range
|
|
13062
|
-
}, icon: "calendar", "number-button-type": "none", onCalciteInputBlur: this.inputBlur, onCalciteInputFocus: this.endInputFocus, onCalciteInputInput: this.inputInput, placeholder: (_b = this.localeData) === null || _b === void 0 ? void 0 : _b.placeholder, ref: this.setEndInput, scale: this.scale, type: "text", value: formattedEndDate })))))));
|
|
13391
|
+
}, disabled: disabled, icon: "calendar", "number-button-type": "none", onCalciteInputBlur: this.inputBlur, onCalciteInputFocus: this.endInputFocus, onCalciteInputInput: this.inputInput, placeholder: (_b = this.localeData) === null || _b === void 0 ? void 0 : _b.placeholder, ref: this.setEndInput, scale: this.scale, type: "text", value: formattedEndDate }))))), h(HiddenFormInputSlot, { component: this })));
|
|
13063
13392
|
}
|
|
13064
13393
|
setReferenceEl() {
|
|
13065
13394
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -13109,9 +13438,6 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
13109
13438
|
}
|
|
13110
13439
|
this.popper = null;
|
|
13111
13440
|
}
|
|
13112
|
-
valueWatcher(value) {
|
|
13113
|
-
this.valueAsDate = dateFromISO(value);
|
|
13114
|
-
}
|
|
13115
13441
|
startWatcher(start) {
|
|
13116
13442
|
this.startAsDate = dateFromISO(start);
|
|
13117
13443
|
}
|
|
@@ -13127,14 +13453,16 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
13127
13453
|
}
|
|
13128
13454
|
clearCurrentValue() {
|
|
13129
13455
|
if (!this.range) {
|
|
13130
|
-
this.value =
|
|
13456
|
+
this.value = "";
|
|
13131
13457
|
return;
|
|
13132
13458
|
}
|
|
13133
13459
|
const { focusedInput } = this;
|
|
13134
13460
|
if (focusedInput === "start") {
|
|
13461
|
+
this.value = Array.isArray(this.value) ? ["", this.value[1] || ""] : [""];
|
|
13135
13462
|
this.start = undefined;
|
|
13136
13463
|
}
|
|
13137
13464
|
else if (focusedInput === "end") {
|
|
13465
|
+
this.value = Array.isArray(this.value) ? [this.value[0] || "", ""] : ["", ""];
|
|
13138
13466
|
this.end = undefined;
|
|
13139
13467
|
}
|
|
13140
13468
|
}
|
|
@@ -13154,7 +13482,11 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
13154
13482
|
const { focusedInput } = this;
|
|
13155
13483
|
if (focusedInput === "start") {
|
|
13156
13484
|
if (!this.startAsDate || !sameDate(date, this.startAsDate)) {
|
|
13157
|
-
|
|
13485
|
+
const startDateISO = dateToISO(date);
|
|
13486
|
+
this.value = Array.isArray(this.value)
|
|
13487
|
+
? [startDateISO, this.value[1] || ""]
|
|
13488
|
+
: [startDateISO];
|
|
13489
|
+
this.start = startDateISO;
|
|
13158
13490
|
this.calciteDatePickerRangeChange.emit({
|
|
13159
13491
|
startDate: date,
|
|
13160
13492
|
endDate: this.endAsDate
|
|
@@ -13163,7 +13495,11 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
13163
13495
|
}
|
|
13164
13496
|
else if (focusedInput === "end") {
|
|
13165
13497
|
if (!this.endAsDate || !sameDate(date, this.endAsDate)) {
|
|
13166
|
-
|
|
13498
|
+
const endDateISO = dateToISO(date);
|
|
13499
|
+
this.value = Array.isArray(this.value)
|
|
13500
|
+
? [this.value[0] || "", endDateISO]
|
|
13501
|
+
: ["", endDateISO];
|
|
13502
|
+
this.end = endDateISO;
|
|
13167
13503
|
this.calciteDatePickerRangeChange.emit({
|
|
13168
13504
|
startDate: this.startAsDate,
|
|
13169
13505
|
endDate: date
|
|
@@ -13179,7 +13515,9 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
13179
13515
|
const date = this.getDateFromInput(target.value);
|
|
13180
13516
|
if (!date) {
|
|
13181
13517
|
if (!range && valueAsDate) {
|
|
13182
|
-
target.value =
|
|
13518
|
+
target.value = Array.isArray(valueAsDate)
|
|
13519
|
+
? valueAsDate[focusedInput === "end" ? 1 : 0].toLocaleDateString(locale)
|
|
13520
|
+
: valueAsDate.toLocaleDateString(locale);
|
|
13183
13521
|
}
|
|
13184
13522
|
else if (focusedInput === "start" && startAsDate) {
|
|
13185
13523
|
target.value = startAsDate.toLocaleDateString(locale);
|
|
@@ -13230,10 +13568,10 @@ let CalciteInputDatePicker$1 = class extends HTMLElement {
|
|
|
13230
13568
|
}
|
|
13231
13569
|
get el() { return this; }
|
|
13232
13570
|
static get watchers() { return {
|
|
13571
|
+
"value": ["valueHandler"],
|
|
13233
13572
|
"active": ["activeHandler"],
|
|
13234
13573
|
"layout": ["setReferenceEl"],
|
|
13235
13574
|
"focusedInput": ["setReferenceEl"],
|
|
13236
|
-
"value": ["valueWatcher"],
|
|
13237
13575
|
"start": ["startWatcher"],
|
|
13238
13576
|
"end": ["endWatcher"],
|
|
13239
13577
|
"locale": ["loadLocaleData"]
|
|
@@ -13254,7 +13592,7 @@ let CalciteInputMessage$1 = class extends HTMLElement {
|
|
|
13254
13592
|
constructor() {
|
|
13255
13593
|
super();
|
|
13256
13594
|
this.__registerHost();
|
|
13257
|
-
|
|
13595
|
+
this.__attachShadow();
|
|
13258
13596
|
//--------------------------------------------------------------------------
|
|
13259
13597
|
//
|
|
13260
13598
|
// Properties
|
|
@@ -13358,13 +13696,13 @@ function formatTimePart(number) {
|
|
|
13358
13696
|
return number >= 0 && number <= 9 ? numberAsString.padStart(2, "0") : numberAsString;
|
|
13359
13697
|
}
|
|
13360
13698
|
|
|
13361
|
-
const calciteInputTimePickerCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}";
|
|
13699
|
+
const calciteInputTimePickerCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}::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}";
|
|
13362
13700
|
|
|
13363
13701
|
let CalciteInputTimePicker$1 = class extends HTMLElement {
|
|
13364
13702
|
constructor() {
|
|
13365
13703
|
super();
|
|
13366
13704
|
this.__registerHost();
|
|
13367
|
-
|
|
13705
|
+
this.__attachShadow();
|
|
13368
13706
|
this.calciteInputTimePickerChange = createEvent(this, "calciteInputTimePickerChange", 7);
|
|
13369
13707
|
//--------------------------------------------------------------------------
|
|
13370
13708
|
//
|
|
@@ -13377,6 +13715,12 @@ let CalciteInputTimePicker$1 = class extends HTMLElement {
|
|
|
13377
13715
|
this.disabled = false;
|
|
13378
13716
|
/** Format of the hour value (12-hour or 24-hour) (this will be replaced by locale eventually) */
|
|
13379
13717
|
this.hourDisplayFormat = "12";
|
|
13718
|
+
/**
|
|
13719
|
+
* When true, makes the component required for form-submission.
|
|
13720
|
+
*
|
|
13721
|
+
* @internal
|
|
13722
|
+
*/
|
|
13723
|
+
this.required = false;
|
|
13380
13724
|
/** The scale (size) of the time input */
|
|
13381
13725
|
this.scale = "m";
|
|
13382
13726
|
/** number that specifies the granularity that the value must adhere to */
|
|
@@ -13522,6 +13866,7 @@ let CalciteInputTimePicker$1 = class extends HTMLElement {
|
|
|
13522
13866
|
this.setValue({ value: this.value, origin: "loading" });
|
|
13523
13867
|
}
|
|
13524
13868
|
connectLabel(this);
|
|
13869
|
+
connectForm(this);
|
|
13525
13870
|
}
|
|
13526
13871
|
componentDidLoad() {
|
|
13527
13872
|
if (this.calciteInputEl.value !== this.value) {
|
|
@@ -13530,6 +13875,7 @@ let CalciteInputTimePicker$1 = class extends HTMLElement {
|
|
|
13530
13875
|
}
|
|
13531
13876
|
disconnectedCallback() {
|
|
13532
13877
|
disconnectLabel(this);
|
|
13878
|
+
disconnectForm(this);
|
|
13533
13879
|
}
|
|
13534
13880
|
// --------------------------------------------------------------------------
|
|
13535
13881
|
//
|
|
@@ -13539,7 +13885,7 @@ let CalciteInputTimePicker$1 = class extends HTMLElement {
|
|
|
13539
13885
|
render() {
|
|
13540
13886
|
const { hour, minute, second } = parseTimeString(this.value);
|
|
13541
13887
|
const popoverId = `${this.referenceElementId}-popover`;
|
|
13542
|
-
return (h(Host, null, h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, h("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this),
|
|
13888
|
+
return (h(Host, null, h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, h("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputBlur: this.calciteInputBlurHandler, onCalciteInputFocus: this.calciteInputFocusHandler, onCalciteInputInput: this.calciteInputInputHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active || false, referenceElement: this.referenceElementId }, h("calcite-time-picker", { hour: hour, "hour-display-format": this.hourDisplayFormat, intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, minute: minute, scale: this.scale, second: second, step: this.step })), h(HiddenFormInputSlot, { component: this })));
|
|
13543
13889
|
}
|
|
13544
13890
|
get el() { return this; }
|
|
13545
13891
|
static get watchers() { return {
|
|
@@ -13558,7 +13904,7 @@ let CalciteLabel$1 = class extends HTMLElement {
|
|
|
13558
13904
|
constructor() {
|
|
13559
13905
|
super();
|
|
13560
13906
|
this.__registerHost();
|
|
13561
|
-
|
|
13907
|
+
this.__attachShadow();
|
|
13562
13908
|
this.calciteInternalLabelClick = createEvent(this, "calciteInternalLabelClick", 3);
|
|
13563
13909
|
//--------------------------------------------------------------------------
|
|
13564
13910
|
//
|
|
@@ -13607,7 +13953,7 @@ let CalciteLink$1 = class extends HTMLElement {
|
|
|
13607
13953
|
constructor() {
|
|
13608
13954
|
super();
|
|
13609
13955
|
this.__registerHost();
|
|
13610
|
-
|
|
13956
|
+
this.__attachShadow();
|
|
13611
13957
|
//--------------------------------------------------------------------------
|
|
13612
13958
|
//
|
|
13613
13959
|
// Properties
|
|
@@ -13672,7 +14018,7 @@ let CalciteList$1 = class extends HTMLElement {
|
|
|
13672
14018
|
constructor() {
|
|
13673
14019
|
super();
|
|
13674
14020
|
this.__registerHost();
|
|
13675
|
-
|
|
14021
|
+
this.__attachShadow();
|
|
13676
14022
|
}
|
|
13677
14023
|
// --------------------------------------------------------------------------
|
|
13678
14024
|
//
|
|
@@ -13716,13 +14062,13 @@ const SLOTS$f = {
|
|
|
13716
14062
|
actionsEnd: "actions-end"
|
|
13717
14063
|
};
|
|
13718
14064
|
|
|
13719
|
-
const calciteListItemCss = "@-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:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([disabled]){pointer-events:none;cursor:default}.container{background-color:var(--calcite-ui-foreground-1);-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--calcite-sans-family);display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%}.container *{-webkit-box-sizing:border-box;box-sizing:border-box}.nested-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.content-container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;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;-ms-flex-align:stretch;align-items:stretch;padding:0;color:var(--calcite-ui-text-2)}.content-container--button{background-color:var(--calcite-ui-foreground-1);border-style:none;cursor:pointer;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;text-align:initial}.content-container--button:hover{background-color:var(--calcite-ui-foreground-2)}.content-container--button:hover .label,.content-container--button:hover .description{color:var(--calcite-ui-text-1)}.content-container--button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.content{-ms-flex-pack:center;justify-content:center;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem}.label,.description{font-weight:var(--calcite-font-weight-normal);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);word-wrap:break-word;word-break:break-word}.label{color:var(--calcite-ui-text-1)}.description{color:var(--calcite-ui-text-3);margin-top:0.125rem}.content-start,.content-end{-ms-flex:0 1 auto;flex:0 1 auto;pointer-events:none}.actions-start,.actions-end,.content-start,.content-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){-ms-flex-item-align:center;align-self:center;padding-left:0.75rem;padding-right:0.75rem}.actions-start ::slotted(calcite-action),.actions-end ::slotted(calcite-action){-ms-flex-item-align:stretch;align-self:stretch;color:inherit}::slotted(calcite-list-item-group),::slotted(calcite-list-item){padding-left:0.5rem}";
|
|
14065
|
+
const calciteListItemCss = "@-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:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([disabled]){pointer-events:none;cursor:default}.container{background-color:var(--calcite-ui-foreground-1);-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--calcite-sans-family);display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%}.container *{-webkit-box-sizing:border-box;box-sizing:border-box}.nested-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.content-container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;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;-ms-flex-align:stretch;align-items:stretch;padding:0;color:var(--calcite-ui-text-2)}.content-container--button{background-color:var(--calcite-ui-foreground-1);border-style:none;cursor:pointer;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;text-align:initial}.content-container--button:hover{background-color:var(--calcite-ui-foreground-2)}.content-container--button:hover .label,.content-container--button:hover .description{color:var(--calcite-ui-text-1)}.content-container--button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.content{-ms-flex-pack:center;justify-content:center;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem}.label,.description{font-weight:var(--calcite-font-weight-normal);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);word-wrap:break-word;word-break:break-word}.label:only-child,.description:only-child{padding-top:0.25rem;padding-bottom:0.25rem;margin:0}.label{color:var(--calcite-ui-text-1)}.description{color:var(--calcite-ui-text-3);margin-top:0.125rem}.content-start,.content-end{-ms-flex:0 1 auto;flex:0 1 auto;pointer-events:none}.actions-start,.actions-end,.content-start,.content-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){-ms-flex-item-align:center;align-self:center;padding-left:0.75rem;padding-right:0.75rem}.actions-start ::slotted(calcite-action),.actions-end ::slotted(calcite-action){-ms-flex-item-align:stretch;align-self:stretch;color:inherit}::slotted(calcite-list-item-group),::slotted(calcite-list-item){padding-left:0.5rem}";
|
|
13720
14066
|
|
|
13721
14067
|
let CalciteListItem$1 = class extends HTMLElement {
|
|
13722
14068
|
constructor() {
|
|
13723
14069
|
super();
|
|
13724
14070
|
this.__registerHost();
|
|
13725
|
-
|
|
14071
|
+
this.__attachShadow();
|
|
13726
14072
|
// --------------------------------------------------------------------------
|
|
13727
14073
|
//
|
|
13728
14074
|
// Properties
|
|
@@ -13796,7 +14142,7 @@ let CalciteListItemGroup$1 = class extends HTMLElement {
|
|
|
13796
14142
|
constructor() {
|
|
13797
14143
|
super();
|
|
13798
14144
|
this.__registerHost();
|
|
13799
|
-
|
|
14145
|
+
this.__attachShadow();
|
|
13800
14146
|
}
|
|
13801
14147
|
// --------------------------------------------------------------------------
|
|
13802
14148
|
//
|
|
@@ -13815,13 +14161,13 @@ let CalciteListItemGroup$1 = class extends HTMLElement {
|
|
|
13815
14161
|
static get style() { return calciteListItemGroupCss; }
|
|
13816
14162
|
};
|
|
13817
14163
|
|
|
13818
|
-
const calciteLoaderCss = "@charset \"UTF-8\";@-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{-ms-flex-align:center;align-items:center;position:relative;-ms-flex-pack:center;justify-content:center;display:none;margin-left:auto;margin-right:auto;opacity:1;padding-top:4rem;padding-bottom:4rem;min-height:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;-webkit-transform:scale(1, 1);transform:scale(1, 1);animation:loader-color-shift 6s alternate-reverse infinite linear}:host([scale=s]){--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}:host([scale=m]){--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}:host([scale=l]){--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.25rem}:host([no-padding]){padding-top:0;padding-bottom:0}:host([active]){display:-ms-flexbox;display:flex}.loader__text{display:block;font-size:var(--calcite-font-size--2);line-height:1rem;text-align:center;color:var(--calcite-ui-text-1);margin-top:calc(var(--calcite-loader-size) + 1.5rem)}.loader__percentage{display:block;position:absolute;color:var(--calcite-ui-text-1);text-align:center;font-size:var(--calcite-loader-font-size);width:var(--calcite-loader-size);
|
|
14164
|
+
const calciteLoaderCss = "@charset \"UTF-8\";@-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{-ms-flex-align:center;align-items:center;position:relative;-ms-flex-pack:center;justify-content:center;display:none;margin-left:auto;margin-right:auto;opacity:1;padding-top:4rem;padding-bottom:4rem;min-height:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;-webkit-transform:scale(1, 1);transform:scale(1, 1);animation:loader-color-shift 6s alternate-reverse infinite linear}:host([scale=s]){--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}:host([scale=m]){--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}:host([scale=l]){--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.25rem}:host([no-padding]){padding-top:0;padding-bottom:0}:host([active]){display:-ms-flexbox;display:flex}.loader__text{display:block;font-size:var(--calcite-font-size--2);line-height:1rem;text-align:center;color:var(--calcite-ui-text-1);margin-top:calc(var(--calcite-loader-size) + 1.5rem)}.loader__percentage{display:block;position:absolute;color:var(--calcite-ui-text-1);text-align:center;font-size:var(--calcite-loader-font-size);width:var(--calcite-loader-size);left:50%;margin-left:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;-webkit-transform:scale(1, 1);transform:scale(1, 1)}.loader__svgs{position:absolute;overflow:visible;opacity:1;width:var(--calcite-loader-size);height:var(--calcite-loader-size);left:50%;margin-left:calc(var(--calcite-loader-size) / 2 * -1);-webkit-transform:scale(1, 1);transform:scale(1, 1)}.loader__svg{position:absolute;overflow:visible;top:0;left:0;-webkit-transform-origin:center;transform-origin:center;width:var(--calcite-loader-size);height:var(--calcite-loader-size);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-name:loader-clockwise;animation-name:loader-clockwise}@supports (display: grid){.loader__svg--1{-webkit-animation-name:loader-offset-1;animation-name:loader-offset-1}.loader__svg--2{-webkit-animation-name:loader-offset-2;animation-name:loader-offset-2}.loader__svg--3{-webkit-animation-name:loader-offset-3;animation-name:loader-offset-3}}:host([type=determinate]){-webkit-animation:none;animation:none;stroke:var(--calcite-ui-border-3)}:host([type=determinate]) .loader__svg--3{-webkit-animation:none;animation:none;stroke:var(--calcite-ui-brand);stroke-dasharray:150.79632;-webkit-transform:rotate(-90deg);transform:rotate(-90deg);-webkit-transition:all 100ms linear;transition:all 100ms linear}:host([inline]){position:relative;margin:0;padding-top:0;padding-bottom:0;-webkit-animation:none;animation:none;stroke:currentColor;stroke-width:2;height:var(--calcite-loader-size-inline);min-height:var(--calcite-loader-size-inline);width:var(--calcite-loader-size-inline);margin-right:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2)}:host([inline][dir=rtl]){margin-right:0;margin-left:calc(var(--calcite-loader-size-inline) * 0.5)}:host([active][inline]){display:inline-block}:host([inline]) .loader__svgs{top:0;left:0;margin:0;width:var(--calcite-loader-size-inline);height:var(--calcite-loader-size-inline)}:host([inline]) .loader__svg{width:var(--calcite-loader-size-inline);height:var(--calcite-loader-size-inline)}:host([complete]){opacity:0;-webkit-transform:scale(0.75, 0.75);transform:scale(0.75, 0.75);-webkit-transform-origin:center;transform-origin:center;-webkit-transition:opacity 200ms linear 1000ms, -webkit-transform 200ms linear 1000ms;transition:opacity 200ms linear 1000ms, -webkit-transform 200ms linear 1000ms;transition:opacity 200ms linear 1000ms, transform 200ms linear 1000ms;transition:opacity 200ms linear 1000ms, transform 200ms linear 1000ms, -webkit-transform 200ms linear 1000ms}:host([complete]) .loader__svgs{opacity:0;-webkit-transform:scale(0.75, 0.75);transform:scale(0.75, 0.75);-webkit-transform-origin:center;transform-origin:center;-webkit-transition:opacity 180ms linear 800ms, -webkit-transform 180ms linear 800ms;transition:opacity 180ms linear 800ms, -webkit-transform 180ms linear 800ms;transition:opacity 180ms linear 800ms, transform 180ms linear 800ms;transition:opacity 180ms linear 800ms, transform 180ms linear 800ms, -webkit-transform 180ms linear 800ms}:host([complete]) .loader__percentage{color:var(--calcite-ui-brand);-webkit-transform:scale(1.05, 1.05);transform:scale(1.05, 1.05);-webkit-transform-origin:center;transform-origin:center;-webkit-transition:color 200ms linear, -webkit-transform 200ms linear;transition:color 200ms linear, -webkit-transform 200ms linear;transition:color 200ms linear, transform 200ms linear;transition:color 200ms linear, transform 200ms linear, -webkit-transform 200ms linear}.loader__svg--1{stroke-dasharray:27.9252444444% 139.6262222222%;-webkit-animation-duration:0.72s;animation-duration:0.72s}@-webkit-keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-83.7757333333%}100%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:-279.2524444444%}}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-83.7757333333%}100%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:-279.2524444444%}}.loader__svg--2{stroke-dasharray:55.8504888889% 139.6262222222%;-webkit-animation-duration:0.96s;animation-duration:0.96s}@-webkit-keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-97.7383555556%}100%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:-279.2524444444%}}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-97.7383555556%}100%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:-279.2524444444%}}.loader__svg--3{stroke-dasharray:13.9626222222% 139.6262222222%;-webkit-animation-duration:1.16s;animation-duration:1.16s}@-webkit-keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-76.7944222222%}100%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:-279.2524444444%}}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-76.7944222222%}100%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:-279.2524444444%}}@-webkit-keyframes loader-color-shift{0%{stroke:var(--calcite-ui-brand)}33%{stroke:var(--calcite-ui-brand-press)}66%{stroke:var(--calcite-ui-brand-hover)}100%{stroke:var(--calcite-ui-brand)}}@keyframes loader-color-shift{0%{stroke:var(--calcite-ui-brand)}33%{stroke:var(--calcite-ui-brand-press)}66%{stroke:var(--calcite-ui-brand-hover)}100%{stroke:var(--calcite-ui-brand)}}@-webkit-keyframes loader-clockwise{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loader-clockwise{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";
|
|
13819
14165
|
|
|
13820
14166
|
let CalciteLoader$1 = class extends HTMLElement {
|
|
13821
14167
|
constructor() {
|
|
13822
14168
|
super();
|
|
13823
14169
|
this.__registerHost();
|
|
13824
|
-
|
|
14170
|
+
this.__attachShadow();
|
|
13825
14171
|
//--------------------------------------------------------------------------
|
|
13826
14172
|
//
|
|
13827
14173
|
// Properties
|
|
@@ -14033,7 +14379,7 @@ let CalciteModal$1 = class extends HTMLElement {
|
|
|
14033
14379
|
constructor() {
|
|
14034
14380
|
super();
|
|
14035
14381
|
this.__registerHost();
|
|
14036
|
-
|
|
14382
|
+
this.__attachShadow();
|
|
14037
14383
|
this.calciteModalOpen = createEvent(this, "calciteModalOpen", 7);
|
|
14038
14384
|
this.calciteModalClose = createEvent(this, "calciteModalClose", 7);
|
|
14039
14385
|
//--------------------------------------------------------------------------
|
|
@@ -14271,7 +14617,7 @@ let CalciteNotice$1 = class extends HTMLElement {
|
|
|
14271
14617
|
constructor() {
|
|
14272
14618
|
super();
|
|
14273
14619
|
this.__registerHost();
|
|
14274
|
-
|
|
14620
|
+
this.__attachShadow();
|
|
14275
14621
|
this.calciteNoticeClose = createEvent(this, "calciteNoticeClose", 7);
|
|
14276
14622
|
this.calciteNoticeOpen = createEvent(this, "calciteNoticeOpen", 7);
|
|
14277
14623
|
//--------------------------------------------------------------------------
|
|
@@ -14355,7 +14701,7 @@ let CalciteOption$1 = class extends HTMLElement {
|
|
|
14355
14701
|
constructor() {
|
|
14356
14702
|
super();
|
|
14357
14703
|
this.__registerHost();
|
|
14358
|
-
|
|
14704
|
+
this.__attachShadow();
|
|
14359
14705
|
this.calciteOptionChange = createEvent(this, "calciteOptionChange", 7);
|
|
14360
14706
|
//--------------------------------------------------------------------------
|
|
14361
14707
|
//
|
|
@@ -14434,7 +14780,7 @@ let CalciteOptionGroup$1 = class extends HTMLElement {
|
|
|
14434
14780
|
constructor() {
|
|
14435
14781
|
super();
|
|
14436
14782
|
this.__registerHost();
|
|
14437
|
-
|
|
14783
|
+
this.__attachShadow();
|
|
14438
14784
|
this.calciteOptionGroupChange = createEvent(this, "calciteOptionGroupChange", 7);
|
|
14439
14785
|
//--------------------------------------------------------------------------
|
|
14440
14786
|
//
|
|
@@ -14486,7 +14832,7 @@ let CalcitePagination$1 = class extends HTMLElement {
|
|
|
14486
14832
|
constructor() {
|
|
14487
14833
|
super();
|
|
14488
14834
|
this.__registerHost();
|
|
14489
|
-
|
|
14835
|
+
this.__attachShadow();
|
|
14490
14836
|
this.calcitePaginationUpdate = createEvent(this, "calcitePaginationUpdate", 7);
|
|
14491
14837
|
this.calcitePaginationChange = createEvent(this, "calcitePaginationChange", 7);
|
|
14492
14838
|
//--------------------------------------------------------------------------
|
|
@@ -14674,13 +15020,13 @@ const TEXT$7 = {
|
|
|
14674
15020
|
};
|
|
14675
15021
|
const HEADING_LEVEL$4 = 3;
|
|
14676
15022
|
|
|
14677
|
-
const calcitePanelCss = "@-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}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;position:relative;width:100%;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:justify;align-content:space-between;color:var(--calcite-ui-text-2);}.heading{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);width:100%;padding:0;margin:0;max-height:var(--calcite-panel-max-height);width:var(--calcite-panel-width);max-width:var(--calcite-panel-max-width);min-width:var(--calcite-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, width 150ms ease-in-out;transition:max-height 150ms ease-in-out, width 150ms ease-in-out}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative;z-index:1}.header{border-bottom:1px solid;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start;position:-webkit-sticky;position:sticky;top:0;border-bottom-color:var(--calcite-ui-border-
|
|
15023
|
+
const calcitePanelCss = "@-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}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;position:relative;width:100%;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:justify;align-content:space-between;color:var(--calcite-ui-text-2);}.heading{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);width:100%;padding:0;margin:0;max-height:var(--calcite-panel-max-height);width:var(--calcite-panel-width);max-width:var(--calcite-panel-max-width);min-width:var(--calcite-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, width 150ms ease-in-out;transition:max-height 150ms ease-in-out, width 150ms ease-in-out}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative;z-index:1}.header{border-bottom:1px solid;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start;position:-webkit-sticky;position:sticky;top:0;border-bottom-color:var(--calcite-ui-border-3);width:100%;-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;z-index:2}.header-content{overflow:hidden;margin-right:auto;padding-left:0.75rem;padding-right:0.75rem;padding-top:1rem;padding-bottom:1rem;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.header-content .heading,.header-content .summary{padding:0;display:block;overflow:hidden;white-space:nowrap;width:100%;text-overflow:ellipsis}.header-content .heading{font-weight:var(--calcite-font-weight-medium);margin-top:0;margin-left:0;margin-right:0;margin-bottom:0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.header-content .heading:only-child{margin-bottom:0}.header-content .summary{color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1);line-height:1rem}.back-button{border-color:var(--calcite-ui-border-3);border-style:solid;border-width:0;border-right-width:1px}.calcite--rtl .back-button{border-right-width:0;border-left-width:1px}.header-actions{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.header-actions--end{margin-left:auto}.menu-container:only-child{margin-left:auto}.menu-button{-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:0 1 auto;flex:0 1 auto;height:100%;position:relative}.menu{min-width:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.content-container{-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:column;flex-direction:column}.footer{border-top:1px solid;background-color:var(--calcite-ui-foreground-1);border-top-color:var(--calcite-ui-border-3);display:-ms-flexbox;display:flex;-ms-flex-pack:space-evenly;justify-content:space-evenly;position:-webkit-sticky;position:sticky;bottom:0;width:100%;-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;padding:0.5rem}.calcite--rtl .header-content{margin-left:auto;margin-right:unset}.calcite--rtl .header-actions--end{margin-right:auto;margin-left:unset}.calcite--rtl .menu-container:only-child{margin-right:auto;margin-left:unset}.fab-container{display:inline-block;position:-webkit-sticky;position:sticky;margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto;padding:0.5rem;bottom:0;left:0;right:0;z-index:1}";
|
|
14678
15024
|
|
|
14679
15025
|
let CalcitePanel$1 = class extends HTMLElement {
|
|
14680
15026
|
constructor() {
|
|
14681
15027
|
super();
|
|
14682
15028
|
this.__registerHost();
|
|
14683
|
-
|
|
15029
|
+
this.__attachShadow();
|
|
14684
15030
|
this.calcitePanelDismissedChange = createEvent(this, "calcitePanelDismissedChange", 7);
|
|
14685
15031
|
this.calcitePanelScroll = createEvent(this, "calcitePanelScroll", 7);
|
|
14686
15032
|
this.calcitePanelBackClick = createEvent(this, "calcitePanelBackClick", 7);
|
|
@@ -15153,7 +15499,7 @@ let CalcitePickList$1 = class extends HTMLElement {
|
|
|
15153
15499
|
constructor() {
|
|
15154
15500
|
super();
|
|
15155
15501
|
this.__registerHost();
|
|
15156
|
-
|
|
15502
|
+
this.__attachShadow();
|
|
15157
15503
|
this.calciteListChange = createEvent(this, "calciteListChange", 7);
|
|
15158
15504
|
// --------------------------------------------------------------------------
|
|
15159
15505
|
//
|
|
@@ -15286,7 +15632,7 @@ let CalcitePickListGroup$1 = class extends HTMLElement {
|
|
|
15286
15632
|
constructor() {
|
|
15287
15633
|
super();
|
|
15288
15634
|
this.__registerHost();
|
|
15289
|
-
|
|
15635
|
+
this.__attachShadow();
|
|
15290
15636
|
}
|
|
15291
15637
|
// --------------------------------------------------------------------------
|
|
15292
15638
|
//
|
|
@@ -15346,7 +15692,7 @@ let CalcitePickListItem$1 = class extends HTMLElement {
|
|
|
15346
15692
|
constructor() {
|
|
15347
15693
|
super();
|
|
15348
15694
|
this.__registerHost();
|
|
15349
|
-
|
|
15695
|
+
this.__attachShadow();
|
|
15350
15696
|
this.calciteListItemChange = createEvent(this, "calciteListItemChange", 7);
|
|
15351
15697
|
this.calciteListItemRemove = createEvent(this, "calciteListItemRemove", 7);
|
|
15352
15698
|
this.calciteListItemPropsChange = createEvent(this, "calciteListItemPropsChange", 7);
|
|
@@ -15509,13 +15855,13 @@ const ARIA_CONTROLS = "aria-controls";
|
|
|
15509
15855
|
const ARIA_EXPANDED = "aria-expanded";
|
|
15510
15856
|
const HEADING_LEVEL$2 = 2;
|
|
15511
15857
|
|
|
15512
|
-
const calcitePopoverCss = "@-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:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0)}.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}:host([data-popper-placement^=bottom]) .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host([data-popper-placement^=top]) .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host([data-popper-placement^=left]) .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host([data-popper-placement^=right]) .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::before{content:\"\";-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-popper-placement^=top]) .arrow{bottom:-4px}:host([data-popper-placement^=bottom]) .arrow{top:-4px}:host([data-popper-placement^=left]) .arrow{right:-4px}:host([data-popper-placement^=right]) .arrow{left:-4px}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-popper-anim{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);border-radius:0.25rem}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}.header{border-width:0;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-3);border-style:solid;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start}.heading{display:block;-ms-flex:1 1 auto;flex:1 1 auto;font-weight:var(--calcite-font-weight-medium);margin:0;padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size-0);line-height:1.375;white-space:normal;word-wrap:break-word;word-break:break-word}.container{background-color:var(--calcite-ui-foreground-1);position:relative;display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;height:100%;color:var(--calcite-ui-text-1);border-radius:0.25rem}.container.has-header{-ms-flex-direction:column;flex-direction:column}.content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-item-align:center;align-self:center;height:100%}.calcite--rtl .close-button{border-radius:0.25rem 0 0 0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}";
|
|
15858
|
+
const calcitePopoverCss = "@-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:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0)}.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}:host([data-popper-placement^=bottom]) .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host([data-popper-placement^=top]) .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host([data-popper-placement^=left]) .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host([data-popper-placement^=right]) .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::before{content:\"\";-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-popper-placement^=top]) .arrow{bottom:-4px}:host([data-popper-placement^=bottom]) .arrow{top:-4px}:host([data-popper-placement^=left]) .arrow{right:-4px}:host([data-popper-placement^=right]) .arrow{left:-4px}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-popper-anim{background-color:var(--calcite-ui-foreground-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);border-radius:0.25rem}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}.header{border-width:0;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-3);border-style:solid;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start}.heading{display:block;-ms-flex:1 1 auto;flex:1 1 auto;font-weight:var(--calcite-font-weight-medium);margin:0;padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size-0);line-height:1.375;white-space:normal;word-wrap:break-word;word-break:break-word}.container{background-color:var(--calcite-ui-foreground-1);position:relative;display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;height:100%;color:var(--calcite-ui-text-1);border-radius:0.25rem}.container.has-header{-ms-flex-direction:column;flex-direction:column}.content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-item-align:center;align-self:center;height:100%;width:100%}.calcite--rtl .close-button{border-radius:0.25rem 0 0 0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}";
|
|
15513
15859
|
|
|
15514
15860
|
let CalcitePopover$1 = class extends HTMLElement {
|
|
15515
15861
|
constructor() {
|
|
15516
15862
|
super();
|
|
15517
15863
|
this.__registerHost();
|
|
15518
|
-
|
|
15864
|
+
this.__attachShadow();
|
|
15519
15865
|
this.calcitePopoverClose = createEvent(this, "calcitePopoverClose", 7);
|
|
15520
15866
|
this.calcitePopoverOpen = createEvent(this, "calcitePopoverOpen", 7);
|
|
15521
15867
|
// --------------------------------------------------------------------------
|
|
@@ -15662,7 +16008,7 @@ let CalcitePopover$1 = class extends HTMLElement {
|
|
|
15662
16008
|
const { popper, el, placement } = this;
|
|
15663
16009
|
const modifiers = this.getModifiers();
|
|
15664
16010
|
popper
|
|
15665
|
-
? updatePopper({
|
|
16011
|
+
? await updatePopper({
|
|
15666
16012
|
el,
|
|
15667
16013
|
modifiers,
|
|
15668
16014
|
placement,
|
|
@@ -15785,7 +16131,7 @@ let CalcitePopoverManager$1 = class extends HTMLElement {
|
|
|
15785
16131
|
constructor() {
|
|
15786
16132
|
super();
|
|
15787
16133
|
this.__registerHost();
|
|
15788
|
-
|
|
16134
|
+
this.__attachShadow();
|
|
15789
16135
|
// --------------------------------------------------------------------------
|
|
15790
16136
|
//
|
|
15791
16137
|
// Properties
|
|
@@ -15851,7 +16197,7 @@ let CalciteProgress$1 = class extends HTMLElement {
|
|
|
15851
16197
|
constructor() {
|
|
15852
16198
|
super();
|
|
15853
16199
|
this.__registerHost();
|
|
15854
|
-
|
|
16200
|
+
this.__attachShadow();
|
|
15855
16201
|
/** Use indeterminate if finding actual progress value is impossible */
|
|
15856
16202
|
this.type = "determinate";
|
|
15857
16203
|
/** Fraction completed, in the range of 0 - 1.0 */
|
|
@@ -15878,7 +16224,7 @@ let CalciteRadio$1 = class extends HTMLElement {
|
|
|
15878
16224
|
constructor() {
|
|
15879
16225
|
super();
|
|
15880
16226
|
this.__registerHost();
|
|
15881
|
-
|
|
16227
|
+
this.__attachShadow();
|
|
15882
16228
|
//--------------------------------------------------------------------------
|
|
15883
16229
|
//
|
|
15884
16230
|
// Properties
|
|
@@ -15915,15 +16261,16 @@ let CalciteRadio$1 = class extends HTMLElement {
|
|
|
15915
16261
|
};
|
|
15916
16262
|
|
|
15917
16263
|
const CSS$e = {
|
|
15918
|
-
container: "
|
|
16264
|
+
container: "container"
|
|
15919
16265
|
};
|
|
15920
16266
|
|
|
15921
|
-
const calciteRadioButtonCss = "@-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)}}
|
|
16267
|
+
const calciteRadioButtonCss = "@-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{cursor:pointer;display:block}:host .container{position:relative;outline:2px solid transparent;outline-offset:2px}:host([disabled]){cursor:pointer}::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}";
|
|
15922
16268
|
|
|
15923
16269
|
let CalciteRadioButton$1 = class extends HTMLElement {
|
|
15924
16270
|
constructor() {
|
|
15925
16271
|
super();
|
|
15926
16272
|
this.__registerHost();
|
|
16273
|
+
this.__attachShadow();
|
|
15927
16274
|
this.calciteInternalRadioButtonBlur = createEvent(this, "calciteInternalRadioButtonBlur", 7);
|
|
15928
16275
|
this.calciteRadioButtonChange = createEvent(this, "calciteRadioButtonChange", 7);
|
|
15929
16276
|
this.calciteInternalRadioButtonCheckedChange = createEvent(this, "calciteInternalRadioButtonCheckedChange", 7);
|
|
@@ -15965,31 +16312,77 @@ let CalciteRadioButton$1 = class extends HTMLElement {
|
|
|
15965
16312
|
item.focused = selected;
|
|
15966
16313
|
});
|
|
15967
16314
|
};
|
|
15968
|
-
this.
|
|
16315
|
+
this.queryButtons = () => {
|
|
16316
|
+
return Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((radioButton) => radioButton.name === this.name);
|
|
16317
|
+
};
|
|
16318
|
+
this.isDefaultSelectable = () => {
|
|
16319
|
+
const radioButtons = this.queryButtons();
|
|
16320
|
+
return !radioButtons.some((radioButton) => radioButton.checked) && radioButtons[0] === this.el;
|
|
16321
|
+
};
|
|
16322
|
+
this.check = () => {
|
|
16323
|
+
if (this.disabled) {
|
|
16324
|
+
return;
|
|
16325
|
+
}
|
|
15969
16326
|
this.uncheckAllRadioButtonsInGroup();
|
|
15970
16327
|
this.checked = true;
|
|
15971
16328
|
this.focused = true;
|
|
15972
16329
|
this.calciteRadioButtonChange.emit();
|
|
15973
16330
|
};
|
|
15974
16331
|
this.clickHandler = () => {
|
|
15975
|
-
this.
|
|
15976
|
-
};
|
|
15977
|
-
this.setInputEl = (el) => {
|
|
15978
|
-
this.inputEl = el;
|
|
16332
|
+
this.check();
|
|
15979
16333
|
};
|
|
15980
|
-
this.
|
|
15981
|
-
|
|
15982
|
-
this.checked = this.initialChecked;
|
|
15983
|
-
this.initialChecked && ((_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.setAttribute("checked", ""));
|
|
16334
|
+
this.setContainerEl = (el) => {
|
|
16335
|
+
this.containerEl = el;
|
|
15984
16336
|
};
|
|
15985
|
-
this.
|
|
15986
|
-
|
|
16337
|
+
this.handleKeyDown = (event) => {
|
|
16338
|
+
const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
|
|
16339
|
+
const key = getKey(event.key);
|
|
16340
|
+
const { el } = this;
|
|
16341
|
+
if (keys.indexOf(key) === -1) {
|
|
16342
|
+
return;
|
|
16343
|
+
}
|
|
16344
|
+
if (key === " ") {
|
|
16345
|
+
this.check();
|
|
16346
|
+
return;
|
|
16347
|
+
}
|
|
16348
|
+
let adjustedKey = key;
|
|
16349
|
+
if (getElementDir(el) === "rtl") {
|
|
16350
|
+
if (key === "ArrowRight") {
|
|
16351
|
+
adjustedKey = "ArrowLeft";
|
|
16352
|
+
}
|
|
16353
|
+
if (key === "ArrowLeft") {
|
|
16354
|
+
adjustedKey = "ArrowRight";
|
|
16355
|
+
}
|
|
16356
|
+
}
|
|
16357
|
+
const radioButtons = Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((radioButton) => radioButton.name === this.name);
|
|
16358
|
+
let currentIndex = 0;
|
|
16359
|
+
const radioButtonsLength = radioButtons.length;
|
|
16360
|
+
radioButtons.some((item, index) => {
|
|
16361
|
+
if (item.checked) {
|
|
16362
|
+
currentIndex = index;
|
|
16363
|
+
return true;
|
|
16364
|
+
}
|
|
16365
|
+
});
|
|
16366
|
+
switch (adjustedKey) {
|
|
16367
|
+
case "ArrowLeft":
|
|
16368
|
+
case "ArrowUp":
|
|
16369
|
+
event.preventDefault();
|
|
16370
|
+
this.selectItem(radioButtons, getRoundRobinIndex(Math.max(currentIndex - 1, -1), radioButtonsLength));
|
|
16371
|
+
return;
|
|
16372
|
+
case "ArrowRight":
|
|
16373
|
+
case "ArrowDown":
|
|
16374
|
+
event.preventDefault();
|
|
16375
|
+
this.selectItem(radioButtons, getRoundRobinIndex(currentIndex + 1, radioButtonsLength));
|
|
16376
|
+
return;
|
|
16377
|
+
default:
|
|
16378
|
+
return;
|
|
16379
|
+
}
|
|
15987
16380
|
};
|
|
15988
|
-
this.
|
|
16381
|
+
this.onContainerBlur = () => {
|
|
15989
16382
|
this.focused = false;
|
|
15990
16383
|
this.calciteInternalRadioButtonBlur.emit();
|
|
15991
16384
|
};
|
|
15992
|
-
this.
|
|
16385
|
+
this.onContainerFocus = () => {
|
|
15993
16386
|
this.focused = true;
|
|
15994
16387
|
this.calciteInternalRadioButtonFocus.emit();
|
|
15995
16388
|
};
|
|
@@ -15998,44 +16391,15 @@ let CalciteRadioButton$1 = class extends HTMLElement {
|
|
|
15998
16391
|
if (newChecked) {
|
|
15999
16392
|
this.uncheckOtherRadioButtonsInGroup();
|
|
16000
16393
|
}
|
|
16001
|
-
if (this.inputEl) {
|
|
16002
|
-
this.inputEl.checked = newChecked;
|
|
16003
|
-
}
|
|
16004
16394
|
this.calciteInternalRadioButtonCheckedChange.emit(newChecked);
|
|
16005
16395
|
}
|
|
16006
|
-
|
|
16007
|
-
this.inputEl.disabled = disabled;
|
|
16008
|
-
}
|
|
16009
|
-
focusedChanged(focused) {
|
|
16010
|
-
if (!this.inputEl) {
|
|
16011
|
-
return;
|
|
16012
|
-
}
|
|
16013
|
-
if (focused && !this.el.hasAttribute("hidden")) {
|
|
16014
|
-
this.inputEl.focus();
|
|
16015
|
-
}
|
|
16016
|
-
else {
|
|
16017
|
-
this.inputEl.blur();
|
|
16018
|
-
}
|
|
16019
|
-
}
|
|
16020
|
-
hiddenChanged(newHidden) {
|
|
16021
|
-
this.inputEl.hidden = newHidden;
|
|
16022
|
-
}
|
|
16023
|
-
nameChanged(newName) {
|
|
16024
|
-
if (this.name === newName) {
|
|
16025
|
-
return;
|
|
16026
|
-
}
|
|
16027
|
-
if (this.inputEl) {
|
|
16028
|
-
this.inputEl.name = newName;
|
|
16029
|
-
}
|
|
16396
|
+
nameChanged() {
|
|
16030
16397
|
this.checkLastRadioButton();
|
|
16031
16398
|
const currentValue = this.rootNode.querySelector(`input[name="${this.name}"]:checked`);
|
|
16032
16399
|
if (!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.value)) {
|
|
16033
16400
|
this.uncheckAllRadioButtonsInGroup();
|
|
16034
16401
|
}
|
|
16035
16402
|
}
|
|
16036
|
-
requiredChanged(required) {
|
|
16037
|
-
this.inputEl.required = required;
|
|
16038
|
-
}
|
|
16039
16403
|
//--------------------------------------------------------------------------
|
|
16040
16404
|
//
|
|
16041
16405
|
// Public Methods
|
|
@@ -16043,7 +16407,7 @@ let CalciteRadioButton$1 = class extends HTMLElement {
|
|
|
16043
16407
|
//--------------------------------------------------------------------------
|
|
16044
16408
|
/** Sets focus on the component. */
|
|
16045
16409
|
async setFocus() {
|
|
16046
|
-
focusElement(this.
|
|
16410
|
+
focusElement(this.containerEl);
|
|
16047
16411
|
}
|
|
16048
16412
|
onLabelClick(event) {
|
|
16049
16413
|
if (!this.disabled && !this.hidden) {
|
|
@@ -16061,7 +16425,7 @@ let CalciteRadioButton$1 = class extends HTMLElement {
|
|
|
16061
16425
|
}
|
|
16062
16426
|
}
|
|
16063
16427
|
checkLastRadioButton() {
|
|
16064
|
-
const radioButtons =
|
|
16428
|
+
const radioButtons = this.queryButtons();
|
|
16065
16429
|
const checkedRadioButtons = radioButtons.filter((radioButton) => radioButton.checked);
|
|
16066
16430
|
if ((checkedRadioButtons === null || checkedRadioButtons === void 0 ? void 0 : checkedRadioButtons.length) > 1) {
|
|
16067
16431
|
const lastCheckedRadioButton = checkedRadioButtons[checkedRadioButtons.length - 1];
|
|
@@ -16078,16 +16442,17 @@ let CalciteRadioButton$1 = class extends HTMLElement {
|
|
|
16078
16442
|
this.calciteInternalRadioButtonCheckedChange.emit();
|
|
16079
16443
|
}
|
|
16080
16444
|
uncheckAllRadioButtonsInGroup() {
|
|
16081
|
-
const
|
|
16082
|
-
|
|
16083
|
-
if (
|
|
16084
|
-
|
|
16085
|
-
|
|
16445
|
+
const radioButtons = this.queryButtons();
|
|
16446
|
+
radioButtons.forEach((radioButton) => {
|
|
16447
|
+
if (radioButton.checked) {
|
|
16448
|
+
radioButton.checked = false;
|
|
16449
|
+
radioButton.focused = false;
|
|
16086
16450
|
}
|
|
16087
16451
|
});
|
|
16088
16452
|
}
|
|
16089
16453
|
uncheckOtherRadioButtonsInGroup() {
|
|
16090
|
-
const
|
|
16454
|
+
const radioButtons = this.queryButtons();
|
|
16455
|
+
const otherRadioButtons = radioButtons.filter((radioButton) => radioButton.guid !== this.guid);
|
|
16091
16456
|
otherRadioButtons.forEach((otherRadioButton) => {
|
|
16092
16457
|
if (otherRadioButton.checked) {
|
|
16093
16458
|
otherRadioButton.checked = false;
|
|
@@ -16114,28 +16479,20 @@ let CalciteRadioButton$1 = class extends HTMLElement {
|
|
|
16114
16479
|
connectedCallback() {
|
|
16115
16480
|
this.rootNode = this.el.getRootNode();
|
|
16116
16481
|
this.guid = this.el.id || `calcite-radio-button-${guid()}`;
|
|
16117
|
-
this.initialChecked = this.checked;
|
|
16118
16482
|
if (this.name) {
|
|
16119
16483
|
this.checkLastRadioButton();
|
|
16120
16484
|
}
|
|
16121
|
-
const form = closestElementCrossShadowBoundary(this.el, "form");
|
|
16122
|
-
if (form) {
|
|
16123
|
-
form.addEventListener("reset", this.formResetHandler);
|
|
16124
|
-
}
|
|
16125
16485
|
connectLabel(this);
|
|
16486
|
+
connectForm(this);
|
|
16126
16487
|
}
|
|
16127
16488
|
componentDidLoad() {
|
|
16128
|
-
this.hideInputEl();
|
|
16129
16489
|
if (this.focused) {
|
|
16130
|
-
this.
|
|
16490
|
+
this.containerEl.focus();
|
|
16131
16491
|
}
|
|
16132
16492
|
}
|
|
16133
16493
|
disconnectedCallback() {
|
|
16134
|
-
const form = closestElementCrossShadowBoundary(this.el, "form");
|
|
16135
|
-
if (form) {
|
|
16136
|
-
form.removeEventListener("reset", this.formResetHandler);
|
|
16137
|
-
}
|
|
16138
16494
|
disconnectLabel(this);
|
|
16495
|
+
disconnectForm(this);
|
|
16139
16496
|
}
|
|
16140
16497
|
// --------------------------------------------------------------------------
|
|
16141
16498
|
//
|
|
@@ -16143,18 +16500,12 @@ let CalciteRadioButton$1 = class extends HTMLElement {
|
|
|
16143
16500
|
//
|
|
16144
16501
|
// --------------------------------------------------------------------------
|
|
16145
16502
|
render() {
|
|
16146
|
-
|
|
16147
|
-
const value = (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString();
|
|
16148
|
-
return (h(Host, { onClick: this.clickHandler }, h("div", { class: CSS$e.container }, h("input", { "aria-label": getLabelText(this), checked: this.checked, disabled: this.disabled, hidden: this.hidden, id: `${this.guid}-input`, name: this.name, onBlur: this.onInputBlur, onFocus: this.onInputFocus, ref: this.setInputEl, required: this.required, type: "radio", value: value }), h("calcite-radio", { checked: this.checked, disabled: this.disabled, focused: this.focused, hidden: this.hidden, hovered: this.hovered, scale: this.scale }))));
|
|
16503
|
+
return (h(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: CSS$e.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, ref: this.setContainerEl, role: "radio", tabIndex: this.checked || this.isDefaultSelectable() ? 0 : -1 }, h("calcite-radio", { checked: this.checked, disabled: this.disabled, focused: this.focused, hidden: this.hidden, hovered: this.hovered, scale: this.scale })), h(HiddenFormInputSlot, { component: this })));
|
|
16149
16504
|
}
|
|
16150
16505
|
get el() { return this; }
|
|
16151
16506
|
static get watchers() { return {
|
|
16152
16507
|
"checked": ["checkedChanged"],
|
|
16153
|
-
"
|
|
16154
|
-
"focused": ["focusedChanged"],
|
|
16155
|
-
"hidden": ["hiddenChanged"],
|
|
16156
|
-
"name": ["nameChanged"],
|
|
16157
|
-
"required": ["requiredChanged"]
|
|
16508
|
+
"name": ["nameChanged"]
|
|
16158
16509
|
}; }
|
|
16159
16510
|
static get style() { return calciteRadioButtonCss; }
|
|
16160
16511
|
};
|
|
@@ -16165,7 +16516,7 @@ let CalciteRadioButtonGroup$1 = class extends HTMLElement {
|
|
|
16165
16516
|
constructor() {
|
|
16166
16517
|
super();
|
|
16167
16518
|
this.__registerHost();
|
|
16168
|
-
|
|
16519
|
+
this.__attachShadow();
|
|
16169
16520
|
this.calciteRadioButtonGroupChange = createEvent(this, "calciteRadioButtonGroupChange", 7);
|
|
16170
16521
|
//--------------------------------------------------------------------------
|
|
16171
16522
|
//
|
|
@@ -16246,13 +16597,13 @@ let CalciteRadioButtonGroup$1 = class extends HTMLElement {
|
|
|
16246
16597
|
static get style() { return calciteRadioButtonGroupCss; }
|
|
16247
16598
|
};
|
|
16248
16599
|
|
|
16249
|
-
const calciteRadioGroupCss = "@-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:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;outline:1px solid var(--calcite-ui-border-input);outline-offset:-1px}:host([layout=vertical]){-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;-ms-flex-item-align:start;align-self:flex-start}:host([width=full]){width:100%;min-width:-moz-fit-content;min-width:-webkit-fit-content;min-width:fit-content}:host([width=full]) ::slotted(calcite-radio-group-item){-ms-flex:1 1 auto;flex:1 1 auto}:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item){-ms-flex-pack:start;justify-content:flex-start}::slotted(calcite-radio-group-item[checked]),::slotted(calcite-radio-group-item:focus){z-index:0}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}";
|
|
16600
|
+
const calciteRadioGroupCss = "@-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:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;outline:1px solid var(--calcite-ui-border-input);outline-offset:-1px}:host([layout=vertical]){-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;-ms-flex-item-align:start;align-self:flex-start}:host([width=full]){width:100%;min-width:-moz-fit-content;min-width:-webkit-fit-content;min-width:fit-content}:host([width=full]) ::slotted(calcite-radio-group-item){-ms-flex:1 1 auto;flex:1 1 auto}:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item){-ms-flex-pack:start;justify-content:flex-start}::slotted(calcite-radio-group-item[checked]),::slotted(calcite-radio-group-item:focus){z-index:0}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}::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}";
|
|
16250
16601
|
|
|
16251
16602
|
let CalciteRadioGroup$1 = class extends HTMLElement {
|
|
16252
16603
|
constructor() {
|
|
16253
16604
|
super();
|
|
16254
16605
|
this.__registerHost();
|
|
16255
|
-
|
|
16606
|
+
this.__attachShadow();
|
|
16256
16607
|
this.calciteRadioGroupChange = createEvent(this, "calciteRadioGroupChange", 7);
|
|
16257
16608
|
//--------------------------------------------------------------------------
|
|
16258
16609
|
//
|
|
@@ -16263,10 +16614,18 @@ let CalciteRadioGroup$1 = class extends HTMLElement {
|
|
|
16263
16614
|
this.appearance = "solid";
|
|
16264
16615
|
/** is the radio group disabled */
|
|
16265
16616
|
this.disabled = false;
|
|
16617
|
+
/**
|
|
16618
|
+
* When true, makes the component required for form-submission.
|
|
16619
|
+
*
|
|
16620
|
+
* @internal
|
|
16621
|
+
*/
|
|
16622
|
+
this.required = false;
|
|
16266
16623
|
/** specify the layout of the radio group, defaults to horizontal */
|
|
16267
16624
|
this.layout = "horizontal";
|
|
16268
16625
|
/** The scale of the radio group */
|
|
16269
16626
|
this.scale = "m";
|
|
16627
|
+
/** The value of the selectedItem */
|
|
16628
|
+
this.value = null;
|
|
16270
16629
|
/** specify the width of the group, defaults to auto */
|
|
16271
16630
|
this.width = "auto";
|
|
16272
16631
|
//--------------------------------------------------------------------------
|
|
@@ -16279,17 +16638,13 @@ let CalciteRadioGroup$1 = class extends HTMLElement {
|
|
|
16279
16638
|
this.selectItem(event.target);
|
|
16280
16639
|
}
|
|
16281
16640
|
};
|
|
16282
|
-
this.hiddenInput = (() => {
|
|
16283
|
-
const input = document.createElement("input");
|
|
16284
|
-
input.type = "hidden";
|
|
16285
|
-
this.el.appendChild(input);
|
|
16286
|
-
return input;
|
|
16287
|
-
})();
|
|
16288
16641
|
}
|
|
16289
|
-
|
|
16290
|
-
|
|
16642
|
+
valueHandler(value) {
|
|
16643
|
+
const items = this.getItems();
|
|
16644
|
+
items.forEach((item) => (item.checked = item.value === value));
|
|
16291
16645
|
}
|
|
16292
16646
|
handleSelectedItemChange(newItem, oldItem) {
|
|
16647
|
+
this.value = newItem === null || newItem === void 0 ? void 0 : newItem.value;
|
|
16293
16648
|
if (newItem === oldItem) {
|
|
16294
16649
|
return;
|
|
16295
16650
|
}
|
|
@@ -16321,23 +16676,18 @@ let CalciteRadioGroup$1 = class extends HTMLElement {
|
|
|
16321
16676
|
else if (items[0]) {
|
|
16322
16677
|
items[0].tabIndex = 0;
|
|
16323
16678
|
}
|
|
16324
|
-
const { hiddenInput, name } = this;
|
|
16325
|
-
if (name) {
|
|
16326
|
-
hiddenInput.name = name;
|
|
16327
|
-
}
|
|
16328
|
-
if (lastChecked) {
|
|
16329
|
-
hiddenInput.value = lastChecked.value;
|
|
16330
|
-
}
|
|
16331
16679
|
connectLabel(this);
|
|
16680
|
+
connectForm(this);
|
|
16332
16681
|
}
|
|
16333
16682
|
disconnectedCallback() {
|
|
16334
16683
|
disconnectLabel(this);
|
|
16684
|
+
disconnectForm(this);
|
|
16335
16685
|
}
|
|
16336
16686
|
componentDidLoad() {
|
|
16337
16687
|
this.hasLoaded = true;
|
|
16338
16688
|
}
|
|
16339
16689
|
render() {
|
|
16340
|
-
return (h(Host, { onClick: this.handleClick, role: "radiogroup", tabIndex: this.disabled ? -1 : null }, h("slot", null)));
|
|
16690
|
+
return (h(Host, { onClick: this.handleClick, role: "radiogroup", tabIndex: this.disabled ? -1 : null }, h("slot", null), h(HiddenFormInputSlot, { component: this })));
|
|
16341
16691
|
}
|
|
16342
16692
|
handleSelected(event) {
|
|
16343
16693
|
// only fire after initial setup to prevent semi-infinite loops
|
|
@@ -16429,17 +16779,13 @@ let CalciteRadioGroup$1 = class extends HTMLElement {
|
|
|
16429
16779
|
}
|
|
16430
16780
|
});
|
|
16431
16781
|
this.selectedItem = match;
|
|
16432
|
-
this.syncWithInputProxy(match);
|
|
16433
16782
|
if (Build.isBrowser && match) {
|
|
16434
16783
|
match.focus();
|
|
16435
16784
|
}
|
|
16436
16785
|
}
|
|
16437
|
-
syncWithInputProxy(item) {
|
|
16438
|
-
this.hiddenInput.value = item ? item.value : "";
|
|
16439
|
-
}
|
|
16440
16786
|
get el() { return this; }
|
|
16441
16787
|
static get watchers() { return {
|
|
16442
|
-
"
|
|
16788
|
+
"value": ["valueHandler"],
|
|
16443
16789
|
"selectedItem": ["handleSelectedItemChange"]
|
|
16444
16790
|
}; }
|
|
16445
16791
|
static get style() { return calciteRadioGroupCss; }
|
|
@@ -16458,7 +16804,7 @@ let CalciteRadioGroupItem$1 = class extends HTMLElement {
|
|
|
16458
16804
|
constructor() {
|
|
16459
16805
|
super();
|
|
16460
16806
|
this.__registerHost();
|
|
16461
|
-
|
|
16807
|
+
this.__attachShadow();
|
|
16462
16808
|
this.calciteRadioGroupItemChange = createEvent(this, "calciteRadioGroupItemChange", 7);
|
|
16463
16809
|
//--------------------------------------------------------------------------
|
|
16464
16810
|
//
|
|
@@ -16552,13 +16898,13 @@ const TEXT$4 = {
|
|
|
16552
16898
|
stars: "Stars: ${num}"
|
|
16553
16899
|
};
|
|
16554
16900
|
|
|
16555
|
-
const calciteRatingCss = "@-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:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content}:host([scale=s]){height:1.5rem;--calcite-rating-spacing-unit:0.25rem}:host([scale=m]){height:2rem;--calcite-rating-spacing-unit:0.5rem}:host([scale=l]){height:2.75rem;--calcite-rating-spacing-unit:0.75rem}:host([disabled]){pointer-events:none;opacity:0.5}:host([read-only]){pointer-events:none}.fieldset{padding:0;margin:0;border-width:0;display:-ms-flexbox;display:flex}.wrapper{display:inline-block;margin-right:var(--calcite-rating-spacing-unit)}.calcite--rtl .wrapper{margin-right:0;margin-left:var(--calcite-rating-spacing-unit)}.star{position:relative;display:-ms-flexbox;display:flex;cursor:pointer;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;color:var(--calcite-ui-border-input);-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out;-webkit-transform:scale(1);transform:scale(1)}.star:active{-webkit-transform:scale(1.1);transform:scale(1.1)}.focused{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.average,.fraction{color:var(--calcite-ui-warning)}.hovered,.selected,:host([read-only]) .average,:host([read-only]) .fraction{color:var(--calcite-ui-brand)}.hovered:not(.selected){-webkit-transform:scale(0.9);transform:scale(0.9)}:host .fraction{position:absolute;overflow:hidden;pointer-events:none;top:0;left:0;-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out}.calcite--rtl .fraction{right:0;left:auto}calcite-chip{cursor:default;pointer-events:none}.number--average{font-weight:var(--calcite-font-weight-bold)}.number--count{color:var(--calcite-ui-text-2);font-style:italic}.number--count:not(:first-child){margin-left:var(--calcite-rating-spacing-unit)}.calcite--rtl .number--count:not(:first-child){margin-left:0;margin-right:var(--calcite-rating-spacing-unit)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}";
|
|
16901
|
+
const calciteRatingCss = "@-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:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content}:host([scale=s]){height:1.5rem;--calcite-rating-spacing-unit:0.25rem}:host([scale=m]){height:2rem;--calcite-rating-spacing-unit:0.5rem}:host([scale=l]){height:2.75rem;--calcite-rating-spacing-unit:0.75rem}:host([disabled]){pointer-events:none;opacity:0.5}:host([read-only]){pointer-events:none}.fieldset{padding:0;margin:0;border-width:0;display:-ms-flexbox;display:flex}.wrapper{display:inline-block;margin-right:var(--calcite-rating-spacing-unit)}.calcite--rtl .wrapper{margin-right:0;margin-left:var(--calcite-rating-spacing-unit)}.star{position:relative;display:-ms-flexbox;display:flex;cursor:pointer;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;color:var(--calcite-ui-border-input);-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out;-webkit-transform:scale(1);transform:scale(1)}.star:active{-webkit-transform:scale(1.1);transform:scale(1.1)}.focused{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.average,.fraction{color:var(--calcite-ui-warning)}.hovered,.selected,:host([read-only]) .average,:host([read-only]) .fraction{color:var(--calcite-ui-brand)}.hovered:not(.selected){-webkit-transform:scale(0.9);transform:scale(0.9)}:host .fraction{position:absolute;overflow:hidden;pointer-events:none;top:0;left:0;-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out}.calcite--rtl .fraction{right:0;left:auto}calcite-chip{cursor:default;pointer-events:none}.number--average{font-weight:var(--calcite-font-weight-bold)}.number--count{color:var(--calcite-ui-text-2);font-style:italic}.number--count:not(:first-child){margin-left:var(--calcite-rating-spacing-unit)}.calcite--rtl .number--count:not(:first-child){margin-left:0;margin-right:var(--calcite-rating-spacing-unit)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}::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}";
|
|
16556
16902
|
|
|
16557
16903
|
let CalciteRating$1 = class extends HTMLElement {
|
|
16558
16904
|
constructor() {
|
|
16559
16905
|
super();
|
|
16560
16906
|
this.__registerHost();
|
|
16561
|
-
|
|
16907
|
+
this.__attachShadow();
|
|
16562
16908
|
this.calciteRatingChange = createEvent(this, "calciteRatingChange", 7);
|
|
16563
16909
|
// --------------------------------------------------------------------------
|
|
16564
16910
|
//
|
|
@@ -16583,6 +16929,12 @@ let CalciteRating$1 = class extends HTMLElement {
|
|
|
16583
16929
|
* @default "Stars: ${num}"
|
|
16584
16930
|
*/
|
|
16585
16931
|
this.intlStars = TEXT$4.stars;
|
|
16932
|
+
/**
|
|
16933
|
+
* When true, makes the component required for form-submission.
|
|
16934
|
+
*
|
|
16935
|
+
* @internal
|
|
16936
|
+
*/
|
|
16937
|
+
this.required = false;
|
|
16586
16938
|
this.guid = `calcite-ratings-${guid()}`;
|
|
16587
16939
|
}
|
|
16588
16940
|
//--------------------------------------------------------------------------
|
|
@@ -16592,9 +16944,11 @@ let CalciteRating$1 = class extends HTMLElement {
|
|
|
16592
16944
|
//--------------------------------------------------------------------------
|
|
16593
16945
|
connectedCallback() {
|
|
16594
16946
|
connectLabel(this);
|
|
16947
|
+
connectForm(this);
|
|
16595
16948
|
}
|
|
16596
16949
|
disconnectedCallback() {
|
|
16597
16950
|
disconnectLabel(this);
|
|
16951
|
+
disconnectForm(this);
|
|
16598
16952
|
}
|
|
16599
16953
|
//--------------------------------------------------------------------------
|
|
16600
16954
|
//
|
|
@@ -16629,7 +16983,7 @@ let CalciteRating$1 = class extends HTMLElement {
|
|
|
16629
16983
|
const { intlRating, showChip, scale, count, average } = this;
|
|
16630
16984
|
const dir = getElementDir(this.el);
|
|
16631
16985
|
return (h(Fragment, null, h("fieldset", { class: { fieldset: true, [CSS_UTILITY.rtl]: dir === "rtl" }, onBlur: () => (this.hoverValue = null), onMouseLeave: () => (this.hoverValue = null), onTouchEnd: () => (this.hoverValue = null) }, h("legend", { class: "visually-hidden" }, intlRating), this.renderStars()), (count || average) && showChip ? (h("calcite-chip", { class: { [CSS_UTILITY.rtl]: dir === "rtl" }, dir: dir, scale: scale, value: count === null || count === void 0 ? void 0 : count.toString() }, !!average && h("span", { class: "number--average" }, average.toString()), !!count && h("span", { class: "number--count" }, "(", count === null || count === void 0 ? void 0 :
|
|
16632
|
-
count.toString(), ")"))) : null));
|
|
16986
|
+
count.toString(), ")"))) : null, h(HiddenFormInputSlot, { component: this })));
|
|
16633
16987
|
}
|
|
16634
16988
|
//--------------------------------------------------------------------------
|
|
16635
16989
|
//
|
|
@@ -16670,7 +17024,7 @@ let CalciteScrim$1 = class extends HTMLElement {
|
|
|
16670
17024
|
constructor() {
|
|
16671
17025
|
super();
|
|
16672
17026
|
this.__registerHost();
|
|
16673
|
-
|
|
17027
|
+
this.__attachShadow();
|
|
16674
17028
|
// --------------------------------------------------------------------------
|
|
16675
17029
|
//
|
|
16676
17030
|
// Properties
|
|
@@ -16708,7 +17062,7 @@ const CSS$b = {
|
|
|
16708
17062
|
select: "select"
|
|
16709
17063
|
};
|
|
16710
17064
|
|
|
16711
|
-
const calciteSelectCss = "@-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}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;position:relative;width:var(--select-width)}:host([scale=s]){height:1.5rem;--calcite-select-font-size:var(--calcite-font-size--2);--calcite-select-spacing:0 2rem 0 0.5rem;--calcite-select-spacing-rtl:0 0.5rem 0 2rem}:host([scale=s]) .icon-container{padding-left:0.5rem;padding-right:0.5rem}:host([scale=m]){height:2rem;--calcite-select-font-size:var(--calcite-font-size--1);--calcite-select-spacing:0 2.5rem 0 0.75rem;--calcite-select-spacing-rtl:0 0.75rem 0 2.5rem}:host([scale=m]) .icon-container{padding-left:0.75rem;padding-right:0.75rem}:host([scale=l]){height:44px;--calcite-select-font-size:var(--calcite-font-size-0);--calcite-select-spacing:0 3rem 0 1rem;--calcite-select-spacing-rtl:0 1rem 0 3rem}:host([scale=l]) .icon-container{padding-left:1rem;padding-right:1rem}:host([width=auto]){width:auto}:host([width=half]){width:50%}:host([width=full]){width:100%}.select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-style:solid;border-right-width:0;background-color:var(--calcite-ui-foreground-1);border-color:var(--calcite-ui-border-input);border-radius:0;color:var(--calcite-ui-text-2);cursor:pointer;font-family:inherit;margin:0;width:100%;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-sizing:border-box;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--calcite-select-font-size);padding:var(--calcite-select-spacing)}.select:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.select:hover{background-color:var(--calcite-ui-foreground-2)}.select.calcite--rtl{border-width:1px;border-color:var(--calcite-ui-border-input);padding:var(--calcite-select-spacing-rtl)}select:disabled{border-color:var(--calcite-ui-border-input);--bg-opacity:1}:host([disabled]){pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}.icon-container{-ms-flex-align:center;align-items:center;background-color:transparent;border-width:0;border-right-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-left-width:0;color:var(--calcite-ui-text-2);display:-ms-flexbox;display:flex;pointer-events:none;position:absolute;right:0;top:0;bottom:0}.icon-container.calcite--rtl{border-left-width:1px;border-right-width:0;left:0;right:unset}.select:focus~.icon-container{border-color:transparent}";
|
|
17065
|
+
const calciteSelectCss = "@-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}:host{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;position:relative;width:var(--select-width)}:host([scale=s]){height:1.5rem;--calcite-select-font-size:var(--calcite-font-size--2);--calcite-select-spacing:0 2rem 0 0.5rem;--calcite-select-spacing-rtl:0 0.5rem 0 2rem}:host([scale=s]) .icon-container{padding-left:0.5rem;padding-right:0.5rem}:host([scale=m]){height:2rem;--calcite-select-font-size:var(--calcite-font-size--1);--calcite-select-spacing:0 2.5rem 0 0.75rem;--calcite-select-spacing-rtl:0 0.75rem 0 2.5rem}:host([scale=m]) .icon-container{padding-left:0.75rem;padding-right:0.75rem}:host([scale=l]){height:44px;--calcite-select-font-size:var(--calcite-font-size-0);--calcite-select-spacing:0 3rem 0 1rem;--calcite-select-spacing-rtl:0 1rem 0 3rem}:host([scale=l]) .icon-container{padding-left:1rem;padding-right:1rem}:host([width=auto]){width:auto}:host([width=half]){width:50%}:host([width=full]){width:100%}.select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-style:solid;border-right-width:0;background-color:var(--calcite-ui-foreground-1);border-color:var(--calcite-ui-border-input);border-radius:0;color:var(--calcite-ui-text-2);cursor:pointer;font-family:inherit;margin:0;width:100%;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-sizing:border-box;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--calcite-select-font-size);padding:var(--calcite-select-spacing)}.select:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.select:hover{background-color:var(--calcite-ui-foreground-2)}.select.calcite--rtl{border-width:1px;border-color:var(--calcite-ui-border-input);padding:var(--calcite-select-spacing-rtl)}select:disabled{border-color:var(--calcite-ui-border-input);--bg-opacity:1}:host([disabled]){pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}.icon-container{-ms-flex-align:center;align-items:center;background-color:transparent;border-width:0;border-right-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-left-width:0;color:var(--calcite-ui-text-2);display:-ms-flexbox;display:flex;pointer-events:none;position:absolute;right:0;top:0;bottom:0}.icon-container.calcite--rtl{border-left-width:1px;border-right-width:0;left:0;right:unset}.select:focus~.icon-container{border-color:transparent}::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}";
|
|
16712
17066
|
|
|
16713
17067
|
function isOption(optionOrGroup) {
|
|
16714
17068
|
return optionOrGroup.tagName === "CALCITE-OPTION";
|
|
@@ -16720,7 +17074,7 @@ let CalciteSelect$1 = class extends HTMLElement {
|
|
|
16720
17074
|
constructor() {
|
|
16721
17075
|
super();
|
|
16722
17076
|
this.__registerHost();
|
|
16723
|
-
|
|
17077
|
+
this.__attachShadow();
|
|
16724
17078
|
this.calciteSelectChange = createEvent(this, "calciteSelectChange", 7);
|
|
16725
17079
|
//--------------------------------------------------------------------------
|
|
16726
17080
|
//
|
|
@@ -16731,10 +17085,18 @@ let CalciteSelect$1 = class extends HTMLElement {
|
|
|
16731
17085
|
* When true, it prevents the option from being selected.
|
|
16732
17086
|
*/
|
|
16733
17087
|
this.disabled = false;
|
|
17088
|
+
/**
|
|
17089
|
+
* When true, makes the component required for form-submission.
|
|
17090
|
+
*
|
|
17091
|
+
* @internal
|
|
17092
|
+
*/
|
|
17093
|
+
this.required = false;
|
|
16734
17094
|
/**
|
|
16735
17095
|
* The component scale.
|
|
16736
17096
|
*/
|
|
16737
17097
|
this.scale = "m";
|
|
17098
|
+
/** The value of the selectedOption */
|
|
17099
|
+
this.value = null;
|
|
16738
17100
|
/**
|
|
16739
17101
|
* The component width.
|
|
16740
17102
|
*/
|
|
@@ -16747,7 +17109,7 @@ let CalciteSelect$1 = class extends HTMLElement {
|
|
|
16747
17109
|
requestAnimationFrame(() => this.emitChangeEvent());
|
|
16748
17110
|
};
|
|
16749
17111
|
this.populateInternalSelect = () => {
|
|
16750
|
-
const optionsAndGroups = Array.from(this.el.children);
|
|
17112
|
+
const optionsAndGroups = Array.from(this.el.children).filter((child) => child.tagName === "CALCITE-OPTION" || child.tagName === "CALCITE-OPTION-GROUP");
|
|
16751
17113
|
this.clearInternalSelect();
|
|
16752
17114
|
optionsAndGroups.forEach((optionOrGroup) => { var _a; return (_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.append(this.toNativeElement(optionOrGroup)); });
|
|
16753
17115
|
};
|
|
@@ -16761,6 +17123,13 @@ let CalciteSelect$1 = class extends HTMLElement {
|
|
|
16761
17123
|
this.calciteSelectChange.emit();
|
|
16762
17124
|
};
|
|
16763
17125
|
}
|
|
17126
|
+
valueHandler(value) {
|
|
17127
|
+
const items = this.el.querySelectorAll("calcite-option");
|
|
17128
|
+
items.forEach((item) => (item.selected = item.value === value));
|
|
17129
|
+
}
|
|
17130
|
+
selectedOptionHandler(selectedOption) {
|
|
17131
|
+
this.value = selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value;
|
|
17132
|
+
}
|
|
16764
17133
|
//--------------------------------------------------------------------------
|
|
16765
17134
|
//
|
|
16766
17135
|
// Lifecycle
|
|
@@ -16774,11 +17143,17 @@ let CalciteSelect$1 = class extends HTMLElement {
|
|
|
16774
17143
|
childList: true
|
|
16775
17144
|
});
|
|
16776
17145
|
connectLabel(this);
|
|
17146
|
+
connectForm(this);
|
|
16777
17147
|
}
|
|
16778
17148
|
disconnectedCallback() {
|
|
16779
17149
|
var _a;
|
|
16780
17150
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
16781
17151
|
disconnectLabel(this);
|
|
17152
|
+
disconnectForm(this);
|
|
17153
|
+
}
|
|
17154
|
+
componentDidLoad() {
|
|
17155
|
+
var _a, _b;
|
|
17156
|
+
afterConnectDefaultValueSet(this, (_b = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "");
|
|
16782
17157
|
}
|
|
16783
17158
|
//--------------------------------------------------------------------------
|
|
16784
17159
|
//
|
|
@@ -16879,9 +17254,13 @@ let CalciteSelect$1 = class extends HTMLElement {
|
|
|
16879
17254
|
}
|
|
16880
17255
|
render() {
|
|
16881
17256
|
const dir = getElementDir(this.el);
|
|
16882
|
-
return (h(Fragment, null, h("select", { "aria-label": this.label, class: { [CSS$b.select]: true, [CSS_UTILITY.rtl]: dir === "rtl" }, disabled: this.disabled, onChange: this.handleInternalSelectChange, ref: this.storeSelectRef }, h("slot", null)), this.renderChevron(dir)));
|
|
17257
|
+
return (h(Fragment, null, h("select", { "aria-label": this.label, class: { [CSS$b.select]: true, [CSS_UTILITY.rtl]: dir === "rtl" }, disabled: this.disabled, onChange: this.handleInternalSelectChange, ref: this.storeSelectRef }, h("slot", null)), this.renderChevron(dir), h(HiddenFormInputSlot, { component: this })));
|
|
16883
17258
|
}
|
|
16884
17259
|
get el() { return this; }
|
|
17260
|
+
static get watchers() { return {
|
|
17261
|
+
"value": ["valueHandler"],
|
|
17262
|
+
"selectedOption": ["selectedOptionHandler"]
|
|
17263
|
+
}; }
|
|
16885
17264
|
static get style() { return calciteSelectCss; }
|
|
16886
17265
|
};
|
|
16887
17266
|
|
|
@@ -16900,13 +17279,13 @@ const SLOTS$7 = {
|
|
|
16900
17279
|
footer: "footer"
|
|
16901
17280
|
};
|
|
16902
17281
|
|
|
16903
|
-
const calciteShellCss = "@-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}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{width:100%;height:100%;position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;top:0;right:0;bottom:0;left:0;--calcite-shell-tip-spacing:26vw}.main{height:100%;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;position:relative
|
|
17282
|
+
const calciteShellCss = "@-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}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{width:100%;height:100%;position:absolute;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;top:0;right:0;bottom:0;left:0;--calcite-shell-tip-spacing:26vw}.main{height:100%;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;position:relative;-ms-flex-pack:justify;justify-content:space-between;overflow:hidden}.main--reversed{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:100%;overflow:auto;width:100%}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:1 1 auto;flex:1 1 auto;max-height:unset}.content--behind{border-width:0;position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;display:initial}::slotted(calcite-shell-center-row){width:unset}::slotted(.header .heading){font-weight:var(--calcite-font-weight-normal);font-size:var(--calcite-font-size--2);line-height:1.375}::slotted(calcite-shell-panel),::slotted(calcite-shell-center-row){position:relative;z-index:1}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid;border-left-width:0;border-right-width:0}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])){border-left-width:1px;border-right-width:1px;border-color:var(--calcite-ui-border-3)}::slotted(calcite-tip-manager){border-radius:0.25rem;-webkit-box-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);box-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);position:absolute;-webkit-animation:in-up var(--calcite-animation-timing) ease-in-out;animation:in-up var(--calcite-animation-timing) ease-in-out;-webkit-box-sizing:border-box;box-sizing:border-box;bottom:0.5rem;left:var(--calcite-shell-tip-spacing);right:var(--calcite-shell-tip-spacing);z-index:2}";
|
|
16904
17283
|
|
|
16905
17284
|
let CalciteShell$1 = class extends HTMLElement {
|
|
16906
17285
|
constructor() {
|
|
16907
17286
|
super();
|
|
16908
17287
|
this.__registerHost();
|
|
16909
|
-
|
|
17288
|
+
this.__attachShadow();
|
|
16910
17289
|
// --------------------------------------------------------------------------
|
|
16911
17290
|
//
|
|
16912
17291
|
// Properties
|
|
@@ -16973,7 +17352,7 @@ let CalciteShellCenterRow$1 = class extends HTMLElement {
|
|
|
16973
17352
|
constructor() {
|
|
16974
17353
|
super();
|
|
16975
17354
|
this.__registerHost();
|
|
16976
|
-
|
|
17355
|
+
this.__attachShadow();
|
|
16977
17356
|
// --------------------------------------------------------------------------
|
|
16978
17357
|
//
|
|
16979
17358
|
// Properties
|
|
@@ -17014,6 +17393,7 @@ let CalciteShellCenterRow$1 = class extends HTMLElement {
|
|
|
17014
17393
|
};
|
|
17015
17394
|
|
|
17016
17395
|
const CSS$8 = {
|
|
17396
|
+
container: "container",
|
|
17017
17397
|
content: "content",
|
|
17018
17398
|
contentHeader: "content__header",
|
|
17019
17399
|
contentBody: "content__body",
|
|
@@ -17024,13 +17404,13 @@ const SLOTS$5 = {
|
|
|
17024
17404
|
header: "header"
|
|
17025
17405
|
};
|
|
17026
17406
|
|
|
17027
|
-
const calciteShellPanelCss = "@-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}:
|
|
17407
|
+
const calciteShellPanelCss = "@-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:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex:0 1 auto;flex:0 1 auto;--calcite-shell-panel-detached-max-height:unset}.container{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}.container *{-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(calcite-panel),::slotted(calcite-flow){-ms-flex:1 1 auto;flex:1 1 auto;height:100%;width:100%;max-height:unset;max-width:unset}::slotted(.calcite-match-height){display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.content{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;padding:0;pointer-events:auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:var(--calcite-shell-panel-width);max-width:var(--calcite-shell-panel-max-width);min-width:var(--calcite-shell-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out;transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out}.content__header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}.content__body{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host([width-scale=s]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height:40vh}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height:60vh}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height:80vh}.content--detached{border-radius:0.25rem;-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);height:auto;overflow:hidden;margin-top:0.5rem;margin-bottom:auto;margin-left:0.5rem;margin-right:0.5rem;max-height:var(--calcite-shell-panel-detached-max-height)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-height:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel){border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){-webkit-border-start:none;border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){-webkit-border-end:none;border-inline-end:none}";
|
|
17028
17408
|
|
|
17029
17409
|
let CalciteShellPanel$1 = class extends HTMLElement {
|
|
17030
17410
|
constructor() {
|
|
17031
17411
|
super();
|
|
17032
17412
|
this.__registerHost();
|
|
17033
|
-
|
|
17413
|
+
this.__attachShadow();
|
|
17034
17414
|
this.calciteShellPanelToggle = createEvent(this, "calciteShellPanelToggle", 7);
|
|
17035
17415
|
// --------------------------------------------------------------------------
|
|
17036
17416
|
//
|
|
@@ -17075,7 +17455,7 @@ let CalciteShellPanel$1 = class extends HTMLElement {
|
|
|
17075
17455
|
if (position === "end") {
|
|
17076
17456
|
mainNodes.reverse();
|
|
17077
17457
|
}
|
|
17078
|
-
return h(
|
|
17458
|
+
return h("div", { class: { [CSS$8.container]: true } }, mainNodes);
|
|
17079
17459
|
}
|
|
17080
17460
|
get el() { return this; }
|
|
17081
17461
|
static get watchers() { return {
|
|
@@ -17084,13 +17464,13 @@ let CalciteShellPanel$1 = class extends HTMLElement {
|
|
|
17084
17464
|
static get style() { return calciteShellPanelCss; }
|
|
17085
17465
|
};
|
|
17086
17466
|
|
|
17087
|
-
const calciteSliderCss = "@charset \"UTF-8\";@-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}.container{display:block;position:relative;padding:7px 0;margin:7px 0.5rem}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}:host([disabled]) .graph .graph-path--highlight{fill:var(--calcite-ui-text-3)}:host([label-handles]) .container,:host([precise]:not([precise=false])) .container{margin-top:21px}:host([label-ticks]),:host([precise]:not([precise=false])) .container--range{margin-bottom:21px}:host([precise]:not([precise=false])[label-handles]) .container{margin-top:35px}:host([precise]:not([precise=false])[label-handles]) .container--range{margin-bottom:35px}.thumb{position:absolute;border-style:none;background-color:transparent;cursor:pointer;outline:2px solid transparent;outline-offset:2px;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;font-family:inherit;z-index:2;-webkit-transform:translate(7px, -8px);transform:translate(7px, -8px)}.thumb .handle__label{font-size:0.75rem;line-height:1.5;font-weight:500;line-height:1;color:var(--calcite-ui-text-2);margin-bottom:5px}.thumb .handle__label.static,.thumb .handle__label.transformed{opacity:0;position:absolute;top:0;bottom:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle{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;height:14px;width:14px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:100%;background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border 0.25s ease, background-color 0.25s ease, -webkit-box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, -webkit-box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, -webkit-box-shadow 0.25s ease}.thumb .handle-extension{width:2px;height:7px;background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px;outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb--minValue{-webkit-transform:translate(-7px, -8px);transform:translate(-7px, -8px)}:host([label-handles]) .thumb{-webkit-transform:translate(50%, -25px);transform:translate(50%, -25px)}:host([label-handles]) .thumb--minValue{-webkit-transform:translate(-50%, -25px);transform:translate(-50%, -25px)}:host([has-histogram][label-handles]) .thumb{-webkit-transform:translate(50%, -8px);transform:translate(50%, -8px)}:host([has-histogram][label-handles]) .thumb .handle__label{margin-bottom:unset;margin-top:5px}:host([has-histogram][label-handles]) .thumb--minValue{-webkit-transform:translate(-50%, -8px);transform:translate(-50%, -8px)}:host([precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -21px);transform:translate(7px, -21px)}:host([precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-7px, -2px);transform:translate(-7px, -2px)}:host([precise]:not([precise=false])) .thumb--minValue .handle__label{margin-bottom:unset;margin-top:5px}:host([has-histogram][precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -2px);transform:translate(7px, -2px)}:host([has-histogram][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([ticks][precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -20px);transform:translate(7px, -20px)}:host([ticks][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-7px, -3px);transform:translate(-7px, -3px)}:host([has-histogram][ticks][precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -3px);transform:translate(7px, -3px)}:host([has-histogram][ticks][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}:host([label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -38px);transform:translate(50%, -38px)}:host([label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([has-histogram][label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -2px);transform:translate(50%, -2px)}:host([has-histogram][label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([ticks][label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -37px);transform:translate(50%, -37px)}:host([ticks][label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}:host([has-histogram][ticks][label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -3px);transform:translate(50%, -3px)}:host([has-histogram][ticks][label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}.thumb:focus,.thumb--active{z-index:3}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{height:2px;border-radius:0;z-index:1;background-color:var(--calcite-ui-border-2);-webkit-transition:all 250ms ease-in;transition:all 250ms ease-in;position:relative}.track__range{position:absolute;top:0;height:2px;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{content:\"\";position:absolute;top:-5px;width:100%;height:14px}.tick{position:absolute;top:-2px;width:2px;height:4px;left:var(--calcite-ui-border-1-offset);margin-left:-2px;border:1px solid var(--calcite-ui-foreground-1);background-color:var(--calcite-ui-border-1)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{position:absolute;font-size:0.75rem;line-height:1.5;font-weight:500;color:var(--calcite-ui-text-2);width:4em;margin:14px -2em;text-align:center;display:block;pointer-events:none}.tick__label--min{left:0;margin:14px -3px;text-align:left;-webkit-transition:opacity 150ms;transition:opacity 150ms}.tick__label--max{left:unset;right:0;margin:14px -3px;text-align:right;-webkit-transition:opacity 50ms;transition:opacity 50ms}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max{margin:6px -3px;font-weight:300;color:var(--calcite-ui-text-3)}:host([has-histogram][precise]:not([precise=false])) .tick__label--min,:host([has-histogram][precise]:not([precise=false])) .tick__label--max{margin:6px -3px;font-weight:300;color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3)}:host([mirrored]:not([has-histogram])) .tick__label--min{right:0;left:unset;text-align:right}:host([mirrored]:not([has-histogram])) .tick__label--max{right:unset;left:0;text-align:left}";
|
|
17467
|
+
const calciteSliderCss = "@charset \"UTF-8\";@-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}.container{display:block;position:relative;padding:7px 0;margin:7px 0.5rem}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}:host([disabled]) .graph .graph-path--highlight{fill:var(--calcite-ui-text-3)}:host([label-handles]) .container,:host([precise]:not([precise=false])) .container{margin-top:21px}:host([label-ticks]),:host([precise]:not([precise=false])) .container--range{margin-bottom:21px}:host([precise]:not([precise=false])[label-handles]) .container{margin-top:35px}:host([precise]:not([precise=false])[label-handles]) .container--range{margin-bottom:35px}.thumb{position:absolute;border-style:none;background-color:transparent;cursor:pointer;outline:2px solid transparent;outline-offset:2px;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;font-family:inherit;z-index:2;-webkit-transform:translate(7px, -8px);transform:translate(7px, -8px)}.thumb .handle__label{font-size:var(--calcite-font-size--2);font-weight:500;line-height:1;color:var(--calcite-ui-text-2);margin-bottom:5px}.thumb .handle__label.static,.thumb .handle__label.transformed{opacity:0;position:absolute;top:0;bottom:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle{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;height:14px;width:14px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:100%;background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border 0.25s ease, background-color 0.25s ease, -webkit-box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, -webkit-box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, -webkit-box-shadow 0.25s ease}.thumb .handle-extension{width:2px;height:7px;background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px;outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb--minValue{-webkit-transform:translate(-7px, -8px);transform:translate(-7px, -8px)}:host([label-handles]) .thumb{-webkit-transform:translate(50%, -25px);transform:translate(50%, -25px)}:host([label-handles]) .thumb--minValue{-webkit-transform:translate(-50%, -25px);transform:translate(-50%, -25px)}:host([has-histogram][label-handles]) .thumb{-webkit-transform:translate(50%, -8px);transform:translate(50%, -8px)}:host([has-histogram][label-handles]) .thumb .handle__label{margin-bottom:unset;margin-top:5px}:host([has-histogram][label-handles]) .thumb--minValue{-webkit-transform:translate(-50%, -8px);transform:translate(-50%, -8px)}:host([precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -21px);transform:translate(7px, -21px)}:host([precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-7px, -2px);transform:translate(-7px, -2px)}:host([precise]:not([precise=false])) .thumb--minValue .handle__label{margin-bottom:unset;margin-top:5px}:host([has-histogram][precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -2px);transform:translate(7px, -2px)}:host([has-histogram][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([ticks][precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -20px);transform:translate(7px, -20px)}:host([ticks][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-7px, -3px);transform:translate(-7px, -3px)}:host([has-histogram][ticks][precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -3px);transform:translate(7px, -3px)}:host([has-histogram][ticks][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}:host([label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -38px);transform:translate(50%, -38px)}:host([label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([has-histogram][label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -2px);transform:translate(50%, -2px)}:host([has-histogram][label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([ticks][label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -37px);transform:translate(50%, -37px)}:host([ticks][label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}:host([has-histogram][ticks][label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -3px);transform:translate(50%, -3px)}:host([has-histogram][ticks][label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}.thumb:focus,.thumb--active{z-index:3}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{height:2px;border-radius:0;z-index:1;background-color:var(--calcite-ui-border-2);-webkit-transition:all 250ms ease-in;transition:all 250ms ease-in;position:relative}.track__range{position:absolute;top:0;height:2px;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{content:\"\";position:absolute;top:-5px;width:100%;height:14px}.tick{position:absolute;top:-2px;width:2px;height:4px;left:var(--calcite-ui-border-1-offset);margin-left:-2px;border:1px solid var(--calcite-ui-foreground-1);background-color:var(--calcite-ui-border-1)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{position:absolute;font-size:var(--calcite-font-size--2);font-weight:500;color:var(--calcite-ui-text-2);width:4em;margin:14px -2em;text-align:center;display:block;pointer-events:none}.tick__label--min{left:0;margin:14px -3px;text-align:left;-webkit-transition:opacity 150ms;transition:opacity 150ms}.tick__label--max{left:unset;right:0;margin:14px -3px;text-align:right;-webkit-transition:opacity 50ms;transition:opacity 50ms}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max{margin:6px -3px;font-weight:300;color:var(--calcite-ui-text-3)}:host([has-histogram][precise]:not([precise=false])) .tick__label--min,:host([has-histogram][precise]:not([precise=false])) .tick__label--max{margin:6px -3px;font-weight:300;color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3)}:host([mirrored]:not([has-histogram])) .tick__label--min{right:0;left:unset;text-align:right}:host([mirrored]:not([has-histogram])) .tick__label--max{right:unset;left:0;text-align:left}::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}";
|
|
17088
17468
|
|
|
17089
17469
|
let CalciteSlider$1 = class extends HTMLElement {
|
|
17090
17470
|
constructor() {
|
|
17091
17471
|
super();
|
|
17092
17472
|
this.__registerHost();
|
|
17093
|
-
|
|
17473
|
+
this.__attachShadow();
|
|
17094
17474
|
this.calciteSliderInput = createEvent(this, "calciteSliderInput", 7);
|
|
17095
17475
|
this.calciteSliderChange = createEvent(this, "calciteSliderChange", 7);
|
|
17096
17476
|
this.calciteSliderUpdate = createEvent(this, "calciteSliderUpdate", 7);
|
|
@@ -17119,6 +17499,10 @@ let CalciteSlider$1 = class extends HTMLElement {
|
|
|
17119
17499
|
this.mirrored = false;
|
|
17120
17500
|
/** Use finer point for handles */
|
|
17121
17501
|
this.precise = false;
|
|
17502
|
+
/**
|
|
17503
|
+
* When true, makes the component required for form-submission.
|
|
17504
|
+
*/
|
|
17505
|
+
this.required = false;
|
|
17122
17506
|
/** When true, enables snap selection along the step interval */
|
|
17123
17507
|
this.snap = false;
|
|
17124
17508
|
/** Interval to move on up/down keys */
|
|
@@ -17191,14 +17575,17 @@ let CalciteSlider$1 = class extends HTMLElement {
|
|
|
17191
17575
|
//--------------------------------------------------------------------------
|
|
17192
17576
|
connectedCallback() {
|
|
17193
17577
|
connectLabel(this);
|
|
17578
|
+
connectForm(this);
|
|
17194
17579
|
}
|
|
17195
17580
|
disconnectedCallback() {
|
|
17196
17581
|
disconnectLabel(this);
|
|
17582
|
+
disconnectForm(this);
|
|
17197
17583
|
}
|
|
17198
17584
|
componentWillLoad() {
|
|
17199
17585
|
this.isRange = !!(this.maxValue || this.maxValue === 0);
|
|
17200
17586
|
this.tickValues = this.generateTickValues();
|
|
17201
17587
|
this.value = this.clamp(this.value);
|
|
17588
|
+
afterConnectDefaultValueSet(this, this.value);
|
|
17202
17589
|
if (this.snap) {
|
|
17203
17590
|
this.value = this.getClosestStep(this.value);
|
|
17204
17591
|
}
|
|
@@ -17320,10 +17707,10 @@ let CalciteSlider$1 = class extends HTMLElement {
|
|
|
17320
17707
|
!this.precise &&
|
|
17321
17708
|
this.labelHandles &&
|
|
17322
17709
|
this.isRange &&
|
|
17323
|
-
minHistogramLabeledHandle, !this.precise && !this.labelHandles && handle, !this.hasHistogram && !this.precise && this.labelHandles && labeledHandle, !this.hasHistogram && this.precise && !this.labelHandles && preciseHandle, this.hasHistogram && this.precise && !this.labelHandles && histogramPreciseHandle, !this.hasHistogram && this.precise && this.labelHandles && labeledPreciseHandle, this.hasHistogram && !this.precise && this.labelHandles && histogramLabeledHandle, this.hasHistogram && this.precise && this.labelHandles && histogramLabeledPreciseHandle)));
|
|
17710
|
+
minHistogramLabeledHandle, !this.precise && !this.labelHandles && handle, !this.hasHistogram && !this.precise && this.labelHandles && labeledHandle, !this.hasHistogram && this.precise && !this.labelHandles && preciseHandle, this.hasHistogram && this.precise && !this.labelHandles && histogramPreciseHandle, !this.hasHistogram && this.precise && this.labelHandles && labeledPreciseHandle, this.hasHistogram && !this.precise && this.labelHandles && histogramLabeledHandle, this.hasHistogram && this.precise && this.labelHandles && histogramLabeledPreciseHandle, h(HiddenFormInputSlot, { component: this }))));
|
|
17324
17711
|
}
|
|
17325
17712
|
renderGraph() {
|
|
17326
|
-
return this.histogram ? (h("div", { class: "graph" }, h("calcite-graph", { colorStops: this.histogramStops, data: this.histogram, "data-style": "slider-histogram", height: 48, highlightMax: this.isRange ? this.maxValue : this.value, highlightMin: this.isRange ? this.minValue : this.min, width: 300 }))) : null;
|
|
17713
|
+
return this.histogram ? (h("div", { class: "graph" }, h("calcite-graph", { colorStops: this.histogramStops, data: this.histogram, "data-style": "slider-histogram", height: 48, highlightMax: this.isRange ? this.maxValue : this.value, highlightMin: this.isRange ? this.minValue : this.min, max: this.max, min: this.min, width: 300 }))) : null;
|
|
17327
17714
|
}
|
|
17328
17715
|
renderTickLabel(tick) {
|
|
17329
17716
|
const isMinTickLabel = tick === this.min;
|
|
@@ -20796,7 +21183,7 @@ let CalciteSortableList$1 = class extends HTMLElement {
|
|
|
20796
21183
|
constructor() {
|
|
20797
21184
|
super();
|
|
20798
21185
|
this.__registerHost();
|
|
20799
|
-
|
|
21186
|
+
this.__attachShadow();
|
|
20800
21187
|
this.calciteListOrderChange = createEvent(this, "calciteListOrderChange", 7);
|
|
20801
21188
|
/**
|
|
20802
21189
|
* The selector for the handle elements.
|
|
@@ -20956,7 +21343,7 @@ let CalciteSplitButton$1 = class extends HTMLElement {
|
|
|
20956
21343
|
constructor() {
|
|
20957
21344
|
super();
|
|
20958
21345
|
this.__registerHost();
|
|
20959
|
-
|
|
21346
|
+
this.__attachShadow();
|
|
20960
21347
|
this.calciteSplitButtonPrimaryClick = createEvent(this, "calciteSplitButtonPrimaryClick", 7);
|
|
20961
21348
|
this.calciteSplitButtonSecondaryClick = createEvent(this, "calciteSplitButtonSecondaryClick", 7);
|
|
20962
21349
|
/** specify the appearance style of the button, defaults to solid. */
|
|
@@ -21012,7 +21399,7 @@ let CalciteStepper$1 = class extends HTMLElement {
|
|
|
21012
21399
|
constructor() {
|
|
21013
21400
|
super();
|
|
21014
21401
|
this.__registerHost();
|
|
21015
|
-
|
|
21402
|
+
this.__attachShadow();
|
|
21016
21403
|
this.calciteStepperItemChange = createEvent(this, "calciteStepperItemChange", 7);
|
|
21017
21404
|
//--------------------------------------------------------------------------
|
|
21018
21405
|
//
|
|
@@ -21225,7 +21612,7 @@ let CalciteStepperItem$1 = class extends HTMLElement {
|
|
|
21225
21612
|
constructor() {
|
|
21226
21613
|
super();
|
|
21227
21614
|
this.__registerHost();
|
|
21228
|
-
|
|
21615
|
+
this.__attachShadow();
|
|
21229
21616
|
this.calciteStepperItemKeyEvent = createEvent(this, "calciteStepperItemKeyEvent", 7);
|
|
21230
21617
|
this.calciteStepperItemSelect = createEvent(this, "calciteStepperItemSelect", 7);
|
|
21231
21618
|
this.calciteStepperItemRegister = createEvent(this, "calciteStepperItemRegister", 7);
|
|
@@ -21367,13 +21754,13 @@ let CalciteStepperItem$1 = class extends HTMLElement {
|
|
|
21367
21754
|
static get style() { return calciteStepperItemCss; }
|
|
21368
21755
|
};
|
|
21369
21756
|
|
|
21370
|
-
const calciteSwitchCss = "@-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([scale=s]) .container{height:0.75rem}:host([scale=s]) .track{width:1.5rem;height:0.75rem}:host([scale=s]) .handle{width:0.5rem;height:0.5rem}:host([scale=m]) .container{height:1rem}:host([scale=m]) .track{width:2rem;height:1rem}:host([scale=m]) .handle{width:0.75rem;height:0.75rem}:host([scale=l]) .container{height:1.5rem}:host([scale=l]) .track{width:3rem;height:1.5rem}:host([scale=l]) .handle{width:1.25rem;height:1.25rem}:host{display:inline-block;position:relative;width:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none;cursor:default}:host{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:auto}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.track{position:relative;display:inline-block;vertical-align:top;background-color:var(--calcite-ui-foreground-2);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:9999px}.handle{position:absolute;display:block;right:auto;background-color:var(--calcite-ui-foreground-1);border-width:2px;border-style:solid;border-color:var(--calcite-ui-border-input);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:9999px;pointer-events:none;top:-1px;left:-1px}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([checked]) .track{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand-hover)}:host([checked]) .handle{left:auto;border-color:var(--calcite-ui-brand);right:-1px}:host([checked]:hover) .track{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand-hover)}:host([checked]:hover) .handle{border-color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}.calcite--rtl .handle{left:auto;right:-1px}:host([checked]) .calcite--rtl .handle{right:auto;left:-1px}:host([checked]:active) .calcite--rtl .handle{right:auto;left:-1px}:host([checked]:focus) .calcite--rtl .handle{right:auto;left:-1px}";
|
|
21757
|
+
const calciteSwitchCss = "@-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([scale=s]) .container{height:0.75rem}:host([scale=s]) .track{width:1.5rem;height:0.75rem}:host([scale=s]) .handle{width:0.5rem;height:0.5rem}:host([scale=m]) .container{height:1rem}:host([scale=m]) .track{width:2rem;height:1rem}:host([scale=m]) .handle{width:0.75rem;height:0.75rem}:host([scale=l]) .container{height:1.5rem}:host([scale=l]) .track{width:3rem;height:1.5rem}:host([scale=l]) .handle{width:1.25rem;height:1.25rem}:host{display:inline-block;position:relative;width:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none;cursor:default}:host{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:auto}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.track{position:relative;display:inline-block;vertical-align:top;background-color:var(--calcite-ui-foreground-2);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:9999px}.handle{position:absolute;display:block;right:auto;background-color:var(--calcite-ui-foreground-1);border-width:2px;border-style:solid;border-color:var(--calcite-ui-border-input);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:9999px;pointer-events:none;top:-1px;left:-1px}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([checked]) .track{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand-hover)}:host([checked]) .handle{left:auto;border-color:var(--calcite-ui-brand);right:-1px}:host([checked]:hover) .track{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand-hover)}:host([checked]:hover) .handle{border-color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}.calcite--rtl .handle{left:auto;right:-1px}:host([checked]) .calcite--rtl .handle{right:auto;left:-1px}:host([checked]:active) .calcite--rtl .handle{right:auto;left:-1px}:host([checked]:focus) .calcite--rtl .handle{right:auto;left:-1px}::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}";
|
|
21371
21758
|
|
|
21372
21759
|
let CalciteSwitch$1 = class extends HTMLElement {
|
|
21373
21760
|
constructor() {
|
|
21374
21761
|
super();
|
|
21375
21762
|
this.__registerHost();
|
|
21376
|
-
|
|
21763
|
+
this.__attachShadow();
|
|
21377
21764
|
this.calciteSwitchChange = createEvent(this, "calciteSwitchChange", 7);
|
|
21378
21765
|
//--------------------------------------------------------------------------
|
|
21379
21766
|
//
|
|
@@ -21390,24 +21777,30 @@ let CalciteSwitch$1 = class extends HTMLElement {
|
|
|
21390
21777
|
this.switched = false;
|
|
21391
21778
|
/** True if the switch is initially on */
|
|
21392
21779
|
this.checked = false;
|
|
21393
|
-
|
|
21780
|
+
//--------------------------------------------------------------------------
|
|
21781
|
+
//
|
|
21782
|
+
// Private Methods
|
|
21783
|
+
//
|
|
21784
|
+
//--------------------------------------------------------------------------
|
|
21785
|
+
this.keyDownHandler = (e) => {
|
|
21786
|
+
const key = getKey(e.key);
|
|
21787
|
+
if (!this.disabled && (key === " " || key === "Enter")) {
|
|
21788
|
+
this.toggle();
|
|
21789
|
+
}
|
|
21790
|
+
};
|
|
21394
21791
|
this.clickHandler = () => {
|
|
21395
21792
|
this.toggle();
|
|
21396
21793
|
};
|
|
21794
|
+
this.setSwitchEl = (el) => {
|
|
21795
|
+
this.switchEl = el;
|
|
21796
|
+
};
|
|
21397
21797
|
}
|
|
21398
21798
|
disabledWatcher(newDisabled) {
|
|
21399
|
-
this.inputEl.disabled = newDisabled;
|
|
21400
21799
|
this.tabindex = newDisabled ? -1 : 0;
|
|
21401
21800
|
}
|
|
21402
|
-
nameChanged(newName) {
|
|
21403
|
-
this.inputEl.name = newName;
|
|
21404
|
-
}
|
|
21405
21801
|
switchedWatcher(switched) {
|
|
21406
21802
|
this.checked = switched;
|
|
21407
21803
|
}
|
|
21408
|
-
checkedWatcher(checked) {
|
|
21409
|
-
this.inputEl.checked = checked;
|
|
21410
|
-
}
|
|
21411
21804
|
//--------------------------------------------------------------------------
|
|
21412
21805
|
//
|
|
21413
21806
|
// Public Methods
|
|
@@ -21415,31 +21808,14 @@ let CalciteSwitch$1 = class extends HTMLElement {
|
|
|
21415
21808
|
//--------------------------------------------------------------------------
|
|
21416
21809
|
/** Sets focus on the component. */
|
|
21417
21810
|
async setFocus() {
|
|
21418
|
-
this.
|
|
21811
|
+
focusElement(this.switchEl);
|
|
21419
21812
|
}
|
|
21420
|
-
//--------------------------------------------------------------------------
|
|
21421
|
-
//
|
|
21422
|
-
// Private Methods
|
|
21423
|
-
//
|
|
21424
|
-
//--------------------------------------------------------------------------
|
|
21425
21813
|
onLabelClick() {
|
|
21426
21814
|
if (!this.disabled) {
|
|
21427
21815
|
this.toggle();
|
|
21428
21816
|
this.setFocus();
|
|
21429
21817
|
}
|
|
21430
21818
|
}
|
|
21431
|
-
setupInput() {
|
|
21432
|
-
this.checked && this.inputEl.setAttribute("checked", "");
|
|
21433
|
-
this.inputEl.disabled = this.disabled;
|
|
21434
|
-
this.inputEl.id = `${this.guid}-input`;
|
|
21435
|
-
this.inputEl.name = this.name;
|
|
21436
|
-
this.inputEl.style.cssText = hiddenInputStyle;
|
|
21437
|
-
this.inputEl.type = "checkbox";
|
|
21438
|
-
if (this.value) {
|
|
21439
|
-
this.inputEl.value = this.value != null ? this.value.toString() : "";
|
|
21440
|
-
}
|
|
21441
|
-
this.el.appendChild(this.inputEl);
|
|
21442
|
-
}
|
|
21443
21819
|
toggle() {
|
|
21444
21820
|
this.checked = !this.checked;
|
|
21445
21821
|
this.calciteSwitchChange.emit({
|
|
@@ -21450,30 +21826,24 @@ let CalciteSwitch$1 = class extends HTMLElement {
|
|
|
21450
21826
|
}
|
|
21451
21827
|
//--------------------------------------------------------------------------
|
|
21452
21828
|
//
|
|
21453
|
-
// Event Listeners
|
|
21454
|
-
//
|
|
21455
|
-
//--------------------------------------------------------------------------
|
|
21456
|
-
keyDownHandler(e) {
|
|
21457
|
-
const key = getKey(e.key);
|
|
21458
|
-
if (!this.disabled && (key === " " || key === "Enter")) {
|
|
21459
|
-
this.toggle();
|
|
21460
|
-
}
|
|
21461
|
-
}
|
|
21462
|
-
//--------------------------------------------------------------------------
|
|
21463
|
-
//
|
|
21464
21829
|
// Lifecycle
|
|
21465
21830
|
//
|
|
21466
21831
|
//--------------------------------------------------------------------------
|
|
21467
21832
|
connectedCallback() {
|
|
21833
|
+
const initiallyChecked = this.checked || this.switched;
|
|
21834
|
+
if (initiallyChecked) {
|
|
21835
|
+
// if either prop is set, we ensure both are synced initially
|
|
21836
|
+
this.switched = this.checked = initiallyChecked;
|
|
21837
|
+
}
|
|
21468
21838
|
connectLabel(this);
|
|
21839
|
+
connectForm(this);
|
|
21469
21840
|
}
|
|
21470
21841
|
disconnectedCallback() {
|
|
21471
21842
|
disconnectLabel(this);
|
|
21843
|
+
disconnectForm(this);
|
|
21472
21844
|
}
|
|
21473
21845
|
componentWillLoad() {
|
|
21474
|
-
this.guid = this.el.id || `calcite-switch-${guid()}`;
|
|
21475
21846
|
this.tabindex = this.el.getAttribute("tabindex") || this.disabled ? -1 : 0;
|
|
21476
|
-
this.setupInput();
|
|
21477
21847
|
}
|
|
21478
21848
|
// --------------------------------------------------------------------------
|
|
21479
21849
|
//
|
|
@@ -21482,14 +21852,12 @@ let CalciteSwitch$1 = class extends HTMLElement {
|
|
|
21482
21852
|
// --------------------------------------------------------------------------
|
|
21483
21853
|
render() {
|
|
21484
21854
|
const dir = getElementDir(this.el);
|
|
21485
|
-
return (h(Host, { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), onClick: this.clickHandler, role: "switch", tabindex: this.tabindex }, h("div", { class:
|
|
21855
|
+
return (h(Host, { onKeyDown: this.keyDownHandler }, 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 }, h("div", { class: "track" }, h("div", { class: "handle" })), h(HiddenFormInputSlot, { component: this }))));
|
|
21486
21856
|
}
|
|
21487
21857
|
get el() { return this; }
|
|
21488
21858
|
static get watchers() { return {
|
|
21489
21859
|
"disabled": ["disabledWatcher"],
|
|
21490
|
-
"
|
|
21491
|
-
"switched": ["switchedWatcher"],
|
|
21492
|
-
"checked": ["checkedWatcher"]
|
|
21860
|
+
"switched": ["switchedWatcher"]
|
|
21493
21861
|
}; }
|
|
21494
21862
|
static get style() { return calciteSwitchCss; }
|
|
21495
21863
|
};
|
|
@@ -21500,7 +21868,7 @@ let CalciteTab$1 = class extends HTMLElement {
|
|
|
21500
21868
|
constructor() {
|
|
21501
21869
|
super();
|
|
21502
21870
|
this.__registerHost();
|
|
21503
|
-
|
|
21871
|
+
this.__attachShadow();
|
|
21504
21872
|
this.calciteTabRegister = createEvent(this, "calciteTabRegister", 7);
|
|
21505
21873
|
/**
|
|
21506
21874
|
* Show this tab
|
|
@@ -21594,7 +21962,7 @@ let CalciteTabNav$1 = class extends HTMLElement {
|
|
|
21594
21962
|
constructor() {
|
|
21595
21963
|
super();
|
|
21596
21964
|
this.__registerHost();
|
|
21597
|
-
|
|
21965
|
+
this.__attachShadow();
|
|
21598
21966
|
this.calciteTabChange = createEvent(this, "calciteTabChange", 7);
|
|
21599
21967
|
/** @internal Parent tabs component scale value */
|
|
21600
21968
|
this.scale = "m";
|
|
@@ -21772,7 +22140,7 @@ let CalciteTabTitle$1 = class extends HTMLElement {
|
|
|
21772
22140
|
constructor() {
|
|
21773
22141
|
super();
|
|
21774
22142
|
this.__registerHost();
|
|
21775
|
-
|
|
22143
|
+
this.__attachShadow();
|
|
21776
22144
|
this.calciteTabsActivate = createEvent(this, "calciteTabsActivate", 7);
|
|
21777
22145
|
this.calciteTabsFocusNext = createEvent(this, "calciteTabsFocusNext", 7);
|
|
21778
22146
|
this.calciteTabsFocusPrevious = createEvent(this, "calciteTabsFocusPrevious", 7);
|
|
@@ -21961,7 +22329,7 @@ let CalciteTabs$1 = class extends HTMLElement {
|
|
|
21961
22329
|
constructor() {
|
|
21962
22330
|
super();
|
|
21963
22331
|
this.__registerHost();
|
|
21964
|
-
|
|
22332
|
+
this.__attachShadow();
|
|
21965
22333
|
//--------------------------------------------------------------------------
|
|
21966
22334
|
//
|
|
21967
22335
|
// Public Properties
|
|
@@ -22113,13 +22481,13 @@ const SLOTS$3 = {
|
|
|
22113
22481
|
contentEnd: "content-end"
|
|
22114
22482
|
};
|
|
22115
22483
|
|
|
22116
|
-
const calciteTileCss = "@-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{background-color:var(--calcite-ui-foreground-1);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-ui-text-3);display:inline-block;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(:not([embed])){padding:0.75rem;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2)}:host(:not([embed])[href]:hover){cursor:pointer;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-brand)}:host(:not([embed])[href]:active){-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand);box-shadow:0 0 0 3px var(--calcite-ui-brand)}:host([icon][heading]:not([description]):not([embed])){padding:0}:host([icon][heading]:not([description])) .icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host([icon][heading]:not([description])) .large-visual{text-align:center}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}.container{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));grid-gap:0.5rem;gap:0.5rem;pointer-events:none}.content{-ms-flex-pack:center;justify-content:center;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;grid-gap:0.5rem;gap:0.5rem}.content-container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;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;-ms-flex-align:stretch;align-items:stretch;padding:0;color:var(--calcite-ui-text-2)}.content-slot-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--calcite-ui-foreground-1)}.content-slot-container:first-child{padding-right:0.75rem}.content-slot-container:last-child{padding-left:0.75rem}.heading{font-size:var(--calcite-font-size--1);line-height:1.375;color:var(--calcite-ui-text-2);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);font-weight:var(--calcite-font-weight-medium);pointer-events:none}.large-visual{-ms-flex-align:center;align-items:center;min-height:12rem}.large-visual .icon{-ms-flex-item-align:end;align-self:flex-end}.large-visual .content-container{-ms-flex-item-align:center;align-self:center}.description{font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}:host(:hover) .heading,:host([active]) .heading{color:var(--calcite-ui-text-1)}:host(:hover) .description,:host([active]) .description{color:var(--calcite-ui-text-2)}";
|
|
22484
|
+
const calciteTileCss = "@-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{background-color:var(--calcite-ui-foreground-1);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--calcite-ui-text-3);display:inline-block;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(:not([embed])){padding:0.75rem;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2)}:host(:not([embed])[href]:hover){cursor:pointer;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-brand)}:host(:not([embed])[href]:active){-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand);box-shadow:0 0 0 3px var(--calcite-ui-brand)}:host([icon][heading]:not([description]):not([embed])){padding:0}:host([icon][heading]:not([description])) .icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host([icon][heading]:not([description])) .large-visual{text-align:center}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}.container{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));grid-gap:0.5rem;gap:0.5rem;pointer-events:none}.content{-ms-flex-pack:center;justify-content:center;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;grid-gap:0.5rem;gap:0.5rem;width:10%}.content-container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;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;-ms-flex-align:stretch;align-items:stretch;padding:0;color:var(--calcite-ui-text-2);width:100%}.content-slot-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--calcite-ui-foreground-1)}.content-slot-container:first-child{padding-right:0.75rem}.content-slot-container:last-child{padding-left:0.75rem}.heading{font-size:var(--calcite-font-size--1);line-height:1.375;color:var(--calcite-ui-text-2);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);font-weight:var(--calcite-font-weight-medium);pointer-events:none;word-wrap:break-word;overflow-wrap:break-word}.large-visual{-ms-flex-align:center;align-items:center;min-height:12rem}.large-visual .icon{-ms-flex-item-align:end;align-self:flex-end}.large-visual .content-container{-ms-flex-item-align:center;align-self:center}.description{font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}:host(:hover) .heading,:host([active]) .heading{color:var(--calcite-ui-text-1)}:host(:hover) .description,:host([active]) .description{color:var(--calcite-ui-text-2)}";
|
|
22117
22485
|
|
|
22118
22486
|
let CalciteTile$1 = class extends HTMLElement {
|
|
22119
22487
|
constructor() {
|
|
22120
22488
|
super();
|
|
22121
22489
|
this.__registerHost();
|
|
22122
|
-
|
|
22490
|
+
this.__attachShadow();
|
|
22123
22491
|
//--------------------------------------------------------------------------
|
|
22124
22492
|
//
|
|
22125
22493
|
// Properties
|
|
@@ -22170,7 +22538,7 @@ let CalciteTileSelect$1 = class extends HTMLElement {
|
|
|
22170
22538
|
constructor() {
|
|
22171
22539
|
super();
|
|
22172
22540
|
this.__registerHost();
|
|
22173
|
-
|
|
22541
|
+
this.__attachShadow();
|
|
22174
22542
|
this.calciteTileSelectChange = createEvent(this, "calciteTileSelectChange", 7);
|
|
22175
22543
|
//--------------------------------------------------------------------------
|
|
22176
22544
|
//
|
|
@@ -22183,8 +22551,6 @@ let CalciteTileSelect$1 = class extends HTMLElement {
|
|
|
22183
22551
|
this.disabled = false;
|
|
22184
22552
|
/** The hidden state of the tile select. */
|
|
22185
22553
|
this.hidden = false;
|
|
22186
|
-
/** 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. */
|
|
22187
|
-
this.name = "";
|
|
22188
22554
|
/** Display an interactive radio or checkbox. */
|
|
22189
22555
|
this.inputEnabled = false;
|
|
22190
22556
|
/** The side of the tile that the radio or checkbox appears on when inputEnabled is true. */
|
|
@@ -22331,7 +22697,7 @@ let CalciteTileSelectGroup$1 = class extends HTMLElement {
|
|
|
22331
22697
|
constructor() {
|
|
22332
22698
|
super();
|
|
22333
22699
|
this.__registerHost();
|
|
22334
|
-
|
|
22700
|
+
this.__attachShadow();
|
|
22335
22701
|
//--------------------------------------------------------------------------
|
|
22336
22702
|
//
|
|
22337
22703
|
// Properties
|
|
@@ -22389,7 +22755,7 @@ let CalciteTimePicker$1 = class extends HTMLElement {
|
|
|
22389
22755
|
constructor() {
|
|
22390
22756
|
super();
|
|
22391
22757
|
this.__registerHost();
|
|
22392
|
-
|
|
22758
|
+
this.__attachShadow();
|
|
22393
22759
|
this.calciteTimePickerBlur = createEvent(this, "calciteTimePickerBlur", 7);
|
|
22394
22760
|
this.calciteTimePickerChange = createEvent(this, "calciteTimePickerChange", 7);
|
|
22395
22761
|
this.calciteTimePickerFocus = createEvent(this, "calciteTimePickerFocus", 7);
|
|
@@ -23002,7 +23368,7 @@ let CalciteTip$1 = class extends HTMLElement {
|
|
|
23002
23368
|
constructor() {
|
|
23003
23369
|
super();
|
|
23004
23370
|
this.__registerHost();
|
|
23005
|
-
|
|
23371
|
+
this.__attachShadow();
|
|
23006
23372
|
this.calciteTipDismiss = createEvent(this, "calciteTipDismiss", 7);
|
|
23007
23373
|
// --------------------------------------------------------------------------
|
|
23008
23374
|
//
|
|
@@ -23072,7 +23438,7 @@ let CalciteTipGroup$1 = class extends HTMLElement {
|
|
|
23072
23438
|
constructor() {
|
|
23073
23439
|
super();
|
|
23074
23440
|
this.__registerHost();
|
|
23075
|
-
|
|
23441
|
+
this.__attachShadow();
|
|
23076
23442
|
}
|
|
23077
23443
|
render() {
|
|
23078
23444
|
return h("slot", null);
|
|
@@ -23086,7 +23452,7 @@ let CalciteTipManager$1 = class extends HTMLElement {
|
|
|
23086
23452
|
constructor() {
|
|
23087
23453
|
super();
|
|
23088
23454
|
this.__registerHost();
|
|
23089
|
-
|
|
23455
|
+
this.__attachShadow();
|
|
23090
23456
|
this.calciteTipManagerToggle = createEvent(this, "calciteTipManagerToggle", 7);
|
|
23091
23457
|
// --------------------------------------------------------------------------
|
|
23092
23458
|
//
|
|
@@ -23253,7 +23619,7 @@ let CalciteTooltip$1 = class extends HTMLElement {
|
|
|
23253
23619
|
constructor() {
|
|
23254
23620
|
super();
|
|
23255
23621
|
this.__registerHost();
|
|
23256
|
-
|
|
23622
|
+
this.__attachShadow();
|
|
23257
23623
|
/**
|
|
23258
23624
|
* Offset the position of the popover away from the reference element.
|
|
23259
23625
|
* @default 6
|
|
@@ -23359,7 +23725,7 @@ let CalciteTooltip$1 = class extends HTMLElement {
|
|
|
23359
23725
|
const { popper, el, placement } = this;
|
|
23360
23726
|
const modifiers = this.getModifiers();
|
|
23361
23727
|
popper
|
|
23362
|
-
? updatePopper({
|
|
23728
|
+
? await updatePopper({
|
|
23363
23729
|
el,
|
|
23364
23730
|
modifiers,
|
|
23365
23731
|
placement,
|
|
@@ -23441,7 +23807,7 @@ let CalciteTooltipManager$1 = class extends HTMLElement {
|
|
|
23441
23807
|
constructor() {
|
|
23442
23808
|
super();
|
|
23443
23809
|
this.__registerHost();
|
|
23444
|
-
|
|
23810
|
+
this.__attachShadow();
|
|
23445
23811
|
this.hoverTimeouts = new WeakMap();
|
|
23446
23812
|
// --------------------------------------------------------------------------
|
|
23447
23813
|
//
|
|
@@ -23594,7 +23960,7 @@ let CalciteTree$1 = class extends HTMLElement {
|
|
|
23594
23960
|
constructor() {
|
|
23595
23961
|
super();
|
|
23596
23962
|
this.__registerHost();
|
|
23597
|
-
|
|
23963
|
+
this.__attachShadow();
|
|
23598
23964
|
this.calciteTreeSelect = createEvent(this, "calciteTreeSelect", 7);
|
|
23599
23965
|
//--------------------------------------------------------------------------
|
|
23600
23966
|
//
|
|
@@ -23798,7 +24164,7 @@ let CalciteTreeItem$1 = class extends HTMLElement {
|
|
|
23798
24164
|
constructor() {
|
|
23799
24165
|
super();
|
|
23800
24166
|
this.__registerHost();
|
|
23801
|
-
|
|
24167
|
+
this.__attachShadow();
|
|
23802
24168
|
this.calciteTreeItemSelect = createEvent(this, "calciteTreeItemSelect", 7);
|
|
23803
24169
|
//--------------------------------------------------------------------------
|
|
23804
24170
|
//
|
|
@@ -23831,10 +24197,17 @@ let CalciteTreeItem$1 = class extends HTMLElement {
|
|
|
23831
24197
|
// Private Methods
|
|
23832
24198
|
//
|
|
23833
24199
|
//--------------------------------------------------------------------------
|
|
24200
|
+
this.updateParentIsExpanded = (el, expanded) => {
|
|
24201
|
+
const items = getSlotted(el, SLOTS$1.children, {
|
|
24202
|
+
all: true,
|
|
24203
|
+
selector: "calcite-tree-item"
|
|
24204
|
+
});
|
|
24205
|
+
items.forEach((item) => (item.parentExpanded = expanded));
|
|
24206
|
+
};
|
|
23834
24207
|
this.updateAncestorTree = () => {
|
|
23835
24208
|
if (this.selected && this.selectionMode === TreeSelectionMode.Ancestors) {
|
|
23836
24209
|
const ancestors = [];
|
|
23837
|
-
let parent = this.
|
|
24210
|
+
let parent = this.parentTreeItem;
|
|
23838
24211
|
while (parent) {
|
|
23839
24212
|
ancestors.push(parent);
|
|
23840
24213
|
parent = parent.parentElement.closest("calcite-tree-item");
|
|
@@ -23845,11 +24218,7 @@ let CalciteTreeItem$1 = class extends HTMLElement {
|
|
|
23845
24218
|
};
|
|
23846
24219
|
}
|
|
23847
24220
|
expandedHandler(newValue) {
|
|
23848
|
-
|
|
23849
|
-
all: true,
|
|
23850
|
-
selector: "calcite-tree-item"
|
|
23851
|
-
});
|
|
23852
|
-
items.forEach((item) => (item.parentExpanded = newValue));
|
|
24221
|
+
this.updateParentIsExpanded(this.el, newValue);
|
|
23853
24222
|
}
|
|
23854
24223
|
//--------------------------------------------------------------------------
|
|
23855
24224
|
//
|
|
@@ -23857,7 +24226,11 @@ let CalciteTreeItem$1 = class extends HTMLElement {
|
|
|
23857
24226
|
//
|
|
23858
24227
|
//--------------------------------------------------------------------------
|
|
23859
24228
|
connectedCallback() {
|
|
23860
|
-
this.
|
|
24229
|
+
this.parentTreeItem = this.el.parentElement.closest("calcite-tree-item");
|
|
24230
|
+
if (this.parentTreeItem) {
|
|
24231
|
+
const { expanded } = this.parentTreeItem;
|
|
24232
|
+
this.updateParentIsExpanded(this.parentTreeItem, expanded);
|
|
24233
|
+
}
|
|
23861
24234
|
}
|
|
23862
24235
|
componentWillRender() {
|
|
23863
24236
|
this.hasChildren = !!this.el.querySelector("calcite-tree");
|
|
@@ -23969,7 +24342,7 @@ let CalciteTreeItem$1 = class extends HTMLElement {
|
|
|
23969
24342
|
break;
|
|
23970
24343
|
}
|
|
23971
24344
|
// When focus is on a child node that is also either an end node or a closed node, moves focus to its parent node.
|
|
23972
|
-
const parentItem = this.
|
|
24345
|
+
const parentItem = this.parentTreeItem;
|
|
23973
24346
|
if (parentItem && (!this.hasChildren || this.expanded === false)) {
|
|
23974
24347
|
parentItem.focus();
|
|
23975
24348
|
e.preventDefault();
|
|
@@ -24044,7 +24417,7 @@ let CalciteValueList$1 = class extends HTMLElement {
|
|
|
24044
24417
|
constructor() {
|
|
24045
24418
|
super();
|
|
24046
24419
|
this.__registerHost();
|
|
24047
|
-
|
|
24420
|
+
this.__attachShadow();
|
|
24048
24421
|
this.calciteListChange = createEvent(this, "calciteListChange", 7);
|
|
24049
24422
|
this.calciteListOrderChange = createEvent(this, "calciteListOrderChange", 7);
|
|
24050
24423
|
// --------------------------------------------------------------------------
|
|
@@ -24239,7 +24612,7 @@ let CalciteValueListItem$1 = class extends HTMLElement {
|
|
|
24239
24612
|
constructor() {
|
|
24240
24613
|
super();
|
|
24241
24614
|
this.__registerHost();
|
|
24242
|
-
|
|
24615
|
+
this.__attachShadow();
|
|
24243
24616
|
this.calciteListItemRemove = createEvent(this, "calciteListItemRemove", 7);
|
|
24244
24617
|
/**
|
|
24245
24618
|
* When true, the item cannot be clicked and is visually muted
|
|
@@ -24355,12 +24728,12 @@ const CalciteBlock = /*@__PURE__*/proxyCustomElement(CalciteBlock$1, [1,"calcite
|
|
|
24355
24728
|
const CalciteBlockSection = /*@__PURE__*/proxyCustomElement(CalciteBlockSection$1, [1,"calcite-block-section",{"intlCollapse":[1,"intl-collapse"],"intlExpand":[1,"intl-expand"],"open":[1540],"status":[513],"text":[1],"toggleDisplay":[513,"toggle-display"]}]);
|
|
24356
24729
|
const CalciteButton = /*@__PURE__*/proxyCustomElement(CalciteButton$1, [1,"calcite-button",{"alignment":[513],"appearance":[513],"label":[1],"color":[513],"disabled":[516],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"intlLoading":[1,"intl-loading"],"loading":[516],"name":[1],"rel":[1],"form":[1],"round":[516],"scale":[513],"splitChild":[520,"split-child"],"target":[1],"type":[1025],"width":[513],"childElType":[32],"hasContent":[32],"hasLoader":[32]}]);
|
|
24357
24730
|
const CalciteCard = /*@__PURE__*/proxyCustomElement(CalciteCard$1, [1,"calcite-card",{"loading":[516],"selected":[1540],"selectable":[516],"intlLoading":[1,"intl-loading"],"intlSelect":[1,"intl-select"],"intlDeselect":[1,"intl-deselect"]}]);
|
|
24358
|
-
const CalciteCheckbox = /*@__PURE__*/proxyCustomElement(CalciteCheckbox$1, [1,"calcite-checkbox",{"checked":[1540],"disabled":[516],"guid":[1537],"hovered":[1540],"indeterminate":[1540],"label":[1],"name":[
|
|
24731
|
+
const CalciteCheckbox = /*@__PURE__*/proxyCustomElement(CalciteCheckbox$1, [1,"calcite-checkbox",{"checked":[1540],"disabled":[516],"guid":[1537],"hovered":[1540],"indeterminate":[1540],"label":[1],"name":[520],"required":[516],"scale":[513],"value":[8]}]);
|
|
24359
24732
|
const CalciteChip = /*@__PURE__*/proxyCustomElement(CalciteChip$1, [1,"calcite-chip",{"appearance":[513],"color":[513],"dismissible":[516],"dismissLabel":[1,"dismiss-label"],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"scale":[513],"value":[8]}]);
|
|
24360
24733
|
const CalciteColorPicker = /*@__PURE__*/proxyCustomElement(CalciteColorPicker$1, [1,"calcite-color-picker",{"allowEmpty":[4,"allow-empty"],"appearance":[513],"color":[1040],"format":[1],"hideHex":[4,"hide-hex"],"hideChannels":[4,"hide-channels"],"hideSaved":[4,"hide-saved"],"intlB":[1,"intl-b"],"intlBlue":[1,"intl-blue"],"intlDeleteColor":[1,"intl-delete-color"],"intlG":[1,"intl-g"],"intlGreen":[1,"intl-green"],"intlH":[1,"intl-h"],"intlHsv":[1,"intl-hsv"],"intlHex":[1,"intl-hex"],"intlHue":[1,"intl-hue"],"intlNoColor":[1,"intl-no-color"],"intlR":[1,"intl-r"],"intlRed":[1,"intl-red"],"intlRgb":[1,"intl-rgb"],"intlS":[1,"intl-s"],"intlSaturation":[1,"intl-saturation"],"intlSaveColor":[1,"intl-save-color"],"intlSaved":[1,"intl-saved"],"intlV":[1,"intl-v"],"intlValue":[1,"intl-value"],"scale":[513],"storageId":[1,"storage-id"],"value":[1025],"colorFieldAndSliderInteractive":[32],"channelMode":[32],"channels":[32],"dimensions":[32],"savedColors":[32],"colorFieldScopeTop":[32],"colorFieldScopeLeft":[32],"scopeOrientation":[32],"hueScopeLeft":[32],"hueScopeTop":[32]},[[2,"keydown","handleChannelKeyUpOrDown"],[2,"keyup","handleChannelKeyUpOrDown"]]]);
|
|
24361
24734
|
const CalciteColorPickerHexInput = /*@__PURE__*/proxyCustomElement(CalciteColorPickerHexInput$1, [1,"calcite-color-picker-hex-input",{"allowEmpty":[4,"allow-empty"],"intlHex":[1,"intl-hex"],"intlNoColor":[1,"intl-no-color"],"scale":[513],"value":[1537],"internalColor":[32]},[[2,"keydown","onInputKeyDown"]]]);
|
|
24362
24735
|
const CalciteColorPickerSwatch = /*@__PURE__*/proxyCustomElement(CalciteColorPickerSwatch$1, [1,"calcite-color-picker-swatch",{"active":[516],"color":[1],"scale":[513]}]);
|
|
24363
|
-
const CalciteCombobox = /*@__PURE__*/proxyCustomElement(CalciteCombobox$1, [1,"calcite-combobox",{"active":[1540],"disabled":[516],"label":[1],"placeholder":[1],"maxItems":[2,"max-items"],"allowCustomValues":[4,"allow-custom-values"],"overlayPositioning":[1,"overlay-positioning"],"selectionMode":[513,"selection-mode"],"scale":[513],"items":[32],"groupItems":[32],"selectedItems":[32],"visibleItems":[32],"needsIcon":[32],"hideList":[32],"activeItemIndex":[32],"activeChipIndex":[32],"activeDescendant":[32],"text":[32],"open":[32],"maxScrollerHeight":[32]},[[4,"click","documentClickHandler"],[0,"calciteComboboxItemChange","calciteComboboxItemChangeHandler"]]]);
|
|
24736
|
+
const CalciteCombobox = /*@__PURE__*/proxyCustomElement(CalciteCombobox$1, [1,"calcite-combobox",{"active":[1540],"disabled":[516],"label":[1],"placeholder":[1],"maxItems":[2,"max-items"],"name":[513],"allowCustomValues":[4,"allow-custom-values"],"overlayPositioning":[1,"overlay-positioning"],"required":[4],"selectionMode":[513,"selection-mode"],"scale":[513],"value":[1025],"items":[32],"groupItems":[32],"selectedItems":[32],"visibleItems":[32],"needsIcon":[32],"hideList":[32],"activeItemIndex":[32],"activeChipIndex":[32],"activeDescendant":[32],"text":[32],"open":[32],"maxScrollerHeight":[32]},[[4,"click","documentClickHandler"],[0,"calciteComboboxItemChange","calciteComboboxItemChangeHandler"]]]);
|
|
24364
24737
|
const CalciteComboboxItem = /*@__PURE__*/proxyCustomElement(CalciteComboboxItem$1, [1,"calcite-combobox-item",{"disabled":[516],"selected":[1540],"active":[4],"ancestors":[1040],"guid":[1],"icon":[1],"textLabel":[513,"text-label"],"value":[8],"constant":[516]}]);
|
|
24365
24738
|
const CalciteComboboxItemGroup = /*@__PURE__*/proxyCustomElement(CalciteComboboxItemGroup$1, [1,"calcite-combobox-item-group",{"ancestors":[1040],"label":[1]}]);
|
|
24366
24739
|
const CalciteDatePicker = /*@__PURE__*/proxyCustomElement(CalciteDatePicker$1, [1,"calcite-date-picker",{"activeRange":[1,"active-range"],"value":[1025],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1],"max":[1],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"locale":[1],"scale":[513],"range":[516],"start":[1025],"end":[1025],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"activeDate":[32],"activeStartDate":[32],"activeEndDate":[32],"localeData":[32],"hoverRange":[32]}]);
|
|
@@ -24371,16 +24744,16 @@ const CalciteDropdown = /*@__PURE__*/proxyCustomElement(CalciteDropdown$1, [1,"c
|
|
|
24371
24744
|
const CalciteDropdownGroup = /*@__PURE__*/proxyCustomElement(CalciteDropdownGroup$1, [1,"calcite-dropdown-group",{"groupTitle":[513,"group-title"],"selectionMode":[513,"selection-mode"],"scale":[513]},[[0,"calciteDropdownItemSelect","updateActiveItemOnChange"]]]);
|
|
24372
24745
|
const CalciteDropdownItem = /*@__PURE__*/proxyCustomElement(CalciteDropdownItem$1, [1,"calcite-dropdown-item",{"active":[1540],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"iconEnd":[513,"icon-end"],"href":[513],"label":[1],"rel":[1],"target":[1]},[[0,"click","onClick"],[0,"keydown","keyDownHandler"],[16,"calciteDropdownItemChange","updateActiveItemOnChange"]]]);
|
|
24373
24746
|
const CalciteFab = /*@__PURE__*/proxyCustomElement(CalciteFab$1, [1,"calcite-fab",{"appearance":[513],"color":[513],"disabled":[516],"icon":[1],"label":[1],"loading":[516],"scale":[513],"text":[1],"textEnabled":[516,"text-enabled"]}]);
|
|
24374
|
-
const CalciteFilter = /*@__PURE__*/proxyCustomElement(CalciteFilter$1, [1,"calcite-filter",{"data":[16],"disabled":[516],"intlClear":[1,"intl-clear"],"intlLabel":[1,"intl-label"],"placeholder":[1],"
|
|
24747
|
+
const CalciteFilter = /*@__PURE__*/proxyCustomElement(CalciteFilter$1, [1,"calcite-filter",{"data":[16],"items":[1040],"disabled":[516],"filteredItems":[1040],"intlClear":[1,"intl-clear"],"intlLabel":[1,"intl-label"],"placeholder":[1],"value":[1025]}]);
|
|
24375
24748
|
const CalciteFlow = /*@__PURE__*/proxyCustomElement(CalciteFlow$1, [1,"calcite-flow",{"panelCount":[32],"flowDirection":[32],"panels":[32]},[[0,"calcitePanelBackClick","handleCalcitePanelBackClick"]]]);
|
|
24376
|
-
const CalciteGraph = /*@__PURE__*/proxyCustomElement(CalciteGraph$1, [1,"calcite-graph",{"data":[16],"colorStops":[16],"width":[2],"height":[2],"highlightMin":[2,"highlight-min"],"highlightMax":[2,"highlight-max"]}]);
|
|
24749
|
+
const CalciteGraph = /*@__PURE__*/proxyCustomElement(CalciteGraph$1, [1,"calcite-graph",{"data":[16],"colorStops":[16],"width":[2],"height":[2],"highlightMin":[2,"highlight-min"],"highlightMax":[2,"highlight-max"],"min":[2],"max":[2]}]);
|
|
24377
24750
|
const CalciteHandle = /*@__PURE__*/proxyCustomElement(CalciteHandle$1, [1,"calcite-handle",{"activated":[1540],"textTitle":[513,"text-title"]}]);
|
|
24378
24751
|
const CalciteIcon = /*@__PURE__*/proxyCustomElement(CalciteIcon$1, [1,"calcite-icon",{"icon":[513],"flipRtl":[516,"flip-rtl"],"scale":[513],"textLabel":[1,"text-label"],"pathData":[32],"visible":[32]}]);
|
|
24379
|
-
const CalciteInlineEditable = /*@__PURE__*/proxyCustomElement(CalciteInlineEditable$1, [
|
|
24380
|
-
const CalciteInput = /*@__PURE__*/proxyCustomElement(CalciteInput$1, [
|
|
24381
|
-
const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(CalciteInputDatePicker$1, [1,"calcite-input-date-picker",{"value":[1025],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1],"max":[1],"active":[1540],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"locale":[1],"scale":[513],"range":[516],"start":[1025],"end":[1025],"overlayPositioning":[1,"overlay-positioning"],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"layout":[513],"focusedInput":[32],"localeData":[32]},[[0,"calciteDaySelect","calciteDaySelectHandler"]]]);
|
|
24752
|
+
const CalciteInlineEditable = /*@__PURE__*/proxyCustomElement(CalciteInlineEditable$1, [1,"calcite-inline-editable",{"disabled":[516],"editingEnabled":[1540,"editing-enabled"],"loading":[1540],"controls":[516],"intlEnableEditing":[513,"intl-enable-editing"],"intlCancelEditing":[513,"intl-cancel-editing"],"intlConfirmChanges":[513,"intl-confirm-changes"],"scale":[1537],"afterConfirm":[16]},[[0,"calciteInputBlur","blurHandler"]]]);
|
|
24753
|
+
const CalciteInput = /*@__PURE__*/proxyCustomElement(CalciteInput$1, [1,"calcite-input",{"alignment":[513],"autofocus":[4],"clearable":[516],"disabled":[516],"groupSeparator":[4,"group-separator"],"hidden":[4],"icon":[520],"intlLoading":[1,"intl-loading"],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"locale":[1],"localeFormat":[4,"locale-format"],"max":[514],"min":[514],"maxlength":[514],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"numberButtonType":[513,"number-button-type"],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[4,"read-only"],"required":[4],"scale":[1537],"status":[1537],"step":[520],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"type":[513],"value":[1025],"localizedValue":[32]}]);
|
|
24754
|
+
const CalciteInputDatePicker = /*@__PURE__*/proxyCustomElement(CalciteInputDatePicker$1, [1,"calcite-input-date-picker",{"disabled":[516],"value":[1025],"headingLevel":[2,"heading-level"],"valueAsDate":[1040],"startAsDate":[1040],"endAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1],"max":[1],"active":[1540],"name":[1],"intlPrevMonth":[1,"intl-prev-month"],"intlNextMonth":[1,"intl-next-month"],"locale":[1],"scale":[513],"range":[516],"required":[516],"start":[1025],"end":[1025],"overlayPositioning":[1,"overlay-positioning"],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"layout":[513],"focusedInput":[32],"localeData":[32]},[[0,"calciteDaySelect","calciteDaySelectHandler"]]]);
|
|
24382
24755
|
const CalciteInputMessage = /*@__PURE__*/proxyCustomElement(CalciteInputMessage$1, [1,"calcite-input-message",{"active":[516],"icon":[520],"scale":[1537],"status":[1537],"type":[513]}]);
|
|
24383
|
-
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(CalciteInputTimePicker$1, [1,"calcite-input-time-picker",{"active":[1540],"disabled":[516],"hourDisplayFormat":[1,"hour-display-format"],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"name":[1],"scale":[513],"step":[2],"value":[1025]},[[0,"keyup","keyUpHandler"],[0,"calciteTimePickerBlur","timePickerBlurHandler"],[0,"calciteTimePickerChange","timePickerChangeHandler"],[0,"calciteTimePickerFocus","timePickerFocusHandler"]]]);
|
|
24756
|
+
const CalciteInputTimePicker = /*@__PURE__*/proxyCustomElement(CalciteInputTimePicker$1, [1,"calcite-input-time-picker",{"active":[1540],"disabled":[516],"hourDisplayFormat":[1,"hour-display-format"],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"name":[1],"required":[516],"scale":[513],"step":[2],"value":[1025]},[[0,"keyup","keyUpHandler"],[0,"calciteTimePickerBlur","timePickerBlurHandler"],[0,"calciteTimePickerChange","timePickerChangeHandler"],[0,"calciteTimePickerFocus","timePickerFocusHandler"]]]);
|
|
24384
24757
|
const CalciteLabel = /*@__PURE__*/proxyCustomElement(CalciteLabel$1, [1,"calcite-label",{"alignment":[513],"status":[513],"for":[513],"scale":[513],"layout":[513],"disableSpacing":[4,"disable-spacing"],"disabled":[516]}]);
|
|
24385
24758
|
const CalciteLink = /*@__PURE__*/proxyCustomElement(CalciteLink$1, [1,"calcite-link",{"disabled":[516],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"rel":[1],"target":[1],"childElType":[32]}]);
|
|
24386
24759
|
const CalciteList = /*@__PURE__*/proxyCustomElement(CalciteList$1, [1,"calcite-list",{"headingLevel":[2,"heading-level"]}]);
|
|
@@ -24400,28 +24773,28 @@ const CalcitePopover = /*@__PURE__*/proxyCustomElement(CalcitePopover$1, [1,"cal
|
|
|
24400
24773
|
const CalcitePopoverManager = /*@__PURE__*/proxyCustomElement(CalcitePopoverManager$1, [1,"calcite-popover-manager",{"selector":[1],"autoClose":[516,"auto-close"]},[[10,"click","closeOpenPopovers"]]]);
|
|
24401
24774
|
const CalciteProgress = /*@__PURE__*/proxyCustomElement(CalciteProgress$1, [1,"calcite-progress",{"type":[1],"value":[2],"label":[1],"text":[1],"reversed":[4]}]);
|
|
24402
24775
|
const CalciteRadio = /*@__PURE__*/proxyCustomElement(CalciteRadio$1, [1,"calcite-radio",{"checked":[516],"disabled":[516],"focused":[516],"hidden":[516],"hovered":[516],"scale":[513]}]);
|
|
24403
|
-
const CalciteRadioButton = /*@__PURE__*/proxyCustomElement(CalciteRadioButton$1, [
|
|
24776
|
+
const CalciteRadioButton = /*@__PURE__*/proxyCustomElement(CalciteRadioButton$1, [1,"calcite-radio-button",{"checked":[1540],"disabled":[516],"focused":[1540],"guid":[1537],"hidden":[516],"hovered":[1540],"label":[1],"name":[513],"required":[516],"scale":[513],"value":[1032]},[[1,"mouseenter","mouseenter"],[1,"mouseleave","mouseleave"]]]);
|
|
24404
24777
|
const CalciteRadioButtonGroup = /*@__PURE__*/proxyCustomElement(CalciteRadioButtonGroup$1, [1,"calcite-radio-button-group",{"disabled":[516],"hidden":[516],"layout":[513],"name":[513],"required":[516],"scale":[513]},[[0,"calciteRadioButtonChange","radioButtonChangeHandler"]]]);
|
|
24405
|
-
const CalciteRadioGroup = /*@__PURE__*/proxyCustomElement(CalciteRadioGroup$1, [1,"calcite-radio-group",{"appearance":[513],"disabled":[516],"layout":[513],"name":[1],"scale":[513],"selectedItem":[1040],"width":[513]},[[0,"calciteRadioGroupItemChange","handleSelected"],[0,"keydown","handleKeyDown"]]]);
|
|
24778
|
+
const CalciteRadioGroup = /*@__PURE__*/proxyCustomElement(CalciteRadioGroup$1, [1,"calcite-radio-group",{"appearance":[513],"disabled":[516],"required":[516],"layout":[513],"name":[1],"scale":[513],"value":[1025],"selectedItem":[1040],"width":[513]},[[0,"calciteRadioGroupItemChange","handleSelected"],[0,"keydown","handleKeyDown"]]]);
|
|
24406
24779
|
const CalciteRadioGroupItem = /*@__PURE__*/proxyCustomElement(CalciteRadioGroupItem$1, [1,"calcite-radio-group-item",{"checked":[1540],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"iconPosition":[513,"icon-position"],"value":[1032],"useFallback":[32]}]);
|
|
24407
|
-
const CalciteRating = /*@__PURE__*/proxyCustomElement(CalciteRating$1, [1,"calcite-rating",{"scale":[513],"value":[1538],"readOnly":[516,"read-only"],"disabled":[516],"showChip":[516,"show-chip"],"count":[514],"average":[514],"intlRating":[1,"intl-rating"],"intlStars":[1,"intl-stars"],"hoverValue":[32],"focusValue":[32],"hasFocus":[32]},[[0,"blur","blurHandler"]]]);
|
|
24780
|
+
const CalciteRating = /*@__PURE__*/proxyCustomElement(CalciteRating$1, [1,"calcite-rating",{"scale":[513],"value":[1538],"readOnly":[516,"read-only"],"disabled":[516],"showChip":[516,"show-chip"],"count":[514],"average":[514],"name":[513],"intlRating":[1,"intl-rating"],"intlStars":[1,"intl-stars"],"required":[516],"hoverValue":[32],"focusValue":[32],"hasFocus":[32]},[[0,"blur","blurHandler"]]]);
|
|
24408
24781
|
const CalciteScrim = /*@__PURE__*/proxyCustomElement(CalciteScrim$1, [1,"calcite-scrim",{"intlLoading":[1,"intl-loading"],"loading":[516]}]);
|
|
24409
|
-
const CalciteSelect = /*@__PURE__*/proxyCustomElement(CalciteSelect$1, [1,"calcite-select",{"disabled":[516],"label":[1],"scale":[513],"selectedOption":[1040],"width":[513]},[[0,"calciteOptionChange","handleOptionOrGroupChange"],[0,"calciteOptionGroupChange","handleOptionOrGroupChange"]]]);
|
|
24782
|
+
const CalciteSelect = /*@__PURE__*/proxyCustomElement(CalciteSelect$1, [1,"calcite-select",{"disabled":[516],"label":[1],"name":[1],"required":[516],"scale":[513],"value":[1025],"selectedOption":[1040],"width":[513]},[[0,"calciteOptionChange","handleOptionOrGroupChange"],[0,"calciteOptionGroupChange","handleOptionOrGroupChange"]]]);
|
|
24410
24783
|
const CalciteShell = /*@__PURE__*/proxyCustomElement(CalciteShell$1, [1,"calcite-shell",{"contentBehind":[516,"content-behind"]}]);
|
|
24411
24784
|
const CalciteShellCenterRow = /*@__PURE__*/proxyCustomElement(CalciteShellCenterRow$1, [1,"calcite-shell-center-row",{"detached":[516],"heightScale":[513,"height-scale"],"position":[513]}]);
|
|
24412
24785
|
const CalciteShellPanel = /*@__PURE__*/proxyCustomElement(CalciteShellPanel$1, [1,"calcite-shell-panel",{"collapsed":[516],"detached":[516],"detachedHeightScale":[513,"detached-height-scale"],"widthScale":[513,"width-scale"],"position":[513]}]);
|
|
24413
|
-
const CalciteSlider = /*@__PURE__*/proxyCustomElement(CalciteSlider$1, [1,"calcite-slider",{"disabled":[516],"hasHistogram":[1540,"has-histogram"],"histogram":[16],"histogramStops":[16],"labelHandles":[516,"label-handles"],"labelTicks":[516,"label-ticks"],"max":[514],"maxLabel":[1,"max-label"],"maxValue":[1026,"max-value"],"min":[514],"minLabel":[1,"min-label"],"minValue":[1026,"min-value"],"mirrored":[516],"pageStep":[2,"page-step"],"precise":[4],"snap":[4],"step":[2],"ticks":[2],"value":[1538],"activeProp":[32],"minMaxValueRange":[32],"minValueDragRange":[32],"maxValueDragRange":[32],"tickValues":[32]},[[0,"keydown","keyDownHandler"],[0,"click","clickHandler"],[1,"pointerdown","pointerDownHandler"]]]);
|
|
24786
|
+
const CalciteSlider = /*@__PURE__*/proxyCustomElement(CalciteSlider$1, [1,"calcite-slider",{"disabled":[516],"hasHistogram":[1540,"has-histogram"],"histogram":[16],"histogramStops":[16],"labelHandles":[516,"label-handles"],"labelTicks":[516,"label-ticks"],"max":[514],"maxLabel":[1,"max-label"],"maxValue":[1026,"max-value"],"min":[514],"minLabel":[1,"min-label"],"minValue":[1026,"min-value"],"mirrored":[516],"name":[513],"pageStep":[2,"page-step"],"precise":[4],"required":[516],"snap":[4],"step":[2],"ticks":[2],"value":[1538],"activeProp":[32],"minMaxValueRange":[32],"minValueDragRange":[32],"maxValueDragRange":[32],"tickValues":[32]},[[0,"keydown","keyDownHandler"],[0,"click","clickHandler"],[1,"pointerdown","pointerDownHandler"]]]);
|
|
24414
24787
|
const CalciteSortableList = /*@__PURE__*/proxyCustomElement(CalciteSortableList$1, [1,"calcite-sortable-list",{"dragSelector":[1,"drag-selector"],"group":[1],"handleSelector":[1,"handle-selector"],"layout":[1],"disabled":[516],"loading":[516],"handleActivated":[32]},[[0,"calciteHandleNudge","calciteHandleNudgeHandler"]]]);
|
|
24415
24788
|
const CalciteSplitButton = /*@__PURE__*/proxyCustomElement(CalciteSplitButton$1, [1,"calcite-split-button",{"appearance":[513],"color":[513],"disabled":[516],"active":[516],"dropdownIconType":[513,"dropdown-icon-type"],"dropdownLabel":[513,"dropdown-label"],"loading":[516],"primaryIconEnd":[513,"primary-icon-end"],"primaryIconFlipRtl":[513,"primary-icon-flip-rtl"],"primaryIconStart":[513,"primary-icon-start"],"primaryLabel":[513,"primary-label"],"primaryText":[513,"primary-text"],"scale":[513],"width":[513]}]);
|
|
24416
24789
|
const CalciteStepper = /*@__PURE__*/proxyCustomElement(CalciteStepper$1, [1,"calcite-stepper",{"icon":[516],"layout":[513],"numbered":[516],"scale":[513],"requestedContent":[1040]},[[0,"calciteStepperItemKeyEvent","calciteStepperItemKeyEvent"],[0,"calciteStepperItemRegister","registerItem"],[0,"calciteStepperItemSelect","updateItem"]]]);
|
|
24417
24790
|
const CalciteStepperItem = /*@__PURE__*/proxyCustomElement(CalciteStepperItem$1, [1,"calcite-stepper-item",{"active":[1540],"complete":[516],"error":[4],"disabled":[4],"itemTitle":[1,"item-title"],"itemSubtitle":[1,"item-subtitle"],"layout":[1537],"icon":[1028],"numbered":[1028],"scale":[1537]},[[0,"keydown","keyDownHandler"],[16,"calciteStepperItemChange","updateActiveItemOnChange"]]]);
|
|
24418
|
-
const CalciteSwitch = /*@__PURE__*/proxyCustomElement(CalciteSwitch$1, [1,"calcite-switch",{"disabled":[516],"label":[1],"name":[513],"scale":[513],"switched":[
|
|
24791
|
+
const CalciteSwitch = /*@__PURE__*/proxyCustomElement(CalciteSwitch$1, [1,"calcite-switch",{"disabled":[516],"label":[1],"name":[513],"scale":[513],"switched":[1028],"checked":[1540],"value":[8],"tabindex":[32]}]);
|
|
24419
24792
|
const CalciteTab = /*@__PURE__*/proxyCustomElement(CalciteTab$1, [1,"calcite-tab",{"tab":[513],"active":[1540],"scale":[1537],"labeledBy":[32]},[[16,"calciteTabChange","tabChangeHandler"]]]);
|
|
24420
24793
|
const CalciteTabNav = /*@__PURE__*/proxyCustomElement(CalciteTabNav$1, [1,"calcite-tab-nav",{"storageId":[1,"storage-id"],"syncId":[1,"sync-id"],"scale":[1537],"layout":[1537],"position":[1537],"bordered":[1540],"indicatorOffset":[1026,"indicator-offset"],"indicatorWidth":[1026,"indicator-width"],"selectedTab":[32],"selectedTabEl":[32]},[[9,"resize","resizeHandler"],[0,"calciteTabsFocusPrevious","focusPreviousTabHandler"],[0,"calciteTabsFocusNext","focusNextTabHandler"],[0,"calciteTabsActivate","activateTabHandler"],[0,"calciteTabTitleRegister","updateTabTitles"],[16,"calciteTabChange","globalTabChangeHandler"]]]);
|
|
24421
24794
|
const CalciteTabTitle = /*@__PURE__*/proxyCustomElement(CalciteTabTitle$1, [1,"calcite-tab-title",{"active":[1540],"disabled":[516],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"layout":[1537],"position":[1537],"scale":[1537],"bordered":[1540],"tab":[513],"controls":[32],"hasText":[32]},[[16,"calciteTabChange","tabChangeHandler"],[0,"click","onClick"],[0,"keydown","keyDownHandler"]]]);
|
|
24422
24795
|
const CalciteTabs = /*@__PURE__*/proxyCustomElement(CalciteTabs$1, [1,"calcite-tabs",{"layout":[513],"position":[513],"scale":[513],"bordered":[1540],"titles":[32],"tabs":[32]},[[0,"calciteTabTitleRegister","calciteTabTitleRegister"],[16,"calciteTabTitleUnregister","calciteTabTitleUnregister"],[0,"calciteTabRegister","calciteTabRegister"],[16,"calciteTabUnregister","calciteTabUnregister"]]]);
|
|
24423
24796
|
const CalciteTile = /*@__PURE__*/proxyCustomElement(CalciteTile$1, [1,"calcite-tile",{"active":[516],"description":[513],"disabled":[516],"embed":[516],"focused":[516],"heading":[513],"hidden":[516],"href":[513],"icon":[513]}]);
|
|
24424
|
-
const CalciteTileSelect = /*@__PURE__*/proxyCustomElement(CalciteTileSelect$1, [1,"calcite-tile-select",{"checked":[1540],"description":[513],"disabled":[516],"heading":[513],"hidden":[516],"icon":[513],"name":[
|
|
24797
|
+
const CalciteTileSelect = /*@__PURE__*/proxyCustomElement(CalciteTileSelect$1, [1,"calcite-tile-select",{"checked":[1540],"description":[513],"disabled":[516],"heading":[513],"hidden":[516],"icon":[513],"name":[520],"inputEnabled":[516,"input-enabled"],"inputAlignment":[513,"input-alignment"],"type":[513],"value":[8],"width":[513],"focused":[32]},[[0,"calciteCheckboxChange","checkboxChangeHandler"],[0,"calciteInternalCheckboxFocus","checkboxFocusHandler"],[0,"calciteRadioButtonChange","radioButtonChangeHandler"],[0,"calciteInternalRadioButtonCheckedChange","radioButtonCheckedChangeHandler"],[0,"calciteInternalRadioButtonFocus","radioButtonFocusHandler"],[0,"click","click"],[1,"mouseenter","mouseenter"],[1,"mouseleave","mouseleave"]]]);
|
|
24425
24798
|
const CalciteTileSelectGroup = /*@__PURE__*/proxyCustomElement(CalciteTileSelectGroup$1, [1,"calcite-tile-select-group",{"layout":[513]}]);
|
|
24426
24799
|
const CalciteTimePicker = /*@__PURE__*/proxyCustomElement(CalciteTimePicker$1, [1,"calcite-time-picker",{"hour":[1025],"hourDisplayFormat":[513,"hour-display-format"],"intlHour":[1,"intl-hour"],"intlHourDown":[1,"intl-hour-down"],"intlHourUp":[1,"intl-hour-up"],"intlMeridiem":[1,"intl-meridiem"],"intlMeridiemDown":[1,"intl-meridiem-down"],"intlMeridiemUp":[1,"intl-meridiem-up"],"intlMinute":[1,"intl-minute"],"intlMinuteDown":[1,"intl-minute-down"],"intlMinuteUp":[1,"intl-minute-up"],"intlSecond":[1,"intl-second"],"intlSecondDown":[1,"intl-second-down"],"intlSecondUp":[1,"intl-second-up"],"minute":[1025],"second":[1025],"scale":[513],"step":[514],"meridiem":[32],"displayHour":[32]},[[0,"blur","hostBlurHandler"],[0,"focus","hostFocusHandler"],[0,"keydown","keyDownHandler"]]]);
|
|
24427
24800
|
const CalciteTip = /*@__PURE__*/proxyCustomElement(CalciteTip$1, [1,"calcite-tip",{"dismissed":[1540],"nonDismissible":[516,"non-dismissible"],"heading":[1],"headingLevel":[2,"heading-level"],"selected":[516],"intlClose":[1,"intl-close"]}]);
|