@esri/calcite-components 1.0.0-next.652 → 1.0.0-next.654
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/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-605c354b.js → p-0254ac2f.js} +1 -1
- package/dist/calcite/{p-fd0b7768.entry.js → p-050ade87.entry.js} +2 -2
- package/dist/calcite/p-06d5c014.entry.js +6 -0
- package/dist/calcite/{p-e2781896.js → p-0be6bca1.js} +1 -1
- package/dist/calcite/{p-804b403c.js → p-1055bcbe.js} +1 -1
- package/dist/calcite/p-10aa4062.entry.js +6 -0
- package/dist/calcite/{p-8b6894f6.entry.js → p-10d7edd8.entry.js} +2 -2
- package/dist/calcite/{p-014b0608.entry.js → p-12d6681d.entry.js} +2 -2
- package/dist/calcite/p-14e0d4fe.entry.js +6 -0
- package/dist/calcite/p-17c258b8.entry.js +6 -0
- package/dist/calcite/p-185bb7cb.entry.js +6 -0
- package/dist/calcite/p-1f01fc57.entry.js +6 -0
- package/dist/calcite/p-24bdea5e.entry.js +6 -0
- package/dist/calcite/{p-ab487711.entry.js → p-2cc5c240.entry.js} +2 -2
- package/dist/calcite/{p-ce840415.js → p-33e17f1b.js} +1 -1
- package/dist/calcite/p-35fc7dca.js +6 -0
- package/dist/calcite/{p-237ac4ea.js → p-39d090ab.js} +1 -1
- package/dist/calcite/{p-b1b2f440.js → p-3a773abe.js} +2 -2
- package/dist/calcite/p-3ce64b5d.js +6 -0
- package/dist/calcite/{p-5aaed790.entry.js → p-3d983e10.entry.js} +2 -2
- package/dist/calcite/p-3f8e53cd.entry.js +6 -0
- package/dist/calcite/p-3fc46634.entry.js +6 -0
- package/dist/calcite/p-46d45c3c.entry.js +6 -0
- package/dist/calcite/p-48154bde.entry.js +6 -0
- package/dist/calcite/p-48d5c4c0.entry.js +6 -0
- package/dist/calcite/p-4c684f9b.entry.js +6 -0
- package/dist/calcite/{p-94727757.js → p-4ca4f558.js} +2 -2
- package/dist/calcite/{p-8e0d5c3a.js → p-4cf9ae65.js} +1 -1
- package/dist/calcite/{p-9640e27a.entry.js → p-4fbd47e5.entry.js} +2 -2
- package/dist/calcite/{p-93ca97ff.entry.js → p-51db14be.entry.js} +2 -2
- package/dist/calcite/p-530fdbab.js +6 -0
- package/dist/calcite/{p-3d2b72b6.js → p-53c33d4b.js} +3 -3
- package/dist/calcite/{p-a1e97be8.js → p-553dcf8f.js} +1 -1
- package/dist/calcite/p-55c80ec7.js +6 -0
- package/dist/calcite/p-5718dd4a.js +6 -0
- package/dist/calcite/p-59f646f1.entry.js +6 -0
- package/dist/calcite/{p-f274114e.js → p-5ce6006a.js} +1 -1
- package/dist/calcite/{p-8e74c290.entry.js → p-6287a7e3.entry.js} +2 -2
- package/dist/calcite/p-63fabfa9.entry.js +6 -0
- package/dist/calcite/{p-f243c17d.js → p-69bdbe6c.js} +1 -1
- package/dist/calcite/{p-e40232f5.entry.js → p-6c957ddf.entry.js} +2 -2
- package/dist/calcite/p-6f5b07e8.entry.js +6 -0
- package/dist/calcite/p-6f92b03a.entry.js +6 -0
- package/dist/calcite/p-72d77198.entry.js +6 -0
- package/dist/calcite/{p-23b901b1.js → p-72f6644b.js} +1 -1
- package/dist/calcite/p-77c4f889.js +6 -0
- package/dist/calcite/p-7bef3ee1.entry.js +6 -0
- package/dist/calcite/{p-f2930eba.entry.js → p-7d21ff63.entry.js} +2 -2
- package/dist/calcite/{p-d9f8cbba.js → p-7e574772.js} +2 -2
- package/dist/calcite/p-822cfd4f.entry.js +6 -0
- package/dist/calcite/{p-9280f03d.js → p-8aa907d3.js} +1 -1
- package/dist/calcite/p-8d0566d1.entry.js +6 -0
- package/dist/calcite/p-92f22711.entry.js +6 -0
- package/dist/calcite/p-95cfabd8.entry.js +6 -0
- package/dist/calcite/{p-92365692.entry.js → p-96c90357.entry.js} +2 -2
- package/dist/calcite/p-99003334.entry.js +6 -0
- package/dist/calcite/{p-46270e74.js → p-9bc4d2e7.js} +2 -2
- package/dist/calcite/p-9c4fe712.entry.js +6 -0
- package/dist/calcite/p-a3b5d915.entry.js +6 -0
- package/dist/calcite/p-a3ba6aef.entry.js +6 -0
- package/dist/calcite/{p-5a35498c.entry.js → p-a3efce03.entry.js} +2 -2
- package/dist/calcite/p-a4735ae4.entry.js +6 -0
- package/dist/calcite/p-a77f3220.entry.js +6 -0
- package/dist/calcite/{p-747b5340.entry.js → p-aa620a9f.entry.js} +2 -2
- package/dist/calcite/p-ade56eab.js +6 -0
- package/dist/calcite/{p-9cbb9e15.js → p-ae327e4f.js} +1 -1
- package/dist/calcite/p-b0f4cbef.entry.js +6 -0
- package/dist/calcite/p-b9028c65.entry.js +6 -0
- package/dist/calcite/p-bb813cda.entry.js +6 -0
- package/dist/calcite/p-c1dd3c4e.entry.js +6 -0
- package/dist/calcite/{p-2c32af22.entry.js → p-c3502aba.entry.js} +2 -2
- package/dist/calcite/{p-0ae01d7f.js → p-c6f8fd3f.js} +1 -1
- package/dist/calcite/{p-6f429c35.js → p-c8db295e.js} +2 -2
- package/dist/calcite/{p-275831eb.js → p-ceb691f9.js} +1 -1
- package/dist/calcite/p-d4313c1c.js +6 -0
- package/dist/calcite/p-d8790ccd.entry.js +6 -0
- package/dist/calcite/{p-afcb5d59.js → p-d8a36d6a.js} +1 -1
- package/dist/calcite/p-d9e9ec30.entry.js +6 -0
- package/dist/calcite/p-deceabe8.entry.js +6 -0
- package/dist/calcite/p-e05633d0.entry.js +6 -0
- package/dist/calcite/{p-4ca7501c.entry.js → p-e27d22a3.entry.js} +2 -2
- package/dist/calcite/{p-2f34fce0.js → p-e33b64ac.js} +1 -1
- package/dist/calcite/p-e38a5179.entry.js +6 -0
- package/dist/calcite/p-e4503ec2.entry.js +6 -0
- package/dist/calcite/{p-9b1b2703.entry.js → p-e734a9bd.entry.js} +2 -2
- package/dist/calcite/p-e94dd8f6.entry.js +6 -0
- package/dist/calcite/{p-9eeccde7.entry.js → p-ea002837.entry.js} +2 -2
- package/dist/calcite/p-ef016df0.entry.js +6 -0
- package/dist/calcite/p-f11ab8b7.js +6 -0
- package/dist/calcite/p-f275f69c.entry.js +6 -0
- package/dist/calcite/p-f9e27633.entry.js +6 -0
- package/dist/cjs/{ExpandToggle-3c4c08f5.js → ExpandToggle-6b439626.js} +7 -8
- package/dist/cjs/{Heading-6ffa7d52.js → Heading-ceb4f2b6.js} +2 -2
- package/dist/cjs/{app-globals-cd2d8153.js → app-globals-abf96af0.js} +2 -2
- package/dist/cjs/{array-487d0210.js → array-96bd470b.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-bar.cjs.entry.js +17 -20
- package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-menu.cjs.entry.js +15 -15
- package/dist/cjs/calcite-action-pad.cjs.entry.js +12 -13
- package/dist/cjs/calcite-action.cjs.entry.js +13 -17
- package/dist/cjs/calcite-alert.cjs.entry.js +12 -13
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +11 -12
- package/dist/cjs/calcite-button.cjs.entry.js +15 -19
- package/dist/cjs/calcite-card.cjs.entry.js +7 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -12
- package/dist/cjs/calcite-chip.cjs.entry.js +9 -10
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +19 -21
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +30 -37
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +19 -24
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +19 -22
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter.cjs.entry.js +9 -9
- package/dist/cjs/calcite-flow-item.cjs.entry.js +10 -11
- package/dist/cjs/calcite-flow.cjs.entry.js +5 -7
- package/dist/cjs/calcite-graph_2.cjs.entry.js +16 -18
- package/dist/cjs/calcite-handle.cjs.entry.js +7 -8
- package/dist/cjs/calcite-icon.cjs.entry.js +7 -8
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +17 -23
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +23 -27
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +23 -31
- package/dist/cjs/calcite-input-text.cjs.entry.js +14 -18
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +22 -26
- package/dist/cjs/calcite-input.cjs.entry.js +25 -33
- 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 +22 -26
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +14 -17
- package/dist/cjs/calcite-notice.cjs.entry.js +9 -9
- package/dist/cjs/calcite-option_3.cjs.entry.js +17 -22
- package/dist/cjs/calcite-pagination.cjs.entry.js +8 -8
- package/dist/cjs/calcite-panel.cjs.entry.js +18 -21
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +15 -17
- package/dist/cjs/calcite-popover.cjs.entry.js +12 -12
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +5 -7
- package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +13 -19
- package/dist/cjs/calcite-rating.cjs.entry.js +12 -14
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +12 -14
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +10 -15
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +17 -22
- package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tab_4.cjs.entry.js +26 -34
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -7
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +12 -15
- package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tree_2.cjs.entry.js +16 -21
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +19 -21
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-8e195df1.js → conditionalSlot-a875fe2d.js} +3 -3
- package/dist/cjs/{debounce-00289d1c.js → debounce-d3347e7f.js} +1 -1
- package/dist/cjs/{dom-83b860e8.js → dom-f3870c02.js} +13 -13
- package/dist/cjs/{filter-58a572dc.js → filter-bfb93506.js} +3 -3
- package/dist/cjs/{floating-ui-88327b65.js → floating-ui-3c7d9b63.js} +7 -8
- package/dist/cjs/{focusTrapComponent-f08520ba.js → focusTrapComponent-feb51e35.js} +4 -6
- package/dist/cjs/{form-bf1e6144.js → form-6fbeeffb.js} +5 -7
- package/dist/cjs/{guid-5bc1b40c.js → guid-01d6fefc.js} +1 -1
- package/dist/cjs/{index-a240255a.js → index-483dbe04.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-56b61598.js → interactive-134aafb0.js} +1 -1
- package/dist/cjs/{interfaces-1af87687.js → interfaces-0cb162a3.js} +1 -1
- package/dist/cjs/{key-a6a73fe5.js → key-64fe2d0d.js} +1 -1
- package/dist/cjs/{label-b9e3f0dd.js → label-bb7baad0.js} +4 -5
- package/dist/cjs/{loadable-e6126f32.js → loadable-9ea89e06.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-9a779ecb.js → locale-66bb4c04.js} +7 -8
- package/dist/cjs/{math-6c6a5409.js → math-168daa90.js} +1 -1
- package/dist/cjs/{nonChromiumPlatformUtils-63483b77.js → nonChromiumPlatformUtils-a8326836.js} +6 -6
- package/dist/cjs/{observers-043fe18b.js → observers-265cc6fd.js} +1 -1
- package/dist/cjs/{openCloseComponent-932c0c08.js → openCloseComponent-86d66b5f.js} +1 -1
- package/dist/cjs/{resources-e964f0dc.js → resources-4d34f5ad.js} +1 -1
- package/dist/cjs/{resources-c2443c1c.js → resources-56adcab5.js} +1 -1
- package/dist/cjs/{resources-8d7707f6.js → resources-94f83bb6.js} +11 -16
- package/dist/cjs/{resources-93bb90d0.js → resources-ad99e815.js} +1 -1
- package/dist/cjs/{resources-f9d75622.js → resources-e280f675.js} +3 -3
- package/dist/cjs/{resources-c8e55932.js → resources-e34dd4ef.js} +1 -1
- package/dist/cjs/{sortable.esm-01e087b5.js → sortable.esm-a516af47.js} +1 -1
- package/dist/cjs/{utils-bce3b4de.js → utils-61f76522.js} +2 -2
- package/dist/collection/components/accordion/accordion.js +2 -2
- 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 +6 -10
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +6 -9
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +2 -2
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +7 -7
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +2 -3
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +2 -3
- package/dist/collection/components/alert/interfaces.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 +2 -3
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +6 -10
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +2 -3
- package/dist/collection/components/chip/chip.js +2 -3
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +9 -11
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +2 -2
- 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 +13 -18
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +4 -6
- 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 +5 -7
- 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 +4 -6
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +2 -3
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +7 -9
- 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 +2 -3
- 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 +3 -5
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +3 -4
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +2 -3
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +3 -5
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +2 -3
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +2 -3
- 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 +9 -15
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +13 -21
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +8 -12
- 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 +11 -19
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +5 -9
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +3 -5
- 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 +8 -12
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +5 -5
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.js +3 -3
- 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.css +1 -1
- package/dist/collection/components/modal/modal.js +5 -8
- 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 +3 -5
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +8 -11
- 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 +7 -12
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +2 -3
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +2 -3
- 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 +2 -2
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +3 -5
- package/dist/collection/components/radio-group/radio-group.js +3 -4
- package/dist/collection/components/radio-group-item/radio-group-item.css +0 -27
- package/dist/collection/components/radio-group-item/radio-group-item.js +2 -53
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +3 -5
- package/dist/collection/components/rating/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/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +6 -9
- 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 +2 -2
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +4 -6
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +2 -2
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +6 -11
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stepper/stepper.js +3 -4
- package/dist/collection/components/stepper-item/stepper-item.js +6 -10
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/tab.js +3 -5
- package/dist/collection/components/tab-nav/tab-nav.js +13 -17
- package/dist/collection/components/tab-title/tab-title.js +6 -8
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- 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 +2 -3
- 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 +4 -5
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +2 -3
- 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 +4 -6
- package/dist/collection/components/tooltip/TooltipManager.js +2 -2
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tree/tree.js +3 -5
- package/dist/collection/components/tree/utils.js +2 -2
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +6 -9
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +3 -3
- package/dist/collection/components/value-list/value-list.js +4 -5
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +2 -3
- 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 +11 -11
- package/dist/collection/utils/filter.js +2 -2
- package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
- package/dist/collection/utils/floating-ui.js +4 -5
- package/dist/collection/utils/focusTrapComponent.js +3 -5
- package/dist/collection/utils/form.js +3 -5
- 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 +3 -4
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +4 -5
- package/dist/collection/utils/math.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 +2 -3
- package/dist/collection/utils/theme.js +1 -1
- package/dist/collection/utils/time.js +6 -7
- package/dist/components/ExpandToggle.js +3 -4
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +7 -7
- package/dist/components/action.js +6 -10
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +6 -10
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +2 -2
- package/dist/components/calcite-action-bar.js +6 -9
- 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 +2 -3
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +2 -3
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +2 -3
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- 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 +9 -11
- 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 +13 -18
- 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 +2 -3
- 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 +3 -4
- package/dist/components/calcite-flow.js +3 -5
- 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 +9 -15
- package/dist/components/calcite-input-date-picker.js +8 -12
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +11 -19
- package/dist/components/calcite-input-text.js +5 -9
- package/dist/components/calcite-input-time-picker.js +3 -5
- 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 +5 -5
- package/dist/components/calcite-list.js +8 -12
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +5 -8
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +3 -5
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +2 -3
- 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 +3 -5
- package/dist/components/calcite-radio-button.js +2 -2
- package/dist/components/calcite-radio-group-item.js +3 -10
- package/dist/components/calcite-radio-group.js +3 -4
- package/dist/components/calcite-rating.js +3 -5
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +6 -9
- package/dist/components/calcite-shell-center-row.js +2 -2
- package/dist/components/calcite-shell-panel.js +4 -6
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +2 -2
- package/dist/components/calcite-sortable-list.js +6 -11
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +6 -10
- package/dist/components/calcite-stepper.js +3 -4
- 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-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +2 -3
- 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 +4 -6
- package/dist/components/calcite-tip.js +2 -3
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +6 -9
- package/dist/components/calcite-tree.js +4 -6
- package/dist/components/calcite-value-list-item.js +2 -3
- package/dist/components/calcite-value-list.js +6 -7
- package/dist/components/checkbox.js +2 -3
- package/dist/components/chip.js +2 -3
- 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 +2 -3
- package/dist/components/date-picker-month.js +4 -6
- package/dist/components/date-picker.js +5 -7
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +11 -11
- package/dist/components/dropdown.js +7 -9
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +2 -2
- package/dist/components/floating-ui.js +4 -5
- package/dist/components/focusTrapComponent.js +3 -5
- package/dist/components/form.js +3 -5
- package/dist/components/graph.js +3 -5
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +2 -3
- package/dist/components/icon.js +2 -3
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +13 -21
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +3 -4
- 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 +4 -5
- package/dist/components/math.js +1 -1
- package/dist/components/nonChromiumPlatformUtils.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +8 -11
- package/dist/components/pick-list-item.js +2 -3
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +3 -3
- 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 +7 -12
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tab-nav.js +13 -17
- package/dist/components/tab-title.js +6 -8
- package/dist/components/tab.js +3 -5
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +9 -11
- package/dist/components/tooltip.js +2 -2
- package/dist/components/utils.js +2 -2
- package/dist/components/utils2.js +4 -6
- package/dist/esm/{ExpandToggle-bf612e95.js → ExpandToggle-7995a4b7.js} +7 -8
- package/dist/esm/{Heading-18bd5a13.js → Heading-9e7e60aa.js} +2 -2
- package/dist/esm/{app-globals-d71edb60.js → app-globals-be068759.js} +2 -2
- package/dist/esm/{array-5a3fe8fd.js → array-1cdf24cf.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +8 -8
- package/dist/esm/calcite-action-bar.entry.js +17 -20
- package/dist/esm/calcite-action-group.entry.js +9 -9
- package/dist/esm/calcite-action-menu.entry.js +15 -15
- package/dist/esm/calcite-action-pad.entry.js +12 -13
- package/dist/esm/calcite-action.entry.js +13 -17
- package/dist/esm/calcite-alert.entry.js +12 -13
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +11 -12
- package/dist/esm/calcite-button.entry.js +15 -19
- package/dist/esm/calcite-card.entry.js +7 -7
- package/dist/esm/calcite-checkbox.entry.js +11 -12
- package/dist/esm/calcite-chip.entry.js +9 -10
- package/dist/esm/calcite-color-picker_3.entry.js +19 -21
- package/dist/esm/calcite-combobox_3.entry.js +30 -37
- package/dist/esm/calcite-date-picker_4.entry.js +19 -24
- package/dist/esm/calcite-dropdown_3.entry.js +19 -22
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter.entry.js +9 -9
- package/dist/esm/calcite-flow-item.entry.js +10 -11
- package/dist/esm/calcite-flow.entry.js +5 -7
- package/dist/esm/calcite-graph_2.entry.js +16 -18
- package/dist/esm/calcite-handle.entry.js +7 -8
- package/dist/esm/calcite-icon.entry.js +7 -8
- package/dist/esm/calcite-inline-editable.entry.js +17 -23
- package/dist/esm/calcite-input-date-picker.entry.js +23 -27
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +23 -31
- package/dist/esm/calcite-input-text.entry.js +14 -18
- package/dist/esm/calcite-input-time-picker_2.entry.js +22 -26
- package/dist/esm/calcite-input.entry.js +25 -33
- 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 +22 -26
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +14 -17
- package/dist/esm/calcite-notice.entry.js +9 -9
- package/dist/esm/calcite-option_3.entry.js +17 -22
- package/dist/esm/calcite-pagination.entry.js +8 -8
- package/dist/esm/calcite-panel.entry.js +18 -21
- package/dist/esm/calcite-pick-list_3.entry.js +15 -17
- package/dist/esm/calcite-popover.entry.js +12 -12
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +5 -7
- package/dist/esm/calcite-radio-button.entry.js +11 -11
- package/dist/esm/calcite-radio-group_2.entry.js +13 -19
- package/dist/esm/calcite-rating.entry.js +12 -14
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +12 -14
- package/dist/esm/calcite-sortable-list.entry.js +10 -15
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +17 -22
- package/dist/esm/calcite-switch.entry.js +10 -10
- package/dist/esm/calcite-tab_4.entry.js +26 -34
- package/dist/esm/calcite-tile-select_2.entry.js +6 -7
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +12 -15
- package/dist/esm/calcite-tooltip.entry.js +9 -9
- package/dist/esm/calcite-tree_2.entry.js +16 -21
- package/dist/esm/calcite-value-list_2.entry.js +19 -21
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-6bcf870e.js → conditionalSlot-264302f2.js} +3 -3
- package/dist/esm/{debounce-e2cc36db.js → debounce-97af721b.js} +1 -1
- package/dist/esm/{dom-cea9908e.js → dom-e83e3685.js} +13 -13
- package/dist/esm/{filter-96490cb4.js → filter-74f44357.js} +3 -3
- package/dist/esm/{floating-ui-9315aae5.js → floating-ui-a46ce22a.js} +7 -8
- package/dist/esm/{focusTrapComponent-13c9d6cf.js → focusTrapComponent-976fba1d.js} +4 -6
- package/dist/esm/{form-e4bb6542.js → form-e64648c7.js} +5 -7
- package/dist/esm/{guid-9d784fc0.js → guid-d9ecc494.js} +1 -1
- package/dist/esm/{index-178c22ad.js → index-83004828.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-b545a643.js → interactive-9e6a5f71.js} +1 -1
- package/dist/esm/{interfaces-f5622209.js → interfaces-b1d9177f.js} +1 -1
- package/dist/esm/{key-60531299.js → key-06b23960.js} +1 -1
- package/dist/esm/{label-6e4ffdf9.js → label-e92abdfa.js} +4 -5
- package/dist/esm/{loadable-b927d252.js → loadable-0c46daa0.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-37e9ce2c.js → locale-4983f5d8.js} +7 -8
- package/dist/esm/{math-e5b975ee.js → math-3122e153.js} +1 -1
- package/dist/esm/{nonChromiumPlatformUtils-497f1011.js → nonChromiumPlatformUtils-238e88ad.js} +6 -6
- package/dist/esm/{observers-f4c814a8.js → observers-89a35a75.js} +1 -1
- package/dist/esm/{openCloseComponent-20d5779d.js → openCloseComponent-fdff8486.js} +1 -1
- package/dist/esm/{resources-7d1b7586.js → resources-2e32226e.js} +11 -16
- package/dist/esm/{resources-f7ea73ca.js → resources-35e36c39.js} +1 -1
- package/dist/esm/{resources-44e220ca.js → resources-36963763.js} +1 -1
- package/dist/esm/{resources-3292d5cc.js → resources-3a95b40f.js} +3 -3
- package/dist/esm/{resources-86bf3af1.js → resources-812152a0.js} +1 -1
- package/dist/esm/{resources-e962fefe.js → resources-edac802c.js} +1 -1
- package/dist/esm/{sortable.esm-96c29cab.js → sortable.esm-ac2f32ed.js} +1 -1
- package/dist/esm/{utils-5cda5cee.js → utils-1cddbae1.js} +2 -2
- package/dist/extras/docs-json.json +2 -52
- 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/radio-group-item/radio-group-item.d.ts +0 -13
- package/dist/types/components.d.ts +0 -20
- package/hydrate/index.js +255 -402
- package/package.json +1 -1
- package/dist/calcite/p-03cff114.entry.js +0 -6
- package/dist/calcite/p-03fdd461.entry.js +0 -6
- package/dist/calcite/p-0c954696.entry.js +0 -6
- package/dist/calcite/p-157fe2c8.entry.js +0 -6
- package/dist/calcite/p-17453a8b.entry.js +0 -6
- package/dist/calcite/p-1b873d19.entry.js +0 -6
- package/dist/calcite/p-22506107.entry.js +0 -6
- package/dist/calcite/p-310e9571.entry.js +0 -6
- package/dist/calcite/p-36e4ab59.entry.js +0 -6
- package/dist/calcite/p-3ab78edb.entry.js +0 -6
- package/dist/calcite/p-3f026ed0.entry.js +0 -6
- package/dist/calcite/p-47ad6f93.entry.js +0 -6
- package/dist/calcite/p-4f9c23ba.entry.js +0 -6
- package/dist/calcite/p-5472b8a3.js +0 -6
- package/dist/calcite/p-549280ba.entry.js +0 -6
- package/dist/calcite/p-5c3a3bc2.entry.js +0 -6
- package/dist/calcite/p-60f2df8e.js +0 -6
- package/dist/calcite/p-674f55d0.entry.js +0 -6
- package/dist/calcite/p-703312e0.entry.js +0 -6
- package/dist/calcite/p-71e601c8.entry.js +0 -6
- package/dist/calcite/p-7daf2595.js +0 -6
- package/dist/calcite/p-828d0d34.entry.js +0 -6
- package/dist/calcite/p-82b82f28.entry.js +0 -6
- package/dist/calcite/p-8841faee.js +0 -6
- package/dist/calcite/p-89908c08.js +0 -6
- package/dist/calcite/p-92daea49.entry.js +0 -6
- package/dist/calcite/p-98166159.entry.js +0 -6
- package/dist/calcite/p-983cd43b.entry.js +0 -6
- package/dist/calcite/p-984ed5fb.entry.js +0 -6
- package/dist/calcite/p-9c48249e.entry.js +0 -6
- package/dist/calcite/p-a617c567.entry.js +0 -6
- package/dist/calcite/p-a70d0ca2.js +0 -6
- package/dist/calcite/p-b3a30e3c.entry.js +0 -6
- package/dist/calcite/p-b6a92215.entry.js +0 -6
- package/dist/calcite/p-bf089c78.js +0 -6
- package/dist/calcite/p-bf13af79.entry.js +0 -6
- package/dist/calcite/p-c37a21ef.entry.js +0 -6
- package/dist/calcite/p-cc0cd97f.entry.js +0 -6
- package/dist/calcite/p-dbf32dd5.entry.js +0 -6
- package/dist/calcite/p-e004c6a5.entry.js +0 -6
- package/dist/calcite/p-e0ff50bd.entry.js +0 -6
- package/dist/calcite/p-e4a7faeb.entry.js +0 -6
- package/dist/calcite/p-e4f6df78.entry.js +0 -6
- package/dist/calcite/p-e9fbda11.js +0 -6
- package/dist/calcite/p-ec77a203.entry.js +0 -6
- package/dist/calcite/p-edb2a37f.entry.js +0 -6
- package/dist/calcite/p-f585d393.entry.js +0 -6
- package/dist/calcite/p-f5b123fb.entry.js +0 -6
- package/dist/calcite/p-f6617462.entry.js +0 -6
- package/dist/calcite/p-fb669bec.js +0 -6
- package/dist/calcite/p-fc44bb7a.entry.js +0 -6
- package/dist/calcite/p-fe81bcb4.entry.js +0 -6
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.0.0-next.
|
|
4
|
+
* v1.0.0-next.654
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -5953,7 +5953,7 @@ class Accordion {
|
|
|
5953
5953
|
}
|
|
5954
5954
|
focusElement(item) {
|
|
5955
5955
|
const target = item;
|
|
5956
|
-
target
|
|
5956
|
+
target?.focus();
|
|
5957
5957
|
}
|
|
5958
5958
|
get el() { return getElement(this); }
|
|
5959
5959
|
static get style() { return accordionCss; }
|
|
@@ -6005,7 +6005,7 @@ function nodeListToArray(nodeList) {
|
|
|
6005
6005
|
}
|
|
6006
6006
|
function getThemeName(el) {
|
|
6007
6007
|
const closestElWithTheme = closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}, .${CSS_UTILITY.lightTheme}`);
|
|
6008
|
-
return
|
|
6008
|
+
return closestElWithTheme?.classList.contains("calcite-theme-dark") ? "dark" : "light";
|
|
6009
6009
|
}
|
|
6010
6010
|
function getElementDir(el) {
|
|
6011
6011
|
const prop = "dir";
|
|
@@ -6070,7 +6070,7 @@ function closestElementCrossShadowBoundary(element, selector) {
|
|
|
6070
6070
|
return closestFrom(element);
|
|
6071
6071
|
}
|
|
6072
6072
|
function isCalciteFocusable(el) {
|
|
6073
|
-
return typeof
|
|
6073
|
+
return typeof el?.setFocus === "function";
|
|
6074
6074
|
}
|
|
6075
6075
|
async function focusElement(el) {
|
|
6076
6076
|
if (!el) {
|
|
@@ -6089,21 +6089,21 @@ function getSlotted(element, slotName, options) {
|
|
|
6089
6089
|
? slotName.map((name) => `[slot="${name}"]`).join(",")
|
|
6090
6090
|
: `[slot="${slotName}"]`
|
|
6091
6091
|
: defaultSlotSelector;
|
|
6092
|
-
if (options
|
|
6092
|
+
if (options?.all) {
|
|
6093
6093
|
return queryMultiple(element, slotSelector, options);
|
|
6094
6094
|
}
|
|
6095
6095
|
return querySingle(element, slotSelector, options);
|
|
6096
6096
|
}
|
|
6097
6097
|
function getDirectChildren(el, selector) {
|
|
6098
|
-
return el ? Array.from(el.children || []).filter((child) => child
|
|
6098
|
+
return el ? Array.from(el.children || []).filter((child) => child?.matches(selector)) : [];
|
|
6099
6099
|
}
|
|
6100
6100
|
function queryMultiple(element, slotSelector, options) {
|
|
6101
6101
|
let matches = slotSelector === defaultSlotSelector
|
|
6102
6102
|
? getDirectChildren(element, defaultSlotSelector)
|
|
6103
6103
|
: Array.from(element.querySelectorAll(slotSelector));
|
|
6104
6104
|
matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);
|
|
6105
|
-
matches =
|
|
6106
|
-
const selector = options
|
|
6105
|
+
matches = options?.matches ? matches.filter((el) => el?.matches(options.matches)) : matches;
|
|
6106
|
+
const selector = options?.selector;
|
|
6107
6107
|
return selector
|
|
6108
6108
|
? matches
|
|
6109
6109
|
.map((item) => Array.from(item.querySelectorAll(selector)))
|
|
@@ -6115,10 +6115,10 @@ function querySingle(element, slotSelector, options) {
|
|
|
6115
6115
|
let match = slotSelector === defaultSlotSelector
|
|
6116
6116
|
? getDirectChildren(element, defaultSlotSelector)[0] || null
|
|
6117
6117
|
: element.querySelector(slotSelector);
|
|
6118
|
-
match = options && options.direct === false ? match :
|
|
6119
|
-
match =
|
|
6120
|
-
const selector = options
|
|
6121
|
-
return selector ? match
|
|
6118
|
+
match = options && options.direct === false ? match : match?.parentElement === element ? match : null;
|
|
6119
|
+
match = options?.matches ? (match?.matches(options.matches) ? match : null) : match;
|
|
6120
|
+
const selector = options?.selector;
|
|
6121
|
+
return selector ? match?.querySelector(selector) : match;
|
|
6122
6122
|
}
|
|
6123
6123
|
function filterDirectChildren(el, selector) {
|
|
6124
6124
|
return Array.from(el.children).filter((child) => child.matches(selector));
|
|
@@ -6553,7 +6553,7 @@ class Action {
|
|
|
6553
6553
|
.assignedElements({
|
|
6554
6554
|
flatten: true
|
|
6555
6555
|
})
|
|
6556
|
-
.filter((el) => el
|
|
6556
|
+
.filter((el) => el?.matches("calcite-tooltip"));
|
|
6557
6557
|
const tooltip = tooltips[0];
|
|
6558
6558
|
if (tooltip) {
|
|
6559
6559
|
tooltip.referenceElement = this.buttonEl;
|
|
@@ -6579,8 +6579,7 @@ class Action {
|
|
|
6579
6579
|
//
|
|
6580
6580
|
// --------------------------------------------------------------------------
|
|
6581
6581
|
connectedCallback() {
|
|
6582
|
-
|
|
6583
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
6582
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
6584
6583
|
}
|
|
6585
6584
|
componentWillLoad() {
|
|
6586
6585
|
setUpLoadableComponent(this);
|
|
@@ -6589,8 +6588,7 @@ class Action {
|
|
|
6589
6588
|
setComponentLoaded(this);
|
|
6590
6589
|
}
|
|
6591
6590
|
disconnectedCallback() {
|
|
6592
|
-
|
|
6593
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
6591
|
+
this.mutationObserver?.disconnect();
|
|
6594
6592
|
}
|
|
6595
6593
|
componentDidRender() {
|
|
6596
6594
|
updateHostInteraction(this);
|
|
@@ -6602,9 +6600,8 @@ class Action {
|
|
|
6602
6600
|
// --------------------------------------------------------------------------
|
|
6603
6601
|
/** Sets focus on the component. */
|
|
6604
6602
|
async setFocus() {
|
|
6605
|
-
var _a;
|
|
6606
6603
|
await componentLoaded(this);
|
|
6607
|
-
|
|
6604
|
+
this.buttonEl?.focus();
|
|
6608
6605
|
}
|
|
6609
6606
|
// --------------------------------------------------------------------------
|
|
6610
6607
|
//
|
|
@@ -6620,14 +6617,13 @@ class Action {
|
|
|
6620
6617
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
6621
6618
|
}
|
|
6622
6619
|
renderIconContainer() {
|
|
6623
|
-
var _a;
|
|
6624
6620
|
const { loading, icon, scale, el, intlLoading } = this;
|
|
6625
6621
|
const iconScale = scale === "l" ? "m" : "s";
|
|
6626
6622
|
const loaderScale = scale === "l" ? "l" : "m";
|
|
6627
6623
|
const calciteLoaderNode = loading ? (hAsync("calcite-loader", { inline: true, label: intlLoading, scale: loaderScale })) : null;
|
|
6628
6624
|
const calciteIconNode = icon ? hAsync("calcite-icon", { icon: icon, scale: iconScale }) : null;
|
|
6629
6625
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
6630
|
-
const hasIconToDisplay = iconNode ||
|
|
6626
|
+
const hasIconToDisplay = iconNode || el.children?.length;
|
|
6631
6627
|
const slotContainerNode = (hAsync("div", { class: {
|
|
6632
6628
|
[CSS$U.slotContainer]: true,
|
|
6633
6629
|
[CSS$U.slotContainerHidden]: loading
|
|
@@ -6698,7 +6694,7 @@ const overflowActionsDebounceInMs = 150;
|
|
|
6698
6694
|
const groupBufferPx = 2;
|
|
6699
6695
|
const getAverage = (arr) => arr.reduce((p, c) => p + c, 0) / arr.length;
|
|
6700
6696
|
const geActionDimensions = (actions) => {
|
|
6701
|
-
const actionLen = actions
|
|
6697
|
+
const actionLen = actions?.length;
|
|
6702
6698
|
return {
|
|
6703
6699
|
actionWidth: actionLen ? getAverage(actions.map((action) => action.clientWidth || 0)) : 0,
|
|
6704
6700
|
actionHeight: actionLen ? getAverage(actions.map((action) => action.clientHeight || 0)) : 0
|
|
@@ -6749,8 +6745,7 @@ const ICONS$f = {
|
|
|
6749
6745
|
chevronsRight: "chevrons-right"
|
|
6750
6746
|
};
|
|
6751
6747
|
function getCalcitePosition(position, el) {
|
|
6752
|
-
|
|
6753
|
-
return position || ((_a = el.closest("calcite-shell-panel")) === null || _a === void 0 ? void 0 : _a.position) || "start";
|
|
6748
|
+
return position || el.closest("calcite-shell-panel")?.position || "start";
|
|
6754
6749
|
}
|
|
6755
6750
|
function toggleChildActionText({ parent, expanded }) {
|
|
6756
6751
|
queryActions(parent)
|
|
@@ -8166,20 +8161,18 @@ class ActionBar {
|
|
|
8166
8161
|
this.conditionallyOverflowActions();
|
|
8167
8162
|
}
|
|
8168
8163
|
connectedCallback() {
|
|
8169
|
-
var _a, _b;
|
|
8170
8164
|
const { el, expanded } = this;
|
|
8171
8165
|
toggleChildActionText({ parent: el, expanded });
|
|
8172
|
-
|
|
8166
|
+
this.mutationObserver?.observe(el, { childList: true, subtree: true });
|
|
8173
8167
|
if (!this.overflowActionsDisabled) {
|
|
8174
|
-
|
|
8168
|
+
this.resizeObserver?.observe(el);
|
|
8175
8169
|
}
|
|
8176
8170
|
this.conditionallyOverflowActions();
|
|
8177
8171
|
connectConditionalSlotComponent(this);
|
|
8178
8172
|
}
|
|
8179
8173
|
disconnectedCallback() {
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
8174
|
+
this.mutationObserver?.disconnect();
|
|
8175
|
+
this.resizeObserver?.disconnect();
|
|
8183
8176
|
disconnectConditionalSlotComponent(this);
|
|
8184
8177
|
}
|
|
8185
8178
|
// --------------------------------------------------------------------------
|
|
@@ -8201,13 +8194,12 @@ class ActionBar {
|
|
|
8201
8194
|
* @param focusId
|
|
8202
8195
|
*/
|
|
8203
8196
|
async setFocus(focusId) {
|
|
8204
|
-
var _a;
|
|
8205
8197
|
await componentLoaded(this);
|
|
8206
8198
|
if (focusId === "expand-toggle") {
|
|
8207
8199
|
await focusElement(this.expandToggleEl);
|
|
8208
8200
|
return;
|
|
8209
8201
|
}
|
|
8210
|
-
|
|
8202
|
+
this.el?.focus();
|
|
8211
8203
|
}
|
|
8212
8204
|
// --------------------------------------------------------------------------
|
|
8213
8205
|
//
|
|
@@ -8403,7 +8395,7 @@ class ActionMenu {
|
|
|
8403
8395
|
.assignedElements({
|
|
8404
8396
|
flatten: true
|
|
8405
8397
|
})
|
|
8406
|
-
.filter((el) => el
|
|
8398
|
+
.filter((el) => el?.matches("calcite-action"));
|
|
8407
8399
|
this.slottedMenuButtonEl = actions[0];
|
|
8408
8400
|
this.connectMenuButtonEl();
|
|
8409
8401
|
};
|
|
@@ -8431,7 +8423,7 @@ class ActionMenu {
|
|
|
8431
8423
|
.assignedElements({
|
|
8432
8424
|
flatten: true
|
|
8433
8425
|
})
|
|
8434
|
-
.filter((el) => el
|
|
8426
|
+
.filter((el) => el?.matches("calcite-tooltip"));
|
|
8435
8427
|
this.tooltipEl = tooltips[0];
|
|
8436
8428
|
this.setTooltipReferenceElement();
|
|
8437
8429
|
};
|
|
@@ -8452,14 +8444,14 @@ class ActionMenu {
|
|
|
8452
8444
|
action.active = index === activeMenuItemIndex;
|
|
8453
8445
|
};
|
|
8454
8446
|
this.updateActions = (actions) => {
|
|
8455
|
-
actions
|
|
8447
|
+
actions?.forEach(this.updateAction);
|
|
8456
8448
|
};
|
|
8457
8449
|
this.handleDefaultSlotChange = (event) => {
|
|
8458
8450
|
const actions = event.target
|
|
8459
8451
|
.assignedElements({
|
|
8460
8452
|
flatten: true
|
|
8461
8453
|
})
|
|
8462
|
-
.filter((el) => el
|
|
8454
|
+
.filter((el) => el?.matches("calcite-action"));
|
|
8463
8455
|
this.actionElements = actions;
|
|
8464
8456
|
};
|
|
8465
8457
|
this.menuButtonKeyDown = (event) => {
|
|
@@ -8592,8 +8584,8 @@ class ActionMenu {
|
|
|
8592
8584
|
renderMenuItems() {
|
|
8593
8585
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
|
|
8594
8586
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
8595
|
-
const activeDescendantId =
|
|
8596
|
-
return (hAsync("calcite-popover", { disableFocusTrap: true, disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl
|
|
8587
|
+
const activeDescendantId = activeAction?.id || null;
|
|
8588
|
+
return (hAsync("calcite-popover", { disableFocusTrap: true, disablePointer: true, flipPlacements: flipPlacements, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl?.id, class: CSS$T.menu, id: menuId, onClick: this.handleCalciteActionClick, role: "menu", tabIndex: -1 }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
8597
8589
|
}
|
|
8598
8590
|
render() {
|
|
8599
8591
|
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$s.tooltip, onSlotchange: this.updateTooltip })));
|
|
@@ -8714,13 +8706,12 @@ class ActionPad {
|
|
|
8714
8706
|
* @param focusId
|
|
8715
8707
|
*/
|
|
8716
8708
|
async setFocus(focusId) {
|
|
8717
|
-
var _a;
|
|
8718
8709
|
await componentLoaded(this);
|
|
8719
8710
|
if (focusId === "expand-toggle") {
|
|
8720
8711
|
await focusElement(this.expandToggleEl);
|
|
8721
8712
|
return;
|
|
8722
8713
|
}
|
|
8723
|
-
|
|
8714
|
+
this.el?.focus();
|
|
8724
8715
|
}
|
|
8725
8716
|
// --------------------------------------------------------------------------
|
|
8726
8717
|
//
|
|
@@ -9107,10 +9098,9 @@ const mutationObserver = createObserver();
|
|
|
9107
9098
|
* @param component
|
|
9108
9099
|
*/
|
|
9109
9100
|
function getLocale(component) {
|
|
9110
|
-
var _a;
|
|
9111
9101
|
return (component.el.lang ||
|
|
9112
9102
|
component.locale ||
|
|
9113
|
-
|
|
9103
|
+
closestElementCrossShadowBoundary(component.el, "[lang]")?.lang ||
|
|
9114
9104
|
document.documentElement.lang ||
|
|
9115
9105
|
defaultLocale);
|
|
9116
9106
|
}
|
|
@@ -9161,8 +9151,8 @@ class NumberStringFormat {
|
|
|
9161
9151
|
* numberFormatOptions needs to be set before localize/delocalize is called to ensure the options are up to date
|
|
9162
9152
|
*/
|
|
9163
9153
|
set numberFormatOptions(options) {
|
|
9164
|
-
options.locale = getSupportedLocale(options
|
|
9165
|
-
options.numberingSystem = getSupportedNumberingSystem(options
|
|
9154
|
+
options.locale = getSupportedLocale(options?.locale);
|
|
9155
|
+
options.numberingSystem = getSupportedNumberingSystem(options?.numberingSystem);
|
|
9166
9156
|
if (
|
|
9167
9157
|
// No need to create the formatter if `locale` and `numberingSystem`
|
|
9168
9158
|
// are the default values and `numberFormatOptions` has not been set
|
|
@@ -9361,8 +9351,7 @@ class Alert {
|
|
|
9361
9351
|
}
|
|
9362
9352
|
/** determine which alert is active */
|
|
9363
9353
|
determineActiveAlert() {
|
|
9364
|
-
|
|
9365
|
-
if (((_a = this.queue) === null || _a === void 0 ? void 0 : _a[0]) === this.el) {
|
|
9354
|
+
if (this.queue?.[0] === this.el) {
|
|
9366
9355
|
this.openAlert();
|
|
9367
9356
|
if (this.autoDismiss && !this.autoDismissTimeoutId) {
|
|
9368
9357
|
this.trackTimer = Date.now();
|
|
@@ -9531,7 +9520,7 @@ function hasChannels(colorObject, ...channels) {
|
|
|
9531
9520
|
return channels.every((channel) => channel && colorObject && `${channel}` in colorObject);
|
|
9532
9521
|
}
|
|
9533
9522
|
function colorEqual(value1, value2) {
|
|
9534
|
-
return
|
|
9523
|
+
return value1?.rgbNumber() === value2?.rgbNumber();
|
|
9535
9524
|
}
|
|
9536
9525
|
|
|
9537
9526
|
/**
|
|
@@ -9910,9 +9899,8 @@ class BlockSection {
|
|
|
9910
9899
|
//
|
|
9911
9900
|
// --------------------------------------------------------------------------
|
|
9912
9901
|
renderStatusIcon() {
|
|
9913
|
-
var _a;
|
|
9914
9902
|
const { status } = this;
|
|
9915
|
-
const statusIcon =
|
|
9903
|
+
const statusIcon = ICONS$d[status] ?? false;
|
|
9916
9904
|
const statusIconClasses = {
|
|
9917
9905
|
[CSS$O.statusIcon]: true,
|
|
9918
9906
|
[CSS$O.valid]: status == "valid",
|
|
@@ -10046,7 +10034,7 @@ function hasAncestorCustomElements(label, componentEl) {
|
|
|
10046
10034
|
label.removeEventListener(customElementAncestorCheckEventType, listener);
|
|
10047
10035
|
const ancestorCustomElements = traversedElements
|
|
10048
10036
|
.filter((el) => el !== componentEl && el !== label)
|
|
10049
|
-
.filter((el) =>
|
|
10037
|
+
.filter((el) => el.tagName?.includes("-"));
|
|
10050
10038
|
return ancestorCustomElements.length > 0;
|
|
10051
10039
|
}
|
|
10052
10040
|
/**
|
|
@@ -10099,8 +10087,7 @@ function disconnectLabel(component) {
|
|
|
10099
10087
|
* @param component
|
|
10100
10088
|
*/
|
|
10101
10089
|
function getLabelText(component) {
|
|
10102
|
-
|
|
10103
|
-
return component.label || ((_b = (_a = component.labelEl) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || "";
|
|
10090
|
+
return component.label || component.labelEl?.textContent?.trim() || "";
|
|
10104
10091
|
}
|
|
10105
10092
|
function onLabelClick(event) {
|
|
10106
10093
|
if (this.disabled) {
|
|
@@ -10169,8 +10156,7 @@ function submitForm(component) {
|
|
|
10169
10156
|
* @param component
|
|
10170
10157
|
*/
|
|
10171
10158
|
function resetForm(component) {
|
|
10172
|
-
|
|
10173
|
-
(_a = component.formEl) === null || _a === void 0 ? void 0 : _a.reset();
|
|
10159
|
+
component.formEl?.reset();
|
|
10174
10160
|
}
|
|
10175
10161
|
/**
|
|
10176
10162
|
* Helper to set up form interactions on connectedCallback.
|
|
@@ -10291,7 +10277,6 @@ function syncHiddenFormInput(component) {
|
|
|
10291
10277
|
});
|
|
10292
10278
|
}
|
|
10293
10279
|
function defaultSyncHiddenFormInput(component, input, value) {
|
|
10294
|
-
var _a;
|
|
10295
10280
|
const { defaultValue, disabled, name, required } = component;
|
|
10296
10281
|
// keep in sync to prevent losing reset value
|
|
10297
10282
|
input.defaultValue = defaultValue;
|
|
@@ -10312,7 +10297,7 @@ function defaultSyncHiddenFormInput(component, input, value) {
|
|
|
10312
10297
|
else {
|
|
10313
10298
|
input.value = value || "";
|
|
10314
10299
|
}
|
|
10315
|
-
|
|
10300
|
+
component.syncHiddenFormInput?.(input);
|
|
10316
10301
|
}
|
|
10317
10302
|
/**
|
|
10318
10303
|
* Helper to render the slot for form-associated component's hidden input.
|
|
@@ -10407,8 +10392,7 @@ class Button {
|
|
|
10407
10392
|
this.formEl = closestElementCrossShadowBoundary(this.el, this.form ? `#${this.form}` : "form");
|
|
10408
10393
|
}
|
|
10409
10394
|
disconnectedCallback() {
|
|
10410
|
-
|
|
10411
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
10395
|
+
this.mutationObserver?.disconnect();
|
|
10412
10396
|
disconnectLabel(this);
|
|
10413
10397
|
this.formEl = null;
|
|
10414
10398
|
}
|
|
@@ -10444,21 +10428,18 @@ class Button {
|
|
|
10444
10428
|
//--------------------------------------------------------------------------
|
|
10445
10429
|
/** Sets focus on the component. */
|
|
10446
10430
|
async setFocus() {
|
|
10447
|
-
var _a;
|
|
10448
10431
|
await componentLoaded(this);
|
|
10449
|
-
|
|
10432
|
+
this.childEl?.focus();
|
|
10450
10433
|
}
|
|
10451
10434
|
updateHasContent() {
|
|
10452
|
-
var _a, _b;
|
|
10453
10435
|
const slottedContent = this.el.textContent.trim().length > 0 || this.el.childNodes.length > 0;
|
|
10454
10436
|
this.hasContent =
|
|
10455
|
-
this.el.childNodes.length === 1 &&
|
|
10456
|
-
?
|
|
10437
|
+
this.el.childNodes.length === 1 && this.el.childNodes[0]?.nodeName === "#text"
|
|
10438
|
+
? this.el.textContent?.trim().length > 0
|
|
10457
10439
|
: slottedContent;
|
|
10458
10440
|
}
|
|
10459
10441
|
setupTextContentObserver() {
|
|
10460
|
-
|
|
10461
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
10442
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
10462
10443
|
}
|
|
10463
10444
|
//--------------------------------------------------------------------------
|
|
10464
10445
|
//
|
|
@@ -10709,9 +10690,8 @@ class Checkbox {
|
|
|
10709
10690
|
//--------------------------------------------------------------------------
|
|
10710
10691
|
/** Sets focus on the component. */
|
|
10711
10692
|
async setFocus() {
|
|
10712
|
-
var _a;
|
|
10713
10693
|
await componentLoaded(this);
|
|
10714
|
-
|
|
10694
|
+
this.toggleEl?.focus();
|
|
10715
10695
|
}
|
|
10716
10696
|
//--------------------------------------------------------------------------
|
|
10717
10697
|
//
|
|
@@ -10840,9 +10820,8 @@ class Chip {
|
|
|
10840
10820
|
//--------------------------------------------------------------------------
|
|
10841
10821
|
/** Sets focus on the component. */
|
|
10842
10822
|
async setFocus() {
|
|
10843
|
-
var _a;
|
|
10844
10823
|
await componentLoaded(this);
|
|
10845
|
-
|
|
10824
|
+
this.closeButton?.focus();
|
|
10846
10825
|
}
|
|
10847
10826
|
//--------------------------------------------------------------------------
|
|
10848
10827
|
//
|
|
@@ -13223,7 +13202,6 @@ class ColorPicker {
|
|
|
13223
13202
|
}
|
|
13224
13203
|
};
|
|
13225
13204
|
this.handleColorFieldAndSliderPointerDown = (event) => {
|
|
13226
|
-
var _a, _b;
|
|
13227
13205
|
if (!isPrimaryPointerButton(event)) {
|
|
13228
13206
|
return;
|
|
13229
13207
|
}
|
|
@@ -13232,12 +13210,12 @@ class ColorPicker {
|
|
|
13232
13210
|
if (region === "color-field") {
|
|
13233
13211
|
this.hueThumbState = "drag";
|
|
13234
13212
|
this.captureColorFieldColor(offsetX, offsetY);
|
|
13235
|
-
|
|
13213
|
+
this.colorFieldScopeNode?.focus();
|
|
13236
13214
|
}
|
|
13237
13215
|
else if (region === "slider") {
|
|
13238
13216
|
this.sliderThumbState = "drag";
|
|
13239
13217
|
this.captureHueSliderColor(offsetX);
|
|
13240
|
-
|
|
13218
|
+
this.hueScopeNode?.focus();
|
|
13241
13219
|
}
|
|
13242
13220
|
// prevent text selection outside of color field & slider area
|
|
13243
13221
|
event.preventDefault();
|
|
@@ -13381,7 +13359,7 @@ class ColorPicker {
|
|
|
13381
13359
|
/* the channel container is ltr, so we apply the host's direction */
|
|
13382
13360
|
this.renderChannel(channel, index, channelLabels[index], channelAriaLabels[index], direction)))));
|
|
13383
13361
|
};
|
|
13384
|
-
this.renderChannel = (value, index, label, ariaLabel, direction) => (hAsync("calcite-input", { class: CSS$K.channel, "data-channel-index": index, dir: direction, label: ariaLabel, 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
|
|
13362
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (hAsync("calcite-input", { class: CSS$K.channel, "data-channel-index": index, dir: direction, label: ariaLabel, 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() }));
|
|
13385
13363
|
this.deleteColor = () => {
|
|
13386
13364
|
const colorToDelete = this.color.hex();
|
|
13387
13365
|
const inStorage = this.savedColors.indexOf(colorToDelete) > -1;
|
|
@@ -13477,9 +13455,8 @@ class ColorPicker {
|
|
|
13477
13455
|
this.internalColorSet(this.color, false, "internal");
|
|
13478
13456
|
}
|
|
13479
13457
|
handleScaleChange(scale = "m") {
|
|
13480
|
-
var _a;
|
|
13481
13458
|
this.updateDimensions(scale);
|
|
13482
|
-
this.updateCanvasSize(
|
|
13459
|
+
this.updateCanvasSize(this.fieldAndSliderRenderingContext?.canvas);
|
|
13483
13460
|
}
|
|
13484
13461
|
handleValueChange(value, oldValue) {
|
|
13485
13462
|
const { allowEmpty, format } = this;
|
|
@@ -13525,7 +13502,7 @@ class ColorPicker {
|
|
|
13525
13502
|
this.shiftKeyChannelAdjustment = 0;
|
|
13526
13503
|
const { key } = event;
|
|
13527
13504
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
13528
|
-
!event.composedPath().some((node) =>
|
|
13505
|
+
!event.composedPath().some((node) => node.classList?.contains(CSS$K.channel))) {
|
|
13529
13506
|
return;
|
|
13530
13507
|
}
|
|
13531
13508
|
const { shiftKey } = event;
|
|
@@ -13597,14 +13574,14 @@ class ColorPicker {
|
|
|
13597
13574
|
const selectedColorInHex = color ? color.hex() : null;
|
|
13598
13575
|
const hexInputScale = scale === "l" ? "m" : "s";
|
|
13599
13576
|
const { colorFieldAndSliderInteractive, colorFieldScopeTop, colorFieldScopeLeft, hueScopeLeft, hueScopeTop, scopeOrientation, dimensions: { colorField: { height: colorFieldHeight, width: colorFieldWidth }, slider: { height: sliderHeight } } } = this;
|
|
13600
|
-
const hueTop = hueScopeTop
|
|
13601
|
-
const hueLeft = hueScopeLeft
|
|
13577
|
+
const hueTop = hueScopeTop ?? sliderHeight / 2 + colorFieldHeight;
|
|
13578
|
+
const hueLeft = hueScopeLeft ?? (colorFieldWidth * DEFAULT_COLOR$1.hue()) / HSV_LIMITS.h;
|
|
13602
13579
|
const noColor = color === null;
|
|
13603
13580
|
const vertical = scopeOrientation === "vertical";
|
|
13604
13581
|
return (hAsync("div", { class: CSS$K.container }, hAsync("div", { class: CSS$K.colorFieldAndSliderWrap }, hAsync("canvas", { class: {
|
|
13605
13582
|
[CSS$K.colorFieldAndSlider]: true,
|
|
13606
13583
|
[CSS$K.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
13607
|
-
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), hAsync("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color
|
|
13584
|
+
}, onPointerDown: this.handleColorFieldAndSliderPointerDown, onPointerEnter: this.handleColorFieldAndSliderPointerEnterOrMove, onPointerLeave: this.handleColorFieldAndSliderPointerLeave, onPointerMove: this.handleColorFieldAndSliderPointerEnterOrMove, ref: this.initColorFieldAndSlider }), hAsync("div", { "aria-label": vertical ? this.intlValue : this.intlSaturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color?.saturationv() : color?.value()) || "0", class: { [CSS$K.scope]: true, [CSS$K.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, ref: this.storeColorFieldScope, role: "slider", style: { top: `${colorFieldScopeTop || 0}px`, left: `${colorFieldScopeLeft || 0}px` }, tabindex: "0" }), hAsync("div", { "aria-label": this.intlHue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": color?.round().hue() || DEFAULT_COLOR$1.round().hue(), class: { [CSS$K.scope]: true, [CSS$K.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, ref: this.storeHueScope, role: "slider", style: { top: `${hueTop}px`, left: `${hueLeft}px` }, tabindex: "0" })), hideHex && hideChannels ? null : (hAsync("div", { class: {
|
|
13608
13585
|
[CSS$K.controlSection]: true,
|
|
13609
13586
|
[CSS$K.section]: true
|
|
13610
13587
|
} }, hideHex ? null : (hAsync("div", { class: CSS$K.hexOptions }, hAsync("span", { class: {
|
|
@@ -14115,7 +14092,7 @@ const filter = (data, value) => {
|
|
|
14115
14092
|
The data argument should be an array of objects`);
|
|
14116
14093
|
}
|
|
14117
14094
|
const find = (input, RE) => {
|
|
14118
|
-
if (
|
|
14095
|
+
if (input?.constant || input?.filterDisabled) {
|
|
14119
14096
|
return true;
|
|
14120
14097
|
}
|
|
14121
14098
|
let found = false;
|
|
@@ -15618,7 +15595,6 @@ const debouncedReposition = debounce(positionFloatingUI, repositionDebounceTimeo
|
|
|
15618
15595
|
* @param root0.includeArrow
|
|
15619
15596
|
*/
|
|
15620
15597
|
async function positionFloatingUI({ referenceEl, floatingEl, overlayPositioning = "absolute", placement, disableFlip, flipPlacements, offsetDistance, offsetSkidding, includeArrow = false, arrowEl, type }) {
|
|
15621
|
-
var _a;
|
|
15622
15598
|
if (!referenceEl || !floatingEl || (includeArrow && !arrowEl)) {
|
|
15623
15599
|
return null;
|
|
15624
15600
|
}
|
|
@@ -15638,14 +15614,14 @@ async function positionFloatingUI({ referenceEl, floatingEl, overlayPositioning
|
|
|
15638
15614
|
type
|
|
15639
15615
|
})
|
|
15640
15616
|
});
|
|
15641
|
-
if (middlewareData
|
|
15617
|
+
if (middlewareData?.arrow) {
|
|
15642
15618
|
const { x: arrowX, y: arrowY } = middlewareData.arrow;
|
|
15643
15619
|
Object.assign(arrowEl.style, {
|
|
15644
15620
|
left: arrowX != null ? `${arrowX}px` : "",
|
|
15645
15621
|
top: arrowY != null ? `${arrowY}px` : ""
|
|
15646
15622
|
});
|
|
15647
15623
|
}
|
|
15648
|
-
const referenceHidden =
|
|
15624
|
+
const referenceHidden = middlewareData?.hide?.referenceHidden;
|
|
15649
15625
|
const visibility = referenceHidden ? "hidden" : null;
|
|
15650
15626
|
const pointerEvents = visibility ? "none" : null;
|
|
15651
15627
|
floatingEl.setAttribute(placementDataAttribute, effectivePlacement);
|
|
@@ -15766,14 +15742,12 @@ const TEXT$j = {
|
|
|
15766
15742
|
};
|
|
15767
15743
|
|
|
15768
15744
|
function getAncestors(element) {
|
|
15769
|
-
|
|
15770
|
-
const
|
|
15771
|
-
const grandparent = (_b = parent === null || parent === void 0 ? void 0 : parent.parentElement) === null || _b === void 0 ? void 0 : _b.closest(ComboboxChildSelector);
|
|
15745
|
+
const parent = element.parentElement?.closest(ComboboxChildSelector);
|
|
15746
|
+
const grandparent = parent?.parentElement?.closest(ComboboxChildSelector);
|
|
15772
15747
|
return [parent, grandparent].filter((el) => el);
|
|
15773
15748
|
}
|
|
15774
15749
|
function getItemAncestors(item) {
|
|
15775
|
-
|
|
15776
|
-
return (((_a = item.ancestors) === null || _a === void 0 ? void 0 : _a.filter((el) => el.nodeName === "CALCITE-COMBOBOX-ITEM")) || []);
|
|
15750
|
+
return (item.ancestors?.filter((el) => el.nodeName === "CALCITE-COMBOBOX-ITEM") || []);
|
|
15777
15751
|
}
|
|
15778
15752
|
function getItemChildren(item) {
|
|
15779
15753
|
return nodeListToArray(item.querySelectorAll("calcite-combobox-item"));
|
|
@@ -15836,8 +15810,8 @@ class Combobox {
|
|
|
15836
15810
|
: null;
|
|
15837
15811
|
};
|
|
15838
15812
|
this.getValue = () => {
|
|
15839
|
-
const items = this.selectedItems.map((item) =>
|
|
15840
|
-
return
|
|
15813
|
+
const items = this.selectedItems.map((item) => item?.value?.toString());
|
|
15814
|
+
return items?.length ? (items.length > 1 ? items : items[0]) : "";
|
|
15841
15815
|
};
|
|
15842
15816
|
this.onLabelClick = () => {
|
|
15843
15817
|
this.setFocus();
|
|
@@ -16083,8 +16057,7 @@ class Combobox {
|
|
|
16083
16057
|
}
|
|
16084
16058
|
};
|
|
16085
16059
|
this.comboboxFocusHandler = () => {
|
|
16086
|
-
|
|
16087
|
-
(_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
16060
|
+
this.textInput?.focus();
|
|
16088
16061
|
};
|
|
16089
16062
|
this.comboboxBlurHandler = (event) => {
|
|
16090
16063
|
this.setInactiveIfNotContained(event);
|
|
@@ -16209,9 +16182,8 @@ class Combobox {
|
|
|
16209
16182
|
}
|
|
16210
16183
|
/** Sets focus on the component. */
|
|
16211
16184
|
async setFocus() {
|
|
16212
|
-
var _a;
|
|
16213
16185
|
await componentLoaded(this);
|
|
16214
|
-
|
|
16186
|
+
this.textInput?.focus();
|
|
16215
16187
|
this.activeChipIndex = -1;
|
|
16216
16188
|
this.activeItemIndex = -1;
|
|
16217
16189
|
}
|
|
@@ -16221,11 +16193,10 @@ class Combobox {
|
|
|
16221
16193
|
//
|
|
16222
16194
|
// --------------------------------------------------------------------------
|
|
16223
16195
|
connectedCallback() {
|
|
16224
|
-
var _a;
|
|
16225
16196
|
this.internalValueChangeFlag = true;
|
|
16226
16197
|
this.value = this.getValue();
|
|
16227
16198
|
this.internalValueChangeFlag = false;
|
|
16228
|
-
|
|
16199
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
16229
16200
|
connectLabel(this);
|
|
16230
16201
|
connectForm(this);
|
|
16231
16202
|
connectOpenCloseComponent(this);
|
|
@@ -16255,9 +16226,8 @@ class Combobox {
|
|
|
16255
16226
|
updateHostInteraction(this);
|
|
16256
16227
|
}
|
|
16257
16228
|
disconnectedCallback() {
|
|
16258
|
-
|
|
16259
|
-
|
|
16260
|
-
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
16229
|
+
this.mutationObserver?.disconnect();
|
|
16230
|
+
this.resizeObserver?.disconnect();
|
|
16261
16231
|
disconnectLabel(this);
|
|
16262
16232
|
disconnectForm(this);
|
|
16263
16233
|
disconnectFloatingUI(this, this.referenceEl, this.floatingEl);
|
|
@@ -16314,7 +16284,7 @@ class Combobox {
|
|
|
16314
16284
|
// if item has children items, don't count their height twice
|
|
16315
16285
|
const children = Array.from(item.querySelectorAll(ComboboxChildSelector));
|
|
16316
16286
|
children
|
|
16317
|
-
.map((child) => child
|
|
16287
|
+
.map((child) => child?.offsetHeight)
|
|
16318
16288
|
.forEach((offsetHeight) => {
|
|
16319
16289
|
height -= offsetHeight;
|
|
16320
16290
|
});
|
|
@@ -16474,12 +16444,11 @@ class Combobox {
|
|
|
16474
16444
|
this.updateActiveItemIndex(-1);
|
|
16475
16445
|
}
|
|
16476
16446
|
focusChip() {
|
|
16477
|
-
|
|
16478
|
-
const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
|
|
16447
|
+
const guid = this.selectedItems[this.activeChipIndex]?.guid;
|
|
16479
16448
|
const chip = guid
|
|
16480
16449
|
? this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`)
|
|
16481
16450
|
: null;
|
|
16482
|
-
chip
|
|
16451
|
+
chip?.setFocus();
|
|
16483
16452
|
}
|
|
16484
16453
|
shiftActiveItemIndex(delta) {
|
|
16485
16454
|
const { length } = this.visibleItems;
|
|
@@ -16535,7 +16504,7 @@ class Combobox {
|
|
|
16535
16504
|
"input-wrap--single": single
|
|
16536
16505
|
} }, showLabel && (hAsync("span", { class: {
|
|
16537
16506
|
label: true,
|
|
16538
|
-
"label--icon": !!
|
|
16507
|
+
"label--icon": !!selectedItem?.icon
|
|
16539
16508
|
}, key: "label" }, selectedItem.textLabel)), hAsync("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-label": getLabelText(this), class: {
|
|
16540
16509
|
input: true,
|
|
16541
16510
|
"input--single": true,
|
|
@@ -16562,7 +16531,7 @@ class Combobox {
|
|
|
16562
16531
|
renderIconStart() {
|
|
16563
16532
|
const { selectedItems, placeholderIcon, selectionMode } = this;
|
|
16564
16533
|
const selectedItem = selectedItems[0];
|
|
16565
|
-
const selectedIcon = selectedItem
|
|
16534
|
+
const selectedIcon = selectedItem?.icon;
|
|
16566
16535
|
const singleSelectionMode = selectionMode === "single";
|
|
16567
16536
|
const iconAtStart = !this.open && selectedItem
|
|
16568
16537
|
? !!selectedIcon && singleSelectionMode
|
|
@@ -17177,16 +17146,15 @@ class DatePicker {
|
|
|
17177
17146
|
* Reset active date and close
|
|
17178
17147
|
*/
|
|
17179
17148
|
this.reset = () => {
|
|
17180
|
-
var _a, _b, _c, _d, _e, _f;
|
|
17181
17149
|
if (!Array.isArray(this.valueAsDate) &&
|
|
17182
17150
|
this.valueAsDate &&
|
|
17183
|
-
|
|
17151
|
+
this.valueAsDate?.getTime() !== this.activeDate?.getTime()) {
|
|
17184
17152
|
this.activeDate = new Date(this.valueAsDate);
|
|
17185
17153
|
}
|
|
17186
|
-
if (this.startAsDate &&
|
|
17154
|
+
if (this.startAsDate && this.startAsDate?.getTime() !== this.activeStartDate?.getTime()) {
|
|
17187
17155
|
this.activeStartDate = new Date(this.startAsDate);
|
|
17188
17156
|
}
|
|
17189
|
-
if (this.endAsDate &&
|
|
17157
|
+
if (this.endAsDate && this.endAsDate?.getTime() !== this.activeEndDate?.getTime()) {
|
|
17190
17158
|
this.activeEndDate = new Date(this.endAsDate);
|
|
17191
17159
|
}
|
|
17192
17160
|
};
|
|
@@ -17346,7 +17314,6 @@ class DatePicker {
|
|
|
17346
17314
|
this.onMaxChanged(this.max);
|
|
17347
17315
|
}
|
|
17348
17316
|
render() {
|
|
17349
|
-
var _a;
|
|
17350
17317
|
const date = dateFromRange(this.range && Array.isArray(this.valueAsDate) ? this.valueAsDate[0] : this.valueAsDate, this.minAsDate, this.maxAsDate);
|
|
17351
17318
|
let activeDate = this.getActiveDate(date, this.minAsDate, this.maxAsDate);
|
|
17352
17319
|
const endDate = this.range && Array.isArray(this.valueAsDate)
|
|
@@ -17354,7 +17321,7 @@ class DatePicker {
|
|
|
17354
17321
|
: null;
|
|
17355
17322
|
const activeEndDate = this.getActiveEndDate(endDate, this.minAsDate, this.maxAsDate);
|
|
17356
17323
|
if ((this.activeRange === "end" ||
|
|
17357
|
-
(
|
|
17324
|
+
(this.hoverRange?.focused === "end" && (!this.proximitySelectionDisabled || endDate))) &&
|
|
17358
17325
|
activeEndDate) {
|
|
17359
17326
|
activeDate = activeEndDate;
|
|
17360
17327
|
}
|
|
@@ -17869,10 +17836,9 @@ class DatePickerMonth {
|
|
|
17869
17836
|
* @param ref
|
|
17870
17837
|
*/
|
|
17871
17838
|
renderDateDay(active, day, date, currentMonth, ref) {
|
|
17872
|
-
var _a;
|
|
17873
17839
|
const isFocusedOnStart = this.isFocusedOnStart();
|
|
17874
17840
|
const isHoverInRange = this.isHoverInRange() ||
|
|
17875
|
-
(!this.endDate && this.hoverRange && sameDate(
|
|
17841
|
+
(!this.endDate && this.hoverRange && sameDate(this.hoverRange?.end, this.startDate));
|
|
17876
17842
|
return (hAsync("calcite-date-picker-day", { active: active, class: {
|
|
17877
17843
|
"hover--inside-range": this.startDate && isHoverInRange,
|
|
17878
17844
|
"hover--outside-range": this.startDate && !isHoverInRange,
|
|
@@ -17881,13 +17847,12 @@ class DatePickerMonth {
|
|
|
17881
17847
|
}, currentMonth: currentMonth, day: day, disabled: !inRange(date, this.min, this.max), endOfRange: this.isEndOfRange(date), highlighted: this.betweenSelectedRange(date), key: date.toDateString(), onCalciteDaySelect: this.daySelect, onCalciteInternalDayHover: this.dayHover, range: !!this.startDate && !!this.endDate && !sameDate(this.startDate, this.endDate), rangeHover: this.isRangeHover(date), ref: (el) => {
|
|
17882
17848
|
// when moving via keyboard, focus must be updated on active date
|
|
17883
17849
|
if (ref && active && this.activeFocus) {
|
|
17884
|
-
el
|
|
17850
|
+
el?.focus();
|
|
17885
17851
|
}
|
|
17886
17852
|
}, scale: this.scale, selected: this.isSelected(date), startOfRange: this.isStartOfRange(date), value: date }));
|
|
17887
17853
|
}
|
|
17888
17854
|
isFocusedOnStart() {
|
|
17889
|
-
|
|
17890
|
-
return ((_a = this.hoverRange) === null || _a === void 0 ? void 0 : _a.focused) === "start";
|
|
17855
|
+
return this.hoverRange?.focused === "start";
|
|
17891
17856
|
}
|
|
17892
17857
|
isHoverInRange() {
|
|
17893
17858
|
if (!this.hoverRange) {
|
|
@@ -18030,7 +17995,6 @@ class DatePickerMonthHeader {
|
|
|
18030
17995
|
return hAsync("div", { class: "header" }, this.renderContent());
|
|
18031
17996
|
}
|
|
18032
17997
|
renderContent() {
|
|
18033
|
-
var _a;
|
|
18034
17998
|
if (!this.activeDate || !this.localeData) {
|
|
18035
17999
|
return null;
|
|
18036
18000
|
}
|
|
@@ -18049,7 +18013,7 @@ class DatePickerMonthHeader {
|
|
|
18049
18013
|
const iconScale = this.scale === "l" ? "m" : "s";
|
|
18050
18014
|
const order = getOrder(unitOrder);
|
|
18051
18015
|
const reverse = order.indexOf("y") < order.indexOf("m");
|
|
18052
|
-
const suffix =
|
|
18016
|
+
const suffix = this.localeData.year?.suffix;
|
|
18053
18017
|
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": this.intlPrevMonth, class: "chevron", href: "#", onClick: this.prevMonthClick, onKeyDown: this.prevMonthKeydown, role: "button", tabindex: this.prevMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: "chevron-left", scale: iconScale })), hAsync("div", { class: { text: true, "text--reverse": reverse } }, hAsync(Heading, { class: "month", level: this.headingLevel }, localizedMonth), hAsync("span", { class: "year-wrap" }, hAsync("input", { "aria-label": this.intlYear, class: {
|
|
18054
18018
|
year: true,
|
|
18055
18019
|
"year--suffix": !!suffix
|
|
@@ -18189,7 +18153,7 @@ class Dropdown {
|
|
|
18189
18153
|
};
|
|
18190
18154
|
this.updateItems = () => {
|
|
18191
18155
|
this.items = this.groups
|
|
18192
|
-
.map((group) => Array.from(group
|
|
18156
|
+
.map((group) => Array.from(group?.querySelectorAll("calcite-dropdown-item")))
|
|
18193
18157
|
.reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
|
|
18194
18158
|
this.updateSelectedItems();
|
|
18195
18159
|
this.reposition(true);
|
|
@@ -18197,7 +18161,7 @@ class Dropdown {
|
|
|
18197
18161
|
this.updateGroups = (event) => {
|
|
18198
18162
|
const groups = event.target
|
|
18199
18163
|
.assignedElements({ flatten: true })
|
|
18200
|
-
.filter((el) => el
|
|
18164
|
+
.filter((el) => el?.matches("calcite-dropdown-group"));
|
|
18201
18165
|
this.groups = groups;
|
|
18202
18166
|
this.updateItems();
|
|
18203
18167
|
};
|
|
@@ -18214,7 +18178,7 @@ class Dropdown {
|
|
|
18214
18178
|
};
|
|
18215
18179
|
this.setDropdownWidth = () => {
|
|
18216
18180
|
const { referenceEl, scrollerEl } = this;
|
|
18217
|
-
const referenceElWidth = referenceEl
|
|
18181
|
+
const referenceElWidth = referenceEl?.clientWidth;
|
|
18218
18182
|
if (!referenceElWidth || !scrollerEl) {
|
|
18219
18183
|
return;
|
|
18220
18184
|
}
|
|
@@ -18339,8 +18303,7 @@ class Dropdown {
|
|
|
18339
18303
|
//
|
|
18340
18304
|
//--------------------------------------------------------------------------
|
|
18341
18305
|
connectedCallback() {
|
|
18342
|
-
|
|
18343
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
18306
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
18344
18307
|
this.setFilteredPlacements();
|
|
18345
18308
|
this.reposition(true);
|
|
18346
18309
|
if (this.open) {
|
|
@@ -18355,10 +18318,9 @@ class Dropdown {
|
|
|
18355
18318
|
updateHostInteraction(this);
|
|
18356
18319
|
}
|
|
18357
18320
|
disconnectedCallback() {
|
|
18358
|
-
|
|
18359
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
18321
|
+
this.mutationObserver?.disconnect();
|
|
18360
18322
|
disconnectFloatingUI(this, this.referenceEl, this.floatingEl);
|
|
18361
|
-
|
|
18323
|
+
this.resizeObserver?.disconnect();
|
|
18362
18324
|
disconnectOpenCloseComponent(this);
|
|
18363
18325
|
}
|
|
18364
18326
|
render() {
|
|
@@ -18684,9 +18646,8 @@ class DropdownItem {
|
|
|
18684
18646
|
//--------------------------------------------------------------------------
|
|
18685
18647
|
/** Sets focus on the component. */
|
|
18686
18648
|
async setFocus() {
|
|
18687
|
-
var _a;
|
|
18688
18649
|
await componentLoaded(this);
|
|
18689
|
-
|
|
18650
|
+
this.el?.focus();
|
|
18690
18651
|
}
|
|
18691
18652
|
//--------------------------------------------------------------------------
|
|
18692
18653
|
//
|
|
@@ -19129,13 +19090,11 @@ class Flow {
|
|
|
19129
19090
|
//
|
|
19130
19091
|
// --------------------------------------------------------------------------
|
|
19131
19092
|
connectedCallback() {
|
|
19132
|
-
|
|
19133
|
-
(_a = this.itemMutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
19093
|
+
this.itemMutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
19134
19094
|
this.updateFlowProps();
|
|
19135
19095
|
}
|
|
19136
19096
|
disconnectedCallback() {
|
|
19137
|
-
|
|
19138
|
-
(_a = this.itemMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
19097
|
+
this.itemMutationObserver?.disconnect();
|
|
19139
19098
|
}
|
|
19140
19099
|
// --------------------------------------------------------------------------
|
|
19141
19100
|
//
|
|
@@ -19324,7 +19283,7 @@ class FlowItem {
|
|
|
19324
19283
|
backButtonEl.setFocus();
|
|
19325
19284
|
return;
|
|
19326
19285
|
}
|
|
19327
|
-
containerEl
|
|
19286
|
+
containerEl?.setFocus();
|
|
19328
19287
|
}
|
|
19329
19288
|
/**
|
|
19330
19289
|
* Scrolls the component's content to a specified set of coordinates.
|
|
@@ -19338,8 +19297,7 @@ class FlowItem {
|
|
|
19338
19297
|
* @param options
|
|
19339
19298
|
*/
|
|
19340
19299
|
async scrollContentTo(options) {
|
|
19341
|
-
|
|
19342
|
-
await ((_a = this.containerEl) === null || _a === void 0 ? void 0 : _a.scrollContentTo(options));
|
|
19300
|
+
await this.containerEl?.scrollContentTo(options);
|
|
19343
19301
|
}
|
|
19344
19302
|
// --------------------------------------------------------------------------
|
|
19345
19303
|
//
|
|
@@ -19542,12 +19500,10 @@ class Graph {
|
|
|
19542
19500
|
//
|
|
19543
19501
|
//--------------------------------------------------------------------------
|
|
19544
19502
|
connectedCallback() {
|
|
19545
|
-
|
|
19546
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
|
|
19503
|
+
this.resizeObserver?.observe(this.el);
|
|
19547
19504
|
}
|
|
19548
19505
|
disconnectedCallback() {
|
|
19549
|
-
|
|
19550
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
19506
|
+
this.resizeObserver?.disconnect();
|
|
19551
19507
|
}
|
|
19552
19508
|
render() {
|
|
19553
19509
|
const { data, colorStops, el, highlightMax, highlightMin, min, max } = this;
|
|
@@ -19677,9 +19633,8 @@ class Handle {
|
|
|
19677
19633
|
// --------------------------------------------------------------------------
|
|
19678
19634
|
/** Sets focus on the component. */
|
|
19679
19635
|
async setFocus() {
|
|
19680
|
-
var _a;
|
|
19681
19636
|
await componentLoaded(this);
|
|
19682
|
-
|
|
19637
|
+
this.handleButton?.focus();
|
|
19683
19638
|
}
|
|
19684
19639
|
// --------------------------------------------------------------------------
|
|
19685
19640
|
//
|
|
@@ -19744,8 +19699,7 @@ class Icon {
|
|
|
19744
19699
|
});
|
|
19745
19700
|
}
|
|
19746
19701
|
disconnectedCallback() {
|
|
19747
|
-
|
|
19748
|
-
(_a = this.intersectionObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
19702
|
+
this.intersectionObserver?.disconnect();
|
|
19749
19703
|
this.intersectionObserver = null;
|
|
19750
19704
|
}
|
|
19751
19705
|
async componentWillLoad() {
|
|
@@ -19832,10 +19786,9 @@ class InlineEditable {
|
|
|
19832
19786
|
this.calciteInternalInlineEditableEnableEditingChange = createEvent(this, "calciteInternalInlineEditableEnableEditingChange", 6);
|
|
19833
19787
|
this.mutationObserver = createObserver();
|
|
19834
19788
|
this.enableEditing = () => {
|
|
19835
|
-
|
|
19836
|
-
this.valuePriorToEditing = (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.value;
|
|
19789
|
+
this.valuePriorToEditing = this.inputElement?.value;
|
|
19837
19790
|
this.editingEnabled = true;
|
|
19838
|
-
|
|
19791
|
+
this.inputElement?.setFocus();
|
|
19839
19792
|
this.calciteInternalInlineEditableEnableEditingChange.emit();
|
|
19840
19793
|
};
|
|
19841
19794
|
this.disableEditing = () => {
|
|
@@ -19852,7 +19805,6 @@ class InlineEditable {
|
|
|
19852
19805
|
}
|
|
19853
19806
|
};
|
|
19854
19807
|
this.escapeKeyHandler = async (event) => {
|
|
19855
|
-
var _a;
|
|
19856
19808
|
if (event.defaultPrevented) {
|
|
19857
19809
|
return;
|
|
19858
19810
|
}
|
|
@@ -19867,7 +19819,7 @@ class InlineEditable {
|
|
|
19867
19819
|
}
|
|
19868
19820
|
if (!!event.shiftKey && event.target === this.cancelEditingButton) {
|
|
19869
19821
|
event.preventDefault();
|
|
19870
|
-
|
|
19822
|
+
this.inputElement?.setFocus();
|
|
19871
19823
|
}
|
|
19872
19824
|
}
|
|
19873
19825
|
};
|
|
@@ -19932,9 +19884,8 @@ class InlineEditable {
|
|
|
19932
19884
|
//
|
|
19933
19885
|
//--------------------------------------------------------------------------
|
|
19934
19886
|
connectedCallback() {
|
|
19935
|
-
var _a;
|
|
19936
19887
|
connectLabel(this);
|
|
19937
|
-
|
|
19888
|
+
this.mutationObserver?.observe(this.el, { childList: true });
|
|
19938
19889
|
this.mutationObserverCallback();
|
|
19939
19890
|
}
|
|
19940
19891
|
componentWillLoad() {
|
|
@@ -19944,9 +19895,8 @@ class InlineEditable {
|
|
|
19944
19895
|
setComponentLoaded(this);
|
|
19945
19896
|
}
|
|
19946
19897
|
disconnectedCallback() {
|
|
19947
|
-
var _a;
|
|
19948
19898
|
disconnectLabel(this);
|
|
19949
|
-
|
|
19899
|
+
this.mutationObserver?.disconnect();
|
|
19950
19900
|
}
|
|
19951
19901
|
componentDidRender() {
|
|
19952
19902
|
updateHostInteraction(this);
|
|
@@ -19976,13 +19926,12 @@ class InlineEditable {
|
|
|
19976
19926
|
//
|
|
19977
19927
|
//--------------------------------------------------------------------------
|
|
19978
19928
|
async setFocus() {
|
|
19979
|
-
var _a, _b;
|
|
19980
19929
|
await componentLoaded(this);
|
|
19981
19930
|
if (this.editingEnabled) {
|
|
19982
|
-
|
|
19931
|
+
this.inputElement?.setFocus();
|
|
19983
19932
|
}
|
|
19984
19933
|
else {
|
|
19985
|
-
|
|
19934
|
+
this.enableEditingButton?.setFocus();
|
|
19986
19935
|
}
|
|
19987
19936
|
}
|
|
19988
19937
|
//--------------------------------------------------------------------------
|
|
@@ -19991,10 +19940,9 @@ class InlineEditable {
|
|
|
19991
19940
|
//
|
|
19992
19941
|
//--------------------------------------------------------------------------
|
|
19993
19942
|
mutationObserverCallback() {
|
|
19994
|
-
var _a;
|
|
19995
19943
|
this.updateSlottedInput();
|
|
19996
19944
|
this.scale =
|
|
19997
|
-
this.scale ||
|
|
19945
|
+
this.scale || this.inputElement?.scale || getElementProp(this.el, "scale", undefined);
|
|
19998
19946
|
}
|
|
19999
19947
|
onLabelClick() {
|
|
20000
19948
|
this.setFocus();
|
|
@@ -20423,13 +20371,11 @@ class Input {
|
|
|
20423
20371
|
}
|
|
20424
20372
|
/** watcher to update number-to-string for max */
|
|
20425
20373
|
maxWatcher() {
|
|
20426
|
-
|
|
20427
|
-
this.maxString = ((_a = this.max) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
20374
|
+
this.maxString = this.max?.toString() || null;
|
|
20428
20375
|
}
|
|
20429
20376
|
/** watcher to update number-to-string for min */
|
|
20430
20377
|
minWatcher() {
|
|
20431
|
-
|
|
20432
|
-
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
20378
|
+
this.minString = this.min?.toString() || null;
|
|
20433
20379
|
}
|
|
20434
20380
|
valueWatcher(newValue, previousValue) {
|
|
20435
20381
|
if (!this.userChangedValue) {
|
|
@@ -20463,7 +20409,6 @@ class Input {
|
|
|
20463
20409
|
//
|
|
20464
20410
|
//--------------------------------------------------------------------------
|
|
20465
20411
|
connectedCallback() {
|
|
20466
|
-
var _a;
|
|
20467
20412
|
connectLocalized(this);
|
|
20468
20413
|
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
20469
20414
|
this.status = getElementProp(this.el, "status", this.status);
|
|
@@ -20482,24 +20427,22 @@ class Input {
|
|
|
20482
20427
|
value: isValidNumber(this.value) ? this.value : ""
|
|
20483
20428
|
});
|
|
20484
20429
|
}
|
|
20485
|
-
|
|
20430
|
+
this.mutationObserver?.observe(this.el, { childList: true });
|
|
20486
20431
|
this.setDisabledAction();
|
|
20487
20432
|
this.el.addEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
|
|
20488
20433
|
}
|
|
20489
20434
|
disconnectedCallback() {
|
|
20490
|
-
var _a;
|
|
20491
20435
|
disconnectLabel(this);
|
|
20492
20436
|
disconnectForm(this);
|
|
20493
20437
|
disconnectLocalized(this);
|
|
20494
|
-
|
|
20438
|
+
this.mutationObserver?.disconnect();
|
|
20495
20439
|
this.el.removeEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
|
|
20496
20440
|
}
|
|
20497
20441
|
componentWillLoad() {
|
|
20498
|
-
var _a, _b;
|
|
20499
20442
|
setUpLoadableComponent(this);
|
|
20500
20443
|
this.childElType = this.type === "textarea" ? "textarea" : "input";
|
|
20501
|
-
this.maxString =
|
|
20502
|
-
this.minString =
|
|
20444
|
+
this.maxString = this.max?.toString();
|
|
20445
|
+
this.minString = this.min?.toString();
|
|
20503
20446
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
20504
20447
|
}
|
|
20505
20448
|
componentDidLoad() {
|
|
@@ -20525,23 +20468,21 @@ class Input {
|
|
|
20525
20468
|
//--------------------------------------------------------------------------
|
|
20526
20469
|
/** Sets focus on the component. */
|
|
20527
20470
|
async setFocus() {
|
|
20528
|
-
var _a, _b;
|
|
20529
20471
|
await componentLoaded(this);
|
|
20530
20472
|
if (this.type === "number") {
|
|
20531
|
-
|
|
20473
|
+
this.childNumberEl?.focus();
|
|
20532
20474
|
}
|
|
20533
20475
|
else {
|
|
20534
|
-
|
|
20476
|
+
this.childEl?.focus();
|
|
20535
20477
|
}
|
|
20536
20478
|
}
|
|
20537
20479
|
/** Selects all text of the component's `value`. */
|
|
20538
20480
|
async selectText() {
|
|
20539
|
-
var _a, _b;
|
|
20540
20481
|
if (this.type === "number") {
|
|
20541
|
-
|
|
20482
|
+
this.childNumberEl?.select();
|
|
20542
20483
|
}
|
|
20543
20484
|
else {
|
|
20544
|
-
|
|
20485
|
+
this.childEl?.select();
|
|
20545
20486
|
}
|
|
20546
20487
|
}
|
|
20547
20488
|
onLabelClick() {
|
|
@@ -20573,11 +20514,10 @@ class Input {
|
|
|
20573
20514
|
});
|
|
20574
20515
|
}
|
|
20575
20516
|
syncHiddenFormInput(input) {
|
|
20576
|
-
var _a, _b, _c, _d;
|
|
20577
20517
|
if (this.type === "number") {
|
|
20578
20518
|
input.type = "number";
|
|
20579
|
-
input.min =
|
|
20580
|
-
input.max =
|
|
20519
|
+
input.min = this.min?.toString(10) ?? "";
|
|
20520
|
+
input.max = this.max?.toString(10) ?? "";
|
|
20581
20521
|
}
|
|
20582
20522
|
else if (this.type === "text") {
|
|
20583
20523
|
input.type = "text";
|
|
@@ -20769,15 +20709,14 @@ class InputDatePicker {
|
|
|
20769
20709
|
this.open = false;
|
|
20770
20710
|
};
|
|
20771
20711
|
this.keyDownHandler = (event) => {
|
|
20772
|
-
var _a, _b;
|
|
20773
20712
|
const { defaultPrevented, key } = event;
|
|
20774
20713
|
if (key === "Enter" && !defaultPrevented) {
|
|
20775
20714
|
this.commitValue();
|
|
20776
20715
|
if (this.shouldFocusRangeEnd()) {
|
|
20777
|
-
|
|
20716
|
+
this.endInput?.setFocus();
|
|
20778
20717
|
}
|
|
20779
20718
|
else if (this.shouldFocusRangeStart()) {
|
|
20780
|
-
|
|
20719
|
+
this.startInput?.setFocus();
|
|
20781
20720
|
}
|
|
20782
20721
|
if (submitForm(this)) {
|
|
20783
20722
|
event.preventDefault();
|
|
@@ -20829,7 +20768,6 @@ class InputDatePicker {
|
|
|
20829
20768
|
this.localizeInputValues();
|
|
20830
20769
|
};
|
|
20831
20770
|
this.handleDateRangeChange = (event) => {
|
|
20832
|
-
var _a, _b;
|
|
20833
20771
|
if (!this.range || !event.detail) {
|
|
20834
20772
|
return;
|
|
20835
20773
|
}
|
|
@@ -20838,10 +20776,10 @@ class InputDatePicker {
|
|
|
20838
20776
|
this.setRangeValue([startDate, endDate]);
|
|
20839
20777
|
this.localizeInputValues();
|
|
20840
20778
|
if (this.shouldFocusRangeEnd()) {
|
|
20841
|
-
|
|
20779
|
+
this.endInput?.setFocus();
|
|
20842
20780
|
}
|
|
20843
20781
|
else if (this.shouldFocusRangeStart()) {
|
|
20844
|
-
|
|
20782
|
+
this.startInput?.setFocus();
|
|
20845
20783
|
}
|
|
20846
20784
|
};
|
|
20847
20785
|
this.setInputValue = (newValue, input = "start") => {
|
|
@@ -21048,9 +20986,8 @@ class InputDatePicker {
|
|
|
21048
20986
|
// --------------------------------------------------------------------------
|
|
21049
20987
|
/** Sets focus on the component. */
|
|
21050
20988
|
async setFocus() {
|
|
21051
|
-
var _a;
|
|
21052
20989
|
await componentLoaded(this);
|
|
21053
|
-
|
|
20990
|
+
this.startInput?.setFocus();
|
|
21054
20991
|
}
|
|
21055
20992
|
/**
|
|
21056
20993
|
* Updates the position of the component.
|
|
@@ -21142,14 +21079,13 @@ class InputDatePicker {
|
|
|
21142
21079
|
updateHostInteraction(this);
|
|
21143
21080
|
}
|
|
21144
21081
|
render() {
|
|
21145
|
-
var _a, _b;
|
|
21146
21082
|
const { disabled, effectiveLocale, numberingSystem, readOnly } = this;
|
|
21147
21083
|
numberStringFormatter.numberFormatOptions = {
|
|
21148
21084
|
numberingSystem,
|
|
21149
21085
|
locale: effectiveLocale,
|
|
21150
21086
|
useGrouping: false
|
|
21151
21087
|
};
|
|
21152
|
-
return (hAsync(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, role: "application" }, this.localeData && (hAsync("div", { "aria-expanded": toAriaBoolean(this.open), class: "input-container", role: "application" }, hAsync("div", { class: "input-wrapper", ref: this.setStartWrapper }, hAsync("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), lang: effectiveLocale, "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.startInputFocus, placeholder:
|
|
21088
|
+
return (hAsync(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, role: "application" }, this.localeData && (hAsync("div", { "aria-expanded": toAriaBoolean(this.open), class: "input-container", role: "application" }, hAsync("div", { class: "input-wrapper", ref: this.setStartWrapper }, hAsync("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), lang: effectiveLocale, "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.startInputFocus, placeholder: this.localeData?.placeholder, readOnly: readOnly, ref: this.setStartInput, scale: this.scale, type: "text" })), hAsync("div", { "aria-hidden": toAriaBoolean(!this.open), class: {
|
|
21153
21089
|
[CSS$u.menu]: true,
|
|
21154
21090
|
[CSS$u.menuActive]: this.open
|
|
21155
21091
|
}, ref: this.setFloatingEl }, hAsync("div", { class: {
|
|
@@ -21160,7 +21096,7 @@ class InputDatePicker {
|
|
|
21160
21096
|
}, ref: this.setTransitionEl }, hAsync("calcite-date-picker", { activeDate: this.datePickerActiveDate, activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, lang: effectiveLocale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, numberingSystem: numberingSystem, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (hAsync("div", { class: "horizontal-arrow-container" }, hAsync("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (hAsync("div", { class: "vertical-arrow-container" }, hAsync("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (hAsync("div", { class: "input-wrapper", ref: this.setEndWrapper }, hAsync("calcite-input", { class: {
|
|
21161
21097
|
input: true,
|
|
21162
21098
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
21163
|
-
}, disabled: disabled, icon: "calendar", lang: effectiveLocale, "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.endInputFocus, placeholder:
|
|
21099
|
+
}, disabled: disabled, icon: "calendar", lang: effectiveLocale, "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.endInputFocus, placeholder: this.localeData?.placeholder, readOnly: readOnly, ref: this.setEndInput, scale: this.scale, type: "text" }))))), hAsync(HiddenFormInputSlot, { component: this })));
|
|
21164
21100
|
}
|
|
21165
21101
|
setReferenceEl() {
|
|
21166
21102
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -21726,13 +21662,11 @@ class InputNumber {
|
|
|
21726
21662
|
}
|
|
21727
21663
|
/** watcher to update number-to-string for max */
|
|
21728
21664
|
maxWatcher() {
|
|
21729
|
-
|
|
21730
|
-
this.maxString = ((_a = this.max) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
21665
|
+
this.maxString = this.max?.toString() || null;
|
|
21731
21666
|
}
|
|
21732
21667
|
/** watcher to update number-to-string for min */
|
|
21733
21668
|
minWatcher() {
|
|
21734
|
-
|
|
21735
|
-
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
21669
|
+
this.minString = this.min?.toString() || null;
|
|
21736
21670
|
}
|
|
21737
21671
|
valueWatcher(newValue, previousValue) {
|
|
21738
21672
|
if (!this.userChangedValue) {
|
|
@@ -21761,7 +21695,6 @@ class InputNumber {
|
|
|
21761
21695
|
//
|
|
21762
21696
|
//--------------------------------------------------------------------------
|
|
21763
21697
|
connectedCallback() {
|
|
21764
|
-
var _a;
|
|
21765
21698
|
connectLocalized(this);
|
|
21766
21699
|
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
21767
21700
|
this.status = getElementProp(this.el, "status", this.status);
|
|
@@ -21778,7 +21711,7 @@ class InputNumber {
|
|
|
21778
21711
|
origin: "connected",
|
|
21779
21712
|
value: isValidNumber(this.value) ? this.value : ""
|
|
21780
21713
|
});
|
|
21781
|
-
|
|
21714
|
+
this.mutationObserver?.observe(this.el, { childList: true });
|
|
21782
21715
|
this.setDisabledAction();
|
|
21783
21716
|
this.el.addEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
|
|
21784
21717
|
}
|
|
@@ -21786,18 +21719,16 @@ class InputNumber {
|
|
|
21786
21719
|
setComponentLoaded(this);
|
|
21787
21720
|
}
|
|
21788
21721
|
disconnectedCallback() {
|
|
21789
|
-
var _a;
|
|
21790
21722
|
disconnectLabel(this);
|
|
21791
21723
|
disconnectForm(this);
|
|
21792
21724
|
disconnectLocalized(this);
|
|
21793
|
-
|
|
21725
|
+
this.mutationObserver?.disconnect();
|
|
21794
21726
|
this.el.removeEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
|
|
21795
21727
|
}
|
|
21796
21728
|
componentWillLoad() {
|
|
21797
|
-
var _a, _b;
|
|
21798
21729
|
setUpLoadableComponent(this);
|
|
21799
|
-
this.maxString =
|
|
21800
|
-
this.minString =
|
|
21730
|
+
this.maxString = this.max?.toString();
|
|
21731
|
+
this.minString = this.min?.toString();
|
|
21801
21732
|
this.requestedIcon = setRequestedIcon({}, this.icon, "number");
|
|
21802
21733
|
}
|
|
21803
21734
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
@@ -21820,14 +21751,12 @@ class InputNumber {
|
|
|
21820
21751
|
//--------------------------------------------------------------------------
|
|
21821
21752
|
/** Sets focus on the component. */
|
|
21822
21753
|
async setFocus() {
|
|
21823
|
-
var _a;
|
|
21824
21754
|
await componentLoaded(this);
|
|
21825
|
-
|
|
21755
|
+
this.childNumberEl?.focus();
|
|
21826
21756
|
}
|
|
21827
21757
|
/** Selects all text of the component's `value`. */
|
|
21828
21758
|
async selectText() {
|
|
21829
|
-
|
|
21830
|
-
(_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.select();
|
|
21759
|
+
this.childNumberEl?.select();
|
|
21831
21760
|
}
|
|
21832
21761
|
onLabelClick() {
|
|
21833
21762
|
this.setFocus();
|
|
@@ -21858,10 +21787,9 @@ class InputNumber {
|
|
|
21858
21787
|
});
|
|
21859
21788
|
}
|
|
21860
21789
|
syncHiddenFormInput(input) {
|
|
21861
|
-
var _a, _b, _c, _d;
|
|
21862
21790
|
input.type = "number";
|
|
21863
|
-
input.min =
|
|
21864
|
-
input.max =
|
|
21791
|
+
input.min = this.min?.toString(10) ?? "";
|
|
21792
|
+
input.max = this.max?.toString(10) ?? "";
|
|
21865
21793
|
}
|
|
21866
21794
|
setDisabledAction() {
|
|
21867
21795
|
const slottedActionEl = getSlotted(this.el, "action");
|
|
@@ -22163,7 +22091,6 @@ class InputText {
|
|
|
22163
22091
|
//
|
|
22164
22092
|
//--------------------------------------------------------------------------
|
|
22165
22093
|
connectedCallback() {
|
|
22166
|
-
var _a;
|
|
22167
22094
|
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
22168
22095
|
this.status = getElementProp(this.el, "status", this.status);
|
|
22169
22096
|
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
@@ -22174,15 +22101,14 @@ class InputText {
|
|
|
22174
22101
|
this.setPreviousValue(this.value);
|
|
22175
22102
|
connectLabel(this);
|
|
22176
22103
|
connectForm(this);
|
|
22177
|
-
|
|
22104
|
+
this.mutationObserver?.observe(this.el, { childList: true });
|
|
22178
22105
|
this.setDisabledAction();
|
|
22179
22106
|
this.el.addEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
|
|
22180
22107
|
}
|
|
22181
22108
|
disconnectedCallback() {
|
|
22182
|
-
var _a;
|
|
22183
22109
|
disconnectLabel(this);
|
|
22184
22110
|
disconnectForm(this);
|
|
22185
|
-
|
|
22111
|
+
this.mutationObserver?.disconnect();
|
|
22186
22112
|
this.el.removeEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
|
|
22187
22113
|
}
|
|
22188
22114
|
componentWillLoad() {
|
|
@@ -22202,14 +22128,12 @@ class InputText {
|
|
|
22202
22128
|
//--------------------------------------------------------------------------
|
|
22203
22129
|
/** Sets focus on the component. */
|
|
22204
22130
|
async setFocus() {
|
|
22205
|
-
var _a;
|
|
22206
22131
|
await componentLoaded(this);
|
|
22207
|
-
|
|
22132
|
+
this.childEl?.focus();
|
|
22208
22133
|
}
|
|
22209
22134
|
/** Selects all text of the component's `value`. */
|
|
22210
22135
|
async selectText() {
|
|
22211
|
-
|
|
22212
|
-
(_a = this.childEl) === null || _a === void 0 ? void 0 : _a.select();
|
|
22136
|
+
this.childEl?.select();
|
|
22213
22137
|
}
|
|
22214
22138
|
onLabelClick() {
|
|
22215
22139
|
this.setFocus();
|
|
@@ -22341,7 +22265,6 @@ function getLocaleHourCycle(locale, numberingSystem) {
|
|
|
22341
22265
|
return getLocalizedTimePart("meridiem", parts) ? "12" : "24";
|
|
22342
22266
|
}
|
|
22343
22267
|
function getLocalizedTimePart(part, parts) {
|
|
22344
|
-
var _a, _b, _c, _d;
|
|
22345
22268
|
if (!part || !parts) {
|
|
22346
22269
|
return null;
|
|
22347
22270
|
}
|
|
@@ -22350,7 +22273,7 @@ function getLocalizedTimePart(part, parts) {
|
|
|
22350
22273
|
const minuteIndex = parts.indexOf(parts.find(({ type }) => type === "minute"));
|
|
22351
22274
|
const hourSuffix = parts[hourIndex + 1];
|
|
22352
22275
|
return hourSuffix && hourSuffix.type === "literal" && minuteIndex - hourIndex === 2
|
|
22353
|
-
?
|
|
22276
|
+
? hourSuffix.value?.trim() || null
|
|
22354
22277
|
: null;
|
|
22355
22278
|
}
|
|
22356
22279
|
if (part === "minuteSuffix") {
|
|
@@ -22358,15 +22281,15 @@ function getLocalizedTimePart(part, parts) {
|
|
|
22358
22281
|
const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
|
|
22359
22282
|
const minuteSuffix = parts[minuteIndex + 1];
|
|
22360
22283
|
return minuteSuffix && minuteSuffix.type === "literal" && secondIndex - minuteIndex === 2
|
|
22361
|
-
?
|
|
22284
|
+
? minuteSuffix.value?.trim() || null
|
|
22362
22285
|
: null;
|
|
22363
22286
|
}
|
|
22364
22287
|
if (part === "secondSuffix") {
|
|
22365
22288
|
const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
|
|
22366
22289
|
const secondSuffix = parts[secondIndex + 1];
|
|
22367
|
-
return secondSuffix && secondSuffix.type === "literal" ?
|
|
22290
|
+
return secondSuffix && secondSuffix.type === "literal" ? secondSuffix.value?.trim() || null : null;
|
|
22368
22291
|
}
|
|
22369
|
-
return
|
|
22292
|
+
return parts.find(({ type }) => (part == "meridiem" ? type === "dayPeriod" : type === part))?.value || null;
|
|
22370
22293
|
}
|
|
22371
22294
|
function getMeridiem(hour) {
|
|
22372
22295
|
if (!isValidNumber(hour)) {
|
|
@@ -22425,7 +22348,7 @@ function localizeTimeString({ value, locale, numberingSystem, includeSeconds = t
|
|
|
22425
22348
|
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
22426
22349
|
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
22427
22350
|
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds);
|
|
22428
|
-
return
|
|
22351
|
+
return formatter?.format(dateFromTimeString) || null;
|
|
22429
22352
|
}
|
|
22430
22353
|
function localizeTimeStringToParts({ value, locale, numberingSystem }) {
|
|
22431
22354
|
if (!isValidTime(value)) {
|
|
@@ -22708,9 +22631,8 @@ class InputTimePicker {
|
|
|
22708
22631
|
// --------------------------------------------------------------------------
|
|
22709
22632
|
/** Sets focus on the component. */
|
|
22710
22633
|
async setFocus() {
|
|
22711
|
-
var _a;
|
|
22712
22634
|
await componentLoaded(this);
|
|
22713
|
-
|
|
22635
|
+
this.calciteInputEl?.setFocus();
|
|
22714
22636
|
}
|
|
22715
22637
|
/**
|
|
22716
22638
|
* Updates the position of the component.
|
|
@@ -22718,8 +22640,7 @@ class InputTimePicker {
|
|
|
22718
22640
|
* @param delayed
|
|
22719
22641
|
*/
|
|
22720
22642
|
async reposition(delayed = false) {
|
|
22721
|
-
|
|
22722
|
-
(_a = this.popoverEl) === null || _a === void 0 ? void 0 : _a.reposition(delayed);
|
|
22643
|
+
this.popoverEl?.reposition(delayed);
|
|
22723
22644
|
}
|
|
22724
22645
|
onLabelClick() {
|
|
22725
22646
|
this.setFocus();
|
|
@@ -23005,10 +22926,10 @@ const listItemGroupSelector = "calcite-list-item-group";
|
|
|
23005
22926
|
const listItemSelector$1 = "calcite-list-item";
|
|
23006
22927
|
function getListItemChildren(event) {
|
|
23007
22928
|
const assignedElements = event.target.assignedElements({ flatten: true });
|
|
23008
|
-
const listItemGroupChildren = assignedElements.filter((el) => el
|
|
22929
|
+
const listItemGroupChildren = assignedElements.filter((el) => el?.matches(listItemGroupSelector))
|
|
23009
22930
|
.map((group) => Array.from(group.querySelectorAll(listItemSelector$1)))
|
|
23010
22931
|
.reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
|
|
23011
|
-
const listItemChildren = assignedElements.filter((el) => el
|
|
22932
|
+
const listItemChildren = assignedElements.filter((el) => el?.matches(listItemSelector$1));
|
|
23012
22933
|
return [...listItemGroupChildren, ...listItemChildren];
|
|
23013
22934
|
}
|
|
23014
22935
|
function updateListItemChildren(listItemChildren) {
|
|
@@ -23097,7 +23018,7 @@ class List$1 {
|
|
|
23097
23018
|
const { listItems, filteredData, filterText } = this;
|
|
23098
23019
|
const values = filteredData.map((item) => item.value);
|
|
23099
23020
|
const groups = new Set();
|
|
23100
|
-
const filteredItems =
|
|
23021
|
+
const filteredItems = listItems?.filter((item) => {
|
|
23101
23022
|
const parent = item.parentElement;
|
|
23102
23023
|
const grouped = parent.matches("calcite-list-item-group");
|
|
23103
23024
|
if (grouped) {
|
|
@@ -23106,7 +23027,7 @@ class List$1 {
|
|
|
23106
23027
|
const matches = filterText ? values.includes(item.value) : true;
|
|
23107
23028
|
item.hidden = !matches;
|
|
23108
23029
|
return matches;
|
|
23109
|
-
})
|
|
23030
|
+
}) || [];
|
|
23110
23031
|
this.filteredItems = filteredItems;
|
|
23111
23032
|
groups.forEach((group) => {
|
|
23112
23033
|
const hasAtLeastOneMatch = filteredItems.some((item) => group.contains(item));
|
|
@@ -23168,8 +23089,7 @@ class List$1 {
|
|
|
23168
23089
|
focusEl.setFocus();
|
|
23169
23090
|
};
|
|
23170
23091
|
this.isNavigable = (listItem) => {
|
|
23171
|
-
|
|
23172
|
-
const parentListItemEl = (_a = listItem.parentElement) === null || _a === void 0 ? void 0 : _a.closest(listItemSelector);
|
|
23092
|
+
const parentListItemEl = listItem.parentElement?.closest(listItemSelector);
|
|
23173
23093
|
if (!parentListItemEl) {
|
|
23174
23094
|
return true;
|
|
23175
23095
|
}
|
|
@@ -23254,13 +23174,11 @@ class List$1 {
|
|
|
23254
23174
|
//
|
|
23255
23175
|
//--------------------------------------------------------------------------
|
|
23256
23176
|
connectedCallback() {
|
|
23257
|
-
|
|
23258
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
23177
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
23259
23178
|
this.updateListItems();
|
|
23260
23179
|
}
|
|
23261
23180
|
disconnectedCallback() {
|
|
23262
|
-
|
|
23263
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
23181
|
+
this.mutationObserver?.disconnect();
|
|
23264
23182
|
}
|
|
23265
23183
|
componentWillLoad() {
|
|
23266
23184
|
setUpLoadableComponent(this);
|
|
@@ -23271,7 +23189,7 @@ class List$1 {
|
|
|
23271
23189
|
componentDidLoad() {
|
|
23272
23190
|
setComponentLoaded(this);
|
|
23273
23191
|
const { filterEl } = this;
|
|
23274
|
-
const filteredItems = filterEl
|
|
23192
|
+
const filteredItems = filterEl?.filteredItems;
|
|
23275
23193
|
if (filteredItems) {
|
|
23276
23194
|
this.filteredData = filteredItems;
|
|
23277
23195
|
}
|
|
@@ -23284,9 +23202,8 @@ class List$1 {
|
|
|
23284
23202
|
// --------------------------------------------------------------------------
|
|
23285
23203
|
/** Sets focus on the component. */
|
|
23286
23204
|
async setFocus() {
|
|
23287
|
-
var _a;
|
|
23288
23205
|
await componentLoaded(this);
|
|
23289
|
-
|
|
23206
|
+
this.enabledListItems.find((listItem) => listItem.active)?.setFocus();
|
|
23290
23207
|
}
|
|
23291
23208
|
// --------------------------------------------------------------------------
|
|
23292
23209
|
//
|
|
@@ -23453,7 +23370,7 @@ class ListItem {
|
|
|
23453
23370
|
tableCell.removeAttribute(tabIndexAttr);
|
|
23454
23371
|
}
|
|
23455
23372
|
});
|
|
23456
|
-
focusEl
|
|
23373
|
+
focusEl?.focus();
|
|
23457
23374
|
};
|
|
23458
23375
|
this.active = false;
|
|
23459
23376
|
this.description = undefined;
|
|
@@ -23518,11 +23435,11 @@ class ListItem {
|
|
|
23518
23435
|
this.focusCell(cells[focusIndex]);
|
|
23519
23436
|
}
|
|
23520
23437
|
else {
|
|
23521
|
-
containerEl
|
|
23438
|
+
containerEl?.focus();
|
|
23522
23439
|
}
|
|
23523
23440
|
return;
|
|
23524
23441
|
}
|
|
23525
|
-
containerEl
|
|
23442
|
+
containerEl?.focus();
|
|
23526
23443
|
}
|
|
23527
23444
|
// --------------------------------------------------------------------------
|
|
23528
23445
|
//
|
|
@@ -23543,7 +23460,7 @@ class ListItem {
|
|
|
23543
23460
|
renderOpen() {
|
|
23544
23461
|
const { el, open, openable, parentListEl } = this;
|
|
23545
23462
|
const dir = getElementDir(el);
|
|
23546
|
-
return openable ? (hAsync("td", { class: CSS$p.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" }))) :
|
|
23463
|
+
return openable ? (hAsync("td", { class: CSS$p.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$p.openContainer, key: "open-container", onClick: this.toggleSelected }, hAsync("calcite-icon", { icon: ICONS$6.blank, scale: "s" }))) : null;
|
|
23547
23464
|
}
|
|
23548
23465
|
renderActionsStart() {
|
|
23549
23466
|
const { label, hasActionsStart } = this;
|
|
@@ -24988,8 +24905,7 @@ function connectFocusTrap(component) {
|
|
|
24988
24905
|
* @param component
|
|
24989
24906
|
*/
|
|
24990
24907
|
function activateFocusTrap(component) {
|
|
24991
|
-
|
|
24992
|
-
(_a = component.focusTrap) === null || _a === void 0 ? void 0 : _a.activate();
|
|
24908
|
+
component.focusTrap?.activate();
|
|
24993
24909
|
}
|
|
24994
24910
|
/**
|
|
24995
24911
|
* Helper to tear deactivate focus trap component.
|
|
@@ -24997,8 +24913,7 @@ function activateFocusTrap(component) {
|
|
|
24997
24913
|
* @param component
|
|
24998
24914
|
*/
|
|
24999
24915
|
function deactivateFocusTrap(component) {
|
|
25000
|
-
|
|
25001
|
-
(_a = component.focusTrap) === null || _a === void 0 ? void 0 : _a.deactivate();
|
|
24916
|
+
component.focusTrap?.deactivate();
|
|
25002
24917
|
}
|
|
25003
24918
|
|
|
25004
24919
|
const modalCss = "@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-modal: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-modal{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-modal{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-modal{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-modal{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-modal{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-modal:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-modal:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-modal-h{display:none}/*!@:host*/.sc-calcite-modal-h{position:fixed;inset:0px;z-index:700;display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}/*!@:host([scale=s])*/[scale=s].sc-calcite-modal-h{--calcite-modal-padding:0.75rem;--calcite-modal-padding-large:1rem;--calcite-modal-title-text:var(--calcite-font-size-1);--calcite-modal-content-text:var(--calcite-font-size--1);--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}/*!@:host([scale=m])*/[scale=m].sc-calcite-modal-h{--calcite-modal-padding:1rem;--calcite-modal-padding-large:1.25rem;--calcite-modal-title-text:var(--calcite-font-size-2);--calcite-modal-content-text:var(--calcite-font-size-0);--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}/*!@:host([scale=l])*/[scale=l].sc-calcite-modal-h{--calcite-modal-padding:1.25rem;--calcite-modal-padding-large:1.5rem;--calcite-modal-title-text:var(--calcite-font-size-3);--calcite-modal-content-text:var(--calcite-font-size-1);--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}/*!@.scrim*/.scrim.sc-calcite-modal{--calcite-scrim-background:rgba(0, 0, 0, 0.75);position:fixed;inset:0px;display:flex;overflow-y:hidden}/*!@.modal*/.modal.sc-calcite-modal{pointer-events:none;z-index:800;float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}/*!@.modal--opening-idle*/.modal--opening-idle.sc-calcite-modal{transform:var(--calcite-modal-hidden-position)}/*!@.modal--opening-active*/.modal--opening-active.sc-calcite-modal{transform:var(--calcite-modal-shown-position)}/*!@.modal--closing-idle*/.modal--closing-idle.sc-calcite-modal{transform:var(--calcite-modal-shown-position)}/*!@.modal--closing-active*/.modal--closing-active.sc-calcite-modal{transform:var(--calcite-modal-hidden-position)}/*!@:host([open])*/[open].sc-calcite-modal-h{opacity:1;visibility:visible !important;transition-delay:0ms}/*!@:host([open]) .modal--open*/[open].sc-calcite-modal-h .modal--open.sc-calcite-modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}/*!@.header*/.header.sc-calcite-modal{z-index:400;display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto}/*!@.close*/.close.sc-calcite-modal{order:2;margin:0px;cursor:pointer;-webkit-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-start-end-radius:0.25rem;padding-block:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));padding-inline:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));flex:0 0 auto}/*!@.close calcite-icon*/.close.sc-calcite-modal calcite-icon.sc-calcite-modal{pointer-events:none;vertical-align:-2px}/*!@.close:focus*/.close.sc-calcite-modal:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.close:hover, .close:focus, .close:active*/.close.sc-calcite-modal:hover,.close.sc-calcite-modal:focus,.close.sc-calcite-modal:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.title*/.title.sc-calcite-modal{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding, var(--calcite-model-padding-internal));padding-inline:var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal))}/*!@slot[name=header]::slotted(*),\n*::slotted([slot=header])*/slot[name=header].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=header]{margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text, var(--calcite-modal-title-text-internal))}/*!@.content*/.content.sc-calcite-modal{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;background-color:var(--calcite-ui-foreground-1);padding:0px;max-block-size:calc(100vh - 12rem)}/*!@.content--spaced*/.content--spaced.sc-calcite-modal{padding:var(--calcite-modal-padding)}/*!@.content--no-footer*/.content--no-footer.sc-calcite-modal{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}/*!@slot[name=content]::slotted(*),\n*::slotted([slot=content])*/slot[name=content].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=content]{font-size:var(--calcite-modal-content-text, var(--calcite-modal-context-text-internal))}/*!@:host([background-color=grey]) .content*/[background-color=grey].sc-calcite-modal-h .content.sc-calcite-modal{background-color:var(--calcite-ui-background)}/*!@.footer*/.footer.sc-calcite-modal{z-index:400;margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding, var(--calcite-modal-padding-internal));padding-inline:var(--calcite-modal-padding-large, var(--calcite-modal-padding-large-internal))}/*!@.footer--hide-back .back,\n.footer--hide-secondary .secondary*/.footer--hide-back.sc-calcite-modal .back.sc-calcite-modal,.footer--hide-secondary.sc-calcite-modal .secondary.sc-calcite-modal{display:none}/*!@.back*/.back.sc-calcite-modal{display:block;margin-inline-end:auto}/*!@.secondary*/.secondary.sc-calcite-modal{margin-inline:0.25rem;display:block}/*!@slot[name=primary]*/slot[name=primary].sc-calcite-modal{display:block}/*!@:host([width=small]) .modal*/[width=small].sc-calcite-modal-h .modal.sc-calcite-modal{inline-size:auto}/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{max-inline-size:32rem}@media screen and (max-width: 35rem){/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}/*!@:host([width=s]) .content*/[width=s].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=s][docked])*/[width=s][docked].sc-calcite-modal-h{align-items:flex-end}}/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{max-inline-size:48rem}@media screen and (max-width: 51rem){/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}/*!@:host([width=m]) .content*/[width=m].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=m][docked])*/[width=m][docked].sc-calcite-modal-h{align-items:flex-end}}/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{max-inline-size:94rem}@media screen and (max-width: 97rem){/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}/*!@:host([width=l]) .content*/[width=l].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=l][docked])*/[width=l][docked].sc-calcite-modal-h{align-items:flex-end}}/*!@:host([fullscreen])*/[fullscreen].sc-calcite-modal-h{background-color:transparent}/*!@:host([fullscreen]) .modal*/[fullscreen].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}/*!@:host([fullscreen]) .content*/[fullscreen].sc-calcite-modal-h .content.sc-calcite-modal{max-block-size:100%;flex:1 1 auto}/*!@:host([open][fullscreen]) .header*/[open][fullscreen].sc-calcite-modal-h .header.sc-calcite-modal{border-radius:0}/*!@:host([open][fullscreen]) .footer*/[open][fullscreen].sc-calcite-modal-h .footer.sc-calcite-modal{border-radius:0}/*!@:host([docked]) .modal*/[docked].sc-calcite-modal-h .modal.sc-calcite-modal{block-size:auto}/*!@:host([docked]) .content*/[docked].sc-calcite-modal-h .content.sc-calcite-modal{block-size:auto;flex:1 1 auto}@media screen and (max-width: 860px){/*!@:host([docked]) .modal*/[docked].sc-calcite-modal-h .modal.sc-calcite-modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}/*!@:host([docked]) .close*/[docked].sc-calcite-modal-h .close.sc-calcite-modal{border-start-end-radius:var(--calcite-border-radius)}}/*!@:host([color=red]) .modal*/[color=red].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-danger)}/*!@:host([color=blue]) .modal*/[color=blue].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-info)}/*!@:host([color=red]) .modal,\n:host([color=blue]) .modal*/[color=red].sc-calcite-modal-h .modal.sc-calcite-modal,[color=blue].sc-calcite-modal-h .modal.sc-calcite-modal{border-width:0px;border-block-start-width:4px;border-style:solid}/*!@:host([color=red]) .header,\n:host([color=blue]) .header*/[color=red].sc-calcite-modal-h .header.sc-calcite-modal,[color=blue].sc-calcite-modal-h .header.sc-calcite-modal{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){/*!@slot[name=header]::slotted(*),\n*::slotted([slot=header])*/slot[name=header].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=header]{font-size:var(--calcite-font-size-1)}/*!@.footer*/.footer.sc-calcite-modal{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){/*!@.footer*/.footer.sc-calcite-modal{flex-direction:column}/*!@.back,\n.secondary*/.back.sc-calcite-modal,.secondary.sc-calcite-modal{margin:0px;margin-block-end:0.25rem}}";
|
|
@@ -25085,8 +25000,7 @@ class Modal {
|
|
|
25085
25000
|
setComponentLoaded(this);
|
|
25086
25001
|
}
|
|
25087
25002
|
connectedCallback() {
|
|
25088
|
-
|
|
25089
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
25003
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
25090
25004
|
this.updateFooterVisibility();
|
|
25091
25005
|
connectConditionalSlotComponent(this);
|
|
25092
25006
|
connectOpenCloseComponent(this);
|
|
@@ -25098,9 +25012,8 @@ class Modal {
|
|
|
25098
25012
|
}
|
|
25099
25013
|
}
|
|
25100
25014
|
disconnectedCallback() {
|
|
25101
|
-
var _a;
|
|
25102
25015
|
this.removeOverflowHiddenClass();
|
|
25103
|
-
|
|
25016
|
+
this.mutationObserver?.disconnect();
|
|
25104
25017
|
disconnectConditionalSlotComponent(this);
|
|
25105
25018
|
disconnectOpenCloseComponent(this);
|
|
25106
25019
|
deactivateFocusTrap(this);
|
|
@@ -25225,14 +25138,13 @@ class Modal {
|
|
|
25225
25138
|
this.open = value;
|
|
25226
25139
|
}
|
|
25227
25140
|
async toggleModal(value) {
|
|
25228
|
-
var _a, _b;
|
|
25229
25141
|
this.active = value;
|
|
25230
25142
|
if (value) {
|
|
25231
|
-
|
|
25143
|
+
this.transitionEl?.classList.add(CSS$n.openingIdle);
|
|
25232
25144
|
this.openModal();
|
|
25233
25145
|
}
|
|
25234
25146
|
else {
|
|
25235
|
-
|
|
25147
|
+
this.transitionEl?.classList.add(CSS$n.closingIdle);
|
|
25236
25148
|
this.close();
|
|
25237
25149
|
}
|
|
25238
25150
|
}
|
|
@@ -25481,9 +25393,8 @@ class Option {
|
|
|
25481
25393
|
//
|
|
25482
25394
|
//--------------------------------------------------------------------------
|
|
25483
25395
|
connectedCallback() {
|
|
25484
|
-
var _a;
|
|
25485
25396
|
this.ensureTextContentDependentProps();
|
|
25486
|
-
|
|
25397
|
+
this.mutationObserver?.observe(this.el, {
|
|
25487
25398
|
attributeFilter: ["label", "value"],
|
|
25488
25399
|
characterData: true,
|
|
25489
25400
|
childList: true,
|
|
@@ -25491,8 +25402,7 @@ class Option {
|
|
|
25491
25402
|
});
|
|
25492
25403
|
}
|
|
25493
25404
|
disconnectedCallback() {
|
|
25494
|
-
|
|
25495
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
25405
|
+
this.mutationObserver?.disconnect();
|
|
25496
25406
|
}
|
|
25497
25407
|
//--------------------------------------------------------------------------
|
|
25498
25408
|
//
|
|
@@ -25864,11 +25774,10 @@ class Panel {
|
|
|
25864
25774
|
this.hasFab = !!elements.length;
|
|
25865
25775
|
};
|
|
25866
25776
|
this.setPanelScrollEl = (el) => {
|
|
25867
|
-
var _a, _b;
|
|
25868
25777
|
this.panelScrollEl = el;
|
|
25869
|
-
|
|
25778
|
+
this.resizeObserver?.disconnect();
|
|
25870
25779
|
if (el) {
|
|
25871
|
-
|
|
25780
|
+
this.resizeObserver?.observe(el);
|
|
25872
25781
|
this.resizeHandler();
|
|
25873
25782
|
}
|
|
25874
25783
|
};
|
|
@@ -25912,8 +25821,7 @@ class Panel {
|
|
|
25912
25821
|
//
|
|
25913
25822
|
// --------------------------------------------------------------------------
|
|
25914
25823
|
disconnectedCallback() {
|
|
25915
|
-
|
|
25916
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
25824
|
+
this.resizeObserver?.disconnect();
|
|
25917
25825
|
}
|
|
25918
25826
|
// --------------------------------------------------------------------------
|
|
25919
25827
|
//
|
|
@@ -25929,11 +25837,11 @@ class Panel {
|
|
|
25929
25837
|
await componentLoaded(this);
|
|
25930
25838
|
const { backButtonEl, closeButtonEl, containerEl } = this;
|
|
25931
25839
|
if (focusId === "back-button") {
|
|
25932
|
-
backButtonEl
|
|
25840
|
+
backButtonEl?.setFocus();
|
|
25933
25841
|
return;
|
|
25934
25842
|
}
|
|
25935
25843
|
if (focusId === "dismiss-button") {
|
|
25936
|
-
closeButtonEl
|
|
25844
|
+
closeButtonEl?.setFocus();
|
|
25937
25845
|
return;
|
|
25938
25846
|
}
|
|
25939
25847
|
if (backButtonEl) {
|
|
@@ -25944,7 +25852,7 @@ class Panel {
|
|
|
25944
25852
|
closeButtonEl.setFocus();
|
|
25945
25853
|
return;
|
|
25946
25854
|
}
|
|
25947
|
-
containerEl
|
|
25855
|
+
containerEl?.focus();
|
|
25948
25856
|
}
|
|
25949
25857
|
/**
|
|
25950
25858
|
* Scrolls the component's content to a specified set of coordinates.
|
|
@@ -25958,8 +25866,7 @@ class Panel {
|
|
|
25958
25866
|
* @param options
|
|
25959
25867
|
*/
|
|
25960
25868
|
async scrollContentTo(options) {
|
|
25961
|
-
|
|
25962
|
-
(_a = this.panelScrollEl) === null || _a === void 0 ? void 0 : _a.scrollTo(options);
|
|
25869
|
+
this.panelScrollEl?.scrollTo(options);
|
|
25963
25870
|
}
|
|
25964
25871
|
// --------------------------------------------------------------------------
|
|
25965
25872
|
//
|
|
@@ -26102,12 +26009,10 @@ function initialize() {
|
|
|
26102
26009
|
this.emitCalciteListFilter = debounce(internalCalciteListFilterEvent.bind(this), 0);
|
|
26103
26010
|
}
|
|
26104
26011
|
function initializeObserver() {
|
|
26105
|
-
|
|
26106
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
26012
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
26107
26013
|
}
|
|
26108
26014
|
function cleanUpObserver() {
|
|
26109
|
-
|
|
26110
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
26015
|
+
this.mutationObserver?.disconnect();
|
|
26111
26016
|
}
|
|
26112
26017
|
// --------------------------------------------------------------------------
|
|
26113
26018
|
//
|
|
@@ -26250,7 +26155,6 @@ function toggleSingleSelectItemTabbing(item, selectable) {
|
|
|
26250
26155
|
}
|
|
26251
26156
|
}
|
|
26252
26157
|
async function setFocus(focusId) {
|
|
26253
|
-
var _a;
|
|
26254
26158
|
if (this.filterEnabled && focusId === "filter") {
|
|
26255
26159
|
await focusElement(this.filterEl);
|
|
26256
26160
|
return;
|
|
@@ -26260,7 +26164,7 @@ async function setFocus(focusId) {
|
|
|
26260
26164
|
return;
|
|
26261
26165
|
}
|
|
26262
26166
|
if (multiple) {
|
|
26263
|
-
return
|
|
26167
|
+
return filterOutDisabled(items)[0]?.setFocus();
|
|
26264
26168
|
}
|
|
26265
26169
|
const filtered = filterOutDisabled(items);
|
|
26266
26170
|
const focusTarget = filtered.find((item) => item.selected) || filtered[0];
|
|
@@ -26332,14 +26236,13 @@ function selectSiblings(item, deselect = false) {
|
|
|
26332
26236
|
}
|
|
26333
26237
|
let groups;
|
|
26334
26238
|
function handleFilter(emit = false) {
|
|
26335
|
-
var _a;
|
|
26336
26239
|
const { filteredData, filterText } = this;
|
|
26337
26240
|
const values = filteredData.map((item) => item.value);
|
|
26338
26241
|
let hasSelectedMatch = false;
|
|
26339
26242
|
if (!groups) {
|
|
26340
26243
|
groups = new Set();
|
|
26341
26244
|
}
|
|
26342
|
-
const matchedItems =
|
|
26245
|
+
const matchedItems = this.items?.filter((item) => {
|
|
26343
26246
|
const parent = item.parentElement;
|
|
26344
26247
|
const grouped = parent.matches("calcite-pick-list-group");
|
|
26345
26248
|
if (grouped) {
|
|
@@ -26351,7 +26254,7 @@ function handleFilter(emit = false) {
|
|
|
26351
26254
|
hasSelectedMatch = matches && item.selected;
|
|
26352
26255
|
}
|
|
26353
26256
|
return matches;
|
|
26354
|
-
})
|
|
26257
|
+
}) || [];
|
|
26355
26258
|
groups.forEach((group) => {
|
|
26356
26259
|
const hasAtLeastOneMatch = matchedItems.some((item) => group.contains(item));
|
|
26357
26260
|
group.hidden = !hasAtLeastOneMatch;
|
|
@@ -26376,8 +26279,7 @@ function handleFilter(emit = false) {
|
|
|
26376
26279
|
}
|
|
26377
26280
|
}
|
|
26378
26281
|
function handleInitialFilter() {
|
|
26379
|
-
|
|
26380
|
-
const filteredItems = (_a = this.filterEl) === null || _a === void 0 ? void 0 : _a.filteredItems;
|
|
26282
|
+
const filteredItems = this.filterEl?.filteredItems;
|
|
26381
26283
|
if (filteredItems) {
|
|
26382
26284
|
this.filteredData = filteredItems;
|
|
26383
26285
|
}
|
|
@@ -26586,7 +26488,6 @@ class PickListGroup {
|
|
|
26586
26488
|
//
|
|
26587
26489
|
// --------------------------------------------------------------------------
|
|
26588
26490
|
render() {
|
|
26589
|
-
var _a;
|
|
26590
26491
|
const { el, groupTitle, headingLevel } = this;
|
|
26591
26492
|
const hasParentItem = getSlotted(el, SLOTS$a.parentItem) !== null;
|
|
26592
26493
|
const sectionClasses = {
|
|
@@ -26594,7 +26495,7 @@ class PickListGroup {
|
|
|
26594
26495
|
[CSS$j.indented]: hasParentItem
|
|
26595
26496
|
};
|
|
26596
26497
|
const title = groupTitle;
|
|
26597
|
-
const parentLevel =
|
|
26498
|
+
const parentLevel = el.closest("calcite-pick-list")?.headingLevel;
|
|
26598
26499
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
26599
26500
|
const level = headingLevel || relativeLevel;
|
|
26600
26501
|
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$j.heading, level: level }, title)) : null, hAsync("slot", { name: SLOTS$a.parentItem }), hAsync("section", { class: sectionClasses }, hAsync("slot", null))));
|
|
@@ -26747,9 +26648,8 @@ class PickListItem {
|
|
|
26747
26648
|
}
|
|
26748
26649
|
/** Sets focus on the component. */
|
|
26749
26650
|
async setFocus() {
|
|
26750
|
-
var _a;
|
|
26751
26651
|
await componentLoaded(this);
|
|
26752
|
-
|
|
26652
|
+
this.focusEl?.focus();
|
|
26753
26653
|
}
|
|
26754
26654
|
// --------------------------------------------------------------------------
|
|
26755
26655
|
//
|
|
@@ -27407,7 +27307,7 @@ class RadioButton {
|
|
|
27407
27307
|
checkLastRadioButton() {
|
|
27408
27308
|
const radioButtons = this.queryButtons();
|
|
27409
27309
|
const checkedRadioButtons = radioButtons.filter((radioButton) => radioButton.checked);
|
|
27410
|
-
if (
|
|
27310
|
+
if (checkedRadioButtons?.length > 1) {
|
|
27411
27311
|
const lastCheckedRadioButton = checkedRadioButtons[checkedRadioButtons.length - 1];
|
|
27412
27312
|
checkedRadioButtons
|
|
27413
27313
|
.filter((checkedRadioButton) => checkedRadioButton !== lastCheckedRadioButton)
|
|
@@ -27583,13 +27483,11 @@ class RadioButtonGroup {
|
|
|
27583
27483
|
//
|
|
27584
27484
|
//--------------------------------------------------------------------------
|
|
27585
27485
|
connectedCallback() {
|
|
27586
|
-
var _a;
|
|
27587
27486
|
this.passPropsToRadioButtons();
|
|
27588
|
-
|
|
27487
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
27589
27488
|
}
|
|
27590
27489
|
disconnectedCallback() {
|
|
27591
|
-
|
|
27592
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
27490
|
+
this.mutationObserver?.disconnect();
|
|
27593
27491
|
}
|
|
27594
27492
|
//--------------------------------------------------------------------------
|
|
27595
27493
|
//
|
|
@@ -27666,7 +27564,7 @@ class RadioGroup {
|
|
|
27666
27564
|
items.forEach((item) => (item.checked = item.value === value));
|
|
27667
27565
|
}
|
|
27668
27566
|
handleSelectedItemChange(newItem, oldItem) {
|
|
27669
|
-
this.value = newItem
|
|
27567
|
+
this.value = newItem?.value;
|
|
27670
27568
|
if (newItem === oldItem) {
|
|
27671
27569
|
return;
|
|
27672
27570
|
}
|
|
@@ -27773,9 +27671,8 @@ class RadioGroup {
|
|
|
27773
27671
|
// --------------------------------------------------------------------------
|
|
27774
27672
|
/** Sets focus on the component. */
|
|
27775
27673
|
async setFocus() {
|
|
27776
|
-
var _a;
|
|
27777
27674
|
await componentLoaded(this);
|
|
27778
|
-
(
|
|
27675
|
+
(this.selectedItem || this.getItems()[0])?.focus();
|
|
27779
27676
|
}
|
|
27780
27677
|
//--------------------------------------------------------------------------
|
|
27781
27678
|
//
|
|
@@ -27843,16 +27740,14 @@ const CSS$f = {
|
|
|
27843
27740
|
radioGroupItemIcon: "radio-group-item-icon"
|
|
27844
27741
|
};
|
|
27845
27742
|
|
|
27846
|
-
const radioGroupItemCss = "@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-radio-group-item: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-radio-group-item{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-radio-group-item{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-radio-group-item{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-radio-group-item{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-radio-group-item{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-radio-group-item:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-radio-group-item:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-radio-group-item-h{display:none}/*!@:host*/.sc-calcite-radio-group-item-h{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}/*!@:host label*/.sc-calcite-radio-group-item-h label.sc-calcite-radio-group-item{pointer-events:none;margin:0.125rem;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-ui-text-3);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}/*!@.label--horizontal*/.label--horizontal.sc-calcite-radio-group-item{justify-content:center}/*!@:host*/.sc-calcite-radio-group-item-h{outline-color:transparent}/*!@:host(:focus)*/.sc-calcite-radio-group-item-h:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-1px}/*!@.label--scale-s*/.label--scale-s.sc-calcite-radio-group-item{padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:0.125rem}/*!@.label--scale-m*/.label--scale-m.sc-calcite-radio-group-item{padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:0.375rem}/*!@.label--scale-l*/.label--scale-l.sc-calcite-radio-group-item{padding-inline:1rem;padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host(:hover) label*/.sc-calcite-radio-group-item-h:hover label.sc-calcite-radio-group-item{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@:host(:active) label*/.sc-calcite-radio-group-item-h:active label.sc-calcite-radio-group-item{background-color:var(--calcite-ui-foreground-3)}/*!@:host([checked]) label*/[checked].sc-calcite-radio-group-item-h label.sc-calcite-radio-group-item{cursor:default;border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-brand);color:var(--calcite-ui-background)}/*!@:host([checked]) .label--outline*/[checked].sc-calcite-radio-group-item-h .label--outline.sc-calcite-radio-group-item{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);color:var(--calcite-ui-brand)}/*!@::slotted(input)*/.sc-calcite-radio-group-item-s>input{display:none}@media (forced-colors: active){/*!@:host([checked]) label*/[checked].sc-calcite-radio-group-item-h label.sc-calcite-radio-group-item{background-color:highlight}/*!@:host([checked]) .label--outline*/[checked].sc-calcite-radio-group-item-h .label--outline.sc-calcite-radio-group-item{outline:2px solid transparent;outline-offset:2px}/*!@:host([checked]) label:not([class~=label--outline]) .radio-group-item-icon*/[checked].sc-calcite-radio-group-item-h label.sc-calcite-radio-group-item:not([class~=label--outline]) .radio-group-item-icon.sc-calcite-radio-group-item{color:highlightText}}/*!@.radio-group-item-icon*/.radio-group-item-icon.sc-calcite-radio-group-item{position:relative;margin:0px;display:inline-flex;line-height:inherit}/*!@:host([icon-
|
|
27743
|
+
const radioGroupItemCss = "@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-radio-group-item: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-radio-group-item{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-radio-group-item{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-radio-group-item{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-radio-group-item{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-radio-group-item{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-radio-group-item:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-radio-group-item:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-radio-group-item-h{display:none}/*!@:host*/.sc-calcite-radio-group-item-h{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}/*!@:host label*/.sc-calcite-radio-group-item-h label.sc-calcite-radio-group-item{pointer-events:none;margin:0.125rem;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-ui-text-3);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}/*!@.label--horizontal*/.label--horizontal.sc-calcite-radio-group-item{justify-content:center}/*!@:host*/.sc-calcite-radio-group-item-h{outline-color:transparent}/*!@:host(:focus)*/.sc-calcite-radio-group-item-h:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-1px}/*!@.label--scale-s*/.label--scale-s.sc-calcite-radio-group-item{padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:0.125rem}/*!@.label--scale-m*/.label--scale-m.sc-calcite-radio-group-item{padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:0.375rem}/*!@.label--scale-l*/.label--scale-l.sc-calcite-radio-group-item{padding-inline:1rem;padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host(:hover) label*/.sc-calcite-radio-group-item-h:hover label.sc-calcite-radio-group-item{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@:host(:active) label*/.sc-calcite-radio-group-item-h:active label.sc-calcite-radio-group-item{background-color:var(--calcite-ui-foreground-3)}/*!@:host([checked]) label*/[checked].sc-calcite-radio-group-item-h label.sc-calcite-radio-group-item{cursor:default;border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-brand);color:var(--calcite-ui-background)}/*!@:host([checked]) .label--outline*/[checked].sc-calcite-radio-group-item-h .label--outline.sc-calcite-radio-group-item{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);color:var(--calcite-ui-brand)}/*!@::slotted(input)*/.sc-calcite-radio-group-item-s>input{display:none}@media (forced-colors: active){/*!@:host([checked]) label*/[checked].sc-calcite-radio-group-item-h label.sc-calcite-radio-group-item{background-color:highlight}/*!@:host([checked]) .label--outline*/[checked].sc-calcite-radio-group-item-h .label--outline.sc-calcite-radio-group-item{outline:2px solid transparent;outline-offset:2px}/*!@:host([checked]) label:not([class~=label--outline]) .radio-group-item-icon*/[checked].sc-calcite-radio-group-item-h label.sc-calcite-radio-group-item:not([class~=label--outline]) .radio-group-item-icon.sc-calcite-radio-group-item{color:highlightText}}/*!@.radio-group-item-icon*/.radio-group-item-icon.sc-calcite-radio-group-item{position:relative;margin:0px;display:inline-flex;line-height:inherit}/*!@:host([icon-start]) .label--scale-s .radio-group-item-icon*/[icon-start].sc-calcite-radio-group-item-h .label--scale-s.sc-calcite-radio-group-item .radio-group-item-icon.sc-calcite-radio-group-item{margin-inline-end:0.5rem}/*!@:host([icon-end]) .label--scale-s .radio-group-item-icon*/[icon-end].sc-calcite-radio-group-item-h .label--scale-s.sc-calcite-radio-group-item .radio-group-item-icon.sc-calcite-radio-group-item{margin-inline-start:0.5rem}/*!@:host([icon-start]) .label--scale-m .radio-group-item-icon*/[icon-start].sc-calcite-radio-group-item-h .label--scale-m.sc-calcite-radio-group-item .radio-group-item-icon.sc-calcite-radio-group-item{margin-inline-end:0.75rem}/*!@:host([icon-end]) .label--scale-m .radio-group-item-icon*/[icon-end].sc-calcite-radio-group-item-h .label--scale-m.sc-calcite-radio-group-item .radio-group-item-icon.sc-calcite-radio-group-item{margin-inline-start:0.75rem}/*!@:host([icon-start]) .label--scale-l .radio-group-item-icon*/[icon-start].sc-calcite-radio-group-item-h .label--scale-l.sc-calcite-radio-group-item .radio-group-item-icon.sc-calcite-radio-group-item{margin-inline-end:1rem}/*!@:host([icon-end]) .label--scale-l .radio-group-item-icon*/[icon-end].sc-calcite-radio-group-item-h .label--scale-l.sc-calcite-radio-group-item .radio-group-item-icon.sc-calcite-radio-group-item{margin-inline-start:1rem}";
|
|
27847
27744
|
|
|
27848
27745
|
class RadioGroupItem {
|
|
27849
27746
|
constructor(hostRef) {
|
|
27850
27747
|
registerInstance(this, hostRef);
|
|
27851
27748
|
this.calciteInternalRadioGroupItemChange = createEvent(this, "calciteInternalRadioGroupItemChange", 6);
|
|
27852
27749
|
this.checked = false;
|
|
27853
|
-
this.icon = undefined;
|
|
27854
27750
|
this.iconFlipRtl = false;
|
|
27855
|
-
this.iconPosition = "start";
|
|
27856
27751
|
this.iconStart = undefined;
|
|
27857
27752
|
this.iconEnd = undefined;
|
|
27858
27753
|
this.value = undefined;
|
|
@@ -27867,16 +27762,13 @@ class RadioGroupItem {
|
|
|
27867
27762
|
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
27868
27763
|
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$f.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
27869
27764
|
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$f.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
27870
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$f.radioGroupItemIcon, flipRtl: this.iconFlipRtl, icon: this.icon, key: "icon", scale: "s" }));
|
|
27871
|
-
const iconAtStart = this.icon && this.iconPosition === "start" && !this.iconStart ? iconEl : null;
|
|
27872
|
-
const iconAtEnd = this.icon && this.iconPosition === "end" && !this.iconEnd ? iconEl : null;
|
|
27873
27765
|
return (hAsync(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, hAsync("label", { class: {
|
|
27874
27766
|
"label--scale-s": scale === "s",
|
|
27875
27767
|
"label--scale-m": scale === "m",
|
|
27876
27768
|
"label--scale-l": scale === "l",
|
|
27877
27769
|
"label--horizontal": layout === "horizontal",
|
|
27878
27770
|
"label--outline": appearance === "outline"
|
|
27879
|
-
} },
|
|
27771
|
+
} }, this.iconStart ? iconStartEl : null, hAsync("slot", null, value), hAsync("slot", { name: SLOTS$8.input }), this.iconEnd ? iconEndEl : null)));
|
|
27880
27772
|
}
|
|
27881
27773
|
get el() { return getElement(this); }
|
|
27882
27774
|
static get watchers() { return {
|
|
@@ -27888,16 +27780,14 @@ class RadioGroupItem {
|
|
|
27888
27780
|
"$tagName$": "calcite-radio-group-item",
|
|
27889
27781
|
"$members$": {
|
|
27890
27782
|
"checked": [1540],
|
|
27891
|
-
"icon": [513],
|
|
27892
27783
|
"iconFlipRtl": [516, "icon-flip-rtl"],
|
|
27893
|
-
"iconPosition": [513, "icon-position"],
|
|
27894
27784
|
"iconStart": [513, "icon-start"],
|
|
27895
27785
|
"iconEnd": [513, "icon-end"],
|
|
27896
27786
|
"value": [1032]
|
|
27897
27787
|
},
|
|
27898
27788
|
"$listeners$": undefined,
|
|
27899
27789
|
"$lazyBundleId$": "-",
|
|
27900
|
-
"$attrsToReflect$": [["checked", "checked"], ["
|
|
27790
|
+
"$attrsToReflect$": [["checked", "checked"], ["iconFlipRtl", "icon-flip-rtl"], ["iconStart", "icon-start"], ["iconEnd", "icon-end"]]
|
|
27901
27791
|
}; }
|
|
27902
27792
|
}
|
|
27903
27793
|
|
|
@@ -27995,8 +27885,7 @@ class Rating {
|
|
|
27995
27885
|
}
|
|
27996
27886
|
render() {
|
|
27997
27887
|
const { disabled, intlRating, showChip, scale, count, average } = this;
|
|
27998
|
-
return (hAsync(Fragment, null, hAsync("fieldset", { class: "fieldset", disabled: disabled, onBlur: () => (this.hoverValue = null), onPointerLeave: () => (this.hoverValue = null), onTouchEnd: () => (this.hoverValue = null) }, hAsync("legend", { class: "visually-hidden" }, intlRating), this.renderStars()), (count || average) && showChip ? (hAsync("calcite-chip", { scale: scale, value: count
|
|
27999
|
-
count.toString(), ")"))) : null, hAsync(HiddenFormInputSlot, { component: this })));
|
|
27888
|
+
return (hAsync(Fragment, null, hAsync("fieldset", { class: "fieldset", disabled: disabled, onBlur: () => (this.hoverValue = null), onPointerLeave: () => (this.hoverValue = null), onTouchEnd: () => (this.hoverValue = null) }, hAsync("legend", { class: "visually-hidden" }, intlRating), this.renderStars()), (count || average) && showChip ? (hAsync("calcite-chip", { scale: scale, value: count?.toString() }, !!average && hAsync("span", { class: "number--average" }, average.toString()), !!count && hAsync("span", { class: "number--count" }, "(", count?.toString(), ")"))) : null, hAsync(HiddenFormInputSlot, { component: this })));
|
|
28000
27889
|
}
|
|
28001
27890
|
//--------------------------------------------------------------------------
|
|
28002
27891
|
//
|
|
@@ -28017,9 +27906,8 @@ class Rating {
|
|
|
28017
27906
|
//--------------------------------------------------------------------------
|
|
28018
27907
|
/** Sets focus on the component. */
|
|
28019
27908
|
async setFocus() {
|
|
28020
|
-
var _a;
|
|
28021
27909
|
await componentLoaded(this);
|
|
28022
|
-
|
|
27910
|
+
this.inputFocusRef?.focus();
|
|
28023
27911
|
}
|
|
28024
27912
|
get el() { return getElement(this); }
|
|
28025
27913
|
static get style() { return ratingCss; }
|
|
@@ -28126,7 +28014,7 @@ class Select {
|
|
|
28126
28014
|
this.populateInternalSelect = () => {
|
|
28127
28015
|
const optionsAndGroups = Array.from(this.el.children).filter((child) => child.tagName === "CALCITE-OPTION" || child.tagName === "CALCITE-OPTION-GROUP");
|
|
28128
28016
|
this.clearInternalSelect();
|
|
28129
|
-
optionsAndGroups.forEach((optionOrGroup) =>
|
|
28017
|
+
optionsAndGroups.forEach((optionOrGroup) => this.selectEl?.append(this.toNativeElement(optionOrGroup)));
|
|
28130
28018
|
};
|
|
28131
28019
|
this.storeSelectRef = (node) => {
|
|
28132
28020
|
this.selectEl = node;
|
|
@@ -28151,7 +28039,7 @@ class Select {
|
|
|
28151
28039
|
items.forEach((item) => (item.selected = item.value === value));
|
|
28152
28040
|
}
|
|
28153
28041
|
selectedOptionHandler(selectedOption) {
|
|
28154
|
-
this.value = selectedOption
|
|
28042
|
+
this.value = selectedOption?.value;
|
|
28155
28043
|
}
|
|
28156
28044
|
//--------------------------------------------------------------------------
|
|
28157
28045
|
//
|
|
@@ -28159,9 +28047,8 @@ class Select {
|
|
|
28159
28047
|
//
|
|
28160
28048
|
//--------------------------------------------------------------------------
|
|
28161
28049
|
connectedCallback() {
|
|
28162
|
-
var _a;
|
|
28163
28050
|
const { el } = this;
|
|
28164
|
-
|
|
28051
|
+
this.mutationObserver?.observe(el, {
|
|
28165
28052
|
subtree: true,
|
|
28166
28053
|
childList: true
|
|
28167
28054
|
});
|
|
@@ -28169,8 +28056,7 @@ class Select {
|
|
|
28169
28056
|
connectForm(this);
|
|
28170
28057
|
}
|
|
28171
28058
|
disconnectedCallback() {
|
|
28172
|
-
|
|
28173
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
28059
|
+
this.mutationObserver?.disconnect();
|
|
28174
28060
|
disconnectLabel(this);
|
|
28175
28061
|
disconnectForm(this);
|
|
28176
28062
|
}
|
|
@@ -28178,9 +28064,8 @@ class Select {
|
|
|
28178
28064
|
setUpLoadableComponent(this);
|
|
28179
28065
|
}
|
|
28180
28066
|
componentDidLoad() {
|
|
28181
|
-
var _a, _b;
|
|
28182
28067
|
setComponentLoaded(this);
|
|
28183
|
-
afterConnectDefaultValueSet(this,
|
|
28068
|
+
afterConnectDefaultValueSet(this, this.selectedOption?.value ?? "");
|
|
28184
28069
|
}
|
|
28185
28070
|
componentDidRender() {
|
|
28186
28071
|
updateHostInteraction(this);
|
|
@@ -28446,7 +28331,7 @@ class ShellCenterRow {
|
|
|
28446
28331
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
28447
28332
|
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$b.actionBarContainer, key: "action-bar" }, hAsync("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
28448
28333
|
const children = [actionBarNode, contentNode];
|
|
28449
|
-
if (
|
|
28334
|
+
if (actionBar?.position === "end") {
|
|
28450
28335
|
children.reverse();
|
|
28451
28336
|
}
|
|
28452
28337
|
return hAsync(Fragment, null, children);
|
|
@@ -28573,8 +28458,7 @@ class ShellPanel {
|
|
|
28573
28458
|
document.removeEventListener("pointermove", this.separatorPointerMove);
|
|
28574
28459
|
};
|
|
28575
28460
|
this.setInitialContentWidth = () => {
|
|
28576
|
-
|
|
28577
|
-
this.initialContentWidth = (_a = this.contentEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width;
|
|
28461
|
+
this.initialContentWidth = this.contentEl?.getBoundingClientRect().width;
|
|
28578
28462
|
};
|
|
28579
28463
|
this.separatorPointerDown = (event) => {
|
|
28580
28464
|
if (!isPrimaryPointerButton(event)) {
|
|
@@ -28594,8 +28478,7 @@ class ShellPanel {
|
|
|
28594
28478
|
separatorEl.addEventListener("pointerdown", this.separatorPointerDown);
|
|
28595
28479
|
};
|
|
28596
28480
|
this.disconnectSeparator = () => {
|
|
28597
|
-
|
|
28598
|
-
(_a = this.separatorEl) === null || _a === void 0 ? void 0 : _a.removeEventListener("pointerdown", this.separatorPointerDown);
|
|
28481
|
+
this.separatorEl?.removeEventListener("pointerdown", this.separatorPointerDown);
|
|
28599
28482
|
};
|
|
28600
28483
|
this.collapsed = false;
|
|
28601
28484
|
this.detached = false;
|
|
@@ -28635,7 +28518,7 @@ class ShellPanel {
|
|
|
28635
28518
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
28636
28519
|
const allowResizing = !detached && resizable;
|
|
28637
28520
|
const contentNode = (hAsync("div", { class: { [CSS$a.content]: true, [CSS$a.contentDetached]: detached }, hidden: collapsed, key: "content", ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), hAsync("div", { class: CSS$a.contentBody }, hAsync("slot", null))));
|
|
28638
|
-
const separatorNode = allowResizing ? (hAsync("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth
|
|
28521
|
+
const separatorNode = allowResizing ? (hAsync("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth ?? initialContentWidth, class: CSS$a.separator, key: "separator", onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
28639
28522
|
const actionBarNode = hAsync("slot", { key: "action-bar", name: SLOTS$5.actionBar });
|
|
28640
28523
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
28641
28524
|
if (position === "end") {
|
|
@@ -29138,7 +29021,7 @@ class Slider {
|
|
|
29138
29021
|
async setFocus() {
|
|
29139
29022
|
await componentLoaded(this);
|
|
29140
29023
|
const handle = this.minHandle ? this.minHandle : this.maxHandle;
|
|
29141
|
-
handle
|
|
29024
|
+
handle?.focus();
|
|
29142
29025
|
}
|
|
29143
29026
|
//--------------------------------------------------------------------------
|
|
29144
29027
|
//
|
|
@@ -32599,15 +32482,13 @@ class SortableList {
|
|
|
32599
32482
|
this.beginObserving();
|
|
32600
32483
|
}
|
|
32601
32484
|
disconnectedCallback() {
|
|
32602
|
-
|
|
32603
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
32485
|
+
this.mutationObserver?.disconnect();
|
|
32604
32486
|
this.cleanUpDragAndDrop();
|
|
32605
32487
|
}
|
|
32606
32488
|
componentDidRender() {
|
|
32607
32489
|
updateHostInteraction(this);
|
|
32608
32490
|
}
|
|
32609
32491
|
calciteHandleNudgeHandler(event) {
|
|
32610
|
-
var _a;
|
|
32611
32492
|
const sortItem = this.items.find((item) => {
|
|
32612
32493
|
return item.contains(event.detail.handle) || event.composedPath().includes(item);
|
|
32613
32494
|
});
|
|
@@ -32640,7 +32521,7 @@ class SortableList {
|
|
|
32640
32521
|
default:
|
|
32641
32522
|
return;
|
|
32642
32523
|
}
|
|
32643
|
-
|
|
32524
|
+
this.mutationObserver?.disconnect();
|
|
32644
32525
|
if (appendInstead) {
|
|
32645
32526
|
sortItem.parentElement.appendChild(sortItem);
|
|
32646
32527
|
}
|
|
@@ -32670,8 +32551,7 @@ class SortableList {
|
|
|
32670
32551
|
},
|
|
32671
32552
|
// Element dragging started
|
|
32672
32553
|
onStart: () => {
|
|
32673
|
-
|
|
32674
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
32554
|
+
this.mutationObserver?.disconnect();
|
|
32675
32555
|
},
|
|
32676
32556
|
// Element dragging ended
|
|
32677
32557
|
onEnd: () => {
|
|
@@ -32684,13 +32564,11 @@ class SortableList {
|
|
|
32684
32564
|
this.sortable = Sortable.create(this.el, options);
|
|
32685
32565
|
}
|
|
32686
32566
|
cleanUpDragAndDrop() {
|
|
32687
|
-
|
|
32688
|
-
(_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
32567
|
+
this.sortable?.destroy();
|
|
32689
32568
|
this.sortable = null;
|
|
32690
32569
|
}
|
|
32691
32570
|
beginObserving() {
|
|
32692
|
-
|
|
32693
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
32571
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
32694
32572
|
}
|
|
32695
32573
|
// --------------------------------------------------------------------------
|
|
32696
32574
|
//
|
|
@@ -32875,7 +32753,7 @@ class Stepper {
|
|
|
32875
32753
|
return (hAsync("slot", { onSlotchange: (event) => {
|
|
32876
32754
|
const items = event.currentTarget
|
|
32877
32755
|
.assignedElements()
|
|
32878
|
-
.filter((el) =>
|
|
32756
|
+
.filter((el) => el?.tagName === "CALCITE-STEPPER-ITEM");
|
|
32879
32757
|
const spacing = Array(items.length).fill("1fr").join(" ");
|
|
32880
32758
|
this.el.style.gridTemplateAreas = spacing;
|
|
32881
32759
|
this.el.style.gridTemplateColumns = spacing;
|
|
@@ -32996,10 +32874,9 @@ class Stepper {
|
|
|
32996
32874
|
//
|
|
32997
32875
|
//--------------------------------------------------------------------------
|
|
32998
32876
|
getEnabledStepIndex(startIndex, direction = "next") {
|
|
32999
|
-
var _a;
|
|
33000
32877
|
const { items, currentPosition } = this;
|
|
33001
32878
|
let newIndex = startIndex;
|
|
33002
|
-
while (
|
|
32879
|
+
while (items[newIndex]?.disabled) {
|
|
33003
32880
|
newIndex = newIndex + (direction === "previous" ? -1 : 1);
|
|
33004
32881
|
}
|
|
33005
32882
|
return newIndex !== currentPosition && newIndex < items.length && newIndex >= 0
|
|
@@ -33104,7 +32981,7 @@ class StepperItem {
|
|
|
33104
32981
|
if (this.layout === "horizontal" &&
|
|
33105
32982
|
event
|
|
33106
32983
|
.composedPath()
|
|
33107
|
-
.some((el) =>
|
|
32984
|
+
.some((el) => el.classList?.contains("stepper-item-content"))) {
|
|
33108
32985
|
return;
|
|
33109
32986
|
}
|
|
33110
32987
|
this.emitUserRequestedItem();
|
|
@@ -33155,10 +33032,9 @@ class StepperItem {
|
|
|
33155
33032
|
this.registerStepperItem();
|
|
33156
33033
|
}
|
|
33157
33034
|
effectiveLocaleWatcher(locale) {
|
|
33158
|
-
var _a;
|
|
33159
33035
|
numberStringFormatter.numberFormatOptions = {
|
|
33160
33036
|
locale,
|
|
33161
|
-
numberingSystem:
|
|
33037
|
+
numberingSystem: this.parentStepperEl?.numberingSystem,
|
|
33162
33038
|
useGrouping: false
|
|
33163
33039
|
};
|
|
33164
33040
|
}
|
|
@@ -33178,7 +33054,6 @@ class StepperItem {
|
|
|
33178
33054
|
}
|
|
33179
33055
|
}
|
|
33180
33056
|
componentWillLoad() {
|
|
33181
|
-
var _a;
|
|
33182
33057
|
setUpLoadableComponent(this);
|
|
33183
33058
|
this.icon = getElementProp(this.el, "icon", false);
|
|
33184
33059
|
this.numbered = getElementProp(this.el, "numbered", false);
|
|
@@ -33192,7 +33067,7 @@ class StepperItem {
|
|
|
33192
33067
|
}
|
|
33193
33068
|
numberStringFormatter.numberFormatOptions = {
|
|
33194
33069
|
locale: this.effectiveLocale,
|
|
33195
|
-
numberingSystem:
|
|
33070
|
+
numberingSystem: this.parentStepperEl?.numberingSystem,
|
|
33196
33071
|
useGrouping: false
|
|
33197
33072
|
};
|
|
33198
33073
|
}
|
|
@@ -33228,9 +33103,8 @@ class StepperItem {
|
|
|
33228
33103
|
//
|
|
33229
33104
|
//--------------------------------------------------------------------------
|
|
33230
33105
|
async setFocus() {
|
|
33231
|
-
var _a;
|
|
33232
33106
|
await componentLoaded(this);
|
|
33233
|
-
(
|
|
33107
|
+
(this.layout === "vertical" ? this.el : this.headerEl)?.focus();
|
|
33234
33108
|
}
|
|
33235
33109
|
renderIcon() {
|
|
33236
33110
|
const path = this.selected
|
|
@@ -33251,8 +33125,7 @@ class StepperItem {
|
|
|
33251
33125
|
});
|
|
33252
33126
|
}
|
|
33253
33127
|
getItemPosition() {
|
|
33254
|
-
|
|
33255
|
-
return Array.from((_a = this.parentStepperEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll("calcite-stepper-item")).indexOf(this.el);
|
|
33128
|
+
return Array.from(this.parentStepperEl?.querySelectorAll("calcite-stepper-item")).indexOf(this.el);
|
|
33256
33129
|
}
|
|
33257
33130
|
get el() { return getElement(this); }
|
|
33258
33131
|
static get watchers() { return {
|
|
@@ -33446,13 +33319,11 @@ class Tab {
|
|
|
33446
33319
|
this.calciteInternalTabRegister.emit();
|
|
33447
33320
|
}
|
|
33448
33321
|
componentWillRender() {
|
|
33449
|
-
|
|
33450
|
-
this.scale = (_a = this.parentTabsEl) === null || _a === void 0 ? void 0 : _a.scale;
|
|
33322
|
+
this.scale = this.parentTabsEl?.scale;
|
|
33451
33323
|
}
|
|
33452
33324
|
disconnectedCallback() {
|
|
33453
|
-
var _a;
|
|
33454
33325
|
// Dispatching to body in order to be listened by other elements that are still connected to the DOM.
|
|
33455
|
-
|
|
33326
|
+
document.body?.dispatchEvent(new CustomEvent("calciteTabUnregister", {
|
|
33456
33327
|
detail: this.el
|
|
33457
33328
|
}));
|
|
33458
33329
|
}
|
|
@@ -33547,7 +33418,7 @@ class TabNav {
|
|
|
33547
33418
|
//
|
|
33548
33419
|
//--------------------------------------------------------------------------
|
|
33549
33420
|
this.handleTabFocus = (event, tabTitle) => {
|
|
33550
|
-
tabTitle
|
|
33421
|
+
tabTitle?.focus();
|
|
33551
33422
|
event.stopPropagation();
|
|
33552
33423
|
event.preventDefault();
|
|
33553
33424
|
};
|
|
@@ -33591,13 +33462,11 @@ class TabNav {
|
|
|
33591
33462
|
//
|
|
33592
33463
|
//--------------------------------------------------------------------------
|
|
33593
33464
|
connectedCallback() {
|
|
33594
|
-
var _a;
|
|
33595
33465
|
this.parentTabsEl = this.el.closest("calcite-tabs");
|
|
33596
|
-
|
|
33466
|
+
this.resizeObserver?.observe(this.el);
|
|
33597
33467
|
}
|
|
33598
33468
|
disconnectedCallback() {
|
|
33599
|
-
|
|
33600
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
33469
|
+
this.resizeObserver?.disconnect();
|
|
33601
33470
|
}
|
|
33602
33471
|
componentWillLoad() {
|
|
33603
33472
|
const storageKey = `calcite-tab-nav-${this.storageId}`;
|
|
@@ -33608,10 +33477,10 @@ class TabNav {
|
|
|
33608
33477
|
}
|
|
33609
33478
|
componentWillRender() {
|
|
33610
33479
|
const { parentTabsEl } = this;
|
|
33611
|
-
this.layout = parentTabsEl
|
|
33612
|
-
this.position = parentTabsEl
|
|
33613
|
-
this.scale = parentTabsEl
|
|
33614
|
-
this.bordered = parentTabsEl
|
|
33480
|
+
this.layout = parentTabsEl?.layout;
|
|
33481
|
+
this.position = parentTabsEl?.position;
|
|
33482
|
+
this.scale = parentTabsEl?.scale;
|
|
33483
|
+
this.bordered = parentTabsEl?.bordered;
|
|
33615
33484
|
// fix issue with active tab-title not lining up with blue indicator
|
|
33616
33485
|
if (this.selectedTabEl) {
|
|
33617
33486
|
this.updateOffsetPosition();
|
|
@@ -33693,18 +33562,16 @@ class TabNav {
|
|
|
33693
33562
|
this.updateActiveWidth();
|
|
33694
33563
|
}
|
|
33695
33564
|
updateOffsetPosition() {
|
|
33696
|
-
var _a, _b, _c, _d, _e;
|
|
33697
33565
|
const dir = getElementDir(this.el);
|
|
33698
|
-
const navWidth =
|
|
33699
|
-
const tabLeft =
|
|
33700
|
-
const tabWidth =
|
|
33566
|
+
const navWidth = this.activeIndicatorContainerEl?.offsetWidth;
|
|
33567
|
+
const tabLeft = this.selectedTabEl?.offsetLeft;
|
|
33568
|
+
const tabWidth = this.selectedTabEl?.offsetWidth;
|
|
33701
33569
|
const offsetRight = navWidth - (tabLeft + tabWidth);
|
|
33702
33570
|
this.indicatorOffset =
|
|
33703
|
-
dir !== "rtl" ? tabLeft -
|
|
33571
|
+
dir !== "rtl" ? tabLeft - this.tabNavEl?.scrollLeft : offsetRight + this.tabNavEl?.scrollLeft;
|
|
33704
33572
|
}
|
|
33705
33573
|
updateActiveWidth() {
|
|
33706
|
-
|
|
33707
|
-
this.indicatorWidth = (_a = this.selectedTabEl) === null || _a === void 0 ? void 0 : _a.offsetWidth;
|
|
33574
|
+
this.indicatorWidth = this.selectedTabEl?.offsetWidth;
|
|
33708
33575
|
}
|
|
33709
33576
|
getIndexOfTabTitle(el, tabTitles = this.tabTitles) {
|
|
33710
33577
|
// In most cases, since these indexes correlate with tab contents, we want to consider all tab titles.
|
|
@@ -33815,13 +33682,12 @@ class TabTitle {
|
|
|
33815
33682
|
this.parentTabsEl = this.el.closest("calcite-tabs");
|
|
33816
33683
|
}
|
|
33817
33684
|
disconnectedCallback() {
|
|
33818
|
-
|
|
33819
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
33685
|
+
this.mutationObserver?.disconnect();
|
|
33820
33686
|
// Dispatching to body in order to be listened by other elements that are still connected to the DOM.
|
|
33821
|
-
|
|
33687
|
+
document.body?.dispatchEvent(new CustomEvent("calciteTabTitleUnregister", {
|
|
33822
33688
|
detail: this.el
|
|
33823
33689
|
}));
|
|
33824
|
-
|
|
33690
|
+
this.resizeObserver?.disconnect();
|
|
33825
33691
|
}
|
|
33826
33692
|
componentWillLoad() {
|
|
33827
33693
|
if (this.tab && this.selected) {
|
|
@@ -33848,7 +33714,7 @@ class TabTitle {
|
|
|
33848
33714
|
return (hAsync(Host, { "aria-controls": this.controls, "aria-selected": toAriaBoolean(this.selected), id: id, role: "tab", tabIndex: this.selected ? 0 : -1 }, hAsync("div", { class: {
|
|
33849
33715
|
container: true,
|
|
33850
33716
|
"container--has-text": this.hasText
|
|
33851
|
-
}, ref: (el) =>
|
|
33717
|
+
}, ref: (el) => this.resizeObserver?.observe(el) }, this.iconStart ? iconStartEl : null, hAsync("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
33852
33718
|
}
|
|
33853
33719
|
async componentDidLoad() {
|
|
33854
33720
|
this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier());
|
|
@@ -33947,8 +33813,7 @@ class TabTitle {
|
|
|
33947
33813
|
this.hasText = this.el.textContent.trim().length > 0;
|
|
33948
33814
|
}
|
|
33949
33815
|
setupTextContentObserver() {
|
|
33950
|
-
|
|
33951
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
33816
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
33952
33817
|
}
|
|
33953
33818
|
emitActiveTab(userTriggered = true) {
|
|
33954
33819
|
if (this.disabled) {
|
|
@@ -34260,9 +34125,8 @@ class TileSelect {
|
|
|
34260
34125
|
//--------------------------------------------------------------------------
|
|
34261
34126
|
/** Sets focus on the component. */
|
|
34262
34127
|
async setFocus() {
|
|
34263
|
-
var _a;
|
|
34264
34128
|
await componentLoaded(this);
|
|
34265
|
-
|
|
34129
|
+
this.input?.setFocus();
|
|
34266
34130
|
}
|
|
34267
34131
|
//--------------------------------------------------------------------------
|
|
34268
34132
|
//
|
|
@@ -34801,7 +34665,6 @@ class TimePicker {
|
|
|
34801
34665
|
}
|
|
34802
34666
|
};
|
|
34803
34667
|
this.setValuePart = (key, value, emit = true) => {
|
|
34804
|
-
var _a;
|
|
34805
34668
|
const { effectiveLocale: locale, numberingSystem } = this;
|
|
34806
34669
|
if (key === "meridiem") {
|
|
34807
34670
|
this.meridiem = value;
|
|
@@ -34844,7 +34707,8 @@ class TimePicker {
|
|
|
34844
34707
|
this.value = null;
|
|
34845
34708
|
}
|
|
34846
34709
|
this.localizedMeridiem = this.value
|
|
34847
|
-
?
|
|
34710
|
+
? localizeTimeStringToParts({ value: this.value, locale, numberingSystem })
|
|
34711
|
+
?.localizedMeridiem || null
|
|
34848
34712
|
: localizeTimePart({ value: this.meridiem, part: "meridiem", locale, numberingSystem });
|
|
34849
34713
|
if (emit) {
|
|
34850
34714
|
this.calciteInternalTimePickerChange.emit();
|
|
@@ -34973,9 +34837,8 @@ class TimePicker {
|
|
|
34973
34837
|
* @param target
|
|
34974
34838
|
*/
|
|
34975
34839
|
async setFocus(target) {
|
|
34976
|
-
var _a;
|
|
34977
34840
|
await componentLoaded(this);
|
|
34978
|
-
|
|
34841
|
+
this[`${target || "hour"}El`]?.focus();
|
|
34979
34842
|
}
|
|
34980
34843
|
// --------------------------------------------------------------------------
|
|
34981
34844
|
//
|
|
@@ -35200,9 +35063,8 @@ class Tip {
|
|
|
35200
35063
|
//
|
|
35201
35064
|
// --------------------------------------------------------------------------
|
|
35202
35065
|
renderHeader() {
|
|
35203
|
-
var _a;
|
|
35204
35066
|
const { heading, headingLevel, el } = this;
|
|
35205
|
-
const parentLevel =
|
|
35067
|
+
const parentLevel = el.closest("calcite-tip-manager")?.headingLevel;
|
|
35206
35068
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
35207
35069
|
const level = headingLevel || relativeLevel;
|
|
35208
35070
|
return heading ? (hAsync("header", { class: CSS$4.header }, hAsync(Heading, { class: CSS$4.heading, level: level }, heading))) : null;
|
|
@@ -35368,13 +35230,11 @@ class TipManager {
|
|
|
35368
35230
|
//
|
|
35369
35231
|
// --------------------------------------------------------------------------
|
|
35370
35232
|
connectedCallback() {
|
|
35371
|
-
var _a;
|
|
35372
35233
|
this.setUpTips();
|
|
35373
|
-
|
|
35234
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
35374
35235
|
}
|
|
35375
35236
|
disconnectedCallback() {
|
|
35376
|
-
|
|
35377
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
35237
|
+
this.mutationObserver?.disconnect();
|
|
35378
35238
|
}
|
|
35379
35239
|
// --------------------------------------------------------------------------
|
|
35380
35240
|
//
|
|
@@ -35423,7 +35283,7 @@ class TipManager {
|
|
|
35423
35283
|
updateGroupTitle() {
|
|
35424
35284
|
const selectedTip = this.tips[this.selectedIndex];
|
|
35425
35285
|
const tipParent = selectedTip.closest("calcite-tip-group");
|
|
35426
|
-
this.groupTitle =
|
|
35286
|
+
this.groupTitle = tipParent?.groupTitle || this.intlDefaultTitle || TEXT.defaultGroupTitle;
|
|
35427
35287
|
}
|
|
35428
35288
|
// --------------------------------------------------------------------------
|
|
35429
35289
|
//
|
|
@@ -35529,7 +35389,7 @@ class TooltipManager {
|
|
|
35529
35389
|
}
|
|
35530
35390
|
const clickedTooltip = this.queryTooltip(event.composedPath());
|
|
35531
35391
|
this.clickedTooltip = clickedTooltip;
|
|
35532
|
-
if (clickedTooltip
|
|
35392
|
+
if (clickedTooltip?.closeOnClick) {
|
|
35533
35393
|
this.toggleTooltip(clickedTooltip, false);
|
|
35534
35394
|
this.clearHoverTimeout(clickedTooltip);
|
|
35535
35395
|
}
|
|
@@ -35851,7 +35711,7 @@ class Tooltip {
|
|
|
35851
35711
|
}
|
|
35852
35712
|
|
|
35853
35713
|
function isTreeItem(element) {
|
|
35854
|
-
return element
|
|
35714
|
+
return element?.matches("calcite-tree-item");
|
|
35855
35715
|
}
|
|
35856
35716
|
function getEnabledSiblingItem(el, direction) {
|
|
35857
35717
|
const directionProp = direction === "down" ? "nextElementSibling" : "previousElementSibling";
|
|
@@ -35887,8 +35747,7 @@ class Tree {
|
|
|
35887
35747
|
//
|
|
35888
35748
|
//--------------------------------------------------------------------------
|
|
35889
35749
|
componentWillRender() {
|
|
35890
|
-
|
|
35891
|
-
const parent = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.closest("calcite-tree");
|
|
35750
|
+
const parent = this.el.parentElement?.closest("calcite-tree");
|
|
35892
35751
|
this.lines = parent ? parent.lines : this.lines;
|
|
35893
35752
|
this.scale = parent ? parent.scale : this.scale;
|
|
35894
35753
|
this.selectionMode = parent ? parent.selectionMode : this.selectionMode;
|
|
@@ -36005,7 +35864,6 @@ class Tree {
|
|
|
36005
35864
|
event.stopPropagation();
|
|
36006
35865
|
}
|
|
36007
35866
|
keyDownHandler(event) {
|
|
36008
|
-
var _a;
|
|
36009
35867
|
const root = this.el.closest("calcite-tree:not([child])");
|
|
36010
35868
|
const target = event.target;
|
|
36011
35869
|
if (!(root === this.el && target.tagName === "CALCITE-TREE-ITEM" && this.el.contains(target))) {
|
|
@@ -36047,7 +35905,7 @@ class Tree {
|
|
|
36047
35905
|
if (target.hasChildren) {
|
|
36048
35906
|
if (target.expanded && getRootNode$1(this.el).activeElement === target) {
|
|
36049
35907
|
// When focus is on an open node, moves focus to the first child node.
|
|
36050
|
-
|
|
35908
|
+
getEnabledSiblingItem(target.querySelector("calcite-tree-item"), "down")?.focus();
|
|
36051
35909
|
event.preventDefault();
|
|
36052
35910
|
}
|
|
36053
35911
|
else {
|
|
@@ -36185,13 +36043,12 @@ class TreeItem {
|
|
|
36185
36043
|
items.forEach((item) => (item.parentExpanded = expanded));
|
|
36186
36044
|
};
|
|
36187
36045
|
this.updateAncestorTree = () => {
|
|
36188
|
-
var _a;
|
|
36189
36046
|
if (this.selected && this.selectionMode === "ancestors") {
|
|
36190
36047
|
const ancestors = [];
|
|
36191
36048
|
let parent = this.parentTreeItem;
|
|
36192
36049
|
while (parent) {
|
|
36193
36050
|
ancestors.push(parent);
|
|
36194
|
-
parent =
|
|
36051
|
+
parent = parent.parentElement?.closest("calcite-tree-item");
|
|
36195
36052
|
}
|
|
36196
36053
|
ancestors.forEach((item) => (item.indeterminate = true));
|
|
36197
36054
|
return;
|
|
@@ -36223,8 +36080,7 @@ class TreeItem {
|
|
|
36223
36080
|
//
|
|
36224
36081
|
//--------------------------------------------------------------------------
|
|
36225
36082
|
connectedCallback() {
|
|
36226
|
-
|
|
36227
|
-
this.parentTreeItem = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.closest("calcite-tree-item");
|
|
36083
|
+
this.parentTreeItem = this.el.parentElement?.closest("calcite-tree-item");
|
|
36228
36084
|
if (this.parentTreeItem) {
|
|
36229
36085
|
const { expanded } = this.parentTreeItem;
|
|
36230
36086
|
this.updateParentIsExpanded(this.parentTreeItem, expanded);
|
|
@@ -36235,7 +36091,6 @@ class TreeItem {
|
|
|
36235
36091
|
disconnectConditionalSlotComponent(this);
|
|
36236
36092
|
}
|
|
36237
36093
|
componentWillRender() {
|
|
36238
|
-
var _a;
|
|
36239
36094
|
this.hasChildren = !!this.el.querySelector("calcite-tree");
|
|
36240
36095
|
this.depth = 0;
|
|
36241
36096
|
let parentTree = this.el.closest("calcite-tree");
|
|
@@ -36247,7 +36102,7 @@ class TreeItem {
|
|
|
36247
36102
|
this.lines = parentTree.lines;
|
|
36248
36103
|
let nextParentTree;
|
|
36249
36104
|
while (parentTree) {
|
|
36250
|
-
nextParentTree =
|
|
36105
|
+
nextParentTree = parentTree.parentElement?.closest("calcite-tree");
|
|
36251
36106
|
if (nextParentTree === parentTree) {
|
|
36252
36107
|
break;
|
|
36253
36108
|
}
|
|
@@ -36349,7 +36204,7 @@ class TreeItem {
|
|
|
36349
36204
|
case "Home":
|
|
36350
36205
|
root = this.el.closest("calcite-tree:not([child])");
|
|
36351
36206
|
const firstNode = root.querySelector("calcite-tree-item");
|
|
36352
|
-
firstNode
|
|
36207
|
+
firstNode?.focus();
|
|
36353
36208
|
break;
|
|
36354
36209
|
case "End":
|
|
36355
36210
|
root = this.el.closest("calcite-tree:not([child])");
|
|
@@ -36359,7 +36214,7 @@ class TreeItem {
|
|
|
36359
36214
|
currentNode = currentTree.children[root.children.length - 1];
|
|
36360
36215
|
currentTree = nodeListToArray(currentNode.children).find((el) => el.matches("calcite-tree"));
|
|
36361
36216
|
}
|
|
36362
|
-
currentNode
|
|
36217
|
+
currentNode?.focus();
|
|
36363
36218
|
break;
|
|
36364
36219
|
}
|
|
36365
36220
|
}
|
|
@@ -36431,10 +36286,10 @@ function getScreenReaderText(item, status, valueList) {
|
|
|
36431
36286
|
function getHandleAndItemElement(event) {
|
|
36432
36287
|
const handle = event
|
|
36433
36288
|
.composedPath()
|
|
36434
|
-
.find((item) =>
|
|
36289
|
+
.find((item) => item.dataset?.jsHandle !== undefined);
|
|
36435
36290
|
const item = event
|
|
36436
36291
|
.composedPath()
|
|
36437
|
-
.find((item) =>
|
|
36292
|
+
.find((item) => item.tagName?.toLowerCase() === "calcite-value-list-item");
|
|
36438
36293
|
return { handle, item };
|
|
36439
36294
|
}
|
|
36440
36295
|
function replacePlaceholders(text, label, position, total) {
|
|
@@ -36503,7 +36358,7 @@ class ValueList {
|
|
|
36503
36358
|
}
|
|
36504
36359
|
this.items = this.getItems();
|
|
36505
36360
|
this.calciteListOrderChange.emit(this.items.map(({ value }) => value));
|
|
36506
|
-
requestAnimationFrame(() => handle
|
|
36361
|
+
requestAnimationFrame(() => handle?.focus());
|
|
36507
36362
|
item.handleActivated = true;
|
|
36508
36363
|
this.updateHandleAriaLabel(handle, getScreenReaderText(item, "change", this));
|
|
36509
36364
|
};
|
|
@@ -36512,7 +36367,7 @@ class ValueList {
|
|
|
36512
36367
|
};
|
|
36513
36368
|
this.handleFocusIn = (event) => {
|
|
36514
36369
|
const { handle, item } = getHandleAndItemElement(event);
|
|
36515
|
-
if (!
|
|
36370
|
+
if (!item?.handleActivated && item && handle) {
|
|
36516
36371
|
this.updateHandleAriaLabel(handle, getScreenReaderText(item, "idle", this));
|
|
36517
36372
|
}
|
|
36518
36373
|
};
|
|
@@ -36609,8 +36464,7 @@ class ValueList {
|
|
|
36609
36464
|
});
|
|
36610
36465
|
}
|
|
36611
36466
|
cleanUpDragAndDrop() {
|
|
36612
|
-
|
|
36613
|
-
(_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
36467
|
+
this.sortable?.destroy();
|
|
36614
36468
|
this.sortable = null;
|
|
36615
36469
|
}
|
|
36616
36470
|
handleBlur() {
|
|
@@ -36775,9 +36629,8 @@ class ValueListItem {
|
|
|
36775
36629
|
}
|
|
36776
36630
|
/** Set focus on the component. */
|
|
36777
36631
|
async setFocus() {
|
|
36778
|
-
var _a;
|
|
36779
36632
|
await componentLoaded(this);
|
|
36780
|
-
|
|
36633
|
+
this.pickListItem?.setFocus();
|
|
36781
36634
|
}
|
|
36782
36635
|
calciteListItemChangeHandler(event) {
|
|
36783
36636
|
// adjust item payload from wrapped item before bubbling
|