@esri/calcite-components 1.0.0-next.653 → 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-c8946ac4.js → p-0254ac2f.js} +1 -1
- package/dist/calcite/{p-ae684eb2.entry.js → p-050ade87.entry.js} +2 -2
- package/dist/calcite/p-06d5c014.entry.js +6 -0
- package/dist/calcite/{p-a53596e5.js → p-0be6bca1.js} +1 -1
- package/dist/calcite/{p-4296ca3f.js → p-1055bcbe.js} +1 -1
- package/dist/calcite/p-10aa4062.entry.js +6 -0
- package/dist/calcite/{p-f857cfa2.entry.js → p-10d7edd8.entry.js} +2 -2
- package/dist/calcite/{p-8fb7ee35.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-675dfbe8.entry.js → p-2cc5c240.entry.js} +2 -2
- package/dist/calcite/{p-1a859cf5.js → p-33e17f1b.js} +1 -1
- package/dist/calcite/p-35fc7dca.js +6 -0
- package/dist/calcite/{p-98183f7a.js → p-39d090ab.js} +1 -1
- package/dist/calcite/{p-3274abf2.js → p-3a773abe.js} +2 -2
- package/dist/calcite/p-3ce64b5d.js +6 -0
- package/dist/calcite/{p-28884998.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-e1fa408f.js → p-4ca4f558.js} +2 -2
- package/dist/calcite/{p-5bb6cc45.js → p-4cf9ae65.js} +1 -1
- package/dist/calcite/{p-44a78e82.entry.js → p-4fbd47e5.entry.js} +2 -2
- package/dist/calcite/{p-3dc251f4.entry.js → p-51db14be.entry.js} +2 -2
- package/dist/calcite/p-530fdbab.js +6 -0
- package/dist/calcite/{p-74c02e3a.js → p-53c33d4b.js} +3 -3
- package/dist/calcite/{p-49701eee.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-5a953a75.js → p-5ce6006a.js} +1 -1
- package/dist/calcite/{p-6e0ecbed.entry.js → p-6287a7e3.entry.js} +2 -2
- package/dist/calcite/p-63fabfa9.entry.js +6 -0
- package/dist/calcite/{p-e452903d.js → p-69bdbe6c.js} +1 -1
- package/dist/calcite/{p-bff4c20d.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-9e30a932.entry.js → p-72d77198.entry.js} +2 -2
- package/dist/calcite/{p-2ec7c680.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-a1a81de3.entry.js → p-7d21ff63.entry.js} +2 -2
- package/dist/calcite/{p-0a1f589a.js → p-7e574772.js} +2 -2
- package/dist/calcite/p-822cfd4f.entry.js +6 -0
- package/dist/calcite/{p-1cdae83d.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-220b7569.entry.js → p-96c90357.entry.js} +2 -2
- package/dist/calcite/p-99003334.entry.js +6 -0
- package/dist/calcite/{p-dee6d536.js → p-9bc4d2e7.js} +2 -2
- package/dist/calcite/{p-797fd5dd.entry.js → p-9c4fe712.entry.js} +2 -2
- package/dist/calcite/p-a3b5d915.entry.js +6 -0
- package/dist/calcite/p-a3ba6aef.entry.js +6 -0
- package/dist/calcite/{p-406fcc95.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-e2f5256c.entry.js → p-aa620a9f.entry.js} +2 -2
- package/dist/calcite/p-ade56eab.js +6 -0
- package/dist/calcite/{p-048b7796.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-1e7d0a3e.entry.js → p-c3502aba.entry.js} +2 -2
- package/dist/calcite/{p-36046779.js → p-c6f8fd3f.js} +1 -1
- package/dist/calcite/{p-4869c10e.js → p-c8db295e.js} +2 -2
- package/dist/calcite/{p-24c048b5.js → p-ceb691f9.js} +1 -1
- package/dist/calcite/p-d4313c1c.js +6 -0
- package/dist/calcite/{p-d849b5b6.entry.js → p-d8790ccd.entry.js} +2 -2
- package/dist/calcite/{p-b567d164.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-d5e70d38.entry.js → p-e27d22a3.entry.js} +2 -2
- package/dist/calcite/{p-b0cecf6b.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-627cd0ab.entry.js → p-e734a9bd.entry.js} +2 -2
- package/dist/calcite/p-e94dd8f6.entry.js +6 -0
- package/dist/calcite/{p-b9184c58.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-8d248ee3.js → ExpandToggle-6b439626.js} +7 -8
- package/dist/cjs/{Heading-dd6d6eb7.js → Heading-ceb4f2b6.js} +2 -2
- package/dist/cjs/{app-globals-35dd7e0f.js → app-globals-abf96af0.js} +2 -2
- package/dist/cjs/{array-bc2da329.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 +11 -12
- 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 +4 -4
- package/dist/cjs/{conditionalSlot-d2dd31d5.js → conditionalSlot-a875fe2d.js} +3 -3
- package/dist/cjs/{debounce-fec2cc26.js → debounce-d3347e7f.js} +1 -1
- package/dist/cjs/{dom-8db20575.js → dom-f3870c02.js} +13 -13
- package/dist/cjs/{filter-4951900a.js → filter-bfb93506.js} +3 -3
- package/dist/cjs/{floating-ui-16ec7ef7.js → floating-ui-3c7d9b63.js} +7 -8
- package/dist/cjs/{focusTrapComponent-1f7ac746.js → focusTrapComponent-feb51e35.js} +4 -6
- package/dist/cjs/{form-df338099.js → form-6fbeeffb.js} +5 -7
- package/dist/cjs/{guid-7c9bf705.js → guid-01d6fefc.js} +1 -1
- package/dist/cjs/{index-11cbd6ae.js → index-483dbe04.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-12572356.js → interactive-134aafb0.js} +1 -1
- package/dist/cjs/{interfaces-bcf5a504.js → interfaces-0cb162a3.js} +1 -1
- package/dist/cjs/{key-5efe25db.js → key-64fe2d0d.js} +1 -1
- package/dist/cjs/{label-f2b57841.js → label-bb7baad0.js} +4 -5
- package/dist/cjs/{loadable-fdc027c5.js → loadable-9ea89e06.js} +1 -1
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-ad2e4def.js → locale-66bb4c04.js} +7 -8
- package/dist/cjs/{math-e3bf7036.js → math-168daa90.js} +1 -1
- package/dist/cjs/{nonChromiumPlatformUtils-ee7586d2.js → nonChromiumPlatformUtils-a8326836.js} +6 -6
- package/dist/cjs/{observers-1cb80ad6.js → observers-265cc6fd.js} +1 -1
- package/dist/cjs/{openCloseComponent-42ea9fde.js → openCloseComponent-86d66b5f.js} +1 -1
- package/dist/cjs/{resources-f5a03517.js → resources-4d34f5ad.js} +1 -1
- package/dist/cjs/{resources-e6605c29.js → resources-56adcab5.js} +1 -1
- package/dist/cjs/{resources-01342a2b.js → resources-94f83bb6.js} +11 -16
- package/dist/cjs/{resources-125245bd.js → resources-ad99e815.js} +1 -1
- package/dist/cjs/{resources-883ffa52.js → resources-e280f675.js} +3 -3
- package/dist/cjs/{resources-61c779db.js → resources-e34dd4ef.js} +1 -1
- package/dist/cjs/{sortable.esm-ec7f83ae.js → sortable.esm-a516af47.js} +1 -1
- package/dist/cjs/{utils-727a0b8e.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.js +1 -1
- 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 +1 -1
- 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-3ec34795.js → ExpandToggle-7995a4b7.js} +7 -8
- package/dist/esm/{Heading-f71bbfe4.js → Heading-9e7e60aa.js} +2 -2
- package/dist/esm/{app-globals-61e0f5bb.js → app-globals-be068759.js} +2 -2
- package/dist/esm/{array-f3af604a.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 +11 -12
- 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 +4 -4
- package/dist/esm/{conditionalSlot-be35718d.js → conditionalSlot-264302f2.js} +3 -3
- package/dist/esm/{debounce-511eda6a.js → debounce-97af721b.js} +1 -1
- package/dist/esm/{dom-3d0a39a1.js → dom-e83e3685.js} +13 -13
- package/dist/esm/{filter-275e53f4.js → filter-74f44357.js} +3 -3
- package/dist/esm/{floating-ui-fc56a23b.js → floating-ui-a46ce22a.js} +7 -8
- package/dist/esm/{focusTrapComponent-2dcf390f.js → focusTrapComponent-976fba1d.js} +4 -6
- package/dist/esm/{form-99c3afb4.js → form-e64648c7.js} +5 -7
- package/dist/esm/{guid-b0902c5e.js → guid-d9ecc494.js} +1 -1
- package/dist/esm/{index-a3e37dea.js → index-83004828.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-ee12cb1f.js → interactive-9e6a5f71.js} +1 -1
- package/dist/esm/{interfaces-461b2615.js → interfaces-b1d9177f.js} +1 -1
- package/dist/esm/{key-26613542.js → key-06b23960.js} +1 -1
- package/dist/esm/{label-b9c0aa89.js → label-e92abdfa.js} +4 -5
- package/dist/esm/{loadable-9a013351.js → loadable-0c46daa0.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{locale-35d09242.js → locale-4983f5d8.js} +7 -8
- package/dist/esm/{math-5fdb35a6.js → math-3122e153.js} +1 -1
- package/dist/esm/{nonChromiumPlatformUtils-928c5ed3.js → nonChromiumPlatformUtils-238e88ad.js} +6 -6
- package/dist/esm/{observers-1bc07c7a.js → observers-89a35a75.js} +1 -1
- package/dist/esm/{openCloseComponent-1a0f1e5f.js → openCloseComponent-fdff8486.js} +1 -1
- package/dist/esm/{resources-fd9aac1d.js → resources-2e32226e.js} +11 -16
- package/dist/esm/{resources-52b91f29.js → resources-35e36c39.js} +1 -1
- package/dist/esm/{resources-0440659e.js → resources-36963763.js} +1 -1
- package/dist/esm/{resources-205e1a5e.js → resources-3a95b40f.js} +3 -3
- package/dist/esm/{resources-a1b41b10.js → resources-812152a0.js} +1 -1
- package/dist/esm/{resources-9c2b241b.js → resources-edac802c.js} +1 -1
- package/dist/esm/{sortable.esm-a20e5345.js → sortable.esm-ac2f32ed.js} +1 -1
- package/dist/esm/{utils-a06ba7b4.js → utils-1cddbae1.js} +2 -2
- package/dist/extras/docs-json.json +2 -2
- 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/hydrate/index.js +252 -392
- package/package.json +1 -1
- package/dist/calcite/p-01182fb3.entry.js +0 -6
- package/dist/calcite/p-01cdb480.entry.js +0 -6
- package/dist/calcite/p-0bf47b10.entry.js +0 -6
- package/dist/calcite/p-0fe25017.entry.js +0 -6
- package/dist/calcite/p-169a8a94.entry.js +0 -6
- package/dist/calcite/p-25ca3105.entry.js +0 -6
- package/dist/calcite/p-272fc5c7.entry.js +0 -6
- package/dist/calcite/p-2a4269f0.entry.js +0 -6
- package/dist/calcite/p-2d6e9def.entry.js +0 -6
- package/dist/calcite/p-377b89a4.entry.js +0 -6
- package/dist/calcite/p-3e45b099.entry.js +0 -6
- package/dist/calcite/p-4331211c.js +0 -6
- package/dist/calcite/p-47aa3608.entry.js +0 -6
- package/dist/calcite/p-47f53948.js +0 -6
- package/dist/calcite/p-49a74b3e.js +0 -6
- package/dist/calcite/p-4ee5ad79.js +0 -6
- package/dist/calcite/p-50755b97.entry.js +0 -6
- package/dist/calcite/p-5a715918.entry.js +0 -6
- package/dist/calcite/p-5dd53e64.js +0 -6
- package/dist/calcite/p-5fcff767.entry.js +0 -6
- package/dist/calcite/p-60967994.entry.js +0 -6
- package/dist/calcite/p-6653a04c.entry.js +0 -6
- package/dist/calcite/p-6d2cb8f4.entry.js +0 -6
- package/dist/calcite/p-761d2432.entry.js +0 -6
- package/dist/calcite/p-798770da.entry.js +0 -6
- package/dist/calcite/p-7de16322.entry.js +0 -6
- package/dist/calcite/p-88a03f41.entry.js +0 -6
- package/dist/calcite/p-8e4e1bf2.entry.js +0 -6
- package/dist/calcite/p-90e5f7d2.entry.js +0 -6
- package/dist/calcite/p-95d84aec.entry.js +0 -6
- package/dist/calcite/p-9be255ca.entry.js +0 -6
- package/dist/calcite/p-9dd2a286.js +0 -6
- package/dist/calcite/p-9e30d06b.entry.js +0 -6
- package/dist/calcite/p-a3da6c86.entry.js +0 -6
- package/dist/calcite/p-a4a63866.js +0 -6
- package/dist/calcite/p-b52accff.entry.js +0 -6
- package/dist/calcite/p-b858d734.entry.js +0 -6
- package/dist/calcite/p-c1792c48.entry.js +0 -6
- package/dist/calcite/p-c56796e6.entry.js +0 -6
- package/dist/calcite/p-c881f4fc.js +0 -6
- package/dist/calcite/p-c8b9c903.entry.js +0 -6
- package/dist/calcite/p-cce9a30d.entry.js +0 -6
- package/dist/calcite/p-cd5323d3.entry.js +0 -6
- package/dist/calcite/p-d16cee95.entry.js +0 -6
- package/dist/calcite/p-df1e5c64.entry.js +0 -6
- package/dist/calcite/p-e86f837e.js +0 -6
- package/dist/calcite/p-f00cdd90.entry.js +0 -6
- package/dist/calcite/p-f7fffa4a.entry.js +0 -6
- package/dist/calcite/p-fafa19e5.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
|
//
|
|
@@ -27988,8 +27885,7 @@ class Rating {
|
|
|
27988
27885
|
}
|
|
27989
27886
|
render() {
|
|
27990
27887
|
const { disabled, intlRating, showChip, scale, count, average } = this;
|
|
27991
|
-
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
|
|
27992
|
-
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 })));
|
|
27993
27889
|
}
|
|
27994
27890
|
//--------------------------------------------------------------------------
|
|
27995
27891
|
//
|
|
@@ -28010,9 +27906,8 @@ class Rating {
|
|
|
28010
27906
|
//--------------------------------------------------------------------------
|
|
28011
27907
|
/** Sets focus on the component. */
|
|
28012
27908
|
async setFocus() {
|
|
28013
|
-
var _a;
|
|
28014
27909
|
await componentLoaded(this);
|
|
28015
|
-
|
|
27910
|
+
this.inputFocusRef?.focus();
|
|
28016
27911
|
}
|
|
28017
27912
|
get el() { return getElement(this); }
|
|
28018
27913
|
static get style() { return ratingCss; }
|
|
@@ -28119,7 +28014,7 @@ class Select {
|
|
|
28119
28014
|
this.populateInternalSelect = () => {
|
|
28120
28015
|
const optionsAndGroups = Array.from(this.el.children).filter((child) => child.tagName === "CALCITE-OPTION" || child.tagName === "CALCITE-OPTION-GROUP");
|
|
28121
28016
|
this.clearInternalSelect();
|
|
28122
|
-
optionsAndGroups.forEach((optionOrGroup) =>
|
|
28017
|
+
optionsAndGroups.forEach((optionOrGroup) => this.selectEl?.append(this.toNativeElement(optionOrGroup)));
|
|
28123
28018
|
};
|
|
28124
28019
|
this.storeSelectRef = (node) => {
|
|
28125
28020
|
this.selectEl = node;
|
|
@@ -28144,7 +28039,7 @@ class Select {
|
|
|
28144
28039
|
items.forEach((item) => (item.selected = item.value === value));
|
|
28145
28040
|
}
|
|
28146
28041
|
selectedOptionHandler(selectedOption) {
|
|
28147
|
-
this.value = selectedOption
|
|
28042
|
+
this.value = selectedOption?.value;
|
|
28148
28043
|
}
|
|
28149
28044
|
//--------------------------------------------------------------------------
|
|
28150
28045
|
//
|
|
@@ -28152,9 +28047,8 @@ class Select {
|
|
|
28152
28047
|
//
|
|
28153
28048
|
//--------------------------------------------------------------------------
|
|
28154
28049
|
connectedCallback() {
|
|
28155
|
-
var _a;
|
|
28156
28050
|
const { el } = this;
|
|
28157
|
-
|
|
28051
|
+
this.mutationObserver?.observe(el, {
|
|
28158
28052
|
subtree: true,
|
|
28159
28053
|
childList: true
|
|
28160
28054
|
});
|
|
@@ -28162,8 +28056,7 @@ class Select {
|
|
|
28162
28056
|
connectForm(this);
|
|
28163
28057
|
}
|
|
28164
28058
|
disconnectedCallback() {
|
|
28165
|
-
|
|
28166
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
28059
|
+
this.mutationObserver?.disconnect();
|
|
28167
28060
|
disconnectLabel(this);
|
|
28168
28061
|
disconnectForm(this);
|
|
28169
28062
|
}
|
|
@@ -28171,9 +28064,8 @@ class Select {
|
|
|
28171
28064
|
setUpLoadableComponent(this);
|
|
28172
28065
|
}
|
|
28173
28066
|
componentDidLoad() {
|
|
28174
|
-
var _a, _b;
|
|
28175
28067
|
setComponentLoaded(this);
|
|
28176
|
-
afterConnectDefaultValueSet(this,
|
|
28068
|
+
afterConnectDefaultValueSet(this, this.selectedOption?.value ?? "");
|
|
28177
28069
|
}
|
|
28178
28070
|
componentDidRender() {
|
|
28179
28071
|
updateHostInteraction(this);
|
|
@@ -28439,7 +28331,7 @@ class ShellCenterRow {
|
|
|
28439
28331
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
28440
28332
|
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$b.actionBarContainer, key: "action-bar" }, hAsync("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
28441
28333
|
const children = [actionBarNode, contentNode];
|
|
28442
|
-
if (
|
|
28334
|
+
if (actionBar?.position === "end") {
|
|
28443
28335
|
children.reverse();
|
|
28444
28336
|
}
|
|
28445
28337
|
return hAsync(Fragment, null, children);
|
|
@@ -28566,8 +28458,7 @@ class ShellPanel {
|
|
|
28566
28458
|
document.removeEventListener("pointermove", this.separatorPointerMove);
|
|
28567
28459
|
};
|
|
28568
28460
|
this.setInitialContentWidth = () => {
|
|
28569
|
-
|
|
28570
|
-
this.initialContentWidth = (_a = this.contentEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width;
|
|
28461
|
+
this.initialContentWidth = this.contentEl?.getBoundingClientRect().width;
|
|
28571
28462
|
};
|
|
28572
28463
|
this.separatorPointerDown = (event) => {
|
|
28573
28464
|
if (!isPrimaryPointerButton(event)) {
|
|
@@ -28587,8 +28478,7 @@ class ShellPanel {
|
|
|
28587
28478
|
separatorEl.addEventListener("pointerdown", this.separatorPointerDown);
|
|
28588
28479
|
};
|
|
28589
28480
|
this.disconnectSeparator = () => {
|
|
28590
|
-
|
|
28591
|
-
(_a = this.separatorEl) === null || _a === void 0 ? void 0 : _a.removeEventListener("pointerdown", this.separatorPointerDown);
|
|
28481
|
+
this.separatorEl?.removeEventListener("pointerdown", this.separatorPointerDown);
|
|
28592
28482
|
};
|
|
28593
28483
|
this.collapsed = false;
|
|
28594
28484
|
this.detached = false;
|
|
@@ -28628,7 +28518,7 @@ class ShellPanel {
|
|
|
28628
28518
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
28629
28519
|
const allowResizing = !detached && resizable;
|
|
28630
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))));
|
|
28631
|
-
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;
|
|
28632
28522
|
const actionBarNode = hAsync("slot", { key: "action-bar", name: SLOTS$5.actionBar });
|
|
28633
28523
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
28634
28524
|
if (position === "end") {
|
|
@@ -29131,7 +29021,7 @@ class Slider {
|
|
|
29131
29021
|
async setFocus() {
|
|
29132
29022
|
await componentLoaded(this);
|
|
29133
29023
|
const handle = this.minHandle ? this.minHandle : this.maxHandle;
|
|
29134
|
-
handle
|
|
29024
|
+
handle?.focus();
|
|
29135
29025
|
}
|
|
29136
29026
|
//--------------------------------------------------------------------------
|
|
29137
29027
|
//
|
|
@@ -32592,15 +32482,13 @@ class SortableList {
|
|
|
32592
32482
|
this.beginObserving();
|
|
32593
32483
|
}
|
|
32594
32484
|
disconnectedCallback() {
|
|
32595
|
-
|
|
32596
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
32485
|
+
this.mutationObserver?.disconnect();
|
|
32597
32486
|
this.cleanUpDragAndDrop();
|
|
32598
32487
|
}
|
|
32599
32488
|
componentDidRender() {
|
|
32600
32489
|
updateHostInteraction(this);
|
|
32601
32490
|
}
|
|
32602
32491
|
calciteHandleNudgeHandler(event) {
|
|
32603
|
-
var _a;
|
|
32604
32492
|
const sortItem = this.items.find((item) => {
|
|
32605
32493
|
return item.contains(event.detail.handle) || event.composedPath().includes(item);
|
|
32606
32494
|
});
|
|
@@ -32633,7 +32521,7 @@ class SortableList {
|
|
|
32633
32521
|
default:
|
|
32634
32522
|
return;
|
|
32635
32523
|
}
|
|
32636
|
-
|
|
32524
|
+
this.mutationObserver?.disconnect();
|
|
32637
32525
|
if (appendInstead) {
|
|
32638
32526
|
sortItem.parentElement.appendChild(sortItem);
|
|
32639
32527
|
}
|
|
@@ -32663,8 +32551,7 @@ class SortableList {
|
|
|
32663
32551
|
},
|
|
32664
32552
|
// Element dragging started
|
|
32665
32553
|
onStart: () => {
|
|
32666
|
-
|
|
32667
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
32554
|
+
this.mutationObserver?.disconnect();
|
|
32668
32555
|
},
|
|
32669
32556
|
// Element dragging ended
|
|
32670
32557
|
onEnd: () => {
|
|
@@ -32677,13 +32564,11 @@ class SortableList {
|
|
|
32677
32564
|
this.sortable = Sortable.create(this.el, options);
|
|
32678
32565
|
}
|
|
32679
32566
|
cleanUpDragAndDrop() {
|
|
32680
|
-
|
|
32681
|
-
(_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
32567
|
+
this.sortable?.destroy();
|
|
32682
32568
|
this.sortable = null;
|
|
32683
32569
|
}
|
|
32684
32570
|
beginObserving() {
|
|
32685
|
-
|
|
32686
|
-
(_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 });
|
|
32687
32572
|
}
|
|
32688
32573
|
// --------------------------------------------------------------------------
|
|
32689
32574
|
//
|
|
@@ -32868,7 +32753,7 @@ class Stepper {
|
|
|
32868
32753
|
return (hAsync("slot", { onSlotchange: (event) => {
|
|
32869
32754
|
const items = event.currentTarget
|
|
32870
32755
|
.assignedElements()
|
|
32871
|
-
.filter((el) =>
|
|
32756
|
+
.filter((el) => el?.tagName === "CALCITE-STEPPER-ITEM");
|
|
32872
32757
|
const spacing = Array(items.length).fill("1fr").join(" ");
|
|
32873
32758
|
this.el.style.gridTemplateAreas = spacing;
|
|
32874
32759
|
this.el.style.gridTemplateColumns = spacing;
|
|
@@ -32989,10 +32874,9 @@ class Stepper {
|
|
|
32989
32874
|
//
|
|
32990
32875
|
//--------------------------------------------------------------------------
|
|
32991
32876
|
getEnabledStepIndex(startIndex, direction = "next") {
|
|
32992
|
-
var _a;
|
|
32993
32877
|
const { items, currentPosition } = this;
|
|
32994
32878
|
let newIndex = startIndex;
|
|
32995
|
-
while (
|
|
32879
|
+
while (items[newIndex]?.disabled) {
|
|
32996
32880
|
newIndex = newIndex + (direction === "previous" ? -1 : 1);
|
|
32997
32881
|
}
|
|
32998
32882
|
return newIndex !== currentPosition && newIndex < items.length && newIndex >= 0
|
|
@@ -33097,7 +32981,7 @@ class StepperItem {
|
|
|
33097
32981
|
if (this.layout === "horizontal" &&
|
|
33098
32982
|
event
|
|
33099
32983
|
.composedPath()
|
|
33100
|
-
.some((el) =>
|
|
32984
|
+
.some((el) => el.classList?.contains("stepper-item-content"))) {
|
|
33101
32985
|
return;
|
|
33102
32986
|
}
|
|
33103
32987
|
this.emitUserRequestedItem();
|
|
@@ -33148,10 +33032,9 @@ class StepperItem {
|
|
|
33148
33032
|
this.registerStepperItem();
|
|
33149
33033
|
}
|
|
33150
33034
|
effectiveLocaleWatcher(locale) {
|
|
33151
|
-
var _a;
|
|
33152
33035
|
numberStringFormatter.numberFormatOptions = {
|
|
33153
33036
|
locale,
|
|
33154
|
-
numberingSystem:
|
|
33037
|
+
numberingSystem: this.parentStepperEl?.numberingSystem,
|
|
33155
33038
|
useGrouping: false
|
|
33156
33039
|
};
|
|
33157
33040
|
}
|
|
@@ -33171,7 +33054,6 @@ class StepperItem {
|
|
|
33171
33054
|
}
|
|
33172
33055
|
}
|
|
33173
33056
|
componentWillLoad() {
|
|
33174
|
-
var _a;
|
|
33175
33057
|
setUpLoadableComponent(this);
|
|
33176
33058
|
this.icon = getElementProp(this.el, "icon", false);
|
|
33177
33059
|
this.numbered = getElementProp(this.el, "numbered", false);
|
|
@@ -33185,7 +33067,7 @@ class StepperItem {
|
|
|
33185
33067
|
}
|
|
33186
33068
|
numberStringFormatter.numberFormatOptions = {
|
|
33187
33069
|
locale: this.effectiveLocale,
|
|
33188
|
-
numberingSystem:
|
|
33070
|
+
numberingSystem: this.parentStepperEl?.numberingSystem,
|
|
33189
33071
|
useGrouping: false
|
|
33190
33072
|
};
|
|
33191
33073
|
}
|
|
@@ -33221,9 +33103,8 @@ class StepperItem {
|
|
|
33221
33103
|
//
|
|
33222
33104
|
//--------------------------------------------------------------------------
|
|
33223
33105
|
async setFocus() {
|
|
33224
|
-
var _a;
|
|
33225
33106
|
await componentLoaded(this);
|
|
33226
|
-
(
|
|
33107
|
+
(this.layout === "vertical" ? this.el : this.headerEl)?.focus();
|
|
33227
33108
|
}
|
|
33228
33109
|
renderIcon() {
|
|
33229
33110
|
const path = this.selected
|
|
@@ -33244,8 +33125,7 @@ class StepperItem {
|
|
|
33244
33125
|
});
|
|
33245
33126
|
}
|
|
33246
33127
|
getItemPosition() {
|
|
33247
|
-
|
|
33248
|
-
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);
|
|
33249
33129
|
}
|
|
33250
33130
|
get el() { return getElement(this); }
|
|
33251
33131
|
static get watchers() { return {
|
|
@@ -33439,13 +33319,11 @@ class Tab {
|
|
|
33439
33319
|
this.calciteInternalTabRegister.emit();
|
|
33440
33320
|
}
|
|
33441
33321
|
componentWillRender() {
|
|
33442
|
-
|
|
33443
|
-
this.scale = (_a = this.parentTabsEl) === null || _a === void 0 ? void 0 : _a.scale;
|
|
33322
|
+
this.scale = this.parentTabsEl?.scale;
|
|
33444
33323
|
}
|
|
33445
33324
|
disconnectedCallback() {
|
|
33446
|
-
var _a;
|
|
33447
33325
|
// Dispatching to body in order to be listened by other elements that are still connected to the DOM.
|
|
33448
|
-
|
|
33326
|
+
document.body?.dispatchEvent(new CustomEvent("calciteTabUnregister", {
|
|
33449
33327
|
detail: this.el
|
|
33450
33328
|
}));
|
|
33451
33329
|
}
|
|
@@ -33540,7 +33418,7 @@ class TabNav {
|
|
|
33540
33418
|
//
|
|
33541
33419
|
//--------------------------------------------------------------------------
|
|
33542
33420
|
this.handleTabFocus = (event, tabTitle) => {
|
|
33543
|
-
tabTitle
|
|
33421
|
+
tabTitle?.focus();
|
|
33544
33422
|
event.stopPropagation();
|
|
33545
33423
|
event.preventDefault();
|
|
33546
33424
|
};
|
|
@@ -33584,13 +33462,11 @@ class TabNav {
|
|
|
33584
33462
|
//
|
|
33585
33463
|
//--------------------------------------------------------------------------
|
|
33586
33464
|
connectedCallback() {
|
|
33587
|
-
var _a;
|
|
33588
33465
|
this.parentTabsEl = this.el.closest("calcite-tabs");
|
|
33589
|
-
|
|
33466
|
+
this.resizeObserver?.observe(this.el);
|
|
33590
33467
|
}
|
|
33591
33468
|
disconnectedCallback() {
|
|
33592
|
-
|
|
33593
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
33469
|
+
this.resizeObserver?.disconnect();
|
|
33594
33470
|
}
|
|
33595
33471
|
componentWillLoad() {
|
|
33596
33472
|
const storageKey = `calcite-tab-nav-${this.storageId}`;
|
|
@@ -33601,10 +33477,10 @@ class TabNav {
|
|
|
33601
33477
|
}
|
|
33602
33478
|
componentWillRender() {
|
|
33603
33479
|
const { parentTabsEl } = this;
|
|
33604
|
-
this.layout = parentTabsEl
|
|
33605
|
-
this.position = parentTabsEl
|
|
33606
|
-
this.scale = parentTabsEl
|
|
33607
|
-
this.bordered = parentTabsEl
|
|
33480
|
+
this.layout = parentTabsEl?.layout;
|
|
33481
|
+
this.position = parentTabsEl?.position;
|
|
33482
|
+
this.scale = parentTabsEl?.scale;
|
|
33483
|
+
this.bordered = parentTabsEl?.bordered;
|
|
33608
33484
|
// fix issue with active tab-title not lining up with blue indicator
|
|
33609
33485
|
if (this.selectedTabEl) {
|
|
33610
33486
|
this.updateOffsetPosition();
|
|
@@ -33686,18 +33562,16 @@ class TabNav {
|
|
|
33686
33562
|
this.updateActiveWidth();
|
|
33687
33563
|
}
|
|
33688
33564
|
updateOffsetPosition() {
|
|
33689
|
-
var _a, _b, _c, _d, _e;
|
|
33690
33565
|
const dir = getElementDir(this.el);
|
|
33691
|
-
const navWidth =
|
|
33692
|
-
const tabLeft =
|
|
33693
|
-
const tabWidth =
|
|
33566
|
+
const navWidth = this.activeIndicatorContainerEl?.offsetWidth;
|
|
33567
|
+
const tabLeft = this.selectedTabEl?.offsetLeft;
|
|
33568
|
+
const tabWidth = this.selectedTabEl?.offsetWidth;
|
|
33694
33569
|
const offsetRight = navWidth - (tabLeft + tabWidth);
|
|
33695
33570
|
this.indicatorOffset =
|
|
33696
|
-
dir !== "rtl" ? tabLeft -
|
|
33571
|
+
dir !== "rtl" ? tabLeft - this.tabNavEl?.scrollLeft : offsetRight + this.tabNavEl?.scrollLeft;
|
|
33697
33572
|
}
|
|
33698
33573
|
updateActiveWidth() {
|
|
33699
|
-
|
|
33700
|
-
this.indicatorWidth = (_a = this.selectedTabEl) === null || _a === void 0 ? void 0 : _a.offsetWidth;
|
|
33574
|
+
this.indicatorWidth = this.selectedTabEl?.offsetWidth;
|
|
33701
33575
|
}
|
|
33702
33576
|
getIndexOfTabTitle(el, tabTitles = this.tabTitles) {
|
|
33703
33577
|
// In most cases, since these indexes correlate with tab contents, we want to consider all tab titles.
|
|
@@ -33808,13 +33682,12 @@ class TabTitle {
|
|
|
33808
33682
|
this.parentTabsEl = this.el.closest("calcite-tabs");
|
|
33809
33683
|
}
|
|
33810
33684
|
disconnectedCallback() {
|
|
33811
|
-
|
|
33812
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
33685
|
+
this.mutationObserver?.disconnect();
|
|
33813
33686
|
// Dispatching to body in order to be listened by other elements that are still connected to the DOM.
|
|
33814
|
-
|
|
33687
|
+
document.body?.dispatchEvent(new CustomEvent("calciteTabTitleUnregister", {
|
|
33815
33688
|
detail: this.el
|
|
33816
33689
|
}));
|
|
33817
|
-
|
|
33690
|
+
this.resizeObserver?.disconnect();
|
|
33818
33691
|
}
|
|
33819
33692
|
componentWillLoad() {
|
|
33820
33693
|
if (this.tab && this.selected) {
|
|
@@ -33841,7 +33714,7 @@ class TabTitle {
|
|
|
33841
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: {
|
|
33842
33715
|
container: true,
|
|
33843
33716
|
"container--has-text": this.hasText
|
|
33844
|
-
}, ref: (el) =>
|
|
33717
|
+
}, ref: (el) => this.resizeObserver?.observe(el) }, this.iconStart ? iconStartEl : null, hAsync("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
33845
33718
|
}
|
|
33846
33719
|
async componentDidLoad() {
|
|
33847
33720
|
this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier());
|
|
@@ -33940,8 +33813,7 @@ class TabTitle {
|
|
|
33940
33813
|
this.hasText = this.el.textContent.trim().length > 0;
|
|
33941
33814
|
}
|
|
33942
33815
|
setupTextContentObserver() {
|
|
33943
|
-
|
|
33944
|
-
(_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 });
|
|
33945
33817
|
}
|
|
33946
33818
|
emitActiveTab(userTriggered = true) {
|
|
33947
33819
|
if (this.disabled) {
|
|
@@ -34253,9 +34125,8 @@ class TileSelect {
|
|
|
34253
34125
|
//--------------------------------------------------------------------------
|
|
34254
34126
|
/** Sets focus on the component. */
|
|
34255
34127
|
async setFocus() {
|
|
34256
|
-
var _a;
|
|
34257
34128
|
await componentLoaded(this);
|
|
34258
|
-
|
|
34129
|
+
this.input?.setFocus();
|
|
34259
34130
|
}
|
|
34260
34131
|
//--------------------------------------------------------------------------
|
|
34261
34132
|
//
|
|
@@ -34794,7 +34665,6 @@ class TimePicker {
|
|
|
34794
34665
|
}
|
|
34795
34666
|
};
|
|
34796
34667
|
this.setValuePart = (key, value, emit = true) => {
|
|
34797
|
-
var _a;
|
|
34798
34668
|
const { effectiveLocale: locale, numberingSystem } = this;
|
|
34799
34669
|
if (key === "meridiem") {
|
|
34800
34670
|
this.meridiem = value;
|
|
@@ -34837,7 +34707,8 @@ class TimePicker {
|
|
|
34837
34707
|
this.value = null;
|
|
34838
34708
|
}
|
|
34839
34709
|
this.localizedMeridiem = this.value
|
|
34840
|
-
?
|
|
34710
|
+
? localizeTimeStringToParts({ value: this.value, locale, numberingSystem })
|
|
34711
|
+
?.localizedMeridiem || null
|
|
34841
34712
|
: localizeTimePart({ value: this.meridiem, part: "meridiem", locale, numberingSystem });
|
|
34842
34713
|
if (emit) {
|
|
34843
34714
|
this.calciteInternalTimePickerChange.emit();
|
|
@@ -34966,9 +34837,8 @@ class TimePicker {
|
|
|
34966
34837
|
* @param target
|
|
34967
34838
|
*/
|
|
34968
34839
|
async setFocus(target) {
|
|
34969
|
-
var _a;
|
|
34970
34840
|
await componentLoaded(this);
|
|
34971
|
-
|
|
34841
|
+
this[`${target || "hour"}El`]?.focus();
|
|
34972
34842
|
}
|
|
34973
34843
|
// --------------------------------------------------------------------------
|
|
34974
34844
|
//
|
|
@@ -35193,9 +35063,8 @@ class Tip {
|
|
|
35193
35063
|
//
|
|
35194
35064
|
// --------------------------------------------------------------------------
|
|
35195
35065
|
renderHeader() {
|
|
35196
|
-
var _a;
|
|
35197
35066
|
const { heading, headingLevel, el } = this;
|
|
35198
|
-
const parentLevel =
|
|
35067
|
+
const parentLevel = el.closest("calcite-tip-manager")?.headingLevel;
|
|
35199
35068
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
35200
35069
|
const level = headingLevel || relativeLevel;
|
|
35201
35070
|
return heading ? (hAsync("header", { class: CSS$4.header }, hAsync(Heading, { class: CSS$4.heading, level: level }, heading))) : null;
|
|
@@ -35361,13 +35230,11 @@ class TipManager {
|
|
|
35361
35230
|
//
|
|
35362
35231
|
// --------------------------------------------------------------------------
|
|
35363
35232
|
connectedCallback() {
|
|
35364
|
-
var _a;
|
|
35365
35233
|
this.setUpTips();
|
|
35366
|
-
|
|
35234
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
35367
35235
|
}
|
|
35368
35236
|
disconnectedCallback() {
|
|
35369
|
-
|
|
35370
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
35237
|
+
this.mutationObserver?.disconnect();
|
|
35371
35238
|
}
|
|
35372
35239
|
// --------------------------------------------------------------------------
|
|
35373
35240
|
//
|
|
@@ -35416,7 +35283,7 @@ class TipManager {
|
|
|
35416
35283
|
updateGroupTitle() {
|
|
35417
35284
|
const selectedTip = this.tips[this.selectedIndex];
|
|
35418
35285
|
const tipParent = selectedTip.closest("calcite-tip-group");
|
|
35419
|
-
this.groupTitle =
|
|
35286
|
+
this.groupTitle = tipParent?.groupTitle || this.intlDefaultTitle || TEXT.defaultGroupTitle;
|
|
35420
35287
|
}
|
|
35421
35288
|
// --------------------------------------------------------------------------
|
|
35422
35289
|
//
|
|
@@ -35522,7 +35389,7 @@ class TooltipManager {
|
|
|
35522
35389
|
}
|
|
35523
35390
|
const clickedTooltip = this.queryTooltip(event.composedPath());
|
|
35524
35391
|
this.clickedTooltip = clickedTooltip;
|
|
35525
|
-
if (clickedTooltip
|
|
35392
|
+
if (clickedTooltip?.closeOnClick) {
|
|
35526
35393
|
this.toggleTooltip(clickedTooltip, false);
|
|
35527
35394
|
this.clearHoverTimeout(clickedTooltip);
|
|
35528
35395
|
}
|
|
@@ -35844,7 +35711,7 @@ class Tooltip {
|
|
|
35844
35711
|
}
|
|
35845
35712
|
|
|
35846
35713
|
function isTreeItem(element) {
|
|
35847
|
-
return element
|
|
35714
|
+
return element?.matches("calcite-tree-item");
|
|
35848
35715
|
}
|
|
35849
35716
|
function getEnabledSiblingItem(el, direction) {
|
|
35850
35717
|
const directionProp = direction === "down" ? "nextElementSibling" : "previousElementSibling";
|
|
@@ -35880,8 +35747,7 @@ class Tree {
|
|
|
35880
35747
|
//
|
|
35881
35748
|
//--------------------------------------------------------------------------
|
|
35882
35749
|
componentWillRender() {
|
|
35883
|
-
|
|
35884
|
-
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");
|
|
35885
35751
|
this.lines = parent ? parent.lines : this.lines;
|
|
35886
35752
|
this.scale = parent ? parent.scale : this.scale;
|
|
35887
35753
|
this.selectionMode = parent ? parent.selectionMode : this.selectionMode;
|
|
@@ -35998,7 +35864,6 @@ class Tree {
|
|
|
35998
35864
|
event.stopPropagation();
|
|
35999
35865
|
}
|
|
36000
35866
|
keyDownHandler(event) {
|
|
36001
|
-
var _a;
|
|
36002
35867
|
const root = this.el.closest("calcite-tree:not([child])");
|
|
36003
35868
|
const target = event.target;
|
|
36004
35869
|
if (!(root === this.el && target.tagName === "CALCITE-TREE-ITEM" && this.el.contains(target))) {
|
|
@@ -36040,7 +35905,7 @@ class Tree {
|
|
|
36040
35905
|
if (target.hasChildren) {
|
|
36041
35906
|
if (target.expanded && getRootNode$1(this.el).activeElement === target) {
|
|
36042
35907
|
// When focus is on an open node, moves focus to the first child node.
|
|
36043
|
-
|
|
35908
|
+
getEnabledSiblingItem(target.querySelector("calcite-tree-item"), "down")?.focus();
|
|
36044
35909
|
event.preventDefault();
|
|
36045
35910
|
}
|
|
36046
35911
|
else {
|
|
@@ -36178,13 +36043,12 @@ class TreeItem {
|
|
|
36178
36043
|
items.forEach((item) => (item.parentExpanded = expanded));
|
|
36179
36044
|
};
|
|
36180
36045
|
this.updateAncestorTree = () => {
|
|
36181
|
-
var _a;
|
|
36182
36046
|
if (this.selected && this.selectionMode === "ancestors") {
|
|
36183
36047
|
const ancestors = [];
|
|
36184
36048
|
let parent = this.parentTreeItem;
|
|
36185
36049
|
while (parent) {
|
|
36186
36050
|
ancestors.push(parent);
|
|
36187
|
-
parent =
|
|
36051
|
+
parent = parent.parentElement?.closest("calcite-tree-item");
|
|
36188
36052
|
}
|
|
36189
36053
|
ancestors.forEach((item) => (item.indeterminate = true));
|
|
36190
36054
|
return;
|
|
@@ -36216,8 +36080,7 @@ class TreeItem {
|
|
|
36216
36080
|
//
|
|
36217
36081
|
//--------------------------------------------------------------------------
|
|
36218
36082
|
connectedCallback() {
|
|
36219
|
-
|
|
36220
|
-
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");
|
|
36221
36084
|
if (this.parentTreeItem) {
|
|
36222
36085
|
const { expanded } = this.parentTreeItem;
|
|
36223
36086
|
this.updateParentIsExpanded(this.parentTreeItem, expanded);
|
|
@@ -36228,7 +36091,6 @@ class TreeItem {
|
|
|
36228
36091
|
disconnectConditionalSlotComponent(this);
|
|
36229
36092
|
}
|
|
36230
36093
|
componentWillRender() {
|
|
36231
|
-
var _a;
|
|
36232
36094
|
this.hasChildren = !!this.el.querySelector("calcite-tree");
|
|
36233
36095
|
this.depth = 0;
|
|
36234
36096
|
let parentTree = this.el.closest("calcite-tree");
|
|
@@ -36240,7 +36102,7 @@ class TreeItem {
|
|
|
36240
36102
|
this.lines = parentTree.lines;
|
|
36241
36103
|
let nextParentTree;
|
|
36242
36104
|
while (parentTree) {
|
|
36243
|
-
nextParentTree =
|
|
36105
|
+
nextParentTree = parentTree.parentElement?.closest("calcite-tree");
|
|
36244
36106
|
if (nextParentTree === parentTree) {
|
|
36245
36107
|
break;
|
|
36246
36108
|
}
|
|
@@ -36342,7 +36204,7 @@ class TreeItem {
|
|
|
36342
36204
|
case "Home":
|
|
36343
36205
|
root = this.el.closest("calcite-tree:not([child])");
|
|
36344
36206
|
const firstNode = root.querySelector("calcite-tree-item");
|
|
36345
|
-
firstNode
|
|
36207
|
+
firstNode?.focus();
|
|
36346
36208
|
break;
|
|
36347
36209
|
case "End":
|
|
36348
36210
|
root = this.el.closest("calcite-tree:not([child])");
|
|
@@ -36352,7 +36214,7 @@ class TreeItem {
|
|
|
36352
36214
|
currentNode = currentTree.children[root.children.length - 1];
|
|
36353
36215
|
currentTree = nodeListToArray(currentNode.children).find((el) => el.matches("calcite-tree"));
|
|
36354
36216
|
}
|
|
36355
|
-
currentNode
|
|
36217
|
+
currentNode?.focus();
|
|
36356
36218
|
break;
|
|
36357
36219
|
}
|
|
36358
36220
|
}
|
|
@@ -36424,10 +36286,10 @@ function getScreenReaderText(item, status, valueList) {
|
|
|
36424
36286
|
function getHandleAndItemElement(event) {
|
|
36425
36287
|
const handle = event
|
|
36426
36288
|
.composedPath()
|
|
36427
|
-
.find((item) =>
|
|
36289
|
+
.find((item) => item.dataset?.jsHandle !== undefined);
|
|
36428
36290
|
const item = event
|
|
36429
36291
|
.composedPath()
|
|
36430
|
-
.find((item) =>
|
|
36292
|
+
.find((item) => item.tagName?.toLowerCase() === "calcite-value-list-item");
|
|
36431
36293
|
return { handle, item };
|
|
36432
36294
|
}
|
|
36433
36295
|
function replacePlaceholders(text, label, position, total) {
|
|
@@ -36496,7 +36358,7 @@ class ValueList {
|
|
|
36496
36358
|
}
|
|
36497
36359
|
this.items = this.getItems();
|
|
36498
36360
|
this.calciteListOrderChange.emit(this.items.map(({ value }) => value));
|
|
36499
|
-
requestAnimationFrame(() => handle
|
|
36361
|
+
requestAnimationFrame(() => handle?.focus());
|
|
36500
36362
|
item.handleActivated = true;
|
|
36501
36363
|
this.updateHandleAriaLabel(handle, getScreenReaderText(item, "change", this));
|
|
36502
36364
|
};
|
|
@@ -36505,7 +36367,7 @@ class ValueList {
|
|
|
36505
36367
|
};
|
|
36506
36368
|
this.handleFocusIn = (event) => {
|
|
36507
36369
|
const { handle, item } = getHandleAndItemElement(event);
|
|
36508
|
-
if (!
|
|
36370
|
+
if (!item?.handleActivated && item && handle) {
|
|
36509
36371
|
this.updateHandleAriaLabel(handle, getScreenReaderText(item, "idle", this));
|
|
36510
36372
|
}
|
|
36511
36373
|
};
|
|
@@ -36602,8 +36464,7 @@ class ValueList {
|
|
|
36602
36464
|
});
|
|
36603
36465
|
}
|
|
36604
36466
|
cleanUpDragAndDrop() {
|
|
36605
|
-
|
|
36606
|
-
(_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
36467
|
+
this.sortable?.destroy();
|
|
36607
36468
|
this.sortable = null;
|
|
36608
36469
|
}
|
|
36609
36470
|
handleBlur() {
|
|
@@ -36768,9 +36629,8 @@ class ValueListItem {
|
|
|
36768
36629
|
}
|
|
36769
36630
|
/** Set focus on the component. */
|
|
36770
36631
|
async setFocus() {
|
|
36771
|
-
var _a;
|
|
36772
36632
|
await componentLoaded(this);
|
|
36773
|
-
|
|
36633
|
+
this.pickListItem?.setFocus();
|
|
36774
36634
|
}
|
|
36775
36635
|
calciteListItemChangeHandler(event) {
|
|
36776
36636
|
// adjust item payload from wrapped item before bubbling
|