@esri/calcite-components 1.0.0-beta.67 → 1.0.0-beta.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/assets/calcite-icon/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 +5 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/index.esm.js +4 -0
- package/dist/calcite/p-00d72f16.entry.js +5 -0
- package/dist/calcite/p-01c3783e.system.entry.js +5 -0
- package/dist/calcite/p-021d44b7.system.entry.js +5 -0
- package/dist/calcite/p-050dc7e6.system.entry.js +5 -0
- package/dist/calcite/p-05bf835f.js +5 -0
- package/dist/calcite/p-07ba39b6.js +5 -0
- package/dist/calcite/p-0e30afe6.entry.js +5 -0
- package/dist/calcite/p-0fb8cdc5.entry.js +5 -0
- package/dist/calcite/p-0fc8b24c.system.entry.js +5 -0
- package/dist/calcite/p-0fd333ff.entry.js +5 -0
- package/dist/calcite/p-10ccc21d.entry.js +5 -0
- package/dist/calcite/p-157d05ce.js +5 -0
- package/dist/calcite/p-175764f3.system.entry.js +5 -0
- package/dist/calcite/p-18078190.entry.js +5 -0
- package/dist/calcite/p-18574b32.entry.js +5 -0
- package/dist/calcite/p-1aaf7f83.entry.js +5 -0
- package/dist/calcite/p-1b2c1f55.entry.js +5 -0
- package/dist/calcite/p-1d6404b5.system.js +5 -0
- package/dist/calcite/p-1f99b038.entry.js +5 -0
- package/dist/calcite/p-1fb7138b.js +5 -0
- package/dist/calcite/p-20042561.entry.js +5 -0
- package/dist/calcite/p-22ad79b1.entry.js +5 -0
- package/dist/calcite/p-24b86e03.entry.js +5 -0
- package/dist/calcite/p-26045881.entry.js +5 -0
- package/dist/calcite/p-26508b91.js +5 -0
- package/dist/calcite/p-2920aa02.entry.js +5 -0
- package/dist/calcite/p-29b110b2.entry.js +5 -0
- package/dist/calcite/p-2ba00b89.js +5 -0
- package/dist/calcite/p-318e95d7.system.entry.js +5 -0
- package/dist/calcite/p-31c4a271.system.entry.js +5 -0
- package/dist/calcite/p-32faf98b.system.entry.js +5 -0
- package/dist/calcite/p-32fbf8cd.system.js +5 -0
- package/dist/calcite/p-349333f8.system.entry.js +5 -0
- package/dist/calcite/p-34a1c944.entry.js +5 -0
- package/dist/calcite/p-34a6550f.system.entry.js +5 -0
- package/dist/calcite/p-361ddbb6.entry.js +5 -0
- package/dist/calcite/p-378b83de.entry.js +5 -0
- package/dist/calcite/p-378ffa38.system.js +5 -0
- package/dist/calcite/p-37cee0ea.entry.js +5 -0
- package/dist/calcite/p-3929447c.system.entry.js +5 -0
- package/dist/calcite/p-3b17d8d0.system.js +5 -0
- package/dist/calcite/p-3ba8024a.system.entry.js +5 -0
- package/dist/calcite/p-4035444d.system.js +5 -0
- package/dist/calcite/p-41e9b889.entry.js +5 -0
- package/dist/calcite/p-43494684.entry.js +5 -0
- package/dist/calcite/p-45d123be.system.entry.js +5 -0
- package/dist/calcite/p-47313747.system.js +5 -0
- package/dist/calcite/p-473cfb74.system.entry.js +5 -0
- package/dist/calcite/p-477bac2c.system.js +5 -0
- package/dist/calcite/p-485062f4.system.entry.js +5 -0
- package/dist/calcite/p-4c7e3d8e.system.entry.js +5 -0
- package/dist/calcite/p-4de6f4fd.system.js +5 -0
- package/dist/calcite/p-4e06a168.entry.js +5 -0
- package/dist/calcite/p-51cb078a.entry.js +5 -0
- package/dist/calcite/p-52cc870b.js +5 -0
- package/dist/calcite/p-530584ff.system.entry.js +5 -0
- package/dist/calcite/p-568ed3d6.system.entry.js +5 -0
- package/dist/calcite/p-56b352bf.system.js +5 -0
- package/dist/calcite/p-57f5866d.system.entry.js +5 -0
- package/dist/calcite/p-5c221c33.system.entry.js +5 -0
- package/dist/calcite/p-5cb26137.system.entry.js +5 -0
- package/dist/calcite/p-61038b30.js +5 -0
- package/dist/calcite/p-64d90b14.system.js +5 -0
- package/dist/calcite/p-67fd79db.entry.js +5 -0
- package/dist/calcite/p-693a4d5f.entry.js +5 -0
- package/dist/calcite/p-69548a7d.system.entry.js +5 -0
- package/dist/calcite/p-6a541e77.system.js +5 -0
- package/dist/calcite/p-6cc23c39.system.js +5 -0
- package/dist/calcite/p-72563742.js +5 -0
- package/dist/calcite/p-727c8f36.system.entry.js +5 -0
- package/dist/calcite/p-728501db.system.js +5 -0
- package/dist/calcite/p-72ffc6d7.entry.js +5 -0
- package/dist/calcite/p-745e41ea.entry.js +5 -0
- package/dist/calcite/p-75793454.entry.js +5 -0
- package/dist/calcite/p-7839d1c9.entry.js +5 -0
- package/dist/calcite/p-7a544774.system.entry.js +5 -0
- package/dist/calcite/p-7b01fe89.js +5 -0
- package/dist/calcite/p-7b600760.entry.js +5 -0
- package/dist/calcite/p-7c0debe0.system.entry.js +5 -0
- package/dist/calcite/p-7cdfec27.system.js +5 -0
- package/dist/calcite/p-7ed4c551.system.js +5 -0
- package/dist/calcite/p-7f4a5f8e.system.entry.js +5 -0
- package/dist/calcite/p-81a82d01.system.entry.js +5 -0
- package/dist/calcite/p-85a2bf7c.system.entry.js +5 -0
- package/dist/calcite/p-8655c0a1.entry.js +5 -0
- package/dist/calcite/p-87b93729.entry.js +5 -0
- package/dist/calcite/p-87e83c0d.system.entry.js +5 -0
- package/dist/calcite/p-8a63221d.js +5 -0
- package/dist/calcite/p-8efb43fc.entry.js +5 -0
- package/dist/calcite/p-8fcfe861.js +5 -0
- package/dist/calcite/p-91645bf7.system.js +5 -0
- package/dist/calcite/p-9358deb1.system.entry.js +5 -0
- package/dist/calcite/p-93d8a7d5.entry.js +5 -0
- package/dist/calcite/p-95a3a0ce.entry.js +5 -0
- package/dist/calcite/p-9965ea81.system.js +5 -0
- package/dist/calcite/p-99da965d.system.entry.js +5 -0
- package/dist/calcite/p-9ac1fa0b.system.entry.js +5 -0
- package/dist/calcite/p-9caae570.entry.js +5 -0
- package/dist/calcite/p-9d3ee5cf.system.entry.js +5 -0
- package/dist/calcite/p-9d83f268.system.entry.js +5 -0
- package/dist/calcite/p-9dbb69f7.entry.js +5 -0
- package/dist/calcite/p-9e4f2697.system.entry.js +5 -0
- package/dist/calcite/p-a0c02648.system.js +5 -0
- package/dist/calcite/p-a20df95c.js +5 -0
- package/dist/calcite/p-a62de092.js +5 -0
- package/dist/calcite/p-a7521c0d.entry.js +5 -0
- package/dist/calcite/p-a8cd5cde.system.entry.js +5 -0
- package/dist/calcite/p-a93678c6.system.entry.js +5 -0
- package/dist/calcite/p-aad45edf.system.js +5 -0
- package/dist/calcite/p-ac3d8784.entry.js +5 -0
- package/dist/calcite/p-ac9607f2.system.js +11 -0
- package/dist/calcite/p-acaad99b.system.entry.js +5 -0
- package/dist/calcite/p-accdb0ce.js +5 -0
- package/dist/calcite/p-b06207bb.js +5 -0
- package/dist/calcite/p-b2ab0485.js +5 -0
- package/dist/calcite/p-b701101e.entry.js +5 -0
- package/dist/calcite/p-ba255377.entry.js +5 -0
- package/dist/calcite/p-ba9b4f62.system.entry.js +5 -0
- package/dist/calcite/p-bb916828.system.entry.js +5 -0
- package/dist/calcite/p-bc02d9ef.system.entry.js +5 -0
- package/dist/calcite/p-bcc323ec.system.entry.js +5 -0
- package/dist/calcite/p-bd555b2e.system.entry.js +5 -0
- package/dist/calcite/p-be3b0fee.entry.js +5 -0
- package/dist/calcite/p-bfc162ee.system.entry.js +5 -0
- package/dist/calcite/p-c0dd929a.entry.js +5 -0
- package/dist/calcite/p-c1995144.system.entry.js +5 -0
- package/dist/calcite/p-c20278e8.system.entry.js +5 -0
- package/dist/calcite/p-c31243c5.entry.js +5 -0
- package/dist/calcite/p-c3922ef7.system.entry.js +5 -0
- package/dist/calcite/p-c57f8690.entry.js +5 -0
- package/dist/calcite/p-c5ec8d74.js +11 -0
- package/dist/calcite/p-c74fc589.system.js +5 -0
- package/dist/calcite/p-caf7085a.system.js +5 -0
- package/dist/calcite/p-cb228ac0.entry.js +5 -0
- package/dist/calcite/p-cbdf0e6c.js +5 -0
- package/dist/calcite/p-cd8f7781.system.entry.js +5 -0
- package/dist/calcite/p-d35e423d.js +5 -0
- package/dist/calcite/p-d5d62977.entry.js +5 -0
- package/dist/calcite/p-d7a7a544.system.entry.js +5 -0
- package/dist/calcite/p-d7e5b807.system.entry.js +5 -0
- package/dist/calcite/p-da9603a3.entry.js +5 -0
- package/dist/calcite/p-db10485b.system.js +5 -0
- package/dist/calcite/p-de0f4633.entry.js +5 -0
- package/dist/calcite/p-e020662f.system.js +5 -0
- package/dist/calcite/p-e33a2dd2.system.entry.js +5 -0
- package/dist/calcite/p-e3a30266.system.entry.js +5 -0
- package/dist/calcite/p-e4acb5a8.js +5 -0
- package/dist/calcite/p-e693758c.entry.js +5 -0
- package/dist/calcite/p-e9044cc1.entry.js +5 -0
- package/dist/calcite/p-eb3ee207.entry.js +5 -0
- package/dist/calcite/p-f07d3627.js +5 -0
- package/dist/calcite/p-f141da0f.entry.js +5 -0
- package/dist/calcite/p-f243b615.js +5 -0
- package/dist/calcite/p-f37563ac.system.entry.js +5 -0
- package/dist/calcite/p-f4299b95.entry.js +5 -0
- package/dist/calcite/p-f5d25746.system.entry.js +5 -0
- package/dist/calcite/p-f8d975a1.system.entry.js +5 -0
- package/dist/calcite/p-fb1da0f5.system.js +5 -0
- package/dist/calcite/p-fc4846f0.system.entry.js +5 -0
- package/dist/calcite/p-fe52131d.entry.js +5 -0
- package/dist/calcite/p-ff04f827.system.entry.js +5 -0
- package/dist/calcite/p-fff0a881.entry.js +5 -0
- package/dist/cjs/CalciteExpandToggle-0d802f83.js +94 -0
- package/dist/cjs/CalciteHeading-381b977d.js +19 -0
- package/dist/cjs/array-a5dedf5a.js +11 -0
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +8 -4
- package/dist/cjs/calcite-action-bar.cjs.entry.js +12 -8
- package/dist/cjs/calcite-action-group.cjs.entry.js +9 -5
- package/dist/cjs/calcite-action-menu.cjs.entry.js +14 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -6
- package/dist/cjs/calcite-action.cjs.entry.js +11 -11
- package/dist/cjs/calcite-alert.cjs.entry.js +9 -5
- package/dist/cjs/calcite-avatar.cjs.entry.js +8 -4
- package/dist/cjs/calcite-block_2.cjs.entry.js +21 -14
- package/dist/cjs/calcite-button.cjs.entry.js +59 -38
- package/dist/cjs/calcite-card.cjs.entry.js +8 -4
- package/dist/cjs/calcite-checkbox.cjs.entry.js +14 -10
- package/dist/cjs/calcite-chip.cjs.entry.js +7 -3
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +11 -7
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +25 -21
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +15 -11
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +45 -36
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -3
- package/dist/cjs/calcite-filter.cjs.entry.js +10 -6
- package/dist/cjs/calcite-flow.cjs.entry.js +6 -2
- package/dist/cjs/calcite-graph_2.cjs.entry.js +19 -15
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -1
- package/dist/cjs/calcite-icon.cjs.entry.js +8 -4
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +21 -17
- package/dist/cjs/calcite-input-message.cjs.entry.js +7 -3
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +19 -15
- package/dist/cjs/calcite-input.cjs.entry.js +25 -26
- package/dist/cjs/calcite-label.cjs.entry.js +7 -3
- package/dist/cjs/calcite-link.cjs.entry.js +13 -3
- package/dist/cjs/calcite-list_3.cjs.entry.js +30 -5
- package/dist/cjs/calcite-loader.cjs.entry.js +7 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +9 -5
- package/dist/cjs/calcite-notice.cjs.entry.js +9 -5
- package/dist/cjs/calcite-option_3.cjs.entry.js +17 -13
- package/dist/cjs/calcite-pagination.cjs.entry.js +7 -3
- package/dist/cjs/calcite-panel.cjs.entry.js +9 -5
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +12 -8
- package/dist/cjs/calcite-popover_2.cjs.entry.js +9 -5
- package/dist/cjs/calcite-progress.cjs.entry.js +5 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +5 -1
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +19 -15
- package/dist/cjs/calcite-radio_2.cjs.entry.js +24 -20
- package/dist/cjs/calcite-rating.cjs.entry.js +16 -12
- package/dist/cjs/calcite-scrim.cjs.entry.js +5 -1
- package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -3
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +7 -3
- package/dist/cjs/calcite-split-button.cjs.entry.js +7 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +8 -4
- package/dist/cjs/calcite-switch.cjs.entry.js +21 -17
- package/dist/cjs/calcite-tab_4.cjs.entry.js +9 -5
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +7 -3
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -3
- package/dist/cjs/calcite-tip_3.cjs.entry.js +9 -5
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +12 -7
- package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -4
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -8
- package/dist/cjs/calcite.cjs.js +6 -2
- package/dist/cjs/debounce-95979061.js +495 -0
- package/dist/cjs/dom-19822169.js +170 -0
- package/dist/cjs/forIn-a5d553af.js +622 -0
- package/dist/cjs/form-00fb301c.js +22 -0
- package/dist/cjs/guid-b270f0db.js +20 -0
- package/dist/cjs/index-1987a382.js +2066 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/interfaces-54651c1c.js +13 -0
- package/dist/cjs/key-8bfb93ec.js +37 -0
- package/dist/cjs/label-549c3d9d.js +58 -0
- package/dist/cjs/loader.cjs.js +6 -2
- package/dist/cjs/locale-69dc9583.js +123 -0
- package/dist/cjs/math-9d44163f.js +9 -0
- package/dist/cjs/number-e6448e15.js +45 -0
- package/dist/cjs/observers-41837607.js +22 -0
- package/dist/cjs/popper-cd9c0742.js +1790 -0
- package/dist/cjs/resources-407a4290.js +20 -0
- package/dist/cjs/resources-7dcd68d1.js +232 -0
- package/dist/cjs/resources-d0619f6a.js +346 -0
- package/dist/cjs/resources-ffe563a2.js +21 -0
- package/dist/cjs/sortable.esm-d7a4560b.js +3019 -0
- package/dist/cjs/utils-55d67711.js +123 -0
- package/dist/collection/components/calcite-accordion/calcite-accordion.js +4 -0
- package/dist/collection/components/calcite-accordion/interfaces.js +4 -0
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +4 -0
- package/dist/collection/components/calcite-action/calcite-action.css +17 -68
- package/dist/collection/components/calcite-action/calcite-action.js +34 -31
- package/dist/collection/components/calcite-action/resources.js +4 -0
- package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +4 -0
- package/dist/collection/components/calcite-action-bar/resources.js +4 -0
- package/dist/collection/components/calcite-action-bar/utils.js +4 -0
- package/dist/collection/components/calcite-action-group/calcite-action-group.js +4 -0
- package/dist/collection/components/calcite-action-group/resources.js +4 -0
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +8 -2
- package/dist/collection/components/calcite-action-menu/resources.js +4 -0
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +4 -0
- package/dist/collection/components/calcite-action-pad/resources.js +4 -0
- package/dist/collection/components/calcite-alert/calcite-alert.css +0 -62
- package/dist/collection/components/calcite-alert/calcite-alert.js +4 -0
- package/dist/collection/components/calcite-alert/interfaces.js +4 -0
- package/dist/collection/components/calcite-alert/resources.js +4 -0
- package/dist/collection/components/calcite-avatar/calcite-avatar.js +4 -0
- package/dist/collection/components/calcite-avatar/utils.js +4 -0
- package/dist/collection/components/calcite-block/calcite-block.css +18 -0
- package/dist/collection/components/calcite-block/calcite-block.js +11 -6
- package/dist/collection/components/calcite-block/resources.js +8 -2
- package/dist/collection/components/calcite-block-section/calcite-block-section.css +1 -0
- package/dist/collection/components/calcite-block-section/calcite-block-section.js +4 -0
- package/dist/collection/components/calcite-block-section/interfaces.js +4 -0
- package/dist/collection/components/calcite-block-section/resources.js +4 -0
- package/dist/collection/components/calcite-button/calcite-button.js +35 -35
- package/dist/collection/components/calcite-button/interfaces.js +4 -0
- package/dist/collection/components/calcite-button/resources.js +4 -0
- package/dist/collection/components/calcite-card/calcite-card.js +4 -0
- package/dist/collection/components/calcite-card/resources.js +4 -0
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +4 -1
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +8 -4
- package/dist/collection/components/calcite-chip/calcite-chip.js +4 -0
- package/dist/collection/components/calcite-chip/interfaces.js +4 -0
- package/dist/collection/components/calcite-chip/resources.js +4 -0
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +4 -0
- package/dist/collection/components/calcite-color-picker/interfaces.js +4 -0
- package/dist/collection/components/calcite-color-picker/resources.js +4 -0
- package/dist/collection/components/calcite-color-picker/utils.js +4 -0
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +4 -0
- package/dist/collection/components/calcite-color-picker-hex-input/resources.js +4 -0
- package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.js +4 -0
- package/dist/collection/components/calcite-color-picker-swatch/resources.js +4 -0
- package/dist/collection/components/calcite-combobox/calcite-combobox.css +17 -4
- package/dist/collection/components/calcite-combobox/calcite-combobox.js +19 -14
- package/dist/collection/components/calcite-combobox/interfaces.js +4 -0
- package/dist/collection/components/calcite-combobox/resources.js +4 -0
- package/dist/collection/components/calcite-combobox/utils.js +4 -0
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +1 -1
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +4 -0
- package/dist/collection/components/calcite-combobox-item/resources.js +4 -0
- package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js +4 -0
- package/dist/collection/components/calcite-combobox-item-group/resources.js +4 -0
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +4 -0
- package/dist/collection/components/calcite-date-picker/interfaces.js +4 -0
- package/dist/collection/components/calcite-date-picker/resources.js +4 -0
- package/dist/collection/components/calcite-date-picker/utils.js +4 -0
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +1 -1
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +4 -0
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css +1 -1
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +4 -0
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +1 -1
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js +4 -0
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +42 -31
- package/dist/collection/components/calcite-dropdown/interfaces.js +4 -0
- package/dist/collection/components/calcite-dropdown/resources.js +4 -0
- package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +4 -0
- package/dist/collection/components/calcite-dropdown-group/interfaces.js +4 -0
- package/dist/collection/components/calcite-dropdown-group/resources.js +4 -0
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +4 -0
- package/dist/collection/components/calcite-dropdown-item/resources.js +4 -0
- package/dist/collection/components/calcite-fab/calcite-fab.js +4 -0
- package/dist/collection/components/calcite-fab/resources.js +4 -0
- package/dist/collection/components/calcite-filter/calcite-filter.js +5 -1
- package/dist/collection/components/calcite-filter/resources.js +4 -0
- package/dist/collection/components/calcite-flow/calcite-flow.js +4 -0
- package/dist/collection/components/calcite-flow/interfaces.js +4 -0
- package/dist/collection/components/calcite-flow/resources.js +4 -0
- package/dist/collection/components/calcite-graph/calcite-graph.js +4 -0
- package/dist/collection/components/calcite-graph/interfaces.js +4 -0
- package/dist/collection/components/calcite-graph/util.js +4 -0
- package/dist/collection/components/calcite-handle/calcite-handle.js +4 -0
- package/dist/collection/components/calcite-handle/resources.js +4 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMark32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/penMarkPlus32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/subscript32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/superscript32.json +1 -0
- package/dist/collection/components/calcite-icon/calcite-icon.js +4 -0
- package/dist/collection/components/calcite-icon/resources.js +4 -0
- package/dist/collection/components/calcite-icon/utils.js +4 -0
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +9 -4
- package/dist/collection/components/calcite-inline-editable/resources.js +4 -0
- package/dist/collection/components/calcite-input/calcite-input.js +18 -19
- package/dist/collection/components/calcite-input/interfaces.js +4 -0
- package/dist/collection/components/calcite-input/resources.js +4 -0
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +12 -8
- package/dist/collection/components/calcite-input-message/calcite-input-message.js +4 -0
- package/dist/collection/components/calcite-input-message/interfaces.js +4 -0
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +14 -10
- package/dist/collection/components/calcite-label/calcite-label.js +4 -0
- package/dist/collection/components/calcite-label/resources.js +4 -0
- package/dist/collection/components/calcite-link/calcite-link.js +15 -1
- package/dist/collection/components/calcite-list/calcite-list.js +37 -1
- package/dist/collection/components/calcite-list/resources.js +4 -0
- package/dist/collection/components/calcite-list-item/calcite-list-item.js +34 -2
- package/dist/collection/components/calcite-list-item/resources.js +4 -0
- package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.js +4 -0
- package/dist/collection/components/calcite-list-item-group/resources.js +4 -0
- package/dist/collection/components/calcite-loader/calcite-loader.css +3 -3
- package/dist/collection/components/calcite-loader/calcite-loader.js +4 -0
- package/dist/collection/components/calcite-modal/calcite-modal.js +4 -0
- package/dist/collection/components/calcite-modal/interfaces.js +4 -0
- package/dist/collection/components/calcite-modal/resources.js +4 -0
- package/dist/collection/components/calcite-notice/calcite-notice.css +18 -6
- package/dist/collection/components/calcite-notice/calcite-notice.js +4 -0
- package/dist/collection/components/calcite-notice/resources.js +4 -0
- package/dist/collection/components/calcite-option/calcite-option.js +4 -0
- package/dist/collection/components/calcite-option-group/calcite-option-group.js +4 -0
- package/dist/collection/components/calcite-pagination/calcite-pagination.js +4 -0
- package/dist/collection/components/calcite-pagination/resources.js +4 -0
- package/dist/collection/components/calcite-panel/calcite-panel.js +4 -0
- package/dist/collection/components/calcite-panel/resources.js +4 -0
- package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +4 -0
- package/dist/collection/components/calcite-pick-list/resources.js +4 -0
- package/dist/collection/components/calcite-pick-list/shared-list-logic.js +4 -0
- package/dist/collection/components/calcite-pick-list/shared-list-render.js +4 -0
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +4 -0
- package/dist/collection/components/calcite-pick-list-group/resources.js +4 -0
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +4 -0
- package/dist/collection/components/calcite-pick-list-item/resources.js +4 -0
- package/dist/collection/components/calcite-popover/calcite-popover.js +4 -0
- package/dist/collection/components/calcite-popover/resources.js +4 -0
- package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +4 -0
- package/dist/collection/components/calcite-progress/calcite-progress.js +4 -0
- package/dist/collection/components/calcite-radio/calcite-radio.js +4 -0
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +19 -15
- package/dist/collection/components/calcite-radio-button/resources.js +4 -0
- package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.js +4 -0
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +12 -8
- package/dist/collection/components/calcite-radio-group/interfaces.js +4 -0
- 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 +4 -0
- package/dist/collection/components/calcite-radio-group-item/resources.js +4 -0
- package/dist/collection/components/calcite-rating/calcite-rating.js +12 -8
- package/dist/collection/components/calcite-rating/resources.js +4 -0
- package/dist/collection/components/calcite-scrim/calcite-scrim.js +4 -0
- package/dist/collection/components/calcite-scrim/resources.js +4 -0
- package/dist/collection/components/calcite-select/calcite-select.js +12 -8
- package/dist/collection/components/calcite-select/resources.js +4 -0
- package/dist/collection/components/calcite-shell/calcite-shell.js +4 -0
- package/dist/collection/components/calcite-shell/resources.js +4 -0
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +4 -0
- package/dist/collection/components/calcite-shell-center-row/resources.js +4 -0
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +4 -0
- package/dist/collection/components/calcite-shell-panel/resources.js +4 -0
- package/dist/collection/components/calcite-slider/calcite-slider.js +13 -9
- package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.js +4 -0
- package/dist/collection/components/calcite-sortable-list/resources.js +4 -0
- package/dist/collection/components/calcite-split-button/calcite-split-button.js +4 -0
- package/dist/collection/components/calcite-split-button/resources.js +4 -0
- package/dist/collection/components/calcite-stepper/calcite-stepper.js +4 -0
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +4 -0
- package/dist/collection/components/calcite-switch/calcite-switch.js +15 -11
- package/dist/collection/components/calcite-tab/calcite-tab.js +4 -0
- package/dist/collection/components/calcite-tab/interfaces.js +4 -0
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.js +4 -0
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +4 -0
- package/dist/collection/components/calcite-tabs/calcite-tabs.js +4 -0
- package/dist/collection/components/calcite-tabs/interfaces.js +4 -0
- package/dist/collection/components/calcite-tabs/resources.js +4 -0
- package/dist/collection/components/calcite-tile/calcite-tile.js +4 -0
- package/dist/collection/components/calcite-tile/resources.js +4 -0
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +4 -0
- package/dist/collection/components/calcite-tile-select/interfaces.js +4 -0
- package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.js +4 -0
- package/dist/collection/components/calcite-tile-select-group/interfaces.js +4 -0
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +4 -0
- package/dist/collection/components/calcite-time-picker/resources.js +4 -0
- package/dist/collection/components/calcite-tip/calcite-tip.js +4 -0
- package/dist/collection/components/calcite-tip/resources.js +4 -0
- package/dist/collection/components/calcite-tip-group/calcite-tip-group.js +4 -0
- package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.js +4 -0
- package/dist/collection/components/calcite-tip-manager/resources.js +4 -0
- package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +4 -0
- package/dist/collection/components/calcite-tooltip/resources.js +4 -0
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +7 -2
- package/dist/collection/components/calcite-tree/calcite-tree.js +4 -0
- package/dist/collection/components/calcite-tree/interfaces.js +4 -0
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +4 -0
- package/dist/collection/components/calcite-tree-item/interfaces.js +4 -0
- package/dist/collection/components/calcite-tree-item/resources.js +4 -0
- package/dist/collection/components/calcite-value-list/calcite-value-list.js +4 -0
- package/dist/collection/components/calcite-value-list/resources.js +4 -0
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +4 -0
- package/dist/collection/components/calcite-value-list-item/resources.js +4 -0
- package/dist/collection/components/functional/CalciteExpandToggle.js +4 -0
- package/dist/collection/components/functional/CalciteHeading.js +4 -0
- package/dist/collection/components/interfaces.js +4 -0
- package/dist/collection/utils/array.js +4 -0
- package/dist/collection/utils/date.js +4 -0
- package/dist/collection/utils/dom.js +4 -0
- package/dist/collection/utils/filter.js +4 -0
- package/dist/collection/utils/form.js +4 -0
- package/dist/collection/utils/guid.js +4 -0
- package/dist/collection/utils/key.js +4 -0
- package/dist/collection/utils/label.js +8 -4
- package/dist/collection/utils/locale.js +4 -0
- package/dist/collection/utils/math.js +4 -0
- package/dist/collection/utils/number.js +4 -3
- package/dist/collection/utils/observers.js +4 -0
- package/dist/collection/utils/popper.js +4 -0
- package/dist/collection/utils/resources.js +4 -0
- package/dist/collection/utils/time.js +4 -0
- 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 +156 -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 +165 -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 +203 -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 +494 -0
- package/dist/components/calcite-label.d.ts +11 -0
- package/dist/components/calcite-label.js +84 -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 +162 -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/components/popper.js +1785 -0
- 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 +298 -249
- package/dist/esm/CalciteExpandToggle-151a563a.js +87 -0
- package/dist/esm/CalciteHeading-1735f17a.js +16 -0
- package/dist/esm/array-91a648e2.js +9 -0
- package/dist/esm/calcite-accordion_2.entry.js +8 -4
- package/dist/esm/calcite-action-bar.entry.js +12 -8
- package/dist/esm/calcite-action-group.entry.js +9 -5
- package/dist/esm/calcite-action-menu.entry.js +14 -8
- package/dist/esm/calcite-action-pad.entry.js +10 -6
- package/dist/esm/calcite-action.entry.js +11 -11
- package/dist/esm/calcite-alert.entry.js +9 -5
- package/dist/esm/calcite-avatar.entry.js +8 -4
- package/dist/esm/calcite-block_2.entry.js +21 -14
- package/dist/esm/calcite-button.entry.js +59 -38
- package/dist/esm/calcite-card.entry.js +8 -4
- package/dist/esm/calcite-checkbox.entry.js +14 -10
- package/dist/esm/calcite-chip.entry.js +7 -3
- package/dist/esm/calcite-color-picker_3.entry.js +11 -7
- package/dist/esm/calcite-combobox_3.entry.js +25 -21
- package/dist/esm/calcite-date-picker_4.entry.js +15 -11
- package/dist/esm/calcite-dropdown_3.entry.js +45 -36
- package/dist/esm/calcite-fab.entry.js +7 -3
- package/dist/esm/calcite-filter.entry.js +10 -6
- package/dist/esm/calcite-flow.entry.js +6 -2
- package/dist/esm/calcite-graph_2.entry.js +19 -15
- package/dist/esm/calcite-handle.entry.js +5 -1
- package/dist/esm/calcite-icon.entry.js +8 -4
- package/dist/esm/calcite-inline-editable.entry.js +12 -7
- package/dist/esm/calcite-input-date-picker.entry.js +21 -17
- package/dist/esm/calcite-input-message.entry.js +7 -3
- package/dist/esm/calcite-input-time-picker_2.entry.js +19 -15
- package/dist/esm/calcite-input.entry.js +25 -26
- package/dist/esm/calcite-label.entry.js +7 -3
- package/dist/esm/calcite-link.entry.js +13 -3
- package/dist/esm/calcite-list_3.entry.js +30 -5
- package/dist/esm/calcite-loader.entry.js +7 -3
- package/dist/esm/calcite-modal.entry.js +9 -5
- package/dist/esm/calcite-notice.entry.js +9 -5
- package/dist/esm/calcite-option_3.entry.js +17 -13
- package/dist/esm/calcite-pagination.entry.js +7 -3
- package/dist/esm/calcite-panel.entry.js +9 -5
- package/dist/esm/calcite-pick-list_3.entry.js +12 -8
- package/dist/esm/calcite-popover_2.entry.js +9 -5
- package/dist/esm/calcite-progress.entry.js +5 -1
- package/dist/esm/calcite-radio-button-group.entry.js +5 -1
- package/dist/esm/calcite-radio-group_2.entry.js +19 -15
- package/dist/esm/calcite-radio_2.entry.js +24 -20
- package/dist/esm/calcite-rating.entry.js +16 -12
- package/dist/esm/calcite-scrim.entry.js +5 -1
- package/dist/esm/calcite-shell_3.entry.js +7 -3
- package/dist/esm/calcite-sortable-list.entry.js +7 -3
- package/dist/esm/calcite-split-button.entry.js +7 -3
- package/dist/esm/calcite-stepper_2.entry.js +8 -4
- package/dist/esm/calcite-switch.entry.js +21 -17
- package/dist/esm/calcite-tab_4.entry.js +9 -5
- package/dist/esm/calcite-tile-select_2.entry.js +7 -3
- package/dist/esm/calcite-tile.entry.js +7 -3
- package/dist/esm/calcite-tip_3.entry.js +9 -5
- package/dist/esm/calcite-tooltip_2.entry.js +12 -7
- package/dist/esm/calcite-tree_2.entry.js +8 -4
- package/dist/esm/calcite-value-list_2.entry.js +12 -8
- package/dist/esm/calcite.js +6 -2
- package/dist/esm/debounce-79648d42.js +486 -0
- package/dist/esm/dom-f24e866c.js +153 -0
- package/dist/esm/forIn-48d8fb84.js +619 -0
- package/dist/esm/form-cee9f632.js +20 -0
- package/dist/esm/guid-196bd5ea.js +18 -0
- package/dist/esm/index-d653c37f.js +2033 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/interfaces-51dc4e1b.js +13 -0
- package/dist/esm/key-69001a68.js +33 -0
- package/dist/esm/label-bb61bdef.js +54 -0
- package/dist/esm/loader.js +6 -2
- package/dist/esm/locale-6c1b85c7.js +118 -0
- package/dist/esm/math-250d4476.js +7 -0
- package/dist/esm/number-e7393766.js +40 -0
- package/dist/esm/observers-8f0bc419.js +20 -0
- package/dist/esm/popper-7499ea4f.js +1785 -0
- package/dist/esm/resources-3b481489.js +216 -0
- package/dist/esm/resources-510eed1a.js +325 -0
- package/dist/esm/resources-584acd9b.js +17 -0
- package/dist/esm/resources-7c6029b6.js +16 -0
- package/dist/esm/sortable.esm-04824d33.js +3017 -0
- package/dist/esm/utils-6beb0662.js +113 -0
- package/dist/esm-es5/CalciteExpandToggle-151a563a.js +5 -0
- package/dist/esm-es5/CalciteHeading-1735f17a.js +5 -0
- package/dist/esm-es5/array-91a648e2.js +5 -0
- package/dist/esm-es5/calcite-accordion_2.entry.js +5 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +5 -1
- package/dist/esm-es5/calcite-action-group.entry.js +5 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +5 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +5 -1
- package/dist/esm-es5/calcite-action.entry.js +5 -1
- package/dist/esm-es5/calcite-alert.entry.js +5 -1
- package/dist/esm-es5/calcite-avatar.entry.js +5 -1
- package/dist/esm-es5/calcite-block_2.entry.js +5 -1
- package/dist/esm-es5/calcite-button.entry.js +5 -1
- package/dist/esm-es5/calcite-card.entry.js +5 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +5 -1
- package/dist/esm-es5/calcite-chip.entry.js +5 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +5 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +5 -1
- package/dist/esm-es5/calcite-date-picker_4.entry.js +5 -1
- package/dist/esm-es5/calcite-dropdown_3.entry.js +5 -1
- package/dist/esm-es5/calcite-fab.entry.js +5 -1
- package/dist/esm-es5/calcite-filter.entry.js +5 -1
- package/dist/esm-es5/calcite-flow.entry.js +5 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +5 -1
- package/dist/esm-es5/calcite-handle.entry.js +5 -1
- package/dist/esm-es5/calcite-icon.entry.js +5 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +5 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +5 -1
- package/dist/esm-es5/calcite-input-message.entry.js +5 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +5 -1
- package/dist/esm-es5/calcite-input.entry.js +5 -1
- package/dist/esm-es5/calcite-label.entry.js +5 -1
- package/dist/esm-es5/calcite-link.entry.js +5 -1
- package/dist/esm-es5/calcite-list_3.entry.js +5 -1
- package/dist/esm-es5/calcite-loader.entry.js +5 -1
- package/dist/esm-es5/calcite-modal.entry.js +5 -1
- package/dist/esm-es5/calcite-notice.entry.js +5 -1
- package/dist/esm-es5/calcite-option_3.entry.js +5 -1
- package/dist/esm-es5/calcite-pagination.entry.js +5 -1
- package/dist/esm-es5/calcite-panel.entry.js +5 -1
- package/dist/esm-es5/calcite-pick-list_3.entry.js +5 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +5 -1
- package/dist/esm-es5/calcite-progress.entry.js +5 -1
- package/dist/esm-es5/calcite-radio-button-group.entry.js +5 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +5 -1
- package/dist/esm-es5/calcite-radio_2.entry.js +5 -1
- package/dist/esm-es5/calcite-rating.entry.js +5 -1
- package/dist/esm-es5/calcite-scrim.entry.js +5 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +5 -1
- package/dist/esm-es5/calcite-sortable-list.entry.js +5 -1
- package/dist/esm-es5/calcite-split-button.entry.js +5 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +5 -1
- package/dist/esm-es5/calcite-switch.entry.js +5 -1
- package/dist/esm-es5/calcite-tab_4.entry.js +5 -1
- package/dist/esm-es5/calcite-tile-select_2.entry.js +5 -1
- package/dist/esm-es5/calcite-tile.entry.js +5 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +5 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +5 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +5 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +5 -1
- package/dist/esm-es5/calcite.js +5 -1
- package/dist/esm-es5/debounce-79648d42.js +5 -0
- package/dist/esm-es5/dom-f24e866c.js +5 -0
- package/dist/esm-es5/forIn-48d8fb84.js +5 -0
- package/dist/esm-es5/form-cee9f632.js +5 -0
- package/dist/esm-es5/guid-196bd5ea.js +5 -0
- package/dist/esm-es5/index-d653c37f.js +5 -0
- package/dist/esm-es5/index.js +4 -0
- package/dist/esm-es5/interfaces-51dc4e1b.js +5 -0
- package/dist/esm-es5/key-69001a68.js +5 -0
- package/dist/esm-es5/label-bb61bdef.js +5 -0
- package/dist/esm-es5/loader.js +5 -1
- package/dist/esm-es5/locale-6c1b85c7.js +5 -0
- package/dist/esm-es5/math-250d4476.js +5 -0
- package/dist/esm-es5/number-e7393766.js +5 -0
- package/dist/esm-es5/observers-8f0bc419.js +5 -0
- package/dist/esm-es5/popper-7499ea4f.js +5 -0
- package/dist/esm-es5/resources-3b481489.js +5 -0
- package/dist/esm-es5/resources-510eed1a.js +5 -0
- package/dist/esm-es5/resources-584acd9b.js +5 -0
- package/dist/esm-es5/resources-7c6029b6.js +5 -0
- package/dist/esm-es5/sortable.esm-04824d33.js +11 -0
- package/dist/esm-es5/utils-6beb0662.js +5 -0
- package/dist/extras/docs-json.json +36 -10
- package/dist/loader/cdn.js +4 -1
- package/dist/loader/index.cjs.js +4 -1
- package/dist/loader/index.es2017.js +4 -1
- package/dist/loader/index.js +4 -1
- package/dist/types/components/calcite-action/calcite-action.d.ts +2 -2
- package/dist/types/components/calcite-block/resources.d.ts +2 -0
- 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 -4
- package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +1 -1
- package/dist/types/components/calcite-input/calcite-input.d.ts +1 -1
- 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-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 +14 -4
- package/dist/types/utils/number.d.ts +0 -1
- package/hydrate/index.js +303 -250
- package/package.json +35 -37
- package/readme.md +5 -5
- package/dist/calcite/p-00f2f64d.system.entry.js +0 -1
- package/dist/calcite/p-010e5fb9.entry.js +0 -1
- package/dist/calcite/p-03b25bb5.entry.js +0 -1
- package/dist/calcite/p-058f3354.system.entry.js +0 -1
- package/dist/calcite/p-0671d67f.entry.js +0 -1
- package/dist/calcite/p-0a465f92.entry.js +0 -1
- package/dist/calcite/p-0aa3fc7e.entry.js +0 -1
- package/dist/calcite/p-0ae16e31.js +0 -1
- package/dist/calcite/p-0b539bae.system.entry.js +0 -1
- package/dist/calcite/p-0c356cca.entry.js +0 -1
- package/dist/calcite/p-1114dae7.entry.js +0 -1
- package/dist/calcite/p-14893331.system.entry.js +0 -1
- package/dist/calcite/p-170fb8e8.system.entry.js +0 -1
- package/dist/calcite/p-18a62b5e.js +0 -1
- package/dist/calcite/p-19a2021f.entry.js +0 -1
- package/dist/calcite/p-19ac376f.js +0 -1
- package/dist/calcite/p-19d3b749.system.entry.js +0 -1
- package/dist/calcite/p-1a53829b.system.entry.js +0 -1
- package/dist/calcite/p-1c3c9e42.entry.js +0 -1
- package/dist/calcite/p-1df0fd29.system.entry.js +0 -1
- package/dist/calcite/p-203e04e5.entry.js +0 -1
- package/dist/calcite/p-23b87c6a.system.entry.js +0 -1
- package/dist/calcite/p-23edddc9.entry.js +0 -1
- package/dist/calcite/p-2a9b4a25.system.js +0 -1
- package/dist/calcite/p-2c235db8.system.js +0 -1
- package/dist/calcite/p-2e9e2b7c.entry.js +0 -1
- package/dist/calcite/p-30f1442b.js +0 -1
- package/dist/calcite/p-32a0f498.entry.js +0 -1
- package/dist/calcite/p-340e1f88.entry.js +0 -1
- package/dist/calcite/p-3426e87b.system.js +0 -1
- package/dist/calcite/p-354fbadd.js +0 -1
- package/dist/calcite/p-38b3ff5f.system.entry.js +0 -1
- package/dist/calcite/p-39b743d9.system.entry.js +0 -1
- package/dist/calcite/p-3b55b390.entry.js +0 -1
- package/dist/calcite/p-3cdef0cd.entry.js +0 -1
- package/dist/calcite/p-43a9faca.js +0 -1
- package/dist/calcite/p-44810e63.entry.js +0 -1
- package/dist/calcite/p-482ec054.system.js +0 -1
- package/dist/calcite/p-4936ee1a.entry.js +0 -1
- package/dist/calcite/p-4a69f94f.entry.js +0 -1
- package/dist/calcite/p-4bb3e49c.entry.js +0 -1
- package/dist/calcite/p-4dc4c758.entry.js +0 -1
- package/dist/calcite/p-4e3dcb60.entry.js +0 -1
- package/dist/calcite/p-4f24139e.system.entry.js +0 -1
- package/dist/calcite/p-4fce2a7a.system.js +0 -1
- package/dist/calcite/p-4fda49e6.js +0 -1
- package/dist/calcite/p-50ea2036.system.js +0 -1
- package/dist/calcite/p-53caa311.system.js +0 -1
- package/dist/calcite/p-55379ee6.system.entry.js +0 -1
- package/dist/calcite/p-559ffa87.js +0 -1
- package/dist/calcite/p-55f7adaa.system.entry.js +0 -1
- package/dist/calcite/p-58421494.js +0 -1
- package/dist/calcite/p-59f7b582.system.entry.js +0 -1
- package/dist/calcite/p-5a1b0338.system.js +0 -1
- package/dist/calcite/p-5eab55c1.entry.js +0 -1
- package/dist/calcite/p-5f50d376.system.entry.js +0 -1
- package/dist/calcite/p-62977e6b.system.entry.js +0 -1
- package/dist/calcite/p-6350bcd3.system.js +0 -1
- package/dist/calcite/p-65f4f1e9.entry.js +0 -1
- package/dist/calcite/p-674bc090.system.js +0 -1
- package/dist/calcite/p-675364da.system.entry.js +0 -1
- package/dist/calcite/p-69837b80.entry.js +0 -1
- package/dist/calcite/p-69e382de.entry.js +0 -1
- package/dist/calcite/p-6a7d2f7c.entry.js +0 -1
- package/dist/calcite/p-6cb2f24f.entry.js +0 -1
- package/dist/calcite/p-6d98d9dc.system.entry.js +0 -1
- package/dist/calcite/p-6edac967.system.entry.js +0 -1
- package/dist/calcite/p-7521b7ab.system.entry.js +0 -1
- package/dist/calcite/p-771da7ed.system.entry.js +0 -1
- package/dist/calcite/p-79e0b61b.system.entry.js +0 -1
- package/dist/calcite/p-7a241325.system.entry.js +0 -1
- package/dist/calcite/p-7b71e1d4.js +0 -1
- package/dist/calcite/p-7b856f76.system.entry.js +0 -1
- package/dist/calcite/p-7c5c2b30.js +0 -1
- package/dist/calcite/p-7e4036a3.system.entry.js +0 -1
- package/dist/calcite/p-7e4be59e.system.entry.js +0 -1
- package/dist/calcite/p-81371076.entry.js +0 -1
- package/dist/calcite/p-8242ef10.entry.js +0 -1
- package/dist/calcite/p-82a11724.system.js +0 -7
- package/dist/calcite/p-835b14f7.system.entry.js +0 -1
- package/dist/calcite/p-875b172e.entry.js +0 -1
- package/dist/calcite/p-8958d1f6.system.js +0 -1
- package/dist/calcite/p-8975e7c8.entry.js +0 -1
- package/dist/calcite/p-8a16620b.system.js +0 -1
- package/dist/calcite/p-8a30b93d.system.js +0 -1
- package/dist/calcite/p-8cfab352.entry.js +0 -1
- package/dist/calcite/p-8d5f5ebf.js +0 -1
- package/dist/calcite/p-8d9bf455.entry.js +0 -1
- package/dist/calcite/p-8dc31333.js +0 -1
- package/dist/calcite/p-8e46c987.entry.js +0 -1
- package/dist/calcite/p-8ef1afae.system.entry.js +0 -1
- package/dist/calcite/p-8fb7b17f.system.entry.js +0 -1
- package/dist/calcite/p-90b88d97.system.entry.js +0 -1
- package/dist/calcite/p-90ee6b48.entry.js +0 -1
- package/dist/calcite/p-93a7d961.system.entry.js +0 -1
- package/dist/calcite/p-950bdd5b.system.entry.js +0 -1
- package/dist/calcite/p-95dfb659.system.js +0 -1
- package/dist/calcite/p-97b06cc3.entry.js +0 -1
- package/dist/calcite/p-987310d2.system.js +0 -1
- package/dist/calcite/p-9c371694.system.entry.js +0 -1
- package/dist/calcite/p-a096738b.system.entry.js +0 -1
- package/dist/calcite/p-a09cd797.entry.js +0 -1
- package/dist/calcite/p-a0d4c79d.entry.js +0 -1
- package/dist/calcite/p-a4e6e35b.js +0 -1
- package/dist/calcite/p-a54a11ee.system.entry.js +0 -1
- package/dist/calcite/p-a57a7f49.js +0 -7
- package/dist/calcite/p-a6b26bd1.system.js +0 -1
- package/dist/calcite/p-a75f07ae.entry.js +0 -1
- package/dist/calcite/p-a83557c6.entry.js +0 -1
- package/dist/calcite/p-a8650c17.system.js +0 -1
- package/dist/calcite/p-ac44517b.system.entry.js +0 -1
- package/dist/calcite/p-ad290529.system.entry.js +0 -1
- package/dist/calcite/p-b10d0018.system.entry.js +0 -1
- package/dist/calcite/p-b2425e21.js +0 -1
- package/dist/calcite/p-b286e0a5.system.entry.js +0 -1
- package/dist/calcite/p-b2a6687b.system.js +0 -1
- package/dist/calcite/p-b2a79aa2.system.entry.js +0 -1
- package/dist/calcite/p-b4cc79dc.system.js +0 -1
- package/dist/calcite/p-bd291e00.entry.js +0 -1
- package/dist/calcite/p-be531ce4.system.entry.js +0 -1
- package/dist/calcite/p-be6b31d0.entry.js +0 -1
- package/dist/calcite/p-bfca7d51.entry.js +0 -1
- package/dist/calcite/p-c0ee1569.system.entry.js +0 -1
- package/dist/calcite/p-c15a632e.system.entry.js +0 -1
- package/dist/calcite/p-c23bfaf9.system.entry.js +0 -1
- package/dist/calcite/p-c2cd9c1d.system.entry.js +0 -1
- package/dist/calcite/p-c4953aa6.system.entry.js +0 -1
- package/dist/calcite/p-c5257119.entry.js +0 -1
- package/dist/calcite/p-c59d3bb3.system.entry.js +0 -1
- package/dist/calcite/p-c95a18d4.entry.js +0 -1
- package/dist/calcite/p-caf80cd7.js +0 -1
- package/dist/calcite/p-cd8d0dda.entry.js +0 -1
- package/dist/calcite/p-cebd4de5.js +0 -1
- package/dist/calcite/p-cfdbd2e1.entry.js +0 -1
- package/dist/calcite/p-d2907af5.entry.js +0 -1
- package/dist/calcite/p-d2b9513d.entry.js +0 -1
- package/dist/calcite/p-d53c2d2e.system.js +0 -1
- package/dist/calcite/p-d5e63242.entry.js +0 -1
- package/dist/calcite/p-d74caa31.system.entry.js +0 -1
- package/dist/calcite/p-d78a24bb.entry.js +0 -1
- package/dist/calcite/p-d7e0ef91.system.entry.js +0 -1
- package/dist/calcite/p-d858b7ab.js +0 -1
- package/dist/calcite/p-d8a015cb.system.entry.js +0 -1
- package/dist/calcite/p-dc825c55.js +0 -1
- package/dist/calcite/p-dcfa0bba.js +0 -1
- package/dist/calcite/p-dd3f7c73.system.entry.js +0 -1
- package/dist/calcite/p-dda58d1e.system.js +0 -1
- package/dist/calcite/p-ddf50685.system.entry.js +0 -1
- package/dist/calcite/p-de00c01f.entry.js +0 -1
- package/dist/calcite/p-de9b7982.system.entry.js +0 -1
- package/dist/calcite/p-defdc464.system.js +0 -1
- package/dist/calcite/p-e87acd87.system.js +0 -1
- package/dist/calcite/p-ea51eaaa.js +0 -1
- package/dist/calcite/p-ebb0ef70.entry.js +0 -1
- package/dist/calcite/p-ec397dae.entry.js +0 -1
- package/dist/calcite/p-ef0ea98b.system.entry.js +0 -1
- package/dist/calcite/p-ef38dee8.js +0 -1
- package/dist/calcite/p-efe6556c.system.entry.js +0 -1
- package/dist/calcite/p-f02d04ab.system.js +0 -1
- package/dist/calcite/p-f1eddb0f.system.entry.js +0 -1
- package/dist/calcite/p-f95c5864.entry.js +0 -1
- package/dist/calcite/p-fc725435.entry.js +0 -1
- package/dist/cjs/CalciteExpandToggle-b5735fd2.js +0 -90
- package/dist/cjs/CalciteHeading-177f59f2.js +0 -15
- package/dist/cjs/array-4fc5abfa.js +0 -7
- package/dist/cjs/debounce-11980960.js +0 -491
- package/dist/cjs/dom-c9cafa59.js +0 -166
- package/dist/cjs/forIn-46535ded.js +0 -618
- package/dist/cjs/form-432ae178.js +0 -18
- package/dist/cjs/guid-4637ad8f.js +0 -16
- package/dist/cjs/index-105d9087.js +0 -2062
- package/dist/cjs/interfaces-bc0f5779.js +0 -9
- package/dist/cjs/key-f470de4c.js +0 -33
- package/dist/cjs/label-80f9023b.js +0 -54
- package/dist/cjs/locale-eb4486ae.js +0 -119
- package/dist/cjs/math-750406eb.js +0 -5
- package/dist/cjs/number-77308374.js +0 -45
- package/dist/cjs/observers-88b3a2d4.js +0 -18
- package/dist/cjs/popper-a103e375.js +0 -1786
- package/dist/cjs/resources-41daa7d4.js +0 -228
- package/dist/cjs/resources-76637167.js +0 -17
- package/dist/cjs/resources-ae299e51.js +0 -16
- package/dist/cjs/resources-bbca3cea.js +0 -342
- package/dist/cjs/sortable.esm-bcce1d94.js +0 -3015
- package/dist/cjs/utils-d549a0a9.js +0 -119
- 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 -24489
- package/dist/custom-elements/utils.d.ts +0 -2
- package/dist/custom-elements/utils.js +0 -11
- package/dist/esm/CalciteExpandToggle-a149fed4.js +0 -83
- package/dist/esm/CalciteHeading-29855e9f.js +0 -12
- package/dist/esm/array-af19adb2.js +0 -5
- package/dist/esm/debounce-047e09f4.js +0 -482
- package/dist/esm/dom-b369a031.js +0 -149
- package/dist/esm/forIn-d55260fc.js +0 -615
- package/dist/esm/form-8aa0d95b.js +0 -16
- package/dist/esm/guid-09142681.js +0 -14
- package/dist/esm/index-f8f0bea7.js +0 -2029
- package/dist/esm/interfaces-355fccb6.js +0 -9
- package/dist/esm/key-ec82f942.js +0 -29
- package/dist/esm/label-7b249c54.js +0 -50
- package/dist/esm/locale-8436bbe1.js +0 -114
- package/dist/esm/math-c8e7aa13.js +0 -3
- package/dist/esm/number-358ca1d4.js +0 -39
- package/dist/esm/observers-c93d4fe5.js +0 -16
- package/dist/esm/popper-2757192a.js +0 -1781
- package/dist/esm/resources-28d71943.js +0 -212
- package/dist/esm/resources-82817f70.js +0 -13
- package/dist/esm/resources-c651d73a.js +0 -321
- package/dist/esm/resources-c72ebfea.js +0 -12
- package/dist/esm/sortable.esm-2f5354d3.js +0 -3013
- package/dist/esm/utils-60acc1d6.js +0 -109
- package/dist/esm-es5/CalciteExpandToggle-a149fed4.js +0 -1
- package/dist/esm-es5/CalciteHeading-29855e9f.js +0 -1
- package/dist/esm-es5/array-af19adb2.js +0 -1
- package/dist/esm-es5/debounce-047e09f4.js +0 -1
- package/dist/esm-es5/dom-b369a031.js +0 -1
- package/dist/esm-es5/forIn-d55260fc.js +0 -1
- package/dist/esm-es5/form-8aa0d95b.js +0 -1
- package/dist/esm-es5/guid-09142681.js +0 -1
- package/dist/esm-es5/index-f8f0bea7.js +0 -1
- package/dist/esm-es5/interfaces-355fccb6.js +0 -1
- package/dist/esm-es5/key-ec82f942.js +0 -1
- package/dist/esm-es5/label-7b249c54.js +0 -1
- package/dist/esm-es5/locale-8436bbe1.js +0 -1
- package/dist/esm-es5/math-c8e7aa13.js +0 -1
- package/dist/esm-es5/number-358ca1d4.js +0 -1
- package/dist/esm-es5/observers-c93d4fe5.js +0 -1
- package/dist/esm-es5/popper-2757192a.js +0 -1
- package/dist/esm-es5/resources-28d71943.js +0 -1
- package/dist/esm-es5/resources-82817f70.js +0 -1
- package/dist/esm-es5/resources-c651d73a.js +0 -1
- package/dist/esm-es5/resources-c72ebfea.js +0 -1
- package/dist/esm-es5/sortable.esm-2f5354d3.js +0 -7
- package/dist/esm-es5/utils-60acc1d6.js +0 -1
|
@@ -0,0 +1,202 @@
|
|
|
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 { attachShadow, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
|
+
import { g as getElementProp, a as getElementDir, C as CSS_UTILITY } from './dom.js';
|
|
7
|
+
import { g as getKey } from './key.js';
|
|
8
|
+
import { d as defineCustomElement$2 } from './calcite-icon2.js';
|
|
9
|
+
|
|
10
|
+
const CSS = {
|
|
11
|
+
containerLink: "container--link",
|
|
12
|
+
containerSmall: "container--s",
|
|
13
|
+
containerMedium: "container--m",
|
|
14
|
+
containerLarge: "container--l",
|
|
15
|
+
containerMulti: "container--multi-selection",
|
|
16
|
+
containerSingle: "container--single-selection",
|
|
17
|
+
containerNone: "container--none-selection"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const calciteDropdownItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.container--s{font-size:var(--calcite-font-size--2);line-height:1rem;padding-right:0.5rem;padding-left:1.5rem;padding-top:0.25rem;padding-bottom:0.25rem}.container--m{font-size:var(--calcite-font-size--1);line-height:1rem;padding-right:0.75rem;padding-left:2rem;padding-top:0.5rem;padding-bottom:0.5rem}.container--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-right:1rem;padding-left:2.5rem;padding-top:0.75rem;padding-bottom:0.75rem}.container--s.calcite--rtl{padding-right:1.5rem;padding-left:0.5rem}.container--m.calcite--rtl{padding-right:2rem;padding-left:0.75rem}.container--l.calcite--rtl{padding-right:2.5rem;padding-left:1rem}:host{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;position:relative}.container{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative}.dropdown-item-content{margin-right:auto;margin-left:0.25rem}.calcite--rtl .dropdown-item-content{margin-left:auto;margin-right:0}:host,.container--link a{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus),.container--link a:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.container--link{padding:0}.container--link a{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative}.container--s .dropdown-link{padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem}.container--m .dropdown-link{padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem}.container--l .dropdown-link{padding-left:1.25rem;padding-right:1.25rem;padding-top:1rem;padding-bottom:1rem}:host(:hover) .container,:host(:active) .container{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);text-decoration:none}:host(:focus) .container{color:var(--calcite-ui-text-1);text-decoration:none}:host(:active) .container{background-color:var(--calcite-ui-foreground-3)}:host(:hover) .container:before,:host(:active) .container:before,:host(:focus) .container:before{opacity:1}.calcite--rtl:before{left:unset;right:1rem}:host([active]) .container:not(.container--none-selection){color:var(--calcite-ui-text-1);font-weight:var(--calcite-font-weight-medium)}:host([active]) .container:not(.container--none-selection):before{opacity:1;color:var(--calcite-ui-brand)}:host([active]) .container:not(.container--none-selection) calcite-icon{color:var(--calcite-ui-brand)}.container--s.container--none-selection{padding-left:0.25rem}.container--m.container--none-selection{padding-left:0.5rem}.container--l.container--none-selection{padding-left:0.75rem}.container--multi-selection:before,.container--none-selection:before{display:none}.container--s:before{left:0.5rem}.container--m:before{left:0.75rem}.container--l:before{left:1rem}.calcite--rtl:before{left:unset}.container--s.calcite--rtl:before{right:0.5rem}.container--m.calcite--rtl:before{right:0.75rem}.container--l.calcite--rtl:before{right:1rem}.dropdown-item-icon{position:absolute;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(0.9);transform:scale(0.9)}.container--s .dropdown-item-icon{left:0.25rem}.container--m .dropdown-item-icon{left:0.5rem}.container--l .dropdown-item-icon{left:0.75rem}.calcite--rtl .dropdown-item-icon{left:unset;margin-left:0}.container--s.calcite--rtl .dropdown-item-icon{right:0.25rem}.container--m.calcite--rtl .dropdown-item-icon{right:0.5rem}.container--l.calcite--rtl .dropdown-item-icon{right:0.75rem}:host(:hover) .dropdown-item-icon{color:var(--calcite-ui-border-1);opacity:1}:host([active]) .dropdown-item-icon{color:var(--calcite-ui-brand);opacity:1}.container--s .dropdown-item-icon-start{margin-right:0.5rem;margin-left:0.25rem}.container--s .dropdown-item-icon-end{margin-left:0.5rem}.container--m .dropdown-item-icon-start{margin-right:0.75rem;margin-left:0.25rem}.container--m .dropdown-item-icon-end{margin-left:0.75rem}.container--l .dropdown-item-icon-start{margin-right:1rem;margin-left:0.25rem}.container--l .dropdown-item-icon-end{margin-left:1rem}.calcite--rtl .dropdown-item-icon-start{margin-right:0}.calcite--rtl .dropdown-item-icon-end{margin-left:0}.container--s.calcite--rtl .dropdown-item-icon-start{margin-left:0.5rem}.container--s.calcite--rtl .dropdown-item-icon-end{margin-right:0.5rem}.container--m.calcite--rtl .dropdown-item-icon-start{margin-left:0.75rem}.container--m.calcite--rtl .dropdown-item-icon-end{margin-right:0.75rem}.container--l.calcite--rtl .dropdown-item-icon-start{margin-left:1rem}.container--l.calcite--rtl .dropdown-item-icon-end{margin-right:1rem}.calcite--rtl calcite-icon{margin-right:0;margin-left:0.75rem}";
|
|
21
|
+
|
|
22
|
+
let CalciteDropdownItem$1 = class extends HTMLElement {
|
|
23
|
+
constructor() {
|
|
24
|
+
super();
|
|
25
|
+
this.__registerHost();
|
|
26
|
+
attachShadow(this);
|
|
27
|
+
this.calciteDropdownItemSelect = createEvent(this, "calciteDropdownItemSelect", 7);
|
|
28
|
+
this.calciteDropdownItemKeyEvent = createEvent(this, "calciteDropdownItemKeyEvent", 7);
|
|
29
|
+
this.calciteDropdownCloseRequest = createEvent(this, "calciteDropdownCloseRequest", 7);
|
|
30
|
+
//--------------------------------------------------------------------------
|
|
31
|
+
//
|
|
32
|
+
// Public Properties
|
|
33
|
+
//
|
|
34
|
+
//--------------------------------------------------------------------------
|
|
35
|
+
/** Indicates whether the item is active. */
|
|
36
|
+
this.active = false;
|
|
37
|
+
}
|
|
38
|
+
//--------------------------------------------------------------------------
|
|
39
|
+
//
|
|
40
|
+
// Public Methods
|
|
41
|
+
//
|
|
42
|
+
//--------------------------------------------------------------------------
|
|
43
|
+
/** Sets focus on the component. */
|
|
44
|
+
async setFocus() {
|
|
45
|
+
this.el.focus();
|
|
46
|
+
}
|
|
47
|
+
//--------------------------------------------------------------------------
|
|
48
|
+
//
|
|
49
|
+
// Lifecycle
|
|
50
|
+
//
|
|
51
|
+
//--------------------------------------------------------------------------
|
|
52
|
+
connectedCallback() {
|
|
53
|
+
this.selectionMode = getElementProp(this.el, "selection-mode", "single");
|
|
54
|
+
this.parentDropdownGroupEl = this.el.closest("calcite-dropdown-group");
|
|
55
|
+
if (this.selectionMode === "none") {
|
|
56
|
+
this.active = false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
const dir = getElementDir(this.el);
|
|
61
|
+
const scale = getElementProp(this.el, "scale", "m");
|
|
62
|
+
const iconStartEl = (h("calcite-icon", { class: "dropdown-item-icon-start", dir: dir, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
63
|
+
const contentNode = (h("span", { class: "dropdown-item-content" }, h("slot", null)));
|
|
64
|
+
const iconEndEl = (h("calcite-icon", { class: "dropdown-item-icon-end", dir: dir, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
65
|
+
const slottedContent = this.iconStart && this.iconEnd
|
|
66
|
+
? [iconStartEl, contentNode, iconEndEl]
|
|
67
|
+
: this.iconStart
|
|
68
|
+
? [iconStartEl, h("slot", null)]
|
|
69
|
+
: this.iconEnd
|
|
70
|
+
? [contentNode, iconEndEl]
|
|
71
|
+
: contentNode;
|
|
72
|
+
const contentEl = !this.href ? (slottedContent) : (h("a", { "aria-label": this.label, class: "dropdown-link", href: this.href, ref: (el) => (this.childLink = el), rel: this.rel, target: this.target }, slottedContent));
|
|
73
|
+
const itemRole = this.href
|
|
74
|
+
? null
|
|
75
|
+
: this.selectionMode === "single"
|
|
76
|
+
? "menuitemradio"
|
|
77
|
+
: this.selectionMode === "multi"
|
|
78
|
+
? "menuitemcheckbox"
|
|
79
|
+
: "menuitem";
|
|
80
|
+
const itemAria = this.selectionMode !== "none" ? this.active.toString() : null;
|
|
81
|
+
return (h(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, h("div", { class: {
|
|
82
|
+
container: true,
|
|
83
|
+
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
84
|
+
[CSS.containerLink]: !!this.href,
|
|
85
|
+
[CSS.containerSmall]: scale === "s",
|
|
86
|
+
[CSS.containerMedium]: scale === "m",
|
|
87
|
+
[CSS.containerLarge]: scale === "l",
|
|
88
|
+
[CSS.containerMulti]: this.selectionMode === "multi",
|
|
89
|
+
[CSS.containerSingle]: this.selectionMode === "single",
|
|
90
|
+
[CSS.containerNone]: this.selectionMode === "none"
|
|
91
|
+
} }, this.selectionMode !== "none" ? (h("calcite-icon", { class: "dropdown-item-icon", icon: this.selectionMode === "multi" ? "check" : "bullet-point", scale: "s" })) : null, contentEl)));
|
|
92
|
+
}
|
|
93
|
+
//--------------------------------------------------------------------------
|
|
94
|
+
//
|
|
95
|
+
// Event Listeners
|
|
96
|
+
//
|
|
97
|
+
//--------------------------------------------------------------------------
|
|
98
|
+
onClick() {
|
|
99
|
+
this.emitRequestedItem();
|
|
100
|
+
}
|
|
101
|
+
keyDownHandler(e) {
|
|
102
|
+
switch (getKey(e.key)) {
|
|
103
|
+
case " ":
|
|
104
|
+
this.emitRequestedItem();
|
|
105
|
+
if (this.href) {
|
|
106
|
+
e.preventDefault();
|
|
107
|
+
this.childLink.click();
|
|
108
|
+
}
|
|
109
|
+
break;
|
|
110
|
+
case "Enter":
|
|
111
|
+
this.emitRequestedItem();
|
|
112
|
+
if (this.href) {
|
|
113
|
+
this.childLink.click();
|
|
114
|
+
}
|
|
115
|
+
break;
|
|
116
|
+
case "Escape":
|
|
117
|
+
this.calciteDropdownCloseRequest.emit();
|
|
118
|
+
break;
|
|
119
|
+
case "Tab":
|
|
120
|
+
case "ArrowUp":
|
|
121
|
+
case "ArrowDown":
|
|
122
|
+
case "Home":
|
|
123
|
+
case "End":
|
|
124
|
+
this.calciteDropdownItemKeyEvent.emit({ keyboardEvent: e });
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
e.preventDefault();
|
|
128
|
+
}
|
|
129
|
+
updateActiveItemOnChange(event) {
|
|
130
|
+
const parentEmittedChange = event.composedPath().includes(this.parentDropdownGroupEl);
|
|
131
|
+
if (parentEmittedChange) {
|
|
132
|
+
this.requestedDropdownGroup = event.detail.requestedDropdownGroup;
|
|
133
|
+
this.requestedDropdownItem = event.detail.requestedDropdownItem;
|
|
134
|
+
this.determineActiveItem();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
//--------------------------------------------------------------------------
|
|
138
|
+
//
|
|
139
|
+
// Private Methods
|
|
140
|
+
//
|
|
141
|
+
//--------------------------------------------------------------------------
|
|
142
|
+
determineActiveItem() {
|
|
143
|
+
switch (this.selectionMode) {
|
|
144
|
+
case "multi":
|
|
145
|
+
if (this.el === this.requestedDropdownItem) {
|
|
146
|
+
this.active = !this.active;
|
|
147
|
+
}
|
|
148
|
+
break;
|
|
149
|
+
case "single":
|
|
150
|
+
if (this.el === this.requestedDropdownItem) {
|
|
151
|
+
this.active = true;
|
|
152
|
+
}
|
|
153
|
+
else if (this.requestedDropdownGroup === this.parentDropdownGroupEl) {
|
|
154
|
+
this.active = false;
|
|
155
|
+
}
|
|
156
|
+
break;
|
|
157
|
+
case "none":
|
|
158
|
+
this.active = false;
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
emitRequestedItem() {
|
|
163
|
+
this.calciteDropdownItemSelect.emit({
|
|
164
|
+
requestedDropdownItem: this.el,
|
|
165
|
+
requestedDropdownGroup: this.parentDropdownGroupEl
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
get el() { return this; }
|
|
169
|
+
static get style() { return calciteDropdownItemCss; }
|
|
170
|
+
};
|
|
171
|
+
CalciteDropdownItem$1 = /*@__PURE__*/ proxyCustomElement(CalciteDropdownItem$1, [1, "calcite-dropdown-item", {
|
|
172
|
+
"active": [1540],
|
|
173
|
+
"iconFlipRtl": [513, "icon-flip-rtl"],
|
|
174
|
+
"iconStart": [513, "icon-start"],
|
|
175
|
+
"iconEnd": [513, "icon-end"],
|
|
176
|
+
"href": [513],
|
|
177
|
+
"label": [1],
|
|
178
|
+
"rel": [1],
|
|
179
|
+
"target": [1],
|
|
180
|
+
"setFocus": [64]
|
|
181
|
+
}, [[0, "click", "onClick"], [0, "keydown", "keyDownHandler"], [16, "calciteDropdownItemChange", "updateActiveItemOnChange"]]]);
|
|
182
|
+
function defineCustomElement$1() {
|
|
183
|
+
const components = ["calcite-dropdown-item", "calcite-icon"];
|
|
184
|
+
components.forEach(tagName => { switch (tagName) {
|
|
185
|
+
case "calcite-dropdown-item":
|
|
186
|
+
if (!customElements.get(tagName)) {
|
|
187
|
+
customElements.define(tagName, CalciteDropdownItem$1);
|
|
188
|
+
}
|
|
189
|
+
break;
|
|
190
|
+
case "calcite-icon":
|
|
191
|
+
if (!customElements.get(tagName)) {
|
|
192
|
+
defineCustomElement$2();
|
|
193
|
+
}
|
|
194
|
+
break;
|
|
195
|
+
} });
|
|
196
|
+
}
|
|
197
|
+
defineCustomElement$1();
|
|
198
|
+
|
|
199
|
+
const CalciteDropdownItem = CalciteDropdownItem$1;
|
|
200
|
+
const defineCustomElement = defineCustomElement$1;
|
|
201
|
+
|
|
202
|
+
export { CalciteDropdownItem, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface CalciteDropdown extends Components.CalciteDropdown, HTMLElement {}
|
|
4
|
+
export const CalciteDropdown: {
|
|
5
|
+
prototype: CalciteDropdown;
|
|
6
|
+
new (): CalciteDropdown;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
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 { C as CalciteDropdown$1, d as defineCustomElement$1 } from './calcite-dropdown2.js';
|
|
6
|
+
|
|
7
|
+
const CalciteDropdown = CalciteDropdown$1;
|
|
8
|
+
const defineCustomElement = defineCustomElement$1;
|
|
9
|
+
|
|
10
|
+
export { CalciteDropdown, defineCustomElement };
|
|
@@ -0,0 +1,390 @@
|
|
|
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 { attachShadow, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
|
+
import { g as getKey } from './key.js';
|
|
7
|
+
import { a as getElementDir, C as CSS_UTILITY, f as focusElement } from './dom.js';
|
|
8
|
+
import { C as CSS, u as updatePopper, c as createPopper } from './popper.js';
|
|
9
|
+
import { c as createObserver } from './observers.js';
|
|
10
|
+
|
|
11
|
+
const DefaultDropdownPlacement = "bottom-leading";
|
|
12
|
+
const SLOTS = {
|
|
13
|
+
dropdownTrigger: "dropdown-trigger"
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const calciteDropdownCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{background-color:var(--calcite-ui-foreground-1);overflow:hidden;overflow-y:auto;width:auto;max-height:90vh;width:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;position:relative}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}:host([scale=s]){--calcite-dropdown-group-padding:0.5rem 0;--calcite-dropdown-item-padding:0.25rem 0.75rem 0.25rem 1.5rem}:host([scale=m]){--calcite-dropdown-group-padding:0.5rem 0;--calcite-dropdown-item-padding:0.5rem 0.75rem 0.5rem 1.5rem}:host([scale=l]){--calcite-dropdown-group-padding:0.75rem 0;--calcite-dropdown-item-padding:0.5rem 0.75rem 0.5rem 1.5rem}:host([scale=s]) .calcite--rtl{--calcite-dropdown-item-padding:0.25rem 1.5rem 0.25rem 0.75rem}:host([scale=m]) .calcite--rtl{--calcite-dropdown-item-padding:0.5rem 1.5rem 0.5rem 0.75rem}:host([scale=l]) .calcite--rtl{--calcite-dropdown-item-padding:0.5rem 1.5rem 0.5rem 0.75rem}";
|
|
17
|
+
|
|
18
|
+
let CalciteDropdown = class extends HTMLElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
this.__registerHost();
|
|
22
|
+
attachShadow(this);
|
|
23
|
+
this.calciteDropdownSelect = createEvent(this, "calciteDropdownSelect", 7);
|
|
24
|
+
this.calciteDropdownOpen = createEvent(this, "calciteDropdownOpen", 7);
|
|
25
|
+
this.calciteDropdownClose = createEvent(this, "calciteDropdownClose", 7);
|
|
26
|
+
//--------------------------------------------------------------------------
|
|
27
|
+
//
|
|
28
|
+
// Public Properties
|
|
29
|
+
//
|
|
30
|
+
//--------------------------------------------------------------------------
|
|
31
|
+
/** Opens or closes the dropdown */
|
|
32
|
+
this.active = false;
|
|
33
|
+
/**
|
|
34
|
+
allow the dropdown to remain open after a selection is made
|
|
35
|
+
if the selection-mode of the selected item's containing group is "none", the dropdown will always close
|
|
36
|
+
*/
|
|
37
|
+
this.disableCloseOnSelect = false;
|
|
38
|
+
/** is the dropdown disabled */
|
|
39
|
+
this.disabled = false;
|
|
40
|
+
/**
|
|
41
|
+
specify the maximum number of calcite-dropdown-items to display before showing the scroller, must be greater than 0 -
|
|
42
|
+
this value does not include groupTitles passed to calcite-dropdown-group
|
|
43
|
+
*/
|
|
44
|
+
this.maxItems = 0;
|
|
45
|
+
/** Describes the type of positioning to use for the overlaid content. If your element is in a fixed container, use the 'fixed' value. */
|
|
46
|
+
this.overlayPositioning = "absolute";
|
|
47
|
+
/**
|
|
48
|
+
* Determines where the dropdown will be positioned relative to the button.
|
|
49
|
+
* @default "bottom-leading"
|
|
50
|
+
*/
|
|
51
|
+
this.placement = DefaultDropdownPlacement;
|
|
52
|
+
/** specify the scale of dropdown, defaults to m */
|
|
53
|
+
this.scale = "m";
|
|
54
|
+
/**
|
|
55
|
+
* **read-only** The currently selected items
|
|
56
|
+
*
|
|
57
|
+
* @readonly
|
|
58
|
+
*/
|
|
59
|
+
this.selectedItems = [];
|
|
60
|
+
/** specify whether the dropdown is opened by hover or click of a trigger element */
|
|
61
|
+
this.type = "click";
|
|
62
|
+
/** specify the width of dropdown, defaults to m */
|
|
63
|
+
this.width = "m";
|
|
64
|
+
//--------------------------------------------------------------------------
|
|
65
|
+
//
|
|
66
|
+
// Private State/Props
|
|
67
|
+
//
|
|
68
|
+
//--------------------------------------------------------------------------
|
|
69
|
+
this.items = [];
|
|
70
|
+
this.activeTransitionProp = "opacity";
|
|
71
|
+
this.mutationObserver = createObserver("mutation", () => this.updateItems());
|
|
72
|
+
//--------------------------------------------------------------------------
|
|
73
|
+
//
|
|
74
|
+
// Private Methods
|
|
75
|
+
//
|
|
76
|
+
//--------------------------------------------------------------------------
|
|
77
|
+
this.updateItems = () => {
|
|
78
|
+
this.updateSelectedItems();
|
|
79
|
+
this.triggers = Array.from(this.el.querySelectorAll("[slot=dropdown-trigger]"));
|
|
80
|
+
this.items = Array.from(this.el.querySelectorAll("calcite-dropdown-item"));
|
|
81
|
+
this.reposition();
|
|
82
|
+
};
|
|
83
|
+
this.setMaxScrollerHeight = () => {
|
|
84
|
+
const { scrollerEl } = this;
|
|
85
|
+
if (scrollerEl) {
|
|
86
|
+
const maxScrollerHeight = this.getMaxScrollerHeight();
|
|
87
|
+
scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
this.setScrollerEl = (scrollerEl) => {
|
|
91
|
+
this.scrollerEl = scrollerEl;
|
|
92
|
+
};
|
|
93
|
+
this.transitionEnd = (event) => {
|
|
94
|
+
if (event.propertyName === this.activeTransitionProp) {
|
|
95
|
+
this.active ? this.calciteDropdownOpen.emit() : this.calciteDropdownClose.emit();
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
this.setReferenceEl = (el) => {
|
|
99
|
+
this.referenceEl = el;
|
|
100
|
+
};
|
|
101
|
+
this.setMenuEl = (el) => {
|
|
102
|
+
this.menuEl = el;
|
|
103
|
+
};
|
|
104
|
+
this.keyDownHandler = (e) => {
|
|
105
|
+
const target = e.target;
|
|
106
|
+
const key = getKey(e.key);
|
|
107
|
+
if (this.triggers.includes(target) ||
|
|
108
|
+
this.triggers.some((trigger) => trigger.contains(target))) {
|
|
109
|
+
if (target.nodeName !== "BUTTON" && target.nodeName !== "CALCITE-BUTTON") {
|
|
110
|
+
switch (key) {
|
|
111
|
+
case " ":
|
|
112
|
+
case "Enter":
|
|
113
|
+
this.openCalciteDropdown();
|
|
114
|
+
break;
|
|
115
|
+
case "Escape":
|
|
116
|
+
this.closeCalciteDropdown();
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
else if (this.active && (key === "Escape" || (e.shiftKey && key === "Tab"))) {
|
|
121
|
+
this.closeCalciteDropdown();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
this.focusOnFirstActiveOrFirstItem = () => {
|
|
126
|
+
this.getFocusableElement(this.items.find((item) => item.active) || this.items[0]);
|
|
127
|
+
};
|
|
128
|
+
this.toggleOpenEnd = () => {
|
|
129
|
+
this.focusOnFirstActiveOrFirstItem();
|
|
130
|
+
this.el.removeEventListener("calciteDropdownOpen", this.toggleOpenEnd);
|
|
131
|
+
};
|
|
132
|
+
this.openCalciteDropdown = () => {
|
|
133
|
+
this.active = !this.active;
|
|
134
|
+
if (this.active) {
|
|
135
|
+
this.el.addEventListener("calciteDropdownOpen", this.toggleOpenEnd);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
activeHandler() {
|
|
140
|
+
this.reposition();
|
|
141
|
+
}
|
|
142
|
+
maxItemsHandler() {
|
|
143
|
+
this.reposition();
|
|
144
|
+
}
|
|
145
|
+
placementHandler() {
|
|
146
|
+
this.reposition();
|
|
147
|
+
}
|
|
148
|
+
//--------------------------------------------------------------------------
|
|
149
|
+
//
|
|
150
|
+
// Lifecycle
|
|
151
|
+
//
|
|
152
|
+
//--------------------------------------------------------------------------
|
|
153
|
+
connectedCallback() {
|
|
154
|
+
var _a;
|
|
155
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
156
|
+
this.createPopper();
|
|
157
|
+
this.updateItems();
|
|
158
|
+
}
|
|
159
|
+
componentDidLoad() {
|
|
160
|
+
this.reposition();
|
|
161
|
+
}
|
|
162
|
+
disconnectedCallback() {
|
|
163
|
+
var _a;
|
|
164
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
165
|
+
this.destroyPopper();
|
|
166
|
+
}
|
|
167
|
+
render() {
|
|
168
|
+
const { active } = this;
|
|
169
|
+
const dir = getElementDir(this.el);
|
|
170
|
+
return (h(Host, { tabIndex: this.disabled ? -1 : null }, h("div", { class: { ["calcite-dropdown-trigger-container"]: true, [CSS_UTILITY.rtl]: dir === "rtl" }, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler, ref: this.setReferenceEl }, h("slot", { "aria-expanded": active.toString(), "aria-haspopup": "true", name: SLOTS.dropdownTrigger })), h("div", { "aria-hidden": (!active).toString(), class: "calcite-dropdown-wrapper", ref: this.setMenuEl }, h("div", { class: {
|
|
171
|
+
["calcite-dropdown-content"]: true,
|
|
172
|
+
[CSS.animation]: true,
|
|
173
|
+
[CSS.animationActive]: active
|
|
174
|
+
}, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("slot", null)))));
|
|
175
|
+
}
|
|
176
|
+
//--------------------------------------------------------------------------
|
|
177
|
+
//
|
|
178
|
+
// Public Methods
|
|
179
|
+
//
|
|
180
|
+
//--------------------------------------------------------------------------
|
|
181
|
+
/** Updates the position of the component. */
|
|
182
|
+
async reposition() {
|
|
183
|
+
const { popper, menuEl, placement } = this;
|
|
184
|
+
this.setMaxScrollerHeight();
|
|
185
|
+
const modifiers = this.getModifiers();
|
|
186
|
+
popper
|
|
187
|
+
? updatePopper({
|
|
188
|
+
el: menuEl,
|
|
189
|
+
modifiers,
|
|
190
|
+
placement,
|
|
191
|
+
popper
|
|
192
|
+
})
|
|
193
|
+
: this.createPopper();
|
|
194
|
+
}
|
|
195
|
+
closeCalciteDropdownOnClick(e) {
|
|
196
|
+
if (!this.active || e.composedPath().includes(this.el)) {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
this.closeCalciteDropdown();
|
|
200
|
+
}
|
|
201
|
+
closeCalciteDropdownOnEvent() {
|
|
202
|
+
this.closeCalciteDropdown();
|
|
203
|
+
}
|
|
204
|
+
closeCalciteDropdownOnOpenEvent(e) {
|
|
205
|
+
if (e.composedPath().includes(this.el)) {
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
this.active = false;
|
|
209
|
+
}
|
|
210
|
+
mouseEnterHandler() {
|
|
211
|
+
if (this.type === "hover") {
|
|
212
|
+
this.openCalciteDropdown();
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
mouseLeaveHandler() {
|
|
216
|
+
if (this.type === "hover") {
|
|
217
|
+
this.closeCalciteDropdown();
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
calciteDropdownItemKeyEvent(e) {
|
|
221
|
+
const { keyboardEvent } = e.detail;
|
|
222
|
+
// handle edge
|
|
223
|
+
const target = keyboardEvent.target;
|
|
224
|
+
const itemToFocus = target.nodeName !== "A" ? target : target.parentNode;
|
|
225
|
+
const isFirstItem = this.itemIndex(itemToFocus) === 0;
|
|
226
|
+
const isLastItem = this.itemIndex(itemToFocus) === this.items.length - 1;
|
|
227
|
+
switch (getKey(keyboardEvent.key)) {
|
|
228
|
+
case "Tab":
|
|
229
|
+
if (isLastItem && !keyboardEvent.shiftKey) {
|
|
230
|
+
this.closeCalciteDropdown();
|
|
231
|
+
}
|
|
232
|
+
else if (isFirstItem && keyboardEvent.shiftKey) {
|
|
233
|
+
this.closeCalciteDropdown();
|
|
234
|
+
}
|
|
235
|
+
else if (keyboardEvent.shiftKey) {
|
|
236
|
+
this.focusPrevItem(itemToFocus);
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
this.focusNextItem(itemToFocus);
|
|
240
|
+
}
|
|
241
|
+
break;
|
|
242
|
+
case "ArrowDown":
|
|
243
|
+
this.focusNextItem(itemToFocus);
|
|
244
|
+
break;
|
|
245
|
+
case "ArrowUp":
|
|
246
|
+
this.focusPrevItem(itemToFocus);
|
|
247
|
+
break;
|
|
248
|
+
case "Home":
|
|
249
|
+
this.focusFirstItem();
|
|
250
|
+
break;
|
|
251
|
+
case "End":
|
|
252
|
+
this.focusLastItem();
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
e.stopPropagation();
|
|
256
|
+
}
|
|
257
|
+
handleItemSelect(event) {
|
|
258
|
+
this.updateSelectedItems();
|
|
259
|
+
event.stopPropagation();
|
|
260
|
+
this.calciteDropdownSelect.emit();
|
|
261
|
+
if (!this.disableCloseOnSelect ||
|
|
262
|
+
event.detail.requestedDropdownGroup.selectionMode === "none") {
|
|
263
|
+
this.closeCalciteDropdown();
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
getModifiers() {
|
|
267
|
+
const flipModifier = {
|
|
268
|
+
name: "flip",
|
|
269
|
+
enabled: true
|
|
270
|
+
};
|
|
271
|
+
flipModifier.options = {
|
|
272
|
+
fallbackPlacements: ["top-start", "top", "top-end", "bottom-start", "bottom", "bottom-end"]
|
|
273
|
+
};
|
|
274
|
+
return [flipModifier];
|
|
275
|
+
}
|
|
276
|
+
createPopper() {
|
|
277
|
+
this.destroyPopper();
|
|
278
|
+
const { menuEl, referenceEl, placement, overlayPositioning } = this;
|
|
279
|
+
const modifiers = this.getModifiers();
|
|
280
|
+
this.popper = createPopper({
|
|
281
|
+
el: menuEl,
|
|
282
|
+
modifiers,
|
|
283
|
+
overlayPositioning,
|
|
284
|
+
placement,
|
|
285
|
+
referenceEl
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
destroyPopper() {
|
|
289
|
+
const { popper } = this;
|
|
290
|
+
if (popper) {
|
|
291
|
+
popper.destroy();
|
|
292
|
+
}
|
|
293
|
+
this.popper = null;
|
|
294
|
+
}
|
|
295
|
+
updateSelectedItems() {
|
|
296
|
+
const items = Array.from(this.el.querySelectorAll("calcite-dropdown-item"));
|
|
297
|
+
this.selectedItems = items.filter((item) => item.active);
|
|
298
|
+
}
|
|
299
|
+
getMaxScrollerHeight() {
|
|
300
|
+
const groups = Array.from(this.el.querySelectorAll("calcite-dropdown-group"));
|
|
301
|
+
const { maxItems } = this;
|
|
302
|
+
let itemsToProcess = 0;
|
|
303
|
+
let maxScrollerHeight = 0;
|
|
304
|
+
let groupHeaderHeight;
|
|
305
|
+
groups.forEach((group) => {
|
|
306
|
+
if (maxItems > 0 && itemsToProcess < maxItems) {
|
|
307
|
+
Array.from(group.children).forEach((item, index) => {
|
|
308
|
+
if (index === 0) {
|
|
309
|
+
if (isNaN(groupHeaderHeight)) {
|
|
310
|
+
groupHeaderHeight = item.offsetTop;
|
|
311
|
+
}
|
|
312
|
+
maxScrollerHeight += groupHeaderHeight;
|
|
313
|
+
}
|
|
314
|
+
if (itemsToProcess < maxItems) {
|
|
315
|
+
maxScrollerHeight += item.offsetHeight;
|
|
316
|
+
itemsToProcess += 1;
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
return maxScrollerHeight;
|
|
322
|
+
}
|
|
323
|
+
closeCalciteDropdown() {
|
|
324
|
+
this.active = false;
|
|
325
|
+
focusElement(this.triggers[0]);
|
|
326
|
+
}
|
|
327
|
+
focusFirstItem() {
|
|
328
|
+
const firstItem = this.items[0];
|
|
329
|
+
this.getFocusableElement(firstItem);
|
|
330
|
+
}
|
|
331
|
+
focusLastItem() {
|
|
332
|
+
const lastItem = this.items[this.items.length - 1];
|
|
333
|
+
this.getFocusableElement(lastItem);
|
|
334
|
+
}
|
|
335
|
+
focusNextItem(e) {
|
|
336
|
+
const index = this.itemIndex(e);
|
|
337
|
+
const nextItem = this.items[index + 1] || this.items[0];
|
|
338
|
+
this.getFocusableElement(nextItem);
|
|
339
|
+
}
|
|
340
|
+
focusPrevItem(e) {
|
|
341
|
+
const index = this.itemIndex(e);
|
|
342
|
+
const prevItem = this.items[index - 1] || this.items[this.items.length - 1];
|
|
343
|
+
this.getFocusableElement(prevItem);
|
|
344
|
+
}
|
|
345
|
+
itemIndex(e) {
|
|
346
|
+
return this.items.indexOf(e);
|
|
347
|
+
}
|
|
348
|
+
getFocusableElement(item) {
|
|
349
|
+
if (!item) {
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
const target = item.attributes.isLink
|
|
353
|
+
? item.shadowRoot.querySelector("a")
|
|
354
|
+
: item;
|
|
355
|
+
focusElement(target);
|
|
356
|
+
}
|
|
357
|
+
get el() { return this; }
|
|
358
|
+
static get watchers() { return {
|
|
359
|
+
"active": ["activeHandler"],
|
|
360
|
+
"maxItems": ["maxItemsHandler"],
|
|
361
|
+
"placement": ["placementHandler"]
|
|
362
|
+
}; }
|
|
363
|
+
static get style() { return calciteDropdownCss; }
|
|
364
|
+
};
|
|
365
|
+
CalciteDropdown = /*@__PURE__*/ proxyCustomElement(CalciteDropdown, [1, "calcite-dropdown", {
|
|
366
|
+
"active": [1540],
|
|
367
|
+
"disableCloseOnSelect": [516, "disable-close-on-select"],
|
|
368
|
+
"disabled": [516],
|
|
369
|
+
"maxItems": [2, "max-items"],
|
|
370
|
+
"overlayPositioning": [1, "overlay-positioning"],
|
|
371
|
+
"placement": [513],
|
|
372
|
+
"scale": [513],
|
|
373
|
+
"selectedItems": [1040],
|
|
374
|
+
"type": [513],
|
|
375
|
+
"width": [513],
|
|
376
|
+
"reposition": [64]
|
|
377
|
+
}, [[8, "click", "closeCalciteDropdownOnClick"], [0, "calciteDropdownCloseRequest", "closeCalciteDropdownOnEvent"], [8, "calciteDropdownOpen", "closeCalciteDropdownOnOpenEvent"], [1, "mouseenter", "mouseEnterHandler"], [1, "mouseleave", "mouseLeaveHandler"], [0, "calciteDropdownItemKeyEvent", "calciteDropdownItemKeyEvent"], [0, "calciteDropdownItemSelect", "handleItemSelect"]]]);
|
|
378
|
+
function defineCustomElement() {
|
|
379
|
+
const components = ["calcite-dropdown"];
|
|
380
|
+
components.forEach(tagName => { switch (tagName) {
|
|
381
|
+
case "calcite-dropdown":
|
|
382
|
+
if (!customElements.get(tagName)) {
|
|
383
|
+
customElements.define(tagName, CalciteDropdown);
|
|
384
|
+
}
|
|
385
|
+
break;
|
|
386
|
+
} });
|
|
387
|
+
}
|
|
388
|
+
defineCustomElement();
|
|
389
|
+
|
|
390
|
+
export { CalciteDropdown as C, defineCustomElement as d };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface CalciteFab extends Components.CalciteFab, HTMLElement {}
|
|
4
|
+
export const CalciteFab: {
|
|
5
|
+
prototype: CalciteFab;
|
|
6
|
+
new (): CalciteFab;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|