@esri/calcite-components 1.0.0-next.290 → 1.0.0-next.294
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/CHANGELOG.md +40 -2
- 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/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/calcite.esm.js +1 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/{p-9ff5b403.entry.js → p-0100aeb0.entry.js} +1 -1
- package/dist/calcite/p-05107123.entry.js +5 -0
- package/dist/calcite/{p-cbdf0e6c.js → p-05d1dfc6.js} +1 -1
- package/dist/calcite/{p-a8cd5cde.system.entry.js → p-06646eed.system.entry.js} +1 -1
- package/dist/calcite/{p-3db2dc30.system.entry.js → p-09da1c54.system.entry.js} +2 -2
- package/dist/calcite/{p-280404ef.system.entry.js → p-0d4e82ab.system.entry.js} +1 -1
- package/dist/calcite/{p-f9428f19.system.entry.js → p-10759c71.system.entry.js} +2 -2
- package/dist/calcite/{p-32faf98b.system.entry.js → p-10de63d7.system.entry.js} +1 -1
- package/dist/calcite/p-11113310.entry.js +5 -0
- package/dist/calcite/{p-45b13361.system.entry.js → p-12e1c83f.system.entry.js} +1 -1
- package/dist/calcite/p-1421e818.entry.js +5 -0
- package/dist/calcite/p-17e666d6.system.entry.js +5 -0
- package/dist/calcite/p-1e875199.entry.js +5 -0
- package/dist/calcite/{p-00c20cb8.entry.js → p-22ecf6df.entry.js} +1 -1
- package/dist/calcite/{p-dd92cde1.entry.js → p-2418cceb.entry.js} +1 -1
- package/dist/calcite/{p-32fbf8cd.system.js → p-25a31861.system.js} +1 -1
- package/dist/calcite/{p-8655c0a1.entry.js → p-28261aae.entry.js} +1 -1
- package/dist/calcite/p-2ba00b89.js +5 -0
- package/dist/calcite/{p-91889ade.system.entry.js → p-2ecafa35.system.entry.js} +1 -1
- package/dist/calcite/p-329e1831.system.entry.js +5 -0
- package/dist/calcite/p-3383d9b4.entry.js +5 -0
- package/dist/calcite/p-36e5db45.entry.js +5 -0
- package/dist/calcite/{p-ffb8f0a9.system.entry.js → p-38ee7306.system.entry.js} +1 -1
- package/dist/calcite/{p-8efb43fc.entry.js → p-3962cd38.entry.js} +1 -1
- package/dist/calcite/p-3994ac99.system.entry.js +5 -0
- package/dist/calcite/{p-28fecce5.system.entry.js → p-3bb30b44.system.entry.js} +1 -1
- package/dist/calcite/{p-bb916828.system.entry.js → p-3cf93a58.system.entry.js} +1 -1
- package/dist/calcite/{p-197382be.system.entry.js → p-3e438b5b.system.entry.js} +1 -1
- package/dist/calcite/{p-efbf0d26.entry.js → p-3f1d1bad.entry.js} +1 -1
- package/dist/calcite/{p-4805ca9a.system.entry.js → p-413b4857.system.entry.js} +1 -1
- package/dist/calcite/{p-1f27021e.entry.js → p-4185db77.entry.js} +1 -1
- package/dist/calcite/p-42128a12.entry.js +5 -0
- package/dist/calcite/p-45257edb.js +5 -0
- package/dist/calcite/p-49d5ee42.system.entry.js +5 -0
- package/dist/calcite/{p-e524bf4d.system.entry.js → p-4c7e3915.system.entry.js} +1 -1
- package/dist/calcite/p-4ecd0331.entry.js +5 -0
- package/dist/calcite/p-502736d8.system.entry.js +5 -0
- package/dist/calcite/{p-a1911108.entry.js → p-507b2cc4.entry.js} +1 -1
- package/dist/calcite/{p-34a6550f.system.entry.js → p-527146c8.system.entry.js} +1 -1
- package/dist/calcite/{p-5fda3de2.js → p-52cc870b.js} +1 -1
- package/dist/calcite/{p-6fe5f2de.system.entry.js → p-5322b333.system.entry.js} +1 -1
- package/dist/calcite/{p-382556c4.system.entry.js → p-58716826.system.entry.js} +1 -1
- package/dist/calcite/{p-5accac7d.system.entry.js → p-58e98b2d.system.entry.js} +1 -1
- package/dist/calcite/{p-11071ac7.entry.js → p-58eca102.entry.js} +1 -1
- package/dist/calcite/p-5e6d76dc.entry.js +5 -0
- package/dist/calcite/{p-33e58a20.entry.js → p-5efd7297.entry.js} +1 -1
- package/dist/calcite/{p-1682482b.entry.js → p-6621aee1.entry.js} +1 -1
- package/dist/calcite/{p-2b13e5a9.system.entry.js → p-684ccd4e.system.entry.js} +1 -1
- package/dist/calcite/{p-380c71e8.system.entry.js → p-6988c6b7.system.entry.js} +1 -1
- package/dist/calcite/p-6c8a562f.system.entry.js +5 -0
- package/dist/calcite/{p-a8c759ae.system.js → p-6cc23c39.system.js} +1 -1
- package/dist/calcite/{p-800874fd.entry.js → p-72fa390e.entry.js} +1 -1
- package/dist/calcite/p-75f714c9.entry.js +5 -0
- package/dist/calcite/p-76ccd204.entry.js +5 -0
- package/dist/calcite/{p-50e1a7c9.system.entry.js → p-777c833f.system.entry.js} +1 -1
- package/dist/calcite/{p-7fab451d.js → p-79cbbf2d.js} +1 -1
- package/dist/calcite/p-7a6c6382.entry.js +5 -0
- package/dist/calcite/p-7ade2294.system.entry.js +5 -0
- package/dist/calcite/p-7b869bc5.entry.js +5 -0
- package/dist/calcite/{p-fe3880f2.entry.js → p-7c37ca39.entry.js} +1 -1
- package/dist/calcite/{p-1b2c1f55.entry.js → p-7dd5c4e4.entry.js} +1 -1
- package/dist/calcite/{p-5b87b98f.system.entry.js → p-8007a0b4.system.entry.js} +1 -1
- package/dist/calcite/{p-a20df95c.js → p-809ddb6a.js} +1 -1
- package/dist/calcite/{p-4b2f69cc.entry.js → p-83302e1c.entry.js} +1 -1
- package/dist/calcite/{p-9358deb1.system.entry.js → p-83ccefba.system.entry.js} +1 -1
- package/dist/calcite/p-8711a0ae.system.entry.js +5 -0
- package/dist/calcite/{p-16148eef.entry.js → p-8953f712.entry.js} +1 -1
- package/dist/calcite/{p-c74fc589.system.js → p-89cdfa96.system.js} +1 -1
- package/dist/calcite/{p-34fdad31.entry.js → p-8bc3e126.entry.js} +1 -1
- package/dist/calcite/p-948aca0d.system.entry.js +5 -0
- package/dist/calcite/{p-b95dbc48.system.entry.js → p-98789055.system.entry.js} +1 -1
- package/dist/calcite/p-99ff3a2f.entry.js +5 -0
- package/dist/calcite/{p-8967b27b.entry.js → p-9affee61.entry.js} +1 -1
- package/dist/calcite/{p-6281ab45.system.entry.js → p-9fa024e6.system.entry.js} +1 -1
- package/dist/calcite/{p-fc0b3ef2.entry.js → p-9fa5e356.entry.js} +1 -1
- package/dist/calcite/{p-192289eb.system.entry.js → p-9fc0dc2c.system.entry.js} +1 -1
- package/dist/calcite/p-9fe349b9.entry.js +5 -0
- package/dist/calcite/{p-0e30afe6.entry.js → p-a09634e2.entry.js} +1 -1
- package/dist/calcite/{p-bdd6ec61.entry.js → p-a2cc027e.entry.js} +1 -1
- package/dist/calcite/{p-37fac73b.system.entry.js → p-a5bfc29d.system.entry.js} +1 -1
- package/dist/calcite/{p-914c3cc4.system.js → p-a7ba0292.system.js} +1 -1
- package/dist/calcite/{p-09ced3ff.system.entry.js → p-a8569c55.system.entry.js} +1 -1
- package/dist/calcite/p-b018fbbd.entry.js +5 -0
- package/dist/calcite/p-b1f88d45.system.js +5 -0
- package/dist/calcite/{p-9d04923b.entry.js → p-b244a00c.entry.js} +1 -1
- package/dist/calcite/p-b41deed0.system.entry.js +5 -0
- package/dist/calcite/{p-294dbdf2.entry.js → p-b42d730f.entry.js} +1 -1
- package/dist/calcite/p-b4960d06.system.js +5 -0
- package/dist/calcite/{p-bb577ef7.system.entry.js → p-b4e7b593.system.entry.js} +1 -1
- package/dist/calcite/{p-49dfc82d.system.entry.js → p-b8d040e5.system.entry.js} +1 -1
- package/dist/calcite/{p-aa53b2aa.system.entry.js → p-ba1322e6.system.entry.js} +1 -1
- package/dist/calcite/{p-2e53f47f.system.entry.js → p-bbe2337b.system.entry.js} +2 -2
- package/dist/calcite/p-bbedf98c.entry.js +5 -0
- package/dist/calcite/p-be52c734.entry.js +5 -0
- package/dist/calcite/p-bf25e278.system.entry.js +5 -0
- package/dist/calcite/{p-1f17f6c6.entry.js → p-bf8b70a8.entry.js} +1 -1
- package/dist/calcite/p-c399cfce.entry.js +5 -0
- package/dist/calcite/{p-c3922ef7.system.entry.js → p-c48b4b7e.system.entry.js} +1 -1
- package/dist/calcite/p-c60e3a71.entry.js +5 -0
- package/dist/calcite/{p-36115e9d.system.entry.js → p-c8e4117c.system.entry.js} +1 -1
- package/dist/calcite/{p-1a27bf28.system.entry.js → p-c99d8f9e.system.entry.js} +1 -1
- package/dist/calcite/{p-49fcc674.entry.js → p-c9ecea64.entry.js} +1 -1
- package/dist/calcite/{p-7fed4823.entry.js → p-cacca548.entry.js} +1 -1
- package/dist/calcite/{p-5376ff1d.entry.js → p-cb7b6425.entry.js} +1 -1
- package/dist/calcite/{p-ae4f203c.system.entry.js → p-cca94491.system.entry.js} +1 -1
- package/dist/calcite/{p-a5a50052.entry.js → p-cd41629f.entry.js} +1 -1
- package/dist/calcite/{p-7bcd2eb9.system.js → p-d11ad046.system.js} +1 -1
- package/dist/calcite/p-d4059426.entry.js +5 -0
- package/dist/calcite/{p-daf4bb66.js → p-d53cc958.js} +1 -1
- package/dist/calcite/{p-89b4e322.system.entry.js → p-daa110fe.system.entry.js} +1 -1
- package/dist/calcite/{p-975ca343.system.entry.js → p-dc99bb00.system.entry.js} +1 -1
- package/dist/calcite/{p-1dc68118.system.entry.js → p-dcf30b00.system.entry.js} +2 -2
- package/dist/calcite/{p-f1cf1a10.system.entry.js → p-de3a04c2.system.entry.js} +1 -1
- package/dist/calcite/p-df9b4b76.entry.js +5 -0
- package/dist/calcite/{p-bee79057.system.entry.js → p-e24b6c4a.system.entry.js} +1 -1
- package/dist/calcite/{p-3b17d8d0.system.js → p-e35e7216.system.js} +1 -1
- package/dist/calcite/p-e382c4e9.entry.js +5 -0
- package/dist/calcite/{p-0467efd5.system.entry.js → p-e40dd6fe.system.entry.js} +1 -1
- package/dist/calcite/p-e5805bf1.entry.js +5 -0
- package/dist/calcite/p-e638ff0e.entry.js +5 -0
- package/dist/calcite/{p-7839d1c9.entry.js → p-e7819705.entry.js} +1 -1
- package/dist/calcite/{p-a97338b7.entry.js → p-eccb140e.entry.js} +1 -1
- package/dist/calcite/p-eed43a57.system.entry.js +5 -0
- package/dist/calcite/{p-c57f8690.entry.js → p-f281f1e9.entry.js} +1 -1
- package/dist/calcite/{p-d1b49fa1.system.entry.js → p-f32e61bb.system.entry.js} +1 -1
- package/dist/calcite/{p-b7d3039d.js → p-f5bb39bb.js} +1 -1
- package/dist/calcite/{p-b5c2dfce.system.entry.js → p-f6f4648e.system.entry.js} +1 -1
- package/dist/calcite/{p-e6ec69cf.entry.js → p-f93a7fce.entry.js} +1 -1
- package/dist/calcite/p-fb1da0f5.system.js +5 -0
- package/dist/calcite/{p-a5bbfe14.system.entry.js → p-fba65e4a.system.entry.js} +1 -1
- package/dist/calcite/p-fe16f05e.system.entry.js +5 -0
- package/dist/cjs/{CalciteExpandToggle-0d802f83.js → CalciteExpandToggle-6a9f9858.js} +1 -1
- package/dist/cjs/{CalciteHeading-381b977d.js → CalciteHeading-363b0525.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 +5 -3
- package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action.cjs.entry.js +6 -10
- package/dist/cjs/calcite-alert.cjs.entry.js +2 -2
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-button.cjs.entry.js +52 -35
- package/dist/cjs/calcite-card.cjs.entry.js +2 -2
- package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -7
- package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +3 -3
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +36 -19
- package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
- package/dist/cjs/calcite-filter.cjs.entry.js +10 -7
- package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +28 -20
- 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 +6 -5
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-input.cjs.entry.js +40 -27
- package/dist/cjs/calcite-label.cjs.entry.js +1 -1
- package/dist/cjs/calcite-link.cjs.entry.js +7 -1
- package/dist/cjs/calcite-list_3.cjs.entry.js +24 -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 +2 -2
- package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
- 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 +4 -4
- 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 +11 -11
- package/dist/cjs/calcite-radio_2.cjs.entry.js +17 -17
- package/dist/cjs/calcite-rating.cjs.entry.js +10 -10
- package/dist/cjs/calcite-scrim.cjs.entry.js +1 -1
- package/dist/cjs/calcite-shell_3.cjs.entry.js +1 -1
- 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 +18 -13
- package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +1 -1
- 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 +6 -5
- package/dist/cjs/calcite-tree_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite.cjs.js +3 -3
- package/dist/cjs/{index-1987a382.js → index-cee0daa9.js} +73 -64
- package/dist/cjs/{label-4c30cbca.js → label-549c3d9d.js} +4 -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-38563593.js} +1 -1
- package/dist/cjs/{resources-d0619f6a.js → resources-f9c141d2.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.css +17 -68
- package/dist/collection/components/calcite-action/calcite-action.js +34 -35
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +6 -4
- package/dist/collection/components/calcite-alert/calcite-alert.css +0 -62
- 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-block-section/calcite-block-section.css +1 -0
- package/dist/collection/components/calcite-button/calcite-button.js +33 -37
- package/dist/collection/components/calcite-card/calcite-card.js +8 -8
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +4 -1
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +12 -12
- package/dist/collection/components/calcite-chip/calcite-chip.js +2 -2
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +46 -46
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +4 -4
- package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.js +2 -2
- package/dist/collection/components/calcite-combobox/calcite-combobox.css +3 -0
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +15 -15
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +6 -6
- 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 +39 -20
- 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 +29 -11
- 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/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/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-inline-editable/calcite-inline-editable.js +17 -16
- package/dist/collection/components/calcite-input/calcite-input.js +50 -37
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +19 -19
- 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.js +10 -10
- package/dist/collection/components/calcite-label/calcite-label.js +2 -2
- package/dist/collection/components/calcite-link/calcite-link.js +11 -1
- package/dist/collection/components/calcite-list/calcite-list.js +33 -1
- package/dist/collection/components/calcite-list-item/calcite-list-item.js +30 -2
- package/dist/collection/components/calcite-loader/calcite-loader.css +3 -6
- package/dist/collection/components/calcite-modal/calcite-modal.js +2 -2
- package/dist/collection/components/calcite-notice/calcite-notice.css +18 -6
- 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 +6 -2
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +10 -10
- 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.js +27 -27
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +8 -8
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +1 -5
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +2 -2
- package/dist/collection/components/calcite-rating/calcite-rating.js +12 -12
- package/dist/collection/components/calcite-scrim/calcite-scrim.js +2 -2
- package/dist/collection/components/calcite-select/calcite-select.js +10 -10
- package/dist/collection/components/calcite-slider/calcite-slider.css +2 -4
- package/dist/collection/components/calcite-slider/calcite-slider.js +12 -12
- 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.js +19 -14
- 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-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 +5 -4
- package/dist/collection/components/calcite-tree/calcite-tree.js +10 -10
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +20 -20
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +6 -6
- package/dist/collection/utils/label.js +4 -4
- package/dist/collection/utils/popper.js +2 -2
- package/dist/components/CalciteExpandToggle.js +87 -0
- package/dist/components/CalciteHeading.js +16 -0
- package/dist/components/array.js +9 -0
- package/dist/components/calcite-accordion-item.d.ts +11 -0
- package/dist/components/calcite-accordion-item.js +153 -0
- package/dist/components/calcite-accordion.d.ts +11 -0
- package/dist/components/calcite-accordion.js +167 -0
- package/dist/components/calcite-action-bar.d.ts +11 -0
- package/dist/components/calcite-action-bar.js +266 -0
- package/dist/components/calcite-action-group.d.ts +11 -0
- package/dist/components/calcite-action-group.js +10 -0
- package/dist/components/calcite-action-group2.js +135 -0
- package/dist/components/calcite-action-menu.d.ts +11 -0
- package/dist/components/calcite-action-menu.js +10 -0
- package/dist/components/calcite-action-menu2.js +354 -0
- package/dist/components/calcite-action-pad.d.ts +11 -0
- package/dist/components/calcite-action-pad.js +198 -0
- package/dist/components/calcite-action.d.ts +11 -0
- package/dist/components/calcite-action.js +10 -0
- package/dist/components/calcite-action2.js +183 -0
- package/dist/components/calcite-alert.d.ts +11 -0
- package/dist/components/calcite-alert.js +232 -0
- package/dist/components/calcite-avatar.d.ts +11 -0
- package/dist/components/calcite-avatar.js +171 -0
- package/dist/components/calcite-block-section.d.ts +11 -0
- package/dist/components/calcite-block-section.js +139 -0
- package/dist/components/calcite-block.d.ts +11 -0
- package/dist/components/calcite-block.js +216 -0
- package/dist/components/calcite-button.d.ts +11 -0
- package/dist/components/calcite-button.js +10 -0
- package/dist/components/calcite-button2.js +243 -0
- package/dist/components/calcite-card.d.ts +11 -0
- package/dist/components/calcite-card.js +162 -0
- package/dist/components/calcite-checkbox.d.ts +11 -0
- package/dist/components/calcite-checkbox.js +10 -0
- package/dist/components/calcite-checkbox2.js +203 -0
- package/dist/components/calcite-chip.d.ts +11 -0
- package/dist/components/calcite-chip.js +10 -0
- package/dist/components/calcite-chip2.js +121 -0
- package/dist/components/calcite-color-picker-hex-input.d.ts +11 -0
- package/dist/components/calcite-color-picker-hex-input.js +10 -0
- package/dist/components/calcite-color-picker-hex-input2.js +353 -0
- package/dist/components/calcite-color-picker-swatch.d.ts +11 -0
- package/dist/components/calcite-color-picker-swatch.js +10 -0
- package/dist/components/calcite-color-picker-swatch2.js +2176 -0
- package/dist/components/calcite-color-picker.d.ts +11 -0
- package/dist/components/calcite-color-picker.js +966 -0
- package/dist/components/calcite-combobox-item-group.d.ts +11 -0
- package/dist/components/calcite-combobox-item-group.js +68 -0
- package/dist/components/calcite-combobox-item.d.ts +11 -0
- package/dist/components/calcite-combobox-item.js +168 -0
- package/dist/components/calcite-combobox.d.ts +11 -0
- package/dist/components/calcite-combobox.js +871 -0
- package/dist/components/calcite-date-picker-day.d.ts +11 -0
- package/dist/components/calcite-date-picker-day.js +10 -0
- package/dist/components/calcite-date-picker-day2.js +99 -0
- package/dist/components/calcite-date-picker-month-header.d.ts +11 -0
- package/dist/components/calcite-date-picker-month-header.js +10 -0
- package/dist/components/calcite-date-picker-month-header2.js +170 -0
- package/dist/components/calcite-date-picker-month.d.ts +11 -0
- package/dist/components/calcite-date-picker-month.js +10 -0
- package/dist/components/calcite-date-picker-month2.js +313 -0
- package/dist/components/calcite-date-picker.d.ts +11 -0
- package/dist/components/calcite-date-picker.js +10 -0
- package/dist/components/calcite-date-picker2.js +486 -0
- package/dist/components/calcite-dropdown-group.d.ts +11 -0
- package/dist/components/calcite-dropdown-group.js +90 -0
- package/dist/components/calcite-dropdown-item.d.ts +11 -0
- package/dist/components/calcite-dropdown-item.js +202 -0
- package/dist/components/calcite-dropdown.d.ts +11 -0
- package/dist/components/calcite-dropdown.js +10 -0
- package/dist/components/calcite-dropdown2.js +390 -0
- package/dist/components/calcite-fab.d.ts +11 -0
- package/dist/components/calcite-fab.js +127 -0
- package/dist/components/calcite-filter.d.ts +11 -0
- package/dist/components/calcite-filter.js +10 -0
- package/dist/components/calcite-filter2.js +168 -0
- package/dist/components/calcite-flow.d.ts +11 -0
- package/dist/components/calcite-flow.js +138 -0
- package/dist/components/calcite-graph.d.ts +11 -0
- package/dist/components/calcite-graph.js +10 -0
- package/dist/components/calcite-graph2.js +213 -0
- package/dist/components/calcite-handle.d.ts +11 -0
- package/dist/components/calcite-handle.js +10 -0
- package/dist/components/calcite-handle2.js +107 -0
- package/dist/components/calcite-icon.d.ts +11 -0
- package/dist/components/calcite-icon.js +10 -0
- package/dist/components/calcite-icon2.js +185 -0
- package/dist/components/calcite-inline-editable.d.ts +11 -0
- package/dist/components/calcite-inline-editable.js +242 -0
- package/dist/components/calcite-input-date-picker.d.ts +11 -0
- package/dist/components/calcite-input-date-picker.js +471 -0
- package/dist/components/calcite-input-message.d.ts +11 -0
- package/dist/components/calcite-input-message.js +97 -0
- package/dist/components/calcite-input-time-picker.d.ts +11 -0
- package/dist/components/calcite-input-time-picker.js +278 -0
- package/dist/components/calcite-input.d.ts +11 -0
- package/dist/components/calcite-input.js +10 -0
- package/dist/components/calcite-input2.js +507 -0
- package/dist/components/calcite-label.d.ts +11 -0
- package/dist/components/calcite-label.js +10 -0
- package/dist/components/calcite-label2.js +81 -0
- package/dist/components/calcite-link.d.ts +11 -0
- package/dist/components/calcite-link.js +10 -0
- package/dist/components/calcite-link2.js +97 -0
- package/dist/components/calcite-list-item-group.d.ts +11 -0
- package/dist/components/calcite-list-item-group.js +57 -0
- package/dist/components/calcite-list-item.d.ts +11 -0
- package/dist/components/calcite-list-item.js +117 -0
- package/dist/components/calcite-list.d.ts +11 -0
- package/dist/components/calcite-list.js +59 -0
- package/dist/components/calcite-loader.d.ts +11 -0
- package/dist/components/calcite-loader.js +10 -0
- package/dist/components/calcite-loader2.js +107 -0
- package/dist/components/calcite-modal.d.ts +11 -0
- package/dist/components/calcite-modal.js +417 -0
- package/dist/components/calcite-notice.d.ts +11 -0
- package/dist/components/calcite-notice.js +140 -0
- package/dist/components/calcite-option-group.d.ts +11 -0
- package/dist/components/calcite-option-group.js +61 -0
- package/dist/components/calcite-option.d.ts +11 -0
- package/dist/components/calcite-option.js +107 -0
- package/dist/components/calcite-pagination.d.ts +11 -0
- package/dist/components/calcite-pagination.js +207 -0
- package/dist/components/calcite-panel.d.ts +11 -0
- package/dist/components/calcite-panel.js +309 -0
- package/dist/components/calcite-pick-list-group.d.ts +11 -0
- package/dist/components/calcite-pick-list-group.js +70 -0
- package/dist/components/calcite-pick-list-item.d.ts +11 -0
- package/dist/components/calcite-pick-list-item.js +10 -0
- package/dist/components/calcite-pick-list-item2.js +230 -0
- package/dist/components/calcite-pick-list.d.ts +11 -0
- package/dist/components/calcite-pick-list.js +196 -0
- package/dist/components/calcite-popover-manager.d.ts +11 -0
- package/dist/components/calcite-popover-manager.js +93 -0
- package/dist/components/calcite-popover.d.ts +11 -0
- package/dist/components/calcite-popover.js +10 -0
- package/dist/components/calcite-popover2.js +332 -0
- package/dist/components/calcite-progress.d.ts +11 -0
- package/dist/components/calcite-progress.js +10 -0
- package/dist/components/calcite-progress2.js +52 -0
- package/dist/components/calcite-radio-button-group.d.ts +11 -0
- package/dist/components/calcite-radio-button-group.js +116 -0
- package/dist/components/calcite-radio-button.d.ts +11 -0
- package/dist/components/calcite-radio-button.js +291 -0
- package/dist/components/calcite-radio-group-item.d.ts +11 -0
- package/dist/components/calcite-radio-group-item.js +139 -0
- package/dist/components/calcite-radio-group.d.ts +11 -0
- package/dist/components/calcite-radio-group.js +233 -0
- package/dist/components/calcite-radio.d.ts +11 -0
- package/dist/components/calcite-radio.js +10 -0
- package/dist/components/calcite-radio2.js +68 -0
- package/dist/components/calcite-rating.d.ts +11 -0
- package/dist/components/calcite-rating.js +160 -0
- package/dist/components/calcite-scrim.d.ts +11 -0
- package/dist/components/calcite-scrim.js +10 -0
- package/dist/components/calcite-scrim2.js +74 -0
- package/dist/components/calcite-select.d.ts +11 -0
- package/dist/components/calcite-select.js +221 -0
- package/dist/components/calcite-shell-center-row.d.ts +11 -0
- package/dist/components/calcite-shell-center-row.js +81 -0
- package/dist/components/calcite-shell-panel.d.ts +11 -0
- package/dist/components/calcite-shell-panel.js +100 -0
- package/dist/components/calcite-shell.d.ts +11 -0
- package/dist/components/calcite-shell.js +99 -0
- package/dist/components/calcite-slider.d.ts +11 -0
- package/dist/components/calcite-slider.js +746 -0
- package/dist/components/calcite-sortable-list.d.ts +11 -0
- package/dist/components/calcite-sortable-list.js +190 -0
- package/dist/components/calcite-split-button.d.ts +11 -0
- package/dist/components/calcite-split-button.js +127 -0
- package/dist/components/calcite-stepper-item.d.ts +11 -0
- package/dist/components/calcite-stepper-item.js +189 -0
- package/dist/components/calcite-stepper.d.ts +11 -0
- package/dist/components/calcite-stepper.js +247 -0
- package/dist/components/calcite-switch.d.ts +11 -0
- package/dist/components/calcite-switch.js +10 -0
- package/dist/components/calcite-switch2.js +167 -0
- package/dist/components/calcite-tab-nav.d.ts +11 -0
- package/dist/components/calcite-tab-nav.js +10 -0
- package/dist/components/calcite-tab-nav2.js +209 -0
- package/dist/components/calcite-tab-title.d.ts +11 -0
- package/dist/components/calcite-tab-title.js +10 -0
- package/dist/components/calcite-tab-title2.js +230 -0
- package/dist/components/calcite-tab.d.ts +11 -0
- package/dist/components/calcite-tab.js +10 -0
- package/dist/components/calcite-tab2.js +122 -0
- package/dist/components/calcite-tabs.d.ts +11 -0
- package/dist/components/calcite-tabs.js +10 -0
- package/dist/components/calcite-tabs2.js +183 -0
- package/dist/components/calcite-tile-select-group.d.ts +11 -0
- package/dist/components/calcite-tile-select-group.js +45 -0
- package/dist/components/calcite-tile-select.d.ts +11 -0
- package/dist/components/calcite-tile-select.js +218 -0
- package/dist/components/calcite-tile.d.ts +11 -0
- package/dist/components/calcite-tile.js +10 -0
- package/dist/components/calcite-tile2.js +98 -0
- package/dist/components/calcite-time-picker.d.ts +11 -0
- package/dist/components/calcite-time-picker.js +10 -0
- package/dist/components/calcite-time-picker2.js +707 -0
- package/dist/components/calcite-tip-group.d.ts +11 -0
- package/dist/components/calcite-tip-group.js +38 -0
- package/dist/components/calcite-tip-manager.d.ts +11 -0
- package/dist/components/calcite-tip-manager.js +218 -0
- package/dist/components/calcite-tip.d.ts +11 -0
- package/dist/components/calcite-tip.js +140 -0
- package/dist/components/calcite-tooltip-manager.d.ts +11 -0
- package/dist/components/calcite-tooltip-manager.js +10 -0
- package/dist/components/calcite-tooltip-manager2.js +168 -0
- package/dist/components/calcite-tooltip.d.ts +11 -0
- package/dist/components/calcite-tooltip.js +224 -0
- package/dist/components/calcite-tree-item.d.ts +11 -0
- package/dist/components/calcite-tree-item.js +303 -0
- package/dist/components/calcite-tree.d.ts +11 -0
- package/dist/components/calcite-tree.js +216 -0
- package/dist/components/calcite-value-list-item.d.ts +11 -0
- package/dist/components/calcite-value-list-item.js +180 -0
- package/dist/components/calcite-value-list.d.ts +11 -0
- package/dist/components/calcite-value-list.js +271 -0
- package/dist/components/date.js +159 -0
- package/dist/components/debounce.js +486 -0
- package/dist/components/dom.js +153 -0
- package/dist/components/forIn.js +619 -0
- package/dist/components/form.js +20 -0
- package/dist/components/guid.js +18 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +5 -0
- package/dist/components/interfaces.js +13 -0
- package/dist/components/interfaces2.js +14 -0
- package/dist/components/key.js +33 -0
- package/dist/components/label.js +54 -0
- package/dist/components/locale.js +118 -0
- package/dist/components/math.js +7 -0
- package/dist/components/number.js +40 -0
- package/dist/components/observers.js +22 -0
- package/dist/{esm/popper-44055f06.js → components/popper.js} +3 -3
- package/dist/components/resources.js +24 -0
- package/dist/components/resources2.js +13 -0
- package/dist/components/resources3.js +18 -0
- package/dist/components/resources4.js +32 -0
- package/dist/components/shared-list-render.js +286 -0
- package/dist/components/sortable.esm.js +3017 -0
- package/dist/components/utils.js +113 -0
- package/dist/components/utils2.js +38 -0
- package/dist/custom-elements/index.js +400 -309
- package/dist/esm/{CalciteExpandToggle-b1e6e72d.js → CalciteExpandToggle-235a6bfd.js} +2 -2
- package/dist/esm/{CalciteHeading-1735f17a.js → CalciteHeading-dea3bd05.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +2 -2
- package/dist/esm/calcite-action-bar.entry.js +3 -3
- package/dist/esm/calcite-action-group.entry.js +2 -2
- package/dist/esm/calcite-action-menu.entry.js +6 -4
- package/dist/esm/calcite-action-pad.entry.js +3 -3
- package/dist/esm/calcite-action.entry.js +6 -10
- package/dist/esm/calcite-alert.entry.js +3 -3
- package/dist/esm/calcite-avatar.entry.js +2 -2
- package/dist/esm/calcite-block_2.entry.js +5 -5
- package/dist/esm/calcite-button.entry.js +53 -36
- package/dist/esm/calcite-card.entry.js +3 -3
- package/dist/esm/calcite-checkbox.entry.js +8 -8
- package/dist/esm/calcite-chip.entry.js +2 -2
- package/dist/esm/calcite-color-picker_3.entry.js +2 -2
- package/dist/esm/calcite-combobox_3.entry.js +14 -14
- package/dist/esm/calcite-date-picker_4.entry.js +4 -4
- package/dist/esm/calcite-dropdown_3.entry.js +37 -20
- package/dist/esm/calcite-fab.entry.js +2 -2
- package/dist/esm/calcite-filter.entry.js +11 -8
- package/dist/esm/calcite-flow.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +29 -21
- package/dist/esm/calcite-handle.entry.js +1 -1
- package/dist/esm/calcite-icon.entry.js +2 -2
- package/dist/esm/calcite-inline-editable.entry.js +7 -6
- package/dist/esm/calcite-input-date-picker.entry.js +14 -14
- package/dist/esm/calcite-input-message.entry.js +2 -2
- package/dist/esm/calcite-input-time-picker_2.entry.js +12 -12
- package/dist/esm/calcite-input.entry.js +41 -28
- package/dist/esm/calcite-label.entry.js +2 -2
- package/dist/esm/calcite-link.entry.js +8 -2
- package/dist/esm/calcite-list_3.entry.js +25 -4
- package/dist/esm/calcite-loader.entry.js +2 -2
- package/dist/esm/calcite-modal.entry.js +2 -2
- package/dist/esm/calcite-notice.entry.js +3 -3
- package/dist/esm/calcite-option_3.entry.js +11 -11
- package/dist/esm/calcite-pagination.entry.js +2 -2
- package/dist/esm/calcite-panel.entry.js +4 -4
- package/dist/esm/calcite-pick-list_3.entry.js +4 -4
- 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 +12 -12
- package/dist/esm/calcite-radio_2.entry.js +18 -18
- package/dist/esm/calcite-rating.entry.js +11 -11
- package/dist/esm/calcite-scrim.entry.js +1 -1
- package/dist/esm/calcite-shell_3.entry.js +2 -2
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-split-button.entry.js +2 -2
- package/dist/esm/calcite-stepper_2.entry.js +2 -2
- package/dist/esm/calcite-switch.entry.js +19 -14
- package/dist/esm/calcite-tab_4.entry.js +2 -2
- package/dist/esm/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm/calcite-tile.entry.js +3 -3
- package/dist/esm/calcite-tip_3.entry.js +3 -3
- package/dist/esm/calcite-tooltip_2.entry.js +7 -6
- package/dist/esm/calcite-tree_2.entry.js +2 -2
- package/dist/esm/calcite-value-list_2.entry.js +3 -3
- package/dist/esm/calcite.js +3 -3
- package/dist/esm/{dom-70b0e988.js → dom-f24e866c.js} +1 -1
- package/dist/esm/{index-d653c37f.js → index-66803519.js} +73 -64
- package/dist/esm/{label-426b4471.js → label-bb61bdef.js} +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/popper-dc4b45cf.js +1785 -0
- package/dist/esm/{resources-56ac5dd9.js → resources-8dd80c84.js} +2 -2
- package/dist/esm/{resources-3b481489.js → resources-c59a1a15.js} +1 -1
- package/dist/esm-es5/{CalciteExpandToggle-b1e6e72d.js → CalciteExpandToggle-235a6bfd.js} +1 -1
- package/dist/esm-es5/{CalciteHeading-1735f17a.js → CalciteHeading-dea3bd05.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 +2 -2
- package/dist/esm-es5/calcite-alert.entry.js +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm-es5/calcite-notice.entry.js +1 -1
- 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 +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 +1 -1
- 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 +1 -1
- 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/{dom-70b0e988.js → dom-f24e866c.js} +1 -1
- package/dist/esm-es5/{index-d653c37f.js → index-66803519.js} +1 -1
- package/dist/esm-es5/label-bb61bdef.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-56ac5dd9.js → resources-8dd80c84.js} +1 -1
- package/dist/esm-es5/{resources-3b481489.js → resources-c59a1a15.js} +1 -1
- package/dist/extras/docs-json.json +511 -429
- package/dist/types/components/calcite-action/calcite-action.d.ts +2 -2
- package/dist/types/components/calcite-button/calcite-button.d.ts +10 -3
- package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +1 -1
- package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +1 -1
- package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +6 -3
- package/dist/types/components/calcite-filter/calcite-filter.d.ts +5 -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 +1 -1
- package/dist/types/components/calcite-input/calcite-input.d.ts +8 -2
- package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +1 -1
- package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +2 -2
- package/dist/types/components/calcite-link/calcite-link.d.ts +2 -1
- package/dist/types/components/calcite-list/calcite-list.d.ts +3 -0
- package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +3 -0
- package/dist/types/components/calcite-modal/calcite-modal.d.ts +2 -2
- package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +1 -1
- package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +1 -1
- package/dist/types/components/calcite-rating/calcite-rating.d.ts +1 -1
- package/dist/types/components/calcite-select/calcite-select.d.ts +1 -1
- package/dist/types/components/calcite-slider/calcite-slider.d.ts +1 -1
- package/dist/types/components/calcite-switch/calcite-switch.d.ts +1 -1
- package/dist/types/components.d.ts +42 -8
- package/dist/types/utils/popper.d.ts +1 -1
- package/hydrate/index.js +321 -223
- package/package.json +32 -34
- package/readme.md +5 -5
- package/dist/calcite/p-01574cc9.system.entry.js +0 -5
- package/dist/calcite/p-034b30d0.system.entry.js +0 -5
- package/dist/calcite/p-07ba39b6.js +0 -5
- package/dist/calcite/p-161fae80.entry.js +0 -5
- package/dist/calcite/p-1800ca58.system.entry.js +0 -5
- package/dist/calcite/p-22b45d8e.entry.js +0 -5
- package/dist/calcite/p-38f1f404.entry.js +0 -5
- package/dist/calcite/p-3a529cc9.entry.js +0 -5
- package/dist/calcite/p-3f4d3c3a.system.entry.js +0 -5
- package/dist/calcite/p-42c1ceea.system.entry.js +0 -5
- package/dist/calcite/p-43c9ac47.entry.js +0 -5
- package/dist/calcite/p-48d862ab.system.entry.js +0 -5
- package/dist/calcite/p-4ba0e355.entry.js +0 -5
- package/dist/calcite/p-50c3504a.system.entry.js +0 -5
- package/dist/calcite/p-5cab6853.js +0 -5
- package/dist/calcite/p-6235a763.system.entry.js +0 -5
- package/dist/calcite/p-649b9bf0.entry.js +0 -5
- package/dist/calcite/p-66845ec0.entry.js +0 -5
- package/dist/calcite/p-6805cf31.entry.js +0 -5
- package/dist/calcite/p-6bdedd7f.system.js +0 -5
- package/dist/calcite/p-6cff93c4.entry.js +0 -5
- package/dist/calcite/p-773b9826.system.entry.js +0 -5
- package/dist/calcite/p-7878aa7c.entry.js +0 -5
- package/dist/calcite/p-78820fed.system.entry.js +0 -5
- package/dist/calcite/p-86788d34.entry.js +0 -5
- package/dist/calcite/p-8a535973.entry.js +0 -5
- package/dist/calcite/p-9965ea81.system.js +0 -5
- package/dist/calcite/p-9cad254a.entry.js +0 -5
- package/dist/calcite/p-a923201d.system.entry.js +0 -5
- package/dist/calcite/p-adfa75fa.entry.js +0 -5
- package/dist/calcite/p-c026ce05.entry.js +0 -5
- package/dist/calcite/p-c198f23c.entry.js +0 -5
- package/dist/calcite/p-c728d861.entry.js +0 -5
- package/dist/calcite/p-c7b4e11f.entry.js +0 -5
- package/dist/calcite/p-cb44170e.system.js +0 -5
- package/dist/calcite/p-cb87824b.entry.js +0 -5
- package/dist/calcite/p-d35a300b.entry.js +0 -5
- package/dist/calcite/p-d7756753.entry.js +0 -5
- package/dist/calcite/p-e3ea64dc.entry.js +0 -5
- package/dist/calcite/p-e6cc7798.entry.js +0 -5
- package/dist/calcite/p-eb027f31.system.entry.js +0 -5
- package/dist/calcite/p-edc12d5c.entry.js +0 -5
- package/dist/calcite/p-f33a21cf.system.entry.js +0 -5
- package/dist/custom-elements/bundles/accordion.d.ts +0 -1
- package/dist/custom-elements/bundles/accordion.js +0 -5
- package/dist/custom-elements/bundles/action-bar.d.ts +0 -1
- package/dist/custom-elements/bundles/action-bar.js +0 -5
- package/dist/custom-elements/bundles/action-menu.d.ts +0 -1
- package/dist/custom-elements/bundles/action-menu.js +0 -5
- package/dist/custom-elements/bundles/action-pad.d.ts +0 -1
- package/dist/custom-elements/bundles/action-pad.js +0 -5
- package/dist/custom-elements/bundles/action.d.ts +0 -1
- package/dist/custom-elements/bundles/action.js +0 -5
- package/dist/custom-elements/bundles/alert.d.ts +0 -1
- package/dist/custom-elements/bundles/alert.js +0 -5
- package/dist/custom-elements/bundles/avatar.d.ts +0 -1
- package/dist/custom-elements/bundles/avatar.js +0 -5
- package/dist/custom-elements/bundles/block.d.ts +0 -1
- package/dist/custom-elements/bundles/block.js +0 -5
- package/dist/custom-elements/bundles/button.d.ts +0 -1
- package/dist/custom-elements/bundles/button.js +0 -5
- package/dist/custom-elements/bundles/card.d.ts +0 -1
- package/dist/custom-elements/bundles/card.js +0 -5
- package/dist/custom-elements/bundles/checkbox.d.ts +0 -1
- package/dist/custom-elements/bundles/checkbox.js +0 -5
- package/dist/custom-elements/bundles/chip.d.ts +0 -1
- package/dist/custom-elements/bundles/chip.js +0 -5
- package/dist/custom-elements/bundles/color-picker.d.ts +0 -1
- package/dist/custom-elements/bundles/color-picker.js +0 -5
- package/dist/custom-elements/bundles/combobox.d.ts +0 -1
- package/dist/custom-elements/bundles/combobox.js +0 -5
- package/dist/custom-elements/bundles/date-picker.d.ts +0 -1
- package/dist/custom-elements/bundles/date-picker.js +0 -5
- package/dist/custom-elements/bundles/dropdown.d.ts +0 -1
- package/dist/custom-elements/bundles/dropdown.js +0 -5
- package/dist/custom-elements/bundles/fab.d.ts +0 -1
- package/dist/custom-elements/bundles/fab.js +0 -5
- package/dist/custom-elements/bundles/flow.d.ts +0 -1
- package/dist/custom-elements/bundles/flow.js +0 -5
- package/dist/custom-elements/bundles/icon.d.ts +0 -1
- package/dist/custom-elements/bundles/icon.js +0 -5
- package/dist/custom-elements/bundles/inline-editable.d.ts +0 -1
- package/dist/custom-elements/bundles/inline-editable.js +0 -5
- package/dist/custom-elements/bundles/input-date-picker.d.ts +0 -1
- package/dist/custom-elements/bundles/input-date-picker.js +0 -5
- package/dist/custom-elements/bundles/input-message.d.ts +0 -1
- package/dist/custom-elements/bundles/input-message.js +0 -5
- package/dist/custom-elements/bundles/input-time-picker.d.ts +0 -1
- package/dist/custom-elements/bundles/input-time-picker.js +0 -5
- package/dist/custom-elements/bundles/input.d.ts +0 -1
- package/dist/custom-elements/bundles/input.js +0 -5
- package/dist/custom-elements/bundles/label.d.ts +0 -1
- package/dist/custom-elements/bundles/label.js +0 -5
- package/dist/custom-elements/bundles/link.d.ts +0 -1
- package/dist/custom-elements/bundles/link.js +0 -5
- package/dist/custom-elements/bundles/list.d.ts +0 -1
- package/dist/custom-elements/bundles/list.js +0 -5
- package/dist/custom-elements/bundles/loader.d.ts +0 -1
- package/dist/custom-elements/bundles/loader.js +0 -5
- package/dist/custom-elements/bundles/modal.d.ts +0 -1
- package/dist/custom-elements/bundles/modal.js +0 -5
- package/dist/custom-elements/bundles/notice.d.ts +0 -1
- package/dist/custom-elements/bundles/notice.js +0 -5
- package/dist/custom-elements/bundles/pagination.d.ts +0 -1
- package/dist/custom-elements/bundles/pagination.js +0 -5
- package/dist/custom-elements/bundles/panel.d.ts +0 -1
- package/dist/custom-elements/bundles/panel.js +0 -5
- package/dist/custom-elements/bundles/pick-list.d.ts +0 -1
- package/dist/custom-elements/bundles/pick-list.js +0 -5
- package/dist/custom-elements/bundles/popover.d.ts +0 -1
- package/dist/custom-elements/bundles/popover.js +0 -5
- package/dist/custom-elements/bundles/progress.d.ts +0 -1
- package/dist/custom-elements/bundles/progress.js +0 -5
- package/dist/custom-elements/bundles/radio-button-group.d.ts +0 -1
- package/dist/custom-elements/bundles/radio-button-group.js +0 -5
- package/dist/custom-elements/bundles/radio-button.d.ts +0 -1
- package/dist/custom-elements/bundles/radio-button.js +0 -5
- package/dist/custom-elements/bundles/radio-group.d.ts +0 -1
- package/dist/custom-elements/bundles/radio-group.js +0 -5
- package/dist/custom-elements/bundles/rating.d.ts +0 -1
- package/dist/custom-elements/bundles/rating.js +0 -5
- package/dist/custom-elements/bundles/scrim.d.ts +0 -1
- package/dist/custom-elements/bundles/scrim.js +0 -5
- package/dist/custom-elements/bundles/select.d.ts +0 -1
- package/dist/custom-elements/bundles/select.js +0 -5
- package/dist/custom-elements/bundles/shell.d.ts +0 -1
- package/dist/custom-elements/bundles/shell.js +0 -5
- package/dist/custom-elements/bundles/slider.d.ts +0 -1
- package/dist/custom-elements/bundles/slider.js +0 -5
- package/dist/custom-elements/bundles/sortable-list.d.ts +0 -1
- package/dist/custom-elements/bundles/sortable-list.js +0 -5
- package/dist/custom-elements/bundles/split-button.d.ts +0 -1
- package/dist/custom-elements/bundles/split-button.js +0 -5
- package/dist/custom-elements/bundles/stepper.d.ts +0 -1
- package/dist/custom-elements/bundles/stepper.js +0 -5
- package/dist/custom-elements/bundles/switch.d.ts +0 -1
- package/dist/custom-elements/bundles/switch.js +0 -5
- package/dist/custom-elements/bundles/tab.d.ts +0 -1
- package/dist/custom-elements/bundles/tab.js +0 -5
- package/dist/custom-elements/bundles/tile-select-group.d.ts +0 -1
- package/dist/custom-elements/bundles/tile-select-group.js +0 -5
- package/dist/custom-elements/bundles/tile.d.ts +0 -1
- package/dist/custom-elements/bundles/tile.js +0 -5
- package/dist/custom-elements/bundles/tip.d.ts +0 -1
- package/dist/custom-elements/bundles/tip.js +0 -5
- package/dist/custom-elements/bundles/tooltip.d.ts +0 -1
- package/dist/custom-elements/bundles/tooltip.js +0 -5
- package/dist/custom-elements/bundles/tree.d.ts +0 -1
- package/dist/custom-elements/bundles/tree.js +0 -5
- package/dist/custom-elements/bundles/value-list.d.ts +0 -1
- package/dist/custom-elements/bundles/value-list.js +0 -5
- package/dist/custom-elements/index.mjs +0 -24476
- package/dist/custom-elements/utils.d.ts +0 -2
- package/dist/custom-elements/utils.js +0 -11
- package/dist/esm-es5/label-426b4471.js +0 -5
- package/dist/esm-es5/popper-44055f06.js +0 -5
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
var TreeSelectionMode;
|
|
6
|
+
(function (TreeSelectionMode) {
|
|
7
|
+
TreeSelectionMode["Single"] = "single";
|
|
8
|
+
TreeSelectionMode["Multi"] = "multi";
|
|
9
|
+
TreeSelectionMode["Children"] = "children";
|
|
10
|
+
TreeSelectionMode["MultiChildren"] = "multi-children";
|
|
11
|
+
TreeSelectionMode["Ancestors"] = "ancestors";
|
|
12
|
+
})(TreeSelectionMode || (TreeSelectionMode = {}));
|
|
13
|
+
|
|
14
|
+
export { TreeSelectionMode as T };
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* Standardize key property of keyboard event (mostly for ie11)
|
|
7
|
+
*/
|
|
8
|
+
function getKey(key, dir) {
|
|
9
|
+
const lookup = {
|
|
10
|
+
Up: "ArrowUp",
|
|
11
|
+
Down: "ArrowDown",
|
|
12
|
+
Left: "ArrowLeft",
|
|
13
|
+
Right: "ArrowRight",
|
|
14
|
+
Spacebar: " ",
|
|
15
|
+
Esc: "Escape"
|
|
16
|
+
};
|
|
17
|
+
const adjustedKey = lookup[key] || key;
|
|
18
|
+
const isRTL = dir === "rtl";
|
|
19
|
+
if (isRTL && adjustedKey === "ArrowLeft") {
|
|
20
|
+
return "ArrowRight";
|
|
21
|
+
}
|
|
22
|
+
if (isRTL && adjustedKey === "ArrowRight") {
|
|
23
|
+
return "ArrowLeft";
|
|
24
|
+
}
|
|
25
|
+
return adjustedKey;
|
|
26
|
+
}
|
|
27
|
+
function isActivationKey(key) {
|
|
28
|
+
key = getKey(key);
|
|
29
|
+
return key === "Enter" || key === " ";
|
|
30
|
+
}
|
|
31
|
+
const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
32
|
+
|
|
33
|
+
export { getKey as g, isActivationKey as i, numberKeys as n };
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { q as queryElementRoots, d as closestElementCrossShadowBoundary } from './dom.js';
|
|
6
|
+
|
|
7
|
+
const labelTagName = "calcite-label";
|
|
8
|
+
const labelClickEvent = "calciteInternalLabelClick";
|
|
9
|
+
const onLabelClickMap = new WeakMap();
|
|
10
|
+
const findLabelForComponent = (componentEl) => {
|
|
11
|
+
const id = componentEl.id;
|
|
12
|
+
return ((id && queryElementRoots(componentEl, `${labelTagName}[for="${id}"]`)) ||
|
|
13
|
+
closestElementCrossShadowBoundary(componentEl, labelTagName));
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Helper to set up label interactions on connectedCallback.
|
|
17
|
+
*/
|
|
18
|
+
function connectLabel(component) {
|
|
19
|
+
const labelEl = findLabelForComponent(component.el);
|
|
20
|
+
if (!labelEl || onLabelClickMap.has(labelEl)) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
component.labelEl = labelEl;
|
|
24
|
+
const boundOnLabelClick = onLabelClick.bind(component);
|
|
25
|
+
onLabelClickMap.set(component.labelEl, boundOnLabelClick);
|
|
26
|
+
component.labelEl.addEventListener(labelClickEvent, boundOnLabelClick);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Helper to tear down label interactions on disconnectedCallback.
|
|
30
|
+
*/
|
|
31
|
+
function disconnectLabel(component) {
|
|
32
|
+
if (!component.labelEl) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const boundOnLabelClick = onLabelClickMap.get(component.labelEl);
|
|
36
|
+
component.labelEl.removeEventListener(labelClickEvent, boundOnLabelClick);
|
|
37
|
+
onLabelClickMap.delete(component.labelEl);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Helper to get the label text from a component.
|
|
41
|
+
*/
|
|
42
|
+
function getLabelText(component) {
|
|
43
|
+
var _a, _b;
|
|
44
|
+
return component.label || ((_b = (_a = component.labelEl) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || "";
|
|
45
|
+
}
|
|
46
|
+
function onLabelClick(event) {
|
|
47
|
+
const containedLabelableChildClicked = this.el.contains(event.detail.sourceEvent.target);
|
|
48
|
+
if (containedLabelableChildClicked) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
this.onLabelClick(event);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { connectLabel as c, disconnectLabel as d, getLabelText as g };
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { a as sanitizeDecimalString } from './number.js';
|
|
6
|
+
|
|
7
|
+
const locales = [
|
|
8
|
+
"ar",
|
|
9
|
+
"bs",
|
|
10
|
+
"ca",
|
|
11
|
+
"cs",
|
|
12
|
+
"da",
|
|
13
|
+
"de",
|
|
14
|
+
"de-CH",
|
|
15
|
+
"el",
|
|
16
|
+
"en",
|
|
17
|
+
"en-AU",
|
|
18
|
+
"en-CA",
|
|
19
|
+
"en-GB",
|
|
20
|
+
"es",
|
|
21
|
+
"es-MX",
|
|
22
|
+
"et",
|
|
23
|
+
"fi",
|
|
24
|
+
"fr",
|
|
25
|
+
"fr-CH",
|
|
26
|
+
"he",
|
|
27
|
+
"hi",
|
|
28
|
+
"hr",
|
|
29
|
+
"hu",
|
|
30
|
+
"id",
|
|
31
|
+
"it",
|
|
32
|
+
"it-CH",
|
|
33
|
+
"ja",
|
|
34
|
+
"ko",
|
|
35
|
+
"lt",
|
|
36
|
+
"lv",
|
|
37
|
+
"mk",
|
|
38
|
+
"nb",
|
|
39
|
+
"nl",
|
|
40
|
+
"pl",
|
|
41
|
+
"pt",
|
|
42
|
+
"pt-PT",
|
|
43
|
+
"ro",
|
|
44
|
+
"ru",
|
|
45
|
+
"sk",
|
|
46
|
+
"sl",
|
|
47
|
+
"sr",
|
|
48
|
+
"sv",
|
|
49
|
+
"th",
|
|
50
|
+
"tr",
|
|
51
|
+
"uk",
|
|
52
|
+
"vi",
|
|
53
|
+
"zh-CN",
|
|
54
|
+
"zh-HK",
|
|
55
|
+
"zh-TW"
|
|
56
|
+
];
|
|
57
|
+
function createLocaleNumberFormatter(locale) {
|
|
58
|
+
return new Intl.NumberFormat(locale, {
|
|
59
|
+
minimumFractionDigits: 0,
|
|
60
|
+
maximumFractionDigits: 20
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function delocalizeNumberString(numberString, locale) {
|
|
64
|
+
if (numberString) {
|
|
65
|
+
const groupSeparator = getGroupSeparator(locale);
|
|
66
|
+
const decimalSeparator = getDecimalSeparator(locale);
|
|
67
|
+
const splitNumberString = numberString.split("");
|
|
68
|
+
const decimalIndex = splitNumberString.lastIndexOf(decimalSeparator);
|
|
69
|
+
const delocalizedNumberString = splitNumberString
|
|
70
|
+
.map((value, index) => {
|
|
71
|
+
if (value === groupSeparator || (value === decimalSeparator && index !== decimalIndex)) {
|
|
72
|
+
return "";
|
|
73
|
+
}
|
|
74
|
+
return value;
|
|
75
|
+
})
|
|
76
|
+
.reduce((string, part) => string + part)
|
|
77
|
+
.replace(decimalSeparator, ".");
|
|
78
|
+
return isNaN(Number(delocalizedNumberString)) ? numberString : delocalizedNumberString;
|
|
79
|
+
}
|
|
80
|
+
return numberString;
|
|
81
|
+
}
|
|
82
|
+
function getGroupSeparator(locale) {
|
|
83
|
+
const formatter = createLocaleNumberFormatter(locale);
|
|
84
|
+
const parts = formatter.formatToParts(1234567.8);
|
|
85
|
+
const value = parts.find((part) => part.type === "group").value;
|
|
86
|
+
return value.trim().length === 0 ? " " : value;
|
|
87
|
+
}
|
|
88
|
+
function getDecimalSeparator(locale) {
|
|
89
|
+
const formatter = createLocaleNumberFormatter(locale);
|
|
90
|
+
const parts = formatter.formatToParts(1234567.8);
|
|
91
|
+
const value = parts.find((part) => part.type === "decimal").value;
|
|
92
|
+
return value.trim().length === 0 ? " " : value;
|
|
93
|
+
}
|
|
94
|
+
function localizeNumberString(numberString, locale, displayGroupSeparator = false) {
|
|
95
|
+
if (numberString) {
|
|
96
|
+
const number = Number(sanitizeDecimalString(numberString));
|
|
97
|
+
if (!isNaN(number)) {
|
|
98
|
+
const formatter = createLocaleNumberFormatter(locale);
|
|
99
|
+
const parts = formatter.formatToParts(number);
|
|
100
|
+
const localizedNumberString = parts
|
|
101
|
+
.map(({ type, value }) => {
|
|
102
|
+
switch (type) {
|
|
103
|
+
case "group":
|
|
104
|
+
return displayGroupSeparator ? getGroupSeparator(locale) : "";
|
|
105
|
+
case "decimal":
|
|
106
|
+
return getDecimalSeparator(locale);
|
|
107
|
+
default:
|
|
108
|
+
return value;
|
|
109
|
+
}
|
|
110
|
+
})
|
|
111
|
+
.reduce((string, part) => string + part);
|
|
112
|
+
return localizedNumberString;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return numberString;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export { locales as a, delocalizeNumberString as d, getDecimalSeparator as g, localizeNumberString as l };
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
|
|
6
|
+
|
|
7
|
+
export { clamp as c };
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { n as numberKeys } from './key.js';
|
|
6
|
+
|
|
7
|
+
function isValidNumber(numberString) {
|
|
8
|
+
return !(!numberString || isNaN(Number(numberString)));
|
|
9
|
+
}
|
|
10
|
+
function parseNumberString(numberString) {
|
|
11
|
+
if (!numberString || !stringContainsNumbers(numberString)) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
let containsDecimal = false;
|
|
15
|
+
const result = numberString
|
|
16
|
+
.split("")
|
|
17
|
+
.filter((value, i) => {
|
|
18
|
+
if (value.match(/\./g) && !containsDecimal) {
|
|
19
|
+
containsDecimal = true;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
if (value.match(/\-/g) && i === 0) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
return numberKeys.includes(value);
|
|
26
|
+
})
|
|
27
|
+
.reduce((string, part) => string + part);
|
|
28
|
+
return isValidNumber(result) ? Number(result).toString() : null;
|
|
29
|
+
}
|
|
30
|
+
function sanitizeDecimalString(decimalString) {
|
|
31
|
+
return (decimalString === null || decimalString === void 0 ? void 0 : decimalString.endsWith(".")) ? decimalString.replace(".", "") : decimalString;
|
|
32
|
+
}
|
|
33
|
+
function sanitizeNumberString(value) {
|
|
34
|
+
return value ? Number(sanitizeDecimalString(value)).toString() : value;
|
|
35
|
+
}
|
|
36
|
+
function stringContainsNumbers(string) {
|
|
37
|
+
return numberKeys.some((number) => string.includes(number));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { sanitizeDecimalString as a, isValidNumber as i, parseNumberString as p, sanitizeNumberString as s };
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { Build } from '@stencil/core/internal/client';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* This utility ensures observers are created only for browser contexts.
|
|
9
|
+
*
|
|
10
|
+
* @param type - the type of observer to create
|
|
11
|
+
* @param callback - the observer callback
|
|
12
|
+
* @param options - the observer options
|
|
13
|
+
*/
|
|
14
|
+
function createObserver(type, callback, options) {
|
|
15
|
+
const Observer = getObserver(type);
|
|
16
|
+
return Build.isBrowser ? new Observer(callback, options) : undefined;
|
|
17
|
+
}
|
|
18
|
+
function getObserver(type) {
|
|
19
|
+
return (type === "intersection" ? IntersectionObserver : type === "mutation" ? MutationObserver : ResizeObserver);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { createObserver as c };
|
|
@@ -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 { a as getElementDir } from './dom.js';
|
|
6
6
|
|
|
7
7
|
var top = 'top';
|
|
8
8
|
var bottom = 'bottom';
|
|
@@ -1769,9 +1769,9 @@ function createPopper({ referenceEl, el, placement, overlayPositioning = "absolu
|
|
|
1769
1769
|
modifiers
|
|
1770
1770
|
});
|
|
1771
1771
|
}
|
|
1772
|
-
function updatePopper({ el, modifiers, placement: PopperPlacement, popper }) {
|
|
1772
|
+
async function updatePopper({ el, modifiers, placement: PopperPlacement, popper }) {
|
|
1773
1773
|
const placement = getPlacement(el, PopperPlacement);
|
|
1774
|
-
popper.setOptions({
|
|
1774
|
+
await popper.setOptions({
|
|
1775
1775
|
modifiers,
|
|
1776
1776
|
placement
|
|
1777
1777
|
});
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
const CSS = {
|
|
6
|
+
container: "container",
|
|
7
|
+
arrow: "arrow",
|
|
8
|
+
imageContainer: "image-container",
|
|
9
|
+
closeButton: "close-button",
|
|
10
|
+
content: "content",
|
|
11
|
+
hasHeader: "has-header",
|
|
12
|
+
header: "header",
|
|
13
|
+
headerContent: "header-content",
|
|
14
|
+
heading: "heading"
|
|
15
|
+
};
|
|
16
|
+
const TEXT = {
|
|
17
|
+
close: "Close"
|
|
18
|
+
};
|
|
19
|
+
const POPOVER_REFERENCE = "data-calcite-popover-reference";
|
|
20
|
+
const ARIA_CONTROLS = "aria-controls";
|
|
21
|
+
const ARIA_EXPANDED = "aria-expanded";
|
|
22
|
+
const HEADING_LEVEL = 2;
|
|
23
|
+
|
|
24
|
+
export { ARIA_EXPANDED as A, CSS as C, HEADING_LEVEL as H, POPOVER_REFERENCE as P, TEXT as T, ARIA_CONTROLS as a };
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
const CSS = {
|
|
6
|
+
container: "container",
|
|
7
|
+
arrow: "arrow"
|
|
8
|
+
};
|
|
9
|
+
const TOOLTIP_DELAY_MS = 500;
|
|
10
|
+
const TOOLTIP_REFERENCE = "data-calcite-tooltip-reference";
|
|
11
|
+
const ARIA_DESCRIBED_BY = "aria-describedby";
|
|
12
|
+
|
|
13
|
+
export { ARIA_DESCRIBED_BY as A, CSS as C, TOOLTIP_REFERENCE as T, TOOLTIP_DELAY_MS as a };
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
const CSS = {
|
|
6
|
+
sticky: "sticky"
|
|
7
|
+
};
|
|
8
|
+
var ICON_TYPES;
|
|
9
|
+
(function (ICON_TYPES) {
|
|
10
|
+
ICON_TYPES["circle"] = "circle";
|
|
11
|
+
ICON_TYPES["square"] = "square";
|
|
12
|
+
ICON_TYPES["grip"] = "grip";
|
|
13
|
+
})(ICON_TYPES || (ICON_TYPES = {}));
|
|
14
|
+
const SLOTS = {
|
|
15
|
+
menuActions: "menu-actions"
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { CSS as C, ICON_TYPES as I, SLOTS as S };
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
const CSS = {
|
|
6
|
+
header: "header",
|
|
7
|
+
heading: "heading",
|
|
8
|
+
close: "close",
|
|
9
|
+
container: "container",
|
|
10
|
+
tipContainer: "tip-container",
|
|
11
|
+
tipContainerAdvancing: "tip-container--advancing",
|
|
12
|
+
tipContainerRetreating: "tip-container--retreating",
|
|
13
|
+
pagination: "pagination",
|
|
14
|
+
pagePosition: "page-position",
|
|
15
|
+
pageNext: "page-next",
|
|
16
|
+
pagePrevious: "page-previous"
|
|
17
|
+
};
|
|
18
|
+
const ICONS = {
|
|
19
|
+
chevronLeft: "chevron-left",
|
|
20
|
+
chevronRight: "chevron-right",
|
|
21
|
+
close: "x"
|
|
22
|
+
};
|
|
23
|
+
const TEXT = {
|
|
24
|
+
defaultGroupTitle: "Tips",
|
|
25
|
+
defaultPaginationLabel: "Tip",
|
|
26
|
+
close: "Close",
|
|
27
|
+
previous: "Previous",
|
|
28
|
+
next: "Next"
|
|
29
|
+
};
|
|
30
|
+
const HEADING_LEVEL = 2;
|
|
31
|
+
|
|
32
|
+
export { CSS as C, HEADING_LEVEL as H, ICONS as I, TEXT as T };
|
|
@@ -0,0 +1,286 @@
|
|
|
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 { f as focusElement, b as getSlotted, a as getElementDir } from './dom.js';
|
|
6
|
+
import { g as getRoundRobinIndex } from './array.js';
|
|
7
|
+
import { d as debounce } from './debounce.js';
|
|
8
|
+
import { h, Host } from '@stencil/core/internal/client';
|
|
9
|
+
import { C as CSS, S as SLOTS } from './resources3.js';
|
|
10
|
+
|
|
11
|
+
function mutationObserverCallback() {
|
|
12
|
+
this.setUpItems();
|
|
13
|
+
this.setUpFilter();
|
|
14
|
+
}
|
|
15
|
+
const SUPPORTED_ARROW_KEYS = ["ArrowUp", "ArrowDown"];
|
|
16
|
+
// --------------------------------------------------------------------------
|
|
17
|
+
//
|
|
18
|
+
// Lifecycle
|
|
19
|
+
//
|
|
20
|
+
// --------------------------------------------------------------------------
|
|
21
|
+
function initialize() {
|
|
22
|
+
this.setUpItems();
|
|
23
|
+
this.setUpFilter();
|
|
24
|
+
this.emitCalciteListChange = debounce(internalCalciteListChangeEvent.bind(this), 0);
|
|
25
|
+
}
|
|
26
|
+
function initializeObserver() {
|
|
27
|
+
var _a;
|
|
28
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
29
|
+
}
|
|
30
|
+
function cleanUpObserver() {
|
|
31
|
+
var _a;
|
|
32
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
33
|
+
}
|
|
34
|
+
// --------------------------------------------------------------------------
|
|
35
|
+
//
|
|
36
|
+
// Listeners
|
|
37
|
+
//
|
|
38
|
+
// --------------------------------------------------------------------------
|
|
39
|
+
function calciteListItemChangeHandler(event) {
|
|
40
|
+
const { selectedValues } = this;
|
|
41
|
+
const { item, value, selected, shiftPressed } = event.detail;
|
|
42
|
+
if (selected) {
|
|
43
|
+
if (this.multiple && shiftPressed) {
|
|
44
|
+
this.selectSiblings(item);
|
|
45
|
+
}
|
|
46
|
+
if (!this.multiple) {
|
|
47
|
+
this.deselectSiblingItems(item);
|
|
48
|
+
}
|
|
49
|
+
selectedValues.set(value, item);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
selectedValues.delete(value);
|
|
53
|
+
if (this.multiple && shiftPressed) {
|
|
54
|
+
this.selectSiblings(item, true);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (!this.multiple) {
|
|
58
|
+
toggleSingleSelectItemTabbing(item, selected);
|
|
59
|
+
if (selected) {
|
|
60
|
+
focusElement(item);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
this.lastSelectedItem = item;
|
|
64
|
+
this.emitCalciteListChange();
|
|
65
|
+
}
|
|
66
|
+
function calciteListItemValueChangeHandler(event) {
|
|
67
|
+
event.stopPropagation();
|
|
68
|
+
const oldValue = event.detail.oldValue;
|
|
69
|
+
const selectedValues = this.selectedValues;
|
|
70
|
+
if (selectedValues.has(oldValue)) {
|
|
71
|
+
const item = selectedValues.get(oldValue);
|
|
72
|
+
selectedValues.delete(oldValue);
|
|
73
|
+
selectedValues.set(event.detail.newValue, item);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
// --------------------------------------------------------------------------
|
|
77
|
+
//
|
|
78
|
+
// Private Methods
|
|
79
|
+
//
|
|
80
|
+
// --------------------------------------------------------------------------
|
|
81
|
+
function isValidNavigationKey(key) {
|
|
82
|
+
return !!SUPPORTED_ARROW_KEYS.find((k) => k === key);
|
|
83
|
+
}
|
|
84
|
+
function calciteListFocusOutHandler(event) {
|
|
85
|
+
const { el, items, multiple, selectedValues } = this;
|
|
86
|
+
if (multiple) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const focusedInside = !!el.contains(event.relatedTarget);
|
|
90
|
+
if (focusedInside) {
|
|
91
|
+
toggleSingleSelectItemTabbing(event.target, false);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
items.forEach((item) => toggleSingleSelectItemTabbing(item, selectedValues.size === 0 ? event.target === item : item.selected));
|
|
95
|
+
}
|
|
96
|
+
function keyDownHandler(event) {
|
|
97
|
+
const { key, target } = event;
|
|
98
|
+
if (!isValidNavigationKey(key)) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const { items, multiple, selectionFollowsFocus } = this;
|
|
102
|
+
const { length: totalItems } = items;
|
|
103
|
+
const currentIndex = items.indexOf(target);
|
|
104
|
+
if (!totalItems || currentIndex === -1) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
event.preventDefault();
|
|
108
|
+
const index = getRoundRobinIndex(currentIndex + (key === "ArrowUp" ? -1 : 1), totalItems);
|
|
109
|
+
const item = items[index];
|
|
110
|
+
items.forEach((i) => toggleSingleSelectItemTabbing(i, i === item));
|
|
111
|
+
if (!multiple && selectionFollowsFocus) {
|
|
112
|
+
item.selected = true;
|
|
113
|
+
}
|
|
114
|
+
focusElement(item);
|
|
115
|
+
}
|
|
116
|
+
function internalCalciteListChangeEvent() {
|
|
117
|
+
this.calciteListChange.emit(this.selectedValues);
|
|
118
|
+
}
|
|
119
|
+
function removeItem(event) {
|
|
120
|
+
if (event.defaultPrevented) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
const item = event.target;
|
|
124
|
+
const selectedValues = this.selectedValues;
|
|
125
|
+
if (item.parentElement.tagName === "CALCITE-PICK-LIST-GROUP") {
|
|
126
|
+
item.parentElement.remove();
|
|
127
|
+
Array.from(item.parentElement.children).forEach((item) => selectedValues.delete(item.value));
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
item.remove();
|
|
131
|
+
selectedValues.delete(item.value);
|
|
132
|
+
}
|
|
133
|
+
this.emitCalciteListChange();
|
|
134
|
+
}
|
|
135
|
+
function toggleSingleSelectItemTabbing(item, selectable) {
|
|
136
|
+
// using attribute intentionally
|
|
137
|
+
if (selectable) {
|
|
138
|
+
item.removeAttribute("tabindex");
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
item.setAttribute("tabindex", "-1");
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
async function setFocus(focusId) {
|
|
145
|
+
if (this.filterEnabled && focusId === "filter") {
|
|
146
|
+
await focusElement(this.filterEl);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
const { items, multiple, selectionFollowsFocus } = this;
|
|
150
|
+
if (items.length === 0) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
if (multiple) {
|
|
154
|
+
return items[0].setFocus();
|
|
155
|
+
}
|
|
156
|
+
const focusTarget = items.find((item) => item.selected) || items[0];
|
|
157
|
+
if (selectionFollowsFocus) {
|
|
158
|
+
focusTarget.selected = true;
|
|
159
|
+
}
|
|
160
|
+
return focusTarget.setFocus();
|
|
161
|
+
}
|
|
162
|
+
function setUpItems(tagName) {
|
|
163
|
+
this.items = Array.from(this.el.querySelectorAll(tagName));
|
|
164
|
+
let hasSelected = false;
|
|
165
|
+
const { items } = this;
|
|
166
|
+
items.forEach((item) => {
|
|
167
|
+
item.icon = this.getIconType();
|
|
168
|
+
if (!this.multiple) {
|
|
169
|
+
item.disableDeselect = true;
|
|
170
|
+
toggleSingleSelectItemTabbing(item, false);
|
|
171
|
+
}
|
|
172
|
+
if (item.selected) {
|
|
173
|
+
hasSelected = true;
|
|
174
|
+
toggleSingleSelectItemTabbing(item, true);
|
|
175
|
+
this.selectedValues.set(item.value, item);
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
const [first] = items;
|
|
179
|
+
if (!hasSelected && first) {
|
|
180
|
+
toggleSingleSelectItemTabbing(first, true);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
function deselectSiblingItems(item) {
|
|
184
|
+
this.items.forEach((currentItem) => {
|
|
185
|
+
if (currentItem.value !== item.value) {
|
|
186
|
+
currentItem.toggleSelected(false);
|
|
187
|
+
if (this.selectedValues.has(currentItem.value)) {
|
|
188
|
+
this.selectedValues.delete(currentItem.value);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
function selectSiblings(item, deselect = false) {
|
|
194
|
+
if (!this.lastSelectedItem) {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
const { items } = this;
|
|
198
|
+
const start = items.findIndex((currentItem) => {
|
|
199
|
+
return currentItem.value === this.lastSelectedItem.value;
|
|
200
|
+
});
|
|
201
|
+
const end = items.findIndex((currentItem) => {
|
|
202
|
+
return currentItem.value === item.value;
|
|
203
|
+
});
|
|
204
|
+
items.slice(Math.min(start, end), Math.max(start, end)).forEach((currentItem) => {
|
|
205
|
+
currentItem.toggleSelected(!deselect);
|
|
206
|
+
if (!deselect) {
|
|
207
|
+
this.selectedValues.set(currentItem.value, currentItem);
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
this.selectedValues.delete(currentItem.value);
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
let groups;
|
|
215
|
+
function handleFilter(event) {
|
|
216
|
+
const filteredData = event.detail;
|
|
217
|
+
const values = filteredData.map((item) => item.value);
|
|
218
|
+
let hasSelectedMatch = false;
|
|
219
|
+
if (!groups) {
|
|
220
|
+
groups = new Set();
|
|
221
|
+
}
|
|
222
|
+
const matchedItems = this.items.filter((item) => {
|
|
223
|
+
const parent = item.parentElement;
|
|
224
|
+
const grouped = parent.matches("calcite-pick-list-group");
|
|
225
|
+
if (grouped) {
|
|
226
|
+
groups.add(parent);
|
|
227
|
+
}
|
|
228
|
+
const matches = values.includes(item.value);
|
|
229
|
+
item.hidden = !matches;
|
|
230
|
+
if (!hasSelectedMatch) {
|
|
231
|
+
hasSelectedMatch = matches && item.selected;
|
|
232
|
+
}
|
|
233
|
+
return matches;
|
|
234
|
+
});
|
|
235
|
+
groups.forEach((group) => {
|
|
236
|
+
const hasAtLeastOneMatch = matchedItems.some((item) => group.contains(item));
|
|
237
|
+
group.hidden = !hasAtLeastOneMatch;
|
|
238
|
+
if (!hasAtLeastOneMatch) {
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
const parentItem = getSlotted(group, "parent-item");
|
|
242
|
+
if (parentItem) {
|
|
243
|
+
parentItem.hidden = false;
|
|
244
|
+
if (matchedItems.includes(parentItem)) {
|
|
245
|
+
Array.from(group.children).forEach((child) => (child.hidden = false));
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
groups.clear();
|
|
250
|
+
if (matchedItems.length > 0 && !hasSelectedMatch && !this.multiple) {
|
|
251
|
+
toggleSingleSelectItemTabbing(matchedItems[0], true);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
function getItemData() {
|
|
255
|
+
return this.items.map((item) => ({
|
|
256
|
+
label: item.label,
|
|
257
|
+
description: item.description,
|
|
258
|
+
metadata: item.metadata,
|
|
259
|
+
value: item.value
|
|
260
|
+
}));
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
264
|
+
var t = {};
|
|
265
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
266
|
+
t[p] = s[p];
|
|
267
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
268
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
269
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
270
|
+
t[p[i]] = s[p[i]];
|
|
271
|
+
}
|
|
272
|
+
return t;
|
|
273
|
+
};
|
|
274
|
+
const List = (_a) => {
|
|
275
|
+
var { props: { disabled, loading, filterEnabled, dataForFilter, handleFilter, filterPlaceholder, el, setFilterEl } } = _a, rest = __rest(_a, ["props"]);
|
|
276
|
+
const defaultSlot = h("slot", null);
|
|
277
|
+
return (h(Host, Object.assign({ "aria-busy": loading.toString(), "aria-disabled": disabled.toString(), role: "menu" }, rest),
|
|
278
|
+
h("section", null,
|
|
279
|
+
h("header", { class: { [CSS.sticky]: true } },
|
|
280
|
+
filterEnabled ? (h("calcite-filter", { "aria-label": filterPlaceholder, data: dataForFilter, dir: getElementDir(el), disabled: loading || disabled, onCalciteFilterChange: handleFilter, placeholder: filterPlaceholder, ref: setFilterEl })) : null,
|
|
281
|
+
h("slot", { name: SLOTS.menuActions })),
|
|
282
|
+
loading || disabled ? h("calcite-scrim", { loading: loading }) : null,
|
|
283
|
+
defaultSlot)));
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
export { List as L, initializeObserver as a, calciteListItemChangeHandler as b, cleanUpObserver as c, deselectSiblingItems as d, calciteListItemValueChangeHandler as e, calciteListFocusOutHandler as f, getItemData as g, handleFilter as h, initialize as i, setUpItems as j, keyDownHandler as k, setFocus as l, mutationObserverCallback as m, removeItem as r, selectSiblings as s };
|