@esri/calcite-components 1.0.0-beta.77 → 1.0.0-beta.80
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/date-picker/nls/bs.json +1 -1
- package/dist/calcite/assets/date-picker/nls/ca.json +1 -1
- package/dist/calcite/assets/date-picker/nls/cs.json +1 -1
- package/dist/calcite/assets/date-picker/nls/da.json +1 -1
- package/dist/calcite/assets/date-picker/nls/de.json +1 -1
- package/dist/calcite/assets/date-picker/nls/el.json +1 -1
- package/dist/calcite/assets/date-picker/nls/en-AU.json +1 -1
- package/dist/calcite/assets/date-picker/nls/es.json +1 -1
- package/dist/calcite/assets/date-picker/nls/et.json +1 -1
- package/dist/calcite/assets/date-picker/nls/fi.json +1 -1
- package/dist/calcite/assets/date-picker/nls/fr.json +1 -1
- package/dist/calcite/assets/date-picker/nls/hr.json +1 -1
- package/dist/calcite/assets/date-picker/nls/hu.json +1 -1
- package/dist/calcite/assets/date-picker/nls/it.json +1 -1
- package/dist/calcite/assets/date-picker/nls/lt.json +1 -1
- package/dist/calcite/assets/date-picker/nls/lv.json +1 -1
- package/dist/calcite/assets/date-picker/nls/mk.json +1 -1
- package/dist/calcite/assets/date-picker/nls/nb.json +1 -1
- package/dist/calcite/assets/date-picker/nls/nl.json +1 -1
- package/dist/calcite/assets/date-picker/nls/pl.json +1 -1
- package/dist/calcite/assets/date-picker/nls/ro.json +1 -1
- package/dist/calcite/assets/date-picker/nls/ru.json +1 -1
- package/dist/calcite/assets/date-picker/nls/sl.json +1 -1
- package/dist/calcite/assets/date-picker/nls/sr.json +1 -1
- package/dist/calcite/assets/date-picker/nls/sv.json +1 -1
- package/dist/calcite/assets/date-picker/nls/tr.json +1 -1
- package/dist/calcite/assets/date-picker/nls/uk.json +1 -1
- package/dist/calcite/assets/date-picker/nls/vi.json +1 -1
- package/dist/calcite/assets/icon/clockForward16.json +1 -0
- package/dist/calcite/assets/icon/clockForward24.json +1 -0
- package/dist/calcite/assets/icon/clockForward32.json +1 -0
- package/dist/calcite/assets/icon/contingentValues16.json +1 -0
- package/dist/calcite/assets/icon/contingentValues24.json +1 -0
- package/dist/calcite/assets/icon/contingentValues32.json +1 -0
- package/dist/calcite/assets/icon/creditCard16.json +1 -0
- package/dist/calcite/assets/icon/creditCard24.json +1 -0
- package/dist/calcite/assets/icon/creditCard32.json +1 -0
- package/dist/calcite/assets/icon/credits16.json +1 -1
- package/dist/calcite/assets/icon/credits24.json +1 -1
- package/dist/calcite/assets/icon/credits32.json +1 -1
- package/dist/calcite/assets/icon/keyboard16.json +1 -0
- package/dist/calcite/assets/icon/keyboard24.json +1 -0
- package/dist/calcite/assets/icon/keyboard32.json +1 -0
- package/dist/calcite/assets/icon/premiumContentUserCredit24.json +1 -1
- package/dist/calcite/assets/icon/premiumContentUserCredit32.json +1 -1
- package/dist/calcite/assets/icon/select16.json +1 -1
- package/dist/calcite/assets/icon/select24.json +1 -1
- package/dist/calcite/assets/icon/select32.json +1 -1
- package/dist/calcite/assets/icon/tiledImageryLayer16.json +1 -0
- package/dist/calcite/assets/icon/tiledImageryLayer24.json +1 -0
- package/dist/calcite/assets/icon/tiledImageryLayer32.json +1 -0
- package/dist/calcite/assets/icon/userDown16.json +1 -0
- package/dist/calcite/assets/icon/userDown24.json +1 -0
- package/dist/calcite/assets/icon/userDown32.json +1 -0
- package/dist/calcite/assets/icon/userKey16.json +1 -0
- package/dist/calcite/assets/icon/userKey24.json +1 -0
- package/dist/calcite/assets/icon/userKey32.json +1 -0
- package/dist/calcite/assets/icon/userMinus16.json +1 -0
- package/dist/calcite/assets/icon/userMinus24.json +1 -0
- package/dist/calcite/assets/icon/userMinus32.json +1 -0
- package/dist/calcite/assets/icon/userUp16.json +1 -0
- package/dist/calcite/assets/icon/userUp24.json +1 -0
- package/dist/calcite/assets/icon/userUp32.json +1 -0
- package/dist/calcite/assets/icon/userX16.json +1 -0
- package/dist/calcite/assets/icon/userX24.json +1 -0
- package/dist/calcite/assets/icon/userX32.json +1 -0
- package/dist/calcite/assets/icon/utilityNetworkTrace16.json +1 -0
- package/dist/calcite/assets/icon/utilityNetworkTrace24.json +1 -0
- package/dist/calcite/assets/icon/utilityNetworkTrace32.json +1 -0
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/{p-b78f6de5.system.entry.js → p-02d7cf64.system.entry.js} +1 -1
- package/dist/calcite/p-03c92ad2.entry.js +5 -0
- package/dist/calcite/{p-b1a43a5f.system.entry.js → p-052ba882.system.entry.js} +1 -1
- package/dist/calcite/p-07f1f162.system.entry.js +5 -0
- package/dist/calcite/p-1263bcc0.entry.js +5 -0
- package/dist/calcite/p-162604a0.entry.js +5 -0
- package/dist/calcite/p-18be4438.entry.js +5 -0
- package/dist/calcite/p-193749c1.entry.js +5 -0
- package/dist/calcite/{p-fda73553.system.entry.js → p-1aded388.system.entry.js} +1 -1
- package/dist/calcite/p-1aeca42a.system.entry.js +5 -0
- package/dist/calcite/{p-c11cbced.system.entry.js → p-1fc943d5.system.entry.js} +1 -1
- package/dist/calcite/p-23145377.entry.js +5 -0
- package/dist/calcite/p-28c333d0.entry.js +5 -0
- package/dist/calcite/p-2bcaed33.entry.js +5 -0
- package/dist/calcite/p-2dd22e8c.system.entry.js +5 -0
- package/dist/calcite/p-2fae8516.system.entry.js +5 -0
- package/dist/calcite/p-3119ffce.system.js +5 -0
- package/dist/calcite/p-31c58f25.entry.js +5 -0
- package/dist/calcite/p-32d6b962.entry.js +5 -0
- package/dist/calcite/{p-a8ac1295.system.entry.js → p-32efc4cd.system.entry.js} +1 -1
- package/dist/calcite/p-34730e94.entry.js +5 -0
- package/dist/calcite/p-364db271.entry.js +5 -0
- package/dist/calcite/p-364f0abe.system.entry.js +5 -0
- package/dist/calcite/p-3915705c.entry.js +5 -0
- package/dist/calcite/p-3b4662a5.entry.js +5 -0
- package/dist/calcite/p-3e149640.system.entry.js +5 -0
- package/dist/calcite/p-3e9d96c6.system.entry.js +5 -0
- package/dist/calcite/p-42227a04.entry.js +5 -0
- package/dist/calcite/p-426f011a.entry.js +5 -0
- package/dist/calcite/p-4570cf6c.js +5 -0
- package/dist/calcite/p-46071f17.entry.js +5 -0
- package/dist/calcite/p-47d38839.entry.js +5 -0
- package/dist/calcite/p-482885ae.system.entry.js +5 -0
- package/dist/calcite/{p-04bf9bca.system.entry.js → p-48637359.system.entry.js} +1 -1
- package/dist/calcite/p-4905189e.system.entry.js +5 -0
- package/dist/calcite/p-496e907a.system.entry.js +5 -0
- package/dist/calcite/p-4aecbaef.entry.js +5 -0
- package/dist/calcite/p-4afb5a1b.system.entry.js +5 -0
- package/dist/calcite/p-4eae61c5.entry.js +5 -0
- package/dist/calcite/p-5394666a.entry.js +5 -0
- package/dist/calcite/p-54c49493.entry.js +5 -0
- package/dist/calcite/{p-5c2545f0.system.entry.js → p-55e1a3a0.system.entry.js} +1 -1
- package/dist/calcite/{p-e39100e6.system.entry.js → p-569150ab.system.entry.js} +1 -1
- package/dist/calcite/p-5802a565.entry.js +5 -0
- package/dist/calcite/{p-ab14b0a2.system.js → p-588bfa74.system.js} +1 -1
- package/dist/calcite/p-5a8829cd.entry.js +5 -0
- package/dist/calcite/p-5bb4d012.entry.js +5 -0
- package/dist/calcite/p-5c637131.entry.js +5 -0
- package/dist/calcite/p-5f6e35f3.entry.js +5 -0
- package/dist/calcite/p-614d8925.js +5 -0
- package/dist/calcite/p-6261469d.entry.js +5 -0
- package/dist/calcite/p-653bd7bf.entry.js +5 -0
- package/dist/calcite/p-65dbbfb5.system.js +5 -0
- package/dist/calcite/p-69d2d9cf.system.entry.js +5 -0
- package/dist/calcite/p-6ab3e489.entry.js +5 -0
- package/dist/calcite/p-6b7b23d0.js +5 -0
- package/dist/calcite/p-6c4a7041.system.entry.js +5 -0
- package/dist/calcite/p-6e0103f5.system.entry.js +5 -0
- package/dist/calcite/{p-7f1ff224.system.entry.js → p-6ed27595.system.entry.js} +1 -1
- package/dist/calcite/p-6fba3e1b.system.entry.js +5 -0
- package/dist/calcite/{p-0a8635a5.system.entry.js → p-7247b667.system.entry.js} +1 -1
- package/dist/calcite/p-7260c869.system.entry.js +5 -0
- package/dist/calcite/p-7432e5ef.system.entry.js +5 -0
- package/dist/calcite/p-765c9bef.entry.js +5 -0
- package/dist/calcite/p-78bc502f.entry.js +5 -0
- package/dist/calcite/{p-30f0e22d.system.entry.js → p-7bee4942.system.entry.js} +1 -1
- package/dist/calcite/p-7c88d545.js +5 -0
- package/dist/calcite/p-824da4be.entry.js +5 -0
- package/dist/calcite/p-867f7b7a.system.entry.js +5 -0
- package/dist/calcite/p-872e82a6.system.entry.js +5 -0
- package/dist/calcite/p-87888359.entry.js +5 -0
- package/dist/calcite/p-895d22f3.entry.js +5 -0
- package/dist/calcite/p-8a7596e3.entry.js +5 -0
- package/dist/calcite/{p-c1d5aac6.js → p-8ab345f2.js} +1 -1
- package/dist/calcite/p-8b982f91.entry.js +5 -0
- package/dist/calcite/{p-3dd50bac.system.entry.js → p-8e0dd0af.system.entry.js} +1 -1
- package/dist/calcite/{p-de274791.system.js → p-9385e4b4.system.js} +1 -1
- package/dist/calcite/p-963e9aec.system.entry.js +5 -0
- package/dist/calcite/p-97904e9a.entry.js +5 -0
- package/dist/calcite/p-9940b82a.system.entry.js +5 -0
- package/dist/calcite/p-9ac86d6a.entry.js +5 -0
- package/dist/calcite/p-9ad8c7c5.system.entry.js +5 -0
- package/dist/calcite/p-9c913e3a.entry.js +5 -0
- package/dist/calcite/p-9e61d89d.entry.js +5 -0
- package/dist/calcite/p-a117af56.system.js +1 -1
- package/dist/calcite/{p-f3a85d19.system.entry.js → p-a11ee541.system.entry.js} +1 -1
- package/dist/calcite/{p-fe3fff79.entry.js → p-a7770d75.entry.js} +1 -1
- package/dist/calcite/p-a9b3ef39.js +5 -0
- package/dist/calcite/p-a9ea7f4f.entry.js +5 -0
- package/dist/calcite/p-aaa21a84.system.entry.js +5 -0
- package/dist/calcite/p-aad14a5d.system.entry.js +5 -0
- package/dist/calcite/p-afe59546.entry.js +5 -0
- package/dist/calcite/p-b0827b8c.system.entry.js +5 -0
- package/dist/calcite/p-b10af2b4.entry.js +5 -0
- package/dist/calcite/p-b2493735.entry.js +5 -0
- package/dist/calcite/p-b2b6f712.js +5 -0
- package/dist/calcite/p-b3c5247b.system.entry.js +5 -0
- package/dist/calcite/p-b47dc903.system.entry.js +5 -0
- package/dist/calcite/p-b765d197.system.js +5 -0
- package/dist/calcite/{p-f894bab4.system.entry.js → p-b9a38a28.system.entry.js} +2 -2
- package/dist/calcite/p-bccbf58a.entry.js +5 -0
- package/dist/calcite/p-bd38ff21.js +5 -0
- package/dist/calcite/{p-2e351904.system.entry.js → p-bdcb43b1.system.entry.js} +1 -1
- package/dist/calcite/p-bffb4da3.system.entry.js +5 -0
- package/dist/calcite/{p-7b5207ea.system.entry.js → p-c228a1da.system.entry.js} +1 -1
- package/dist/calcite/p-c2adeae4.entry.js +5 -0
- package/dist/calcite/p-c2caeb2a.system.entry.js +5 -0
- package/dist/calcite/p-c4cb35ba.system.entry.js +5 -0
- package/dist/calcite/p-c51699d3.system.js +5 -0
- package/dist/calcite/{p-513bc44f.system.entry.js → p-c9fc13b9.system.entry.js} +1 -1
- package/dist/calcite/p-cafd98e8.entry.js +5 -0
- package/dist/calcite/{p-ada75056.system.js → p-cb57638c.system.js} +1 -1
- package/dist/calcite/p-cb847074.entry.js +5 -0
- package/dist/calcite/p-cbc6fee6.entry.js +5 -0
- package/dist/calcite/p-cc6e7726.entry.js +5 -0
- package/dist/calcite/{p-36e29ddc.js → p-cd5f5c8f.js} +1 -1
- package/dist/calcite/p-cd9226a1.system.entry.js +5 -0
- package/dist/calcite/p-daf5f04c.system.js +5 -0
- package/dist/calcite/p-dcf33bb2.js +5 -0
- package/dist/calcite/p-e22ab8fa.entry.js +5 -0
- package/dist/calcite/p-e3280a36.system.entry.js +5 -0
- package/dist/calcite/p-e43605c5.entry.js +5 -0
- package/dist/calcite/p-e4d1651b.system.entry.js +5 -0
- package/dist/calcite/p-e55c5bb4.entry.js +5 -0
- package/dist/calcite/p-e66a8ca1.system.entry.js +5 -0
- package/dist/calcite/p-ea4119b1.system.entry.js +5 -0
- package/dist/calcite/{p-68aab44a.system.entry.js → p-eb3c084f.system.entry.js} +1 -1
- package/dist/calcite/p-ec9bab33.system.js +2 -2
- package/dist/calcite/p-ecc31b40.system.entry.js +5 -0
- package/dist/calcite/p-edf1e815.system.entry.js +5 -0
- package/dist/calcite/p-ee522afa.system.entry.js +5 -0
- package/dist/calcite/p-ef17447d.system.entry.js +5 -0
- package/dist/calcite/p-f09e27b0.system.js +5 -0
- package/dist/calcite/p-f344e163.entry.js +5 -0
- package/dist/calcite/p-f68725d7.entry.js +5 -0
- package/dist/calcite/p-fa922721.system.js +5 -0
- package/dist/calcite/p-fe9380a0.system.js +5 -0
- package/dist/cjs/{ExpandToggle-ef5d508c.js → ExpandToggle-f7682a15.js} +2 -2
- package/dist/cjs/{Heading-ef16f5df.js → Heading-ec707493.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +19 -9
- package/dist/cjs/calcite-action-bar.cjs.entry.js +8 -15
- package/dist/cjs/calcite-action-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-action-menu.cjs.entry.js +5 -5
- package/dist/cjs/calcite-action-pad.cjs.entry.js +7 -17
- package/dist/cjs/calcite-action.cjs.entry.js +9 -4
- package/dist/cjs/calcite-alert.cjs.entry.js +2 -2
- package/dist/cjs/calcite-avatar.cjs.entry.js +2 -2
- package/dist/cjs/calcite-block_2.cjs.entry.js +34 -17
- package/dist/cjs/calcite-button.cjs.entry.js +14 -16
- package/dist/cjs/calcite-card.cjs.entry.js +3 -3
- package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -5
- package/dist/cjs/calcite-chip.cjs.entry.js +3 -3
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +19 -6
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +41 -37
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +16 -9
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +60 -38
- package/dist/cjs/calcite-fab.cjs.entry.js +12 -3
- package/dist/cjs/calcite-filter.cjs.entry.js +38 -5
- package/dist/cjs/calcite-flow.cjs.entry.js +2 -2
- package/dist/cjs/calcite-graph_2.cjs.entry.js +34 -32
- package/dist/cjs/calcite-handle.cjs.entry.js +2 -2
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -11
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +34 -14
- package/dist/cjs/calcite-input-message.cjs.entry.js +2 -2
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +55 -10
- package/dist/cjs/calcite-input.cjs.entry.js +11 -7
- package/dist/cjs/calcite-label.cjs.entry.js +17 -4
- package/dist/cjs/calcite-link.cjs.entry.js +10 -16
- package/dist/cjs/calcite-list_3.cjs.entry.js +34 -8
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +3 -3
- package/dist/cjs/calcite-notice.cjs.entry.js +3 -3
- package/dist/cjs/calcite-option_3.cjs.entry.js +11 -7
- package/dist/cjs/calcite-pagination.cjs.entry.js +2 -2
- package/dist/cjs/calcite-panel.cjs.entry.js +16 -7
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +21 -27
- package/dist/cjs/calcite-popover_2.cjs.entry.js +14 -9
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button.cjs.entry.js +9 -5
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +11 -7
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -8
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +5 -5
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +7 -3
- package/dist/cjs/calcite-split-button.cjs.entry.js +27 -4
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +9 -5
- package/dist/cjs/calcite-switch.cjs.entry.js +9 -12
- package/dist/cjs/calcite-tab_4.cjs.entry.js +13 -10
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +20 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -4
- package/dist/cjs/calcite-tip_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +11 -7
- package/dist/cjs/calcite-tree_2.cjs.entry.js +63 -59
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +19 -11
- package/dist/cjs/calcite.cjs.js +3 -3
- package/dist/cjs/{conditionalSlot-92505fba.js → conditionalSlot-64f9bfd3.js} +1 -1
- package/dist/cjs/{form-237cf392.js → form-0ef859c8.js} +1 -1
- package/dist/cjs/{index-6b5d2de5.js → index-1af0efd3.js} +27 -1
- package/dist/cjs/interactive-87406231.js +44 -0
- package/dist/cjs/{label-6b18ca08.js → label-980508de.js} +40 -6
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{popper-13a2bb46.js → popper-64d89ef7.js} +17 -2
- package/dist/cjs/{resources-8a9f4e9c.js → resources-7811eb2c.js} +1 -1
- package/dist/cjs/{resources-4850fd7c.js → resources-e43fc9f3.js} +48 -10
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion.css +7 -6
- package/dist/collection/components/accordion/accordion.js +2 -1
- package/dist/collection/components/accordion-item/accordion-item.js +13 -3
- package/dist/collection/components/action/action.css +9 -0
- package/dist/collection/components/action/action.js +6 -1
- package/dist/collection/components/action-bar/action-bar.js +4 -11
- package/dist/collection/components/action-menu/action-menu.js +7 -7
- package/dist/collection/components/action-pad/action-pad.js +3 -15
- package/dist/collection/components/block/block.css +13 -9
- package/dist/collection/components/block/block.js +20 -6
- package/dist/collection/components/block-section/block-section.js +12 -7
- package/dist/collection/components/button/button.css +15 -2
- package/dist/collection/components/button/button.js +10 -15
- package/dist/collection/components/checkbox/checkbox.css +7 -0
- package/dist/collection/components/checkbox/checkbox.js +4 -0
- package/dist/collection/components/color-picker/color-picker.css +13 -0
- package/dist/collection/components/color-picker/color-picker.js +34 -3
- package/dist/collection/components/combobox/combobox.css +9 -7
- package/dist/collection/components/combobox/combobox.js +54 -32
- package/dist/collection/components/combobox/resources.js +0 -1
- package/dist/collection/components/combobox-item/combobox-item.css +13 -0
- package/dist/collection/components/combobox-item/combobox-item.js +4 -0
- package/dist/collection/components/date-picker/assets/date-picker/nls/bs.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/ca.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/cs.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/da.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/de.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/el.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/en-AU.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/es.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/et.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/fi.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/fr.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/hr.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/hu.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/it.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/lt.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/lv.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/mk.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/nb.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/nl.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/pl.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/ro.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/ru.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/sl.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/sr.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/sv.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/tr.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/uk.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/vi.json +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.css +13 -5
- package/dist/collection/components/date-picker-day/date-picker-day.js +8 -1
- package/dist/collection/components/dropdown/dropdown.css +8 -0
- package/dist/collection/components/dropdown/dropdown.js +71 -32
- package/dist/collection/components/dropdown/resources.js +0 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +11 -5
- package/dist/collection/components/fab/fab.css +13 -0
- package/dist/collection/components/fab/fab.js +9 -0
- package/dist/collection/components/filter/filter.css +13 -0
- package/dist/collection/components/filter/filter.js +41 -7
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/icon/assets/icon/clockForward16.json +1 -0
- package/dist/collection/components/icon/assets/icon/clockForward24.json +1 -0
- package/dist/collection/components/icon/assets/icon/clockForward32.json +1 -0
- package/dist/collection/components/icon/assets/icon/contingentValues16.json +1 -0
- package/dist/collection/components/icon/assets/icon/contingentValues24.json +1 -0
- package/dist/collection/components/icon/assets/icon/contingentValues32.json +1 -0
- package/dist/collection/components/icon/assets/icon/creditCard16.json +1 -0
- package/dist/collection/components/icon/assets/icon/creditCard24.json +1 -0
- package/dist/collection/components/icon/assets/icon/creditCard32.json +1 -0
- package/dist/collection/components/icon/assets/icon/credits16.json +1 -1
- package/dist/collection/components/icon/assets/icon/credits24.json +1 -1
- package/dist/collection/components/icon/assets/icon/credits32.json +1 -1
- package/dist/collection/components/icon/assets/icon/keyboard16.json +1 -0
- package/dist/collection/components/icon/assets/icon/keyboard24.json +1 -0
- package/dist/collection/components/icon/assets/icon/keyboard32.json +1 -0
- package/dist/collection/components/icon/assets/icon/premiumContentUserCredit24.json +1 -1
- package/dist/collection/components/icon/assets/icon/premiumContentUserCredit32.json +1 -1
- package/dist/collection/components/icon/assets/icon/select16.json +1 -1
- package/dist/collection/components/icon/assets/icon/select24.json +1 -1
- package/dist/collection/components/icon/assets/icon/select32.json +1 -1
- package/dist/collection/components/icon/assets/icon/tiledImageryLayer16.json +1 -0
- package/dist/collection/components/icon/assets/icon/tiledImageryLayer24.json +1 -0
- package/dist/collection/components/icon/assets/icon/tiledImageryLayer32.json +1 -0
- package/dist/collection/components/icon/assets/icon/userDown16.json +1 -0
- package/dist/collection/components/icon/assets/icon/userDown24.json +1 -0
- package/dist/collection/components/icon/assets/icon/userDown32.json +1 -0
- package/dist/collection/components/icon/assets/icon/userKey16.json +1 -0
- package/dist/collection/components/icon/assets/icon/userKey24.json +1 -0
- package/dist/collection/components/icon/assets/icon/userKey32.json +1 -0
- package/dist/collection/components/icon/assets/icon/userMinus16.json +1 -0
- package/dist/collection/components/icon/assets/icon/userMinus24.json +1 -0
- package/dist/collection/components/icon/assets/icon/userMinus32.json +1 -0
- package/dist/collection/components/icon/assets/icon/userUp16.json +1 -0
- package/dist/collection/components/icon/assets/icon/userUp24.json +1 -0
- package/dist/collection/components/icon/assets/icon/userUp32.json +1 -0
- package/dist/collection/components/icon/assets/icon/userX16.json +1 -0
- package/dist/collection/components/icon/assets/icon/userX24.json +1 -0
- package/dist/collection/components/icon/assets/icon/userX32.json +1 -0
- package/dist/collection/components/icon/assets/icon/utilityNetworkTrace16.json +1 -0
- package/dist/collection/components/icon/assets/icon/utilityNetworkTrace24.json +1 -0
- package/dist/collection/components/icon/assets/icon/utilityNetworkTrace32.json +1 -0
- package/dist/collection/components/inline-editable/inline-editable.css +12 -0
- package/dist/collection/components/inline-editable/inline-editable.js +9 -7
- package/dist/collection/components/input/input.css +8 -7
- package/dist/collection/components/input/input.js +6 -2
- package/dist/collection/components/input-date-picker/input-date-picker.css +68 -26
- package/dist/collection/components/input-date-picker/input-date-picker.js +51 -9
- package/dist/collection/components/input-time-picker/input-time-picker.css +13 -0
- package/dist/collection/components/input-time-picker/input-time-picker.js +21 -1
- package/dist/collection/components/label/label.css +12 -0
- package/dist/collection/components/label/label.js +16 -2
- package/dist/collection/components/link/link.css +13 -8
- package/dist/collection/components/link/link.js +8 -18
- package/dist/collection/components/list/list.css +13 -0
- package/dist/collection/components/list/list.js +38 -0
- package/dist/collection/components/list-item/list-item.css +8 -0
- package/dist/collection/components/list-item/list-item.js +9 -0
- package/dist/collection/components/loader/loader.css +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/panel/panel.css +13 -0
- package/dist/collection/components/panel/panel.js +11 -2
- package/dist/collection/components/pick-list/pick-list.css +13 -0
- package/dist/collection/components/pick-list/pick-list.js +4 -0
- package/dist/collection/components/pick-list/shared-list-logic.js +32 -7
- package/dist/collection/components/pick-list/shared-list-render.js +2 -2
- package/dist/collection/components/pick-list-item/pick-list-item.css +13 -0
- package/dist/collection/components/pick-list-item/pick-list-item.js +6 -5
- package/dist/collection/components/popover/popover.css +5 -0
- package/dist/collection/components/popover/popover.js +13 -9
- package/dist/collection/components/popover/resources.js +1 -0
- package/dist/collection/components/popover-manager/popover-manager.css +1 -0
- package/dist/collection/components/radio-button/radio-button.css +10 -1
- package/dist/collection/components/radio-button/radio-button.js +4 -0
- package/dist/collection/components/radio-group/radio-group.css +13 -5
- package/dist/collection/components/radio-group/radio-group.js +5 -1
- package/dist/collection/components/rating/rating.css +13 -5
- package/dist/collection/components/rating/rating.js +9 -3
- package/dist/collection/components/select/select.css +13 -7
- package/dist/collection/components/select/select.js +4 -0
- package/dist/collection/components/slider/slider.css +8 -0
- package/dist/collection/components/slider/slider.js +29 -27
- package/dist/collection/components/sortable-list/sortable-list.css +13 -0
- package/dist/collection/components/sortable-list/sortable-list.js +4 -0
- package/dist/collection/components/split-button/split-button.css +12 -0
- package/dist/collection/components/split-button/split-button.js +29 -3
- package/dist/collection/components/stepper-item/stepper-item.css +8 -4
- package/dist/collection/components/stepper-item/stepper-item.js +6 -2
- package/dist/collection/components/switch/switch.css +7 -0
- package/dist/collection/components/switch/switch.js +5 -13
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.css +9 -0
- package/dist/collection/components/tab-title/tab-title.js +8 -5
- package/dist/collection/components/tile/tile.css +17 -1
- package/dist/collection/components/tile/tile.js +4 -0
- package/dist/collection/components/tile-select/tile-select.css +9 -1
- package/dist/collection/components/tile-select/tile-select.js +4 -0
- package/dist/collection/components/tile-select-group/tile-select-group.css +13 -0
- package/dist/collection/components/tile-select-group/tile-select-group.js +31 -1
- package/dist/collection/components/time-picker/resources.js +2 -1
- package/dist/collection/components/time-picker/time-picker.css +3 -0
- package/dist/collection/components/time-picker/time-picker.js +17 -2
- package/dist/collection/components/tooltip/tooltip.css +5 -0
- package/dist/collection/components/tooltip/tooltip.js +6 -2
- package/dist/collection/components/tooltip-manager/tooltip-manager.css +1 -0
- package/dist/collection/components/tree/tree.js +67 -4
- package/dist/collection/components/tree-item/tree-item.js +0 -53
- package/dist/collection/components/value-list/value-list.css +13 -0
- package/dist/collection/components/value-list/value-list.js +15 -5
- package/dist/collection/components/value-list-item/value-list-item.css +13 -0
- package/dist/collection/components/value-list-item/value-list-item.js +6 -2
- package/dist/collection/utils/interactive.js +42 -0
- package/dist/collection/utils/label.js +38 -6
- package/dist/collection/utils/popper.js +66 -0
- package/dist/collection/utils/time.js +13 -0
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/action-group.js +3 -4
- package/dist/components/action-menu.js +5 -6
- package/dist/components/action.js +10 -6
- package/dist/components/button.js +14 -18
- package/dist/components/calcite-accordion-item.js +16 -7
- package/dist/components/calcite-accordion.js +6 -6
- package/dist/components/calcite-action-bar.js +7 -15
- package/dist/components/calcite-action-pad.js +6 -17
- package/dist/components/calcite-alert.js +3 -4
- package/dist/components/calcite-avatar.js +3 -4
- package/dist/components/calcite-block-section.js +12 -8
- package/dist/components/calcite-block.js +24 -11
- package/dist/components/calcite-card.js +3 -4
- package/dist/components/calcite-color-picker.js +19 -6
- package/dist/components/calcite-combobox-item-group.js +4 -5
- package/dist/components/calcite-combobox-item.js +9 -6
- package/dist/components/calcite-combobox.js +35 -35
- package/dist/components/calcite-dropdown-group.js +3 -4
- package/dist/components/calcite-dropdown-item.js +14 -9
- package/dist/components/calcite-fab.js +13 -5
- package/dist/components/calcite-flow.js +3 -4
- package/dist/components/calcite-inline-editable.js +13 -12
- package/dist/components/calcite-input-date-picker.js +33 -13
- package/dist/components/calcite-input-message.js +3 -4
- package/dist/components/calcite-input-time-picker.js +21 -6
- package/dist/components/calcite-list-item-group.js +3 -4
- package/dist/components/calcite-list-item.js +13 -5
- package/dist/components/calcite-list.js +23 -5
- package/dist/components/calcite-modal.js +3 -4
- package/dist/components/calcite-notice.js +3 -4
- package/dist/components/calcite-option-group.js +3 -4
- package/dist/components/calcite-option.js +3 -4
- package/dist/components/calcite-pagination.js +3 -4
- package/dist/components/calcite-panel.js +15 -7
- package/dist/components/calcite-pick-list-group.js +4 -14
- package/dist/components/calcite-pick-list.js +8 -5
- package/dist/components/calcite-popover-manager.js +4 -5
- package/dist/components/calcite-radio-button-group.js +3 -4
- package/dist/components/calcite-radio-button.js +8 -5
- package/dist/components/calcite-radio-group-item.js +3 -4
- package/dist/components/calcite-radio-group.js +9 -6
- package/dist/components/calcite-rating.js +13 -8
- package/dist/components/calcite-select.js +8 -5
- package/dist/components/calcite-shell-center-row.js +3 -4
- package/dist/components/calcite-shell-panel.js +3 -4
- package/dist/components/calcite-shell.js +3 -4
- package/dist/components/calcite-slider.js +32 -31
- package/dist/components/calcite-sortable-list.js +8 -5
- package/dist/components/calcite-split-button.js +29 -7
- package/dist/components/calcite-stepper-item.js +10 -7
- package/dist/components/calcite-stepper.js +3 -4
- package/dist/components/calcite-tile-select-group.js +17 -5
- package/dist/components/calcite-tile-select.js +8 -5
- package/dist/components/calcite-tip-group.js +3 -4
- package/dist/components/calcite-tip-manager.js +4 -5
- package/dist/components/calcite-tip.js +4 -5
- package/dist/components/calcite-tooltip.js +9 -6
- package/dist/components/calcite-tree-item.js +3 -57
- package/dist/components/calcite-tree.js +63 -7
- package/dist/components/calcite-value-list-item.js +8 -5
- package/dist/components/calcite-value-list.js +14 -11
- package/dist/components/checkbox.js +8 -5
- package/dist/components/chip.js +3 -4
- package/dist/components/color-picker-hex-input.js +3 -4
- package/dist/components/color-picker-swatch.js +3 -4
- package/dist/components/date-picker-day.js +12 -6
- package/dist/components/date-picker-month-header.js +3 -4
- package/dist/components/date-picker-month.js +3 -4
- package/dist/components/date-picker.js +3 -4
- package/dist/components/dropdown.js +49 -33
- package/dist/components/filter.js +45 -25
- package/dist/components/graph.js +3 -4
- package/dist/components/handle.js +3 -4
- package/dist/components/icon.js +3 -4
- package/dist/components/input.js +10 -7
- package/dist/components/interactive.js +42 -0
- package/dist/components/label.js +39 -7
- package/dist/components/label2.js +16 -6
- package/dist/components/link.js +11 -19
- package/dist/components/loader.js +4 -5
- package/dist/components/pick-list-item.js +8 -8
- package/dist/components/popover.js +11 -8
- package/dist/components/popper.js +16 -3
- package/dist/components/progress.js +3 -4
- package/dist/components/resources.js +2 -1
- package/dist/components/resources4.js +5 -22
- package/dist/components/resources5.js +32 -0
- package/dist/components/scrim.js +3 -4
- package/dist/components/shared-list-render.js +37 -12
- package/dist/components/switch.js +8 -13
- package/dist/components/tab-nav.js +3 -4
- package/dist/components/tab-title.js +10 -8
- package/dist/components/tab.js +4 -5
- package/dist/components/tabs.js +3 -4
- package/dist/components/tile.js +8 -5
- package/dist/components/time-picker.js +35 -7
- package/dist/components/tooltip-manager.js +4 -5
- package/dist/components/utils2.js +1 -2
- package/dist/custom-elements/index.js +818 -433
- package/dist/esm/{ExpandToggle-66a802f1.js → ExpandToggle-af224c1e.js} +2 -2
- package/dist/esm/{Heading-0793af93.js → Heading-d5f1710a.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +19 -9
- package/dist/esm/calcite-action-bar.entry.js +8 -15
- package/dist/esm/calcite-action-group.entry.js +3 -3
- package/dist/esm/calcite-action-menu.entry.js +5 -5
- package/dist/esm/calcite-action-pad.entry.js +7 -17
- package/dist/esm/calcite-action.entry.js +9 -4
- package/dist/esm/calcite-alert.entry.js +2 -2
- package/dist/esm/calcite-avatar.entry.js +2 -2
- package/dist/esm/calcite-block_2.entry.js +34 -17
- package/dist/esm/calcite-button.entry.js +14 -16
- package/dist/esm/calcite-card.entry.js +3 -3
- package/dist/esm/calcite-checkbox.entry.js +9 -5
- package/dist/esm/calcite-chip.entry.js +3 -3
- package/dist/esm/calcite-color-picker_3.entry.js +19 -6
- package/dist/esm/calcite-combobox_3.entry.js +41 -37
- package/dist/esm/calcite-date-picker_4.entry.js +16 -9
- package/dist/esm/calcite-dropdown_3.entry.js +60 -38
- package/dist/esm/calcite-fab.entry.js +12 -3
- package/dist/esm/calcite-filter.entry.js +38 -5
- package/dist/esm/calcite-flow.entry.js +2 -2
- package/dist/esm/calcite-graph_2.entry.js +34 -32
- package/dist/esm/calcite-handle.entry.js +2 -2
- package/dist/esm/calcite-icon.entry.js +2 -2
- package/dist/esm/calcite-inline-editable.entry.js +13 -11
- package/dist/esm/calcite-input-date-picker.entry.js +34 -14
- package/dist/esm/calcite-input-message.entry.js +2 -2
- package/dist/esm/calcite-input-time-picker_2.entry.js +55 -10
- package/dist/esm/calcite-input.entry.js +11 -7
- package/dist/esm/calcite-label.entry.js +17 -4
- package/dist/esm/calcite-link.entry.js +10 -16
- package/dist/esm/calcite-list_3.entry.js +34 -8
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +3 -3
- package/dist/esm/calcite-notice.entry.js +3 -3
- package/dist/esm/calcite-option_3.entry.js +11 -7
- package/dist/esm/calcite-pagination.entry.js +2 -2
- package/dist/esm/calcite-panel.entry.js +16 -7
- package/dist/esm/calcite-pick-list_3.entry.js +16 -22
- package/dist/esm/calcite-popover_2.entry.js +14 -9
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm/calcite-radio-button.entry.js +9 -5
- package/dist/esm/calcite-radio-group_2.entry.js +11 -7
- package/dist/esm/calcite-rating.entry.js +14 -8
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +5 -5
- package/dist/esm/calcite-sortable-list.entry.js +7 -3
- package/dist/esm/calcite-split-button.entry.js +27 -4
- package/dist/esm/calcite-stepper_2.entry.js +9 -5
- package/dist/esm/calcite-switch.entry.js +9 -12
- package/dist/esm/calcite-tab_4.entry.js +13 -10
- package/dist/esm/calcite-tile-select_2.entry.js +20 -5
- package/dist/esm/calcite-tile.entry.js +8 -4
- package/dist/esm/calcite-tip_3.entry.js +6 -6
- package/dist/esm/calcite-tooltip_2.entry.js +11 -7
- package/dist/esm/calcite-tree_2.entry.js +63 -59
- package/dist/esm/calcite-value-list_2.entry.js +19 -11
- package/dist/esm/calcite.js +3 -3
- package/dist/esm/{conditionalSlot-9e7d8609.js → conditionalSlot-67f579ff.js} +1 -1
- package/dist/esm/{form-f90706b4.js → form-5e4609eb.js} +1 -1
- package/dist/esm/{index-9de00868.js → index-bd94948c.js} +27 -1
- package/dist/esm/interactive-48b5cc0f.js +42 -0
- package/dist/esm/{label-2bffc9f4.js → label-68f22660.js} +39 -7
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{popper-ae231554.js → popper-da45ec93.js} +16 -3
- package/dist/esm/{resources-d6b3fa76.js → resources-73dac782.js} +1 -1
- package/dist/esm/{resources-e171d56b.js → resources-b5c3d9a7.js} +45 -11
- package/dist/esm-es5/{ExpandToggle-66a802f1.js → ExpandToggle-af224c1e.js} +1 -1
- package/dist/esm-es5/{Heading-0793af93.js → Heading-d5f1710a.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
- package/dist/esm-es5/calcite-action.entry.js +1 -1
- package/dist/esm-es5/calcite-alert.entry.js +1 -1
- package/dist/esm-es5/calcite-avatar.entry.js +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-button.entry.js +1 -1
- package/dist/esm-es5/calcite-card.entry.js +1 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
- package/dist/esm-es5/calcite-chip.entry.js +1 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +2 -2
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm-es5/calcite-fab.entry.js +2 -2
- package/dist/esm-es5/calcite-filter.entry.js +1 -1
- package/dist/esm-es5/calcite-flow.entry.js +1 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-handle.entry.js +1 -1
- package/dist/esm-es5/calcite-icon.entry.js +1 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm-es5/calcite-input-message.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
- package/dist/esm-es5/calcite-input.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +1 -1
- package/dist/esm-es5/calcite-link.entry.js +2 -2
- package/dist/esm-es5/calcite-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-loader.entry.js +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +1 -1
- package/dist/esm-es5/calcite-notice.entry.js +1 -1
- package/dist/esm-es5/calcite-option_3.entry.js +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
- package/dist/esm-es5/calcite-progress.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
- package/dist/esm-es5/calcite-rating.entry.js +2 -2
- package/dist/esm-es5/calcite-scrim.entry.js +1 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
- package/dist/esm-es5/calcite-split-button.entry.js +1 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
- package/dist/esm-es5/calcite-switch.entry.js +1 -1
- package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/{conditionalSlot-9e7d8609.js → conditionalSlot-67f579ff.js} +1 -1
- package/dist/esm-es5/dom-e7fa77b9.js +2 -2
- package/dist/esm-es5/{form-f90706b4.js → form-5e4609eb.js} +1 -1
- package/dist/esm-es5/index-bd94948c.js +5 -0
- package/dist/esm-es5/interactive-48b5cc0f.js +5 -0
- package/dist/esm-es5/label-68f22660.js +5 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/popper-da45ec93.js +5 -0
- package/dist/esm-es5/resources-73dac782.js +5 -0
- package/dist/esm-es5/resources-b5c3d9a7.js +5 -0
- package/dist/esm-es5/utils-e84055a3.js +1 -1
- package/dist/extras/docs-json.json +150 -47
- package/dist/types/components/accordion-item/accordion-item.d.ts +1 -0
- package/dist/types/components/action/action.d.ts +3 -1
- package/dist/types/components/action-bar/action-bar.d.ts +1 -1
- package/dist/types/components/action-menu/action-menu.d.ts +2 -3
- package/dist/types/components/action-pad/action-pad.d.ts +0 -1
- package/dist/types/components/block/block.d.ts +4 -1
- package/dist/types/components/block-section/block-section.d.ts +1 -0
- package/dist/types/components/button/button.d.ts +3 -4
- package/dist/types/components/checkbox/checkbox.d.ts +3 -1
- package/dist/types/components/color-picker/color-picker.d.ts +9 -1
- package/dist/types/components/combobox/combobox.d.ts +9 -5
- package/dist/types/components/combobox/resources.d.ts +0 -1
- package/dist/types/components/combobox-item/combobox-item.d.ts +3 -1
- package/dist/types/components/date-picker-day/date-picker-day.d.ts +4 -1
- package/dist/types/components/dropdown/dropdown.d.ts +11 -4
- package/dist/types/components/dropdown/interfaces.d.ts +0 -2
- package/dist/types/components/dropdown/resources.d.ts +0 -1
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +2 -0
- package/dist/types/components/fab/fab.d.ts +3 -1
- package/dist/types/components/filter/filter.d.ts +5 -2
- package/dist/types/components/inline-editable/inline-editable.d.ts +4 -1
- package/dist/types/components/input/input.d.ts +3 -1
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +9 -2
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +5 -1
- package/dist/types/components/label/label.d.ts +7 -1
- package/dist/types/components/link/link.d.ts +3 -5
- package/dist/types/components/list/list.d.ts +7 -1
- package/dist/types/components/list-item/list-item.d.ts +3 -1
- package/dist/types/components/panel/panel.d.ts +3 -1
- package/dist/types/components/pick-list/pick-list.d.ts +3 -1
- package/dist/types/components/pick-list/shared-list-logic.d.ts +1 -0
- package/dist/types/components/pick-list-item/pick-list-item.d.ts +4 -2
- package/dist/types/components/popover/popover.d.ts +3 -3
- package/dist/types/components/popover/resources.d.ts +1 -0
- package/dist/types/components/radio-button/radio-button.d.ts +3 -1
- package/dist/types/components/radio-group/radio-group.d.ts +3 -1
- package/dist/types/components/rating/rating.d.ts +3 -1
- package/dist/types/components/select/select.d.ts +3 -1
- package/dist/types/components/slider/slider.d.ts +4 -3
- package/dist/types/components/sortable-list/sortable-list.d.ts +3 -1
- package/dist/types/components/split-button/split-button.d.ts +5 -1
- package/dist/types/components/stepper-item/stepper-item.d.ts +3 -1
- package/dist/types/components/switch/switch.d.ts +3 -4
- package/dist/types/components/tab-title/tab-title.d.ts +3 -1
- package/dist/types/components/tile/tile.d.ts +3 -1
- package/dist/types/components/tile-select/tile-select.d.ts +3 -1
- package/dist/types/components/tile-select-group/tile-select-group.d.ts +6 -1
- package/dist/types/components/time-picker/resources.d.ts +1 -0
- package/dist/types/components/time-picker/time-picker.d.ts +2 -0
- package/dist/types/components/tree/tree.d.ts +1 -0
- package/dist/types/components/value-list/value-list.d.ts +4 -1
- package/dist/types/components/value-list-item/value-list-item.d.ts +4 -2
- package/dist/types/components.d.ts +86 -37
- package/dist/types/preact.d.ts +90 -90
- package/dist/types/utils/interactive.d.ts +28 -0
- package/dist/types/utils/label.d.ts +3 -1
- package/dist/types/utils/popper.d.ts +8 -1
- package/dist/types/utils/time.d.ts +1 -0
- package/hydrate/index.js +746 -346
- package/package.json +29 -30
- package/readme.md +2 -2
- package/dist/calcite/p-0119b1c4.entry.js +0 -5
- package/dist/calcite/p-04bf684c.entry.js +0 -5
- package/dist/calcite/p-050a406e.entry.js +0 -5
- package/dist/calcite/p-0db51b2f.entry.js +0 -5
- package/dist/calcite/p-10b1b39a.system.entry.js +0 -5
- package/dist/calcite/p-13cbacc6.system.entry.js +0 -5
- package/dist/calcite/p-141c978b.system.entry.js +0 -5
- package/dist/calcite/p-14bac901.system.entry.js +0 -5
- package/dist/calcite/p-153af136.entry.js +0 -5
- package/dist/calcite/p-1a1dd9b6.system.entry.js +0 -5
- package/dist/calcite/p-1a3a366d.system.js +0 -5
- package/dist/calcite/p-1c0b4e1a.system.entry.js +0 -5
- package/dist/calcite/p-2218fef5.entry.js +0 -5
- package/dist/calcite/p-22ad05e8.entry.js +0 -5
- package/dist/calcite/p-26aea1cb.system.js +0 -5
- package/dist/calcite/p-288bc438.system.js +0 -5
- package/dist/calcite/p-2aea5398.entry.js +0 -5
- package/dist/calcite/p-2e29554c.js +0 -5
- package/dist/calcite/p-301ee662.system.entry.js +0 -5
- package/dist/calcite/p-307c74d9.system.entry.js +0 -5
- package/dist/calcite/p-374c3c70.entry.js +0 -5
- package/dist/calcite/p-3970879d.system.entry.js +0 -5
- package/dist/calcite/p-39f8d232.entry.js +0 -5
- package/dist/calcite/p-40c3d7a6.system.entry.js +0 -5
- package/dist/calcite/p-444e31b1.entry.js +0 -5
- package/dist/calcite/p-448ee714.entry.js +0 -5
- package/dist/calcite/p-44aa1db4.system.js +0 -5
- package/dist/calcite/p-46b6888c.entry.js +0 -5
- package/dist/calcite/p-479f8f07.entry.js +0 -5
- package/dist/calcite/p-49782820.entry.js +0 -5
- package/dist/calcite/p-49992d49.entry.js +0 -5
- package/dist/calcite/p-5007d2f5.entry.js +0 -5
- package/dist/calcite/p-52f03db0.entry.js +0 -5
- package/dist/calcite/p-53220585.system.entry.js +0 -5
- package/dist/calcite/p-570074bd.entry.js +0 -5
- package/dist/calcite/p-5a77fd17.entry.js +0 -5
- package/dist/calcite/p-5ac1f5fb.system.entry.js +0 -5
- package/dist/calcite/p-5f41045a.entry.js +0 -5
- package/dist/calcite/p-631e416a.system.js +0 -5
- package/dist/calcite/p-655c4dfd.entry.js +0 -5
- package/dist/calcite/p-65c30ccd.entry.js +0 -5
- package/dist/calcite/p-668c5e70.js +0 -5
- package/dist/calcite/p-66ca7309.entry.js +0 -5
- package/dist/calcite/p-6a2ac09a.system.entry.js +0 -5
- package/dist/calcite/p-6a9e2249.system.entry.js +0 -5
- package/dist/calcite/p-6eb1302b.entry.js +0 -5
- package/dist/calcite/p-7415264e.system.entry.js +0 -5
- package/dist/calcite/p-786b8250.entry.js +0 -5
- package/dist/calcite/p-7d4316a1.system.entry.js +0 -5
- package/dist/calcite/p-82d85d32.system.entry.js +0 -5
- package/dist/calcite/p-838a07fc.system.entry.js +0 -5
- package/dist/calcite/p-8456e717.system.entry.js +0 -5
- package/dist/calcite/p-869eb8f9.entry.js +0 -5
- package/dist/calcite/p-86b63ebb.system.entry.js +0 -5
- package/dist/calcite/p-89cb9df8.system.entry.js +0 -5
- package/dist/calcite/p-916a0f28.system.js +0 -5
- package/dist/calcite/p-9a7c4812.js +0 -5
- package/dist/calcite/p-9aaeb1df.entry.js +0 -5
- package/dist/calcite/p-9ae39d7f.entry.js +0 -5
- package/dist/calcite/p-9c7544ce.entry.js +0 -5
- package/dist/calcite/p-9ca6c750.system.entry.js +0 -5
- package/dist/calcite/p-9eb4062a.entry.js +0 -5
- package/dist/calcite/p-a5b366e8.entry.js +0 -5
- package/dist/calcite/p-a5e0e140.entry.js +0 -5
- package/dist/calcite/p-a61df17c.entry.js +0 -5
- package/dist/calcite/p-a85634a1.system.entry.js +0 -5
- package/dist/calcite/p-aceeb62f.entry.js +0 -5
- package/dist/calcite/p-b4a23fdf.entry.js +0 -5
- package/dist/calcite/p-bde80af8.entry.js +0 -5
- package/dist/calcite/p-be231b84.entry.js +0 -5
- package/dist/calcite/p-be265e63.entry.js +0 -5
- package/dist/calcite/p-be87f022.system.entry.js +0 -5
- package/dist/calcite/p-c1c37da9.entry.js +0 -5
- package/dist/calcite/p-c27e520c.entry.js +0 -5
- package/dist/calcite/p-c5463268.system.entry.js +0 -5
- package/dist/calcite/p-caad6f3c.entry.js +0 -5
- package/dist/calcite/p-cb33659b.system.entry.js +0 -5
- package/dist/calcite/p-cb3a8861.entry.js +0 -5
- package/dist/calcite/p-cfcb2161.entry.js +0 -5
- package/dist/calcite/p-d2bcb3ae.entry.js +0 -5
- package/dist/calcite/p-d6f6b6c1.entry.js +0 -5
- package/dist/calcite/p-d86f287b.entry.js +0 -5
- package/dist/calcite/p-d9499121.system.entry.js +0 -5
- package/dist/calcite/p-dcfb3261.system.entry.js +0 -5
- package/dist/calcite/p-dd8b6d4f.system.entry.js +0 -5
- package/dist/calcite/p-e2047621.system.js +0 -5
- package/dist/calcite/p-e3e09c27.entry.js +0 -5
- package/dist/calcite/p-e3f19c5f.system.entry.js +0 -5
- package/dist/calcite/p-e469c1bc.entry.js +0 -5
- package/dist/calcite/p-e5420c67.entry.js +0 -5
- package/dist/calcite/p-e5e29b32.system.entry.js +0 -5
- package/dist/calcite/p-e66c335c.entry.js +0 -5
- package/dist/calcite/p-e7779d97.js +0 -5
- package/dist/calcite/p-e83a5fe4.system.entry.js +0 -5
- package/dist/calcite/p-e8e0f3b7.js +0 -5
- package/dist/calcite/p-ea510477.js +0 -5
- package/dist/calcite/p-ee124c9a.system.entry.js +0 -5
- package/dist/calcite/p-eeb91710.js +0 -5
- package/dist/calcite/p-f01b987c.entry.js +0 -5
- package/dist/calcite/p-f4d9c369.system.entry.js +0 -5
- package/dist/calcite/p-f5739197.entry.js +0 -5
- package/dist/calcite/p-f6b0747a.system.entry.js +0 -5
- package/dist/calcite/p-f763b1e7.system.entry.js +0 -5
- package/dist/calcite/p-f908d72a.system.entry.js +0 -5
- package/dist/calcite/p-f974ab2f.entry.js +0 -5
- package/dist/calcite/p-fb948ef5.system.entry.js +0 -5
- package/dist/calcite/p-fc122064.entry.js +0 -5
- package/dist/calcite/p-fdd3ea5e.entry.js +0 -5
- package/dist/calcite/p-fee9511c.system.entry.js +0 -5
- package/dist/esm-es5/index-9de00868.js +0 -5
- package/dist/esm-es5/label-2bffc9f4.js +0 -5
- package/dist/esm-es5/popper-ae231554.js +0 -5
- package/dist/esm-es5/resources-d6b3fa76.js +0 -5
- package/dist/esm-es5/resources-e171d56b.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M8.093 15H3v-3.5A3.504 3.504 0 0 1 6.5 8h3a3.46 3.46 0 0 1 .858.119 1.999 1.999 0 0 0-.993.538L9.022 9H6.5A2.503 2.503 0 0 0 4 11.5V14h4.5a1.977 1.977 0 0 0-.407 1zM10.8 4A2.8 2.8 0 1 0 8 6.8 2.803 2.803 0 0 0 10.8 4zm-.933 0A1.867 1.867 0 1 1 8 2.133 1.869 1.869 0 0 1 9.867 4zm6.061 6.879l-.707-.707L13 12.292l-2.221-2.22-.707.707L12.292 13l-2.22 2.221.707.707L13 13.708l2.221 2.22.707-.707L13.708 13z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M12 1.2A4.8 4.8 0 1 0 16.8 6 4.805 4.805 0 0 0 12 1.2zm0 8.6A3.8 3.8 0 1 1 15.8 6 3.804 3.804 0 0 1 12 9.8zM11.996 22H4v-4.5A5.507 5.507 0 0 1 9.5 12h5a5.499 5.499 0 0 1 4.562 2.43c-.05.041-.102.075-.147.12l-.597.597A4.488 4.488 0 0 0 14.5 13h-5A4.505 4.505 0 0 0 5 17.5V21h7.48a1.984 1.984 0 0 0-.484 1zm1.968.328l2.83-2.829-2.829-2.828.707-.707 2.828 2.829 2.828-2.829.707.708-2.828 2.828 2.829 2.828-.707.707-2.828-2.829-2.83 2.83z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M16 13.8A5.8 5.8 0 1 1 21.8 8a5.806 5.806 0 0 1-5.8 5.8zm0-10.6A4.8 4.8 0 1 0 20.8 8 4.805 4.805 0 0 0 16 3.2zM7 28v-6.5a5.507 5.507 0 0 1 5.5-5.5h7a5.488 5.488 0 0 1 5.263 3.995l.79-.79A6.488 6.488 0 0 0 19.5 15h-7a6.499 6.499 0 0 0-6.49 6.5L6 29h12a1.992 1.992 0 0 1-.255-1zm13.664 1.043l3.837-3.837 3.835 3.836.707-.706-3.836-3.836 3.836-3.836-.707-.707-3.836 3.836-3.836-3.836-.706.707 3.836 3.835-3.837 3.837z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M1.5 11a1.5 1.5 0 0 0 1.47-1.8l2.58-1.548a1.487 1.487 0 0 0 .45.256v5.184a1.5 1.5 0 1 0 1 0V7.908A1.495 1.495 0 0 0 7.908 7h2.184a1.494 1.494 0 0 0 1.38.997l1.108 3.326a1.495 1.495 0 1 0 .948-.32L12.42 7.677a1.478 1.478 0 0 0 .233-2.126L14.2 2.97A1.5 1.5 0 1 0 13 1.5a1.486 1.486 0 0 0 .347.95L11.8 5.03a1.492 1.492 0 0 0-1.707.97H7.908a1.497 1.497 0 0 0-2.878.8L2.45 8.347A1.497 1.497 0 1 0 1.5 11zM7 14.5v.5H6v-1h1zm7-2.5v1h-1v-1h1zm0-11h1v1h-1V1zm-2.783 5H12v1h-1V6zM6 6h1v1H6V6zM1 9.5V9h1v1H1zm2-8A1.5 1.5 0 1 0 1.5 3 1.5 1.5 0 0 0 3 1.5zm-1 0V2H1V1h1zM1 14h1v1H1zm1-1H1v-1h1zM1 6h1v1H1zm1-1H1V4h1z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M5 9H4V8h1zm-1 2h1v-1H4zm0 8h1v-1H4zm0 2h1v-1H4zM2.734 2.734A2.497 2.497 0 1 1 2.002 4.5a2.49 2.49 0 0 1 .732-1.766zM3 4.5a1.502 1.502 0 1 0 .44-1.06A1.495 1.495 0 0 0 3 4.5zm19.266 12.234a2.543 2.543 0 1 1-2.926-.434l-.962-3.315A2.478 2.478 0 0 1 16.053 11H13.95A2.5 2.5 0 0 1 12 12.95v4.103a2.497 2.497 0 1 1-1 0V12.95a2.495 2.495 0 0 1-1.268-.682c-.037-.038-.066-.083-.101-.123l-2.768 1.581a2.46 2.46 0 1 1-.597-.992c.038.037.066.083.101.123l2.768-1.582A2.494 2.494 0 1 1 13.95 10h2.103A2.498 2.498 0 0 1 18.5 8.002a2.457 2.457 0 0 1 .295.03l.46-1.376A2.494 2.494 0 0 1 20.5 2a2.504 2.504 0 0 1 1.763 4.267 2.293 2.293 0 0 1-2.06.703l-.458 1.377a2.479 2.479 0 0 1-.37 4.484l.927 3.191c.066-.005.13-.02.198-.02a2.49 2.49 0 0 1 1.766.732zM20.5 6a1.502 1.502 0 1 0-1.06-.44A1.495 1.495 0 0 0 20.5 6zM5.56 13.44A1.498 1.498 0 1 0 6 14.5a1.496 1.496 0 0 0-.44-1.06zM11.5 18a1.502 1.502 0 1 0 1.06.44A1.496 1.496 0 0 0 11.5 18zm1.5-7.5a1.502 1.502 0 1 0-.44 1.06A1.495 1.495 0 0 0 13 10.5zm5.5 1.5a1.502 1.502 0 1 0-1.06-.44 1.495 1.495 0 0 0 1.06.44zm3.5 6.5a1.502 1.502 0 1 0-.44 1.06A1.495 1.495 0 0 0 22 18.5z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M5.5 10a3.504 3.504 0 1 0-2.474-1.026A3.486 3.486 0 0 0 5.5 10zm0-6a2.502 2.502 0 1 1-1.767.733A2.492 2.492 0 0 1 5.5 4zm20 17c-.116 0-.225.023-.338.034l-.777-3.161a3.474 3.474 0 0 0 .632-6.513l.617-1.481a3.472 3.472 0 1 0-1.608-.905 3.515 3.515 0 0 0 .686.518l-.652 1.565A3.46 3.46 0 0 0 20.05 14h-2.1a3.49 3.49 0 1 0-6.507 2.17l-3.246 2.129c-.074-.091-.141-.19-.224-.273a3.499 3.499 0 1 0 .752 1.12l3.306-2.169A3.487 3.487 0 0 0 14 17.95v5.102a3.528 3.528 0 1 0 1 0V17.95A3.435 3.435 0 0 0 17.95 15h2.1a3.453 3.453 0 0 0 3.334 2.988l.804 3.271A3.48 3.48 0 1 0 25.5 21zm1-17a2.502 2.502 0 1 1-1.767.733A2.492 2.492 0 0 1 26.5 4zM8 20.5a2.502 2.502 0 1 1-.733-1.767A2.492 2.492 0 0 1 8 20.5zm13-6a2.502 2.502 0 1 1 .733 1.767A2.492 2.492 0 0 1 21 14.5zm-4 0a2.502 2.502 0 1 1-.733-1.767A2.492 2.492 0 0 1 17 14.5zM14.5 29a2.502 2.502 0 1 1 1.767-.733A2.492 2.492 0 0 1 14.5 29zm11-2a2.5 2.5 0 1 1 1.768-.732A2.492 2.492 0 0 1 25.5 27zM6 12H5v-1h1zm0 2H5v-1h1zm-1 1h1v1H5zm0 10h1v1H5zm0 2h1v1H5zm0 2h1v1H5z"
|
|
@@ -116,6 +116,18 @@
|
|
|
116
116
|
display: flex;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
:host([disabled]) {
|
|
120
|
+
pointer-events: none;
|
|
121
|
+
cursor: default;
|
|
122
|
+
-webkit-user-select: none;
|
|
123
|
+
user-select: none;
|
|
124
|
+
opacity: var(--calcite-ui-opacity-disabled);
|
|
125
|
+
}
|
|
119
126
|
:host([disabled]) .cancel-editing-button-wrapper {
|
|
120
127
|
border-color: var(--calcite-ui-border-2);
|
|
128
|
+
}
|
|
129
|
+
:host([disabled]) ::slotted([calcite-hydrated][disabled]),
|
|
130
|
+
:host([disabled]) [calcite-hydrated][disabled] {
|
|
131
|
+
/* prevent opacity stacking */
|
|
132
|
+
opacity: 1;
|
|
121
133
|
}
|
|
@@ -7,6 +7,7 @@ import { getElementProp, getSlotted } from "../../utils/dom";
|
|
|
7
7
|
import { TEXT, CSS } from "./resources";
|
|
8
8
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
9
9
|
import { createObserver } from "../../utils/observers";
|
|
10
|
+
import { updateHostInteraction } from "../../utils/interactive";
|
|
10
11
|
/**
|
|
11
12
|
* @slot - A slot for adding a `calcite-input`.
|
|
12
13
|
*/
|
|
@@ -70,7 +71,6 @@ export class InlineEditable {
|
|
|
70
71
|
}
|
|
71
72
|
if (!!e.shiftKey && e.target === this.cancelEditingButton) {
|
|
72
73
|
e.preventDefault();
|
|
73
|
-
e.stopPropagation();
|
|
74
74
|
(_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -80,22 +80,21 @@ export class InlineEditable {
|
|
|
80
80
|
};
|
|
81
81
|
this.cancelEditingHandler = async (e) => {
|
|
82
82
|
e.preventDefault();
|
|
83
|
-
e.stopPropagation();
|
|
84
83
|
this.cancelEditing();
|
|
85
84
|
};
|
|
86
85
|
this.enableEditingHandler = async (e) => {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
if (this.disabled ||
|
|
87
|
+
e.target === this.cancelEditingButton ||
|
|
88
|
+
e.target === this.confirmEditingButton) {
|
|
90
89
|
return;
|
|
91
90
|
}
|
|
91
|
+
e.preventDefault();
|
|
92
92
|
if (!this.editingEnabled) {
|
|
93
93
|
this.enableEditing();
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
this.confirmChangesHandler = async (e) => {
|
|
97
97
|
e.preventDefault();
|
|
98
|
-
e.stopPropagation();
|
|
99
98
|
this.calciteInlineEditableEditConfirm.emit();
|
|
100
99
|
try {
|
|
101
100
|
if (this.afterConfirm) {
|
|
@@ -141,6 +140,9 @@ export class InlineEditable {
|
|
|
141
140
|
disconnectLabel(this);
|
|
142
141
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
143
142
|
}
|
|
143
|
+
componentDidRender() {
|
|
144
|
+
updateHostInteraction(this);
|
|
145
|
+
}
|
|
144
146
|
render() {
|
|
145
147
|
return (h("div", { class: CSS.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd },
|
|
146
148
|
h("div", { class: CSS.inputWrapper },
|
|
@@ -153,7 +155,7 @@ export class InlineEditable {
|
|
|
153
155
|
this.shouldShowControls && [
|
|
154
156
|
h("div", { class: CSS.cancelEditingButtonWrapper },
|
|
155
157
|
h("calcite-button", { appearance: "transparent", class: CSS.cancelEditingButton, color: "neutral", disabled: this.disabled, iconStart: "x", label: this.intlCancelEditing, onClick: this.cancelEditingHandler, ref: (el) => (this.cancelEditingButton = el), scale: this.scale, type: "button" })),
|
|
156
|
-
h("calcite-button", { appearance: "solid", class: CSS.confirmChangesButton, color: "blue", disabled: this.disabled, iconStart: "check", label: this.intlConfirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, scale: this.scale, type: "button" })
|
|
158
|
+
h("calcite-button", { appearance: "solid", class: CSS.confirmChangesButton, color: "blue", disabled: this.disabled, iconStart: "check", label: this.intlConfirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, ref: (el) => (this.confirmEditingButton = el), scale: this.scale, type: "button" })
|
|
157
159
|
])));
|
|
158
160
|
}
|
|
159
161
|
//--------------------------------------------------------------------------
|
|
@@ -172,18 +172,19 @@
|
|
|
172
172
|
|
|
173
173
|
:host([disabled]) {
|
|
174
174
|
pointer-events: none;
|
|
175
|
+
cursor: default;
|
|
176
|
+
-webkit-user-select: none;
|
|
177
|
+
user-select: none;
|
|
175
178
|
opacity: var(--calcite-ui-opacity-disabled);
|
|
176
179
|
}
|
|
177
|
-
:host([disabled]) .wrapper {
|
|
178
|
-
pointer-events: none;
|
|
179
|
-
--tw-text-opacity: var(--calcite-ui-opacity-disabled);
|
|
180
|
-
}
|
|
181
|
-
:host([disabled]) button, :host([disabled]) textarea, :host([disabled]) input {
|
|
182
|
-
pointer-events: none;
|
|
183
|
-
}
|
|
184
180
|
:host([disabled]) textarea {
|
|
185
181
|
resize: none;
|
|
186
182
|
}
|
|
183
|
+
:host([disabled]) ::slotted([calcite-hydrated][disabled]),
|
|
184
|
+
:host([disabled]) [calcite-hydrated][disabled] {
|
|
185
|
+
/* prevent opacity stacking */
|
|
186
|
+
opacity: 1;
|
|
187
|
+
}
|
|
187
188
|
|
|
188
189
|
:host textarea,
|
|
189
190
|
:host input {
|
|
@@ -13,6 +13,7 @@ import { isValidNumber, parseNumberString, sanitizeNumberString } from "../../ut
|
|
|
13
13
|
import { CSS_UTILITY, TEXT } from "../../utils/resources";
|
|
14
14
|
import { decimalPlaces } from "../../utils/math";
|
|
15
15
|
import { createObserver } from "../../utils/observers";
|
|
16
|
+
import { updateHostInteraction } from "../../utils/interactive";
|
|
16
17
|
/**
|
|
17
18
|
* @slot action - A slot for positioning a button next to an input
|
|
18
19
|
*/
|
|
@@ -289,7 +290,7 @@ export class Input {
|
|
|
289
290
|
const newLocalizedValue = this.type === "number"
|
|
290
291
|
? localizeNumberString(newValue, this.locale, this.groupSeparator)
|
|
291
292
|
: "";
|
|
292
|
-
this.internalValueChange = origin === "internal";
|
|
293
|
+
this.internalValueChange = origin === "internal" && this.value !== newValue;
|
|
293
294
|
this.setPreviousValue(this.value);
|
|
294
295
|
this.value = newValue;
|
|
295
296
|
if (this.type === "number") {
|
|
@@ -334,7 +335,7 @@ export class Input {
|
|
|
334
335
|
if (!this.internalValueChange) {
|
|
335
336
|
this.setValue({
|
|
336
337
|
origin: "external",
|
|
337
|
-
value: newValue == null
|
|
338
|
+
value: newValue == null || newValue == ""
|
|
338
339
|
? ""
|
|
339
340
|
: this.type === "number"
|
|
340
341
|
? isValidNumber(newValue)
|
|
@@ -403,6 +404,9 @@ export class Input {
|
|
|
403
404
|
}
|
|
404
405
|
return true;
|
|
405
406
|
}
|
|
407
|
+
componentDidRender() {
|
|
408
|
+
updateHostInteraction(this);
|
|
409
|
+
}
|
|
406
410
|
//--------------------------------------------------------------------------
|
|
407
411
|
//
|
|
408
412
|
// Public Methods
|
|
@@ -104,32 +104,18 @@
|
|
|
104
104
|
--tw-shadow-colored: 0 0 #0000;
|
|
105
105
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
106
106
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
opacity:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
transform: translateY(-5px);
|
|
119
|
-
}
|
|
120
|
-
:host .menu-container[data-popper-placement^=top] .calcite-popper-anim {
|
|
121
|
-
transform: translateY(5px);
|
|
122
|
-
}
|
|
123
|
-
:host .menu-container[data-popper-placement^=left] .calcite-popper-anim {
|
|
124
|
-
transform: translateX(5px);
|
|
125
|
-
}
|
|
126
|
-
:host .menu-container[data-popper-placement^=right] .calcite-popper-anim {
|
|
127
|
-
transform: translateX(-5px);
|
|
128
|
-
}
|
|
129
|
-
:host .menu-container[data-popper-placement] .calcite-popper-anim--active {
|
|
107
|
+
|
|
108
|
+
:host([disabled]) {
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
cursor: default;
|
|
111
|
+
-webkit-user-select: none;
|
|
112
|
+
user-select: none;
|
|
113
|
+
opacity: var(--calcite-ui-opacity-disabled);
|
|
114
|
+
}
|
|
115
|
+
:host([disabled]) ::slotted([calcite-hydrated][disabled]),
|
|
116
|
+
:host([disabled]) [calcite-hydrated][disabled] {
|
|
117
|
+
/* prevent opacity stacking */
|
|
130
118
|
opacity: 1;
|
|
131
|
-
visibility: visible;
|
|
132
|
-
transform: translate(0);
|
|
133
119
|
}
|
|
134
120
|
|
|
135
121
|
.calendar-picker-wrapper {
|
|
@@ -205,13 +191,69 @@
|
|
|
205
191
|
position: absolute;
|
|
206
192
|
z-index: 900;
|
|
207
193
|
transform: scale(0);
|
|
194
|
+
visibility: hidden;
|
|
208
195
|
pointer-events: none;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.menu-container .calcite-popper-anim {
|
|
199
|
+
position: relative;
|
|
200
|
+
z-index: 1;
|
|
201
|
+
transition: var(--calcite-popper-transition);
|
|
209
202
|
visibility: hidden;
|
|
203
|
+
transition-property: transform, visibility, opacity;
|
|
204
|
+
opacity: 0;
|
|
205
|
+
box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.16);
|
|
206
|
+
border-radius: 0.25rem;
|
|
207
|
+
}
|
|
208
|
+
.menu-container[data-popper-placement^=bottom] .calcite-popper-anim {
|
|
209
|
+
transform: translateY(-5px);
|
|
210
|
+
}
|
|
211
|
+
.menu-container[data-popper-placement^=top] .calcite-popper-anim {
|
|
212
|
+
transform: translateY(5px);
|
|
213
|
+
}
|
|
214
|
+
.menu-container[data-popper-placement^=left] .calcite-popper-anim {
|
|
215
|
+
transform: translateX(5px);
|
|
216
|
+
}
|
|
217
|
+
.menu-container[data-popper-placement^=right] .calcite-popper-anim {
|
|
218
|
+
transform: translateX(-5px);
|
|
219
|
+
}
|
|
220
|
+
.menu-container[data-popper-placement] .calcite-popper-anim--active {
|
|
221
|
+
opacity: 1;
|
|
222
|
+
visibility: visible;
|
|
223
|
+
transform: translate(0);
|
|
210
224
|
}
|
|
211
225
|
|
|
212
226
|
:host([active]) .menu-container {
|
|
213
|
-
pointer-events:
|
|
227
|
+
pointer-events: initial;
|
|
228
|
+
visibility: visible;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.menu-container--active .menu-container .calcite-popper-anim {
|
|
232
|
+
position: relative;
|
|
233
|
+
z-index: 1;
|
|
234
|
+
transition: var(--calcite-popper-transition);
|
|
235
|
+
visibility: hidden;
|
|
236
|
+
transition-property: transform, visibility, opacity;
|
|
237
|
+
opacity: 0;
|
|
238
|
+
box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.16);
|
|
239
|
+
border-radius: 0.25rem;
|
|
240
|
+
}
|
|
241
|
+
.menu-container--active .menu-container[data-popper-placement^=bottom] .calcite-popper-anim {
|
|
242
|
+
transform: translateY(-5px);
|
|
243
|
+
}
|
|
244
|
+
.menu-container--active .menu-container[data-popper-placement^=top] .calcite-popper-anim {
|
|
245
|
+
transform: translateY(5px);
|
|
246
|
+
}
|
|
247
|
+
.menu-container--active .menu-container[data-popper-placement^=left] .calcite-popper-anim {
|
|
248
|
+
transform: translateX(5px);
|
|
249
|
+
}
|
|
250
|
+
.menu-container--active .menu-container[data-popper-placement^=right] .calcite-popper-anim {
|
|
251
|
+
transform: translateX(-5px);
|
|
252
|
+
}
|
|
253
|
+
.menu-container--active .menu-container[data-popper-placement] .calcite-popper-anim--active {
|
|
254
|
+
opacity: 1;
|
|
214
255
|
visibility: visible;
|
|
256
|
+
transform: translate(0);
|
|
215
257
|
}
|
|
216
258
|
|
|
217
259
|
.input .calcite-input__wrapper {
|
|
@@ -8,8 +8,8 @@ import { dateFromRange, inRange, dateFromISO, dateToISO, parseDateString, sameDa
|
|
|
8
8
|
import { TEXT } from "../date-picker/resources";
|
|
9
9
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
10
10
|
import { connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
11
|
-
import { createPopper, updatePopper, CSS as PopperCSS } from "../../utils/popper";
|
|
12
|
-
|
|
11
|
+
import { createPopper, updatePopper, CSS as PopperCSS, popperMenuFlipPlacements, defaultMenuPlacement } from "../../utils/popper";
|
|
12
|
+
import { updateHostInteraction } from "../../utils/interactive";
|
|
13
13
|
export class InputDatePicker {
|
|
14
14
|
constructor() {
|
|
15
15
|
//--------------------------------------------------------------------------
|
|
@@ -130,6 +130,11 @@ export class InputDatePicker {
|
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
+
handleDisabledChange(value) {
|
|
134
|
+
if (!value) {
|
|
135
|
+
this.active = false;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
133
138
|
valueHandler(value) {
|
|
134
139
|
if (Array.isArray(value)) {
|
|
135
140
|
this.valueAsDate = value.map((v) => dateFromISO(v));
|
|
@@ -154,7 +159,11 @@ export class InputDatePicker {
|
|
|
154
159
|
this.maxAsDate = dateFromISO(max);
|
|
155
160
|
}
|
|
156
161
|
activeHandler() {
|
|
157
|
-
this.
|
|
162
|
+
if (!this.disabled) {
|
|
163
|
+
this.reposition();
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
this.active = false;
|
|
158
167
|
}
|
|
159
168
|
//--------------------------------------------------------------------------
|
|
160
169
|
//
|
|
@@ -188,7 +197,7 @@ export class InputDatePicker {
|
|
|
188
197
|
? await updatePopper({
|
|
189
198
|
el: menuEl,
|
|
190
199
|
modifiers,
|
|
191
|
-
placement:
|
|
200
|
+
placement: defaultMenuPlacement,
|
|
192
201
|
popper
|
|
193
202
|
})
|
|
194
203
|
: this.createPopper();
|
|
@@ -235,6 +244,9 @@ export class InputDatePicker {
|
|
|
235
244
|
disconnectLabel(this);
|
|
236
245
|
disconnectForm(this);
|
|
237
246
|
}
|
|
247
|
+
componentDidRender() {
|
|
248
|
+
updateHostInteraction(this);
|
|
249
|
+
}
|
|
238
250
|
render() {
|
|
239
251
|
var _a, _b;
|
|
240
252
|
const { disabled } = this;
|
|
@@ -248,7 +260,10 @@ export class InputDatePicker {
|
|
|
248
260
|
this.localeData && (h("div", { "aria-expanded": this.active.toString(), class: "input-container", role: "application" },
|
|
249
261
|
h("div", { class: "input-wrapper", ref: this.setStartWrapper },
|
|
250
262
|
h("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", onCalciteInputBlur: this.inputBlur, onCalciteInputFocus: this.startInputFocus, onCalciteInputInput: this.inputInput, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })),
|
|
251
|
-
h("div", { "aria-hidden": (!this.active).toString(), class:
|
|
263
|
+
h("div", { "aria-hidden": (!this.active).toString(), class: {
|
|
264
|
+
"menu-container": true,
|
|
265
|
+
"menu-container--active": this.active
|
|
266
|
+
}, ref: this.setMenuEl },
|
|
252
267
|
h("div", { class: {
|
|
253
268
|
["calendar-picker-wrapper"]: true,
|
|
254
269
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
@@ -289,9 +304,13 @@ export class InputDatePicker {
|
|
|
289
304
|
enabled: true
|
|
290
305
|
};
|
|
291
306
|
flipModifier.options = {
|
|
292
|
-
fallbackPlacements:
|
|
307
|
+
fallbackPlacements: this.flipPlacements || popperMenuFlipPlacements
|
|
308
|
+
};
|
|
309
|
+
const eventListenerModifier = {
|
|
310
|
+
name: "eventListeners",
|
|
311
|
+
enabled: this.active
|
|
293
312
|
};
|
|
294
|
-
return [flipModifier];
|
|
313
|
+
return [flipModifier, eventListenerModifier];
|
|
295
314
|
}
|
|
296
315
|
createPopper() {
|
|
297
316
|
this.destroyPopper();
|
|
@@ -304,7 +323,7 @@ export class InputDatePicker {
|
|
|
304
323
|
el: menuEl,
|
|
305
324
|
modifiers,
|
|
306
325
|
overlayPositioning,
|
|
307
|
-
placement:
|
|
326
|
+
placement: defaultMenuPlacement,
|
|
308
327
|
referenceEl
|
|
309
328
|
});
|
|
310
329
|
}
|
|
@@ -488,6 +507,26 @@ export class InputDatePicker {
|
|
|
488
507
|
"attribute": "value",
|
|
489
508
|
"reflect": false
|
|
490
509
|
},
|
|
510
|
+
"flipPlacements": {
|
|
511
|
+
"type": "unknown",
|
|
512
|
+
"mutable": false,
|
|
513
|
+
"complexType": {
|
|
514
|
+
"original": "ComputedPlacement[]",
|
|
515
|
+
"resolved": "ComputedPlacement[]",
|
|
516
|
+
"references": {
|
|
517
|
+
"ComputedPlacement": {
|
|
518
|
+
"location": "import",
|
|
519
|
+
"path": "../../utils/popper"
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
"required": false,
|
|
524
|
+
"optional": true,
|
|
525
|
+
"docs": {
|
|
526
|
+
"tags": [],
|
|
527
|
+
"text": "Defines the available placements that can be used when a flip occurs."
|
|
528
|
+
}
|
|
529
|
+
},
|
|
491
530
|
"headingLevel": {
|
|
492
531
|
"type": "number",
|
|
493
532
|
"mutable": false,
|
|
@@ -953,7 +992,7 @@ export class InputDatePicker {
|
|
|
953
992
|
"docs": {
|
|
954
993
|
"tags": [{
|
|
955
994
|
"name": "see",
|
|
956
|
-
"text": "
|
|
995
|
+
"text": "[DateRangeChange](https://github.com/Esri/calcite-components/blob/master/src/components/calcite-date-picker/interfaces.ts#L1)"
|
|
957
996
|
}, {
|
|
958
997
|
"name": "deprecated",
|
|
959
998
|
"text": "use `calciteInputDatePickerChange` instead."
|
|
@@ -1058,6 +1097,9 @@ export class InputDatePicker {
|
|
|
1058
1097
|
}; }
|
|
1059
1098
|
static get elementRef() { return "el"; }
|
|
1060
1099
|
static get watchers() { return [{
|
|
1100
|
+
"propName": "disabled",
|
|
1101
|
+
"methodName": "handleDisabledChange"
|
|
1102
|
+
}, {
|
|
1061
1103
|
"propName": "value",
|
|
1062
1104
|
"methodName": "valueHandler"
|
|
1063
1105
|
}, {
|
|
@@ -84,6 +84,19 @@
|
|
|
84
84
|
user-select: none;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
:host([disabled]) {
|
|
88
|
+
pointer-events: none;
|
|
89
|
+
cursor: default;
|
|
90
|
+
-webkit-user-select: none;
|
|
91
|
+
user-select: none;
|
|
92
|
+
opacity: var(--calcite-ui-opacity-disabled);
|
|
93
|
+
}
|
|
94
|
+
:host([disabled]) ::slotted([calcite-hydrated][disabled]),
|
|
95
|
+
:host([disabled]) [calcite-hydrated][disabled] {
|
|
96
|
+
/* prevent opacity stacking */
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
87
100
|
::slotted(input[slot=hidden-form-input]) {
|
|
88
101
|
bottom: 0 !important;
|
|
89
102
|
left: 0 !important;
|
|
@@ -7,6 +7,7 @@ import { guid } from "../../utils/guid";
|
|
|
7
7
|
import { formatTimeString, isValidTime, localizeTimeString } from "../../utils/time";
|
|
8
8
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
9
9
|
import { connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
10
|
+
import { updateHostInteraction } from "../../utils/interactive";
|
|
10
11
|
export class InputTimePicker {
|
|
11
12
|
constructor() {
|
|
12
13
|
//--------------------------------------------------------------------------
|
|
@@ -115,6 +116,16 @@ export class InputTimePicker {
|
|
|
115
116
|
}
|
|
116
117
|
};
|
|
117
118
|
}
|
|
119
|
+
activeHandler() {
|
|
120
|
+
if (this.disabled) {
|
|
121
|
+
this.active = false;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
handleDisabledChange(value) {
|
|
125
|
+
if (!value) {
|
|
126
|
+
this.active = false;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
118
129
|
localeWatcher(newLocale) {
|
|
119
130
|
this.setInputValue(localizeTimeString(this.value, newLocale, this.shouldIncludeSeconds()));
|
|
120
131
|
}
|
|
@@ -184,6 +195,9 @@ export class InputTimePicker {
|
|
|
184
195
|
disconnectLabel(this);
|
|
185
196
|
disconnectForm(this);
|
|
186
197
|
}
|
|
198
|
+
componentDidRender() {
|
|
199
|
+
updateHostInteraction(this);
|
|
200
|
+
}
|
|
187
201
|
// --------------------------------------------------------------------------
|
|
188
202
|
//
|
|
189
203
|
// Render Methods
|
|
@@ -194,7 +208,7 @@ export class InputTimePicker {
|
|
|
194
208
|
return (h(Host, null,
|
|
195
209
|
h("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" },
|
|
196
210
|
h("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputBlur: this.calciteInputBlurHandler, onCalciteInputFocus: this.calciteInputFocusHandler, onCalciteInputInput: this.calciteInputInputHandler, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })),
|
|
197
|
-
h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active
|
|
211
|
+
h("calcite-popover", { id: popoverId, label: "Time Picker", open: this.active, referenceElement: this.referenceElementId },
|
|
198
212
|
h("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, lang: this.locale, onCalciteTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })),
|
|
199
213
|
h(HiddenFormInputSlot, { component: this })));
|
|
200
214
|
}
|
|
@@ -605,6 +619,12 @@ export class InputTimePicker {
|
|
|
605
619
|
}; }
|
|
606
620
|
static get elementRef() { return "el"; }
|
|
607
621
|
static get watchers() { return [{
|
|
622
|
+
"propName": "active",
|
|
623
|
+
"methodName": "activeHandler"
|
|
624
|
+
}, {
|
|
625
|
+
"propName": "disabled",
|
|
626
|
+
"methodName": "handleDisabledChange"
|
|
627
|
+
}, {
|
|
608
628
|
"propName": "locale",
|
|
609
629
|
"methodName": "localeWatcher"
|
|
610
630
|
}, {
|
|
@@ -142,6 +142,13 @@
|
|
|
142
142
|
justify-content: space-between;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
:host([disabled]) {
|
|
146
|
+
pointer-events: none;
|
|
147
|
+
cursor: default;
|
|
148
|
+
-webkit-user-select: none;
|
|
149
|
+
user-select: none;
|
|
150
|
+
opacity: var(--calcite-ui-opacity-disabled);
|
|
151
|
+
}
|
|
145
152
|
:host([disabled]) > .container {
|
|
146
153
|
pointer-events: none;
|
|
147
154
|
opacity: var(--calcite-ui-opacity-disabled);
|
|
@@ -155,6 +162,11 @@
|
|
|
155
162
|
:host([disabled]) ::slotted(calcite-input-message:not([active])) {
|
|
156
163
|
--tw-bg-opacity: 0;
|
|
157
164
|
}
|
|
165
|
+
:host([disabled]) ::slotted([calcite-hydrated][disabled]),
|
|
166
|
+
:host([disabled]) [calcite-hydrated][disabled] {
|
|
167
|
+
/* prevent opacity stacking */
|
|
168
|
+
opacity: 1;
|
|
169
|
+
}
|
|
158
170
|
|
|
159
171
|
:host([disable-spacing]) .container {
|
|
160
172
|
margin: 0px;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Prop, Host } from "@stencil/core";
|
|
6
|
+
import { labelDisconnectedEvent, labelConnectedEvent } from "../../utils/label";
|
|
6
7
|
import { CSS } from "./resources";
|
|
7
8
|
/**
|
|
8
9
|
* @slot - A slot for adding text and a component that can be labeled.
|
|
@@ -27,7 +28,11 @@ export class Label {
|
|
|
27
28
|
this.layout = "default";
|
|
28
29
|
/** eliminates any space around the label */
|
|
29
30
|
this.disableSpacing = false;
|
|
30
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* is the label disabled
|
|
33
|
+
*
|
|
34
|
+
* @deprecated use the `disabled` property on the interactive components instead
|
|
35
|
+
*/
|
|
31
36
|
this.disabled = false;
|
|
32
37
|
//--------------------------------------------------------------------------
|
|
33
38
|
//
|
|
@@ -45,6 +50,12 @@ export class Label {
|
|
|
45
50
|
// Lifecycle
|
|
46
51
|
//
|
|
47
52
|
//--------------------------------------------------------------------------
|
|
53
|
+
connectedCallback() {
|
|
54
|
+
document.dispatchEvent(new CustomEvent(labelConnectedEvent));
|
|
55
|
+
}
|
|
56
|
+
disconnectedCallback() {
|
|
57
|
+
document.dispatchEvent(new CustomEvent(labelDisconnectedEvent));
|
|
58
|
+
}
|
|
48
59
|
render() {
|
|
49
60
|
return (h(Host, { onClick: this.labelClickHandler },
|
|
50
61
|
h("div", { class: CSS.container },
|
|
@@ -195,7 +206,10 @@ export class Label {
|
|
|
195
206
|
"required": false,
|
|
196
207
|
"optional": false,
|
|
197
208
|
"docs": {
|
|
198
|
-
"tags": [
|
|
209
|
+
"tags": [{
|
|
210
|
+
"name": "deprecated",
|
|
211
|
+
"text": "use the `disabled` property on the interactive components instead"
|
|
212
|
+
}],
|
|
199
213
|
"text": "is the label disabled"
|
|
200
214
|
},
|
|
201
215
|
"attribute": "disabled",
|
|
@@ -131,14 +131,6 @@ calcite-icon {
|
|
|
131
131
|
margin-top: 0.125rem;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
:host([disabled]) {
|
|
135
|
-
pointer-events: none;
|
|
136
|
-
}
|
|
137
|
-
:host([disabled]) span, :host([disabled]) a {
|
|
138
|
-
pointer-events: none;
|
|
139
|
-
opacity: var(--calcite-ui-opacity-disabled);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
134
|
:host .calcite-link--icon.icon-start {
|
|
143
135
|
margin-inline-end: 0.5rem;
|
|
144
136
|
}
|
|
@@ -177,4 +169,17 @@ calcite-icon {
|
|
|
177
169
|
:host span.calcite--rtl,
|
|
178
170
|
:host a.calcite--rtl {
|
|
179
171
|
background-position: 100% 100%, 100% 100%;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:host([disabled]) {
|
|
175
|
+
pointer-events: none;
|
|
176
|
+
cursor: default;
|
|
177
|
+
-webkit-user-select: none;
|
|
178
|
+
user-select: none;
|
|
179
|
+
opacity: var(--calcite-ui-opacity-disabled);
|
|
180
|
+
}
|
|
181
|
+
:host([disabled]) ::slotted([calcite-hydrated][disabled]),
|
|
182
|
+
:host([disabled]) [calcite-hydrated][disabled] {
|
|
183
|
+
/* prevent opacity stacking */
|
|
184
|
+
opacity: 1;
|
|
180
185
|
}
|