@esri/calcite-components 1.1.1-next.2 → 1.2.0
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/card/t9n/messages.json +1 -1
- package/dist/calcite/assets/card/t9n/messages_en.json +1 -1
- package/dist/calcite/assets/text-area/t9n/index.d.ts +4 -0
- package/dist/calcite/assets/text-area/t9n/messages.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_ar.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_bg.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_bs.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_ca.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_cs.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_da.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_de.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_el.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_en.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_es.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_et.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_fi.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_fr.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_he.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_hr.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_hu.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_id.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_it.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_ja.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_ko.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_lt.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_lv.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_nl.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_no.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_pl.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_pt-BR.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_pt-PT.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_ro.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_ru.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_sk.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_sl.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_sr.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_sv.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_th.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_tr.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_uk.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_vi.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_zh-CN.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_zh-HK.json +4 -0
- package/dist/calcite/assets/text-area/t9n/messages_zh-TW.json +4 -0
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-74f1c90b.js → p-002052f4.js} +2 -2
- package/dist/calcite/p-0142973c.entry.js +6 -0
- package/dist/calcite/p-016e277d.js +6 -0
- package/dist/calcite/p-05215047.js +6 -0
- package/dist/calcite/{p-488815fe.js → p-0b1f31dd.js} +1 -1
- package/dist/calcite/p-11c55611.entry.js +6 -0
- package/dist/calcite/{p-4534f76b.entry.js → p-13f0cdda.entry.js} +2 -2
- package/dist/calcite/{p-f86309f4.entry.js → p-1465611a.entry.js} +2 -2
- package/dist/calcite/{p-46d33089.js → p-19422786.js} +2 -2
- package/dist/calcite/{p-72a0bc37.js → p-1ac41302.js} +1 -1
- package/dist/calcite/p-1d969d62.entry.js +6 -0
- package/dist/calcite/{p-288e344c.entry.js → p-1e3ef9c7.entry.js} +2 -2
- package/dist/calcite/{p-8a043b9f.js → p-2154b7de.js} +1 -1
- package/dist/calcite/{p-7bb42e56.js → p-232abc61.js} +1 -1
- package/dist/calcite/{p-9981817e.js → p-26d8628f.js} +1 -1
- package/dist/calcite/{p-23ad4bfb.js → p-28407877.js} +1 -1
- package/dist/calcite/{p-3aeef6ee.entry.js → p-2d675cda.entry.js} +2 -2
- package/dist/calcite/p-320e4fc1.entry.js +6 -0
- package/dist/calcite/p-3421c539.entry.js +6 -0
- package/dist/calcite/p-3719b1b0.js +6 -0
- package/dist/calcite/p-384ea8a3.entry.js +6 -0
- package/dist/calcite/p-3aa0bac2.entry.js +6 -0
- package/dist/calcite/{p-f5c4eb5d.entry.js → p-3bfa15de.entry.js} +2 -2
- package/dist/calcite/p-3cf4821b.entry.js +6 -0
- package/dist/calcite/p-3d51c732.entry.js +6 -0
- package/dist/calcite/{p-20599012.entry.js → p-3e11d878.entry.js} +2 -2
- package/dist/calcite/{p-19f1fa4d.js → p-403627a1.js} +2 -2
- package/dist/calcite/{p-6c13263d.entry.js → p-42dd4006.entry.js} +2 -2
- package/dist/calcite/{p-c3712bbc.js → p-4680a41d.js} +1 -1
- package/dist/calcite/p-48ab9a1b.entry.js +6 -0
- package/dist/calcite/{p-e77e94ed.js → p-48b61c4b.js} +1 -1
- package/dist/calcite/{p-bb0841d9.entry.js → p-4ae1fc79.entry.js} +2 -2
- package/dist/calcite/{p-fd97b1db.entry.js → p-4df1bcf0.entry.js} +2 -2
- package/dist/calcite/{p-48436a62.js → p-5351c56f.js} +1 -1
- package/dist/calcite/{p-8dd480dc.js → p-55b16a54.js} +1 -1
- package/dist/calcite/{p-e6b2d77a.entry.js → p-55baafb1.entry.js} +2 -2
- package/dist/calcite/p-57475aad.entry.js +6 -0
- package/dist/calcite/p-57ae6d0f.entry.js +6 -0
- package/dist/calcite/{p-badf1941.entry.js → p-5b9ce91b.entry.js} +2 -2
- package/dist/calcite/{p-22f92d3d.js → p-5f91b826.js} +2 -2
- package/dist/calcite/{p-c2f6d427.entry.js → p-67dc4de5.entry.js} +2 -2
- package/dist/calcite/{p-51361b1d.entry.js → p-6813168f.entry.js} +2 -2
- package/dist/calcite/{p-1b45013b.entry.js → p-6931b06b.entry.js} +2 -2
- package/dist/calcite/{p-3f511ad2.entry.js → p-6fff0923.entry.js} +2 -2
- package/dist/calcite/p-72f2f04b.entry.js +6 -0
- package/dist/calcite/{p-8ff60594.js → p-76928557.js} +1 -1
- package/dist/calcite/{p-541d6ac8.entry.js → p-774c2616.entry.js} +2 -2
- package/dist/calcite/{p-92ea927c.js → p-78b606c3.js} +2 -2
- package/dist/calcite/{p-ae886df6.entry.js → p-863adbc0.entry.js} +2 -2
- package/dist/calcite/{p-24f78b05.js → p-8728d1dd.js} +1 -1
- package/dist/calcite/{p-22e3649b.entry.js → p-872be970.entry.js} +2 -2
- package/dist/calcite/{p-f6270352.js → p-89b710ae.js} +3 -3
- package/dist/calcite/{p-48ea2302.entry.js → p-89edac92.entry.js} +2 -2
- package/dist/calcite/{p-ad9d3a88.entry.js → p-8a099a88.entry.js} +2 -2
- package/dist/calcite/{p-45e7b17e.js → p-911962bd.js} +1 -1
- package/dist/calcite/p-969fa230.entry.js +6 -0
- package/dist/calcite/{p-0768b989.entry.js → p-9dea6751.entry.js} +2 -2
- package/dist/calcite/{p-ce55a9cd.entry.js → p-9e7a442e.entry.js} +2 -2
- package/dist/calcite/{p-abf7b09b.entry.js → p-9ea8dd79.entry.js} +2 -2
- package/dist/calcite/{p-ba611b6f.js → p-9ee2e227.js} +2 -2
- package/dist/calcite/p-9f076e5d.entry.js +6 -0
- package/dist/calcite/p-a8790d90.entry.js +6 -0
- package/dist/calcite/p-a9158071.js +6 -0
- package/dist/calcite/{p-7146c7ed.entry.js → p-aa232102.entry.js} +2 -2
- package/dist/calcite/{p-760418c4.entry.js → p-aa271401.entry.js} +2 -2
- package/dist/calcite/{p-8eb2ba0e.entry.js → p-ae7e71fe.entry.js} +2 -2
- package/dist/calcite/{p-5b32aa48.entry.js → p-aff8afea.entry.js} +2 -2
- package/dist/calcite/{p-cc3b11f8.entry.js → p-b0493125.entry.js} +2 -2
- package/dist/calcite/{p-48fb9a71.js → p-b16095ce.js} +1 -1
- package/dist/calcite/{p-c5b57b48.entry.js → p-b5774a7b.entry.js} +2 -2
- package/dist/calcite/{p-a2ccabc4.js → p-b5c59463.js} +1 -1
- package/dist/calcite/{p-6d3415c8.js → p-b80446b3.js} +3 -3
- package/dist/calcite/p-b9e13a83.entry.js +6 -0
- package/dist/calcite/{p-fe096fb9.js → p-bb5a7862.js} +1 -1
- package/dist/calcite/p-bd6b3b70.entry.js +6 -0
- package/dist/calcite/{p-df17746a.entry.js → p-be98f17e.entry.js} +2 -2
- package/dist/calcite/{p-f1d4dac5.entry.js → p-c519e114.entry.js} +2 -2
- package/dist/calcite/{p-8575ea0d.js → p-cce57689.js} +1 -1
- package/dist/calcite/{p-7a9de49d.js → p-cd6ef38b.js} +2 -2
- package/dist/calcite/p-ce979e83.entry.js +6 -0
- package/dist/calcite/{p-c056871a.entry.js → p-d1077a87.entry.js} +2 -2
- package/dist/calcite/p-d2b28559.entry.js +6 -0
- package/dist/calcite/p-d30a68d5.js +6 -0
- package/dist/calcite/p-d33afdbc.entry.js +6 -0
- package/dist/calcite/p-d6d039b5.entry.js +6 -0
- package/dist/calcite/{p-9dd20596.entry.js → p-d7a6cadf.entry.js} +2 -2
- package/dist/calcite/{p-117b271d.js → p-d95dd729.js} +2 -2
- package/dist/calcite/{p-0453ed05.entry.js → p-dc8b0da1.entry.js} +2 -2
- package/dist/calcite/{p-2e3f6511.entry.js → p-de9d0e6d.entry.js} +2 -2
- package/dist/calcite/{p-94633289.js → p-e1349fa9.js} +2 -2
- package/dist/calcite/{p-e8fe7c0d.entry.js → p-f0a56732.entry.js} +2 -2
- package/dist/calcite/p-fa5829ef.entry.js +6 -0
- package/dist/calcite/{p-e4c3a1c4.entry.js → p-fd3b58e5.entry.js} +2 -2
- package/dist/calcite/{p-b79fb255.entry.js → p-fd46c6b7.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-0c5a99b1.js → ExpandToggle-7367419c.js} +5 -5
- package/dist/cjs/{Heading-68ba8117.js → Heading-dcba7c66.js} +2 -2
- package/dist/cjs/{app-globals-496272d2.js → app-globals-0788b16e.js} +2 -2
- package/dist/cjs/{array-da28e904.js → array-16cfc2ce.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
- package/dist/cjs/calcite-action-group.cjs.entry.js +27 -12
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action.cjs.entry.js +11 -11
- package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-button.cjs.entry.js +15 -14
- package/dist/cjs/calcite-card.cjs.entry.js +11 -12
- package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -10
- package/dist/cjs/calcite-chip.cjs.entry.js +11 -11
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -80
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +19 -18
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +27 -12
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +26 -12
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter.cjs.entry.js +13 -13
- package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -12
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +14 -13
- package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +17 -16
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +14 -13
- package/dist/cjs/calcite-input-text.cjs.entry.js +14 -13
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +14 -13
- package/dist/cjs/calcite-input.cjs.entry.js +14 -13
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
- package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
- package/dist/cjs/calcite-option_3.cjs.entry.js +11 -10
- package/dist/cjs/calcite-pagination.cjs.entry.js +22 -11
- package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-popover.cjs.entry.js +15 -15
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -10
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -13
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +10 -9
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +20 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -10
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-text-area.cjs.entry.js +246 -0
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-f73b8511.js → conditionalSlot-5656d59c.js} +3 -3
- package/dist/cjs/{debounce-2f62ac4c.js → debounce-a11903ad.js} +1 -1
- package/dist/cjs/{dom-706667df.js → dom-dc375f9f.js} +6 -3
- package/dist/cjs/{filter-00579327.js → filter-09a2cbf3.js} +2 -2
- package/dist/cjs/{floating-ui-3a46b800.js → floating-ui-d76898e7.js} +4 -4
- package/dist/cjs/{focusTrapComponent-63afc9b2.js → focusTrapComponent-10b93e09.js} +2 -2
- package/dist/cjs/{form-05a4fadc.js → form-85e72154.js} +38 -8
- package/dist/cjs/{guid-fcb9c017.js → guid-4daeb326.js} +1 -1
- package/dist/cjs/{index-3dc519f7.js → index-b6e1067b.js} +5 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-27db04a1.js → interactive-059fb608.js} +1 -1
- package/dist/cjs/{key-235be376.js → key-d7b507f8.js} +1 -1
- package/dist/cjs/{label-26dbc15e.js → label-5380391e.js} +2 -2
- package/dist/cjs/{loadable-c38cb815.js → loadable-19d269a6.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-0eccd9e9.js → locale-cc5d712a.js} +4 -4
- package/dist/cjs/{math-f65f9b02.js → math-da4701fc.js} +1 -1
- package/dist/cjs/{observers-484369d9.js → observers-8c623fb7.js} +1 -1
- package/dist/cjs/{openCloseComponent-946420f4.js → openCloseComponent-08e6daa2.js} +2 -2
- package/dist/cjs/{resources-9535a54e.js → resources-0c82b41e.js} +1 -1
- package/dist/cjs/{resources-6a879402.js → resources-6c2223d4.js} +1 -1
- package/dist/cjs/{resources-ec5696ad.js → resources-78766ff3.js} +1 -1
- package/dist/cjs/{resources-f5f0d735.js → resources-90786f6b.js} +5 -5
- package/dist/cjs/{resources-66f2676f.js → resources-e94f129e.js} +1 -1
- package/dist/cjs/{resources-4afcd38d.js → resources-ed022f42.js} +1 -1
- package/dist/cjs/{sortable.esm-495796bb.js → sortable.esm-ac24f8d4.js} +1 -1
- package/dist/cjs/{t9n-35486495.js → t9n-394540b0.js} +3 -3
- package/dist/cjs/throttle-27c991ba.js +75 -0
- package/dist/cjs/{utils-c07c9630.js → utils-3c442102.js} +1 -1
- package/dist/cjs/{utils-bf97166e.js → utils-bf247e2a.js} +1 -1
- package/dist/cjs/{utils-ff0206d1.js → utils-f0c307f8.js} +3 -3
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +37 -3
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +21 -4
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/assets/card/t9n/messages.json +1 -1
- package/dist/collection/components/card/assets/card/t9n/messages_en.json +1 -1
- package/dist/collection/components/card/card.js +2 -3
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +19 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +19 -1
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +36 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +32 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +19 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +19 -1
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +19 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +19 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +19 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +30 -3
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +19 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/rating/function/star.js +1 -1
- package/dist/collection/components/rating/rating.js +19 -1
- package/dist/collection/components/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +19 -1
- package/dist/collection/components/segmented-control-item/resources.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +19 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +19 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +38 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +19 -1
- 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/resources.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text-area/assets/text-area/t9n/index.d.ts +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_ar.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_bg.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_bs.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_ca.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_cs.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_da.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_de.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_el.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_en.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_es.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_et.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_fi.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_fr.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_he.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_hr.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_hu.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_id.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_it.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_ja.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_ko.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_lt.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_lv.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_nl.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_no.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_pl.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_pt-BR.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_pt-PT.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_ro.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_ru.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_sk.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_sl.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_sr.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_sv.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_th.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_tr.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_uk.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_vi.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_zh-CN.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_zh-HK.json +4 -0
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_zh-TW.json +4 -0
- package/dist/collection/components/text-area/resources.js +27 -0
- package/dist/collection/components/text-area/text-area.css +287 -0
- package/dist/collection/components/text-area/text-area.js +691 -0
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +7 -7
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip/utils.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +4 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui/utils.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.js +1 -1
- package/dist/collection/utils/form.js +36 -7
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/mode.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +18 -2
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +5 -4
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +2 -3
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +2 -67
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +3 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +3 -1
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +3 -1
- package/dist/components/calcite-input-text.js +3 -1
- package/dist/components/calcite-input-time-picker.js +3 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +15 -3
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +3 -1
- package/dist/components/calcite-rating.js +3 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.js +1 -1
- package/dist/components/calcite-segmented-control.js +3 -1
- package/dist/components/calcite-select.js +3 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +3 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +20 -2
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-text-area.d.ts +11 -0
- package/dist/components/calcite-text-area.js +283 -0
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +5 -5
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +3 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +18 -2
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +4 -1
- package/dist/components/dropdown.js +17 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +37 -8
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +3 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +3 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/throttle.js +73 -0
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/components/utils3.js +1 -1
- package/dist/components/utils4.js +1 -1
- package/dist/esm/{ExpandToggle-6dfbcf2f.js → ExpandToggle-65fad00d.js} +5 -5
- package/dist/esm/{Heading-0f8bb46b.js → Heading-1ea6b199.js} +2 -2
- package/dist/esm/{app-globals-8db1b089.js → app-globals-23bff25a.js} +2 -2
- package/dist/esm/{array-c34af128.js → array-d1cecef4.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +15 -15
- package/dist/esm/calcite-action-group.entry.js +27 -12
- package/dist/esm/calcite-action-menu.entry.js +9 -9
- package/dist/esm/calcite-action-pad.entry.js +14 -14
- package/dist/esm/calcite-action.entry.js +11 -11
- package/dist/esm/calcite-alert.entry.js +12 -12
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +12 -12
- package/dist/esm/calcite-button.entry.js +15 -14
- package/dist/esm/calcite-card.entry.js +11 -12
- package/dist/esm/calcite-checkbox.entry.js +11 -10
- package/dist/esm/calcite-chip.entry.js +11 -11
- package/dist/esm/calcite-color-picker_3.entry.js +15 -79
- package/dist/esm/calcite-combobox_3.entry.js +19 -18
- package/dist/esm/calcite-date-picker_4.entry.js +27 -12
- package/dist/esm/calcite-dropdown_3.entry.js +26 -12
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter.entry.js +13 -13
- package/dist/esm/calcite-flow-item.entry.js +12 -12
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +14 -13
- package/dist/esm/calcite-handle.entry.js +10 -10
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +12 -12
- package/dist/esm/calcite-input-date-picker.entry.js +17 -16
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +14 -13
- package/dist/esm/calcite-input-text.entry.js +14 -13
- package/dist/esm/calcite-input-time-picker_2.entry.js +14 -13
- package/dist/esm/calcite-input.entry.js +14 -13
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +7 -7
- package/dist/esm/calcite-list_3.entry.js +9 -9
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +13 -13
- package/dist/esm/calcite-notice.entry.js +12 -12
- package/dist/esm/calcite-option_3.entry.js +11 -10
- package/dist/esm/calcite-pagination.entry.js +22 -11
- package/dist/esm/calcite-panel.entry.js +14 -14
- package/dist/esm/calcite-pick-list_3.entry.js +16 -16
- package/dist/esm/calcite-popover.entry.js +15 -15
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +11 -10
- package/dist/esm/calcite-rating.entry.js +14 -13
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +10 -9
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +20 -3
- package/dist/esm/calcite-stepper_2.entry.js +10 -10
- package/dist/esm/calcite-switch.entry.js +11 -10
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-text-area.entry.js +242 -0
- package/dist/esm/calcite-tile-select_2.entry.js +8 -8
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip.entry.js +8 -8
- package/dist/esm/calcite-tree_2.entry.js +9 -9
- package/dist/esm/calcite-value-list_2.entry.js +16 -16
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/{conditionalSlot-bc3f48fd.js → conditionalSlot-fa8a7775.js} +3 -3
- package/dist/esm/{debounce-2f846e59.js → debounce-82a5515a.js} +1 -1
- package/dist/esm/{dom-dbf8ad7f.js → dom-d2c51b4f.js} +6 -3
- package/dist/esm/{filter-bbee9d77.js → filter-10435724.js} +2 -2
- package/dist/esm/{floating-ui-bac898d0.js → floating-ui-1971b3db.js} +4 -4
- package/dist/esm/{focusTrapComponent-01ea8684.js → focusTrapComponent-607ce12d.js} +2 -2
- package/dist/esm/{form-2110bc63.js → form-02f2cff9.js} +38 -9
- package/dist/esm/{guid-13cd82e7.js → guid-a16483b5.js} +1 -1
- package/dist/esm/{index-14a76282.js → index-7cac2f3f.js} +5 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-25afe2e1.js → interactive-06caa37b.js} +1 -1
- package/dist/esm/{key-e3a5ba48.js → key-81b2634f.js} +1 -1
- package/dist/esm/{label-f5e9f775.js → label-c485f4f8.js} +2 -2
- package/dist/esm/{loadable-b2a39249.js → loadable-8c121e4b.js} +1 -1
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{locale-56186cbf.js → locale-270ffb3c.js} +4 -4
- package/dist/esm/{math-f83da299.js → math-a2bb65cb.js} +1 -1
- package/dist/esm/{observers-c93b41a6.js → observers-77a8b45d.js} +1 -1
- package/dist/esm/{openCloseComponent-f3056902.js → openCloseComponent-6705b509.js} +2 -2
- package/dist/esm/{resources-92aa2e8b.js → resources-044bcbc4.js} +1 -1
- package/dist/esm/{resources-2063ea55.js → resources-3f7ed5a5.js} +1 -1
- package/dist/esm/{resources-5d23bf07.js → resources-48b20118.js} +1 -1
- package/dist/esm/{resources-e064d460.js → resources-780d7239.js} +5 -5
- package/dist/esm/{resources-3bb07d09.js → resources-7a04dab1.js} +1 -1
- package/dist/esm/{resources-093f789e.js → resources-add10009.js} +1 -1
- package/dist/esm/{sortable.esm-67f7d66b.js → sortable.esm-325dcfc4.js} +1 -1
- package/dist/esm/{t9n-dc4494d1.js → t9n-223ccb9b.js} +3 -3
- package/dist/esm/throttle-0023c320.js +73 -0
- package/dist/esm/{utils-03006c2d.js → utils-35c56cd6.js} +1 -1
- package/dist/esm/{utils-2d3df878.js → utils-7c9d4f71.js} +3 -3
- package/dist/esm/{utils-06b5bddc.js → utils-c1c0f2c9.js} +1 -1
- package/dist/extras/docs-json.json +837 -4
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/action-group/action-group.d.ts +5 -1
- package/dist/types/components/button/button.d.ts +6 -0
- package/dist/types/components/checkbox/checkbox.d.ts +6 -0
- package/dist/types/components/combobox/combobox.d.ts +6 -0
- package/dist/types/components/date-picker/date-picker.d.ts +5 -1
- package/dist/types/components/dropdown/dropdown.d.ts +5 -1
- package/dist/types/components/input/input.d.ts +6 -0
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +6 -0
- package/dist/types/components/input-number/input-number.d.ts +6 -0
- package/dist/types/components/input-text/input-text.d.ts +6 -0
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +6 -0
- package/dist/types/components/pagination/pagination.d.ts +5 -1
- package/dist/types/components/radio-button/radio-button.d.ts +6 -0
- package/dist/types/components/rating/rating.d.ts +6 -0
- package/dist/types/components/segmented-control/segmented-control.d.ts +6 -0
- package/dist/types/components/select/select.d.ts +6 -0
- package/dist/types/components/slider/slider.d.ts +6 -0
- package/dist/types/components/split-button/split-button.d.ts +6 -1
- package/dist/types/components/switch/switch.d.ts +6 -0
- package/dist/types/components/text-area/assets/text-area/t9n/index.d.ts +4 -0
- package/dist/types/components/text-area/resources.d.ts +22 -0
- package/dist/types/components/text-area/text-area.d.ts +160 -0
- package/dist/types/components/tile-select/tile-select.d.ts +3 -3
- package/dist/types/components.d.ts +336 -0
- package/dist/types/preact.d.ts +5 -0
- package/dist/types/utils/form.d.ts +20 -4
- package/hydrate/index.js +835 -451
- package/package.json +1 -1
- package/readme.md +2 -2
- package/dist/calcite/p-05be1985.entry.js +0 -6
- package/dist/calcite/p-08ff4ee6.entry.js +0 -6
- package/dist/calcite/p-0e2a04e5.entry.js +0 -6
- package/dist/calcite/p-0ee9a401.entry.js +0 -6
- package/dist/calcite/p-1bb8fab3.entry.js +0 -6
- package/dist/calcite/p-1c5f01f0.entry.js +0 -6
- package/dist/calcite/p-1dae11a4.entry.js +0 -6
- package/dist/calcite/p-28c2cdf8.js +0 -6
- package/dist/calcite/p-28f74ebe.entry.js +0 -6
- package/dist/calcite/p-3c74c413.js +0 -6
- package/dist/calcite/p-3cb23f94.entry.js +0 -6
- package/dist/calcite/p-424be0e9.entry.js +0 -6
- package/dist/calcite/p-6003caa1.entry.js +0 -6
- package/dist/calcite/p-6e447493.js +0 -6
- package/dist/calcite/p-79434104.entry.js +0 -6
- package/dist/calcite/p-799ce995.entry.js +0 -6
- package/dist/calcite/p-7d61c491.entry.js +0 -6
- package/dist/calcite/p-81cd8241.js +0 -6
- package/dist/calcite/p-8978cb1e.entry.js +0 -6
- package/dist/calcite/p-98ec07dc.entry.js +0 -6
- package/dist/calcite/p-a26871f1.entry.js +0 -6
- package/dist/calcite/p-af272da9.entry.js +0 -6
- package/dist/calcite/p-b610191a.entry.js +0 -6
- package/dist/calcite/p-e7ecc383.entry.js +0 -6
- package/dist/calcite/p-f367aaf0.entry.js +0 -6
- package/dist/calcite/p-f691bd92.entry.js +0 -6
- package/dist/extras/vscode-data.json +0 -6138
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.
|
|
4
|
+
* v1.2.0
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -6638,6 +6638,9 @@ async function focusElement(el) {
|
|
|
6638
6638
|
* @param {HTMLElement} element The html element containing tabbable elements.
|
|
6639
6639
|
*/
|
|
6640
6640
|
function focusFirstTabbable(element) {
|
|
6641
|
+
if (!element) {
|
|
6642
|
+
return;
|
|
6643
|
+
}
|
|
6641
6644
|
(tabbable(element, tabbableOptions)[0] || element).focus();
|
|
6642
6645
|
}
|
|
6643
6646
|
const defaultSlotSelector = ":not([slot])";
|
|
@@ -6775,11 +6778,11 @@ const focusElementInGroup = (elements, currentElement, destination) => {
|
|
|
6775
6778
|
return focusTarget;
|
|
6776
6779
|
};
|
|
6777
6780
|
|
|
6778
|
-
const SLOTS$
|
|
6781
|
+
const SLOTS$v = {
|
|
6779
6782
|
actionsStart: "actions-start",
|
|
6780
6783
|
actionsEnd: "actions-end"
|
|
6781
6784
|
};
|
|
6782
|
-
const CSS$
|
|
6785
|
+
const CSS$Y = {
|
|
6783
6786
|
icon: "icon",
|
|
6784
6787
|
header: "header",
|
|
6785
6788
|
headerContent: "header-content",
|
|
@@ -6850,28 +6853,28 @@ class AccordionItem {
|
|
|
6850
6853
|
// --------------------------------------------------------------------------
|
|
6851
6854
|
renderActionsStart() {
|
|
6852
6855
|
const { el } = this;
|
|
6853
|
-
return getSlotted(el, SLOTS$
|
|
6856
|
+
return getSlotted(el, SLOTS$v.actionsStart) ? (hAsync("div", { class: CSS$Y.actionsStart }, hAsync("slot", { name: SLOTS$v.actionsStart }))) : null;
|
|
6854
6857
|
}
|
|
6855
6858
|
renderActionsEnd() {
|
|
6856
6859
|
const { el } = this;
|
|
6857
|
-
return getSlotted(el, SLOTS$
|
|
6860
|
+
return getSlotted(el, SLOTS$v.actionsEnd) ? (hAsync("div", { class: CSS$Y.actionsEnd }, hAsync("slot", { name: SLOTS$v.actionsEnd }))) : null;
|
|
6858
6861
|
}
|
|
6859
6862
|
render() {
|
|
6860
6863
|
const { iconFlipRtl } = this;
|
|
6861
6864
|
const dir = getElementDir(this.el);
|
|
6862
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
6863
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$
|
|
6865
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$Y.iconStart, flipRtl: iconFlipRtl === "both" || iconFlipRtl === "start", icon: this.iconStart, key: "icon-start", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
6866
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$Y.iconEnd, flipRtl: iconFlipRtl === "both" || iconFlipRtl === "end", icon: this.iconEnd, key: "icon-end", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
6864
6867
|
const { description } = this;
|
|
6865
6868
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
6866
6869
|
[`icon-position--${this.iconPosition}`]: true,
|
|
6867
6870
|
[`icon-type--${this.iconType}`]: true
|
|
6868
|
-
} }, hAsync("div", { class: { [CSS$
|
|
6871
|
+
} }, hAsync("div", { class: { [CSS$Y.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), hAsync("div", { "aria-expanded": toAriaBoolean(this.expanded), class: CSS$Y.headerContent, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, hAsync("div", { class: CSS$Y.headerContainer }, iconStartEl, hAsync("div", { class: CSS$Y.headerText }, hAsync("span", { class: CSS$Y.heading }, this.heading), description ? hAsync("span", { class: CSS$Y.description }, description) : null), iconEndEl), hAsync("calcite-icon", { class: CSS$Y.expandIcon, icon: this.iconType === "chevron"
|
|
6869
6872
|
? "chevronDown"
|
|
6870
6873
|
: this.iconType === "caret"
|
|
6871
6874
|
? "caretDown"
|
|
6872
6875
|
: this.expanded
|
|
6873
6876
|
? "minus"
|
|
6874
|
-
: "plus", scale: this.scale === "l" ? "m" : "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$
|
|
6877
|
+
: "plus", scale: this.scale === "l" ? "m" : "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$Y.content }, hAsync("slot", null)))));
|
|
6875
6878
|
}
|
|
6876
6879
|
//--------------------------------------------------------------------------
|
|
6877
6880
|
//
|
|
@@ -7593,7 +7596,7 @@ function defaultOnMessagesChange() {
|
|
|
7593
7596
|
mergeMessages(this);
|
|
7594
7597
|
}
|
|
7595
7598
|
|
|
7596
|
-
const CSS$
|
|
7599
|
+
const CSS$X = {
|
|
7597
7600
|
button: "button",
|
|
7598
7601
|
buttonTextVisible: "button--text-visible",
|
|
7599
7602
|
buttonCompact: "button--compact",
|
|
@@ -7604,7 +7607,7 @@ const CSS$W = {
|
|
|
7604
7607
|
textContainer: "text-container",
|
|
7605
7608
|
textContainerVisible: "text-container--visible"
|
|
7606
7609
|
};
|
|
7607
|
-
const SLOTS$
|
|
7610
|
+
const SLOTS$u = {
|
|
7608
7611
|
tooltip: "tooltip"
|
|
7609
7612
|
};
|
|
7610
7613
|
|
|
@@ -7702,14 +7705,14 @@ class Action {
|
|
|
7702
7705
|
renderTextContainer() {
|
|
7703
7706
|
const { text, textEnabled } = this;
|
|
7704
7707
|
const textContainerClasses = {
|
|
7705
|
-
[CSS$
|
|
7706
|
-
[CSS$
|
|
7708
|
+
[CSS$X.textContainer]: true,
|
|
7709
|
+
[CSS$X.textContainerVisible]: textEnabled
|
|
7707
7710
|
};
|
|
7708
7711
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
7709
7712
|
}
|
|
7710
7713
|
renderIndicatorText() {
|
|
7711
7714
|
const { indicator, messages, indicatorId, buttonId } = this;
|
|
7712
|
-
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$
|
|
7715
|
+
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$X.indicatorText, id: indicatorId, role: "region" }, indicator ? messages.indicator : null));
|
|
7713
7716
|
}
|
|
7714
7717
|
renderIconContainer() {
|
|
7715
7718
|
const { loading, icon, scale, el, iconFlipRtl } = this;
|
|
@@ -7720,22 +7723,22 @@ class Action {
|
|
|
7720
7723
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
7721
7724
|
const hasIconToDisplay = iconNode || el.children?.length;
|
|
7722
7725
|
const slotContainerNode = (hAsync("div", { class: {
|
|
7723
|
-
[CSS$
|
|
7724
|
-
[CSS$
|
|
7726
|
+
[CSS$X.slotContainer]: true,
|
|
7727
|
+
[CSS$X.slotContainerHidden]: loading
|
|
7725
7728
|
} }, hAsync("slot", null)));
|
|
7726
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
7729
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$X.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
7727
7730
|
}
|
|
7728
7731
|
render() {
|
|
7729
7732
|
const { active, compact, disabled, loading, textEnabled, label, text, indicator, indicatorId, buttonId, messages } = this;
|
|
7730
7733
|
const ariaLabel = `${label || text}${indicator ? ` (${messages.indicator})` : ""}`;
|
|
7731
7734
|
const buttonClasses = {
|
|
7732
|
-
[CSS$
|
|
7733
|
-
[CSS$
|
|
7734
|
-
[CSS$
|
|
7735
|
+
[CSS$X.button]: true,
|
|
7736
|
+
[CSS$X.buttonTextVisible]: textEnabled,
|
|
7737
|
+
[CSS$X.buttonCompact]: compact
|
|
7735
7738
|
};
|
|
7736
7739
|
return (hAsync(Host, null, hAsync("button", { "aria-busy": toAriaBoolean(loading), "aria-controls": indicator ? indicatorId : null, "aria-disabled": toAriaBoolean(disabled), "aria-label": ariaLabel, "aria-pressed": toAriaBoolean(active), class: buttonClasses, disabled: disabled, id: buttonId,
|
|
7737
7740
|
// eslint-disable-next-line react/jsx-sort-props
|
|
7738
|
-
ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer()), hAsync("slot", { name: SLOTS$
|
|
7741
|
+
ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer()), hAsync("slot", { name: SLOTS$u.tooltip, onSlotchange: this.handleTooltipSlotChange }), this.renderIndicatorText()));
|
|
7739
7742
|
}
|
|
7740
7743
|
static get assetsDirs() { return ["assets"]; }
|
|
7741
7744
|
get el() { return getElement(this); }
|
|
@@ -9036,7 +9039,7 @@ function throttle$1(func, wait, options) {
|
|
|
9036
9039
|
});
|
|
9037
9040
|
}
|
|
9038
9041
|
|
|
9039
|
-
const SLOTS$
|
|
9042
|
+
const SLOTS$t = {
|
|
9040
9043
|
menuActions: "menu-actions",
|
|
9041
9044
|
menuTooltip: "menu-tooltip"
|
|
9042
9045
|
};
|
|
@@ -9044,11 +9047,11 @@ const ICONS$h = {
|
|
|
9044
9047
|
menu: "ellipsis"
|
|
9045
9048
|
};
|
|
9046
9049
|
|
|
9047
|
-
const CSS$
|
|
9050
|
+
const CSS$W = {
|
|
9048
9051
|
menu: "menu",
|
|
9049
9052
|
defaultTrigger: "default-trigger"
|
|
9050
9053
|
};
|
|
9051
|
-
const SLOTS$
|
|
9054
|
+
const SLOTS$s = {
|
|
9052
9055
|
tooltip: "tooltip",
|
|
9053
9056
|
trigger: "trigger"
|
|
9054
9057
|
};
|
|
@@ -9075,7 +9078,7 @@ const getOverflowCount = ({ layout, actionCount, actionWidth, width, actionHeigh
|
|
|
9075
9078
|
return Math.max(actionCount - getMaxActionCount({ width, actionWidth, layout, height, actionHeight, groupCount }), 0);
|
|
9076
9079
|
};
|
|
9077
9080
|
const queryActions = (el) => {
|
|
9078
|
-
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$
|
|
9081
|
+
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$s.trigger : true);
|
|
9079
9082
|
};
|
|
9080
9083
|
const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
9081
9084
|
let needToSlotCount = overflowCount;
|
|
@@ -9083,7 +9086,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
9083
9086
|
let slottedWithinGroupCount = 0;
|
|
9084
9087
|
const groupActions = queryActions(group).reverse();
|
|
9085
9088
|
groupActions.forEach((groupAction) => {
|
|
9086
|
-
if (groupAction.slot === SLOTS$
|
|
9089
|
+
if (groupAction.slot === SLOTS$t.menuActions) {
|
|
9087
9090
|
groupAction.removeAttribute("slot");
|
|
9088
9091
|
groupAction.textEnabled = expanded;
|
|
9089
9092
|
}
|
|
@@ -9093,7 +9096,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
9093
9096
|
const unslottedActions = groupActions.filter((action) => !action.slot);
|
|
9094
9097
|
if (unslottedActions.length > 1 && groupActions.length > 2 && !groupAction.closest("calcite-action-menu")) {
|
|
9095
9098
|
groupAction.textEnabled = true;
|
|
9096
|
-
groupAction.setAttribute("slot", SLOTS$
|
|
9099
|
+
groupAction.setAttribute("slot", SLOTS$t.menuActions);
|
|
9097
9100
|
slottedWithinGroupCount++;
|
|
9098
9101
|
if (slottedWithinGroupCount > 1) {
|
|
9099
9102
|
needToSlotCount--;
|
|
@@ -9115,7 +9118,7 @@ function getCalcitePosition(position, el) {
|
|
|
9115
9118
|
}
|
|
9116
9119
|
function toggleChildActionText({ parent, expanded }) {
|
|
9117
9120
|
queryActions(parent)
|
|
9118
|
-
.filter((el) => el.slot !== SLOTS$
|
|
9121
|
+
.filter((el) => el.slot !== SLOTS$t.menuActions)
|
|
9119
9122
|
.forEach((action) => (action.textEnabled = expanded));
|
|
9120
9123
|
parent
|
|
9121
9124
|
.querySelectorAll("calcite-action-group, calcite-action-menu")
|
|
@@ -9146,10 +9149,10 @@ const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position
|
|
|
9146
9149
|
return actionNode;
|
|
9147
9150
|
};
|
|
9148
9151
|
|
|
9149
|
-
const CSS$
|
|
9152
|
+
const CSS$V = {
|
|
9150
9153
|
actionGroupBottom: "action-group--bottom"
|
|
9151
9154
|
};
|
|
9152
|
-
const SLOTS$
|
|
9155
|
+
const SLOTS$r = {
|
|
9153
9156
|
bottomActions: "bottom-actions",
|
|
9154
9157
|
expandTooltip: "expand-tooltip"
|
|
9155
9158
|
};
|
|
@@ -9197,7 +9200,7 @@ class ActionBar {
|
|
|
9197
9200
|
const actions = queryActions(el);
|
|
9198
9201
|
const actionCount = expandDisabled ? actions.length : actions.length + 1;
|
|
9199
9202
|
const actionGroups = Array.from(el.querySelectorAll("calcite-action-group"));
|
|
9200
|
-
const groupCount = getSlotted(el, SLOTS$
|
|
9203
|
+
const groupCount = getSlotted(el, SLOTS$r.bottomActions) || !expandDisabled
|
|
9201
9204
|
? actionGroups.length + 1
|
|
9202
9205
|
: actionGroups.length;
|
|
9203
9206
|
const { actionHeight, actionWidth } = geActionDimensions(actions);
|
|
@@ -9316,11 +9319,11 @@ class ActionBar {
|
|
|
9316
9319
|
// --------------------------------------------------------------------------
|
|
9317
9320
|
renderBottomActionGroup() {
|
|
9318
9321
|
const { expanded, expandDisabled, el, position, toggleExpand, scale, layout, messages } = this;
|
|
9319
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
9322
|
+
const tooltip = getSlotted(el, SLOTS$r.expandTooltip);
|
|
9320
9323
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { el: el, expanded: expanded, intlCollapse: messages.collapse, intlExpand: messages.expand, position: position, scale: scale, toggle: toggleExpand, tooltip: tooltip,
|
|
9321
9324
|
// eslint-disable-next-line react/jsx-sort-props
|
|
9322
9325
|
ref: this.setExpandToggleRef })) : null;
|
|
9323
|
-
return getSlotted(el, SLOTS$
|
|
9326
|
+
return getSlotted(el, SLOTS$r.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$V.actionGroupBottom, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$r.bottomActions }), hAsync("slot", { name: SLOTS$r.expandTooltip }), expandToggleNode)) : null;
|
|
9324
9327
|
}
|
|
9325
9328
|
render() {
|
|
9326
9329
|
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("slot", null), this.renderBottomActionGroup()));
|
|
@@ -9396,6 +9399,16 @@ class ActionGroup {
|
|
|
9396
9399
|
effectiveLocaleChange() {
|
|
9397
9400
|
updateMessages(this, this.effectiveLocale);
|
|
9398
9401
|
}
|
|
9402
|
+
//--------------------------------------------------------------------------
|
|
9403
|
+
//
|
|
9404
|
+
// Public Methods
|
|
9405
|
+
//
|
|
9406
|
+
//--------------------------------------------------------------------------
|
|
9407
|
+
/** Sets focus on the component's first focusable element. */
|
|
9408
|
+
async setFocus() {
|
|
9409
|
+
await componentLoaded(this);
|
|
9410
|
+
this.el.focus();
|
|
9411
|
+
}
|
|
9399
9412
|
// --------------------------------------------------------------------------
|
|
9400
9413
|
//
|
|
9401
9414
|
// Lifecycle
|
|
@@ -9412,8 +9425,12 @@ class ActionGroup {
|
|
|
9412
9425
|
disconnectConditionalSlotComponent(this);
|
|
9413
9426
|
}
|
|
9414
9427
|
async componentWillLoad() {
|
|
9428
|
+
setUpLoadableComponent(this);
|
|
9415
9429
|
await setUpMessages(this);
|
|
9416
9430
|
}
|
|
9431
|
+
componentDidLoad() {
|
|
9432
|
+
setComponentLoaded(this);
|
|
9433
|
+
}
|
|
9417
9434
|
// --------------------------------------------------------------------------
|
|
9418
9435
|
//
|
|
9419
9436
|
// Component Methods
|
|
@@ -9421,13 +9438,13 @@ class ActionGroup {
|
|
|
9421
9438
|
// --------------------------------------------------------------------------
|
|
9422
9439
|
renderTooltip() {
|
|
9423
9440
|
const { el } = this;
|
|
9424
|
-
const hasTooltip = getSlotted(el, SLOTS$
|
|
9425
|
-
return hasTooltip ? hAsync("slot", { name: SLOTS$
|
|
9441
|
+
const hasTooltip = getSlotted(el, SLOTS$t.menuTooltip);
|
|
9442
|
+
return hasTooltip ? hAsync("slot", { name: SLOTS$t.menuTooltip, slot: SLOTS$s.tooltip }) : null;
|
|
9426
9443
|
}
|
|
9427
9444
|
renderMenu() {
|
|
9428
9445
|
const { el, expanded, menuOpen, scale, layout, messages } = this;
|
|
9429
|
-
const hasMenuItems = getSlotted(el, SLOTS$
|
|
9430
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: messages.more, onCalciteActionMenuOpen: this.setMenuOpen, open: menuOpen, placement: layout === "horizontal" ? "bottom-start" : "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$h.menu, scale: scale, slot: SLOTS$
|
|
9446
|
+
const hasMenuItems = getSlotted(el, SLOTS$t.menuActions);
|
|
9447
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: messages.more, onCalciteActionMenuOpen: this.setMenuOpen, open: menuOpen, placement: layout === "horizontal" ? "bottom-start" : "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$h.menu, scale: scale, slot: SLOTS$s.trigger, text: messages.more, textEnabled: expanded }), hAsync("slot", { name: SLOTS$t.menuActions }), this.renderTooltip())) : null;
|
|
9431
9448
|
}
|
|
9432
9449
|
render() {
|
|
9433
9450
|
return (hAsync(Fragment, null, hAsync("slot", null), this.renderMenu()));
|
|
@@ -9453,7 +9470,8 @@ class ActionGroup {
|
|
|
9453
9470
|
"messages": [1040],
|
|
9454
9471
|
"messageOverrides": [1040],
|
|
9455
9472
|
"effectiveLocale": [32],
|
|
9456
|
-
"defaultMessages": [32]
|
|
9473
|
+
"defaultMessages": [32],
|
|
9474
|
+
"setFocus": [64]
|
|
9457
9475
|
},
|
|
9458
9476
|
"$listeners$": undefined,
|
|
9459
9477
|
"$lazyBundleId$": "-",
|
|
@@ -9710,7 +9728,7 @@ class ActionMenu {
|
|
|
9710
9728
|
}
|
|
9711
9729
|
renderMenuButton() {
|
|
9712
9730
|
const { label, scale, expanded } = this;
|
|
9713
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$
|
|
9731
|
+
const menuButtonSlot = (hAsync("slot", { name: SLOTS$s.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { class: CSS$W.defaultTrigger, icon: ICONS$g.menu, scale: scale, text: label, textEnabled: expanded,
|
|
9714
9732
|
// eslint-disable-next-line react/jsx-sort-props
|
|
9715
9733
|
ref: this.setDefaultMenuButtonEl })));
|
|
9716
9734
|
return menuButtonSlot;
|
|
@@ -9719,10 +9737,10 @@ class ActionMenu {
|
|
|
9719
9737
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
|
|
9720
9738
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
9721
9739
|
const activeDescendantId = activeAction?.id || null;
|
|
9722
|
-
return (hAsync("calcite-popover", { flipPlacements: flipPlacements, focusTrapDisabled: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, pointerDisabled: true, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl?.id, class: CSS$
|
|
9740
|
+
return (hAsync("calcite-popover", { flipPlacements: flipPlacements, focusTrapDisabled: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, pointerDisabled: true, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl?.id, class: CSS$W.menu, id: menuId, onClick: this.handleCalciteActionClick, role: "menu", tabIndex: -1 }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
9723
9741
|
}
|
|
9724
9742
|
render() {
|
|
9725
|
-
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$
|
|
9743
|
+
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$s.tooltip, onSlotchange: this.updateTooltip })));
|
|
9726
9744
|
}
|
|
9727
9745
|
isValidKey(key, supportedKeys) {
|
|
9728
9746
|
return !!supportedKeys.find((k) => k === key);
|
|
@@ -9755,11 +9773,11 @@ class ActionMenu {
|
|
|
9755
9773
|
}; }
|
|
9756
9774
|
}
|
|
9757
9775
|
|
|
9758
|
-
const CSS$
|
|
9776
|
+
const CSS$U = {
|
|
9759
9777
|
actionGroupBottom: "action-group--bottom",
|
|
9760
9778
|
container: "container"
|
|
9761
9779
|
};
|
|
9762
|
-
const SLOTS$
|
|
9780
|
+
const SLOTS$q = {
|
|
9763
9781
|
expandTooltip: "expand-tooltip"
|
|
9764
9782
|
};
|
|
9765
9783
|
|
|
@@ -9857,14 +9875,14 @@ class ActionPad {
|
|
|
9857
9875
|
// --------------------------------------------------------------------------
|
|
9858
9876
|
renderBottomActionGroup() {
|
|
9859
9877
|
const { expanded, expandDisabled, messages, el, position, toggleExpand, scale, layout } = this;
|
|
9860
|
-
const tooltip = getSlotted(el, SLOTS$
|
|
9878
|
+
const tooltip = getSlotted(el, SLOTS$q.expandTooltip);
|
|
9861
9879
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { el: el, expanded: expanded, intlCollapse: messages.collapse, intlExpand: messages.expand, position: position, scale: scale, toggle: toggleExpand, tooltip: tooltip,
|
|
9862
9880
|
// eslint-disable-next-line react/jsx-sort-props
|
|
9863
9881
|
ref: this.setExpandToggleRef })) : null;
|
|
9864
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
9882
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$U.actionGroupBottom, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$q.expandTooltip }), expandToggleNode)) : null;
|
|
9865
9883
|
}
|
|
9866
9884
|
render() {
|
|
9867
|
-
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("div", { class: CSS$
|
|
9885
|
+
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("div", { class: CSS$U.container }, hAsync("slot", null), this.renderBottomActionGroup())));
|
|
9868
9886
|
}
|
|
9869
9887
|
static get delegatesFocus() { return true; }
|
|
9870
9888
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -9993,13 +10011,13 @@ const DURATIONS = {
|
|
|
9993
10011
|
medium: 10000,
|
|
9994
10012
|
fast: 6000
|
|
9995
10013
|
};
|
|
9996
|
-
const SLOTS$
|
|
10014
|
+
const SLOTS$p = {
|
|
9997
10015
|
actionsEnd: "actions-end",
|
|
9998
10016
|
title: "title",
|
|
9999
10017
|
message: "message",
|
|
10000
10018
|
link: "link"
|
|
10001
10019
|
};
|
|
10002
|
-
const CSS$
|
|
10020
|
+
const CSS$T = {
|
|
10003
10021
|
actionsEnd: "actions-end",
|
|
10004
10022
|
container: "container",
|
|
10005
10023
|
close: "alert-close",
|
|
@@ -10152,15 +10170,15 @@ class Alert {
|
|
|
10152
10170
|
const { open, autoClose, label, placement, queued, requestedIcon, iconFlipRtl } = this;
|
|
10153
10171
|
const role = autoClose ? "alert" : "alertdialog";
|
|
10154
10172
|
const hidden = !open;
|
|
10155
|
-
const slotNode = (hAsync("slot", { key: "actionsEndSlot", name: SLOTS$
|
|
10173
|
+
const slotNode = (hAsync("slot", { key: "actionsEndSlot", name: SLOTS$p.actionsEnd, onSlotchange: this.actionsEndSlotChangeHandler }));
|
|
10156
10174
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, hAsync("div", { class: {
|
|
10157
10175
|
container: true,
|
|
10158
10176
|
queued,
|
|
10159
10177
|
[placement]: true,
|
|
10160
|
-
[CSS$
|
|
10178
|
+
[CSS$T.slottedInShell]: this.slottedInShell
|
|
10161
10179
|
}, onPointerEnter: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseOver : null, onPointerLeave: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseLeave : null,
|
|
10162
10180
|
// eslint-disable-next-line react/jsx-sort-props
|
|
10163
|
-
ref: this.setTransitionEl }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$
|
|
10181
|
+
ref: this.setTransitionEl }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$p.title }), hAsync("slot", { name: SLOTS$p.message }), hAsync("slot", { name: SLOTS$p.link })), hAsync("div", { class: CSS$T.actionsEnd, hidden: !hasEndActions }, slotNode), this.queueLength > 1 ? queueCount : null, closeButton, open && !queued && autoClose ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
10164
10182
|
}
|
|
10165
10183
|
// when an alert is opened or closed, update queue and determine active alert
|
|
10166
10184
|
alertSync(event) {
|
|
@@ -10535,7 +10553,7 @@ const Heading = (props, children) => {
|
|
|
10535
10553
|
return hAsync(HeadingTag, { ...props }, children);
|
|
10536
10554
|
};
|
|
10537
10555
|
|
|
10538
|
-
const CSS$
|
|
10556
|
+
const CSS$S = {
|
|
10539
10557
|
container: "container",
|
|
10540
10558
|
content: "content",
|
|
10541
10559
|
headerContainer: "header-container",
|
|
@@ -10554,7 +10572,7 @@ const CSS$R = {
|
|
|
10554
10572
|
invalid: "invalid",
|
|
10555
10573
|
loading: "loading"
|
|
10556
10574
|
};
|
|
10557
|
-
const SLOTS$
|
|
10575
|
+
const SLOTS$o = {
|
|
10558
10576
|
icon: "icon",
|
|
10559
10577
|
control: "control",
|
|
10560
10578
|
headerMenuActions: "header-menu-actions"
|
|
@@ -10644,33 +10662,33 @@ class Block {
|
|
|
10644
10662
|
const { el, status } = this;
|
|
10645
10663
|
const showingLoadingStatus = this.loading && !this.open;
|
|
10646
10664
|
const statusIcon = showingLoadingStatus ? ICONS$e.refresh : ICONS$e[status];
|
|
10647
|
-
const hasIcon = getSlotted(el, SLOTS$
|
|
10648
|
-
const iconEl = !statusIcon ? (hAsync("slot", { key: "icon-slot", name: SLOTS$
|
|
10649
|
-
[CSS$
|
|
10650
|
-
[CSS$
|
|
10651
|
-
[CSS$
|
|
10652
|
-
[CSS$
|
|
10665
|
+
const hasIcon = getSlotted(el, SLOTS$o.icon) || statusIcon;
|
|
10666
|
+
const iconEl = !statusIcon ? (hAsync("slot", { key: "icon-slot", name: SLOTS$o.icon })) : (hAsync("calcite-icon", { class: {
|
|
10667
|
+
[CSS$S.statusIcon]: true,
|
|
10668
|
+
[CSS$S.valid]: status == "valid",
|
|
10669
|
+
[CSS$S.invalid]: status == "invalid",
|
|
10670
|
+
[CSS$S.loading]: showingLoadingStatus
|
|
10653
10671
|
}, icon: statusIcon, scale: "m" }));
|
|
10654
|
-
return hasIcon ? hAsync("div", { class: CSS$
|
|
10672
|
+
return hasIcon ? hAsync("div", { class: CSS$S.icon }, iconEl) : null;
|
|
10655
10673
|
}
|
|
10656
10674
|
renderTitle() {
|
|
10657
10675
|
const { heading, headingLevel, description } = this;
|
|
10658
|
-
return heading || description ? (hAsync("div", { class: CSS$
|
|
10676
|
+
return heading || description ? (hAsync("div", { class: CSS$S.title }, hAsync(Heading, { class: CSS$S.heading, level: headingLevel }, heading), description ? hAsync("div", { class: CSS$S.description }, description) : null)) : null;
|
|
10659
10677
|
}
|
|
10660
10678
|
render() {
|
|
10661
10679
|
const { collapsible, el, loading, open, messages } = this;
|
|
10662
10680
|
const toggleLabel = open ? messages.collapse : messages.expand;
|
|
10663
|
-
const headerContent = (hAsync("header", { class: CSS$
|
|
10664
|
-
const hasControl = !!getSlotted(el, SLOTS$
|
|
10665
|
-
const hasMenuActions = !!getSlotted(el, SLOTS$
|
|
10681
|
+
const headerContent = (hAsync("header", { class: CSS$S.header }, this.renderIcon(), this.renderTitle()));
|
|
10682
|
+
const hasControl = !!getSlotted(el, SLOTS$o.control);
|
|
10683
|
+
const hasMenuActions = !!getSlotted(el, SLOTS$o.headerMenuActions);
|
|
10666
10684
|
const collapseIcon = open ? ICONS$e.opened : ICONS$e.closed;
|
|
10667
10685
|
const { guid } = this;
|
|
10668
10686
|
const regionId = `${guid}-region`;
|
|
10669
10687
|
const buttonId = `${guid}-button`;
|
|
10670
|
-
const headerNode = (hAsync("div", { class: CSS$
|
|
10688
|
+
const headerNode = (hAsync("div", { class: CSS$S.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-controls": regionId, "aria-expanded": collapsible ? toAriaBoolean(open) : null, "aria-label": toggleLabel, class: CSS$S.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$S.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, label: messages.loading })) : hasControl ? (hAsync("div", { class: CSS$S.controlContainer }, hAsync("slot", { name: SLOTS$o.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: messages.options }, hAsync("slot", { name: SLOTS$o.headerMenuActions }))) : null));
|
|
10671
10689
|
return (hAsync(Host, null, hAsync("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
10672
|
-
[CSS$
|
|
10673
|
-
} }, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$
|
|
10690
|
+
[CSS$S.container]: true
|
|
10691
|
+
} }, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$S.content, hidden: !open, id: regionId }, this.renderScrim()))));
|
|
10674
10692
|
}
|
|
10675
10693
|
static get assetsDirs() { return ["assets"]; }
|
|
10676
10694
|
get el() { return getElement(this); }
|
|
@@ -10703,7 +10721,7 @@ class Block {
|
|
|
10703
10721
|
}; }
|
|
10704
10722
|
}
|
|
10705
10723
|
|
|
10706
|
-
const CSS$
|
|
10724
|
+
const CSS$R = {
|
|
10707
10725
|
content: "content",
|
|
10708
10726
|
invalid: "invalid",
|
|
10709
10727
|
toggle: "toggle",
|
|
@@ -10789,9 +10807,9 @@ class BlockSection {
|
|
|
10789
10807
|
const { status } = this;
|
|
10790
10808
|
const statusIcon = ICONS$d[status] ?? false;
|
|
10791
10809
|
const statusIconClasses = {
|
|
10792
|
-
[CSS$
|
|
10793
|
-
[CSS$
|
|
10794
|
-
[CSS$
|
|
10810
|
+
[CSS$R.statusIcon]: true,
|
|
10811
|
+
[CSS$R.valid]: status == "valid",
|
|
10812
|
+
[CSS$R.invalid]: status == "invalid"
|
|
10795
10813
|
};
|
|
10796
10814
|
return !!statusIcon ? (hAsync("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
10797
10815
|
}
|
|
@@ -10808,13 +10826,13 @@ class BlockSection {
|
|
|
10808
10826
|
const regionId = `${guid}-region`;
|
|
10809
10827
|
const buttonId = `${guid}-button`;
|
|
10810
10828
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
10811
|
-
[CSS$
|
|
10812
|
-
[CSS$
|
|
10813
|
-
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$
|
|
10814
|
-
[CSS$
|
|
10815
|
-
[CSS$
|
|
10816
|
-
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$
|
|
10817
|
-
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$
|
|
10829
|
+
[CSS$R.toggle]: true,
|
|
10830
|
+
[CSS$R.toggleSwitch]: true
|
|
10831
|
+
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$R.toggleSwitchContent }, hAsync("span", { class: CSS$R.toggleSwitchText }, text)), hAsync("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (hAsync("button", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
10832
|
+
[CSS$R.sectionHeader]: true,
|
|
10833
|
+
[CSS$R.toggle]: true
|
|
10834
|
+
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$R.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
10835
|
+
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$R.content, hidden: !open, id: regionId }, hAsync("slot", null))));
|
|
10818
10836
|
}
|
|
10819
10837
|
static get assetsDirs() { return ["assets"]; }
|
|
10820
10838
|
get el() { return getElement(this); }
|
|
@@ -10879,7 +10897,18 @@ function isCheckable(component) {
|
|
|
10879
10897
|
}
|
|
10880
10898
|
const onFormResetMap = new WeakMap();
|
|
10881
10899
|
const formComponentSet = new WeakSet();
|
|
10900
|
+
/**
|
|
10901
|
+
* This helps determine if our form component is part of a composite form-associated component.
|
|
10902
|
+
*
|
|
10903
|
+
* @param form
|
|
10904
|
+
* @param formComponentEl
|
|
10905
|
+
*/
|
|
10882
10906
|
function hasRegisteredFormComponentParent(form, formComponentEl) {
|
|
10907
|
+
// if we have a parent component using the form ID attribute, we assume it is form-associated
|
|
10908
|
+
const hasParentComponentWithFormIdSet = closestElementCrossShadowBoundary(formComponentEl.parentElement, "[form]");
|
|
10909
|
+
if (hasParentComponentWithFormIdSet) {
|
|
10910
|
+
return true;
|
|
10911
|
+
}
|
|
10883
10912
|
// we use events as a way to test for nested form-associated components across shadow bounds
|
|
10884
10913
|
const formComponentRegisterEventName = "calciteInternalFormComponentRegister";
|
|
10885
10914
|
let hasRegisteredFormComponentParent = false;
|
|
@@ -10924,20 +10953,31 @@ function resetForm(component) {
|
|
|
10924
10953
|
*/
|
|
10925
10954
|
function connectForm(component) {
|
|
10926
10955
|
const { el, value } = component;
|
|
10927
|
-
const
|
|
10928
|
-
if (!
|
|
10956
|
+
const associatedForm = findAssociatedForm(component);
|
|
10957
|
+
if (!associatedForm || hasRegisteredFormComponentParent(associatedForm, el)) {
|
|
10929
10958
|
return;
|
|
10930
10959
|
}
|
|
10931
|
-
component.formEl =
|
|
10960
|
+
component.formEl = associatedForm;
|
|
10932
10961
|
component.defaultValue = value;
|
|
10933
10962
|
if (isCheckable(component)) {
|
|
10934
10963
|
component.defaultChecked = component.checked;
|
|
10935
10964
|
}
|
|
10936
10965
|
const boundOnFormReset = (component.onFormReset || onFormReset).bind(component);
|
|
10937
|
-
|
|
10966
|
+
associatedForm.addEventListener("reset", boundOnFormReset);
|
|
10938
10967
|
onFormResetMap.set(component.el, boundOnFormReset);
|
|
10939
10968
|
formComponentSet.add(el);
|
|
10940
10969
|
}
|
|
10970
|
+
/**
|
|
10971
|
+
* Utility method to find a form-component's associated form element.
|
|
10972
|
+
*
|
|
10973
|
+
* @param component
|
|
10974
|
+
*/
|
|
10975
|
+
function findAssociatedForm(component) {
|
|
10976
|
+
const { el, form } = component;
|
|
10977
|
+
return form
|
|
10978
|
+
? queryElementRoots(el, { id: form })
|
|
10979
|
+
: closestElementCrossShadowBoundary(el, "form");
|
|
10980
|
+
}
|
|
10941
10981
|
function onFormReset() {
|
|
10942
10982
|
if (isCheckable(this)) {
|
|
10943
10983
|
this.checked = this.defaultChecked;
|
|
@@ -11036,13 +11076,20 @@ function syncHiddenFormInput(component) {
|
|
|
11036
11076
|
});
|
|
11037
11077
|
}
|
|
11038
11078
|
function defaultSyncHiddenFormInput(component, input, value) {
|
|
11039
|
-
const { defaultValue, disabled, name, required } = component;
|
|
11079
|
+
const { defaultValue, disabled, form, name, required } = component;
|
|
11040
11080
|
// keep in sync to prevent losing reset value
|
|
11041
11081
|
input.defaultValue = defaultValue;
|
|
11042
11082
|
input.disabled = disabled;
|
|
11043
11083
|
input.name = name;
|
|
11044
11084
|
input.required = required;
|
|
11045
11085
|
input.tabIndex = -1;
|
|
11086
|
+
// we set the attr as the prop is read-only
|
|
11087
|
+
if (form) {
|
|
11088
|
+
input.setAttribute("form", form);
|
|
11089
|
+
}
|
|
11090
|
+
else {
|
|
11091
|
+
input.removeAttribute("form");
|
|
11092
|
+
}
|
|
11046
11093
|
if (isCheckable(component)) {
|
|
11047
11094
|
input.checked = component.checked;
|
|
11048
11095
|
// keep in sync to prevent losing reset value
|
|
@@ -11196,7 +11243,7 @@ function onLabelDisconnected() {
|
|
|
11196
11243
|
document.addEventListener(labelConnectedEvent, boundOnLabelConnected);
|
|
11197
11244
|
}
|
|
11198
11245
|
|
|
11199
|
-
const CSS$
|
|
11246
|
+
const CSS$Q = {
|
|
11200
11247
|
buttonLoader: "calcite-button--loader",
|
|
11201
11248
|
content: "content",
|
|
11202
11249
|
contentSlotted: "content--slotted",
|
|
@@ -11240,6 +11287,7 @@ class Button {
|
|
|
11240
11287
|
this.label = undefined;
|
|
11241
11288
|
this.kind = "brand";
|
|
11242
11289
|
this.disabled = false;
|
|
11290
|
+
this.form = undefined;
|
|
11243
11291
|
this.href = undefined;
|
|
11244
11292
|
this.iconEnd = undefined;
|
|
11245
11293
|
this.iconFlipRtl = undefined;
|
|
@@ -11284,7 +11332,7 @@ class Button {
|
|
|
11284
11332
|
this.hasLoader = this.loading;
|
|
11285
11333
|
this.setupTextContentObserver();
|
|
11286
11334
|
connectLabel(this);
|
|
11287
|
-
this.formEl =
|
|
11335
|
+
this.formEl = findAssociatedForm(this);
|
|
11288
11336
|
}
|
|
11289
11337
|
disconnectedCallback() {
|
|
11290
11338
|
this.mutationObserver?.disconnect();
|
|
@@ -11305,17 +11353,17 @@ class Button {
|
|
|
11305
11353
|
render() {
|
|
11306
11354
|
const childElType = this.href ? "a" : "button";
|
|
11307
11355
|
const Tag = childElType;
|
|
11308
|
-
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$
|
|
11356
|
+
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$Q.buttonLoader }, hAsync("calcite-loader", { class: this.loading ? CSS$Q.loadingIn : CSS$Q.loadingOut, inline: true, label: this.messages.loading, scale: this.scale === "l" ? "m" : "s" }))) : null;
|
|
11309
11357
|
const noStartEndIcons = !this.iconStart && !this.iconEnd;
|
|
11310
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
11311
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
11312
|
-
const contentEl = (hAsync("span", { class: CSS$
|
|
11358
|
+
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$Q.icon]: true, [CSS$Q.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: this.scale === "l" ? "m" : "s" }));
|
|
11359
|
+
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$Q.icon]: true, [CSS$Q.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: this.scale === "l" ? "m" : "s" }));
|
|
11360
|
+
const contentEl = (hAsync("span", { class: CSS$Q.content }, hAsync("slot", null)));
|
|
11313
11361
|
return (hAsync(Tag, { "aria-label": getLabelText(this), class: {
|
|
11314
|
-
[CSS$
|
|
11315
|
-
[CSS$
|
|
11316
|
-
[CSS$
|
|
11317
|
-
[CSS$
|
|
11318
|
-
[CSS$
|
|
11362
|
+
[CSS$Q.buttonPadding]: noStartEndIcons,
|
|
11363
|
+
[CSS$Q.buttonPaddingShrunk]: !noStartEndIcons,
|
|
11364
|
+
[CSS$Q.contentSlotted]: this.hasContent,
|
|
11365
|
+
[CSS$Q.iconStartEmpty]: !this.iconStart,
|
|
11366
|
+
[CSS$Q.iconEndEmpty]: !this.iconEnd
|
|
11319
11367
|
}, disabled: this.disabled || this.loading, href: childElType === "a" && this.href, name: childElType === "button" && this.name, onClick: this.handleClick, rel: childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: childElType === "a" && this.target, type: childElType === "button" && this.type,
|
|
11320
11368
|
// eslint-disable-next-line react/jsx-sort-props
|
|
11321
11369
|
ref: (el) => (this.childEl = el) }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
@@ -11369,6 +11417,7 @@ class Button {
|
|
|
11369
11417
|
"label": [1],
|
|
11370
11418
|
"kind": [513],
|
|
11371
11419
|
"disabled": [516],
|
|
11420
|
+
"form": [513],
|
|
11372
11421
|
"href": [513],
|
|
11373
11422
|
"iconEnd": [513, "icon-end"],
|
|
11374
11423
|
"iconFlipRtl": [513, "icon-flip-rtl"],
|
|
@@ -11392,11 +11441,11 @@ class Button {
|
|
|
11392
11441
|
},
|
|
11393
11442
|
"$listeners$": undefined,
|
|
11394
11443
|
"$lazyBundleId$": "-",
|
|
11395
|
-
"$attrsToReflect$": [["alignment", "alignment"], ["appearance", "appearance"], ["kind", "kind"], ["disabled", "disabled"], ["href", "href"], ["iconEnd", "icon-end"], ["iconFlipRtl", "icon-flip-rtl"], ["iconStart", "icon-start"], ["loading", "loading"], ["name", "name"], ["rel", "rel"], ["round", "round"], ["scale", "scale"], ["splitChild", "split-child"], ["target", "target"], ["type", "type"], ["width", "width"]]
|
|
11444
|
+
"$attrsToReflect$": [["alignment", "alignment"], ["appearance", "appearance"], ["kind", "kind"], ["disabled", "disabled"], ["form", "form"], ["href", "href"], ["iconEnd", "icon-end"], ["iconFlipRtl", "icon-flip-rtl"], ["iconStart", "icon-start"], ["loading", "loading"], ["name", "name"], ["rel", "rel"], ["round", "round"], ["scale", "scale"], ["splitChild", "split-child"], ["target", "target"], ["type", "type"], ["width", "width"]]
|
|
11396
11445
|
}; }
|
|
11397
11446
|
}
|
|
11398
11447
|
|
|
11399
|
-
const CSS$
|
|
11448
|
+
const CSS$P = {
|
|
11400
11449
|
container: "container",
|
|
11401
11450
|
header: "header",
|
|
11402
11451
|
footer: "footer",
|
|
@@ -11405,7 +11454,7 @@ const CSS$O = {
|
|
|
11405
11454
|
checkboxWrapper: "checkbox-wrapper",
|
|
11406
11455
|
thumbnailWrapper: "thumbnail-wrapper"
|
|
11407
11456
|
};
|
|
11408
|
-
const SLOTS$
|
|
11457
|
+
const SLOTS$n = {
|
|
11409
11458
|
thumbnail: "thumbnail",
|
|
11410
11459
|
title: "title",
|
|
11411
11460
|
subtitle: "subtitle",
|
|
@@ -11481,7 +11530,7 @@ class Card {
|
|
|
11481
11530
|
render() {
|
|
11482
11531
|
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
|
11483
11532
|
const thumbnailStart = this.thumbnailPosition.endsWith("start");
|
|
11484
|
-
return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { label: this.messages.loading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$
|
|
11533
|
+
return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { label: this.messages.loading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$P.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
|
|
11485
11534
|
}
|
|
11486
11535
|
effectiveLocaleChange() {
|
|
11487
11536
|
updateMessages(this, this.effectiveLocale);
|
|
@@ -11491,25 +11540,24 @@ class Card {
|
|
|
11491
11540
|
this.calciteCardSelect.emit();
|
|
11492
11541
|
}
|
|
11493
11542
|
renderThumbnail() {
|
|
11494
|
-
return getSlotted(this.el, SLOTS$
|
|
11543
|
+
return getSlotted(this.el, SLOTS$n.thumbnail) ? (hAsync("section", { class: CSS$P.thumbnailWrapper }, hAsync("slot", { name: SLOTS$n.thumbnail }))) : null;
|
|
11495
11544
|
}
|
|
11496
11545
|
renderCheckbox() {
|
|
11497
|
-
|
|
11498
|
-
return (hAsync("calcite-label", { class: CSS$O.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
11546
|
+
return (hAsync("calcite-label", { class: CSS$P.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: this.messages.select })));
|
|
11499
11547
|
}
|
|
11500
11548
|
renderHeader() {
|
|
11501
11549
|
const { el } = this;
|
|
11502
|
-
const title = getSlotted(el, SLOTS$
|
|
11503
|
-
const subtitle = getSlotted(el, SLOTS$
|
|
11550
|
+
const title = getSlotted(el, SLOTS$n.title);
|
|
11551
|
+
const subtitle = getSlotted(el, SLOTS$n.subtitle);
|
|
11504
11552
|
const hasHeader = title || subtitle;
|
|
11505
|
-
return hasHeader ? (hAsync("header", { class: CSS$
|
|
11553
|
+
return hasHeader ? (hAsync("header", { class: CSS$P.header }, hAsync("slot", { name: SLOTS$n.title }), hAsync("slot", { name: SLOTS$n.subtitle }))) : null;
|
|
11506
11554
|
}
|
|
11507
11555
|
renderFooter() {
|
|
11508
11556
|
const { el } = this;
|
|
11509
|
-
const startFooter = getSlotted(el, SLOTS$
|
|
11510
|
-
const endFooter = getSlotted(el, SLOTS$
|
|
11557
|
+
const startFooter = getSlotted(el, SLOTS$n.footerStart);
|
|
11558
|
+
const endFooter = getSlotted(el, SLOTS$n.footerEnd);
|
|
11511
11559
|
const hasFooter = startFooter || endFooter;
|
|
11512
|
-
return hasFooter ? (hAsync("footer", { class: CSS$
|
|
11560
|
+
return hasFooter ? (hAsync("footer", { class: CSS$P.footer }, hAsync("slot", { name: SLOTS$n.footerStart }), hAsync("slot", { name: SLOTS$n.footerEnd }))) : null;
|
|
11513
11561
|
}
|
|
11514
11562
|
static get assetsDirs() { return ["assets"]; }
|
|
11515
11563
|
get el() { return getElement(this); }
|
|
@@ -11586,6 +11634,7 @@ class Checkbox {
|
|
|
11586
11634
|
};
|
|
11587
11635
|
this.checked = false;
|
|
11588
11636
|
this.disabled = false;
|
|
11637
|
+
this.form = undefined;
|
|
11589
11638
|
this.guid = undefined;
|
|
11590
11639
|
this.hovered = false;
|
|
11591
11640
|
this.indeterminate = false;
|
|
@@ -11654,6 +11703,7 @@ class Checkbox {
|
|
|
11654
11703
|
"$members$": {
|
|
11655
11704
|
"checked": [1540],
|
|
11656
11705
|
"disabled": [516],
|
|
11706
|
+
"form": [513],
|
|
11657
11707
|
"guid": [1537],
|
|
11658
11708
|
"hovered": [516],
|
|
11659
11709
|
"indeterminate": [1540],
|
|
@@ -11666,11 +11716,11 @@ class Checkbox {
|
|
|
11666
11716
|
},
|
|
11667
11717
|
"$listeners$": undefined,
|
|
11668
11718
|
"$lazyBundleId$": "-",
|
|
11669
|
-
"$attrsToReflect$": [["checked", "checked"], ["disabled", "disabled"], ["guid", "guid"], ["hovered", "hovered"], ["indeterminate", "indeterminate"], ["name", "name"], ["required", "required"], ["scale", "scale"]]
|
|
11719
|
+
"$attrsToReflect$": [["checked", "checked"], ["disabled", "disabled"], ["form", "form"], ["guid", "guid"], ["hovered", "hovered"], ["indeterminate", "indeterminate"], ["name", "name"], ["required", "required"], ["scale", "scale"]]
|
|
11670
11720
|
}; }
|
|
11671
11721
|
}
|
|
11672
11722
|
|
|
11673
|
-
const CSS$
|
|
11723
|
+
const CSS$O = {
|
|
11674
11724
|
title: "title",
|
|
11675
11725
|
close: "close",
|
|
11676
11726
|
imageContainer: "image-container",
|
|
@@ -11680,7 +11730,7 @@ const CSS$N = {
|
|
|
11680
11730
|
container: "container",
|
|
11681
11731
|
imageSlotted: "image--slotted"
|
|
11682
11732
|
};
|
|
11683
|
-
const SLOTS$
|
|
11733
|
+
const SLOTS$m = {
|
|
11684
11734
|
image: "image"
|
|
11685
11735
|
};
|
|
11686
11736
|
const ICONS$c = {
|
|
@@ -11787,18 +11837,18 @@ class Chip {
|
|
|
11787
11837
|
//
|
|
11788
11838
|
//--------------------------------------------------------------------------
|
|
11789
11839
|
renderChipImage() {
|
|
11790
|
-
return (hAsync("div", { class: CSS$
|
|
11840
|
+
return (hAsync("div", { class: CSS$O.imageContainer, key: "image" }, hAsync("slot", { name: SLOTS$m.image, onSlotchange: this.handleSlotImageChange })));
|
|
11791
11841
|
}
|
|
11792
11842
|
render() {
|
|
11793
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
11794
|
-
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.messages.dismissLabel, class: CSS$
|
|
11843
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$O.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: this.scale === "l" ? "m" : "s" }));
|
|
11844
|
+
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.messages.dismissLabel, class: CSS$O.close, onClick: this.closeClickHandler,
|
|
11795
11845
|
// eslint-disable-next-line react/jsx-sort-props
|
|
11796
|
-
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { class: CSS$
|
|
11846
|
+
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { class: CSS$O.closeIcon, icon: ICONS$c.close, scale: this.scale === "l" ? "m" : "s" })));
|
|
11797
11847
|
return (hAsync("div", { class: {
|
|
11798
|
-
[CSS$
|
|
11799
|
-
[CSS$
|
|
11800
|
-
[CSS$
|
|
11801
|
-
} }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$
|
|
11848
|
+
[CSS$O.container]: true,
|
|
11849
|
+
[CSS$O.contentSlotted]: this.hasContent,
|
|
11850
|
+
[CSS$O.imageSlotted]: this.hasImage
|
|
11851
|
+
} }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$O.title, id: this.guid }, hAsync("slot", null)), this.closable ? closeButton : null));
|
|
11802
11852
|
}
|
|
11803
11853
|
static get assetsDirs() { return ["assets"]; }
|
|
11804
11854
|
get el() { return getElement(this); }
|
|
@@ -13943,7 +13993,7 @@ function zeroArray(array, length) {
|
|
|
13943
13993
|
|
|
13944
13994
|
var color = Color;
|
|
13945
13995
|
|
|
13946
|
-
const CSS$
|
|
13996
|
+
const CSS$N = {
|
|
13947
13997
|
container: "container",
|
|
13948
13998
|
controlSection: "control-section",
|
|
13949
13999
|
hexOptions: "color-hex-options",
|
|
@@ -14297,7 +14347,7 @@ class ColorPicker {
|
|
|
14297
14347
|
const { channelMode: activeChannelMode, messages } = this;
|
|
14298
14348
|
const selected = channelMode === activeChannelMode;
|
|
14299
14349
|
const label = channelMode === "rgb" ? messages.rgb : messages.hsv;
|
|
14300
|
-
return (hAsync("calcite-tab-title", { class: CSS$
|
|
14350
|
+
return (hAsync("calcite-tab-title", { class: CSS$N.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate, selected: selected }, label));
|
|
14301
14351
|
};
|
|
14302
14352
|
this.renderChannelsTab = (channelMode) => {
|
|
14303
14353
|
const { channelMode: activeChannelMode, channels, messages } = this;
|
|
@@ -14310,11 +14360,11 @@ class ColorPicker {
|
|
|
14310
14360
|
? [messages.red, messages.green, messages.blue]
|
|
14311
14361
|
: [messages.hue, messages.saturation, messages.value];
|
|
14312
14362
|
const direction = getElementDir(this.el);
|
|
14313
|
-
return (hAsync("calcite-tab", { class: CSS$
|
|
14363
|
+
return (hAsync("calcite-tab", { class: CSS$N.control, key: channelMode, selected: selected }, hAsync("div", { class: CSS$N.channels, dir: "ltr" }, channels.map((channel, index) =>
|
|
14314
14364
|
/* the channel container is ltr, so we apply the host's direction */
|
|
14315
14365
|
this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
|
|
14316
14366
|
};
|
|
14317
|
-
this.renderChannel = (value, index, label, ariaLabel, direction) => (hAsync("calcite-input", { class: CSS$
|
|
14367
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (hAsync("calcite-input", { class: CSS$N.channel, "data-channel-index": index, dir: direction, label: ariaLabel, lang: this.effectiveLocale, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputChange: this.handleChannelChange, onCalciteInputInput: this.handleChannelInput, onKeyDown: this.handleKeyDown, prefixText: label, scale: this.scale === "l" ? "m" : "s", type: "number", value: value?.toString() }));
|
|
14318
14368
|
this.deleteColor = () => {
|
|
14319
14369
|
const colorToDelete = this.color.hex();
|
|
14320
14370
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -14447,7 +14497,7 @@ class ColorPicker {
|
|
|
14447
14497
|
this.shiftKeyChannelAdjustment = 0;
|
|
14448
14498
|
const { key } = event;
|
|
14449
14499
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
14450
|
-
!event.composedPath().some((node) => node.classList?.contains(CSS$
|
|
14500
|
+
!event.composedPath().some((node) => node.classList?.contains(CSS$N.channel))) {
|
|
14451
14501
|
return;
|
|
14452
14502
|
}
|
|
14453
14503
|
const { shiftKey } = event;
|
|
@@ -14530,26 +14580,26 @@ class ColorPicker {
|
|
|
14530
14580
|
const hueLeft = hueScopeLeft ?? (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
14531
14581
|
const noColor = color === null;
|
|
14532
14582
|
const vertical = scopeOrientation === "vertical";
|
|
14533
|
-
return (hAsync("div", { class: CSS$
|
|
14534
|
-
[CSS$
|
|
14535
|
-
[CSS$
|
|
14583
|
+
return (hAsync("div", { class: CSS$N.container }, hAsync("div", { class: CSS$N.colorFieldAndSliderWrap }, hAsync("canvas", { class: {
|
|
14584
|
+
[CSS$N.colorFieldAndSlider]: true,
|
|
14585
|
+
[CSS$N.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
14536
14586
|
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove,
|
|
14537
14587
|
// eslint-disable-next-line react/jsx-sort-props
|
|
14538
|
-
ref: this.initColorFieldAndSlider }), hAsync("div", { "aria-label": vertical ? messages.value : messages.saturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color?.saturationv() : color?.value()) || "0", class: { [CSS$
|
|
14588
|
+
ref: this.initColorFieldAndSlider }), hAsync("div", { "aria-label": vertical ? messages.value : messages.saturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color?.saturationv() : color?.value()) || "0", class: { [CSS$N.scope]: true, [CSS$N.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0",
|
|
14539
14589
|
// eslint-disable-next-line react/jsx-sort-props
|
|
14540
|
-
ref: this.storeColorFieldScope }), hAsync("div", { "aria-label": messages.hue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": color?.round().hue() || DEFAULT_COLOR$1.round().hue(), class: { [CSS$
|
|
14590
|
+
ref: this.storeColorFieldScope }), hAsync("div", { "aria-label": messages.hue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": color?.round().hue() || DEFAULT_COLOR$1.round().hue(), class: { [CSS$N.scope]: true, [CSS$N.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0",
|
|
14541
14591
|
// eslint-disable-next-line react/jsx-sort-props
|
|
14542
14592
|
ref: this.storeHueScope })), hideHex && hideChannels ? null : (hAsync("div", { class: {
|
|
14543
|
-
[CSS$
|
|
14544
|
-
[CSS$
|
|
14545
|
-
} }, hideHex ? null : (hAsync("div", { class: CSS$
|
|
14546
|
-
[CSS$
|
|
14547
|
-
[CSS$
|
|
14548
|
-
} }, messages.hex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
14549
|
-
[CSS$
|
|
14550
|
-
[CSS$
|
|
14551
|
-
}, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "title-group" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$
|
|
14552
|
-
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
14593
|
+
[CSS$N.controlSection]: true,
|
|
14594
|
+
[CSS$N.section]: true
|
|
14595
|
+
} }, hideHex ? null : (hAsync("div", { class: CSS$N.hexOptions }, hAsync("span", { class: {
|
|
14596
|
+
[CSS$N.header]: true,
|
|
14597
|
+
[CSS$N.headerHex]: true
|
|
14598
|
+
} }, messages.hex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$N.control, hexLabel: messages.hex, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (hAsync("calcite-tabs", { class: {
|
|
14599
|
+
[CSS$N.colorModeContainer]: true,
|
|
14600
|
+
[CSS$N.splitSection]: true
|
|
14601
|
+
}, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "title-group" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$N.savedColorsSection]: true, [CSS$N.section]: true } }, hAsync("div", { class: CSS$N.header }, hAsync("label", null, messages.saved), hAsync("div", { class: CSS$N.savedColorsButtons }, hAsync("calcite-button", { appearance: "transparent", class: CSS$N.deleteColor, disabled: noColor, iconStart: "minus", kind: "neutral", label: messages.deleteColor, onClick: this.deleteColor, scale: hexInputScale, type: "button" }), hAsync("calcite-button", { appearance: "transparent", class: CSS$N.saveColor, disabled: noColor, iconStart: "plus", kind: "neutral", label: messages.saveColor, onClick: this.saveColor, scale: hexInputScale, type: "button" }))), savedColors.length > 0 ? (hAsync("div", { class: CSS$N.savedColors }, [
|
|
14602
|
+
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$N.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
|
14553
14603
|
])) : null))));
|
|
14554
14604
|
}
|
|
14555
14605
|
// --------------------------------------------------------------------------
|
|
@@ -14783,7 +14833,7 @@ class ColorPicker {
|
|
|
14783
14833
|
}; }
|
|
14784
14834
|
}
|
|
14785
14835
|
|
|
14786
|
-
const CSS$
|
|
14836
|
+
const CSS$M = {
|
|
14787
14837
|
container: "container",
|
|
14788
14838
|
preview: "preview",
|
|
14789
14839
|
input: "input"
|
|
@@ -14896,9 +14946,9 @@ class ColorPickerHexInput {
|
|
|
14896
14946
|
render() {
|
|
14897
14947
|
const { value } = this;
|
|
14898
14948
|
const hexInputValue = this.formatForInternalInput(value);
|
|
14899
|
-
return (hAsync("div", { class: CSS$
|
|
14949
|
+
return (hAsync("div", { class: CSS$M.container }, hAsync("calcite-input", { class: CSS$M.input, label: this.hexLabel, maxLength: 6, numberingSystem: this.numberingSystem, onCalciteInputChange: this.onInputChange, onCalciteInternalInputBlur: this.onCalciteInternalInputBlur, onKeyDown: this.handleKeyDown, onPaste: this.onPaste, prefixText: "#", scale: this.scale, value: hexInputValue,
|
|
14900
14950
|
// eslint-disable-next-line react/jsx-sort-props
|
|
14901
|
-
ref: this.storeInputRef }), hexInputValue ? (hAsync("calcite-color-picker-swatch", { active: true, class: CSS$
|
|
14951
|
+
ref: this.storeInputRef }), hexInputValue ? (hAsync("calcite-color-picker-swatch", { active: true, class: CSS$M.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
14902
14952
|
}
|
|
14903
14953
|
//--------------------------------------------------------------------------
|
|
14904
14954
|
//
|
|
@@ -14974,7 +15024,7 @@ class ColorPickerHexInput {
|
|
|
14974
15024
|
}; }
|
|
14975
15025
|
}
|
|
14976
15026
|
|
|
14977
|
-
const CSS$
|
|
15027
|
+
const CSS$L = {
|
|
14978
15028
|
swatch: "swatch",
|
|
14979
15029
|
noColorIcon: "no-color-icon"
|
|
14980
15030
|
};
|
|
@@ -15009,7 +15059,7 @@ class ColorPickerSwatch {
|
|
|
15009
15059
|
const hex = internalColor.hex();
|
|
15010
15060
|
const theme = getModeName(el);
|
|
15011
15061
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
15012
|
-
return (hAsync("svg", { class: CSS$
|
|
15062
|
+
return (hAsync("svg", { class: CSS$L.swatch, xmlns: "http://www.w3.org/2000/svg" }, hAsync("title", null, hex), hAsync("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
|
|
15013
15063
|
}
|
|
15014
15064
|
get el() { return getElement(this); }
|
|
15015
15065
|
static get watchers() { return {
|
|
@@ -17081,6 +17131,7 @@ class Combobox {
|
|
|
17081
17131
|
};
|
|
17082
17132
|
this.open = false;
|
|
17083
17133
|
this.disabled = false;
|
|
17134
|
+
this.form = undefined;
|
|
17084
17135
|
this.label = undefined;
|
|
17085
17136
|
this.placeholder = undefined;
|
|
17086
17137
|
this.placeholderIcon = undefined;
|
|
@@ -17597,6 +17648,7 @@ class Combobox {
|
|
|
17597
17648
|
"$members$": {
|
|
17598
17649
|
"open": [1540],
|
|
17599
17650
|
"disabled": [516],
|
|
17651
|
+
"form": [513],
|
|
17600
17652
|
"label": [1],
|
|
17601
17653
|
"placeholder": [1],
|
|
17602
17654
|
"placeholderIcon": [513, "placeholder-icon"],
|
|
@@ -17628,11 +17680,11 @@ class Combobox {
|
|
|
17628
17680
|
},
|
|
17629
17681
|
"$listeners$": [[5, "pointerdown", "documentClickHandler"], [0, "calciteComboboxItemChange", "calciteComboboxItemChangeHandler"]],
|
|
17630
17682
|
"$lazyBundleId$": "-",
|
|
17631
|
-
"$attrsToReflect$": [["open", "open"], ["disabled", "disabled"], ["placeholderIcon", "placeholder-icon"], ["placeholderIconFlipRtl", "placeholder-icon-flip-rtl"], ["maxItems", "max-items"], ["name", "name"], ["allowCustomValues", "allow-custom-values"], ["overlayPositioning", "overlay-positioning"], ["required", "required"], ["selectionMode", "selection-mode"], ["scale", "scale"]]
|
|
17683
|
+
"$attrsToReflect$": [["open", "open"], ["disabled", "disabled"], ["form", "form"], ["placeholderIcon", "placeholder-icon"], ["placeholderIconFlipRtl", "placeholder-icon-flip-rtl"], ["maxItems", "max-items"], ["name", "name"], ["allowCustomValues", "allow-custom-values"], ["overlayPositioning", "overlay-positioning"], ["required", "required"], ["selectionMode", "selection-mode"], ["scale", "scale"]]
|
|
17632
17684
|
}; }
|
|
17633
17685
|
}
|
|
17634
17686
|
|
|
17635
|
-
const CSS$
|
|
17687
|
+
const CSS$K = {
|
|
17636
17688
|
icon: "icon",
|
|
17637
17689
|
iconActive: "icon--active",
|
|
17638
17690
|
iconIndent: "icon--indent",
|
|
@@ -17709,20 +17761,20 @@ class ComboboxItem {
|
|
|
17709
17761
|
// --------------------------------------------------------------------------
|
|
17710
17762
|
renderIcon(iconPath) {
|
|
17711
17763
|
return this.icon ? (hAsync("calcite-icon", { class: {
|
|
17712
|
-
[CSS$
|
|
17713
|
-
[CSS$
|
|
17714
|
-
[CSS$
|
|
17764
|
+
[CSS$K.custom]: !!this.icon,
|
|
17765
|
+
[CSS$K.iconActive]: this.icon && this.selected,
|
|
17766
|
+
[CSS$K.iconIndent]: true
|
|
17715
17767
|
}, flipRtl: this.iconFlipRtl, icon: this.icon || iconPath, key: "icon", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
17716
17768
|
}
|
|
17717
17769
|
renderSelectIndicator(showDot, iconPath) {
|
|
17718
17770
|
return showDot ? (hAsync("span", { class: {
|
|
17719
|
-
[CSS$
|
|
17720
|
-
[CSS$
|
|
17721
|
-
[CSS$
|
|
17771
|
+
[CSS$K.icon]: true,
|
|
17772
|
+
[CSS$K.dot]: true,
|
|
17773
|
+
[CSS$K.iconIndent]: true
|
|
17722
17774
|
} })) : (hAsync("calcite-icon", { class: {
|
|
17723
|
-
[CSS$
|
|
17724
|
-
[CSS$
|
|
17725
|
-
[CSS$
|
|
17775
|
+
[CSS$K.icon]: true,
|
|
17776
|
+
[CSS$K.iconActive]: this.selected,
|
|
17777
|
+
[CSS$K.iconIndent]: true
|
|
17726
17778
|
}, flipRtl: this.iconFlipRtl, icon: iconPath, key: "indicator", scale: this.scale === "l" ? "m" : "s" }));
|
|
17727
17779
|
}
|
|
17728
17780
|
renderChildren() {
|
|
@@ -17737,10 +17789,10 @@ class ComboboxItem {
|
|
|
17737
17789
|
const defaultIcon = isSingleSelect ? "dot" : "check";
|
|
17738
17790
|
const iconPath = this.disabled ? "circle-disallowed" : defaultIcon;
|
|
17739
17791
|
const classes = {
|
|
17740
|
-
[CSS$
|
|
17741
|
-
[CSS$
|
|
17742
|
-
[CSS$
|
|
17743
|
-
[CSS$
|
|
17792
|
+
[CSS$K.label]: true,
|
|
17793
|
+
[CSS$K.selected]: this.selected,
|
|
17794
|
+
[CSS$K.active]: this.active,
|
|
17795
|
+
[CSS$K.single]: isSingleSelect
|
|
17744
17796
|
};
|
|
17745
17797
|
const depth = getDepth$1();
|
|
17746
17798
|
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderSelectIndicator(showDot, iconPath), this.renderIcon(iconPath), hAsync("span", { class: "title" }, this.textLabel)), this.renderChildren())));
|
|
@@ -17771,7 +17823,7 @@ class ComboboxItem {
|
|
|
17771
17823
|
}; }
|
|
17772
17824
|
}
|
|
17773
17825
|
|
|
17774
|
-
const CSS$
|
|
17826
|
+
const CSS$J = {
|
|
17775
17827
|
list: "list",
|
|
17776
17828
|
label: "label",
|
|
17777
17829
|
title: "title"
|
|
@@ -17806,8 +17858,8 @@ class ComboboxItemGroup {
|
|
|
17806
17858
|
// --------------------------------------------------------------------------
|
|
17807
17859
|
render() {
|
|
17808
17860
|
const { el, scale } = this;
|
|
17809
|
-
const indent = `${CSS$
|
|
17810
|
-
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
17861
|
+
const indent = `${CSS$J.label}--indent-${getDepth$1()}`;
|
|
17862
|
+
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$J.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$J.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, hAsync("span", { class: CSS$J.title }, this.label)), hAsync("slot", null)));
|
|
17811
17863
|
}
|
|
17812
17864
|
get el() { return getElement(this); }
|
|
17813
17865
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -18308,6 +18360,16 @@ class DatePicker {
|
|
|
18308
18360
|
onMessagesChange() {
|
|
18309
18361
|
/* wired up by t9n util */
|
|
18310
18362
|
}
|
|
18363
|
+
//--------------------------------------------------------------------------
|
|
18364
|
+
//
|
|
18365
|
+
// Public Methods
|
|
18366
|
+
//
|
|
18367
|
+
//--------------------------------------------------------------------------
|
|
18368
|
+
/** Sets focus on the component's first focusable element. */
|
|
18369
|
+
async setFocus() {
|
|
18370
|
+
await componentLoaded(this);
|
|
18371
|
+
this.el.focus();
|
|
18372
|
+
}
|
|
18311
18373
|
// --------------------------------------------------------------------------
|
|
18312
18374
|
//
|
|
18313
18375
|
// Lifecycle
|
|
@@ -18334,11 +18396,15 @@ class DatePicker {
|
|
|
18334
18396
|
disconnectMessages(this);
|
|
18335
18397
|
}
|
|
18336
18398
|
async componentWillLoad() {
|
|
18399
|
+
setUpLoadableComponent(this);
|
|
18337
18400
|
await this.loadLocaleData();
|
|
18338
18401
|
this.onMinChanged(this.min);
|
|
18339
18402
|
this.onMaxChanged(this.max);
|
|
18340
18403
|
await setUpMessages(this);
|
|
18341
18404
|
}
|
|
18405
|
+
componentDidLoad() {
|
|
18406
|
+
setComponentLoaded(this);
|
|
18407
|
+
}
|
|
18342
18408
|
render() {
|
|
18343
18409
|
const date = dateFromRange(this.range && Array.isArray(this.valueAsDate) ? this.valueAsDate[0] : this.valueAsDate, this.minAsDate, this.maxAsDate);
|
|
18344
18410
|
let activeDate = this.getActiveDate(date, this.minAsDate, this.maxAsDate);
|
|
@@ -18472,7 +18538,8 @@ class DatePicker {
|
|
|
18472
18538
|
"effectiveLocale": [32],
|
|
18473
18539
|
"defaultMessages": [32],
|
|
18474
18540
|
"localeData": [32],
|
|
18475
|
-
"hoverRange": [32]
|
|
18541
|
+
"hoverRange": [32],
|
|
18542
|
+
"setFocus": [64]
|
|
18476
18543
|
},
|
|
18477
18544
|
"$listeners$": undefined,
|
|
18478
18545
|
"$lazyBundleId$": "-",
|
|
@@ -18905,7 +18972,7 @@ class DatePickerMonth {
|
|
|
18905
18972
|
}
|
|
18906
18973
|
|
|
18907
18974
|
const BUDDHIST_CALENDAR_YEAR_OFFSET = 543;
|
|
18908
|
-
const CSS$
|
|
18975
|
+
const CSS$I = {
|
|
18909
18976
|
header: "header",
|
|
18910
18977
|
month: "month",
|
|
18911
18978
|
chevron: "chevron",
|
|
@@ -19006,7 +19073,7 @@ class DatePickerMonthHeader {
|
|
|
19006
19073
|
this.setNextPrevMonthDates();
|
|
19007
19074
|
}
|
|
19008
19075
|
render() {
|
|
19009
|
-
return hAsync("div", { class: CSS$
|
|
19076
|
+
return hAsync("div", { class: CSS$I.header }, this.renderContent());
|
|
19010
19077
|
}
|
|
19011
19078
|
renderContent() {
|
|
19012
19079
|
const { messages, localeData, activeDate } = this;
|
|
@@ -19029,12 +19096,12 @@ class DatePickerMonthHeader {
|
|
|
19029
19096
|
const order = getOrder(unitOrder);
|
|
19030
19097
|
const reverse = order.indexOf("y") < order.indexOf("m");
|
|
19031
19098
|
const suffix = localeData.year?.suffix;
|
|
19032
|
-
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": messages.prevMonth, class: CSS$
|
|
19099
|
+
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": messages.prevMonth, class: CSS$I.chevron, href: "#", onClick: this.prevMonthClick, onKeyDown: this.prevMonthKeydown, role: "button", tabindex: this.prevMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: ICON.chevronLeft, scale: iconScale })), hAsync("div", { class: { text: true, [CSS$I.textReverse]: reverse } }, hAsync(Heading, { class: CSS$I.month, level: this.headingLevel }, localizedMonth), hAsync("span", { class: CSS$I.yearWrap }, hAsync("input", { "aria-label": messages.year, class: {
|
|
19033
19100
|
year: true,
|
|
19034
|
-
[CSS$
|
|
19101
|
+
[CSS$I.yearSuffix]: !!suffix
|
|
19035
19102
|
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", type: "text", value: localizedYear,
|
|
19036
19103
|
// eslint-disable-next-line react/jsx-sort-props
|
|
19037
|
-
ref: (el) => (this.yearInput = el) }), suffix && hAsync("span", { class: CSS$
|
|
19104
|
+
ref: (el) => (this.yearInput = el) }), suffix && hAsync("span", { class: CSS$I.suffix }, suffix))), hAsync("a", { "aria-disabled": `${this.nextMonthDate.getMonth() === activeMonth}`, "aria-label": messages.nextMonth, class: CSS$I.chevron, href: "#", onClick: this.nextMonthClick, onKeyDown: this.nextMonthKeydown, role: "button", tabindex: this.nextMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: ICON.chevronRight, scale: iconScale }))));
|
|
19038
19105
|
}
|
|
19039
19106
|
setNextPrevMonthDates() {
|
|
19040
19107
|
if (!this.activeDate) {
|
|
@@ -19118,7 +19185,7 @@ class DatePickerMonthHeader {
|
|
|
19118
19185
|
}; }
|
|
19119
19186
|
}
|
|
19120
19187
|
|
|
19121
|
-
const SLOTS$
|
|
19188
|
+
const SLOTS$l = {
|
|
19122
19189
|
dropdownTrigger: "trigger"
|
|
19123
19190
|
};
|
|
19124
19191
|
|
|
@@ -19314,6 +19381,16 @@ class Dropdown {
|
|
|
19314
19381
|
}
|
|
19315
19382
|
//--------------------------------------------------------------------------
|
|
19316
19383
|
//
|
|
19384
|
+
// Public Methods
|
|
19385
|
+
//
|
|
19386
|
+
//--------------------------------------------------------------------------
|
|
19387
|
+
/** Sets focus on the component's first focusable element. */
|
|
19388
|
+
async setFocus() {
|
|
19389
|
+
await componentLoaded(this);
|
|
19390
|
+
this.el.focus();
|
|
19391
|
+
}
|
|
19392
|
+
//--------------------------------------------------------------------------
|
|
19393
|
+
//
|
|
19317
19394
|
// Lifecycle
|
|
19318
19395
|
//
|
|
19319
19396
|
//--------------------------------------------------------------------------
|
|
@@ -19326,7 +19403,11 @@ class Dropdown {
|
|
|
19326
19403
|
}
|
|
19327
19404
|
connectOpenCloseComponent(this);
|
|
19328
19405
|
}
|
|
19406
|
+
componentWillLoad() {
|
|
19407
|
+
setUpLoadableComponent(this);
|
|
19408
|
+
}
|
|
19329
19409
|
componentDidLoad() {
|
|
19410
|
+
setComponentLoaded(this);
|
|
19330
19411
|
this.reposition(true);
|
|
19331
19412
|
}
|
|
19332
19413
|
componentDidRender() {
|
|
@@ -19342,7 +19423,7 @@ class Dropdown {
|
|
|
19342
19423
|
const { open, guid } = this;
|
|
19343
19424
|
return (hAsync(Host, null, hAsync("div", { class: "calcite-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler,
|
|
19344
19425
|
// eslint-disable-next-line react/jsx-sort-props
|
|
19345
|
-
ref: this.setReferenceEl }, hAsync("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS$
|
|
19426
|
+
ref: this.setReferenceEl }, hAsync("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS$l.dropdownTrigger, onSlotchange: this.updateTriggers })), hAsync("div", { "aria-hidden": toAriaBoolean(!open), class: "calcite-dropdown-wrapper",
|
|
19346
19427
|
// eslint-disable-next-line react/jsx-sort-props
|
|
19347
19428
|
ref: this.setFloatingEl }, hAsync("div", { "aria-labelledby": `${guid}-menubutton`, class: {
|
|
19348
19429
|
["calcite-dropdown-content"]: true,
|
|
@@ -19515,6 +19596,7 @@ class Dropdown {
|
|
|
19515
19596
|
"selectedItems": [1040],
|
|
19516
19597
|
"type": [513],
|
|
19517
19598
|
"width": [513],
|
|
19599
|
+
"setFocus": [64],
|
|
19518
19600
|
"reposition": [64]
|
|
19519
19601
|
},
|
|
19520
19602
|
"$listeners$": [[9, "pointerdown", "closeCalciteDropdownOnClick"], [0, "calciteInternalDropdownCloseRequest", "closeCalciteDropdownOnEvent"], [8, "calciteDropdownOpen", "closeCalciteDropdownOnOpenEvent"], [1, "pointerenter", "mouseEnterHandler"], [1, "pointerleave", "mouseLeaveHandler"], [0, "calciteInternalDropdownItemKeyEvent", "calciteInternalDropdownItemKeyEvent"], [0, "calciteInternalDropdownItemSelect", "handleItemSelect"]],
|
|
@@ -19523,7 +19605,7 @@ class Dropdown {
|
|
|
19523
19605
|
}; }
|
|
19524
19606
|
}
|
|
19525
19607
|
|
|
19526
|
-
const CSS$
|
|
19608
|
+
const CSS$H = {
|
|
19527
19609
|
containerSmall: "container--s",
|
|
19528
19610
|
containerMedium: "container--m",
|
|
19529
19611
|
containerLarge: "container--l"
|
|
@@ -19556,9 +19638,9 @@ class DropdownGroup {
|
|
|
19556
19638
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
19557
19639
|
return (hAsync(Host, { "aria-label": this.groupTitle, role: "group" }, hAsync("div", { class: {
|
|
19558
19640
|
container: true,
|
|
19559
|
-
[CSS$
|
|
19560
|
-
[CSS$
|
|
19561
|
-
[CSS$
|
|
19641
|
+
[CSS$H.containerSmall]: scale === "s",
|
|
19642
|
+
[CSS$H.containerMedium]: scale === "m",
|
|
19643
|
+
[CSS$H.containerLarge]: scale === "l"
|
|
19562
19644
|
}, title: this.groupTitle }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
19563
19645
|
}
|
|
19564
19646
|
//--------------------------------------------------------------------------
|
|
@@ -19599,7 +19681,7 @@ class DropdownGroup {
|
|
|
19599
19681
|
}; }
|
|
19600
19682
|
}
|
|
19601
19683
|
|
|
19602
|
-
const CSS$
|
|
19684
|
+
const CSS$G = {
|
|
19603
19685
|
containerLink: "container--link",
|
|
19604
19686
|
containerSmall: "container--s",
|
|
19605
19687
|
containerMedium: "container--m",
|
|
@@ -19664,9 +19746,9 @@ class DropdownItem {
|
|
|
19664
19746
|
}
|
|
19665
19747
|
render() {
|
|
19666
19748
|
const scale = getElementProp(this.el, "scale", this.scale);
|
|
19667
|
-
const iconStartEl = (hAsync("calcite-icon", { class: CSS$
|
|
19668
|
-
const contentNode = (hAsync("span", { class: CSS$
|
|
19669
|
-
const iconEndEl = (hAsync("calcite-icon", { class: CSS$
|
|
19749
|
+
const iconStartEl = (hAsync("calcite-icon", { class: CSS$G.iconStart, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: scale === "l" ? "m" : "s" }));
|
|
19750
|
+
const contentNode = (hAsync("span", { class: CSS$G.itemContent }, hAsync("slot", null)));
|
|
19751
|
+
const iconEndEl = (hAsync("calcite-icon", { class: CSS$G.iconEnd, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: scale === "l" ? "m" : "s" }));
|
|
19670
19752
|
const slottedContent = this.iconStart && this.iconEnd
|
|
19671
19753
|
? [iconStartEl, contentNode, iconEndEl]
|
|
19672
19754
|
: this.iconStart
|
|
@@ -19674,7 +19756,7 @@ class DropdownItem {
|
|
|
19674
19756
|
: this.iconEnd
|
|
19675
19757
|
? [contentNode, iconEndEl]
|
|
19676
19758
|
: contentNode;
|
|
19677
|
-
const contentEl = !this.href ? (slottedContent) : (hAsync("a", { "aria-label": this.label, class: CSS$
|
|
19759
|
+
const contentEl = !this.href ? (slottedContent) : (hAsync("a", { "aria-label": this.label, class: CSS$G.link, href: this.href, rel: this.rel, tabIndex: -1, target: this.target,
|
|
19678
19760
|
// eslint-disable-next-line react/jsx-sort-props
|
|
19679
19761
|
ref: (el) => (this.childLink = el) }, slottedContent));
|
|
19680
19762
|
const itemRole = this.href
|
|
@@ -19687,14 +19769,14 @@ class DropdownItem {
|
|
|
19687
19769
|
const itemAria = this.selectionMode !== "none" ? toAriaBoolean(this.selected) : null;
|
|
19688
19770
|
return (hAsync(Host, { "aria-checked": itemAria, role: itemRole, tabindex: "0" }, hAsync("div", { class: {
|
|
19689
19771
|
container: true,
|
|
19690
|
-
[CSS$
|
|
19691
|
-
[CSS$
|
|
19692
|
-
[CSS$
|
|
19693
|
-
[CSS$
|
|
19694
|
-
[CSS$
|
|
19695
|
-
[CSS$
|
|
19696
|
-
[CSS$
|
|
19697
|
-
} }, this.selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$
|
|
19772
|
+
[CSS$G.containerLink]: !!this.href,
|
|
19773
|
+
[CSS$G.containerSmall]: scale === "s",
|
|
19774
|
+
[CSS$G.containerMedium]: scale === "m",
|
|
19775
|
+
[CSS$G.containerLarge]: scale === "l",
|
|
19776
|
+
[CSS$G.containerMulti]: this.selectionMode === "multiple",
|
|
19777
|
+
[CSS$G.containerSingle]: this.selectionMode === "single",
|
|
19778
|
+
[CSS$G.containerNone]: this.selectionMode === "none"
|
|
19779
|
+
} }, this.selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$G.icon, icon: this.selectionMode === "multiple" ? "check" : "bullet-point", scale: scale === "l" ? "m" : "s" })) : null, contentEl)));
|
|
19698
19780
|
}
|
|
19699
19781
|
//--------------------------------------------------------------------------
|
|
19700
19782
|
//
|
|
@@ -19800,7 +19882,7 @@ class DropdownItem {
|
|
|
19800
19882
|
}; }
|
|
19801
19883
|
}
|
|
19802
19884
|
|
|
19803
|
-
const CSS$
|
|
19885
|
+
const CSS$F = {
|
|
19804
19886
|
button: "button"
|
|
19805
19887
|
};
|
|
19806
19888
|
const ICONS$b = {
|
|
@@ -19855,7 +19937,7 @@ class Fab {
|
|
|
19855
19937
|
render() {
|
|
19856
19938
|
const { appearance, kind, disabled, loading, scale, textEnabled, icon, label, text, iconFlipRtl } = this;
|
|
19857
19939
|
const title = !textEnabled ? label || text || null : null;
|
|
19858
|
-
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$
|
|
19940
|
+
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$F.button, disabled: disabled, iconFlipRtl: iconFlipRtl ? "start" : null, iconStart: icon, kind: kind, label: label, loading: loading, round: true, scale: scale, title: title, type: "button", width: "auto",
|
|
19859
19941
|
// eslint-disable-next-line react/jsx-sort-props
|
|
19860
19942
|
ref: (buttonEl) => {
|
|
19861
19943
|
this.buttonEl = buttonEl;
|
|
@@ -19885,7 +19967,7 @@ class Fab {
|
|
|
19885
19967
|
}; }
|
|
19886
19968
|
}
|
|
19887
19969
|
|
|
19888
|
-
const CSS$
|
|
19970
|
+
const CSS$E = {
|
|
19889
19971
|
container: "container",
|
|
19890
19972
|
searchIcon: "search-icon"
|
|
19891
19973
|
};
|
|
@@ -19997,7 +20079,7 @@ class Filter {
|
|
|
19997
20079
|
// --------------------------------------------------------------------------
|
|
19998
20080
|
render() {
|
|
19999
20081
|
const { disabled, scale } = this;
|
|
20000
|
-
return (hAsync(Fragment, null, hAsync("div", { class: CSS$
|
|
20082
|
+
return (hAsync(Fragment, null, hAsync("div", { class: CSS$E.container }, hAsync("label", null, hAsync("calcite-input", { "aria-label": this.messages.label, clearable: true, disabled: disabled, icon: ICONS$a.search, messageOverrides: { clear: this.messages.clear }, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, scale: scale, type: "text", value: this.value,
|
|
20001
20083
|
// eslint-disable-next-line react/jsx-sort-props
|
|
20002
20084
|
ref: (el) => {
|
|
20003
20085
|
this.textInput = el;
|
|
@@ -20035,7 +20117,7 @@ class Filter {
|
|
|
20035
20117
|
}; }
|
|
20036
20118
|
}
|
|
20037
20119
|
|
|
20038
|
-
const CSS$
|
|
20120
|
+
const CSS$D = {
|
|
20039
20121
|
frame: "frame",
|
|
20040
20122
|
frameAdvancing: "frame--advancing",
|
|
20041
20123
|
frameRetreating: "frame--retreating"
|
|
@@ -20135,9 +20217,9 @@ class Flow {
|
|
|
20135
20217
|
render() {
|
|
20136
20218
|
const { flowDirection } = this;
|
|
20137
20219
|
const frameDirectionClasses = {
|
|
20138
|
-
[CSS$
|
|
20139
|
-
[CSS$
|
|
20140
|
-
[CSS$
|
|
20220
|
+
[CSS$D.frame]: true,
|
|
20221
|
+
[CSS$D.frameAdvancing]: flowDirection === "advancing",
|
|
20222
|
+
[CSS$D.frameRetreating]: flowDirection === "retreating"
|
|
20141
20223
|
};
|
|
20142
20224
|
return (hAsync("div", { class: frameDirectionClasses }, hAsync("slot", null)));
|
|
20143
20225
|
}
|
|
@@ -20158,7 +20240,7 @@ class Flow {
|
|
|
20158
20240
|
}; }
|
|
20159
20241
|
}
|
|
20160
20242
|
|
|
20161
|
-
const CSS$
|
|
20243
|
+
const CSS$C = {
|
|
20162
20244
|
backButton: "back-button",
|
|
20163
20245
|
container: "container",
|
|
20164
20246
|
header: "header",
|
|
@@ -20181,7 +20263,7 @@ const ICONS$9 = {
|
|
|
20181
20263
|
backLeft: "chevron-left",
|
|
20182
20264
|
backRight: "chevron-right"
|
|
20183
20265
|
};
|
|
20184
|
-
const SLOTS$
|
|
20266
|
+
const SLOTS$k = {
|
|
20185
20267
|
headerActionsStart: "header-actions-start",
|
|
20186
20268
|
headerActionsEnd: "header-actions-end",
|
|
20187
20269
|
headerMenuActions: "header-menu-actions",
|
|
@@ -20191,14 +20273,14 @@ const SLOTS$j = {
|
|
|
20191
20273
|
footerActions: "footer-actions"
|
|
20192
20274
|
};
|
|
20193
20275
|
|
|
20194
|
-
const CSS$
|
|
20276
|
+
const CSS$B = {
|
|
20195
20277
|
backButton: "back-button"
|
|
20196
20278
|
};
|
|
20197
20279
|
const ICONS$8 = {
|
|
20198
20280
|
backLeft: "chevron-left",
|
|
20199
20281
|
backRight: "chevron-right"
|
|
20200
20282
|
};
|
|
20201
|
-
const SLOTS$
|
|
20283
|
+
const SLOTS$j = {
|
|
20202
20284
|
headerActionsStart: "header-actions-start",
|
|
20203
20285
|
headerActionsEnd: "header-actions-end",
|
|
20204
20286
|
headerMenuActions: "header-menu-actions",
|
|
@@ -20335,7 +20417,7 @@ class FlowItem {
|
|
|
20335
20417
|
const { showBackButton, backButtonClick, messages } = this;
|
|
20336
20418
|
const label = messages.back;
|
|
20337
20419
|
const icon = rtl ? ICONS$8.backRight : ICONS$8.backLeft;
|
|
20338
|
-
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$
|
|
20420
|
+
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$B.backButton, icon: icon, key: "flow-back-button", onClick: backButtonClick, scale: "s", slot: "header-actions-start", text: label,
|
|
20339
20421
|
// eslint-disable-next-line react/jsx-sort-props
|
|
20340
20422
|
ref: this.setBackRef })) : null;
|
|
20341
20423
|
}
|
|
@@ -20344,7 +20426,7 @@ class FlowItem {
|
|
|
20344
20426
|
const label = messages.back;
|
|
20345
20427
|
return (hAsync(Host, null, hAsync("calcite-panel", { closable: closable, closed: closed, description: description, disabled: disabled, heading: heading, headingLevel: headingLevel, loading: loading, menuOpen: menuOpen, messageOverrides: messages, onCalcitePanelClose: this.handlePanelClose, onCalcitePanelScroll: this.handlePanelScroll,
|
|
20346
20428
|
// eslint-disable-next-line react/jsx-sort-props
|
|
20347
|
-
ref: this.setContainerRef }, this.renderBackButton(), hAsync("slot", { name: SLOTS$
|
|
20429
|
+
ref: this.setContainerRef }, this.renderBackButton(), hAsync("slot", { name: SLOTS$j.headerActionsStart, slot: SLOTS$k.headerActionsStart }), hAsync("slot", { name: SLOTS$j.headerActionsEnd, slot: SLOTS$k.headerActionsEnd }), hAsync("slot", { name: SLOTS$j.headerContent, slot: SLOTS$k.headerContent }), hAsync("slot", { name: SLOTS$j.headerMenuActions, slot: SLOTS$k.headerMenuActions }), hAsync("slot", { name: SLOTS$j.fab, slot: SLOTS$k.fab }), hAsync("slot", { name: SLOTS$j.footerActions, slot: SLOTS$k.footerActions }), hAsync("slot", { name: SLOTS$j.footer, slot: SLOTS$k.footer }), hAsync("slot", null)), backButtonEl ? (hAsync("calcite-tooltip", { label: label, overlayPositioning: "fixed", placement: "top", referenceElement: backButtonEl }, label)) : null));
|
|
20348
20430
|
}
|
|
20349
20431
|
static get assetsDirs() { return ["assets"]; }
|
|
20350
20432
|
get el() { return getElement(this); }
|
|
@@ -20606,7 +20688,7 @@ class Graph {
|
|
|
20606
20688
|
}; }
|
|
20607
20689
|
}
|
|
20608
20690
|
|
|
20609
|
-
const CSS$
|
|
20691
|
+
const CSS$A = {
|
|
20610
20692
|
handle: "handle",
|
|
20611
20693
|
handleActivated: "handle--activated"
|
|
20612
20694
|
};
|
|
@@ -20701,7 +20783,7 @@ class Handle {
|
|
|
20701
20783
|
render() {
|
|
20702
20784
|
return (
|
|
20703
20785
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
20704
|
-
hAsync("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$
|
|
20786
|
+
hAsync("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$A.handle]: true, [CSS$A.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0", title: this.messages.dragHandle,
|
|
20705
20787
|
// eslint-disable-next-line react/jsx-sort-props
|
|
20706
20788
|
ref: (el) => {
|
|
20707
20789
|
this.handleButton = el;
|
|
@@ -20732,7 +20814,7 @@ class Handle {
|
|
|
20732
20814
|
}; }
|
|
20733
20815
|
}
|
|
20734
20816
|
|
|
20735
|
-
const CSS$
|
|
20817
|
+
const CSS$z = {
|
|
20736
20818
|
icon: "icon",
|
|
20737
20819
|
flipRtl: "flip-rtl"
|
|
20738
20820
|
};
|
|
@@ -20780,7 +20862,7 @@ class Icon {
|
|
|
20780
20862
|
const semantic = !!textLabel;
|
|
20781
20863
|
const paths = [].concat(pathData || "");
|
|
20782
20864
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { "aria-hidden": "true", class: {
|
|
20783
|
-
[CSS$
|
|
20865
|
+
[CSS$z.flipRtl]: dir === "rtl" && flipRtl,
|
|
20784
20866
|
svg: true
|
|
20785
20867
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (hAsync("path", { d: path })) : (hAsync("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
20786
20868
|
}
|
|
@@ -20826,7 +20908,7 @@ class Icon {
|
|
|
20826
20908
|
}; }
|
|
20827
20909
|
}
|
|
20828
20910
|
|
|
20829
|
-
const CSS$
|
|
20911
|
+
const CSS$y = {
|
|
20830
20912
|
wrapper: "wrapper",
|
|
20831
20913
|
confirmChangesButton: "confirm-changes-button",
|
|
20832
20914
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -20974,16 +21056,16 @@ class InlineEditable {
|
|
|
20974
21056
|
updateHostInteraction(this);
|
|
20975
21057
|
}
|
|
20976
21058
|
render() {
|
|
20977
|
-
return (hAsync("div", { class: CSS$
|
|
21059
|
+
return (hAsync("div", { class: CSS$y.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler }, hAsync("div", { class: CSS$y.inputWrapper }, hAsync("slot", null)), hAsync("div", { class: CSS$y.controlsWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$y.enableEditingButton, disabled: this.disabled, iconStart: "pencil", kind: "neutral", label: this.messages.enableEditing, onClick: this.enableEditingHandler, scale: this.scale, style: {
|
|
20978
21060
|
opacity: this.editingEnabled ? "0" : "1",
|
|
20979
21061
|
width: this.editingEnabled ? "0" : "inherit"
|
|
20980
21062
|
}, type: "button",
|
|
20981
21063
|
// eslint-disable-next-line react/jsx-sort-props
|
|
20982
21064
|
ref: (el) => (this.enableEditingButton = el) }), this.shouldShowControls && [
|
|
20983
|
-
hAsync("div", { class: CSS$
|
|
21065
|
+
hAsync("div", { class: CSS$y.cancelEditingButtonWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$y.cancelEditingButton, disabled: this.disabled, iconStart: "x", kind: "neutral", label: this.messages.cancelEditing, onClick: this.cancelEditingHandler, scale: this.scale, type: "button",
|
|
20984
21066
|
// eslint-disable-next-line react/jsx-sort-props
|
|
20985
21067
|
ref: (el) => (this.cancelEditingButton = el) })),
|
|
20986
|
-
hAsync("calcite-button", { appearance: "solid", class: CSS$
|
|
21068
|
+
hAsync("calcite-button", { appearance: "solid", class: CSS$y.confirmChangesButton, disabled: this.disabled, iconStart: "check", kind: "brand", label: this.messages.confirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, scale: this.scale, type: "button",
|
|
20987
21069
|
// eslint-disable-next-line react/jsx-sort-props
|
|
20988
21070
|
ref: (el) => (this.confirmEditingButton = el) })
|
|
20989
21071
|
])));
|
|
@@ -21070,7 +21152,7 @@ class InlineEditable {
|
|
|
21070
21152
|
}; }
|
|
21071
21153
|
}
|
|
21072
21154
|
|
|
21073
|
-
const CSS$
|
|
21155
|
+
const CSS$x = {
|
|
21074
21156
|
loader: "loader",
|
|
21075
21157
|
clearButton: "clear-button",
|
|
21076
21158
|
editingEnabled: "editing-enabled",
|
|
@@ -21094,7 +21176,7 @@ const INPUT_TYPE_ICONS = {
|
|
|
21094
21176
|
time: "clock",
|
|
21095
21177
|
search: "search"
|
|
21096
21178
|
};
|
|
21097
|
-
const SLOTS$
|
|
21179
|
+
const SLOTS$i = {
|
|
21098
21180
|
action: "action"
|
|
21099
21181
|
};
|
|
21100
21182
|
|
|
@@ -21394,6 +21476,7 @@ class Input {
|
|
|
21394
21476
|
this.autofocus = false;
|
|
21395
21477
|
this.clearable = false;
|
|
21396
21478
|
this.disabled = false;
|
|
21479
|
+
this.form = undefined;
|
|
21397
21480
|
this.groupSeparator = false;
|
|
21398
21481
|
this.hidden = false;
|
|
21399
21482
|
this.icon = undefined;
|
|
@@ -21651,38 +21734,38 @@ class Input {
|
|
|
21651
21734
|
// --------------------------------------------------------------------------
|
|
21652
21735
|
render() {
|
|
21653
21736
|
const dir = getElementDir(this.el);
|
|
21654
|
-
const loader = (hAsync("div", { class: CSS$
|
|
21655
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
21656
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
21737
|
+
const loader = (hAsync("div", { class: CSS$x.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
21738
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$x.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
21739
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$x.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
21657
21740
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
21658
21741
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
21659
|
-
[CSS$
|
|
21660
|
-
[CSS$
|
|
21742
|
+
[CSS$x.numberButtonItem]: true,
|
|
21743
|
+
[CSS$x.buttonItemHorizontal]: isHorizontalNumberButton
|
|
21661
21744
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: this.scale === "l" ? "m" : "s" })));
|
|
21662
21745
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
21663
|
-
[CSS$
|
|
21664
|
-
[CSS$
|
|
21746
|
+
[CSS$x.numberButtonItem]: true,
|
|
21747
|
+
[CSS$x.buttonItemHorizontal]: isHorizontalNumberButton
|
|
21665
21748
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" })));
|
|
21666
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
21667
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
21668
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
21749
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$x.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
21750
|
+
const prefixText = hAsync("div", { class: CSS$x.prefix }, this.prefixText);
|
|
21751
|
+
const suffixText = hAsync("div", { class: CSS$x.suffix }, this.suffixText);
|
|
21669
21752
|
const localeNumberInput = this.type === "number" ? (hAsync("input", { accept: this.accept, "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.enterKeyHint, inputMode: this.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, multiple: this.multiple, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, pattern: this.pattern, placeholder: this.placeholder || "", readOnly: this.readOnly, type: "text", value: this.localizedValue,
|
|
21670
21753
|
// eslint-disable-next-line react/jsx-sort-props
|
|
21671
21754
|
ref: this.setChildNumberElRef })) : null;
|
|
21672
21755
|
const childEl = this.type !== "number"
|
|
21673
21756
|
? [
|
|
21674
21757
|
hAsync(this.childElType, { accept: this.accept, "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
21675
|
-
[CSS$
|
|
21676
|
-
[CSS$
|
|
21758
|
+
[CSS$x.editingEnabled]: this.editingEnabled,
|
|
21759
|
+
[CSS$x.inlineChild]: !!this.inlineEditableEl
|
|
21677
21760
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.enterKeyHint, inputMode: this.inputMode, max: this.maxString, maxLength: this.maxLength, min: this.minString, minLength: this.minLength, multiple: this.multiple, name: this.name, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeyDownHandler, onKeyUp: this.inputKeyUpHandler, pattern: this.pattern, placeholder: this.placeholder || "", readOnly: this.readOnly, required: this.required ? true : null, step: this.step, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: this.type, value: this.value,
|
|
21678
21761
|
// eslint-disable-next-line react/jsx-sort-props
|
|
21679
21762
|
ref: this.setChildElRef }),
|
|
21680
|
-
this.isTextarea ? (hAsync("div", { class: CSS$
|
|
21763
|
+
this.isTextarea ? (hAsync("div", { class: CSS$x.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" }))) : null
|
|
21681
21764
|
]
|
|
21682
21765
|
: null;
|
|
21683
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
21766
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$x.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
21684
21767
|
? numberButtonsHorizontalDown
|
|
21685
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
21768
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$x.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$x.actionWrapper }, hAsync("slot", { name: SLOTS$i.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
21686
21769
|
? numberButtonsVertical
|
|
21687
21770
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
21688
21771
|
? numberButtonsHorizontalUp
|
|
@@ -21709,6 +21792,7 @@ class Input {
|
|
|
21709
21792
|
"autofocus": [516],
|
|
21710
21793
|
"clearable": [516],
|
|
21711
21794
|
"disabled": [516],
|
|
21795
|
+
"form": [513],
|
|
21712
21796
|
"groupSeparator": [516, "group-separator"],
|
|
21713
21797
|
"hidden": [516],
|
|
21714
21798
|
"icon": [520],
|
|
@@ -21752,11 +21836,11 @@ class Input {
|
|
|
21752
21836
|
},
|
|
21753
21837
|
"$listeners$": undefined,
|
|
21754
21838
|
"$lazyBundleId$": "-",
|
|
21755
|
-
"$attrsToReflect$": [["alignment", "alignment"], ["autofocus", "autofocus"], ["clearable", "clearable"], ["disabled", "disabled"], ["groupSeparator", "group-separator"], ["hidden", "hidden"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["loading", "loading"], ["numberingSystem", "numbering-system"], ["max", "max"], ["min", "min"], ["maxLength", "max-length"], ["minLength", "min-length"], ["name", "name"], ["numberButtonType", "number-button-type"], ["readOnly", "read-only"], ["required", "required"], ["scale", "scale"], ["status", "status"], ["step", "step"], ["editingEnabled", "editing-enabled"], ["type", "type"]]
|
|
21839
|
+
"$attrsToReflect$": [["alignment", "alignment"], ["autofocus", "autofocus"], ["clearable", "clearable"], ["disabled", "disabled"], ["form", "form"], ["groupSeparator", "group-separator"], ["hidden", "hidden"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["loading", "loading"], ["numberingSystem", "numbering-system"], ["max", "max"], ["min", "min"], ["maxLength", "max-length"], ["minLength", "min-length"], ["name", "name"], ["numberButtonType", "number-button-type"], ["readOnly", "read-only"], ["required", "required"], ["scale", "scale"], ["status", "status"], ["step", "step"], ["editingEnabled", "editing-enabled"], ["type", "type"]]
|
|
21756
21840
|
}; }
|
|
21757
21841
|
}
|
|
21758
21842
|
|
|
21759
|
-
const CSS$
|
|
21843
|
+
const CSS$w = {
|
|
21760
21844
|
menu: "menu-container",
|
|
21761
21845
|
menuActive: "menu-container--active"
|
|
21762
21846
|
};
|
|
@@ -21963,6 +22047,7 @@ class InputDatePicker {
|
|
|
21963
22047
|
.join("")
|
|
21964
22048
|
: "";
|
|
21965
22049
|
this.disabled = false;
|
|
22050
|
+
this.form = undefined;
|
|
21966
22051
|
this.readOnly = false;
|
|
21967
22052
|
this.value = "";
|
|
21968
22053
|
this.flipPlacements = undefined;
|
|
@@ -22167,8 +22252,8 @@ class InputDatePicker {
|
|
|
22167
22252
|
ref: this.setStartWrapper }, hAsync("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.startInputFocus, placeholder: this.localeData?.placeholder, readOnly: readOnly, scale: this.scale, type: "text",
|
|
22168
22253
|
// eslint-disable-next-line react/jsx-sort-props
|
|
22169
22254
|
ref: this.setStartInput })), hAsync("div", { "aria-hidden": toAriaBoolean(!this.open), class: {
|
|
22170
|
-
[CSS$
|
|
22171
|
-
[CSS$
|
|
22255
|
+
[CSS$w.menu]: true,
|
|
22256
|
+
[CSS$w.menuActive]: this.open
|
|
22172
22257
|
},
|
|
22173
22258
|
// eslint-disable-next-line react/jsx-sort-props
|
|
22174
22259
|
ref: this.setFloatingEl }, hAsync("div", { class: {
|
|
@@ -22307,6 +22392,7 @@ class InputDatePicker {
|
|
|
22307
22392
|
"$tagName$": "calcite-input-date-picker",
|
|
22308
22393
|
"$members$": {
|
|
22309
22394
|
"disabled": [516],
|
|
22395
|
+
"form": [513],
|
|
22310
22396
|
"readOnly": [516, "read-only"],
|
|
22311
22397
|
"value": [1025],
|
|
22312
22398
|
"flipPlacements": [16],
|
|
@@ -22337,7 +22423,7 @@ class InputDatePicker {
|
|
|
22337
22423
|
},
|
|
22338
22424
|
"$listeners$": [[0, "calciteDaySelect", "calciteDaySelectHandler"]],
|
|
22339
22425
|
"$lazyBundleId$": "-",
|
|
22340
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["readOnly", "read-only"], ["headingLevel", "heading-level"], ["open", "open"], ["name", "name"], ["numberingSystem", "numbering-system"], ["scale", "scale"], ["placement", "placement"], ["range", "range"], ["required", "required"], ["overlayPositioning", "overlay-positioning"], ["layout", "layout"]]
|
|
22426
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["form", "form"], ["readOnly", "read-only"], ["headingLevel", "heading-level"], ["open", "open"], ["name", "name"], ["numberingSystem", "numbering-system"], ["scale", "scale"], ["placement", "placement"], ["range", "range"], ["required", "required"], ["overlayPositioning", "overlay-positioning"], ["layout", "layout"]]
|
|
22341
22427
|
}; }
|
|
22342
22428
|
}
|
|
22343
22429
|
|
|
@@ -22408,7 +22494,7 @@ class InputMessage {
|
|
|
22408
22494
|
}; }
|
|
22409
22495
|
}
|
|
22410
22496
|
|
|
22411
|
-
const CSS$
|
|
22497
|
+
const CSS$v = {
|
|
22412
22498
|
loader: "loader",
|
|
22413
22499
|
clearButton: "clear-button",
|
|
22414
22500
|
editingEnabled: "editing-enabled",
|
|
@@ -22424,7 +22510,7 @@ const CSS$u = {
|
|
|
22424
22510
|
resizeIconWrapper: "resize-icon-wrapper",
|
|
22425
22511
|
numberButtonItem: "number-button-item"
|
|
22426
22512
|
};
|
|
22427
|
-
const SLOTS$
|
|
22513
|
+
const SLOTS$h = {
|
|
22428
22514
|
action: "action"
|
|
22429
22515
|
};
|
|
22430
22516
|
|
|
@@ -22690,6 +22776,7 @@ class InputNumber {
|
|
|
22690
22776
|
this.autofocus = false;
|
|
22691
22777
|
this.clearable = false;
|
|
22692
22778
|
this.disabled = false;
|
|
22779
|
+
this.form = undefined;
|
|
22693
22780
|
this.groupSeparator = false;
|
|
22694
22781
|
this.hidden = false;
|
|
22695
22782
|
this.icon = undefined;
|
|
@@ -22907,27 +22994,27 @@ class InputNumber {
|
|
|
22907
22994
|
// --------------------------------------------------------------------------
|
|
22908
22995
|
render() {
|
|
22909
22996
|
const dir = getElementDir(this.el);
|
|
22910
|
-
const loader = (hAsync("div", { class: CSS$
|
|
22911
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
22912
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
22997
|
+
const loader = (hAsync("div", { class: CSS$v.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
22998
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$v.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
22999
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$v.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
22913
23000
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
22914
23001
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
22915
|
-
[CSS$
|
|
22916
|
-
[CSS$
|
|
23002
|
+
[CSS$v.numberButtonItem]: true,
|
|
23003
|
+
[CSS$v.buttonItemHorizontal]: isHorizontalNumberButton
|
|
22917
23004
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: this.scale === "l" ? "m" : "s" })));
|
|
22918
23005
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
22919
|
-
[CSS$
|
|
22920
|
-
[CSS$
|
|
23006
|
+
[CSS$v.numberButtonItem]: true,
|
|
23007
|
+
[CSS$v.buttonItemHorizontal]: isHorizontalNumberButton
|
|
22921
23008
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" })));
|
|
22922
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
22923
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
22924
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
23009
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$v.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
23010
|
+
const prefixText = hAsync("div", { class: CSS$v.prefix }, this.prefixText);
|
|
23011
|
+
const suffixText = hAsync("div", { class: CSS$v.suffix }, this.suffixText);
|
|
22925
23012
|
const childEl = (hAsync("input", { "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.enterKeyHint, inputMode: this.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputNumberBlurHandler, onFocus: this.inputNumberFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputNumberKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, type: "text", value: this.localizedValue,
|
|
22926
23013
|
// eslint-disable-next-line react/jsx-sort-props
|
|
22927
23014
|
ref: this.setChildNumberElRef }));
|
|
22928
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
23015
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$v.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
22929
23016
|
? numberButtonsHorizontalDown
|
|
22930
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
23017
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$v.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$v.actionWrapper }, hAsync("slot", { name: SLOTS$h.action })), this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
22931
23018
|
? numberButtonsHorizontalUp
|
|
22932
23019
|
: null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
22933
23020
|
}
|
|
@@ -22951,6 +23038,7 @@ class InputNumber {
|
|
|
22951
23038
|
"autofocus": [516],
|
|
22952
23039
|
"clearable": [516],
|
|
22953
23040
|
"disabled": [516],
|
|
23041
|
+
"form": [513],
|
|
22954
23042
|
"groupSeparator": [516, "group-separator"],
|
|
22955
23043
|
"hidden": [516],
|
|
22956
23044
|
"icon": [520],
|
|
@@ -22989,11 +23077,11 @@ class InputNumber {
|
|
|
22989
23077
|
},
|
|
22990
23078
|
"$listeners$": undefined,
|
|
22991
23079
|
"$lazyBundleId$": "-",
|
|
22992
|
-
"$attrsToReflect$": [["alignment", "alignment"], ["autofocus", "autofocus"], ["clearable", "clearable"], ["disabled", "disabled"], ["groupSeparator", "group-separator"], ["hidden", "hidden"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["loading", "loading"], ["numberingSystem", "numbering-system"], ["max", "max"], ["min", "min"], ["maxLength", "max-length"], ["minLength", "min-length"], ["name", "name"], ["numberButtonType", "number-button-type"], ["readOnly", "read-only"], ["required", "required"], ["scale", "scale"], ["status", "status"], ["step", "step"], ["editingEnabled", "editing-enabled"]]
|
|
23080
|
+
"$attrsToReflect$": [["alignment", "alignment"], ["autofocus", "autofocus"], ["clearable", "clearable"], ["disabled", "disabled"], ["form", "form"], ["groupSeparator", "group-separator"], ["hidden", "hidden"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["loading", "loading"], ["numberingSystem", "numbering-system"], ["max", "max"], ["min", "min"], ["maxLength", "max-length"], ["minLength", "min-length"], ["name", "name"], ["numberButtonType", "number-button-type"], ["readOnly", "read-only"], ["required", "required"], ["scale", "scale"], ["status", "status"], ["step", "step"], ["editingEnabled", "editing-enabled"]]
|
|
22993
23081
|
}; }
|
|
22994
23082
|
}
|
|
22995
23083
|
|
|
22996
|
-
const CSS$
|
|
23084
|
+
const CSS$u = {
|
|
22997
23085
|
loader: "loader",
|
|
22998
23086
|
clearButton: "clear-button",
|
|
22999
23087
|
editingEnabled: "editing-enabled",
|
|
@@ -23006,7 +23094,7 @@ const CSS$t = {
|
|
|
23006
23094
|
actionWrapper: "action-wrapper",
|
|
23007
23095
|
resizeIconWrapper: "resize-icon-wrapper"
|
|
23008
23096
|
};
|
|
23009
|
-
const SLOTS$
|
|
23097
|
+
const SLOTS$g = {
|
|
23010
23098
|
action: "action"
|
|
23011
23099
|
};
|
|
23012
23100
|
|
|
@@ -23142,6 +23230,7 @@ class InputText {
|
|
|
23142
23230
|
this.autofocus = false;
|
|
23143
23231
|
this.clearable = false;
|
|
23144
23232
|
this.disabled = false;
|
|
23233
|
+
this.form = undefined;
|
|
23145
23234
|
this.hidden = false;
|
|
23146
23235
|
this.icon = undefined;
|
|
23147
23236
|
this.iconFlipRtl = false;
|
|
@@ -23288,18 +23377,18 @@ class InputText {
|
|
|
23288
23377
|
// --------------------------------------------------------------------------
|
|
23289
23378
|
render() {
|
|
23290
23379
|
const dir = getElementDir(this.el);
|
|
23291
|
-
const loader = (hAsync("div", { class: CSS$
|
|
23292
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
23293
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
23294
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
23295
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
23380
|
+
const loader = (hAsync("div", { class: CSS$u.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
23381
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$u.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputTextValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
23382
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$u.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
23383
|
+
const prefixText = hAsync("div", { class: CSS$u.prefix }, this.prefixText);
|
|
23384
|
+
const suffixText = hAsync("div", { class: CSS$u.suffix }, this.suffixText);
|
|
23296
23385
|
const childEl = (hAsync("input", { "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
23297
|
-
[CSS$
|
|
23298
|
-
[CSS$
|
|
23386
|
+
[CSS$u.editingEnabled]: this.editingEnabled,
|
|
23387
|
+
[CSS$u.inlineChild]: !!this.inlineEditableEl
|
|
23299
23388
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.enterKeyHint, inputMode: this.inputMode, maxLength: this.maxLength, minLength: this.minLength, name: this.name, onBlur: this.inputTextBlurHandler, onFocus: this.inputTextFocusHandler, onInput: this.inputTextInputHandler, onKeyDown: this.inputTextKeyDownHandler, pattern: this.pattern, placeholder: this.placeholder || "", readOnly: this.readOnly, required: this.required ? true : null, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: "text", value: this.value,
|
|
23300
23389
|
// eslint-disable-next-line react/jsx-sort-props
|
|
23301
23390
|
ref: this.setChildElRef }));
|
|
23302
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
23391
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$u.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$u.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$u.actionWrapper }, hAsync("slot", { name: SLOTS$g.action })), this.suffixText ? suffixText : null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
23303
23392
|
}
|
|
23304
23393
|
static get assetsDirs() { return ["assets"]; }
|
|
23305
23394
|
get el() { return getElement(this); }
|
|
@@ -23319,6 +23408,7 @@ class InputText {
|
|
|
23319
23408
|
"autofocus": [516],
|
|
23320
23409
|
"clearable": [516],
|
|
23321
23410
|
"disabled": [516],
|
|
23411
|
+
"form": [513],
|
|
23322
23412
|
"hidden": [516],
|
|
23323
23413
|
"icon": [520],
|
|
23324
23414
|
"iconFlipRtl": [516, "icon-flip-rtl"],
|
|
@@ -23350,7 +23440,7 @@ class InputText {
|
|
|
23350
23440
|
},
|
|
23351
23441
|
"$listeners$": undefined,
|
|
23352
23442
|
"$lazyBundleId$": "-",
|
|
23353
|
-
"$attrsToReflect$": [["alignment", "alignment"], ["autofocus", "autofocus"], ["clearable", "clearable"], ["disabled", "disabled"], ["hidden", "hidden"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["loading", "loading"], ["maxLength", "max-length"], ["minLength", "min-length"], ["name", "name"], ["readOnly", "read-only"], ["required", "required"], ["scale", "scale"], ["status", "status"], ["editingEnabled", "editing-enabled"]]
|
|
23443
|
+
"$attrsToReflect$": [["alignment", "alignment"], ["autofocus", "autofocus"], ["clearable", "clearable"], ["disabled", "disabled"], ["form", "form"], ["hidden", "hidden"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["loading", "loading"], ["maxLength", "max-length"], ["minLength", "min-length"], ["name", "name"], ["readOnly", "read-only"], ["required", "required"], ["scale", "scale"], ["status", "status"], ["editingEnabled", "editing-enabled"]]
|
|
23354
23444
|
}; }
|
|
23355
23445
|
}
|
|
23356
23446
|
|
|
@@ -23675,6 +23765,7 @@ class InputTimePicker {
|
|
|
23675
23765
|
};
|
|
23676
23766
|
this.open = false;
|
|
23677
23767
|
this.disabled = false;
|
|
23768
|
+
this.form = undefined;
|
|
23678
23769
|
this.readOnly = false;
|
|
23679
23770
|
this.messagesOverrides = undefined;
|
|
23680
23771
|
this.name = undefined;
|
|
@@ -23817,6 +23908,7 @@ class InputTimePicker {
|
|
|
23817
23908
|
"$members$": {
|
|
23818
23909
|
"open": [1540],
|
|
23819
23910
|
"disabled": [516],
|
|
23911
|
+
"form": [513],
|
|
23820
23912
|
"readOnly": [516, "read-only"],
|
|
23821
23913
|
"messagesOverrides": [16],
|
|
23822
23914
|
"name": [1],
|
|
@@ -23834,11 +23926,11 @@ class InputTimePicker {
|
|
|
23834
23926
|
},
|
|
23835
23927
|
"$listeners$": [[0, "click", "clickHandler"], [0, "calciteInternalTimePickerBlur", "timePickerBlurHandler"], [0, "calciteInternalTimePickerFocus", "timePickerFocusHandler"]],
|
|
23836
23928
|
"$lazyBundleId$": "-",
|
|
23837
|
-
"$attrsToReflect$": [["open", "open"], ["disabled", "disabled"], ["readOnly", "read-only"], ["required", "required"], ["scale", "scale"], ["placement", "placement"]]
|
|
23929
|
+
"$attrsToReflect$": [["open", "open"], ["disabled", "disabled"], ["form", "form"], ["readOnly", "read-only"], ["required", "required"], ["scale", "scale"], ["placement", "placement"]]
|
|
23838
23930
|
}; }
|
|
23839
23931
|
}
|
|
23840
23932
|
|
|
23841
|
-
const CSS$
|
|
23933
|
+
const CSS$t = {
|
|
23842
23934
|
container: "container"
|
|
23843
23935
|
};
|
|
23844
23936
|
|
|
@@ -23878,7 +23970,7 @@ class Label {
|
|
|
23878
23970
|
document.dispatchEvent(new CustomEvent(labelDisconnectedEvent));
|
|
23879
23971
|
}
|
|
23880
23972
|
render() {
|
|
23881
|
-
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$
|
|
23973
|
+
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$t.container }, hAsync("slot", null))));
|
|
23882
23974
|
}
|
|
23883
23975
|
get el() { return getElement(this); }
|
|
23884
23976
|
static get style() { return labelCss; }
|
|
@@ -24004,7 +24096,7 @@ class Link {
|
|
|
24004
24096
|
}; }
|
|
24005
24097
|
}
|
|
24006
24098
|
|
|
24007
|
-
const CSS$
|
|
24099
|
+
const CSS$s = {
|
|
24008
24100
|
container: "container",
|
|
24009
24101
|
containerBorderSelected: "container--border-selected",
|
|
24010
24102
|
containerBorderUnselected: "container--border-unselected",
|
|
@@ -24024,7 +24116,7 @@ const CSS$r = {
|
|
|
24024
24116
|
selectionContainer: "selection-container",
|
|
24025
24117
|
openContainer: "open-container"
|
|
24026
24118
|
};
|
|
24027
|
-
const SLOTS$
|
|
24119
|
+
const SLOTS$f = {
|
|
24028
24120
|
actionsStart: "actions-start",
|
|
24029
24121
|
contentStart: "content-start",
|
|
24030
24122
|
content: "content",
|
|
@@ -24064,7 +24156,7 @@ function getDepth(element, includeGroup = false) {
|
|
|
24064
24156
|
}
|
|
24065
24157
|
}
|
|
24066
24158
|
|
|
24067
|
-
const CSS$
|
|
24159
|
+
const CSS$r = {
|
|
24068
24160
|
container: "container",
|
|
24069
24161
|
table: "table",
|
|
24070
24162
|
scrim: "scrim",
|
|
@@ -24295,9 +24387,9 @@ class List$1 {
|
|
|
24295
24387
|
// --------------------------------------------------------------------------
|
|
24296
24388
|
render() {
|
|
24297
24389
|
const { loading, label, disabled, dataForFilter, filterEnabled, filterPlaceholder, filterText } = this;
|
|
24298
|
-
return (hAsync("div", { class: CSS$
|
|
24390
|
+
return (hAsync("div", { class: CSS$r.container }, loading ? hAsync("calcite-scrim", { class: CSS$r.scrim, loading: loading }) : null, hAsync("table", { "aria-busy": toAriaBoolean(loading), "aria-label": label || "", class: CSS$r.table, onKeyDown: this.handleListKeydown, role: "treegrid" }, filterEnabled ? (hAsync("thead", null, hAsync("tr", { class: { [CSS$r.sticky]: true } }, hAsync("th", { colSpan: MAX_COLUMNS }, hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: this.handleFilter, placeholder: filterPlaceholder, value: filterText,
|
|
24299
24391
|
// eslint-disable-next-line react/jsx-sort-props
|
|
24300
|
-
ref: (el) => (this.filterEl = el) }))))) : null, hAsync("tbody", { class: CSS$
|
|
24392
|
+
ref: (el) => (this.filterEl = el) }))))) : null, hAsync("tbody", { class: CSS$r.tableContainer }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })))));
|
|
24301
24393
|
}
|
|
24302
24394
|
updateListItems() {
|
|
24303
24395
|
const { selectionAppearance, selectionMode } = this;
|
|
@@ -24562,7 +24654,7 @@ class ListItem {
|
|
|
24562
24654
|
if (selectionMode === "none" || selectionAppearance === "border") {
|
|
24563
24655
|
return null;
|
|
24564
24656
|
}
|
|
24565
|
-
return (hAsync("td", { class: CSS$
|
|
24657
|
+
return (hAsync("td", { class: CSS$s.selectionContainer, key: "selection-container", onClick: this.itemClicked }, hAsync("calcite-icon", { icon: selected
|
|
24566
24658
|
? selectionMode === "multiple"
|
|
24567
24659
|
? ICONS$6.selectedMultiple
|
|
24568
24660
|
: ICONS$6.selectedSingle
|
|
@@ -24571,35 +24663,35 @@ class ListItem {
|
|
|
24571
24663
|
renderOpen() {
|
|
24572
24664
|
const { el, open, openable, parentListEl } = this;
|
|
24573
24665
|
const dir = getElementDir(el);
|
|
24574
|
-
return openable ? (hAsync("td", { class: CSS$
|
|
24666
|
+
return openable ? (hAsync("td", { class: CSS$s.openContainer, key: "open-container", onClick: this.toggleOpen }, hAsync("calcite-icon", { icon: open ? ICONS$6.open : dir === "rtl" ? ICONS$6.closedRTL : ICONS$6.closedLTR, scale: "s" }))) : parentListEl?.openable ? (hAsync("td", { class: CSS$s.openContainer, key: "open-container", onClick: this.itemClicked }, hAsync("calcite-icon", { icon: ICONS$6.blank, scale: "s" }))) : null;
|
|
24575
24667
|
}
|
|
24576
24668
|
renderActionsStart() {
|
|
24577
24669
|
const { label, hasActionsStart } = this;
|
|
24578
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
24670
|
+
return (hAsync("td", { "aria-label": label, class: CSS$s.actionsStart, hidden: !hasActionsStart, key: "actions-start-container", role: "gridcell",
|
|
24579
24671
|
// eslint-disable-next-line react/jsx-sort-props
|
|
24580
|
-
ref: (el) => (this.actionsStartEl = el) }, hAsync("slot", { name: SLOTS$
|
|
24672
|
+
ref: (el) => (this.actionsStartEl = el) }, hAsync("slot", { name: SLOTS$f.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
24581
24673
|
}
|
|
24582
24674
|
renderActionsEnd() {
|
|
24583
24675
|
const { label, hasActionsEnd } = this;
|
|
24584
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
24676
|
+
return (hAsync("td", { "aria-label": label, class: CSS$s.actionsEnd, hidden: !hasActionsEnd, key: "actions-end-container", role: "gridcell",
|
|
24585
24677
|
// eslint-disable-next-line react/jsx-sort-props
|
|
24586
|
-
ref: (el) => (this.actionsEndEl = el) }, hAsync("slot", { name: SLOTS$
|
|
24678
|
+
ref: (el) => (this.actionsEndEl = el) }, hAsync("slot", { name: SLOTS$f.actionsEnd, onSlotchange: this.handleActionsEndSlotChange })));
|
|
24587
24679
|
}
|
|
24588
24680
|
renderContentStart() {
|
|
24589
24681
|
const { hasContentStart } = this;
|
|
24590
|
-
return (hAsync("div", { class: CSS$
|
|
24682
|
+
return (hAsync("div", { class: CSS$s.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$f.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
24591
24683
|
}
|
|
24592
24684
|
renderCustomContent() {
|
|
24593
24685
|
const { hasCustomContent } = this;
|
|
24594
|
-
return (hAsync("div", { class: CSS$
|
|
24686
|
+
return (hAsync("div", { class: CSS$s.customContent, hidden: !hasCustomContent }, hAsync("slot", { name: SLOTS$f.content, onSlotchange: this.handleContentSlotChange })));
|
|
24595
24687
|
}
|
|
24596
24688
|
renderContentEnd() {
|
|
24597
24689
|
const { hasContentEnd } = this;
|
|
24598
|
-
return (hAsync("div", { class: CSS$
|
|
24690
|
+
return (hAsync("div", { class: CSS$s.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$f.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
24599
24691
|
}
|
|
24600
24692
|
renderContentProperties() {
|
|
24601
24693
|
const { label, description, hasCustomContent } = this;
|
|
24602
|
-
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$
|
|
24694
|
+
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$s.content, key: "content" }, label ? (hAsync("div", { class: CSS$s.label, key: "label" }, label)) : null, description ? (hAsync("div", { class: CSS$s.description, key: "description" }, description)) : null)) : null;
|
|
24603
24695
|
}
|
|
24604
24696
|
renderContentContainer() {
|
|
24605
24697
|
const { description, label, selectionMode, hasCustomContent } = this;
|
|
@@ -24611,9 +24703,9 @@ class ListItem {
|
|
|
24611
24703
|
this.renderContentEnd()
|
|
24612
24704
|
];
|
|
24613
24705
|
return (hAsync("td", { "aria-label": label, class: {
|
|
24614
|
-
[CSS$
|
|
24615
|
-
[CSS$
|
|
24616
|
-
[CSS$
|
|
24706
|
+
[CSS$s.contentContainer]: true,
|
|
24707
|
+
[CSS$s.contentContainerSelectable]: selectionMode !== "none",
|
|
24708
|
+
[CSS$s.contentContainerHasCenterContent]: hasCenterContent
|
|
24617
24709
|
}, key: "content-container", onClick: this.itemClicked, role: "gridcell",
|
|
24618
24710
|
// eslint-disable-next-line react/jsx-sort-props
|
|
24619
24711
|
ref: (el) => (this.contentEl = el) }, content));
|
|
@@ -24624,14 +24716,14 @@ class ListItem {
|
|
|
24624
24716
|
const borderSelected = showBorder && selected;
|
|
24625
24717
|
const borderUnselected = showBorder && !selected;
|
|
24626
24718
|
return (hAsync(Host, null, hAsync("tr", { "aria-expanded": openable ? toAriaBoolean(open) : null, "aria-label": label, "aria-level": level, "aria-posinset": setPosition, "aria-selected": toAriaBoolean(selected), "aria-setsize": setSize, class: {
|
|
24627
|
-
[CSS$
|
|
24628
|
-
[CSS$
|
|
24629
|
-
[CSS$
|
|
24719
|
+
[CSS$s.container]: true,
|
|
24720
|
+
[CSS$s.containerBorderSelected]: borderSelected,
|
|
24721
|
+
[CSS$s.containerBorderUnselected]: borderUnselected
|
|
24630
24722
|
}, onFocus: this.focusCellNull, onKeyDown: this.handleItemKeyDown, role: "row", style: { "--calcite-list-item-spacing-indent-multiplier": `${this.visualLevel}` }, tabIndex: active ? 0 : -1,
|
|
24631
24723
|
// eslint-disable-next-line react/jsx-sort-props
|
|
24632
24724
|
ref: (el) => (this.containerEl = el) }, this.renderSelected(), this.renderOpen(), this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), hAsync("div", { class: {
|
|
24633
|
-
[CSS$
|
|
24634
|
-
[CSS$
|
|
24725
|
+
[CSS$s.nestedContainer]: true,
|
|
24726
|
+
[CSS$s.nestedContainerHidden]: openable && !open
|
|
24635
24727
|
} }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
24636
24728
|
}
|
|
24637
24729
|
setSelectionDefaults() {
|
|
@@ -24685,7 +24777,7 @@ class ListItem {
|
|
|
24685
24777
|
}; }
|
|
24686
24778
|
}
|
|
24687
24779
|
|
|
24688
|
-
const CSS$
|
|
24780
|
+
const CSS$q = {
|
|
24689
24781
|
container: "container",
|
|
24690
24782
|
heading: "heading"
|
|
24691
24783
|
};
|
|
@@ -24721,7 +24813,7 @@ class ListItemGroup {
|
|
|
24721
24813
|
// --------------------------------------------------------------------------
|
|
24722
24814
|
render() {
|
|
24723
24815
|
const { heading, visualLevel } = this;
|
|
24724
|
-
return (hAsync(Host, null, hAsync("tr", { class: CSS$
|
|
24816
|
+
return (hAsync(Host, null, hAsync("tr", { class: CSS$q.container, style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` } }, hAsync("td", { class: CSS$q.heading, colSpan: MAX_COLUMNS }, heading)), hAsync("slot", null)));
|
|
24725
24817
|
}
|
|
24726
24818
|
get el() { return getElement(this); }
|
|
24727
24819
|
static get style() { return listItemGroupCss; }
|
|
@@ -25608,7 +25700,7 @@ function updateFocusTrapElements(component) {
|
|
|
25608
25700
|
component.focusTrap?.updateContainerElements(component.focusTrapEl);
|
|
25609
25701
|
}
|
|
25610
25702
|
|
|
25611
|
-
const CSS$
|
|
25703
|
+
const CSS$p = {
|
|
25612
25704
|
modal: "modal",
|
|
25613
25705
|
title: "title",
|
|
25614
25706
|
header: "header",
|
|
@@ -25636,7 +25728,7 @@ const CSS$o = {
|
|
|
25636
25728
|
const ICONS$5 = {
|
|
25637
25729
|
close: "x"
|
|
25638
25730
|
};
|
|
25639
|
-
const SLOTS$
|
|
25731
|
+
const SLOTS$e = {
|
|
25640
25732
|
content: "content",
|
|
25641
25733
|
contentBottom: "content-bottom",
|
|
25642
25734
|
contentTop: "content-top",
|
|
@@ -25696,7 +25788,7 @@ class Modal {
|
|
|
25696
25788
|
});
|
|
25697
25789
|
};
|
|
25698
25790
|
this.updateFooterVisibility = () => {
|
|
25699
|
-
this.hasFooter = !!getSlotted(this.el, [SLOTS$
|
|
25791
|
+
this.hasFooter = !!getSlotted(this.el, [SLOTS$e.back, SLOTS$e.primary, SLOTS$e.secondary]);
|
|
25700
25792
|
};
|
|
25701
25793
|
this.updateSizeCssVars = () => {
|
|
25702
25794
|
this.cssWidth = getComputedStyle(this.el).getPropertyValue("--calcite-modal-width");
|
|
@@ -25778,50 +25870,50 @@ class Modal {
|
|
|
25778
25870
|
}
|
|
25779
25871
|
render() {
|
|
25780
25872
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
25781
|
-
[CSS$
|
|
25782
|
-
[CSS$
|
|
25783
|
-
[CSS$
|
|
25784
|
-
} }, hAsync("calcite-scrim", { class: CSS$
|
|
25785
|
-
[CSS$
|
|
25873
|
+
[CSS$p.container]: true,
|
|
25874
|
+
[CSS$p.containerOpen]: this.isOpen,
|
|
25875
|
+
[CSS$p.slottedInShell]: this.slottedInShell
|
|
25876
|
+
} }, hAsync("calcite-scrim", { class: CSS$p.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), hAsync("div", { class: {
|
|
25877
|
+
[CSS$p.modal]: true
|
|
25786
25878
|
},
|
|
25787
25879
|
// eslint-disable-next-line react/jsx-sort-props
|
|
25788
|
-
ref: this.setTransitionEl }, hAsync("div", { class: CSS$
|
|
25789
|
-
[CSS$
|
|
25790
|
-
[CSS$
|
|
25880
|
+
ref: this.setTransitionEl }, hAsync("div", { class: CSS$p.header }, this.renderCloseButton(), hAsync("header", { class: CSS$p.title }, hAsync("slot", { name: CSS$p.header }))), this.renderContentTop(), hAsync("div", { class: {
|
|
25881
|
+
[CSS$p.content]: true,
|
|
25882
|
+
[CSS$p.contentNoFooter]: !this.hasFooter
|
|
25791
25883
|
},
|
|
25792
25884
|
// eslint-disable-next-line react/jsx-sort-props
|
|
25793
|
-
ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$
|
|
25885
|
+
ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$e.content })), this.renderContentBottom(), this.renderFooter()))));
|
|
25794
25886
|
}
|
|
25795
25887
|
renderFooter() {
|
|
25796
|
-
return this.hasFooter ? (hAsync("div", { class: CSS$
|
|
25888
|
+
return this.hasFooter ? (hAsync("div", { class: CSS$p.footer, key: "footer" }, hAsync("span", { class: CSS$p.back }, hAsync("slot", { name: SLOTS$e.back })), hAsync("span", { class: CSS$p.secondary }, hAsync("slot", { name: SLOTS$e.secondary })), hAsync("span", { class: CSS$p.primary }, hAsync("slot", { name: SLOTS$e.primary })))) : null;
|
|
25797
25889
|
}
|
|
25798
25890
|
renderContentTop() {
|
|
25799
|
-
return (hAsync("div", { class: CSS$
|
|
25891
|
+
return (hAsync("div", { class: CSS$p.contentTop, hidden: !this.hasContentTop }, hAsync("slot", { name: SLOTS$e.contentTop, onSlotchange: this.contentTopSlotChangeHandler })));
|
|
25800
25892
|
}
|
|
25801
25893
|
renderContentBottom() {
|
|
25802
|
-
return (hAsync("div", { class: CSS$
|
|
25894
|
+
return (hAsync("div", { class: CSS$p.contentBottom, hidden: !this.hasContentBottom }, hAsync("slot", { name: SLOTS$e.contentBottom, onSlotchange: this.contentBottomSlotChangeHandler })));
|
|
25803
25895
|
}
|
|
25804
25896
|
renderCloseButton() {
|
|
25805
|
-
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
25897
|
+
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$p.close, key: "button", onClick: this.close, title: this.messages.close,
|
|
25806
25898
|
// eslint-disable-next-line react/jsx-sort-props
|
|
25807
25899
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$5.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
25808
25900
|
}
|
|
25809
25901
|
renderStyle() {
|
|
25810
25902
|
if (!this.fullscreen && (this.cssWidth || this.cssHeight)) {
|
|
25811
|
-
return (hAsync("style", null, `.${CSS$
|
|
25903
|
+
return (hAsync("style", null, `.${CSS$p.container} {
|
|
25812
25904
|
${this.docked && this.cssWidth ? `align-items: center !important;` : ""}
|
|
25813
25905
|
}
|
|
25814
|
-
.${CSS$
|
|
25906
|
+
.${CSS$p.modal} {
|
|
25815
25907
|
block-size: ${this.cssHeight ? this.cssHeight : "auto"} !important;
|
|
25816
25908
|
${this.cssWidth ? `inline-size: ${this.cssWidth} !important;` : ""}
|
|
25817
25909
|
${this.cssWidth ? `max-inline-size: ${this.cssWidth} !important;` : ""}
|
|
25818
25910
|
${this.docked ? `border-radius: var(--calcite-border-radius) !important;` : ""}
|
|
25819
25911
|
}
|
|
25820
25912
|
@media screen and (max-width: ${this.cssWidth}) {
|
|
25821
|
-
.${CSS$
|
|
25913
|
+
.${CSS$p.container} {
|
|
25822
25914
|
${this.docked ? `align-items: flex-end !important;` : ""}
|
|
25823
25915
|
}
|
|
25824
|
-
.${CSS$
|
|
25916
|
+
.${CSS$p.modal} {
|
|
25825
25917
|
max-block-size: 100% !important;
|
|
25826
25918
|
inline-size: 100% !important;
|
|
25827
25919
|
max-inline-size: 100% !important;
|
|
@@ -25888,31 +25980,31 @@ class Modal {
|
|
|
25888
25980
|
}
|
|
25889
25981
|
}
|
|
25890
25982
|
onBeforeOpen() {
|
|
25891
|
-
this.transitionEl.classList.add(CSS$
|
|
25983
|
+
this.transitionEl.classList.add(CSS$p.openingActive);
|
|
25892
25984
|
this.calciteModalBeforeOpen.emit();
|
|
25893
25985
|
}
|
|
25894
25986
|
onOpen() {
|
|
25895
|
-
this.transitionEl.classList.remove(CSS$
|
|
25987
|
+
this.transitionEl.classList.remove(CSS$p.openingIdle, CSS$p.openingActive);
|
|
25896
25988
|
this.calciteModalOpen.emit();
|
|
25897
25989
|
activateFocusTrap(this);
|
|
25898
25990
|
}
|
|
25899
25991
|
onBeforeClose() {
|
|
25900
|
-
this.transitionEl.classList.add(CSS$
|
|
25992
|
+
this.transitionEl.classList.add(CSS$p.closingActive);
|
|
25901
25993
|
this.calciteModalBeforeClose.emit();
|
|
25902
25994
|
}
|
|
25903
25995
|
onClose() {
|
|
25904
|
-
this.transitionEl.classList.remove(CSS$
|
|
25996
|
+
this.transitionEl.classList.remove(CSS$p.closingIdle, CSS$p.closingActive);
|
|
25905
25997
|
this.calciteModalClose.emit();
|
|
25906
25998
|
deactivateFocusTrap(this);
|
|
25907
25999
|
}
|
|
25908
26000
|
async toggleModal(value) {
|
|
25909
26001
|
onToggleOpenCloseComponent(this);
|
|
25910
26002
|
if (value) {
|
|
25911
|
-
this.transitionEl?.classList.add(CSS$
|
|
26003
|
+
this.transitionEl?.classList.add(CSS$p.openingIdle);
|
|
25912
26004
|
this.openModal();
|
|
25913
26005
|
}
|
|
25914
26006
|
else {
|
|
25915
|
-
this.transitionEl?.classList.add(CSS$
|
|
26007
|
+
this.transitionEl?.classList.add(CSS$p.closingIdle);
|
|
25916
26008
|
this.close();
|
|
25917
26009
|
}
|
|
25918
26010
|
}
|
|
@@ -25921,16 +26013,16 @@ class Modal {
|
|
|
25921
26013
|
this.el.addEventListener("calciteModalOpen", this.openEnd);
|
|
25922
26014
|
this.open = true;
|
|
25923
26015
|
this.isOpen = true;
|
|
25924
|
-
const titleEl = getSlotted(this.el, SLOTS$
|
|
25925
|
-
const contentEl = getSlotted(this.el, SLOTS$
|
|
26016
|
+
const titleEl = getSlotted(this.el, SLOTS$e.header);
|
|
26017
|
+
const contentEl = getSlotted(this.el, SLOTS$e.content);
|
|
25926
26018
|
this.titleId = ensureId(titleEl);
|
|
25927
26019
|
this.contentId = ensureId(contentEl);
|
|
25928
26020
|
if (!this.slottedInShell) {
|
|
25929
|
-
document.documentElement.classList.add(CSS$
|
|
26021
|
+
document.documentElement.classList.add(CSS$p.overflowHidden);
|
|
25930
26022
|
}
|
|
25931
26023
|
}
|
|
25932
26024
|
removeOverflowHiddenClass() {
|
|
25933
|
-
document.documentElement.classList.remove(CSS$
|
|
26025
|
+
document.documentElement.classList.remove(CSS$p.overflowHidden);
|
|
25934
26026
|
}
|
|
25935
26027
|
static get assetsDirs() { return ["assets"]; }
|
|
25936
26028
|
get el() { return getElement(this); }
|
|
@@ -25977,13 +26069,13 @@ class Modal {
|
|
|
25977
26069
|
}; }
|
|
25978
26070
|
}
|
|
25979
26071
|
|
|
25980
|
-
const SLOTS$
|
|
26072
|
+
const SLOTS$d = {
|
|
25981
26073
|
title: "title",
|
|
25982
26074
|
message: "message",
|
|
25983
26075
|
link: "link",
|
|
25984
26076
|
actionsEnd: "actions-end"
|
|
25985
26077
|
};
|
|
25986
|
-
const CSS$
|
|
26078
|
+
const CSS$o = {
|
|
25987
26079
|
actionsEnd: "actions-end",
|
|
25988
26080
|
close: "notice-close",
|
|
25989
26081
|
container: "container",
|
|
@@ -26062,11 +26154,11 @@ class Notice {
|
|
|
26062
26154
|
}
|
|
26063
26155
|
render() {
|
|
26064
26156
|
const { el } = this;
|
|
26065
|
-
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
26157
|
+
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$o.close, onClick: this.close,
|
|
26066
26158
|
// eslint-disable-next-line react/jsx-sort-props
|
|
26067
26159
|
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
26068
|
-
const hasActionEnd = getSlotted(el, SLOTS$
|
|
26069
|
-
return (hAsync("div", { class: CSS$
|
|
26160
|
+
const hasActionEnd = getSlotted(el, SLOTS$d.actionsEnd);
|
|
26161
|
+
return (hAsync("div", { class: CSS$o.container }, this.requestedIcon ? (hAsync("div", { class: CSS$o.icon }, hAsync("calcite-icon", { flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: CSS$o.content }, hAsync("slot", { name: SLOTS$d.title }), hAsync("slot", { name: SLOTS$d.message }), hAsync("slot", { name: SLOTS$d.link })), hasActionEnd ? (hAsync("div", { class: CSS$o.actionsEnd }, hAsync("slot", { name: SLOTS$d.actionsEnd }))) : null, this.closable ? closeButton : null));
|
|
26070
26162
|
}
|
|
26071
26163
|
//--------------------------------------------------------------------------
|
|
26072
26164
|
//
|
|
@@ -26245,7 +26337,7 @@ class OptionGroup {
|
|
|
26245
26337
|
}; }
|
|
26246
26338
|
}
|
|
26247
26339
|
|
|
26248
|
-
const CSS$
|
|
26340
|
+
const CSS$n = {
|
|
26249
26341
|
page: "page",
|
|
26250
26342
|
selected: "is-selected",
|
|
26251
26343
|
previous: "previous",
|
|
@@ -26306,6 +26398,10 @@ class Pagination {
|
|
|
26306
26398
|
}
|
|
26307
26399
|
async componentWillLoad() {
|
|
26308
26400
|
await setUpMessages(this);
|
|
26401
|
+
setUpLoadableComponent(this);
|
|
26402
|
+
}
|
|
26403
|
+
componentDidLoad() {
|
|
26404
|
+
setComponentLoaded(this);
|
|
26309
26405
|
}
|
|
26310
26406
|
disconnectedCallback() {
|
|
26311
26407
|
disconnectLocalized(this);
|
|
@@ -26316,6 +26412,11 @@ class Pagination {
|
|
|
26316
26412
|
// Public Methods
|
|
26317
26413
|
//
|
|
26318
26414
|
// --------------------------------------------------------------------------
|
|
26415
|
+
/** Sets focus on the component's first focusable element. */
|
|
26416
|
+
async setFocus() {
|
|
26417
|
+
await componentLoaded(this);
|
|
26418
|
+
this.el.focus();
|
|
26419
|
+
}
|
|
26319
26420
|
/** Go to the next page of results. */
|
|
26320
26421
|
async nextPage() {
|
|
26321
26422
|
this.startItem = Math.min(this.getLastStart(), this.startItem + this.pageSize);
|
|
@@ -26392,9 +26493,10 @@ class Pagination {
|
|
|
26392
26493
|
useGrouping: this.groupSeparator
|
|
26393
26494
|
};
|
|
26394
26495
|
const displayedPage = numberStringFormatter.localize(page.toString());
|
|
26395
|
-
|
|
26396
|
-
|
|
26397
|
-
[CSS$
|
|
26496
|
+
const selected = start === this.startItem;
|
|
26497
|
+
return (hAsync("button", { "aria-current": selected ? "page" : "false", class: {
|
|
26498
|
+
[CSS$n.page]: true,
|
|
26499
|
+
[CSS$n.selected]: selected
|
|
26398
26500
|
}, onClick: () => {
|
|
26399
26501
|
this.startItem = start;
|
|
26400
26502
|
this.emitUpdate();
|
|
@@ -26402,12 +26504,12 @@ class Pagination {
|
|
|
26402
26504
|
}
|
|
26403
26505
|
renderLeftEllipsis() {
|
|
26404
26506
|
if (this.totalItems / this.pageSize > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
26405
|
-
return hAsync("span", { class: `${CSS$
|
|
26507
|
+
return hAsync("span", { class: `${CSS$n.ellipsis} ${CSS$n.ellipsisStart}` }, "\u2026");
|
|
26406
26508
|
}
|
|
26407
26509
|
}
|
|
26408
26510
|
renderRightEllipsis() {
|
|
26409
26511
|
if (this.totalItems / this.pageSize > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
26410
|
-
return hAsync("span", { class: `${CSS$
|
|
26512
|
+
return hAsync("span", { class: `${CSS$n.ellipsis} ${CSS$n.ellipsisEnd}` }, "\u2026");
|
|
26411
26513
|
}
|
|
26412
26514
|
}
|
|
26413
26515
|
render() {
|
|
@@ -26415,11 +26517,11 @@ class Pagination {
|
|
|
26415
26517
|
const prevDisabled = pageSize === 1 ? startItem <= pageSize : startItem < pageSize;
|
|
26416
26518
|
const nextDisabled = pageSize === 1 ? startItem + pageSize > totalItems : startItem + pageSize > totalItems;
|
|
26417
26519
|
return (hAsync(Fragment, null, hAsync("button", { "aria-label": this.messages.previous, class: {
|
|
26418
|
-
[CSS$
|
|
26419
|
-
[CSS$
|
|
26520
|
+
[CSS$n.previous]: true,
|
|
26521
|
+
[CSS$n.disabled]: prevDisabled
|
|
26420
26522
|
}, disabled: prevDisabled, onClick: this.previousClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronLeft", scale: this.scale === "l" ? "m" : "s" })), totalItems > pageSize ? this.renderPage(1) : null, this.renderLeftEllipsis(), this.renderPages(), this.renderRightEllipsis(), this.renderPage(this.getLastStart()), hAsync("button", { "aria-label": this.messages.next, class: {
|
|
26421
|
-
[CSS$
|
|
26422
|
-
[CSS$
|
|
26523
|
+
[CSS$n.next]: true,
|
|
26524
|
+
[CSS$n.disabled]: nextDisabled
|
|
26423
26525
|
}, disabled: nextDisabled, onClick: this.nextClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronRight", scale: this.scale === "l" ? "m" : "s" }))));
|
|
26424
26526
|
}
|
|
26425
26527
|
static get delegatesFocus() { return true; }
|
|
@@ -26444,6 +26546,7 @@ class Pagination {
|
|
|
26444
26546
|
"messages": [1040],
|
|
26445
26547
|
"defaultMessages": [32],
|
|
26446
26548
|
"effectiveLocale": [32],
|
|
26549
|
+
"setFocus": [64],
|
|
26447
26550
|
"nextPage": [64],
|
|
26448
26551
|
"previousPage": [64]
|
|
26449
26552
|
},
|
|
@@ -26640,19 +26743,19 @@ class Panel {
|
|
|
26640
26743
|
// --------------------------------------------------------------------------
|
|
26641
26744
|
renderHeaderContent() {
|
|
26642
26745
|
const { heading, headingLevel, description, hasHeaderContent } = this;
|
|
26643
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
26644
|
-
const descriptionNode = description ? hAsync("span", { class: CSS$
|
|
26645
|
-
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$
|
|
26746
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$C.heading, level: headingLevel }, heading)) : null;
|
|
26747
|
+
const descriptionNode = description ? hAsync("span", { class: CSS$C.description }, description) : null;
|
|
26748
|
+
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$C.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
|
|
26646
26749
|
}
|
|
26647
26750
|
/**
|
|
26648
26751
|
* Allows user to override the entire header-content node.
|
|
26649
26752
|
*/
|
|
26650
26753
|
renderHeaderSlottedContent() {
|
|
26651
|
-
return (hAsync("div", { class: CSS$
|
|
26754
|
+
return (hAsync("div", { class: CSS$C.headerContent, hidden: !this.hasHeaderContent, key: "slotted-header-content" }, hAsync("slot", { name: SLOTS$k.headerContent, onSlotchange: this.handleHeaderContentSlotChange })));
|
|
26652
26755
|
}
|
|
26653
26756
|
renderHeaderStartActions() {
|
|
26654
26757
|
const { hasStartActions } = this;
|
|
26655
|
-
return (hAsync("div", { class: { [CSS$
|
|
26758
|
+
return (hAsync("div", { class: { [CSS$C.headerActionsStart]: true, [CSS$C.headerActions]: true }, hidden: !hasStartActions, key: "header-actions-start" }, hAsync("slot", { name: SLOTS$k.headerActionsStart, onSlotchange: this.handleHeaderActionsStartSlotChange })));
|
|
26656
26759
|
}
|
|
26657
26760
|
renderHeaderActionsEnd() {
|
|
26658
26761
|
const { close, hasEndActions, messages, closable } = this;
|
|
@@ -26660,13 +26763,13 @@ class Panel {
|
|
|
26660
26763
|
const closableNode = closable ? (hAsync("calcite-action", { "aria-label": text, icon: ICONS$9.close, onClick: close, text: text,
|
|
26661
26764
|
// eslint-disable-next-line react/jsx-sort-props
|
|
26662
26765
|
ref: this.setCloseRef })) : null;
|
|
26663
|
-
const slotNode = (hAsync("slot", { name: SLOTS$
|
|
26766
|
+
const slotNode = (hAsync("slot", { name: SLOTS$k.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
|
|
26664
26767
|
const showContainer = hasEndActions || closableNode;
|
|
26665
|
-
return (hAsync("div", { class: { [CSS$
|
|
26768
|
+
return (hAsync("div", { class: { [CSS$C.headerActionsEnd]: true, [CSS$C.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, closableNode));
|
|
26666
26769
|
}
|
|
26667
26770
|
renderMenu() {
|
|
26668
26771
|
const { hasMenuItems, messages, menuOpen } = this;
|
|
26669
|
-
return (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], hidden: !hasMenuItems, key: "menu", label: messages.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$9.menu, slot: SLOTS$
|
|
26772
|
+
return (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], hidden: !hasMenuItems, key: "menu", label: messages.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$9.menu, slot: SLOTS$s.trigger, text: messages.options }), hAsync("slot", { name: SLOTS$k.headerMenuActions, onSlotchange: this.handleHeaderMenuActionsSlotChange })));
|
|
26670
26773
|
}
|
|
26671
26774
|
renderHeaderNode() {
|
|
26672
26775
|
const { hasHeaderContent, hasStartActions, hasEndActions, closable, hasMenuItems } = this;
|
|
@@ -26677,31 +26780,31 @@ class Panel {
|
|
|
26677
26780
|
hasEndActions ||
|
|
26678
26781
|
closable ||
|
|
26679
26782
|
hasMenuItems;
|
|
26680
|
-
return (hAsync("header", { class: CSS$
|
|
26783
|
+
return (hAsync("header", { class: CSS$C.header, hidden: !showHeader }, this.renderHeaderStartActions(), this.renderHeaderSlottedContent(), headerContentNode, this.renderHeaderActionsEnd(), this.renderMenu()));
|
|
26681
26784
|
}
|
|
26682
26785
|
renderFooterNode() {
|
|
26683
26786
|
const { hasFooterContent, hasFooterActions } = this;
|
|
26684
26787
|
const showFooter = hasFooterContent || hasFooterActions;
|
|
26685
|
-
return (hAsync("footer", { class: CSS$
|
|
26788
|
+
return (hAsync("footer", { class: CSS$C.footer, hidden: !showFooter }, hAsync("slot", { key: "footer-slot", name: SLOTS$k.footer, onSlotchange: this.handleFooterSlotChange }), hAsync("slot", { key: "footer-actions-slot", name: SLOTS$k.footerActions, onSlotchange: this.handleFooterActionsSlotChange })));
|
|
26686
26789
|
}
|
|
26687
26790
|
renderContent() {
|
|
26688
26791
|
const { hasFab } = this;
|
|
26689
26792
|
const defaultSlotNode = hAsync("slot", { key: "default-slot" });
|
|
26690
|
-
const containerNode = hasFab ? (hAsync("section", { class: CSS$
|
|
26793
|
+
const containerNode = hasFab ? (hAsync("section", { class: CSS$C.contentContainer }, defaultSlotNode)) : (defaultSlotNode);
|
|
26691
26794
|
return (hAsync("div", { class: {
|
|
26692
|
-
[CSS$
|
|
26693
|
-
[CSS$
|
|
26694
|
-
[CSS$
|
|
26795
|
+
[CSS$C.contentWrapper]: true,
|
|
26796
|
+
[CSS$C.contentContainer]: !hasFab,
|
|
26797
|
+
[CSS$C.contentHeight]: hasFab
|
|
26695
26798
|
}, onScroll: this.panelScrollHandler,
|
|
26696
26799
|
// eslint-disable-next-line react/jsx-sort-props
|
|
26697
26800
|
ref: this.setPanelScrollEl }, containerNode, this.renderFab()));
|
|
26698
26801
|
}
|
|
26699
26802
|
renderFab() {
|
|
26700
|
-
return (hAsync("div", { class: CSS$
|
|
26803
|
+
return (hAsync("div", { class: CSS$C.fabContainer, hidden: !this.hasFab }, hAsync("slot", { name: SLOTS$k.fab, onSlotchange: this.handleFabSlotChange })));
|
|
26701
26804
|
}
|
|
26702
26805
|
render() {
|
|
26703
26806
|
const { loading, panelKeyDownHandler, closed, closable } = this;
|
|
26704
|
-
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$
|
|
26807
|
+
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$C.container, hidden: closed, onKeyDown: panelKeyDownHandler, tabIndex: closable ? 0 : -1,
|
|
26705
26808
|
// eslint-disable-next-line react/jsx-sort-props
|
|
26706
26809
|
ref: this.setContainerRef }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
26707
26810
|
return (hAsync(Fragment, null, loading ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
@@ -26745,7 +26848,7 @@ class Panel {
|
|
|
26745
26848
|
}; }
|
|
26746
26849
|
}
|
|
26747
26850
|
|
|
26748
|
-
const CSS$
|
|
26851
|
+
const CSS$m = {
|
|
26749
26852
|
sticky: "sticky-pos"
|
|
26750
26853
|
};
|
|
26751
26854
|
var ICON_TYPES$1;
|
|
@@ -26754,16 +26857,16 @@ var ICON_TYPES$1;
|
|
|
26754
26857
|
ICON_TYPES["square"] = "square";
|
|
26755
26858
|
ICON_TYPES["grip"] = "grip";
|
|
26756
26859
|
})(ICON_TYPES$1 || (ICON_TYPES$1 = {}));
|
|
26757
|
-
const SLOTS$
|
|
26860
|
+
const SLOTS$c = {
|
|
26758
26861
|
menuActions: "menu-actions"
|
|
26759
26862
|
};
|
|
26760
26863
|
|
|
26761
|
-
const CSS$
|
|
26864
|
+
const CSS$l = {
|
|
26762
26865
|
heading: "heading",
|
|
26763
26866
|
container: "container",
|
|
26764
26867
|
indented: "container--indented"
|
|
26765
26868
|
};
|
|
26766
|
-
const SLOTS$
|
|
26869
|
+
const SLOTS$b = {
|
|
26767
26870
|
parentItem: "parent-item"
|
|
26768
26871
|
};
|
|
26769
26872
|
|
|
@@ -26908,7 +27011,7 @@ function removeItem(event) {
|
|
|
26908
27011
|
}
|
|
26909
27012
|
const item = event.target;
|
|
26910
27013
|
const selectedValues = this.selectedValues;
|
|
26911
|
-
if (item.parentElement.tagName === "CALCITE-PICK-LIST-GROUP" && item.slot === SLOTS$
|
|
27014
|
+
if (item.parentElement.tagName === "CALCITE-PICK-LIST-GROUP" && item.slot === SLOTS$b.parentItem) {
|
|
26912
27015
|
item.parentElement.remove();
|
|
26913
27016
|
Array.from(item.parentElement.children).forEach((item) => selectedValues.delete(item.value));
|
|
26914
27017
|
}
|
|
@@ -27084,11 +27187,11 @@ const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handle
|
|
|
27084
27187
|
dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: "assistive-text",
|
|
27085
27188
|
// eslint-disable-next-line react/jsx-sort-props
|
|
27086
27189
|
ref: storeAssistiveEl })) : null,
|
|
27087
|
-
hAsync("header", { class: { [CSS$
|
|
27190
|
+
hAsync("header", { class: { [CSS$m.sticky]: true } },
|
|
27088
27191
|
filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilterEvent, placeholder: filterPlaceholder, value: filterText,
|
|
27089
27192
|
// eslint-disable-next-line react/jsx-sort-props
|
|
27090
27193
|
ref: setFilterEl })) : null,
|
|
27091
|
-
hAsync("slot", { name: SLOTS$
|
|
27194
|
+
hAsync("slot", { name: SLOTS$c.menuActions })),
|
|
27092
27195
|
loading ? hAsync("calcite-scrim", { loading: loading }) : null,
|
|
27093
27196
|
defaultSlot)));
|
|
27094
27197
|
};
|
|
@@ -27271,16 +27374,16 @@ class PickListGroup {
|
|
|
27271
27374
|
// --------------------------------------------------------------------------
|
|
27272
27375
|
render() {
|
|
27273
27376
|
const { el, groupTitle, headingLevel } = this;
|
|
27274
|
-
const hasParentItem = getSlotted(el, SLOTS$
|
|
27377
|
+
const hasParentItem = getSlotted(el, SLOTS$b.parentItem) !== null;
|
|
27275
27378
|
const sectionClasses = {
|
|
27276
|
-
[CSS$
|
|
27277
|
-
[CSS$
|
|
27379
|
+
[CSS$l.container]: true,
|
|
27380
|
+
[CSS$l.indented]: hasParentItem
|
|
27278
27381
|
};
|
|
27279
27382
|
const title = groupTitle;
|
|
27280
27383
|
const parentLevel = el.closest("calcite-pick-list")?.headingLevel;
|
|
27281
27384
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
27282
27385
|
const level = headingLevel || relativeLevel;
|
|
27283
|
-
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$
|
|
27386
|
+
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$l.heading, level: level }, title)) : null, hAsync("slot", { name: SLOTS$b.parentItem }), hAsync("section", { class: sectionClasses }, hAsync("slot", null))));
|
|
27284
27387
|
}
|
|
27285
27388
|
get el() { return getElement(this); }
|
|
27286
27389
|
static get style() { return pickListGroupCss; }
|
|
@@ -27297,7 +27400,7 @@ class PickListGroup {
|
|
|
27297
27400
|
}; }
|
|
27298
27401
|
}
|
|
27299
27402
|
|
|
27300
|
-
const CSS$
|
|
27403
|
+
const CSS$k = {
|
|
27301
27404
|
actions: "actions",
|
|
27302
27405
|
actionsEnd: "actions--end",
|
|
27303
27406
|
actionsStart: "actions--start",
|
|
@@ -27316,7 +27419,7 @@ const ICONS$4 = {
|
|
|
27316
27419
|
checked: "check",
|
|
27317
27420
|
remove: "x"
|
|
27318
27421
|
};
|
|
27319
|
-
const SLOTS$
|
|
27422
|
+
const SLOTS$a = {
|
|
27320
27423
|
actionsEnd: "actions-end",
|
|
27321
27424
|
actionsStart: "actions-start"
|
|
27322
27425
|
};
|
|
@@ -27457,28 +27560,28 @@ class PickListItem {
|
|
|
27457
27560
|
return null;
|
|
27458
27561
|
}
|
|
27459
27562
|
return (hAsync("span", { class: {
|
|
27460
|
-
[CSS$
|
|
27461
|
-
[CSS$
|
|
27563
|
+
[CSS$k.icon]: true,
|
|
27564
|
+
[CSS$k.iconDot]: icon === ICON_TYPES$1.circle
|
|
27462
27565
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? (hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS$4.checked, scale: "s" })) : null));
|
|
27463
27566
|
}
|
|
27464
27567
|
renderRemoveAction() {
|
|
27465
|
-
return this.removable ? (hAsync("calcite-action", { class: CSS$
|
|
27568
|
+
return this.removable ? (hAsync("calcite-action", { class: CSS$k.remove, icon: ICONS$4.remove, onClick: this.removeClickHandler, slot: SLOTS$a.actionsEnd, text: this.messages.remove })) : null;
|
|
27466
27569
|
}
|
|
27467
27570
|
renderActionsStart() {
|
|
27468
27571
|
const { el } = this;
|
|
27469
|
-
const hasActionsStart = getSlotted(el, SLOTS$
|
|
27470
|
-
return hasActionsStart ? (hAsync("div", { class: { [CSS$
|
|
27572
|
+
const hasActionsStart = getSlotted(el, SLOTS$a.actionsStart);
|
|
27573
|
+
return hasActionsStart ? (hAsync("div", { class: { [CSS$k.actions]: true, [CSS$k.actionsStart]: true } }, hAsync("slot", { name: SLOTS$a.actionsStart }))) : null;
|
|
27471
27574
|
}
|
|
27472
27575
|
renderActionsEnd() {
|
|
27473
27576
|
const { el, removable } = this;
|
|
27474
|
-
const hasActionsEnd = getSlotted(el, SLOTS$
|
|
27475
|
-
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$
|
|
27577
|
+
const hasActionsEnd = getSlotted(el, SLOTS$a.actionsEnd);
|
|
27578
|
+
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$k.actions]: true, [CSS$k.actionsEnd]: true } }, hAsync("slot", { name: SLOTS$a.actionsEnd }), this.renderRemoveAction())) : null;
|
|
27476
27579
|
}
|
|
27477
27580
|
render() {
|
|
27478
27581
|
const { description, label } = this;
|
|
27479
|
-
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$
|
|
27582
|
+
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$k.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, tabIndex: 0,
|
|
27480
27583
|
// eslint-disable-next-line react/jsx-sort-props
|
|
27481
|
-
ref: (focusEl) => (this.focusEl = focusEl) }, hAsync("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$
|
|
27584
|
+
ref: (focusEl) => (this.focusEl = focusEl) }, hAsync("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$k.textContainer, role: "menuitemcheckbox" }, hAsync("span", { class: CSS$k.title }, label), description ? hAsync("span", { class: CSS$k.description }, description) : null)), this.renderActionsEnd()));
|
|
27482
27585
|
}
|
|
27483
27586
|
static get assetsDirs() { return ["assets"]; }
|
|
27484
27587
|
get el() { return getElement(this); }
|
|
@@ -27521,7 +27624,7 @@ class PickListItem {
|
|
|
27521
27624
|
}; }
|
|
27522
27625
|
}
|
|
27523
27626
|
|
|
27524
|
-
const CSS$
|
|
27627
|
+
const CSS$j = {
|
|
27525
27628
|
container: "container",
|
|
27526
27629
|
arrow: "arrow",
|
|
27527
27630
|
imageContainer: "image-container",
|
|
@@ -27866,20 +27969,20 @@ class Popover {
|
|
|
27866
27969
|
// --------------------------------------------------------------------------
|
|
27867
27970
|
renderCloseButton() {
|
|
27868
27971
|
const { messages, closable } = this;
|
|
27869
|
-
return closable ? (hAsync("div", { class: CSS$
|
|
27972
|
+
return closable ? (hAsync("div", { class: CSS$j.closeButtonContainer, key: CSS$j.closeButtonContainer }, hAsync("calcite-action", { class: CSS$j.closeButton, onClick: this.hide, scale: this.scale, text: messages.close,
|
|
27870
27973
|
// eslint-disable-next-line react/jsx-sort-props
|
|
27871
27974
|
ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : this.scale })))) : null;
|
|
27872
27975
|
}
|
|
27873
27976
|
renderHeader() {
|
|
27874
27977
|
const { heading, headingLevel } = this;
|
|
27875
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
27876
|
-
return headingNode ? (hAsync("div", { class: CSS$
|
|
27978
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$j.heading, level: headingLevel }, heading)) : null;
|
|
27979
|
+
return headingNode ? (hAsync("div", { class: CSS$j.header, key: CSS$j.header }, headingNode, this.renderCloseButton())) : null;
|
|
27877
27980
|
}
|
|
27878
27981
|
render() {
|
|
27879
27982
|
const { effectiveReferenceElement, heading, label, open, pointerDisabled } = this;
|
|
27880
27983
|
const displayed = effectiveReferenceElement && open;
|
|
27881
27984
|
const hidden = !displayed;
|
|
27882
|
-
const arrowNode = !pointerDisabled ? (hAsync("div", { class: CSS$
|
|
27985
|
+
const arrowNode = !pointerDisabled ? (hAsync("div", { class: CSS$j.arrow,
|
|
27883
27986
|
// eslint-disable-next-line react/jsx-sort-props
|
|
27884
27987
|
ref: this.storeArrowEl })) : null;
|
|
27885
27988
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "aria-live": "polite", "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, hAsync("div", { class: {
|
|
@@ -27888,9 +27991,9 @@ class Popover {
|
|
|
27888
27991
|
},
|
|
27889
27992
|
// eslint-disable-next-line react/jsx-sort-props
|
|
27890
27993
|
ref: this.setTransitionEl }, arrowNode, hAsync("div", { class: {
|
|
27891
|
-
[CSS$
|
|
27892
|
-
[CSS$
|
|
27893
|
-
} }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
27994
|
+
[CSS$j.hasHeader]: !!heading,
|
|
27995
|
+
[CSS$j.container]: true
|
|
27996
|
+
} }, this.renderHeader(), hAsync("div", { class: CSS$j.content }, hAsync("slot", null)), !heading ? this.renderCloseButton() : null))));
|
|
27894
27997
|
}
|
|
27895
27998
|
static get assetsDirs() { return ["assets"]; }
|
|
27896
27999
|
get el() { return getElement(this); }
|
|
@@ -27981,7 +28084,7 @@ class Progress {
|
|
|
27981
28084
|
}; }
|
|
27982
28085
|
}
|
|
27983
28086
|
|
|
27984
|
-
const CSS$
|
|
28087
|
+
const CSS$i = {
|
|
27985
28088
|
container: "container"
|
|
27986
28089
|
};
|
|
27987
28090
|
|
|
@@ -28078,6 +28181,7 @@ class RadioButton {
|
|
|
28078
28181
|
this.checked = false;
|
|
28079
28182
|
this.disabled = false;
|
|
28080
28183
|
this.focused = false;
|
|
28184
|
+
this.form = undefined;
|
|
28081
28185
|
this.guid = undefined;
|
|
28082
28186
|
this.hidden = false;
|
|
28083
28187
|
this.hovered = false;
|
|
@@ -28221,7 +28325,7 @@ class RadioButton {
|
|
|
28221
28325
|
// --------------------------------------------------------------------------
|
|
28222
28326
|
render() {
|
|
28223
28327
|
const tabIndex = this.getTabIndex();
|
|
28224
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$
|
|
28328
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$i.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, role: "radio", tabIndex: tabIndex,
|
|
28225
28329
|
// eslint-disable-next-line react/jsx-sort-props
|
|
28226
28330
|
ref: this.setContainerEl }, hAsync("div", { class: "radio" })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
28227
28331
|
}
|
|
@@ -28238,6 +28342,7 @@ class RadioButton {
|
|
|
28238
28342
|
"checked": [1540],
|
|
28239
28343
|
"disabled": [516],
|
|
28240
28344
|
"focused": [1540],
|
|
28345
|
+
"form": [513],
|
|
28241
28346
|
"guid": [1537],
|
|
28242
28347
|
"hidden": [516],
|
|
28243
28348
|
"hovered": [1540],
|
|
@@ -28251,7 +28356,7 @@ class RadioButton {
|
|
|
28251
28356
|
},
|
|
28252
28357
|
"$listeners$": [[1, "pointerenter", "mouseenter"], [1, "pointerleave", "mouseleave"]],
|
|
28253
28358
|
"$lazyBundleId$": "-",
|
|
28254
|
-
"$attrsToReflect$": [["checked", "checked"], ["disabled", "disabled"], ["focused", "focused"], ["guid", "guid"], ["hidden", "hidden"], ["hovered", "hovered"], ["name", "name"], ["required", "required"], ["scale", "scale"]]
|
|
28359
|
+
"$attrsToReflect$": [["checked", "checked"], ["disabled", "disabled"], ["focused", "focused"], ["form", "form"], ["guid", "guid"], ["hidden", "hidden"], ["hovered", "hovered"], ["name", "name"], ["required", "required"], ["scale", "scale"]]
|
|
28255
28360
|
}; }
|
|
28256
28361
|
}
|
|
28257
28362
|
|
|
@@ -28466,6 +28571,7 @@ class Rating {
|
|
|
28466
28571
|
this.average = undefined;
|
|
28467
28572
|
this.count = undefined;
|
|
28468
28573
|
this.disabled = false;
|
|
28574
|
+
this.form = undefined;
|
|
28469
28575
|
this.messages = undefined;
|
|
28470
28576
|
this.messageOverrides = undefined;
|
|
28471
28577
|
this.name = undefined;
|
|
@@ -28607,6 +28713,7 @@ class Rating {
|
|
|
28607
28713
|
"average": [514],
|
|
28608
28714
|
"count": [514],
|
|
28609
28715
|
"disabled": [516],
|
|
28716
|
+
"form": [513],
|
|
28610
28717
|
"messages": [1040],
|
|
28611
28718
|
"messageOverrides": [1040],
|
|
28612
28719
|
"name": [513],
|
|
@@ -28624,11 +28731,11 @@ class Rating {
|
|
|
28624
28731
|
},
|
|
28625
28732
|
"$listeners$": undefined,
|
|
28626
28733
|
"$lazyBundleId$": "-",
|
|
28627
|
-
"$attrsToReflect$": [["average", "average"], ["count", "count"], ["disabled", "disabled"], ["name", "name"], ["readOnly", "read-only"], ["required", "required"], ["scale", "scale"], ["showChip", "show-chip"], ["value", "value"]]
|
|
28734
|
+
"$attrsToReflect$": [["average", "average"], ["count", "count"], ["disabled", "disabled"], ["form", "form"], ["name", "name"], ["readOnly", "read-only"], ["required", "required"], ["scale", "scale"], ["showChip", "show-chip"], ["value", "value"]]
|
|
28628
28735
|
}; }
|
|
28629
28736
|
}
|
|
28630
28737
|
|
|
28631
|
-
const CSS$
|
|
28738
|
+
const CSS$h = {
|
|
28632
28739
|
scrim: "scrim",
|
|
28633
28740
|
content: "content"
|
|
28634
28741
|
};
|
|
@@ -28678,8 +28785,8 @@ class Scrim {
|
|
|
28678
28785
|
const { el, loading, messages } = this;
|
|
28679
28786
|
const hasContent = el.innerHTML.trim().length > 0;
|
|
28680
28787
|
const loaderNode = loading ? hAsync("calcite-loader", { label: messages.loading }) : null;
|
|
28681
|
-
const contentNode = hasContent ? (hAsync("div", { class: CSS$
|
|
28682
|
-
return (hAsync("div", { class: CSS$
|
|
28788
|
+
const contentNode = hasContent ? (hAsync("div", { class: CSS$h.content }, hAsync("slot", null))) : null;
|
|
28789
|
+
return (hAsync("div", { class: CSS$h.scrim }, loaderNode, contentNode));
|
|
28683
28790
|
}
|
|
28684
28791
|
static get assetsDirs() { return ["assets"]; }
|
|
28685
28792
|
get el() { return getElement(this); }
|
|
@@ -28725,6 +28832,7 @@ class SegmentedControl {
|
|
|
28725
28832
|
};
|
|
28726
28833
|
this.appearance = "solid";
|
|
28727
28834
|
this.disabled = false;
|
|
28835
|
+
this.form = undefined;
|
|
28728
28836
|
this.required = false;
|
|
28729
28837
|
this.layout = "horizontal";
|
|
28730
28838
|
this.name = undefined;
|
|
@@ -28892,6 +29000,7 @@ class SegmentedControl {
|
|
|
28892
29000
|
"$members$": {
|
|
28893
29001
|
"appearance": [513],
|
|
28894
29002
|
"disabled": [516],
|
|
29003
|
+
"form": [513],
|
|
28895
29004
|
"required": [516],
|
|
28896
29005
|
"layout": [513],
|
|
28897
29006
|
"name": [513],
|
|
@@ -28903,14 +29012,14 @@ class SegmentedControl {
|
|
|
28903
29012
|
},
|
|
28904
29013
|
"$listeners$": [[0, "calciteInternalSegmentedControlItemChange", "handleSelected"], [0, "keydown", "handleKeyDown"]],
|
|
28905
29014
|
"$lazyBundleId$": "-",
|
|
28906
|
-
"$attrsToReflect$": [["appearance", "appearance"], ["disabled", "disabled"], ["required", "required"], ["layout", "layout"], ["name", "name"], ["scale", "scale"], ["width", "width"]]
|
|
29015
|
+
"$attrsToReflect$": [["appearance", "appearance"], ["disabled", "disabled"], ["form", "form"], ["required", "required"], ["layout", "layout"], ["name", "name"], ["scale", "scale"], ["width", "width"]]
|
|
28907
29016
|
}; }
|
|
28908
29017
|
}
|
|
28909
29018
|
|
|
28910
|
-
const SLOTS$
|
|
29019
|
+
const SLOTS$9 = {
|
|
28911
29020
|
input: "input"
|
|
28912
29021
|
};
|
|
28913
|
-
const CSS$
|
|
29022
|
+
const CSS$g = {
|
|
28914
29023
|
segmentedControlItemIcon: "segmented-control-item-icon"
|
|
28915
29024
|
};
|
|
28916
29025
|
|
|
@@ -28934,8 +29043,8 @@ class SegmentedControlItem {
|
|
|
28934
29043
|
const scale = getElementProp(this.el, "scale", "m");
|
|
28935
29044
|
const appearance = getElementProp(this.el, "appearance", "solid");
|
|
28936
29045
|
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
28937
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
28938
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$
|
|
29046
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$g.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
29047
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$g.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
28939
29048
|
return (hAsync(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, hAsync("label", { class: {
|
|
28940
29049
|
"label--scale-s": scale === "s",
|
|
28941
29050
|
"label--scale-m": scale === "m",
|
|
@@ -28943,7 +29052,7 @@ class SegmentedControlItem {
|
|
|
28943
29052
|
"label--horizontal": layout === "horizontal",
|
|
28944
29053
|
"label--outline": appearance === "outline",
|
|
28945
29054
|
"label--outline-fill": appearance === "outline-fill"
|
|
28946
|
-
} }, this.iconStart ? iconStartEl : null, hAsync("slot", null, value), hAsync("slot", { name: SLOTS$
|
|
29055
|
+
} }, this.iconStart ? iconStartEl : null, hAsync("slot", null, value), hAsync("slot", { name: SLOTS$9.input }), this.iconEnd ? iconEndEl : null)));
|
|
28947
29056
|
}
|
|
28948
29057
|
get el() { return getElement(this); }
|
|
28949
29058
|
static get watchers() { return {
|
|
@@ -28966,7 +29075,7 @@ class SegmentedControlItem {
|
|
|
28966
29075
|
}; }
|
|
28967
29076
|
}
|
|
28968
29077
|
|
|
28969
|
-
const CSS$
|
|
29078
|
+
const CSS$f = {
|
|
28970
29079
|
icon: "icon",
|
|
28971
29080
|
iconContainer: "icon-container",
|
|
28972
29081
|
select: "select"
|
|
@@ -29009,6 +29118,7 @@ class Select {
|
|
|
29009
29118
|
this.calciteSelectChange.emit();
|
|
29010
29119
|
};
|
|
29011
29120
|
this.disabled = false;
|
|
29121
|
+
this.form = undefined;
|
|
29012
29122
|
this.label = undefined;
|
|
29013
29123
|
this.name = undefined;
|
|
29014
29124
|
this.required = false;
|
|
@@ -29150,10 +29260,10 @@ class Select {
|
|
|
29150
29260
|
//
|
|
29151
29261
|
//--------------------------------------------------------------------------
|
|
29152
29262
|
renderChevron() {
|
|
29153
|
-
return (hAsync("div", { class: CSS$
|
|
29263
|
+
return (hAsync("div", { class: CSS$f.iconContainer }, hAsync("calcite-icon", { class: CSS$f.icon, icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" })));
|
|
29154
29264
|
}
|
|
29155
29265
|
render() {
|
|
29156
|
-
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$
|
|
29266
|
+
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$f.select, disabled: this.disabled, onChange: this.handleInternalSelectChange,
|
|
29157
29267
|
// eslint-disable-next-line react/jsx-sort-props
|
|
29158
29268
|
ref: this.storeSelectRef }, hAsync("slot", null)), this.renderChevron(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
29159
29269
|
}
|
|
@@ -29168,6 +29278,7 @@ class Select {
|
|
|
29168
29278
|
"$tagName$": "calcite-select",
|
|
29169
29279
|
"$members$": {
|
|
29170
29280
|
"disabled": [516],
|
|
29281
|
+
"form": [513],
|
|
29171
29282
|
"label": [1],
|
|
29172
29283
|
"name": [513],
|
|
29173
29284
|
"required": [516],
|
|
@@ -29179,11 +29290,11 @@ class Select {
|
|
|
29179
29290
|
},
|
|
29180
29291
|
"$listeners$": [[0, "calciteInternalOptionChange", "handleOptionOrGroupChange"], [0, "calciteInternalOptionGroupChange", "handleOptionOrGroupChange"]],
|
|
29181
29292
|
"$lazyBundleId$": "-",
|
|
29182
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["name", "name"], ["required", "required"], ["scale", "scale"], ["width", "width"]]
|
|
29293
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["form", "form"], ["name", "name"], ["required", "required"], ["scale", "scale"], ["width", "width"]]
|
|
29183
29294
|
}; }
|
|
29184
29295
|
}
|
|
29185
29296
|
|
|
29186
|
-
const CSS$
|
|
29297
|
+
const CSS$e = {
|
|
29187
29298
|
main: "main",
|
|
29188
29299
|
content: "content",
|
|
29189
29300
|
contentBehind: "content--behind",
|
|
@@ -29191,7 +29302,7 @@ const CSS$d = {
|
|
|
29191
29302
|
positionedSlotWrapper: "positioned-slot-wrapper",
|
|
29192
29303
|
container: "container"
|
|
29193
29304
|
};
|
|
29194
|
-
const SLOTS$
|
|
29305
|
+
const SLOTS$8 = {
|
|
29195
29306
|
centerRow: "center-row",
|
|
29196
29307
|
panelStart: "panel-start",
|
|
29197
29308
|
panelEnd: "panel-end",
|
|
@@ -29266,39 +29377,39 @@ class Shell {
|
|
|
29266
29377
|
//
|
|
29267
29378
|
// --------------------------------------------------------------------------
|
|
29268
29379
|
renderHeader() {
|
|
29269
|
-
return (hAsync("div", { hidden: !this.hasHeader }, hAsync("slot", { key: "header", name: SLOTS$
|
|
29380
|
+
return (hAsync("div", { hidden: !this.hasHeader }, hAsync("slot", { key: "header", name: SLOTS$8.header, onSlotchange: this.handleHeaderSlotChange })));
|
|
29270
29381
|
}
|
|
29271
29382
|
renderFooter() {
|
|
29272
|
-
return (hAsync("div", { class: CSS$
|
|
29383
|
+
return (hAsync("div", { class: CSS$e.footer, hidden: !this.hasFooter, key: "footer" }, hAsync("slot", { name: SLOTS$8.footer, onSlotchange: this.handleFooterSlotChange })));
|
|
29273
29384
|
}
|
|
29274
29385
|
renderAlerts() {
|
|
29275
|
-
return (hAsync("div", { hidden: !this.hasAlerts }, hAsync("slot", { key: "alerts", name: SLOTS$
|
|
29386
|
+
return (hAsync("div", { hidden: !this.hasAlerts }, hAsync("slot", { key: "alerts", name: SLOTS$8.alerts, onSlotchange: this.handleAlertsSlotChange })));
|
|
29276
29387
|
}
|
|
29277
29388
|
renderModals() {
|
|
29278
|
-
return (hAsync("div", { hidden: !this.hasModals }, hAsync("slot", { key: "modals", name: SLOTS$
|
|
29389
|
+
return (hAsync("div", { hidden: !this.hasModals }, hAsync("slot", { key: "modals", name: SLOTS$8.modals, onSlotchange: this.handleModalsSlotChange })));
|
|
29279
29390
|
}
|
|
29280
29391
|
renderContent() {
|
|
29281
29392
|
const defaultSlotNode = hAsync("slot", { key: "default-slot" });
|
|
29282
|
-
const centerRowSlotNode = hAsync("slot", { key: "center-row-slot", name: SLOTS$
|
|
29393
|
+
const centerRowSlotNode = hAsync("slot", { key: "center-row-slot", name: SLOTS$8.centerRow });
|
|
29283
29394
|
const contentContainerKey = "content-container";
|
|
29284
29395
|
const content = !!this.contentBehind
|
|
29285
29396
|
? [
|
|
29286
29397
|
hAsync("div", { class: {
|
|
29287
|
-
[CSS$
|
|
29288
|
-
[CSS$
|
|
29398
|
+
[CSS$e.content]: true,
|
|
29399
|
+
[CSS$e.contentBehind]: true
|
|
29289
29400
|
}, key: contentContainerKey }, defaultSlotNode),
|
|
29290
29401
|
centerRowSlotNode
|
|
29291
29402
|
]
|
|
29292
29403
|
: [
|
|
29293
|
-
hAsync("div", { class: CSS$
|
|
29404
|
+
hAsync("div", { class: CSS$e.content, key: contentContainerKey }, defaultSlotNode, centerRowSlotNode)
|
|
29294
29405
|
];
|
|
29295
29406
|
return content;
|
|
29296
29407
|
}
|
|
29297
29408
|
renderMain() {
|
|
29298
|
-
return (hAsync("div", { class: CSS$
|
|
29409
|
+
return (hAsync("div", { class: CSS$e.main }, hAsync("slot", { name: SLOTS$8.panelStart }), this.renderContent(), hAsync("slot", { name: SLOTS$8.panelEnd })));
|
|
29299
29410
|
}
|
|
29300
29411
|
renderPositionedSlots() {
|
|
29301
|
-
return (hAsync("div", { class: CSS$
|
|
29412
|
+
return (hAsync("div", { class: CSS$e.positionedSlotWrapper }, this.renderAlerts(), this.renderModals()));
|
|
29302
29413
|
}
|
|
29303
29414
|
render() {
|
|
29304
29415
|
return (hAsync(Fragment, null, this.renderHeader(), this.renderMain(), this.renderFooter(), this.renderPositionedSlots()));
|
|
@@ -29321,11 +29432,11 @@ class Shell {
|
|
|
29321
29432
|
}; }
|
|
29322
29433
|
}
|
|
29323
29434
|
|
|
29324
|
-
const CSS$
|
|
29435
|
+
const CSS$d = {
|
|
29325
29436
|
actionBarContainer: "action-bar-container",
|
|
29326
29437
|
content: "content"
|
|
29327
29438
|
};
|
|
29328
|
-
const SLOTS$
|
|
29439
|
+
const SLOTS$7 = {
|
|
29329
29440
|
actionBar: "action-bar"
|
|
29330
29441
|
};
|
|
29331
29442
|
|
|
@@ -29360,9 +29471,9 @@ class ShellCenterRow {
|
|
|
29360
29471
|
// --------------------------------------------------------------------------
|
|
29361
29472
|
render() {
|
|
29362
29473
|
const { el } = this;
|
|
29363
|
-
const contentNode = (hAsync("div", { class: CSS$
|
|
29364
|
-
const actionBar = getSlotted(el, SLOTS$
|
|
29365
|
-
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$
|
|
29474
|
+
const contentNode = (hAsync("div", { class: CSS$d.content }, hAsync("slot", null)));
|
|
29475
|
+
const actionBar = getSlotted(el, SLOTS$7.actionBar);
|
|
29476
|
+
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$d.actionBarContainer, key: "action-bar" }, hAsync("slot", { name: SLOTS$7.actionBar }))) : null;
|
|
29366
29477
|
const children = [actionBarNode, contentNode];
|
|
29367
29478
|
if (actionBar?.position === "end") {
|
|
29368
29479
|
children.reverse();
|
|
@@ -29385,7 +29496,7 @@ class ShellCenterRow {
|
|
|
29385
29496
|
}; }
|
|
29386
29497
|
}
|
|
29387
29498
|
|
|
29388
|
-
const CSS$
|
|
29499
|
+
const CSS$c = {
|
|
29389
29500
|
container: "container",
|
|
29390
29501
|
content: "content",
|
|
29391
29502
|
contentHeader: "content__header",
|
|
@@ -29393,7 +29504,7 @@ const CSS$b = {
|
|
|
29393
29504
|
contentDetached: "content--detached",
|
|
29394
29505
|
separator: "separator"
|
|
29395
29506
|
};
|
|
29396
|
-
const SLOTS$
|
|
29507
|
+
const SLOTS$6 = {
|
|
29397
29508
|
actionBar: "action-bar",
|
|
29398
29509
|
header: "header"
|
|
29399
29510
|
};
|
|
@@ -29557,24 +29668,24 @@ class ShellPanel {
|
|
|
29557
29668
|
// --------------------------------------------------------------------------
|
|
29558
29669
|
renderHeader() {
|
|
29559
29670
|
const { el } = this;
|
|
29560
|
-
const hasHeader = getSlotted(el, SLOTS$
|
|
29561
|
-
return hasHeader ? (hAsync("div", { class: CSS$
|
|
29671
|
+
const hasHeader = getSlotted(el, SLOTS$6.header);
|
|
29672
|
+
return hasHeader ? (hAsync("div", { class: CSS$c.contentHeader, key: "header" }, hAsync("slot", { name: SLOTS$6.header }))) : null;
|
|
29562
29673
|
}
|
|
29563
29674
|
render() {
|
|
29564
29675
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, resizable } = this;
|
|
29565
29676
|
const allowResizing = !detached && resizable;
|
|
29566
|
-
const contentNode = (hAsync("div", { class: { [CSS$
|
|
29677
|
+
const contentNode = (hAsync("div", { class: { [CSS$c.content]: true, [CSS$c.contentDetached]: detached }, hidden: collapsed, key: "content", style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null,
|
|
29567
29678
|
// eslint-disable-next-line react/jsx-sort-props
|
|
29568
|
-
ref: this.storeContentEl }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
29569
|
-
const separatorNode = allowResizing ? (hAsync("div", { "aria-label": this.messages.resize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth ?? initialContentWidth, class: CSS$
|
|
29679
|
+
ref: this.storeContentEl }, this.renderHeader(), hAsync("div", { class: CSS$c.contentBody }, hAsync("slot", null))));
|
|
29680
|
+
const separatorNode = allowResizing ? (hAsync("div", { "aria-label": this.messages.resize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth ?? initialContentWidth, class: CSS$c.separator, key: "separator", onKeyDown: this.separatorKeyDown, role: "separator", tabIndex: 0, "touch-action": "none",
|
|
29570
29681
|
// eslint-disable-next-line react/jsx-sort-props
|
|
29571
29682
|
ref: this.connectSeparator })) : null;
|
|
29572
|
-
const actionBarNode = hAsync("slot", { key: "action-bar", name: SLOTS$
|
|
29683
|
+
const actionBarNode = hAsync("slot", { key: "action-bar", name: SLOTS$6.actionBar });
|
|
29573
29684
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
29574
29685
|
if (position === "end") {
|
|
29575
29686
|
mainNodes.reverse();
|
|
29576
29687
|
}
|
|
29577
|
-
return hAsync("div", { class: { [CSS$
|
|
29688
|
+
return hAsync("div", { class: { [CSS$c.container]: true } }, mainNodes);
|
|
29578
29689
|
}
|
|
29579
29690
|
// --------------------------------------------------------------------------
|
|
29580
29691
|
//
|
|
@@ -29638,7 +29749,7 @@ class ShellPanel {
|
|
|
29638
29749
|
}; }
|
|
29639
29750
|
}
|
|
29640
29751
|
|
|
29641
|
-
const CSS$
|
|
29752
|
+
const CSS$b = {
|
|
29642
29753
|
handleLabel: "handle__label",
|
|
29643
29754
|
handleLabelMinValue: "handle__label--minValue",
|
|
29644
29755
|
handleLabelValue: "handle__label--value",
|
|
@@ -29729,6 +29840,7 @@ class Slider {
|
|
|
29729
29840
|
}
|
|
29730
29841
|
};
|
|
29731
29842
|
this.disabled = false;
|
|
29843
|
+
this.form = undefined;
|
|
29732
29844
|
this.groupSeparator = false;
|
|
29733
29845
|
this.hasHistogram = false;
|
|
29734
29846
|
this.histogram = undefined;
|
|
@@ -29829,8 +29941,8 @@ class Slider {
|
|
|
29829
29941
|
const leftThumbOffset = `${mirror ? 100 - minInterval : minInterval}%`;
|
|
29830
29942
|
const rightThumbOffset = `${mirror ? maxInterval : 100 - maxInterval}%`;
|
|
29831
29943
|
const valueIsRange = isRange(this.value);
|
|
29832
|
-
const handleLabelMinValueClasses = `${CSS$
|
|
29833
|
-
const handleLabelValueClasses = `${CSS$
|
|
29944
|
+
const handleLabelMinValueClasses = `${CSS$b.handleLabel} ${CSS$b.handleLabelMinValue}`;
|
|
29945
|
+
const handleLabelValueClasses = `${CSS$b.handleLabel} ${CSS$b.handleLabelValue}`;
|
|
29834
29946
|
const handle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
29835
29947
|
thumb: true,
|
|
29836
29948
|
"thumb--value": true,
|
|
@@ -29966,8 +30078,8 @@ class Slider {
|
|
|
29966
30078
|
const displayedTickValue = this.determineGroupSeparator(tick);
|
|
29967
30079
|
const tickLabel = (hAsync("span", { class: {
|
|
29968
30080
|
tick__label: true,
|
|
29969
|
-
[CSS$
|
|
29970
|
-
[CSS$
|
|
30081
|
+
[CSS$b.tickMin]: isMinTickLabel,
|
|
30082
|
+
[CSS$b.tickMax]: isMaxTickLabel
|
|
29971
30083
|
} }, displayedTickValue));
|
|
29972
30084
|
if (this.labelTicks && !this.hasHistogram && !valueIsRange) {
|
|
29973
30085
|
return tickLabel;
|
|
@@ -30474,6 +30586,7 @@ class Slider {
|
|
|
30474
30586
|
"$tagName$": "calcite-slider",
|
|
30475
30587
|
"$members$": {
|
|
30476
30588
|
"disabled": [516],
|
|
30589
|
+
"form": [513],
|
|
30477
30590
|
"groupSeparator": [516, "group-separator"],
|
|
30478
30591
|
"hasHistogram": [1540, "has-histogram"],
|
|
30479
30592
|
"histogram": [16],
|
|
@@ -30506,7 +30619,7 @@ class Slider {
|
|
|
30506
30619
|
},
|
|
30507
30620
|
"$listeners$": [[0, "keydown", "keyDownHandler"], [1, "pointerdown", "pointerDownHandler"]],
|
|
30508
30621
|
"$lazyBundleId$": "-",
|
|
30509
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["groupSeparator", "group-separator"], ["hasHistogram", "has-histogram"], ["labelHandles", "label-handles"], ["labelTicks", "label-ticks"], ["max", "max"], ["min", "min"], ["mirrored", "mirrored"], ["name", "name"], ["pageStep", "page-step"], ["precise", "precise"], ["required", "required"], ["snap", "snap"], ["step", "step"], ["ticks", "ticks"], ["value", "value"], ["scale", "scale"]]
|
|
30622
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["form", "form"], ["groupSeparator", "group-separator"], ["hasHistogram", "has-histogram"], ["labelHandles", "label-handles"], ["labelTicks", "label-ticks"], ["max", "max"], ["min", "min"], ["mirrored", "mirrored"], ["name", "name"], ["pageStep", "page-step"], ["precise", "precise"], ["required", "required"], ["snap", "snap"], ["step", "step"], ["ticks", "ticks"], ["value", "value"], ["scale", "scale"]]
|
|
30510
30623
|
}; }
|
|
30511
30624
|
}
|
|
30512
30625
|
|
|
@@ -33530,7 +33643,7 @@ _extends(Remove, {
|
|
|
33530
33643
|
Sortable.mount(new AutoScrollPlugin());
|
|
33531
33644
|
Sortable.mount(Remove, Revert);
|
|
33532
33645
|
|
|
33533
|
-
const CSS$
|
|
33646
|
+
const CSS$a = {
|
|
33534
33647
|
sortItem: "sort-item",
|
|
33535
33648
|
container: "container",
|
|
33536
33649
|
containerHorizontal: "container--horizontal",
|
|
@@ -33663,9 +33776,9 @@ class SortableList {
|
|
|
33663
33776
|
const { layout } = this;
|
|
33664
33777
|
const horizontal = layout === "horizontal" || false;
|
|
33665
33778
|
return (hAsync("div", { class: {
|
|
33666
|
-
[CSS$
|
|
33667
|
-
[CSS$
|
|
33668
|
-
[CSS$
|
|
33779
|
+
[CSS$a.container]: true,
|
|
33780
|
+
[CSS$a.containerVertical]: !horizontal,
|
|
33781
|
+
[CSS$a.containerHorizontal]: horizontal
|
|
33669
33782
|
} }, hAsync("slot", null)));
|
|
33670
33783
|
}
|
|
33671
33784
|
get el() { return getElement(this); }
|
|
@@ -33688,7 +33801,7 @@ class SortableList {
|
|
|
33688
33801
|
}; }
|
|
33689
33802
|
}
|
|
33690
33803
|
|
|
33691
|
-
const CSS$
|
|
33804
|
+
const CSS$9 = {
|
|
33692
33805
|
container: "split-button__container",
|
|
33693
33806
|
dividerContainer: "split-button__divider-container",
|
|
33694
33807
|
divider: "split-button__divider",
|
|
@@ -33737,21 +33850,37 @@ class SplitButton {
|
|
|
33737
33850
|
}
|
|
33738
33851
|
//--------------------------------------------------------------------------
|
|
33739
33852
|
//
|
|
33853
|
+
// Public Methods
|
|
33854
|
+
//
|
|
33855
|
+
//--------------------------------------------------------------------------
|
|
33856
|
+
/** Sets focus on the component's first focusable element. */
|
|
33857
|
+
async setFocus() {
|
|
33858
|
+
await componentLoaded(this);
|
|
33859
|
+
this.el.focus();
|
|
33860
|
+
}
|
|
33861
|
+
//--------------------------------------------------------------------------
|
|
33862
|
+
//
|
|
33740
33863
|
// Lifecycle
|
|
33741
33864
|
//
|
|
33742
33865
|
//--------------------------------------------------------------------------
|
|
33866
|
+
componentWillLoad() {
|
|
33867
|
+
setUpLoadableComponent(this);
|
|
33868
|
+
}
|
|
33869
|
+
componentDidLoad() {
|
|
33870
|
+
setComponentLoaded(this);
|
|
33871
|
+
}
|
|
33743
33872
|
componentDidRender() {
|
|
33744
33873
|
updateHostInteraction(this);
|
|
33745
33874
|
}
|
|
33746
33875
|
render() {
|
|
33747
33876
|
const widthClasses = {
|
|
33748
|
-
[CSS$
|
|
33749
|
-
[CSS$
|
|
33750
|
-
[CSS$
|
|
33751
|
-
[CSS$
|
|
33877
|
+
[CSS$9.container]: true,
|
|
33878
|
+
[CSS$9.widthAuto]: this.width === "auto",
|
|
33879
|
+
[CSS$9.widthHalf]: this.width === "half",
|
|
33880
|
+
[CSS$9.widthFull]: this.width === "full"
|
|
33752
33881
|
};
|
|
33753
33882
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
33754
|
-
return (hAsync("div", { class: widthClasses }, hAsync("calcite-button", { appearance: this.appearance, disabled: this.disabled, "icon-end": this.primaryIconEnd ? this.primaryIconEnd : null, "icon-start": this.primaryIconStart ? this.primaryIconStart : null, iconFlipRtl: this.primaryIconFlipRtl ? this.primaryIconFlipRtl : null, kind: this.kind, label: this.primaryLabel, loading: this.loading, onClick: this.calciteSplitButtonPrimaryClickHandler, scale: this.scale, splitChild: "primary", type: "button", width: buttonWidth }, this.primaryText), hAsync("div", { class: CSS$
|
|
33883
|
+
return (hAsync("div", { class: widthClasses }, hAsync("calcite-button", { appearance: this.appearance, disabled: this.disabled, "icon-end": this.primaryIconEnd ? this.primaryIconEnd : null, "icon-start": this.primaryIconStart ? this.primaryIconStart : null, iconFlipRtl: this.primaryIconFlipRtl ? this.primaryIconFlipRtl : null, kind: this.kind, label: this.primaryLabel, loading: this.loading, onClick: this.calciteSplitButtonPrimaryClickHandler, scale: this.scale, splitChild: "primary", type: "button", width: buttonWidth }, this.primaryText), hAsync("div", { class: CSS$9.dividerContainer }, hAsync("div", { class: CSS$9.divider })), hAsync("calcite-dropdown", { disabled: this.disabled, onClick: this.calciteSplitButtonSecondaryClickHandler, open: this.active, overlayPositioning: this.overlayPositioning, placement: "bottom-end", scale: this.scale, width: this.scale }, hAsync("calcite-button", { appearance: this.appearance, disabled: this.disabled, "icon-start": this.dropdownIcon, kind: this.kind, label: this.dropdownLabel, scale: this.scale, slot: "trigger", splitChild: "secondary", type: "button" }), hAsync("slot", null))));
|
|
33755
33884
|
}
|
|
33756
33885
|
get dropdownIcon() {
|
|
33757
33886
|
return this.dropdownIconType === "chevron"
|
|
@@ -33787,7 +33916,8 @@ class SplitButton {
|
|
|
33787
33916
|
"primaryLabel": [513, "primary-label"],
|
|
33788
33917
|
"primaryText": [513, "primary-text"],
|
|
33789
33918
|
"scale": [513],
|
|
33790
|
-
"width": [513]
|
|
33919
|
+
"width": [513],
|
|
33920
|
+
"setFocus": [64]
|
|
33791
33921
|
},
|
|
33792
33922
|
"$listeners$": undefined,
|
|
33793
33923
|
"$lazyBundleId$": "-",
|
|
@@ -34222,6 +34352,7 @@ class Switch {
|
|
|
34222
34352
|
this.switchEl = el;
|
|
34223
34353
|
};
|
|
34224
34354
|
this.disabled = false;
|
|
34355
|
+
this.form = undefined;
|
|
34225
34356
|
this.label = undefined;
|
|
34226
34357
|
this.name = undefined;
|
|
34227
34358
|
this.scale = "m";
|
|
@@ -34295,6 +34426,7 @@ class Switch {
|
|
|
34295
34426
|
"$tagName$": "calcite-switch",
|
|
34296
34427
|
"$members$": {
|
|
34297
34428
|
"disabled": [516],
|
|
34429
|
+
"form": [513],
|
|
34298
34430
|
"label": [1],
|
|
34299
34431
|
"name": [513],
|
|
34300
34432
|
"scale": [513],
|
|
@@ -34304,7 +34436,7 @@ class Switch {
|
|
|
34304
34436
|
},
|
|
34305
34437
|
"$listeners$": undefined,
|
|
34306
34438
|
"$lazyBundleId$": "-",
|
|
34307
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["name", "name"], ["scale", "scale"], ["checked", "checked"]]
|
|
34439
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["form", "form"], ["name", "name"], ["scale", "scale"], ["checked", "checked"]]
|
|
34308
34440
|
}; }
|
|
34309
34441
|
}
|
|
34310
34442
|
|
|
@@ -34632,7 +34764,7 @@ class TabNav {
|
|
|
34632
34764
|
}; }
|
|
34633
34765
|
}
|
|
34634
34766
|
|
|
34635
|
-
const CSS$
|
|
34767
|
+
const CSS$8 = {
|
|
34636
34768
|
container: "container",
|
|
34637
34769
|
containerHasText: "container--has-text",
|
|
34638
34770
|
iconEnd: "icon-end",
|
|
@@ -34722,12 +34854,12 @@ class TabTitle {
|
|
|
34722
34854
|
}
|
|
34723
34855
|
render() {
|
|
34724
34856
|
const id = this.el.id || this.guid;
|
|
34725
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
34726
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
34857
|
+
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$8.titleIcon]: true, [CSS$8.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: this.scale === "l" ? "m" : "s" }));
|
|
34858
|
+
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$8.titleIcon]: true, [CSS$8.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: this.scale === "l" ? "m" : "s" }));
|
|
34727
34859
|
return (hAsync(Host, { "aria-controls": this.controls, "aria-selected": toAriaBoolean(this.selected), id: id, role: "tab", tabIndex: this.selected ? 0 : -1 }, hAsync("div", { class: {
|
|
34728
34860
|
container: true,
|
|
34729
|
-
[CSS$
|
|
34730
|
-
[CSS$
|
|
34861
|
+
[CSS$8.iconPresent]: this.iconStart || this.iconEnd ? true : null,
|
|
34862
|
+
[CSS$8.containerHasText]: this.hasText
|
|
34731
34863
|
},
|
|
34732
34864
|
// eslint-disable-next-line react/jsx-sort-props
|
|
34733
34865
|
ref: (el) => this.resizeObserver?.observe(el) }, this.iconStart ? iconStartEl : null, hAsync("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
@@ -34872,7 +35004,7 @@ class TabTitle {
|
|
|
34872
35004
|
}; }
|
|
34873
35005
|
}
|
|
34874
35006
|
|
|
34875
|
-
const SLOTS$
|
|
35007
|
+
const SLOTS$5 = {
|
|
34876
35008
|
titleGroup: "title-group"
|
|
34877
35009
|
};
|
|
34878
35010
|
|
|
@@ -34898,7 +35030,7 @@ class Tabs {
|
|
|
34898
35030
|
//
|
|
34899
35031
|
//--------------------------------------------------------------------------
|
|
34900
35032
|
render() {
|
|
34901
|
-
return (hAsync(Fragment, null, hAsync("slot", { name: SLOTS$
|
|
35033
|
+
return (hAsync(Fragment, null, hAsync("slot", { name: SLOTS$5.titleGroup }), hAsync("section", null, hAsync("slot", null))));
|
|
34902
35034
|
}
|
|
34903
35035
|
//--------------------------------------------------------------------------
|
|
34904
35036
|
//
|
|
@@ -35006,6 +35138,257 @@ class Tabs {
|
|
|
35006
35138
|
}; }
|
|
35007
35139
|
}
|
|
35008
35140
|
|
|
35141
|
+
const CSS$7 = {
|
|
35142
|
+
characterLimit: "character-limit",
|
|
35143
|
+
content: "content",
|
|
35144
|
+
container: "container",
|
|
35145
|
+
footer: "footer",
|
|
35146
|
+
resizeDisabled: "resize--disabled",
|
|
35147
|
+
resizeDisabledX: "resize--disabled-x",
|
|
35148
|
+
resizeDisabledY: "resize--disabled-y",
|
|
35149
|
+
characterOverLimit: "character--over-limit",
|
|
35150
|
+
readOnly: "readonly",
|
|
35151
|
+
textAreaInvalid: "text-area--invalid",
|
|
35152
|
+
footerSlotted: "footer--slotted",
|
|
35153
|
+
borderColor: "border--color",
|
|
35154
|
+
hide: "hide",
|
|
35155
|
+
blockSizeFull: "block-size--full",
|
|
35156
|
+
footerEndSlotOnly: "footer--end-only"
|
|
35157
|
+
};
|
|
35158
|
+
const SLOTS$4 = {
|
|
35159
|
+
footerStart: "footer-start",
|
|
35160
|
+
footerEnd: "footer-end"
|
|
35161
|
+
};
|
|
35162
|
+
const RESIZE_TIMEOUT = 100;
|
|
35163
|
+
|
|
35164
|
+
const textAreaCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-text-area:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-text-area{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-text-area{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-text-area{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-text-area{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-text-area{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-text-area:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-text-area:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}/*!@:host([hidden])*/[hidden].sc-calcite-text-area-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-text-area-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-text-area-h{position:relative;display:inline-block;block-size:100%;inline-size:100%}/*!@textarea*/textarea.sc-calcite-text-area{position:relative;margin:0px;box-sizing:border-box;display:block;inline-size:100%;border-width:1px;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family);color:var(--calcite-ui-text-1);min-inline-size:12rem;border-block-end:1px solid var(--calcite-ui-border-3)}@media screen and (max-width: 480px){/*!@textarea*/textarea.sc-calcite-text-area{resize:none}}/*!@textarea:focus*/textarea.sc-calcite-text-area:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@textarea.text-area--invalid*/textarea.text-area--invalid.sc-calcite-text-area{border-width:1px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-danger)}/*!@textarea.text-area--invalid:focus*/textarea.text-area--invalid.sc-calcite-text-area:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}/*!@textarea.footer--slotted*/textarea.footer--slotted.sc-calcite-text-area{min-inline-size:18rem}/*!@.footer*/.footer.sc-calcite-text-area{box-sizing:border-box;display:flex;align-items:center;border-width:1px;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1)}/*!@.character-limit*/.character-limit.sc-calcite-text-area{display:flex;align-items:center;justify-content:flex-end;white-space:nowrap;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}/*!@.character--over-limit*/.character--over-limit.sc-calcite-text-area{font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-danger)}/*!@:host([resize=none]) textarea*/[resize=none].sc-calcite-text-area-h textarea.sc-calcite-text-area{resize:none}/*!@:host([resize=horizontal]) textarea*/[resize=horizontal].sc-calcite-text-area-h textarea.sc-calcite-text-area{resize:horizontal}/*!@:host([resize=vertical]) textarea*/[resize=vertical].sc-calcite-text-area-h textarea.sc-calcite-text-area{resize:vertical}/*!@:host([scale=s])*/[scale=s].sc-calcite-text-area-h{font-size:var(--calcite-font-size--2)}/*!@:host([scale=s]) .footer*/[scale=s].sc-calcite-text-area-h .footer.sc-calcite-text-area{padding-block:0.25rem;padding-inline:0.5rem;min-block-size:1.75rem}/*!@:host([scale=s]) textarea*/[scale=s].sc-calcite-text-area-h textarea.sc-calcite-text-area{padding-block:0.25rem;padding-inline:0.5rem}/*!@:host([scale=s]) textarea,\n:host([scale=s]) .footer,\n:host([scale=s]) .character-limit*/[scale=s].sc-calcite-text-area-h textarea.sc-calcite-text-area,[scale=s].sc-calcite-text-area-h .footer.sc-calcite-text-area,[scale=s].sc-calcite-text-area-h .character-limit.sc-calcite-text-area{padding-inline-start:0.5rem;font-size:var(--calcite-font-size--2)}/*!@:host([scale=m]) textarea*/[scale=m].sc-calcite-text-area-h textarea.sc-calcite-text-area{padding-block:0.5rem;padding-inline:0.75rem}/*!@:host([scale=m]) .footer*/[scale=m].sc-calcite-text-area-h .footer.sc-calcite-text-area{padding-block:0.5rem;padding-inline:0.75rem;min-block-size:2.25rem}/*!@:host([scale=m]) textarea,\n:host([scale=m]) .footer,\n:host([scale=m]) .character-limit*/[scale=m].sc-calcite-text-area-h textarea.sc-calcite-text-area,[scale=m].sc-calcite-text-area-h .footer.sc-calcite-text-area,[scale=m].sc-calcite-text-area-h .character-limit.sc-calcite-text-area{padding-inline-start:0.75rem;font-size:var(--calcite-font-size--1)}/*!@:host([scale=l])*/[scale=l].sc-calcite-text-area-h{font-size:var(--calcite-font-size-0)}/*!@:host([scale=l]) textarea*/[scale=l].sc-calcite-text-area-h textarea.sc-calcite-text-area{padding-block:0.75rem;padding-inline:1rem}/*!@:host([scale=l]) .footer*/[scale=l].sc-calcite-text-area-h .footer.sc-calcite-text-area{padding-block:0.75rem;padding-inline:1rem;min-block-size:2.75rem}/*!@:host([scale=l]) textarea,\n:host([scale=l]) .footer,\n:host([scale=l]) .character-limit*/[scale=l].sc-calcite-text-area-h textarea.sc-calcite-text-area,[scale=l].sc-calcite-text-area-h .footer.sc-calcite-text-area,[scale=l].sc-calcite-text-area-h .character-limit.sc-calcite-text-area{padding-inline-start:1rem;font-size:var(--calcite-font-size-0)}/*!@.readonly*/.readonly.sc-calcite-text-area{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}/*!@:host([disabled]) textarea,\n:host([disabled]) footer*/[disabled].sc-calcite-text-area-h textarea.sc-calcite-text-area,[disabled].sc-calcite-text-area-h footer.sc-calcite-text-area{opacity:0.5}/*!@.border--color*/.border--color.sc-calcite-text-area{border-block-end-width:1px;border-color:var(--calcite-ui-border-input)}/*!@.border--color:focus*/.border--color.sc-calcite-text-area:focus{border-block-end-width:2px}/*!@textarea.block-size--full*/textarea.block-size--full.sc-calcite-text-area{block-size:100%}/*!@.content,\n.hide*/.content.sc-calcite-text-area,.hide.sc-calcite-text-area{display:none}/*!@.container*/.container.sc-calcite-text-area{display:flex;inline-size:100%;justify-content:space-between}/*!@.footer--end-only*/.footer--end-only.sc-calcite-text-area{justify-content:flex-end}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-text-area-s>input[slot=hidden-form-input]{margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-text-area-h[disabled] .sc-calcite-text-area-s>[calcite-hydrated][disabled],[disabled].sc-calcite-text-area-h [calcite-hydrated][disabled].sc-calcite-text-area{opacity:1}";
|
|
35165
|
+
|
|
35166
|
+
/**
|
|
35167
|
+
* @slot - A slot for adding text.
|
|
35168
|
+
* @slot footer-start - A slot for adding content to the start of the component's footer.
|
|
35169
|
+
* @slot footer-end - A slot for adding content to the end of the component's footer.
|
|
35170
|
+
*/
|
|
35171
|
+
class TextArea {
|
|
35172
|
+
constructor(hostRef) {
|
|
35173
|
+
registerInstance(this, hostRef);
|
|
35174
|
+
this.calciteTextAreaInput = createEvent(this, "calciteTextAreaInput", 7);
|
|
35175
|
+
this.calciteTextAreaChange = createEvent(this, "calciteTextAreaChange", 7);
|
|
35176
|
+
this.handleInput = (event) => {
|
|
35177
|
+
this.value = event.target["value"];
|
|
35178
|
+
this.calciteTextAreaInput.emit();
|
|
35179
|
+
};
|
|
35180
|
+
this.handleChange = () => {
|
|
35181
|
+
this.calciteTextAreaChange.emit();
|
|
35182
|
+
};
|
|
35183
|
+
this.contentSlotChangeHandler = () => {
|
|
35184
|
+
if (!this.value) {
|
|
35185
|
+
const nodes = this.el.childNodes;
|
|
35186
|
+
nodes.forEach((el) => {
|
|
35187
|
+
if (el.nodeName === "#text") {
|
|
35188
|
+
this.value = el.nodeValue.trim();
|
|
35189
|
+
}
|
|
35190
|
+
});
|
|
35191
|
+
}
|
|
35192
|
+
};
|
|
35193
|
+
this.renderCharacterLimit = () => {
|
|
35194
|
+
return this.maxLength ? (hAsync("span", { class: CSS$7.characterLimit }, hAsync("span", { class: { [CSS$7.characterOverLimit]: this.value?.length > this.maxLength } }, this.getLocalizedCharacterLength()), "/", numberStringFormatter.localize(this.maxLength.toString()))) : null;
|
|
35195
|
+
};
|
|
35196
|
+
this.resizeObserver = createObserver();
|
|
35197
|
+
// height and width are set to auto here to avoid overlapping on to neighboring elements in the layout when user starts resizing.
|
|
35198
|
+
// throttle is used to avoid flashing of textarea when user resizes.
|
|
35199
|
+
this.setHeightAndWidthToAuto = throttle$1(() => {
|
|
35200
|
+
if (this.resize === "vertical" || this.resize === "both") {
|
|
35201
|
+
this.el.style.height = "auto";
|
|
35202
|
+
}
|
|
35203
|
+
if (this.resize === "horizontal" || this.resize === "both") {
|
|
35204
|
+
this.el.style.width = "auto";
|
|
35205
|
+
}
|
|
35206
|
+
}, RESIZE_TIMEOUT, { leading: false });
|
|
35207
|
+
this.setTextAreaEl = (el) => {
|
|
35208
|
+
this.textAreaEl = el;
|
|
35209
|
+
this.resizeObserver.observe(el);
|
|
35210
|
+
};
|
|
35211
|
+
this.autofocus = false;
|
|
35212
|
+
this.columns = undefined;
|
|
35213
|
+
this.disabled = false;
|
|
35214
|
+
this.form = undefined;
|
|
35215
|
+
this.groupSeparator = false;
|
|
35216
|
+
this.label = undefined;
|
|
35217
|
+
this.maxLength = undefined;
|
|
35218
|
+
this.messages = undefined;
|
|
35219
|
+
this.name = undefined;
|
|
35220
|
+
this.numberingSystem = undefined;
|
|
35221
|
+
this.placeholder = undefined;
|
|
35222
|
+
this.readOnly = false;
|
|
35223
|
+
this.required = false;
|
|
35224
|
+
this.resize = "both";
|
|
35225
|
+
this.rows = undefined;
|
|
35226
|
+
this.scale = "m";
|
|
35227
|
+
this.value = undefined;
|
|
35228
|
+
this.wrap = "soft";
|
|
35229
|
+
this.messageOverrides = undefined;
|
|
35230
|
+
this.defaultMessages = undefined;
|
|
35231
|
+
this.endSlotHasElements = undefined;
|
|
35232
|
+
this.startSlotHasElements = undefined;
|
|
35233
|
+
this.effectiveLocale = "";
|
|
35234
|
+
}
|
|
35235
|
+
onMessagesChange() {
|
|
35236
|
+
/* wired up by t9n util */
|
|
35237
|
+
}
|
|
35238
|
+
//--------------------------------------------------------------------------
|
|
35239
|
+
//
|
|
35240
|
+
// Lifecycle
|
|
35241
|
+
//
|
|
35242
|
+
//--------------------------------------------------------------------------
|
|
35243
|
+
connectedCallback() {
|
|
35244
|
+
connectLabel(this);
|
|
35245
|
+
connectForm(this);
|
|
35246
|
+
connectLocalized(this);
|
|
35247
|
+
connectMessages(this);
|
|
35248
|
+
}
|
|
35249
|
+
async componentWillLoad() {
|
|
35250
|
+
setUpLoadableComponent(this);
|
|
35251
|
+
await setUpMessages(this);
|
|
35252
|
+
}
|
|
35253
|
+
componentDidLoad() {
|
|
35254
|
+
setComponentLoaded(this);
|
|
35255
|
+
}
|
|
35256
|
+
componentDidRender() {
|
|
35257
|
+
updateHostInteraction(this);
|
|
35258
|
+
this.setTextAreaHeight();
|
|
35259
|
+
}
|
|
35260
|
+
disconnectedCallback() {
|
|
35261
|
+
disconnectLabel(this);
|
|
35262
|
+
disconnectForm(this);
|
|
35263
|
+
disconnectLocalized(this);
|
|
35264
|
+
disconnectMessages(this);
|
|
35265
|
+
this.resizeObserver?.disconnect();
|
|
35266
|
+
}
|
|
35267
|
+
render() {
|
|
35268
|
+
const hasFooter = this.startSlotHasElements || this.endSlotHasElements || !!this.maxLength;
|
|
35269
|
+
return (hAsync(Host, null, hAsync("textarea", { "aria-invalid": toAriaBoolean(this.value?.length > this.maxLength), "aria-label": getLabelText(this), autofocus: this.autofocus, class: {
|
|
35270
|
+
[CSS$7.readOnly]: this.readOnly,
|
|
35271
|
+
[CSS$7.textAreaInvalid]: this.value?.length > this.maxLength,
|
|
35272
|
+
[CSS$7.footerSlotted]: this.endSlotHasElements && this.startSlotHasElements,
|
|
35273
|
+
[CSS$7.blockSizeFull]: !hasFooter,
|
|
35274
|
+
[CSS$7.borderColor]: !hasFooter
|
|
35275
|
+
}, cols: this.columns, disabled: this.disabled, name: this.name, onChange: this.handleChange, onInput: this.handleInput, placeholder: this.placeholder, readonly: this.readOnly, required: this.required, rows: this.rows, value: this.value, wrap: this.wrap,
|
|
35276
|
+
// eslint-disable-next-line react/jsx-sort-props
|
|
35277
|
+
ref: this.setTextAreaEl }), hAsync("span", { class: { [CSS$7.content]: true } }, hAsync("slot", { onSlotchange: this.contentSlotChangeHandler })), hAsync("footer", { class: {
|
|
35278
|
+
[CSS$7.footer]: true,
|
|
35279
|
+
[CSS$7.readOnly]: this.readOnly,
|
|
35280
|
+
[CSS$7.hide]: !hasFooter
|
|
35281
|
+
}, ref: (el) => (this.footerEl = el) }, hAsync("div", { class: {
|
|
35282
|
+
[CSS$7.container]: true,
|
|
35283
|
+
[CSS$7.footerEndSlotOnly]: !this.startSlotHasElements && this.endSlotHasElements
|
|
35284
|
+
} }, hAsync("slot", { name: SLOTS$4.footerStart, onSlotchange: (event) => (this.startSlotHasElements = slotChangeHasAssignedElement(event)) }), hAsync("slot", { name: SLOTS$4.footerEnd, onSlotchange: (event) => (this.endSlotHasElements = slotChangeHasAssignedElement(event)) })), this.renderCharacterLimit()), hAsync(HiddenFormInputSlot, { component: this })));
|
|
35285
|
+
}
|
|
35286
|
+
//--------------------------------------------------------------------------
|
|
35287
|
+
//
|
|
35288
|
+
// Public Methods
|
|
35289
|
+
//
|
|
35290
|
+
//--------------------------------------------------------------------------
|
|
35291
|
+
/** Sets focus on the component. */
|
|
35292
|
+
async setFocus() {
|
|
35293
|
+
await componentLoaded(this);
|
|
35294
|
+
this.textAreaEl.focus();
|
|
35295
|
+
}
|
|
35296
|
+
/** Selects the text of the component's `value`. */
|
|
35297
|
+
async selectText() {
|
|
35298
|
+
await componentLoaded(this);
|
|
35299
|
+
this.textAreaEl.select();
|
|
35300
|
+
}
|
|
35301
|
+
effectiveLocaleChange() {
|
|
35302
|
+
updateMessages(this, this.effectiveLocale);
|
|
35303
|
+
}
|
|
35304
|
+
//--------------------------------------------------------------------------
|
|
35305
|
+
//
|
|
35306
|
+
// Private Methods
|
|
35307
|
+
//
|
|
35308
|
+
//--------------------------------------------------------------------------
|
|
35309
|
+
onFormReset() {
|
|
35310
|
+
this.value = this.defaultValue;
|
|
35311
|
+
}
|
|
35312
|
+
onLabelClick() {
|
|
35313
|
+
this.setFocus();
|
|
35314
|
+
}
|
|
35315
|
+
getLocalizedCharacterLength() {
|
|
35316
|
+
numberStringFormatter.numberFormatOptions = {
|
|
35317
|
+
locale: this.effectiveLocale,
|
|
35318
|
+
numberingSystem: this.numberingSystem,
|
|
35319
|
+
signDisplay: "never",
|
|
35320
|
+
useGrouping: this.groupSeparator
|
|
35321
|
+
};
|
|
35322
|
+
return numberStringFormatter.localize(this.value ? this.value.length.toString() : "0");
|
|
35323
|
+
}
|
|
35324
|
+
syncHiddenFormInput(input) {
|
|
35325
|
+
input.setCustomValidity("");
|
|
35326
|
+
if (this.value?.length > this.maxLength) {
|
|
35327
|
+
input.setCustomValidity(this.messages.tooLong);
|
|
35328
|
+
}
|
|
35329
|
+
}
|
|
35330
|
+
setTextAreaHeight() {
|
|
35331
|
+
const { textAreaHeight, elHeight, footerHeight } = this.getHeightandWidthOfElements();
|
|
35332
|
+
if (footerHeight > 0 && textAreaHeight + footerHeight != elHeight) {
|
|
35333
|
+
this.textAreaEl.style.height = `${elHeight - footerHeight}px`;
|
|
35334
|
+
}
|
|
35335
|
+
}
|
|
35336
|
+
getHeightandWidthOfElements() {
|
|
35337
|
+
const { height: textAreaHeight, width: textAreaWidth } = this.textAreaEl.getBoundingClientRect();
|
|
35338
|
+
const { height: elHeight, width: elWidth } = this.el.getBoundingClientRect();
|
|
35339
|
+
const { height: footerHeight, width: footerWidth } = this.footerEl?.getBoundingClientRect();
|
|
35340
|
+
return {
|
|
35341
|
+
textAreaHeight,
|
|
35342
|
+
textAreaWidth,
|
|
35343
|
+
elHeight,
|
|
35344
|
+
elWidth,
|
|
35345
|
+
footerHeight,
|
|
35346
|
+
footerWidth
|
|
35347
|
+
};
|
|
35348
|
+
}
|
|
35349
|
+
static get assetsDirs() { return ["assets"]; }
|
|
35350
|
+
get el() { return getElement(this); }
|
|
35351
|
+
static get watchers() { return {
|
|
35352
|
+
"messageOverrides": ["onMessagesChange"],
|
|
35353
|
+
"effectiveLocale": ["effectiveLocaleChange"]
|
|
35354
|
+
}; }
|
|
35355
|
+
static get style() { return textAreaCss; }
|
|
35356
|
+
static get cmpMeta() { return {
|
|
35357
|
+
"$flags$": 9,
|
|
35358
|
+
"$tagName$": "calcite-text-area",
|
|
35359
|
+
"$members$": {
|
|
35360
|
+
"autofocus": [516],
|
|
35361
|
+
"columns": [514],
|
|
35362
|
+
"disabled": [516],
|
|
35363
|
+
"form": [513],
|
|
35364
|
+
"groupSeparator": [516, "group-separator"],
|
|
35365
|
+
"label": [1],
|
|
35366
|
+
"maxLength": [514, "max-length"],
|
|
35367
|
+
"messages": [1040],
|
|
35368
|
+
"name": [513],
|
|
35369
|
+
"numberingSystem": [1, "numbering-system"],
|
|
35370
|
+
"placeholder": [1],
|
|
35371
|
+
"readOnly": [516, "read-only"],
|
|
35372
|
+
"required": [516],
|
|
35373
|
+
"resize": [513],
|
|
35374
|
+
"rows": [514],
|
|
35375
|
+
"scale": [513],
|
|
35376
|
+
"value": [1025],
|
|
35377
|
+
"wrap": [513],
|
|
35378
|
+
"messageOverrides": [1040],
|
|
35379
|
+
"defaultMessages": [32],
|
|
35380
|
+
"endSlotHasElements": [32],
|
|
35381
|
+
"startSlotHasElements": [32],
|
|
35382
|
+
"effectiveLocale": [32],
|
|
35383
|
+
"setFocus": [64],
|
|
35384
|
+
"selectText": [64]
|
|
35385
|
+
},
|
|
35386
|
+
"$listeners$": undefined,
|
|
35387
|
+
"$lazyBundleId$": "-",
|
|
35388
|
+
"$attrsToReflect$": [["autofocus", "autofocus"], ["columns", "columns"], ["disabled", "disabled"], ["form", "form"], ["groupSeparator", "group-separator"], ["maxLength", "max-length"], ["name", "name"], ["readOnly", "read-only"], ["required", "required"], ["resize", "resize"], ["rows", "rows"], ["scale", "scale"], ["wrap", "wrap"]]
|
|
35389
|
+
}; }
|
|
35390
|
+
}
|
|
35391
|
+
|
|
35009
35392
|
const SLOTS$3 = {
|
|
35010
35393
|
contentStart: "content-start",
|
|
35011
35394
|
contentEnd: "content-end"
|
|
@@ -35187,14 +35570,14 @@ class TileSelect {
|
|
|
35187
35570
|
}
|
|
35188
35571
|
event.stopPropagation();
|
|
35189
35572
|
}
|
|
35190
|
-
|
|
35573
|
+
clickHandler(event) {
|
|
35191
35574
|
const target = event.target;
|
|
35192
35575
|
const targets = ["calcite-tile", "calcite-tile-select"];
|
|
35193
35576
|
if (targets.includes(target.localName)) {
|
|
35194
35577
|
this.input.click();
|
|
35195
35578
|
}
|
|
35196
35579
|
}
|
|
35197
|
-
|
|
35580
|
+
pointerEnterHandler() {
|
|
35198
35581
|
if (this.input.localName === "calcite-radio-button") {
|
|
35199
35582
|
this.input.hovered = true;
|
|
35200
35583
|
}
|
|
@@ -35202,7 +35585,7 @@ class TileSelect {
|
|
|
35202
35585
|
this.input.hovered = true;
|
|
35203
35586
|
}
|
|
35204
35587
|
}
|
|
35205
|
-
|
|
35588
|
+
pointerLeaveHandler() {
|
|
35206
35589
|
if (this.input.localName === "calcite-radio-button") {
|
|
35207
35590
|
this.input.hovered = false;
|
|
35208
35591
|
}
|
|
@@ -35297,7 +35680,7 @@ class TileSelect {
|
|
|
35297
35680
|
"focused": [32],
|
|
35298
35681
|
"setFocus": [64]
|
|
35299
35682
|
},
|
|
35300
|
-
"$listeners$": [[0, "calciteCheckboxChange", "checkboxChangeHandler"], [0, "calciteInternalCheckboxFocus", "checkboxFocusBlurHandler"], [0, "calciteInternalCheckboxBlur", "checkboxFocusBlurHandler"], [0, "calciteRadioButtonChange", "radioButtonChangeHandler"], [0, "calciteInternalRadioButtonCheckedChange", "radioButtonCheckedChangeHandler"], [0, "calciteInternalRadioButtonFocus", "radioButtonFocusBlurHandler"], [0, "calciteInternalRadioButtonBlur", "radioButtonFocusBlurHandler"], [0, "click", "
|
|
35683
|
+
"$listeners$": [[0, "calciteCheckboxChange", "checkboxChangeHandler"], [0, "calciteInternalCheckboxFocus", "checkboxFocusBlurHandler"], [0, "calciteInternalCheckboxBlur", "checkboxFocusBlurHandler"], [0, "calciteRadioButtonChange", "radioButtonChangeHandler"], [0, "calciteInternalRadioButtonCheckedChange", "radioButtonCheckedChangeHandler"], [0, "calciteInternalRadioButtonFocus", "radioButtonFocusBlurHandler"], [0, "calciteInternalRadioButtonBlur", "radioButtonFocusBlurHandler"], [0, "click", "clickHandler"], [1, "pointerenter", "pointerEnterHandler"], [1, "pointerleave", "pointerLeaveHandler"]],
|
|
35301
35684
|
"$lazyBundleId$": "-",
|
|
35302
35685
|
"$attrsToReflect$": [["checked", "checked"], ["description", "description"], ["disabled", "disabled"], ["heading", "heading"], ["hidden", "hidden"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["name", "name"], ["inputEnabled", "input-enabled"], ["inputAlignment", "input-alignment"], ["type", "type"], ["width", "width"]]
|
|
35303
35686
|
}; }
|
|
@@ -37725,19 +38108,19 @@ class ValueListItem {
|
|
|
37725
38108
|
renderActionsEnd() {
|
|
37726
38109
|
const { el } = this;
|
|
37727
38110
|
const hasActionsEnd = getSlotted(el, SLOTS.actionsEnd);
|
|
37728
|
-
return hasActionsEnd ? (hAsync("slot", { name: SLOTS.actionsEnd, slot: SLOTS$
|
|
38111
|
+
return hasActionsEnd ? (hAsync("slot", { name: SLOTS.actionsEnd, slot: SLOTS$a.actionsEnd })) : null;
|
|
37729
38112
|
}
|
|
37730
38113
|
renderActionsStart() {
|
|
37731
38114
|
const { el } = this;
|
|
37732
38115
|
const hasActionsStart = getSlotted(el, SLOTS.actionsStart);
|
|
37733
|
-
return hasActionsStart ? (hAsync("slot", { name: SLOTS.actionsStart, slot: SLOTS$
|
|
38116
|
+
return hasActionsStart ? (hAsync("slot", { name: SLOTS.actionsStart, slot: SLOTS$a.actionsStart })) : null;
|
|
37734
38117
|
}
|
|
37735
38118
|
renderHandle() {
|
|
37736
38119
|
const { icon, iconFlipRtl } = this;
|
|
37737
38120
|
if (icon === ICON_TYPES$1.grip) {
|
|
37738
38121
|
return (hAsync("span", { class: {
|
|
37739
|
-
[CSS$
|
|
37740
|
-
[CSS$
|
|
38122
|
+
[CSS$k.handle]: true,
|
|
38123
|
+
[CSS$k.handleActivated]: this.handleActivated
|
|
37741
38124
|
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => (this.handleEl = el), role: "button", tabindex: "0" }, hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS.drag, scale: "s" })));
|
|
37742
38125
|
}
|
|
37743
38126
|
}
|
|
@@ -37853,6 +38236,7 @@ registerComponents([
|
|
|
37853
38236
|
TabNav,
|
|
37854
38237
|
TabTitle,
|
|
37855
38238
|
Tabs,
|
|
38239
|
+
TextArea,
|
|
37856
38240
|
Tile,
|
|
37857
38241
|
TileSelect,
|
|
37858
38242
|
TileSelectGroup,
|