@esri/calcite-components 1.0.0-beta.72 → 1.0.0-beta.76
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-date-picker/nls/bg.json +31 -0
- package/dist/calcite/assets/calcite-date-picker/nls/pt-BR.json +31 -0
- package/dist/calcite/assets/calcite-date-picker/nls/pt-PT.json +3 -3
- package/dist/calcite/assets/calcite-icon/clipboard16.json +1 -0
- package/dist/calcite/assets/calcite-icon/clipboard24.json +1 -0
- package/dist/calcite/assets/calcite-icon/clipboard32.json +1 -0
- package/dist/calcite/assets/calcite-icon/explore16.json +1 -0
- package/dist/calcite/assets/calcite-icon/explore24.json +1 -0
- package/dist/calcite/assets/calcite-icon/explore32.json +1 -0
- package/dist/calcite/assets/calcite-icon/folders16.json +1 -0
- package/dist/calcite/assets/calcite-icon/folders24.json +1 -0
- package/dist/calcite/assets/calcite-icon/folders32.json +1 -0
- package/dist/calcite/assets/calcite-icon/initiative16.json +1 -0
- package/dist/calcite/assets/calcite-icon/initiative24.json +1 -0
- package/dist/calcite/assets/calcite-icon/initiative32.json +1 -0
- package/dist/calcite/assets/calcite-icon/initiativeTemplate16.json +1 -0
- package/dist/calcite/assets/calcite-icon/initiativeTemplate24.json +1 -0
- package/dist/calcite/assets/calcite-icon/initiativeTemplate32.json +1 -0
- package/dist/calcite/assets/calcite-icon/multipleVariables16.json +1 -0
- package/dist/calcite/assets/calcite-icon/multipleVariables24.json +1 -0
- package/dist/calcite/assets/calcite-icon/multipleVariables32.json +1 -0
- package/dist/calcite/assets/calcite-icon/paletteCheck16.json +1 -0
- package/dist/calcite/assets/calcite-icon/paletteCheck24.json +1 -0
- package/dist/calcite/assets/calcite-icon/paletteCheck32.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy16.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy24.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy32.json +1 -0
- package/dist/calcite/assets/calcite-icon/pentagon16.json +1 -0
- package/dist/calcite/assets/calcite-icon/pentagon24.json +1 -0
- package/dist/calcite/assets/calcite-icon/pentagon32.json +1 -0
- package/dist/calcite/assets/calcite-icon/puzzlePiece16.json +1 -0
- package/dist/calcite/assets/calcite-icon/puzzlePiece24.json +1 -0
- package/dist/calcite/assets/calcite-icon/puzzlePiece32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ribbonRosette16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ribbonRosette24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ribbonRosette32.json +1 -0
- package/dist/calcite/assets/calcite-icon/rightAlign16.json +1 -0
- package/dist/calcite/assets/calcite-icon/rightAlign24.json +1 -0
- package/dist/calcite/assets/calcite-icon/rightAlign32.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode16.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode24.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode32.json +1 -0
- package/dist/calcite/assets/calcite-icon/speechBubbleExclamation16.json +1 -0
- package/dist/calcite/assets/calcite-icon/speechBubbleExclamation24.json +1 -0
- package/dist/calcite/assets/calcite-icon/speechBubbleExclamation32.json +1 -0
- package/dist/calcite/assets/calcite-icon/survey16.json +1 -0
- package/dist/calcite/assets/calcite-icon/survey24.json +1 -0
- package/dist/calcite/assets/calcite-icon/survey32.json +1 -0
- package/dist/calcite/calcite.css +1 -1
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/p-010b6b91.system.entry.js +5 -0
- package/dist/calcite/p-015d6a24.entry.js +5 -0
- package/dist/calcite/p-0459ae3e.system.entry.js +5 -0
- package/dist/calcite/p-07603601.system.entry.js +5 -0
- package/dist/calcite/p-0926320c.system.entry.js +5 -0
- package/dist/calcite/{p-444ecda9.entry.js → p-09bd0204.entry.js} +1 -1
- package/dist/calcite/p-0a5d059d.js +5 -0
- package/dist/calcite/p-0c20a4e3.entry.js +5 -0
- package/dist/calcite/p-0d61e540.system.entry.js +5 -0
- package/dist/calcite/{p-0f2b51bf.system.js → p-10e3f599.system.js} +1 -1
- package/dist/calcite/p-1199ec78.entry.js +5 -0
- package/dist/calcite/p-13f9119c.js +5 -0
- package/dist/calcite/p-150e45ec.entry.js +5 -0
- package/dist/calcite/{p-a4a12ffb.system.entry.js → p-15eebdf8.system.entry.js} +2 -2
- package/dist/calcite/p-16a27151.entry.js +5 -0
- package/dist/calcite/p-18259377.entry.js +5 -0
- package/dist/calcite/p-1a3a366d.system.js +5 -0
- package/dist/calcite/p-1a907c90.entry.js +5 -0
- package/dist/calcite/p-1ce851da.js +5 -0
- package/dist/calcite/p-21e8e1e9.system.entry.js +5 -0
- package/dist/calcite/{p-66fda99e.entry.js → p-2328c2ec.entry.js} +1 -1
- package/dist/calcite/p-24765b5e.entry.js +5 -0
- package/dist/calcite/{p-a2a22cbc.entry.js → p-2718a51a.entry.js} +1 -1
- package/dist/calcite/{p-04cc8259.entry.js → p-2be7746c.entry.js} +1 -1
- package/dist/calcite/p-2d88c0ba.entry.js +5 -0
- package/dist/calcite/p-353015b6.system.entry.js +5 -0
- package/dist/calcite/p-385f6cb9.entry.js +5 -0
- package/dist/calcite/p-3c34f20d.system.js +5 -0
- package/dist/calcite/{p-d8039e8a.system.entry.js → p-3e59c8ef.system.entry.js} +1 -1
- package/dist/calcite/p-3f6a6851.system.entry.js +5 -0
- package/dist/calcite/p-3f792e3d.system.entry.js +5 -0
- package/dist/calcite/p-408408d6.entry.js +5 -0
- package/dist/calcite/p-42ac867a.entry.js +5 -0
- package/dist/calcite/p-4340f6ed.entry.js +5 -0
- package/dist/calcite/{p-523bc291.system.js → p-48fae9a9.system.js} +1 -1
- package/dist/calcite/{p-f1f65708.entry.js → p-4b7ff039.entry.js} +1 -1
- package/dist/calcite/{p-fc9025a2.entry.js → p-4edc43c1.entry.js} +1 -1
- package/dist/calcite/p-4fc8341b.system.entry.js +5 -0
- package/dist/calcite/p-510ef2b7.system.entry.js +5 -0
- package/dist/calcite/{p-8c4b6059.system.entry.js → p-5248d5fb.system.entry.js} +1 -1
- package/dist/calcite/p-54c3ea44.system.entry.js +5 -0
- package/dist/calcite/p-55c884ba.entry.js +5 -0
- package/dist/calcite/p-5660811e.entry.js +5 -0
- package/dist/calcite/p-5833a3af.entry.js +5 -0
- package/dist/calcite/p-59c6c9a0.entry.js +5 -0
- package/dist/calcite/p-5cd2ff4e.system.entry.js +5 -0
- package/dist/calcite/p-5f129d47.entry.js +5 -0
- package/dist/calcite/{p-e0b1e90c.entry.js → p-635594b8.entry.js} +1 -1
- package/dist/calcite/p-65ba6a8f.entry.js +5 -0
- package/dist/calcite/p-672ec03a.entry.js +5 -0
- package/dist/calcite/p-67cd9e12.system.entry.js +5 -0
- package/dist/calcite/p-6a5a4922.system.entry.js +5 -0
- package/dist/calcite/p-6a797e80.entry.js +5 -0
- package/dist/calcite/p-6b529df3.system.entry.js +5 -0
- package/dist/calcite/p-6c4eb127.system.entry.js +5 -0
- package/dist/calcite/p-6d5c2fce.system.entry.js +5 -0
- package/dist/calcite/{p-27d9be53.entry.js → p-6ee036b3.entry.js} +1 -1
- package/dist/calcite/p-71b6bc4c.system.entry.js +5 -0
- package/dist/calcite/p-7266c359.system.entry.js +5 -0
- package/dist/calcite/p-72951ce3.system.entry.js +5 -0
- package/dist/calcite/p-75cda5de.system.entry.js +5 -0
- package/dist/calcite/p-75df0e8f.entry.js +5 -0
- package/dist/calcite/p-79ba0ff5.js +5 -0
- package/dist/calcite/p-7b2f2117.system.entry.js +5 -0
- package/dist/calcite/{p-bca0b34f.entry.js → p-7b341154.entry.js} +1 -1
- package/dist/calcite/p-7e9189e8.system.entry.js +5 -0
- package/dist/calcite/p-80e56ba6.system.entry.js +5 -0
- package/dist/calcite/p-8124f6cc.system.entry.js +5 -0
- package/dist/calcite/p-81dc55fa.entry.js +5 -0
- package/dist/calcite/p-82e0b30e.entry.js +5 -0
- package/dist/calcite/p-8446d974.system.entry.js +5 -0
- package/dist/calcite/p-852a718f.entry.js +5 -0
- package/dist/calcite/p-8647d09e.entry.js +5 -0
- package/dist/calcite/p-888ce316.system.entry.js +5 -0
- package/dist/calcite/p-8bfa00bc.js +5 -0
- package/dist/calcite/p-8d1564c5.system.entry.js +5 -0
- package/dist/calcite/{p-fd255a24.entry.js → p-8d437ca2.entry.js} +1 -1
- package/dist/calcite/p-8f3a3e4e.js +5 -0
- package/dist/calcite/p-8f6aac19.entry.js +5 -0
- package/dist/calcite/p-903c016f.entry.js +5 -0
- package/dist/calcite/p-9217d4ef.system.js +5 -0
- package/dist/calcite/p-92901db9.entry.js +5 -0
- package/dist/calcite/{p-34e5baa7.system.js → p-94cfc34a.system.js} +1 -1
- package/dist/calcite/p-95810140.system.js +5 -0
- package/dist/calcite/p-95a3bcff.system.entry.js +5 -0
- package/dist/calcite/p-95b7c39a.system.entry.js +5 -0
- package/dist/calcite/p-983287ce.system.js +5 -0
- package/dist/calcite/p-9a7c4812.js +5 -0
- package/dist/calcite/p-9ef989e2.entry.js +5 -0
- package/dist/calcite/p-9f1c59ec.entry.js +5 -0
- package/dist/calcite/p-a37ecb59.entry.js +5 -0
- package/dist/calcite/p-a468d651.system.entry.js +5 -0
- package/dist/calcite/p-a77a8427.entry.js +5 -0
- package/dist/calcite/p-a7dfed2f.entry.js +5 -0
- package/dist/calcite/p-a809abbd.system.entry.js +5 -0
- package/dist/calcite/p-a859ccd4.system.js +5 -0
- package/dist/calcite/p-abf93e8f.system.js +5 -0
- package/dist/calcite/{p-db10485b.system.js → p-ac4aec20.system.js} +1 -1
- package/dist/calcite/p-ac8c0493.entry.js +5 -0
- package/dist/calcite/p-ad2fd769.system.entry.js +5 -0
- package/dist/calcite/p-af5e11c9.system.entry.js +5 -0
- package/dist/calcite/p-af75a72b.js +5 -0
- package/dist/calcite/p-b0ab09d3.system.entry.js +5 -0
- package/dist/calcite/p-b4a80f18.system.entry.js +5 -0
- package/dist/calcite/p-b519a98e.system.entry.js +5 -0
- package/dist/calcite/p-b5781bda.entry.js +5 -0
- package/dist/calcite/p-b8a670cc.entry.js +5 -0
- package/dist/calcite/p-ba6b0f09.entry.js +5 -0
- package/dist/calcite/p-bb401f25.system.js +5 -0
- package/dist/calcite/p-bd289892.entry.js +5 -0
- package/dist/calcite/p-c36161b9.system.entry.js +5 -0
- package/dist/calcite/p-c525d974.system.entry.js +5 -0
- package/dist/calcite/{p-d3db2b58.system.entry.js → p-c5e8d437.system.entry.js} +1 -1
- package/dist/calcite/p-cb02295b.system.entry.js +5 -0
- package/dist/calcite/p-d2931c8e.system.entry.js +5 -0
- package/dist/calcite/p-d2ebedc0.entry.js +5 -0
- package/dist/calcite/p-d3316626.system.entry.js +5 -0
- package/dist/calcite/p-da987587.system.entry.js +5 -0
- package/dist/calcite/p-dadb1104.system.entry.js +5 -0
- package/dist/calcite/p-dae2daf0.entry.js +5 -0
- package/dist/calcite/{p-f39dc5fd.entry.js → p-dc24f809.entry.js} +1 -1
- package/dist/calcite/p-dd9f2e61.js +5 -0
- package/dist/calcite/p-de10a37b.entry.js +5 -0
- package/dist/calcite/p-e2047621.system.js +5 -0
- package/dist/calcite/{p-06ddf228.entry.js → p-e54a3620.entry.js} +1 -1
- package/dist/calcite/p-e93a418e.system.entry.js +5 -0
- package/dist/calcite/p-ea2b09ba.entry.js +5 -0
- package/dist/calcite/{p-40e16f41.entry.js → p-ebd8eef3.entry.js} +1 -1
- package/dist/calcite/p-ec2d6c5f.system.entry.js +5 -0
- package/dist/calcite/p-ec9bab33.system.js +5 -0
- package/dist/calcite/p-eeb91710.js +5 -0
- package/dist/calcite/p-ef6b4184.js +5 -0
- package/dist/calcite/{p-87327c2f.system.entry.js → p-ef779e80.system.entry.js} +1 -1
- package/dist/calcite/p-f2508455.system.entry.js +5 -0
- package/dist/calcite/p-f45eae85.entry.js +5 -0
- package/dist/calcite/{p-2e29554c.js → p-fb3f5251.js} +1 -1
- package/dist/calcite/p-fbf74b6d.js +5 -0
- package/dist/calcite/p-fc04e52b.system.entry.js +5 -0
- package/dist/calcite/p-fc2f135e.system.entry.js +5 -0
- package/dist/calcite/p-fe28891b.system.entry.js +5 -0
- package/dist/calcite/p-feacdfdf.system.entry.js +5 -0
- package/dist/cjs/{CalciteExpandToggle-d654421a.js → CalciteExpandToggle-f1e05027.js} +2 -2
- package/dist/cjs/{CalciteHeading-112c19f9.js → CalciteHeading-d797719f.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +8 -5
- package/dist/cjs/calcite-action-bar.cjs.entry.js +8 -29
- package/dist/cjs/calcite-action-group.cjs.entry.js +16 -3
- package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +12 -4
- package/dist/cjs/calcite-action.cjs.entry.js +3 -3
- package/dist/cjs/calcite-alert.cjs.entry.js +29 -22
- package/dist/cjs/calcite-avatar.cjs.entry.js +3 -3
- package/dist/cjs/calcite-block_2.cjs.entry.js +19 -6
- package/dist/cjs/calcite-button.cjs.entry.js +5 -5
- package/dist/cjs/calcite-card.cjs.entry.js +19 -8
- package/dist/cjs/calcite-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/calcite-chip.cjs.entry.js +17 -4
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +21 -6
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +39 -25
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +19 -17
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +32 -26
- package/dist/cjs/calcite-fab.cjs.entry.js +3 -3
- package/dist/cjs/calcite-filter.cjs.entry.js +3 -3
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +28 -17
- package/dist/cjs/calcite-handle.cjs.entry.js +2 -2
- package/dist/cjs/calcite-icon.cjs.entry.js +4 -4
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +47 -22
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +15 -10
- package/dist/cjs/calcite-input-message.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-input.cjs.entry.js +135 -63
- package/dist/cjs/calcite-label.cjs.entry.js +6 -3
- package/dist/cjs/calcite-link.cjs.entry.js +16 -5
- package/dist/cjs/calcite-list_3.cjs.entry.js +19 -6
- package/dist/cjs/calcite-loader.cjs.entry.js +2 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +10 -7
- package/dist/cjs/calcite-notice.cjs.entry.js +15 -9
- package/dist/cjs/calcite-option_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-pagination.cjs.entry.js +2 -2
- package/dist/cjs/calcite-panel.cjs.entry.js +39 -17
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +32 -8
- package/dist/cjs/calcite-popover_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +15 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +21 -14
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +6 -51
- package/dist/cjs/calcite-rating.cjs.entry.js +5 -5
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +47 -16
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +3 -3
- package/dist/cjs/calcite-split-button.cjs.entry.js +2 -2
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-switch.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +39 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +16 -3
- package/dist/cjs/calcite-tip_3.cjs.entry.js +20 -8
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tree_2.cjs.entry.js +26 -13
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +27 -8
- package/dist/cjs/calcite.cjs.js +3 -3
- package/dist/cjs/conditionalSlot-20745612.js +43 -0
- package/dist/cjs/{dom-19822169.js → dom-f3df220d.js} +44 -11
- package/dist/cjs/{form-a5b44a1f.js → form-55a71663.js} +2 -2
- package/dist/cjs/{index-6b5d2de5.js → index-8b0d388b.js} +0 -5
- package/dist/cjs/{label-8e3552b2.js → label-6b18ca08.js} +5 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/locale-02462821.js +128 -0
- package/dist/cjs/number-e813e801.js +84 -0
- package/dist/cjs/{observers-41837607.js → observers-79bfb8bc.js} +5 -1
- package/dist/cjs/{popper-a7580aca.js → popper-13a2bb46.js} +29 -10
- package/dist/cjs/{resources-16974e48.js → resources-6af71952.js} +9 -5
- package/dist/cjs/{resources-6c4b32ef.js → resources-f6847c67.js} +14 -3
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/accordion/interfaces.js +1 -0
- package/dist/collection/components/alert/interfaces.js +7 -0
- package/dist/collection/components/block-section/interfaces.js +1 -0
- package/dist/collection/components/button/interfaces.js +1 -0
- package/dist/collection/components/calcite-accordion/calcite-accordion.css +8 -18
- package/dist/collection/components/calcite-accordion/calcite-accordion.js +6 -2
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.css +33 -77
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +1 -1
- package/dist/collection/components/calcite-action/calcite-action.css +49 -91
- package/dist/collection/components/calcite-action-bar/calcite-action-bar.css +7 -18
- package/dist/collection/components/calcite-action-group/calcite-action-group.css +5 -18
- package/dist/collection/components/calcite-action-group/calcite-action-group.js +12 -0
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.css +11 -23
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +4 -4
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.css +26 -25
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +7 -0
- package/dist/collection/components/calcite-alert/calcite-alert.css +81 -106
- package/dist/collection/components/calcite-alert/calcite-alert.js +54 -21
- package/dist/collection/components/calcite-avatar/calcite-avatar.css +8 -20
- package/dist/collection/components/calcite-block/calcite-block.css +44 -53
- package/dist/collection/components/calcite-block/calcite-block.js +13 -1
- package/dist/collection/components/calcite-block-section/calcite-block-section.css +25 -41
- package/dist/collection/components/calcite-button/calcite-button.css +83 -226
- package/dist/collection/components/calcite-card/calcite-card.css +49 -60
- package/dist/collection/components/calcite-card/calcite-card.js +15 -6
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +11 -24
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +1 -1
- package/dist/collection/components/calcite-chip/calcite-chip.css +19 -41
- package/dist/collection/components/calcite-chip/calcite-chip.js +13 -1
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.css +11 -40
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.css +7 -17
- package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.css +7 -18
- package/dist/collection/components/calcite-color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/calcite-combobox/calcite-combobox.css +29 -48
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +46 -16
- package/dist/collection/components/calcite-combobox/resources.js +3 -0
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +34 -41
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +10 -8
- package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.css +8 -19
- package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js +1 -1
- package/dist/collection/components/calcite-date-picker/assets/calcite-date-picker/nls/bg.json +31 -0
- package/dist/collection/components/calcite-date-picker/assets/calcite-date-picker/nls/pt-BR.json +31 -0
- package/dist/collection/components/calcite-date-picker/assets/calcite-date-picker/nls/pt-PT.json +3 -3
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.css +4 -14
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +9 -7
- package/dist/collection/components/calcite-date-picker/utils.js +7 -3
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +37 -58
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css +21 -31
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +35 -56
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +5 -21
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +28 -21
- package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.css +10 -20
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +48 -59
- package/dist/collection/components/calcite-fab/calcite-fab.css +10 -16
- package/dist/collection/components/calcite-filter/calcite-filter.css +20 -34
- package/dist/collection/components/calcite-flow/calcite-flow.css +22 -34
- package/dist/collection/components/calcite-flow/calcite-flow.js +1 -1
- package/dist/collection/components/calcite-graph/calcite-graph.css +5 -18
- package/dist/collection/components/calcite-graph/calcite-graph.js +13 -42
- package/dist/collection/components/calcite-handle/calcite-handle.css +4 -18
- package/dist/collection/components/calcite-icon/assets/calcite-icon/clipboard16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/clipboard24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/clipboard32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/folders16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/folders24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/folders32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/initiative16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/initiative24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/initiative32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/initiativeTemplate16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/initiativeTemplate24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/initiativeTemplate32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/multipleVariables16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/multipleVariables24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/multipleVariables32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/paletteCheck16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/paletteCheck24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/paletteCheck32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/pentagon16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/pentagon24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/pentagon32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/puzzlePiece16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/puzzlePiece24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/puzzlePiece32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ribbonRosette16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ribbonRosette24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ribbonRosette32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/survey16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/survey24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/survey32.json +1 -0
- package/dist/collection/components/calcite-icon/calcite-icon.css +12 -14
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css +5 -12
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +54 -35
- package/dist/collection/components/calcite-input/calcite-input.css +94 -156
- package/dist/collection/components/calcite-input/calcite-input.js +129 -57
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.css +28 -46
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +39 -2
- package/dist/collection/components/calcite-input-message/calcite-input-message.css +12 -23
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.css +1 -11
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +2 -2
- package/dist/collection/components/calcite-label/calcite-label.css +19 -34
- package/dist/collection/components/calcite-label/calcite-label.js +8 -2
- package/dist/collection/components/calcite-link/calcite-link.css +16 -33
- package/dist/collection/components/calcite-link/calcite-link.js +31 -2
- package/dist/collection/components/calcite-list/calcite-list.css +9 -16
- package/dist/collection/components/calcite-list-item/calcite-list-item.css +23 -46
- package/dist/collection/components/calcite-list-item/calcite-list-item.js +12 -0
- package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.css +7 -17
- package/dist/collection/components/calcite-loader/calcite-loader.css +37 -62
- package/dist/collection/components/calcite-modal/calcite-modal.css +95 -102
- package/dist/collection/components/calcite-modal/calcite-modal.js +6 -3
- package/dist/collection/components/calcite-notice/calcite-notice.css +43 -80
- package/dist/collection/components/calcite-notice/calcite-notice.js +11 -6
- package/dist/collection/components/calcite-option/calcite-option.css +1 -11
- package/dist/collection/components/calcite-option-group/calcite-option-group.css +1 -11
- package/dist/collection/components/calcite-pagination/calcite-pagination.css +20 -54
- package/dist/collection/components/calcite-panel/calcite-panel.css +51 -73
- package/dist/collection/components/calcite-panel/calcite-panel.js +60 -19
- package/dist/collection/components/calcite-pick-list/calcite-pick-list.css +16 -26
- package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +13 -5
- package/dist/collection/components/calcite-pick-list/resources.js +1 -1
- package/dist/collection/components/calcite-pick-list/shared-list-logic.js +10 -0
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.css +14 -27
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +12 -0
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.css +43 -60
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +13 -1
- package/dist/collection/components/calcite-popover/calcite-popover.css +24 -34
- package/dist/collection/components/calcite-popover/calcite-popover.js +1 -1
- package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.css +1 -11
- package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +1 -1
- package/dist/collection/components/calcite-progress/calcite-progress.css +7 -20
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +18 -21
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +16 -9
- package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.css +1 -14
- package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.js +13 -0
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.css +3 -15
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +3 -5
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +17 -28
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +0 -45
- package/dist/collection/components/calcite-rating/calcite-rating.css +10 -23
- package/dist/collection/components/calcite-scrim/calcite-scrim.css +17 -29
- package/dist/collection/components/calcite-select/calcite-select.css +23 -39
- package/dist/collection/components/calcite-select/calcite-select.js +3 -5
- package/dist/collection/components/calcite-shell/calcite-shell.css +43 -43
- package/dist/collection/components/calcite-shell/calcite-shell.js +23 -9
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.css +26 -21
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +13 -1
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +33 -52
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +9 -4
- package/dist/collection/components/calcite-slider/calcite-slider.css +50 -93
- package/dist/collection/components/calcite-slider/calcite-slider.js +10 -7
- package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.css +1 -11
- package/dist/collection/components/calcite-split-button/calcite-split-button.css +7 -27
- package/dist/collection/components/calcite-stepper/calcite-stepper.css +8 -18
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.css +38 -72
- package/dist/collection/components/calcite-switch/calcite-switch.css +29 -47
- package/dist/collection/components/calcite-tab/calcite-tab.css +10 -20
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +14 -23
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.css +40 -65
- package/dist/collection/components/calcite-tabs/calcite-tabs.css +3 -13
- package/dist/collection/components/calcite-tile/calcite-tile.css +52 -85
- package/dist/collection/components/calcite-tile/calcite-tile.js +12 -0
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.css +52 -87
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +21 -2
- package/dist/collection/components/calcite-tile-select/resources.js +20 -0
- package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.css +1 -12
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.css +15 -47
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +5 -5
- package/dist/collection/components/calcite-tip/calcite-tip.css +20 -36
- package/dist/collection/components/calcite-tip/calcite-tip.js +13 -1
- package/dist/collection/components/calcite-tip-group/calcite-tip-group.css +4 -14
- package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.css +34 -49
- package/dist/collection/components/calcite-tooltip/calcite-tooltip.css +12 -20
- package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +5 -5
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.css +1 -11
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +1 -1
- package/dist/collection/components/calcite-tree/calcite-tree.css +1 -11
- package/dist/collection/components/calcite-tree/calcite-tree.js +2 -1
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +27 -58
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +21 -8
- package/dist/collection/components/calcite-value-list/calcite-value-list.css +17 -25
- package/dist/collection/components/calcite-value-list/calcite-value-list.js +23 -9
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.css +22 -32
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +12 -0
- package/dist/collection/components/chip/interfaces.js +1 -0
- package/dist/collection/components/color-picker/interfaces.js +1 -0
- package/dist/collection/components/color-picker/utils.js +107 -0
- package/dist/collection/components/combobox/interfaces.js +1 -0
- package/dist/collection/components/date-picker/interfaces.js +1 -0
- package/dist/collection/components/date-picker/utils.js +53 -0
- package/dist/collection/components/dropdown/interfaces.js +1 -0
- package/dist/collection/components/dropdown-group/interfaces.js +1 -0
- package/dist/collection/components/functional/Heading.js +9 -0
- package/dist/collection/components/graph/interfaces.js +1 -0
- package/dist/collection/components/input/interfaces.js +1 -0
- package/dist/collection/components/modal/interfaces.js +1 -0
- package/dist/collection/components/pagination/pagination.js +201 -0
- package/dist/collection/components/pagination/resources.js +14 -0
- package/dist/collection/components/pick-list/pick-list.js +192 -0
- package/dist/collection/components/pick-list/resources.js +15 -0
- package/dist/collection/components/pick-list/shared-list-logic.js +269 -0
- package/dist/collection/components/pick-list/shared-list-render.js +25 -0
- package/dist/collection/components/radio-group/interfaces.js +1 -0
- package/dist/collection/components/tab/interfaces.js +1 -0
- package/dist/collection/components/tabs/interfaces.js +1 -0
- package/dist/collection/components/tile-select/interfaces.js +1 -0
- package/dist/collection/components/tile-select-group/interfaces.js +1 -0
- package/dist/collection/components/tree/interfaces.js +8 -0
- package/dist/collection/components/tree-item/interfaces.js +1 -0
- package/dist/collection/components/value-list/resources.js +11 -0
- package/dist/collection/components/value-list/value-list.js +266 -0
- package/dist/collection/utils/conditionalSlot.js +22 -11
- package/dist/collection/utils/dom.js +44 -11
- package/dist/collection/utils/globalAttributes.js +59 -0
- package/dist/collection/utils/label.js +4 -1
- package/dist/collection/utils/locale.js +43 -38
- package/dist/collection/utils/number.js +48 -23
- package/dist/collection/utils/observers.js +5 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +5 -2
- package/dist/components/calcite-action-bar.js +3 -24
- package/dist/components/calcite-action-group2.js +13 -1
- package/dist/components/calcite-action-menu2.js +5 -5
- package/dist/components/calcite-action-pad.js +8 -1
- package/dist/components/calcite-action2.js +1 -1
- package/dist/components/calcite-alert.js +29 -21
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +14 -2
- package/dist/components/calcite-button2.js +1 -1
- package/dist/components/calcite-card.js +16 -7
- package/dist/components/calcite-checkbox2.js +2 -2
- package/dist/components/calcite-chip2.js +14 -2
- package/dist/components/calcite-color-picker-hex-input2.js +1 -1
- package/dist/components/calcite-color-picker-swatch2.js +17 -2
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +9 -7
- package/dist/components/calcite-combobox.js +23 -13
- package/dist/components/calcite-date-picker-day2.js +1 -1
- package/dist/components/calcite-date-picker-month-header2.js +1 -1
- package/dist/components/calcite-date-picker-month2.js +1 -1
- package/dist/components/calcite-date-picker2.js +17 -11
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown2.js +27 -21
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter2.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph2.js +14 -9
- package/dist/components/calcite-handle2.js +1 -1
- package/dist/components/calcite-icon2.js +1 -1
- package/dist/components/calcite-inline-editable.js +45 -20
- package/dist/components/calcite-input-date-picker.js +8 -3
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-time-picker.js +2 -2
- package/dist/components/calcite-input2.js +130 -58
- package/dist/components/calcite-label2.js +5 -2
- package/dist/components/calcite-link2.js +15 -3
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +13 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader2.js +1 -1
- package/dist/components/calcite-modal.js +7 -4
- package/dist/components/calcite-notice.js +12 -7
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +37 -15
- package/dist/components/calcite-pick-list-group.js +13 -1
- package/dist/components/calcite-pick-list-item2.js +13 -1
- package/dist/components/calcite-pick-list.js +3 -2
- package/dist/components/calcite-popover-manager.js +2 -2
- package/dist/components/calcite-popover2.js +2 -2
- package/dist/components/calcite-progress2.js +1 -1
- package/dist/components/calcite-radio-button-group.js +14 -1
- package/dist/components/calcite-radio-button.js +17 -10
- package/dist/components/calcite-radio-group-item.js +1 -46
- package/dist/components/calcite-radio-group.js +2 -2
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim2.js +1 -1
- package/dist/components/calcite-select.js +2 -2
- package/dist/components/calcite-shell-center-row.js +14 -2
- package/dist/components/calcite-shell-panel.js +10 -5
- package/dist/components/calcite-shell.js +22 -7
- package/dist/components/calcite-slider.js +11 -7
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch2.js +1 -1
- package/dist/components/calcite-tab-nav2.js +1 -1
- package/dist/components/calcite-tab-title2.js +1 -1
- package/dist/components/calcite-tab2.js +1 -1
- package/dist/components/calcite-tabs2.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +37 -2
- package/dist/components/calcite-tile2.js +13 -1
- package/dist/components/calcite-time-picker2.js +5 -5
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +14 -2
- package/dist/components/calcite-tooltip-manager2.js +2 -2
- package/dist/components/calcite-tooltip.js +4 -4
- package/dist/components/calcite-tree-item.js +20 -9
- package/dist/components/calcite-tree.js +3 -2
- package/dist/components/calcite-value-list-item.js +13 -1
- package/dist/components/calcite-value-list.js +11 -4
- package/dist/components/conditionalSlot.js +40 -0
- package/dist/components/dom.js +44 -11
- package/dist/components/label.js +4 -1
- package/dist/components/locale.js +43 -38
- package/dist/components/number.js +49 -24
- package/dist/components/observers.js +5 -1
- package/dist/components/popper.js +28 -9
- package/dist/components/resources3.js +1 -1
- package/dist/components/shared-list-render.js +11 -1
- package/dist/components/utils2.js +4 -1
- package/dist/custom-elements/index.js +1236 -758
- package/dist/esm/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-3ebdb3a6.js} +2 -2
- package/dist/esm/{CalciteHeading-1d6cd311.js → CalciteHeading-fa0da825.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +8 -5
- package/dist/esm/calcite-action-bar.entry.js +6 -27
- package/dist/esm/calcite-action-group.entry.js +16 -3
- package/dist/esm/calcite-action-menu.entry.js +8 -8
- package/dist/esm/calcite-action-pad.entry.js +12 -4
- package/dist/esm/calcite-action.entry.js +3 -3
- package/dist/esm/calcite-alert.entry.js +29 -22
- package/dist/esm/calcite-avatar.entry.js +3 -3
- package/dist/esm/calcite-block_2.entry.js +19 -6
- package/dist/esm/calcite-button.entry.js +5 -5
- package/dist/esm/calcite-card.entry.js +19 -8
- package/dist/esm/calcite-checkbox.entry.js +6 -6
- package/dist/esm/calcite-chip.entry.js +17 -4
- package/dist/esm/calcite-color-picker_3.entry.js +21 -6
- package/dist/esm/calcite-combobox_3.entry.js +39 -25
- package/dist/esm/calcite-date-picker_4.entry.js +19 -17
- package/dist/esm/calcite-dropdown_3.entry.js +32 -26
- package/dist/esm/calcite-fab.entry.js +3 -3
- package/dist/esm/calcite-filter.entry.js +3 -3
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +28 -17
- package/dist/esm/calcite-handle.entry.js +2 -2
- package/dist/esm/calcite-icon.entry.js +4 -4
- package/dist/esm/calcite-inline-editable.entry.js +47 -22
- package/dist/esm/calcite-input-date-picker.entry.js +15 -10
- package/dist/esm/calcite-input-message.entry.js +3 -3
- package/dist/esm/calcite-input-time-picker_2.entry.js +11 -11
- package/dist/esm/calcite-input.entry.js +135 -63
- package/dist/esm/calcite-label.entry.js +6 -3
- package/dist/esm/calcite-link.entry.js +16 -5
- package/dist/esm/calcite-list_3.entry.js +19 -6
- package/dist/esm/calcite-loader.entry.js +2 -2
- package/dist/esm/calcite-modal.entry.js +10 -7
- package/dist/esm/calcite-notice.entry.js +15 -9
- package/dist/esm/calcite-option_3.entry.js +8 -8
- package/dist/esm/calcite-pagination.entry.js +2 -2
- package/dist/esm/calcite-panel.entry.js +39 -17
- package/dist/esm/calcite-pick-list_3.entry.js +32 -8
- package/dist/esm/calcite-popover_2.entry.js +8 -8
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +15 -2
- package/dist/esm/calcite-radio-button.entry.js +21 -14
- package/dist/esm/calcite-radio-group_2.entry.js +6 -51
- package/dist/esm/calcite-rating.entry.js +5 -5
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +47 -16
- package/dist/esm/calcite-sortable-list.entry.js +3 -3
- package/dist/esm/calcite-split-button.entry.js +2 -2
- package/dist/esm/calcite-stepper_2.entry.js +4 -4
- package/dist/esm/calcite-switch.entry.js +5 -5
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-tile-select_2.entry.js +39 -4
- package/dist/esm/calcite-tile.entry.js +16 -3
- package/dist/esm/calcite-tip_3.entry.js +20 -8
- package/dist/esm/calcite-tooltip_2.entry.js +9 -9
- package/dist/esm/calcite-tree_2.entry.js +26 -13
- package/dist/esm/calcite-value-list_2.entry.js +27 -8
- package/dist/esm/calcite.js +3 -3
- package/dist/esm/conditionalSlot-0e575a09.js +40 -0
- package/dist/esm/{dom-f24e866c.js → dom-e7fa77b9.js} +44 -11
- package/dist/esm/{form-160b0fb5.js → form-42bda668.js} +2 -2
- package/dist/esm/{index-9de00868.js → index-c4b90cce.js} +0 -5
- package/dist/esm/{label-5559055d.js → label-2bffc9f4.js} +5 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/locale-fc850b7c.js +123 -0
- package/dist/esm/number-8779395f.js +76 -0
- package/dist/esm/{observers-8f0bc419.js → observers-46118290.js} +5 -1
- package/dist/esm/{popper-f5caedc4.js → popper-ae231554.js} +29 -10
- package/dist/esm/{resources-35c1823f.js → resources-3c05dd64.js} +14 -4
- package/dist/esm/{resources-b4eee1d4.js → resources-704f6b2d.js} +9 -5
- package/dist/esm-es5/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-3ebdb3a6.js} +1 -1
- package/dist/esm-es5/{CalciteHeading-1d6cd311.js → CalciteHeading-fa0da825.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-handle.entry.js +2 -2
- 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 +1 -1
- package/dist/esm-es5/calcite-input-message.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input.entry.js +1 -1
- package/dist/esm-es5/calcite-label.entry.js +1 -1
- package/dist/esm-es5/calcite-link.entry.js +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +2 -2
- package/dist/esm-es5/calcite-option_3.entry.js +1 -1
- package/dist/esm-es5/calcite-pagination.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +1 -1
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- 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-button.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
- package/dist/esm-es5/calcite-rating.entry.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/conditionalSlot-0e575a09.js +5 -0
- package/dist/esm-es5/dom-e7fa77b9.js +5 -0
- package/dist/esm-es5/{form-160b0fb5.js → form-42bda668.js} +1 -1
- package/dist/esm-es5/{index-9de00868.js → index-c4b90cce.js} +1 -1
- package/dist/esm-es5/label-2bffc9f4.js +5 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/locale-fc850b7c.js +5 -0
- package/dist/esm-es5/number-8779395f.js +5 -0
- package/dist/esm-es5/{observers-8f0bc419.js → observers-46118290.js} +1 -1
- package/dist/esm-es5/popper-ae231554.js +5 -0
- package/dist/esm-es5/resources-3c05dd64.js +5 -0
- package/dist/esm-es5/resources-704f6b2d.js +5 -0
- package/dist/extras/docs-json.json +189 -73
- package/dist/types/components/calcite-accordion/calcite-accordion.d.ts +42 -0
- package/dist/types/components/calcite-accordion-item/calcite-accordion-item.d.ts +53 -0
- package/dist/types/components/calcite-action/calcite-action.d.ts +73 -0
- package/dist/types/components/calcite-action-bar/calcite-action-bar.d.ts +69 -0
- package/dist/types/components/calcite-action-group/calcite-action-group.d.ts +42 -0
- package/dist/types/components/calcite-action-menu/calcite-action-menu.d.ts +83 -0
- package/dist/types/components/calcite-action-pad/calcite-action-pad.d.ts +55 -0
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +83 -0
- package/dist/types/components/calcite-alert/interfaces.d.ts +1 -0
- package/dist/types/components/calcite-avatar/calcite-avatar.d.ts +26 -0
- package/dist/types/components/calcite-block/calcite-block.d.ts +76 -0
- package/dist/types/components/calcite-block-section/calcite-block-section.d.ts +43 -0
- package/dist/types/components/calcite-button/calcite-button.d.ts +81 -0
- package/dist/types/components/calcite-card/calcite-card.d.ts +46 -0
- package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +73 -0
- package/dist/types/components/calcite-chip/calcite-chip.d.ts +40 -0
- package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +224 -0
- package/dist/types/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.d.ts +51 -0
- package/dist/types/components/calcite-color-picker-swatch/calcite-color-picker-swatch.d.ts +23 -0
- package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +181 -0
- package/dist/types/components/calcite-combobox/interfaces.d.ts +6 -0
- package/dist/types/components/calcite-combobox/resources.d.ts +3 -0
- package/dist/types/components/calcite-combobox/utils.d.ts +6 -0
- package/dist/types/components/calcite-combobox-item/calcite-combobox-item.d.ts +46 -0
- package/dist/types/components/calcite-combobox-item-group/calcite-combobox-item-group.d.ts +17 -0
- package/dist/types/components/calcite-date-picker/calcite-date-picker.d.ts +132 -0
- package/dist/types/components/calcite-date-picker-day/calcite-date-picker-day.d.ts +45 -0
- package/dist/types/components/calcite-date-picker-month/calcite-date-picker-month.d.ts +97 -0
- package/dist/types/components/calcite-date-picker-month-header/calcite-date-picker-month-header.d.ts +57 -0
- package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +99 -0
- package/dist/types/components/calcite-dropdown-group/calcite-dropdown-group.d.ts +32 -0
- package/dist/types/components/calcite-dropdown-item/calcite-dropdown-item.d.ts +52 -0
- package/dist/types/components/calcite-fab/calcite-fab.d.ts +47 -0
- package/dist/types/components/calcite-filter/calcite-filter.d.ts +53 -0
- package/dist/types/components/calcite-flow/calcite-flow.d.ts +22 -0
- package/dist/types/components/calcite-graph/calcite-graph.d.ts +28 -0
- package/dist/types/components/calcite-handle/calcite-handle.d.ts +22 -0
- package/dist/types/components/calcite-icon/calcite-icon.d.ts +32 -0
- package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +71 -0
- package/dist/types/components/calcite-input/calcite-input.d.ts +168 -0
- package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +179 -0
- package/dist/types/components/calcite-input-message/calcite-input-message.d.ts +27 -0
- package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +90 -0
- package/dist/types/components/calcite-label/calcite-label.d.ts +33 -0
- package/dist/types/components/calcite-link/calcite-link.d.ts +38 -0
- package/dist/types/components/calcite-list/calcite-list.d.ts +16 -0
- package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +40 -0
- package/dist/types/components/calcite-list-item-group/calcite-list-item-group.d.ts +18 -0
- package/dist/types/components/calcite-loader/calcite-loader.d.ts +27 -0
- package/dist/types/components/calcite-modal/calcite-modal.d.ts +89 -0
- package/dist/types/components/calcite-notice/calcite-notice.d.ts +51 -0
- package/dist/types/components/calcite-pagination/calcite-pagination.d.ts +51 -0
- package/dist/types/components/calcite-panel/calcite-panel.d.ts +130 -0
- package/dist/types/components/calcite-pick-list/calcite-pick-list.d.ts +75 -0
- package/dist/types/components/calcite-pick-list/shared-list-logic.d.ts +31 -0
- package/dist/types/components/calcite-pick-list/shared-list-render.d.ts +18 -0
- package/dist/types/components/calcite-pick-list-group/calcite-pick-list-group.d.ts +21 -0
- package/dist/types/components/calcite-pick-list-item/calcite-pick-list-item.d.ts +106 -0
- package/dist/types/components/calcite-popover/calcite-popover.d.ts +107 -0
- package/dist/types/components/calcite-popover-manager/calcite-popover-manager.d.ts +19 -0
- package/dist/types/components/calcite-progress/calcite-progress.d.ts +15 -0
- package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +92 -0
- package/dist/types/components/calcite-radio-button-group/calcite-radio-button-group.d.ts +34 -0
- package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +56 -0
- package/dist/types/components/calcite-radio-group-item/calcite-radio-group-item.d.ts +24 -0
- package/dist/types/components/calcite-rating/calcite-rating.d.ts +60 -0
- package/dist/types/components/calcite-scrim/calcite-scrim.d.ts +17 -0
- package/dist/types/components/calcite-select/calcite-select.d.ts +75 -0
- package/dist/types/components/calcite-shell/calcite-shell.d.ts +24 -0
- package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +25 -0
- package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +69 -0
- package/dist/types/components/calcite-slider/calcite-slider.d.ts +193 -0
- package/dist/types/components/calcite-sortable-list/calcite-sortable-list.d.ts +50 -0
- package/dist/types/components/calcite-split-button/calcite-split-button.d.ts +52 -0
- package/dist/types/components/calcite-stepper/calcite-stepper.d.ts +58 -0
- package/dist/types/components/calcite-stepper-item/calcite-stepper-item.d.ts +65 -0
- package/dist/types/components/calcite-switch/calcite-switch.d.ts +46 -0
- package/dist/types/components/calcite-tab/calcite-tab.d.ts +42 -0
- package/dist/types/components/calcite-tab-nav/calcite-tab-nav.d.ts +74 -0
- package/dist/types/components/calcite-tab-title/calcite-tab-title.d.ts +92 -0
- package/dist/types/components/calcite-tabs/calcite-tabs.d.ts +65 -0
- package/dist/types/components/calcite-tile/calcite-tile.d.ts +36 -0
- package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +57 -0
- package/dist/types/components/calcite-tile-select/resources.d.ts +16 -0
- package/dist/types/components/calcite-time-picker/calcite-time-picker.d.ts +135 -0
- package/dist/types/components/calcite-tip/calcite-tip.d.ts +47 -0
- package/dist/types/components/calcite-tip-manager/calcite-tip-manager.d.ts +65 -0
- package/dist/types/components/calcite-tooltip/calcite-tooltip.d.ts +60 -0
- package/dist/types/components/calcite-tooltip-manager/calcite-tooltip-manager.d.ts +41 -0
- package/dist/types/components/calcite-tree/calcite-tree.d.ts +38 -0
- package/dist/types/components/calcite-tree/interfaces.d.ts +10 -0
- package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +60 -0
- package/dist/types/components/calcite-value-list/calcite-value-list.d.ts +89 -0
- package/dist/types/components/calcite-value-list-item/calcite-value-list-item.d.ts +79 -0
- package/dist/types/components/functional/CalciteExpandToggle.d.ts +19 -0
- package/dist/types/components.d.ts +62 -32
- package/dist/types/preact.d.ts +5 -4
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/utils/dom.d.ts +21 -3
- package/dist/types/utils/globalAttributes.d.ts +35 -0
- package/dist/types/utils/label.d.ts +39 -0
- package/dist/types/utils/number.d.ts +2 -1
- package/hydrate/index.js +1244 -759
- package/package.json +35 -32
- package/readme.md +2 -36
- package/dist/calcite/p-0229a408.js +0 -5
- package/dist/calcite/p-057197f8.entry.js +0 -5
- package/dist/calcite/p-05c10c53.entry.js +0 -5
- package/dist/calcite/p-05edaadf.system.entry.js +0 -5
- package/dist/calcite/p-0b45733b.entry.js +0 -5
- package/dist/calcite/p-112f20e6.system.entry.js +0 -5
- package/dist/calcite/p-11f01c0a.entry.js +0 -5
- package/dist/calcite/p-18d9a261.system.js +0 -5
- package/dist/calcite/p-1942876c.js +0 -5
- package/dist/calcite/p-2151c991.entry.js +0 -5
- package/dist/calcite/p-288899b9.entry.js +0 -5
- package/dist/calcite/p-288bc438.system.js +0 -5
- package/dist/calcite/p-2b294f8e.system.entry.js +0 -5
- package/dist/calcite/p-2be1e8ee.entry.js +0 -5
- package/dist/calcite/p-2d939f9e.system.entry.js +0 -5
- package/dist/calcite/p-2fbd50f3.system.entry.js +0 -5
- package/dist/calcite/p-30036f23.system.entry.js +0 -5
- package/dist/calcite/p-35a5c74c.system.js +0 -5
- package/dist/calcite/p-3739338a.system.entry.js +0 -5
- package/dist/calcite/p-3c25cb72.system.entry.js +0 -5
- package/dist/calcite/p-3d8ee39d.system.entry.js +0 -5
- package/dist/calcite/p-3dae9da3.js +0 -5
- package/dist/calcite/p-3e9c6068.entry.js +0 -5
- package/dist/calcite/p-3f8527a3.entry.js +0 -5
- package/dist/calcite/p-40991717.entry.js +0 -5
- package/dist/calcite/p-4278fb57.entry.js +0 -5
- package/dist/calcite/p-44cce7a3.system.entry.js +0 -5
- package/dist/calcite/p-4d02c6c0.system.entry.js +0 -5
- package/dist/calcite/p-4e9d072a.system.js +0 -5
- package/dist/calcite/p-4f1f716a.system.entry.js +0 -5
- package/dist/calcite/p-4f7ebefc.system.js +0 -5
- package/dist/calcite/p-52cc870b.js +0 -5
- package/dist/calcite/p-55f68e28.entry.js +0 -5
- package/dist/calcite/p-57169a74.entry.js +0 -5
- package/dist/calcite/p-5c9d89ce.system.entry.js +0 -5
- package/dist/calcite/p-62f3d4df.system.js +0 -5
- package/dist/calcite/p-63b9f804.entry.js +0 -5
- package/dist/calcite/p-689790cb.system.entry.js +0 -5
- package/dist/calcite/p-69bd1f5f.system.entry.js +0 -5
- package/dist/calcite/p-6a87d7b2.entry.js +0 -5
- package/dist/calcite/p-6cc23c39.system.js +0 -5
- package/dist/calcite/p-6faaa8af.system.entry.js +0 -5
- package/dist/calcite/p-6fb63fc1.entry.js +0 -5
- package/dist/calcite/p-72a60528.system.entry.js +0 -5
- package/dist/calcite/p-763479d6.system.entry.js +0 -5
- package/dist/calcite/p-768018df.entry.js +0 -5
- package/dist/calcite/p-76eda40b.entry.js +0 -5
- package/dist/calcite/p-7ac9f860.entry.js +0 -5
- package/dist/calcite/p-7ff5e336.entry.js +0 -5
- package/dist/calcite/p-8340b572.js +0 -5
- package/dist/calcite/p-83744979.system.js +0 -5
- package/dist/calcite/p-88296be9.system.entry.js +0 -5
- package/dist/calcite/p-88b31760.system.entry.js +0 -5
- package/dist/calcite/p-8a8982ab.system.entry.js +0 -5
- package/dist/calcite/p-8ebc2d51.entry.js +0 -5
- package/dist/calcite/p-9180be05.system.entry.js +0 -5
- package/dist/calcite/p-93a189be.entry.js +0 -5
- package/dist/calcite/p-97117a5d.entry.js +0 -5
- package/dist/calcite/p-97efd284.system.entry.js +0 -5
- package/dist/calcite/p-998829cb.system.entry.js +0 -5
- package/dist/calcite/p-9a1ffbad.system.entry.js +0 -5
- package/dist/calcite/p-9a8f3883.entry.js +0 -5
- package/dist/calcite/p-9b979692.entry.js +0 -5
- package/dist/calcite/p-9fc14d49.entry.js +0 -5
- package/dist/calcite/p-9feb0f5a.system.entry.js +0 -5
- package/dist/calcite/p-a3c498de.entry.js +0 -5
- package/dist/calcite/p-a4784cf3.system.entry.js +0 -5
- package/dist/calcite/p-a6f99f79.entry.js +0 -5
- package/dist/calcite/p-a98344e2.system.entry.js +0 -5
- package/dist/calcite/p-a9f596be.system.entry.js +0 -5
- package/dist/calcite/p-adf4699d.system.entry.js +0 -5
- package/dist/calcite/p-b180d943.system.entry.js +0 -5
- package/dist/calcite/p-b2f0596f.entry.js +0 -5
- package/dist/calcite/p-b437a8eb.system.entry.js +0 -5
- package/dist/calcite/p-b43e699c.system.entry.js +0 -5
- package/dist/calcite/p-ba7c0f01.system.entry.js +0 -5
- package/dist/calcite/p-bd091b49.system.entry.js +0 -5
- package/dist/calcite/p-bdca5372.entry.js +0 -5
- package/dist/calcite/p-bfa6bd72.entry.js +0 -5
- package/dist/calcite/p-c00b1d26.js +0 -5
- package/dist/calcite/p-c2bfd7f9.system.entry.js +0 -5
- package/dist/calcite/p-c2fcf603.system.entry.js +0 -5
- package/dist/calcite/p-c34c4414.system.js +0 -5
- package/dist/calcite/p-c70bacc8.system.entry.js +0 -5
- package/dist/calcite/p-c8c6323c.entry.js +0 -5
- package/dist/calcite/p-cb660e54.entry.js +0 -5
- package/dist/calcite/p-cd5d5756.system.entry.js +0 -5
- package/dist/calcite/p-ce704ece.js +0 -5
- package/dist/calcite/p-cf499949.entry.js +0 -5
- package/dist/calcite/p-d17cfab3.entry.js +0 -5
- package/dist/calcite/p-d3bd900e.js +0 -5
- package/dist/calcite/p-d4d5665a.system.entry.js +0 -5
- package/dist/calcite/p-d9414082.system.entry.js +0 -5
- package/dist/calcite/p-dc7124e9.entry.js +0 -5
- package/dist/calcite/p-dc777403.system.entry.js +0 -5
- package/dist/calcite/p-dda22c7e.system.entry.js +0 -5
- package/dist/calcite/p-de67ba93.system.entry.js +0 -5
- package/dist/calcite/p-e09bac0d.system.entry.js +0 -5
- package/dist/calcite/p-e35b29f5.system.entry.js +0 -5
- package/dist/calcite/p-e4acb5a8.js +0 -5
- package/dist/calcite/p-e54784a8.system.entry.js +0 -5
- package/dist/calcite/p-e63c6a55.system.entry.js +0 -5
- package/dist/calcite/p-e697ab57.system.entry.js +0 -5
- package/dist/calcite/p-e7801f1d.entry.js +0 -5
- package/dist/calcite/p-e7f7b0f8.js +0 -5
- package/dist/calcite/p-eebd2bb0.entry.js +0 -5
- package/dist/calcite/p-f2340d02.system.entry.js +0 -5
- package/dist/calcite/p-f25f139a.entry.js +0 -5
- package/dist/calcite/p-f28d8e9e.system.entry.js +0 -5
- package/dist/calcite/p-f2f2ad57.entry.js +0 -5
- package/dist/calcite/p-f4a7fa43.entry.js +0 -5
- package/dist/calcite/p-f595d924.js +0 -5
- package/dist/calcite/p-f72c037c.entry.js +0 -5
- package/dist/calcite/p-f9e7371d.entry.js +0 -5
- package/dist/calcite/p-fc265aaf.entry.js +0 -5
- package/dist/calcite/p-fd94e88d.system.entry.js +0 -5
- package/dist/cjs/locale-33c458dc.js +0 -123
- package/dist/cjs/number-73f7b474.js +0 -58
- package/dist/esm/locale-4c38cf6d.js +0 -118
- package/dist/esm/number-06e8500e.js +0 -51
- package/dist/esm-es5/dom-f24e866c.js +0 -5
- package/dist/esm-es5/label-5559055d.js +0 -5
- package/dist/esm-es5/locale-4c38cf6d.js +0 -5
- package/dist/esm-es5/number-06e8500e.js +0 -5
- package/dist/esm-es5/popper-f5caedc4.js +0 -5
- package/dist/esm-es5/resources-35c1823f.js +0 -5
- package/dist/esm-es5/resources-b4eee1d4.js +0 -5
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import Sortable from "sortablejs";
|
|
8
|
+
import { Component, Element, Event, h, Listen, Method, Prop, State } from "@stencil/core";
|
|
9
|
+
import { CSS, ICON_TYPES } from "./resources";
|
|
10
|
+
import { calciteListItemChangeHandler, calciteListItemValueChangeHandler, cleanUpObserver, deselectSiblingItems, deselectRemovedItems, getItemData, handleFilter, initialize, initializeObserver, keyDownHandler, mutationObserverCallback, removeItem, selectSiblings, setFocus, setUpItems } from "../pick-list/shared-list-logic";
|
|
11
|
+
import List from "../pick-list/shared-list-render";
|
|
12
|
+
import { getRoundRobinIndex } from "../../utils/array";
|
|
13
|
+
import { createObserver } from "../../utils/observers";
|
|
14
|
+
/**
|
|
15
|
+
* @slot - A slot for adding `calcite-value-list-item` elements. Items are displayed as a vertical list.
|
|
16
|
+
* @slot menu-actions - A slot for adding a button + menu combo for performing actions like sorting.
|
|
17
|
+
*/
|
|
18
|
+
let ValueList = class ValueList {
|
|
19
|
+
constructor() {
|
|
20
|
+
// --------------------------------------------------------------------------
|
|
21
|
+
//
|
|
22
|
+
// Properties
|
|
23
|
+
//
|
|
24
|
+
// --------------------------------------------------------------------------
|
|
25
|
+
/**
|
|
26
|
+
* When true, disabled prevents interaction. This state shows items with lower opacity/grayed.
|
|
27
|
+
*/
|
|
28
|
+
this.disabled = false;
|
|
29
|
+
/**
|
|
30
|
+
* When true, the items will be sortable via drag and drop.
|
|
31
|
+
*/
|
|
32
|
+
this.dragEnabled = false;
|
|
33
|
+
/**
|
|
34
|
+
* When true, an input appears at the top of the list that can be used by end users to filter items in the list.
|
|
35
|
+
*/
|
|
36
|
+
this.filterEnabled = false;
|
|
37
|
+
/**
|
|
38
|
+
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
39
|
+
*/
|
|
40
|
+
this.loading = false;
|
|
41
|
+
/**
|
|
42
|
+
* Multiple Works similar to standard radio buttons and checkboxes.
|
|
43
|
+
* When true, a user can select multiple items at a time.
|
|
44
|
+
* When false, only a single item can be selected at a time
|
|
45
|
+
* and selecting a new item will deselect any other selected items.
|
|
46
|
+
*/
|
|
47
|
+
this.multiple = false;
|
|
48
|
+
/**
|
|
49
|
+
* When true and single-selection is enabled, the selection will change when navigating items via the keyboard.
|
|
50
|
+
*/
|
|
51
|
+
this.selectionFollowsFocus = false;
|
|
52
|
+
// --------------------------------------------------------------------------
|
|
53
|
+
//
|
|
54
|
+
// Private Properties
|
|
55
|
+
//
|
|
56
|
+
// --------------------------------------------------------------------------
|
|
57
|
+
this.selectedValues = new Map();
|
|
58
|
+
this.dataForFilter = [];
|
|
59
|
+
this.lastSelectedItem = null;
|
|
60
|
+
this.mutationObserver = createObserver("mutation", mutationObserverCallback.bind(this));
|
|
61
|
+
this.setFilterEl = (el) => {
|
|
62
|
+
this.filterEl = el;
|
|
63
|
+
};
|
|
64
|
+
this.deselectRemovedItems = deselectRemovedItems.bind(this);
|
|
65
|
+
this.deselectSiblingItems = deselectSiblingItems.bind(this);
|
|
66
|
+
this.selectSiblings = selectSiblings.bind(this);
|
|
67
|
+
this.handleFilter = handleFilter.bind(this);
|
|
68
|
+
this.getItemData = getItemData.bind(this);
|
|
69
|
+
this.keyDownHandler = (event) => {
|
|
70
|
+
const handleElement = event
|
|
71
|
+
.composedPath()
|
|
72
|
+
.find((item) => { var _a; return ((_a = item.dataset) === null || _a === void 0 ? void 0 : _a.jsHandle) !== undefined; });
|
|
73
|
+
const item = event
|
|
74
|
+
.composedPath()
|
|
75
|
+
.find((item) => { var _a; return ((_a = item.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "calcite-value-list-item"; });
|
|
76
|
+
// Only trigger keyboard sorting when the internal drag handle is focused and activated
|
|
77
|
+
if (!handleElement || !item.handleActivated) {
|
|
78
|
+
keyDownHandler.call(this, event);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const { items } = this;
|
|
82
|
+
if ((event.key !== "ArrowUp" && event.key !== "ArrowDown") || items.length <= 1) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
event.preventDefault();
|
|
86
|
+
const { el } = this;
|
|
87
|
+
const moveOffset = event.key === "ArrowDown" ? 1 : -1;
|
|
88
|
+
const currentIndex = items.indexOf(item);
|
|
89
|
+
const nextIndex = getRoundRobinIndex(currentIndex + moveOffset, items.length);
|
|
90
|
+
if (nextIndex === items.length - 1) {
|
|
91
|
+
el.appendChild(item);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
const itemAtNextIndex = el.children[nextIndex];
|
|
95
|
+
const insertionReferenceItem = itemAtNextIndex === item.nextElementSibling
|
|
96
|
+
? itemAtNextIndex.nextElementSibling
|
|
97
|
+
: itemAtNextIndex;
|
|
98
|
+
el.insertBefore(item, insertionReferenceItem);
|
|
99
|
+
}
|
|
100
|
+
this.items = this.getItems();
|
|
101
|
+
this.calciteListOrderChange.emit(this.items.map(({ value }) => value));
|
|
102
|
+
requestAnimationFrame(() => handleElement.focus());
|
|
103
|
+
item.handleActivated = true;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
// --------------------------------------------------------------------------
|
|
107
|
+
//
|
|
108
|
+
// Lifecycle
|
|
109
|
+
//
|
|
110
|
+
// --------------------------------------------------------------------------
|
|
111
|
+
connectedCallback() {
|
|
112
|
+
initialize.call(this);
|
|
113
|
+
initializeObserver.call(this);
|
|
114
|
+
}
|
|
115
|
+
componentDidLoad() {
|
|
116
|
+
this.setUpDragAndDrop();
|
|
117
|
+
}
|
|
118
|
+
disconnectedCallback() {
|
|
119
|
+
cleanUpObserver.call(this);
|
|
120
|
+
this.cleanUpDragAndDrop();
|
|
121
|
+
}
|
|
122
|
+
calciteListItemRemoveHandler(event) {
|
|
123
|
+
removeItem.call(this, event);
|
|
124
|
+
}
|
|
125
|
+
calciteListItemChangeHandler(event) {
|
|
126
|
+
calciteListItemChangeHandler.call(this, event);
|
|
127
|
+
}
|
|
128
|
+
calciteListItemPropsChangeHandler(event) {
|
|
129
|
+
event.stopPropagation();
|
|
130
|
+
this.setUpFilter();
|
|
131
|
+
}
|
|
132
|
+
calciteListItemValueChangeHandler(event) {
|
|
133
|
+
calciteListItemValueChangeHandler.call(this, event);
|
|
134
|
+
}
|
|
135
|
+
// --------------------------------------------------------------------------
|
|
136
|
+
//
|
|
137
|
+
// Private Methods
|
|
138
|
+
//
|
|
139
|
+
// --------------------------------------------------------------------------
|
|
140
|
+
getItems() {
|
|
141
|
+
return Array.from(this.el.querySelectorAll("calcite-value-list-item"));
|
|
142
|
+
}
|
|
143
|
+
setUpItems() {
|
|
144
|
+
setUpItems.call(this, "calcite-value-list-item");
|
|
145
|
+
}
|
|
146
|
+
setUpFilter() {
|
|
147
|
+
if (this.filterEnabled) {
|
|
148
|
+
this.dataForFilter = this.getItemData();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
setUpDragAndDrop() {
|
|
152
|
+
this.cleanUpDragAndDrop();
|
|
153
|
+
if (!this.dragEnabled) {
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
this.sortable = Sortable.create(this.el, {
|
|
157
|
+
dataIdAttr: "id",
|
|
158
|
+
handle: `.${CSS.handle}`,
|
|
159
|
+
draggable: "calcite-value-list-item",
|
|
160
|
+
group: this.group,
|
|
161
|
+
onSort: () => {
|
|
162
|
+
this.items = Array.from(this.el.querySelectorAll("calcite-value-list-item"));
|
|
163
|
+
const values = this.items.map((item) => item.value);
|
|
164
|
+
this.calciteListOrderChange.emit(values);
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
cleanUpDragAndDrop() {
|
|
169
|
+
var _a;
|
|
170
|
+
(_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
171
|
+
this.sortable = null;
|
|
172
|
+
}
|
|
173
|
+
// --------------------------------------------------------------------------
|
|
174
|
+
//
|
|
175
|
+
// Public Methods
|
|
176
|
+
//
|
|
177
|
+
// --------------------------------------------------------------------------
|
|
178
|
+
/** Returns the currently selected items */
|
|
179
|
+
async getSelectedItems() {
|
|
180
|
+
return this.selectedValues;
|
|
181
|
+
}
|
|
182
|
+
/** Sets focus on the component. */
|
|
183
|
+
async setFocus(focusId) {
|
|
184
|
+
return setFocus.call(this, focusId);
|
|
185
|
+
}
|
|
186
|
+
// --------------------------------------------------------------------------
|
|
187
|
+
//
|
|
188
|
+
// Render Methods
|
|
189
|
+
//
|
|
190
|
+
// --------------------------------------------------------------------------
|
|
191
|
+
getIconType() {
|
|
192
|
+
let type = null;
|
|
193
|
+
if (this.dragEnabled) {
|
|
194
|
+
type = ICON_TYPES.grip;
|
|
195
|
+
}
|
|
196
|
+
return type;
|
|
197
|
+
}
|
|
198
|
+
render() {
|
|
199
|
+
return h(List, { onKeyDown: this.keyDownHandler, props: this });
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
__decorate([
|
|
203
|
+
Prop({ reflect: true })
|
|
204
|
+
], ValueList.prototype, "disabled", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
Prop({ reflect: true })
|
|
207
|
+
], ValueList.prototype, "dragEnabled", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
Prop({ reflect: true })
|
|
210
|
+
], ValueList.prototype, "filterEnabled", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
Prop({ reflect: true })
|
|
213
|
+
], ValueList.prototype, "filterPlaceholder", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
Prop()
|
|
216
|
+
], ValueList.prototype, "group", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
Prop({ reflect: true })
|
|
219
|
+
], ValueList.prototype, "loading", void 0);
|
|
220
|
+
__decorate([
|
|
221
|
+
Prop({ reflect: true })
|
|
222
|
+
], ValueList.prototype, "multiple", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
Prop()
|
|
225
|
+
], ValueList.prototype, "selectionFollowsFocus", void 0);
|
|
226
|
+
__decorate([
|
|
227
|
+
State()
|
|
228
|
+
], ValueList.prototype, "selectedValues", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
State()
|
|
231
|
+
], ValueList.prototype, "dataForFilter", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
Element()
|
|
234
|
+
], ValueList.prototype, "el", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
Event()
|
|
237
|
+
], ValueList.prototype, "calciteListChange", void 0);
|
|
238
|
+
__decorate([
|
|
239
|
+
Event()
|
|
240
|
+
], ValueList.prototype, "calciteListOrderChange", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
Listen("calciteListItemRemove")
|
|
243
|
+
], ValueList.prototype, "calciteListItemRemoveHandler", null);
|
|
244
|
+
__decorate([
|
|
245
|
+
Listen("calciteListItemChange")
|
|
246
|
+
], ValueList.prototype, "calciteListItemChangeHandler", null);
|
|
247
|
+
__decorate([
|
|
248
|
+
Listen("calciteListItemPropsChange")
|
|
249
|
+
], ValueList.prototype, "calciteListItemPropsChangeHandler", null);
|
|
250
|
+
__decorate([
|
|
251
|
+
Listen("calciteListItemValueChange")
|
|
252
|
+
], ValueList.prototype, "calciteListItemValueChangeHandler", null);
|
|
253
|
+
__decorate([
|
|
254
|
+
Method()
|
|
255
|
+
], ValueList.prototype, "getSelectedItems", null);
|
|
256
|
+
__decorate([
|
|
257
|
+
Method()
|
|
258
|
+
], ValueList.prototype, "setFocus", null);
|
|
259
|
+
ValueList = __decorate([
|
|
260
|
+
Component({
|
|
261
|
+
tag: "calcite-value-list",
|
|
262
|
+
styleUrl: "value-list.scss",
|
|
263
|
+
shadow: true
|
|
264
|
+
})
|
|
265
|
+
], ValueList);
|
|
266
|
+
export { ValueList };
|
|
@@ -3,24 +3,35 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { forceUpdate } from "@stencil/core";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
const eventType = "slotchange";
|
|
6
|
+
import { createObserver } from "./observers";
|
|
7
|
+
const observed = new Set();
|
|
8
|
+
let mutationObserver;
|
|
9
|
+
const observerOptions = { childList: true };
|
|
11
10
|
/**
|
|
12
11
|
* Helper to set up a conditional slot component on connectedCallback.
|
|
13
12
|
*/
|
|
14
13
|
export function connectConditionalSlotComponent(component) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
if (!mutationObserver) {
|
|
15
|
+
mutationObserver = createObserver("mutation", processMutations);
|
|
16
|
+
}
|
|
17
|
+
mutationObserver.observe(component.el, observerOptions);
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Helper to tear down a conditional slot component on disconnectedCallback.
|
|
21
21
|
*/
|
|
22
22
|
export function disconnectConditionalSlotComponent(component) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
observed.delete(component.el);
|
|
24
|
+
// we explicitly process queued mutations and disconnect and reconnect
|
|
25
|
+
// the observer until MutationObserver gets an `unobserve` method
|
|
26
|
+
// see https://github.com/whatwg/dom/issues/126
|
|
27
|
+
processMutations(mutationObserver.takeRecords());
|
|
28
|
+
mutationObserver.disconnect();
|
|
29
|
+
for (const [element] of observed.entries()) {
|
|
30
|
+
mutationObserver.observe(element, observerOptions);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function processMutations(mutations) {
|
|
34
|
+
mutations.forEach(({ target }) => {
|
|
35
|
+
forceUpdate(target);
|
|
36
|
+
});
|
|
26
37
|
}
|
|
@@ -21,7 +21,8 @@ export function nodeListToArray(nodeList) {
|
|
|
21
21
|
return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);
|
|
22
22
|
}
|
|
23
23
|
export function getThemeName(el) {
|
|
24
|
-
|
|
24
|
+
const closestElWithTheme = closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}, .${CSS_UTILITY.lightTheme}`);
|
|
25
|
+
return (closestElWithTheme === null || closestElWithTheme === void 0 ? void 0 : closestElWithTheme.classList.contains("calcite-theme-dark")) ? "dark" : "light";
|
|
25
26
|
}
|
|
26
27
|
export function getElementDir(el) {
|
|
27
28
|
const prop = "dir";
|
|
@@ -40,10 +41,14 @@ export function getRootNode(el) {
|
|
|
40
41
|
export function getHost(root) {
|
|
41
42
|
return root.host || null;
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
/**
|
|
45
|
+
* This helper queries an element's rootNodes and any ancestor rootNodes.
|
|
46
|
+
*
|
|
47
|
+
* @returns {Element[]} The elements.
|
|
48
|
+
*/
|
|
45
49
|
export function queryElementsRoots(element, selector) {
|
|
46
50
|
// Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
|
|
51
|
+
// Based on: https://stackoverflow.com/q/54520554/194216
|
|
47
52
|
function queryFromAll(el, allResults) {
|
|
48
53
|
if (!el) {
|
|
49
54
|
return allResults;
|
|
@@ -60,10 +65,16 @@ export function queryElementsRoots(element, selector) {
|
|
|
60
65
|
}
|
|
61
66
|
return queryFromAll(element, []);
|
|
62
67
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
68
|
+
/**
|
|
69
|
+
* This helper queries an element's rootNode and any ancestor rootNodes.
|
|
70
|
+
*
|
|
71
|
+
* If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.
|
|
72
|
+
*
|
|
73
|
+
* @returns {Element} The element.
|
|
74
|
+
*/
|
|
75
|
+
export function queryElementRoots(element, { selector, id }) {
|
|
66
76
|
// Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.
|
|
77
|
+
// Based on: https://stackoverflow.com/q/54520554/194216
|
|
67
78
|
function queryFrom(el) {
|
|
68
79
|
if (!el) {
|
|
69
80
|
return null;
|
|
@@ -72,7 +83,11 @@ export function queryElementRoots(element, selector) {
|
|
|
72
83
|
el = el.assignedSlot;
|
|
73
84
|
}
|
|
74
85
|
const rootNode = getRootNode(el);
|
|
75
|
-
const found =
|
|
86
|
+
const found = id
|
|
87
|
+
? rootNode.getElementById(id)
|
|
88
|
+
: selector
|
|
89
|
+
? rootNode.querySelector(selector)
|
|
90
|
+
: null;
|
|
76
91
|
const host = getHost(rootNode);
|
|
77
92
|
return found ? found : host ? queryFrom(host) : null;
|
|
78
93
|
}
|
|
@@ -94,16 +109,31 @@ export async function focusElement(el) {
|
|
|
94
109
|
}
|
|
95
110
|
return isCalciteFocusable(el) ? el.setFocus() : el.focus();
|
|
96
111
|
}
|
|
112
|
+
const defaultSlotSelector = ":not([slot])";
|
|
97
113
|
export function getSlotted(element, slotName, options) {
|
|
98
|
-
|
|
114
|
+
if (slotName && !Array.isArray(slotName) && typeof slotName !== "string") {
|
|
115
|
+
options = slotName;
|
|
116
|
+
slotName = null;
|
|
117
|
+
}
|
|
118
|
+
const slotSelector = slotName
|
|
119
|
+
? Array.isArray(slotName)
|
|
120
|
+
? slotName.map((name) => `[slot="${name}"]`).join(",")
|
|
121
|
+
: `[slot="${slotName}"]`
|
|
122
|
+
: defaultSlotSelector;
|
|
99
123
|
if (options === null || options === void 0 ? void 0 : options.all) {
|
|
100
124
|
return queryMultiple(element, slotSelector, options);
|
|
101
125
|
}
|
|
102
126
|
return querySingle(element, slotSelector, options);
|
|
103
127
|
}
|
|
128
|
+
function getDirectChildren(el, selector) {
|
|
129
|
+
return el ? Array.from(el.children || []).filter((child) => child === null || child === void 0 ? void 0 : child.matches(selector)) : [];
|
|
130
|
+
}
|
|
104
131
|
function queryMultiple(element, slotSelector, options) {
|
|
105
|
-
let matches =
|
|
132
|
+
let matches = slotSelector === defaultSlotSelector
|
|
133
|
+
? getDirectChildren(element, defaultSlotSelector)
|
|
134
|
+
: Array.from(element.querySelectorAll(slotSelector));
|
|
106
135
|
matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);
|
|
136
|
+
matches = (options === null || options === void 0 ? void 0 : options.matches) ? matches.filter((el) => el === null || el === void 0 ? void 0 : el.matches(options.matches)) : matches;
|
|
107
137
|
const selector = options === null || options === void 0 ? void 0 : options.selector;
|
|
108
138
|
return selector
|
|
109
139
|
? matches
|
|
@@ -113,10 +143,13 @@ function queryMultiple(element, slotSelector, options) {
|
|
|
113
143
|
: matches;
|
|
114
144
|
}
|
|
115
145
|
function querySingle(element, slotSelector, options) {
|
|
116
|
-
let match =
|
|
146
|
+
let match = slotSelector === defaultSlotSelector
|
|
147
|
+
? getDirectChildren(element, defaultSlotSelector)[0] || null
|
|
148
|
+
: element.querySelector(slotSelector);
|
|
117
149
|
match = options && options.direct === false ? match : (match === null || match === void 0 ? void 0 : match.parentElement) === element ? match : null;
|
|
150
|
+
match = (options === null || options === void 0 ? void 0 : options.matches) ? ((match === null || match === void 0 ? void 0 : match.matches(options.matches)) ? match : null) : match;
|
|
118
151
|
const selector = options === null || options === void 0 ? void 0 : options.selector;
|
|
119
|
-
return selector ? match.querySelector(selector) : match;
|
|
152
|
+
return selector ? match === null || match === void 0 ? void 0 : match.querySelector(selector) : match;
|
|
120
153
|
}
|
|
121
154
|
export function filterDirectChildren(el, selector) {
|
|
122
155
|
return Array.from(el.children).filter((child) => child.matches(selector));
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
+
*/
|
|
5
|
+
import { createObserver } from "./observers";
|
|
6
|
+
const allowedGlobalAttributes = ["lang"];
|
|
7
|
+
const elementToComponentAndObserverOptionsMap = new Map();
|
|
8
|
+
let mutationObserver;
|
|
9
|
+
function updateGlobalAttributes(component, attributeFilter) {
|
|
10
|
+
const { el } = component;
|
|
11
|
+
const updatedAttributes = {};
|
|
12
|
+
attributeFilter
|
|
13
|
+
.filter((attr) => !!allowedGlobalAttributes.includes(attr) && !!el.hasAttribute(attr))
|
|
14
|
+
.forEach((attr) => {
|
|
15
|
+
const value = el.getAttribute(attr);
|
|
16
|
+
if (value !== null) {
|
|
17
|
+
updatedAttributes[attr] = value;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
component.globalAttributes = updatedAttributes;
|
|
21
|
+
}
|
|
22
|
+
function processMutations(mutations) {
|
|
23
|
+
mutations.forEach(({ target }) => {
|
|
24
|
+
const [component, options] = elementToComponentAndObserverOptionsMap.get(target);
|
|
25
|
+
updateGlobalAttributes(component, options.attributeFilter);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Helper to set up listening for changes to global attributes.
|
|
30
|
+
*
|
|
31
|
+
* render(): VNode {
|
|
32
|
+
* const lang = this.inheritedAttributes['lang'] ?? 'en';
|
|
33
|
+
* return <div>My lang is {lang}</div>;
|
|
34
|
+
* }
|
|
35
|
+
*/
|
|
36
|
+
export function watchGlobalAttributes(component, attributeFilter) {
|
|
37
|
+
const { el } = component;
|
|
38
|
+
const observerOptions = { attributeFilter };
|
|
39
|
+
elementToComponentAndObserverOptionsMap.set(el, [component, observerOptions]);
|
|
40
|
+
updateGlobalAttributes(component, attributeFilter);
|
|
41
|
+
if (!mutationObserver) {
|
|
42
|
+
mutationObserver = createObserver("mutation", processMutations);
|
|
43
|
+
}
|
|
44
|
+
mutationObserver.observe(el, observerOptions);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Helper remove listening for changes to inherited attributes.
|
|
48
|
+
*/
|
|
49
|
+
export function unwatchGlobalAttributes(component) {
|
|
50
|
+
elementToComponentAndObserverOptionsMap.delete(component.el);
|
|
51
|
+
// we explicitly process queued mutations and disconnect and reconnect
|
|
52
|
+
// the observer until MutationObserver gets an `unobserve` method
|
|
53
|
+
// see https://github.com/whatwg/dom/issues/126
|
|
54
|
+
processMutations(mutationObserver.takeRecords());
|
|
55
|
+
mutationObserver.disconnect();
|
|
56
|
+
for (const [element, [, observerOptions]] of elementToComponentAndObserverOptionsMap.entries()) {
|
|
57
|
+
mutationObserver.observe(element, observerOptions);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -12,7 +12,7 @@ const labelTagName = "calcite-label";
|
|
|
12
12
|
const onLabelClickMap = new WeakMap();
|
|
13
13
|
const findLabelForComponent = (componentEl) => {
|
|
14
14
|
const { id } = componentEl;
|
|
15
|
-
const forLabel = id && queryElementRoots(componentEl, `${labelTagName}[for="${id}"]`);
|
|
15
|
+
const forLabel = id && queryElementRoots(componentEl, { selector: `${labelTagName}[for="${id}"]` });
|
|
16
16
|
if (forLabel) {
|
|
17
17
|
return forLabel;
|
|
18
18
|
}
|
|
@@ -72,6 +72,9 @@ export function getLabelText(component) {
|
|
|
72
72
|
return component.label || ((_b = (_a = component.labelEl) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || "";
|
|
73
73
|
}
|
|
74
74
|
function onLabelClick(event) {
|
|
75
|
+
if (this.disabled) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
75
78
|
const containedLabelableChildClicked = this.el.contains(event.detail.sourceEvent.target);
|
|
76
79
|
if (containedLabelableChildClicked) {
|
|
77
80
|
return;
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
|
-
import { sanitizeDecimalString } from "./number";
|
|
5
|
+
import { sanitizeDecimalString, sanitizeExponentialNumberString } from "./number";
|
|
6
6
|
export const locales = [
|
|
7
7
|
"ar",
|
|
8
|
+
"bg",
|
|
8
9
|
"bs",
|
|
9
10
|
"ca",
|
|
10
11
|
"cs",
|
|
@@ -60,23 +61,25 @@ function createLocaleNumberFormatter(locale) {
|
|
|
60
61
|
});
|
|
61
62
|
}
|
|
62
63
|
export function delocalizeNumberString(numberString, locale) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
64
|
+
return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
65
|
+
if (nonExpoNumString) {
|
|
66
|
+
const groupSeparator = getGroupSeparator(locale);
|
|
67
|
+
const decimalSeparator = getDecimalSeparator(locale);
|
|
68
|
+
const splitNumberString = nonExpoNumString.split("");
|
|
69
|
+
const decimalIndex = splitNumberString.lastIndexOf(decimalSeparator);
|
|
70
|
+
const delocalizedNumberString = splitNumberString
|
|
71
|
+
.map((value, index) => {
|
|
72
|
+
if (value === groupSeparator || (value === decimalSeparator && index !== decimalIndex)) {
|
|
73
|
+
return "";
|
|
74
|
+
}
|
|
75
|
+
return value;
|
|
76
|
+
})
|
|
77
|
+
.reduce((string, part) => string + part)
|
|
78
|
+
.replace(decimalSeparator, ".");
|
|
79
|
+
return isNaN(Number(delocalizedNumberString)) ? nonExpoNumString : delocalizedNumberString;
|
|
80
|
+
}
|
|
81
|
+
return nonExpoNumString;
|
|
82
|
+
});
|
|
80
83
|
}
|
|
81
84
|
export function getGroupSeparator(locale) {
|
|
82
85
|
const formatter = createLocaleNumberFormatter(locale);
|
|
@@ -91,25 +94,27 @@ export function getDecimalSeparator(locale) {
|
|
|
91
94
|
return value.trim().length === 0 ? " " : value;
|
|
92
95
|
}
|
|
93
96
|
export function localizeNumberString(numberString, locale, displayGroupSeparator = false) {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
97
|
+
return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
98
|
+
if (nonExpoNumString) {
|
|
99
|
+
const number = Number(sanitizeDecimalString(nonExpoNumString));
|
|
100
|
+
if (!isNaN(number)) {
|
|
101
|
+
const formatter = createLocaleNumberFormatter(locale);
|
|
102
|
+
const parts = formatter.formatToParts(number);
|
|
103
|
+
const localizedNumberString = parts
|
|
104
|
+
.map(({ type, value }) => {
|
|
105
|
+
switch (type) {
|
|
106
|
+
case "group":
|
|
107
|
+
return displayGroupSeparator ? getGroupSeparator(locale) : "";
|
|
108
|
+
case "decimal":
|
|
109
|
+
return getDecimalSeparator(locale);
|
|
110
|
+
default:
|
|
111
|
+
return value;
|
|
112
|
+
}
|
|
113
|
+
})
|
|
114
|
+
.reduce((string, part) => string + part);
|
|
115
|
+
return localizedNumberString;
|
|
116
|
+
}
|
|
117
|
+
return nonExpoNumString;
|
|
112
118
|
}
|
|
113
|
-
}
|
|
114
|
-
return numberString;
|
|
119
|
+
});
|
|
115
120
|
}
|