@esri/calcite-components 1.0.0-next.653 → 1.0.0-next.655
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-043ea88f.entry.js +6 -0
- package/dist/calcite/{p-dee6d536.js → p-04a542d5.js} +2 -2
- package/dist/calcite/{p-2ec7c680.js → p-05c07433.js} +1 -1
- package/dist/calcite/{p-28884998.entry.js → p-06b8eaf1.entry.js} +2 -2
- package/dist/calcite/p-114b5d1c.entry.js +6 -0
- package/dist/calcite/p-15500e9a.entry.js +6 -0
- package/dist/calcite/p-1982152c.entry.js +6 -0
- package/dist/calcite/p-19eef56a.entry.js +6 -0
- package/dist/calcite/p-1d01393e.js +6 -0
- package/dist/calcite/p-1d457dd1.js +6 -0
- package/dist/calcite/p-20a4c9c3.entry.js +6 -0
- package/dist/calcite/{p-406fcc95.entry.js → p-21588351.entry.js} +2 -2
- package/dist/calcite/p-26e36a96.entry.js +6 -0
- package/dist/calcite/p-2964e90c.entry.js +6 -0
- package/dist/calcite/{p-49701eee.js → p-29dc2fc3.js} +1 -1
- package/dist/calcite/{p-bff4c20d.entry.js → p-2e002bf7.entry.js} +2 -2
- package/dist/calcite/p-31512acf.js +6 -0
- package/dist/calcite/{p-e2f5256c.entry.js → p-3403e756.entry.js} +2 -2
- package/dist/calcite/p-340e338f.entry.js +6 -0
- package/dist/calcite/p-3b4fbb37.entry.js +6 -0
- package/dist/calcite/{p-220b7569.entry.js → p-3c0dcfb7.entry.js} +2 -2
- package/dist/calcite/{p-048b7796.js → p-3f55b93b.js} +1 -1
- package/dist/calcite/p-3fcadef4.entry.js +6 -0
- package/dist/calcite/p-442b6798.entry.js +6 -0
- package/dist/calcite/p-46dd2ba4.entry.js +6 -0
- package/dist/calcite/p-47685252.entry.js +6 -0
- package/dist/calcite/p-4a861228.entry.js +6 -0
- package/dist/calcite/p-4b46c28a.entry.js +6 -0
- package/dist/calcite/{p-8fb7ee35.entry.js → p-4f08640a.entry.js} +2 -2
- package/dist/calcite/p-5007e6bd.entry.js +6 -0
- package/dist/calcite/{p-d849b5b6.entry.js → p-56ad5531.entry.js} +2 -2
- package/dist/calcite/p-595da7bb.entry.js +6 -0
- package/dist/calcite/{p-d5e70d38.entry.js → p-62677747.entry.js} +2 -2
- package/dist/calcite/{p-24c048b5.js → p-6c29460f.js} +1 -1
- package/dist/calcite/{p-6e0ecbed.entry.js → p-70af3d23.entry.js} +2 -2
- package/dist/calcite/p-70e5d6c1.entry.js +6 -0
- package/dist/calcite/{p-36046779.js → p-75665b0d.js} +1 -1
- package/dist/calcite/p-789b6bad.entry.js +6 -0
- package/dist/calcite/p-7a197dad.entry.js +6 -0
- package/dist/calcite/p-7ce637a8.entry.js +6 -0
- package/dist/calcite/p-7dfeef91.entry.js +6 -0
- package/dist/calcite/{p-3dc251f4.entry.js → p-8087a217.entry.js} +2 -2
- package/dist/calcite/p-8693a7bb.entry.js +6 -0
- package/dist/calcite/p-883da6ae.js +6 -0
- package/dist/calcite/{p-1e7d0a3e.entry.js → p-894b85ce.entry.js} +2 -2
- package/dist/calcite/{p-675dfbe8.entry.js → p-8d68685d.entry.js} +2 -2
- package/dist/calcite/{p-44a78e82.entry.js → p-914480aa.entry.js} +2 -2
- package/dist/calcite/p-93a37211.entry.js +6 -0
- package/dist/calcite/{p-b567d164.js → p-94d9499a.js} +1 -1
- package/dist/calcite/p-97338377.entry.js +6 -0
- package/dist/calcite/p-9a2d8ab0.entry.js +6 -0
- package/dist/calcite/{p-627cd0ab.entry.js → p-9b91641b.entry.js} +2 -2
- package/dist/calcite/p-9be856ff.entry.js +6 -0
- package/dist/calcite/p-a13d26d4.entry.js +6 -0
- package/dist/calcite/{p-e1fa408f.js → p-a176bb86.js} +2 -2
- package/dist/calcite/p-a2aa2633.entry.js +6 -0
- package/dist/calcite/{p-3274abf2.js → p-a46eae3b.js} +2 -2
- package/dist/calcite/{p-b0cecf6b.js → p-a9ad5958.js} +1 -1
- package/dist/calcite/p-ab331d08.entry.js +6 -0
- package/dist/calcite/p-adc56e8e.entry.js +6 -0
- package/dist/calcite/p-ae16f981.entry.js +6 -0
- package/dist/calcite/{p-0a1f589a.js → p-af6229cc.js} +2 -2
- package/dist/calcite/{p-5a953a75.js → p-b2464ba9.js} +1 -1
- package/dist/calcite/p-b257f060.entry.js +6 -0
- package/dist/calcite/p-b3de53d6.js +6 -0
- package/dist/calcite/p-b52352f0.entry.js +6 -0
- package/dist/calcite/p-b60fc503.js +6 -0
- package/dist/calcite/{p-5bb6cc45.js → p-bb298c47.js} +1 -1
- package/dist/calcite/{p-4296ca3f.js → p-c55e7664.js} +1 -1
- package/dist/calcite/{p-b9184c58.entry.js → p-c66c342c.entry.js} +2 -2
- package/dist/calcite/p-c8cb4d64.entry.js +6 -0
- package/dist/calcite/{p-f857cfa2.entry.js → p-c91c0d84.entry.js} +2 -2
- package/dist/calcite/{p-74c02e3a.js → p-ce2cd41b.js} +3 -3
- package/dist/calcite/{p-98183f7a.js → p-d1250cd5.js} +1 -1
- package/dist/calcite/p-d1ea7e98.entry.js +6 -0
- package/dist/calcite/p-d4897627.js +6 -0
- package/dist/calcite/{p-1a859cf5.js → p-d63eca00.js} +1 -1
- package/dist/calcite/p-d7a2f588.js +6 -0
- package/dist/calcite/p-d9073ba3.entry.js +6 -0
- package/dist/calcite/p-df638ece.entry.js +6 -0
- package/dist/calcite/{p-c8946ac4.js → p-e0117b64.js} +1 -1
- package/dist/calcite/p-e17d5384.entry.js +6 -0
- package/dist/calcite/p-ea9d9c5c.entry.js +6 -0
- package/dist/calcite/{p-4869c10e.js → p-f33ca6d1.js} +2 -2
- package/dist/calcite/p-f4006464.js +6 -0
- package/dist/calcite/p-f5c2dc70.entry.js +6 -0
- package/dist/calcite/{p-a53596e5.js → p-f5dbda7d.js} +1 -1
- package/dist/calcite/{p-e452903d.js → p-f735579b.js} +1 -1
- package/dist/calcite/p-f86dead7.entry.js +6 -0
- package/dist/calcite/{p-1cdae83d.js → p-fb2017d2.js} +1 -1
- package/dist/calcite/{p-a1a81de3.entry.js → p-fd4ed53a.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-8d248ee3.js → ExpandToggle-b5b731d6.js} +7 -8
- package/dist/cjs/{Heading-dd6d6eb7.js → Heading-86fb7f76.js} +2 -2
- package/dist/cjs/{app-globals-35dd7e0f.js → app-globals-f51875dc.js} +2 -2
- package/dist/cjs/{array-bc2da329.js → array-6f9691d3.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 +36 -28
- 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 +32 -36
- 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 +23 -27
- 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-01e94659.js} +3 -3
- package/dist/cjs/{debounce-fec2cc26.js → debounce-9787fe3f.js} +1 -1
- package/dist/cjs/{dom-8db20575.js → dom-0c006683.js} +13 -13
- package/dist/cjs/{filter-4951900a.js → filter-1f20ad58.js} +3 -3
- package/dist/cjs/{floating-ui-16ec7ef7.js → floating-ui-357b6162.js} +7 -8
- package/dist/cjs/{focusTrapComponent-1f7ac746.js → focusTrapComponent-f6ec01ac.js} +4 -6
- package/dist/cjs/{form-df338099.js → form-affb950f.js} +5 -7
- package/dist/cjs/{guid-7c9bf705.js → guid-bcf2e27d.js} +1 -1
- package/dist/cjs/{index-11cbd6ae.js → index-e7f6d8a9.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-12572356.js → interactive-50819d76.js} +1 -1
- package/dist/cjs/{interfaces-bcf5a504.js → interfaces-65e8ab48.js} +1 -1
- package/dist/cjs/{key-5efe25db.js → key-27cd9b48.js} +1 -1
- package/dist/cjs/{label-f2b57841.js → label-b53d0971.js} +4 -5
- package/dist/cjs/{loadable-fdc027c5.js → loadable-5fff6d49.js} +1 -1
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-ad2e4def.js → locale-7c7ea778.js} +7 -8
- package/dist/cjs/{math-e3bf7036.js → math-b2c68418.js} +1 -1
- package/dist/cjs/{nonChromiumPlatformUtils-ee7586d2.js → nonChromiumPlatformUtils-25b21483.js} +6 -6
- package/dist/cjs/{observers-1cb80ad6.js → observers-93a0a981.js} +1 -1
- package/dist/cjs/{openCloseComponent-42ea9fde.js → openCloseComponent-7e8c6590.js} +1 -1
- package/dist/cjs/{resources-61c779db.js → resources-154a6134.js} +1 -1
- package/dist/cjs/{resources-883ffa52.js → resources-2a151557.js} +3 -3
- package/dist/cjs/{resources-f5a03517.js → resources-34896b85.js} +1 -1
- package/dist/cjs/{resources-125245bd.js → resources-9a470a7e.js} +1 -1
- package/dist/cjs/{resources-e6605c29.js → resources-bdc925d6.js} +1 -1
- package/dist/cjs/{resources-01342a2b.js → resources-d4a726c6.js} +11 -16
- package/dist/cjs/{sortable.esm-ec7f83ae.js → sortable.esm-2e3e4661.js} +1 -1
- package/dist/cjs/{utils-727a0b8e.js → utils-dda0c978.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 +7 -8
- package/dist/collection/components/date-picker-month-header/resources.js +14 -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 +17 -21
- 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 +4 -6
- 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 +17 -21
- 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 +4 -6
- 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 +19 -7
- 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-67f409ce.js} +7 -8
- package/dist/esm/{Heading-f71bbfe4.js → Heading-7d30eb95.js} +2 -2
- package/dist/esm/{app-globals-61e0f5bb.js → app-globals-91c967df.js} +2 -2
- package/dist/esm/{array-f3af604a.js → array-0f371fbe.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 +36 -28
- 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 +32 -36
- 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 +23 -27
- 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-7375791c.js} +3 -3
- package/dist/esm/{debounce-511eda6a.js → debounce-fa1ba8dd.js} +1 -1
- package/dist/esm/{dom-3d0a39a1.js → dom-f86880a8.js} +13 -13
- package/dist/esm/{filter-275e53f4.js → filter-fe83cf69.js} +3 -3
- package/dist/esm/{floating-ui-fc56a23b.js → floating-ui-06e2aace.js} +7 -8
- package/dist/esm/{focusTrapComponent-2dcf390f.js → focusTrapComponent-725a0cce.js} +4 -6
- package/dist/esm/{form-99c3afb4.js → form-411e884b.js} +5 -7
- package/dist/esm/{guid-b0902c5e.js → guid-8a166774.js} +1 -1
- package/dist/esm/{index-a3e37dea.js → index-d632f7a1.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-ee12cb1f.js → interactive-3f5bd2e0.js} +1 -1
- package/dist/esm/{interfaces-461b2615.js → interfaces-7ca05385.js} +1 -1
- package/dist/esm/{key-26613542.js → key-d42e35a4.js} +1 -1
- package/dist/esm/{label-b9c0aa89.js → label-39b9caf1.js} +4 -5
- package/dist/esm/{loadable-9a013351.js → loadable-ecb83b69.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{locale-35d09242.js → locale-9cc8d692.js} +7 -8
- package/dist/esm/{math-5fdb35a6.js → math-03369c68.js} +1 -1
- package/dist/esm/{nonChromiumPlatformUtils-928c5ed3.js → nonChromiumPlatformUtils-0dda1ba1.js} +6 -6
- package/dist/esm/{observers-1bc07c7a.js → observers-2b56a317.js} +1 -1
- package/dist/esm/{openCloseComponent-1a0f1e5f.js → openCloseComponent-08e9135e.js} +1 -1
- package/dist/esm/{resources-a1b41b10.js → resources-122bdb3c.js} +1 -1
- package/dist/esm/{resources-fd9aac1d.js → resources-34cf847c.js} +11 -16
- package/dist/esm/{resources-205e1a5e.js → resources-8ab3148f.js} +3 -3
- package/dist/esm/{resources-52b91f29.js → resources-b8533188.js} +1 -1
- package/dist/esm/{resources-9c2b241b.js → resources-c1317324.js} +1 -1
- package/dist/esm/{resources-0440659e.js → resources-cca3a0a9.js} +1 -1
- package/dist/esm/{sortable.esm-a20e5345.js → sortable.esm-baccf0e5.js} +1 -1
- package/dist/esm/{utils-a06ba7b4.js → utils-a76ce9e9.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/dist/types/components/date-picker-month-header/resources.d.ts +13 -0
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +0 -1
- package/hydrate/index.js +377 -509
- 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-797fd5dd.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-9e30a932.entry.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-ae684eb2.entry.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.655
|
|
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));
|
|
@@ -6252,7 +6252,7 @@ const SLOTS$u = {
|
|
|
6252
6252
|
actionsStart: "actions-start",
|
|
6253
6253
|
actionsEnd: "actions-end"
|
|
6254
6254
|
};
|
|
6255
|
-
const CSS$
|
|
6255
|
+
const CSS$W = {
|
|
6256
6256
|
icon: "icon",
|
|
6257
6257
|
header: "header",
|
|
6258
6258
|
headerContent: "header-content",
|
|
@@ -6319,27 +6319,27 @@ class AccordionItem {
|
|
|
6319
6319
|
// --------------------------------------------------------------------------
|
|
6320
6320
|
renderActionsStart() {
|
|
6321
6321
|
const { el } = this;
|
|
6322
|
-
return getSlotted(el, SLOTS$u.actionsStart) ? (hAsync("div", { class: CSS$
|
|
6322
|
+
return getSlotted(el, SLOTS$u.actionsStart) ? (hAsync("div", { class: CSS$W.actionsStart }, hAsync("slot", { name: SLOTS$u.actionsStart }))) : null;
|
|
6323
6323
|
}
|
|
6324
6324
|
renderActionsEnd() {
|
|
6325
6325
|
const { el } = this;
|
|
6326
|
-
return getSlotted(el, SLOTS$u.actionsEnd) ? (hAsync("div", { class: CSS$
|
|
6326
|
+
return getSlotted(el, SLOTS$u.actionsEnd) ? (hAsync("div", { class: CSS$W.actionsEnd }, hAsync("slot", { name: SLOTS$u.actionsEnd }))) : null;
|
|
6327
6327
|
}
|
|
6328
6328
|
render() {
|
|
6329
6329
|
const dir = getElementDir(this.el);
|
|
6330
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
6331
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$
|
|
6330
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$W.iconStart, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
6331
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$W.iconEnd, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
6332
6332
|
const { description } = this;
|
|
6333
6333
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
6334
6334
|
[`icon-position--${this.iconPosition}`]: true,
|
|
6335
6335
|
[`icon-type--${this.iconType}`]: true
|
|
6336
|
-
} }, hAsync("div", { class: { [CSS$
|
|
6336
|
+
} }, hAsync("div", { class: { [CSS$W.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), hAsync("div", { "aria-expanded": toAriaBoolean(this.expanded), class: CSS$W.headerContent, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, hAsync("div", { class: CSS$W.headerContainer }, iconStartEl, hAsync("div", { class: CSS$W.headerText }, hAsync("span", { class: CSS$W.heading }, this.heading), description ? hAsync("span", { class: CSS$W.description }, description) : null), iconEndEl), hAsync("calcite-icon", { class: CSS$W.expandIcon, icon: this.iconType === "chevron"
|
|
6337
6337
|
? "chevronDown"
|
|
6338
6338
|
: this.iconType === "caret"
|
|
6339
6339
|
? "caretDown"
|
|
6340
6340
|
: this.expanded
|
|
6341
6341
|
? "minus"
|
|
6342
|
-
: "plus", scale: "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$
|
|
6342
|
+
: "plus", scale: "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$W.content }, hAsync("slot", null)))));
|
|
6343
6343
|
}
|
|
6344
6344
|
//--------------------------------------------------------------------------
|
|
6345
6345
|
//
|
|
@@ -6423,7 +6423,7 @@ class AccordionItem {
|
|
|
6423
6423
|
}; }
|
|
6424
6424
|
}
|
|
6425
6425
|
|
|
6426
|
-
const CSS$
|
|
6426
|
+
const CSS$V = {
|
|
6427
6427
|
button: "button",
|
|
6428
6428
|
buttonTextVisible: "button--text-visible",
|
|
6429
6429
|
buttonCompact: "button--compact",
|
|
@@ -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
|
//
|
|
@@ -6614,33 +6611,32 @@ class Action {
|
|
|
6614
6611
|
renderTextContainer() {
|
|
6615
6612
|
const { text, textEnabled } = this;
|
|
6616
6613
|
const textContainerClasses = {
|
|
6617
|
-
[CSS$
|
|
6618
|
-
[CSS$
|
|
6614
|
+
[CSS$V.textContainer]: true,
|
|
6615
|
+
[CSS$V.textContainerVisible]: textEnabled
|
|
6619
6616
|
};
|
|
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
|
-
[CSS$
|
|
6633
|
-
[CSS$
|
|
6628
|
+
[CSS$V.slotContainer]: true,
|
|
6629
|
+
[CSS$V.slotContainerHidden]: loading
|
|
6634
6630
|
} }, hAsync("slot", null)));
|
|
6635
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
6631
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$V.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
6636
6632
|
}
|
|
6637
6633
|
render() {
|
|
6638
6634
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
6639
6635
|
const ariaLabel = label || text;
|
|
6640
6636
|
const buttonClasses = {
|
|
6641
|
-
[CSS$
|
|
6642
|
-
[CSS$
|
|
6643
|
-
[CSS$
|
|
6637
|
+
[CSS$V.button]: true,
|
|
6638
|
+
[CSS$V.buttonTextVisible]: textEnabled,
|
|
6639
|
+
[CSS$V.buttonCompact]: compact
|
|
6644
6640
|
};
|
|
6645
6641
|
return (hAsync(Host, null, hAsync("button", { "aria-busy": toAriaBoolean(loading), "aria-disabled": toAriaBoolean(disabled), "aria-label": ariaLabel, class: buttonClasses, disabled: disabled, ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer()), hAsync("slot", { name: SLOTS$t.tooltip, onSlotchange: this.handleTooltipSlotChange })));
|
|
6646
6642
|
}
|
|
@@ -6671,7 +6667,7 @@ class Action {
|
|
|
6671
6667
|
}; }
|
|
6672
6668
|
}
|
|
6673
6669
|
|
|
6674
|
-
const CSS$
|
|
6670
|
+
const CSS$U = {
|
|
6675
6671
|
menu: "menu",
|
|
6676
6672
|
defaultTrigger: "default-trigger"
|
|
6677
6673
|
};
|
|
@@ -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)
|
|
@@ -6783,7 +6778,7 @@ const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position
|
|
|
6783
6778
|
return actionNode;
|
|
6784
6779
|
};
|
|
6785
6780
|
|
|
6786
|
-
const CSS$
|
|
6781
|
+
const CSS$T = {
|
|
6787
6782
|
actionGroupBottom: "action-group--bottom"
|
|
6788
6783
|
};
|
|
6789
6784
|
const SLOTS$q = {
|
|
@@ -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
|
//
|
|
@@ -8220,7 +8212,7 @@ class ActionBar {
|
|
|
8220
8212
|
const expandLabel = intlExpand || TEXT$s.expand;
|
|
8221
8213
|
const collapseLabel = intlCollapse || TEXT$s.collapse;
|
|
8222
8214
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
8223
|
-
return getSlotted(el, SLOTS$q.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
8215
|
+
return getSlotted(el, SLOTS$q.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$T.actionGroupBottom, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$q.bottomActions }), hAsync("slot", { name: SLOTS$q.expandTooltip }), expandToggleNode)) : null;
|
|
8224
8216
|
}
|
|
8225
8217
|
render() {
|
|
8226
8218
|
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("slot", null), this.renderBottomActionGroup()));
|
|
@@ -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) => {
|
|
@@ -8586,14 +8578,14 @@ class ActionMenu {
|
|
|
8586
8578
|
}
|
|
8587
8579
|
renderMenuButton() {
|
|
8588
8580
|
const { label, scale, expanded } = this;
|
|
8589
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$s.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { class: CSS$
|
|
8581
|
+
const menuButtonSlot = (hAsync("slot", { name: SLOTS$s.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { class: CSS$U.defaultTrigger, icon: ICONS$h.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label, textEnabled: expanded })));
|
|
8590
8582
|
return menuButtonSlot;
|
|
8591
8583
|
}
|
|
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$U.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 })));
|
|
@@ -8629,7 +8621,7 @@ class ActionMenu {
|
|
|
8629
8621
|
}; }
|
|
8630
8622
|
}
|
|
8631
8623
|
|
|
8632
|
-
const CSS$
|
|
8624
|
+
const CSS$S = {
|
|
8633
8625
|
actionGroupBottom: "action-group--bottom",
|
|
8634
8626
|
container: "container"
|
|
8635
8627
|
};
|
|
@@ -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
|
//
|
|
@@ -8733,10 +8724,10 @@ class ActionPad {
|
|
|
8733
8724
|
const expandLabel = intlExpand || TEXT$r.expand;
|
|
8734
8725
|
const collapseLabel = intlCollapse || TEXT$r.collapse;
|
|
8735
8726
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { el: el, expanded: expanded, intlCollapse: collapseLabel, intlExpand: expandLabel, position: position, ref: this.setExpandToggleRef, scale: scale, toggle: toggleExpand, tooltip: tooltip })) : null;
|
|
8736
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
8727
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$S.actionGroupBottom, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$p.expandTooltip }), expandToggleNode)) : null;
|
|
8737
8728
|
}
|
|
8738
8729
|
render() {
|
|
8739
|
-
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$
|
|
8730
|
+
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$S.container }, hAsync("slot", null), this.renderBottomActionGroup())));
|
|
8740
8731
|
}
|
|
8741
8732
|
get el() { return getElement(this); }
|
|
8742
8733
|
static get watchers() { return {
|
|
@@ -8776,7 +8767,7 @@ const SLOTS$o = {
|
|
|
8776
8767
|
message: "message",
|
|
8777
8768
|
link: "link"
|
|
8778
8769
|
};
|
|
8779
|
-
const CSS$
|
|
8770
|
+
const CSS$R = {
|
|
8780
8771
|
actionsEnd: "actions-end",
|
|
8781
8772
|
container: "container"
|
|
8782
8773
|
};
|
|
@@ -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
|
|
@@ -9320,7 +9310,7 @@ class Alert {
|
|
|
9320
9310
|
container: true,
|
|
9321
9311
|
queued,
|
|
9322
9312
|
[placement]: true
|
|
9323
|
-
}, ref: this.setTransitionEl }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$o.title }), hAsync("slot", { name: SLOTS$o.message }), hAsync("slot", { name: SLOTS$o.link })), hAsync("div", { class: CSS$
|
|
9313
|
+
}, ref: this.setTransitionEl }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$o.title }), hAsync("slot", { name: SLOTS$o.message }), hAsync("slot", { name: SLOTS$o.link })), hAsync("div", { class: CSS$R.actionsEnd, hidden: !hasEndActions }, slotNode), this.queueLength > 1 ? queueCount : null, !autoDismiss ? closeButton : null, open && !queued && autoDismiss ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
9324
9314
|
}
|
|
9325
9315
|
// when an alert is opened or closed, update queue and determine active alert
|
|
9326
9316
|
alertSync(event) {
|
|
@@ -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
|
/**
|
|
@@ -9677,7 +9666,7 @@ class Avatar {
|
|
|
9677
9666
|
}; }
|
|
9678
9667
|
}
|
|
9679
9668
|
|
|
9680
|
-
const CSS$
|
|
9669
|
+
const CSS$Q = {
|
|
9681
9670
|
container: "container",
|
|
9682
9671
|
content: "content",
|
|
9683
9672
|
headerContainer: "header-container",
|
|
@@ -9795,31 +9784,31 @@ class Block {
|
|
|
9795
9784
|
const statusIcon = showingLoadingStatus ? ICONS$e.refresh : ICONS$e[status];
|
|
9796
9785
|
const hasIcon = getSlotted(el, SLOTS$n.icon) || statusIcon;
|
|
9797
9786
|
const iconEl = !statusIcon ? (hAsync("slot", { key: "icon-slot", name: SLOTS$n.icon })) : (hAsync("calcite-icon", { class: {
|
|
9798
|
-
[CSS$
|
|
9799
|
-
[CSS$
|
|
9800
|
-
[CSS$
|
|
9801
|
-
[CSS$
|
|
9787
|
+
[CSS$Q.statusIcon]: true,
|
|
9788
|
+
[CSS$Q.valid]: status == "valid",
|
|
9789
|
+
[CSS$Q.invalid]: status == "invalid",
|
|
9790
|
+
[CSS$Q.loading]: showingLoadingStatus
|
|
9802
9791
|
}, icon: statusIcon, scale: "m" }));
|
|
9803
|
-
return hasIcon ? hAsync("div", { class: CSS$
|
|
9792
|
+
return hasIcon ? hAsync("div", { class: CSS$Q.icon }, iconEl) : null;
|
|
9804
9793
|
}
|
|
9805
9794
|
renderTitle() {
|
|
9806
9795
|
const { heading, headingLevel, description } = this;
|
|
9807
|
-
return heading || description ? (hAsync("div", { class: CSS$
|
|
9796
|
+
return heading || description ? (hAsync("div", { class: CSS$Q.title }, hAsync(Heading, { class: CSS$Q.heading, level: headingLevel }, heading), description ? hAsync("div", { class: CSS$Q.description }, description) : null)) : null;
|
|
9808
9797
|
}
|
|
9809
9798
|
render() {
|
|
9810
9799
|
const { collapsible, el, intlCollapse, intlExpand, loading, open, intlLoading } = this;
|
|
9811
9800
|
const toggleLabel = open ? intlCollapse || TEXT$p.collapse : intlExpand || TEXT$p.expand;
|
|
9812
|
-
const headerContent = (hAsync("header", { class: CSS$
|
|
9801
|
+
const headerContent = (hAsync("header", { class: CSS$Q.header }, this.renderIcon(), this.renderTitle()));
|
|
9813
9802
|
const hasControl = !!getSlotted(el, SLOTS$n.control);
|
|
9814
9803
|
const hasMenuActions = !!getSlotted(el, SLOTS$n.headerMenuActions);
|
|
9815
9804
|
const collapseIcon = open ? ICONS$e.opened : ICONS$e.closed;
|
|
9816
9805
|
const { guid } = this;
|
|
9817
9806
|
const regionId = `${guid}-region`;
|
|
9818
9807
|
const buttonId = `${guid}-button`;
|
|
9819
|
-
const headerNode = (hAsync("div", { class: CSS$
|
|
9808
|
+
const headerNode = (hAsync("div", { class: CSS$Q.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-controls": regionId, "aria-expanded": collapsible ? toAriaBoolean(open) : null, "aria-label": toggleLabel, class: CSS$Q.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$Q.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (hAsync("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (hAsync("div", { class: CSS$Q.controlContainer }, hAsync("slot", { name: SLOTS$n.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: this.intlOptions || TEXT$p.options }, hAsync("slot", { name: SLOTS$n.headerMenuActions }))) : null));
|
|
9820
9809
|
return (hAsync(Host, null, hAsync("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
9821
|
-
[CSS$
|
|
9822
|
-
} }, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$
|
|
9810
|
+
[CSS$Q.container]: true
|
|
9811
|
+
} }, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$Q.content, hidden: !open, id: regionId }, this.renderScrim()))));
|
|
9823
9812
|
}
|
|
9824
9813
|
get el() { return getElement(this); }
|
|
9825
9814
|
static get style() { return blockCss; }
|
|
@@ -9847,7 +9836,7 @@ class Block {
|
|
|
9847
9836
|
}; }
|
|
9848
9837
|
}
|
|
9849
9838
|
|
|
9850
|
-
const CSS$
|
|
9839
|
+
const CSS$P = {
|
|
9851
9840
|
content: "content",
|
|
9852
9841
|
invalid: "invalid",
|
|
9853
9842
|
toggle: "toggle",
|
|
@@ -9910,13 +9899,12 @@ 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
|
-
[CSS$
|
|
9918
|
-
[CSS$
|
|
9919
|
-
[CSS$
|
|
9905
|
+
[CSS$P.statusIcon]: true,
|
|
9906
|
+
[CSS$P.valid]: status == "valid",
|
|
9907
|
+
[CSS$P.invalid]: status == "invalid"
|
|
9920
9908
|
};
|
|
9921
9909
|
return !!statusIcon ? (hAsync("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
9922
9910
|
}
|
|
@@ -9933,13 +9921,13 @@ class BlockSection {
|
|
|
9933
9921
|
const regionId = `${guid}-region`;
|
|
9934
9922
|
const buttonId = `${guid}-button`;
|
|
9935
9923
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
9936
|
-
[CSS$
|
|
9937
|
-
[CSS$
|
|
9938
|
-
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$
|
|
9939
|
-
[CSS$
|
|
9940
|
-
[CSS$
|
|
9941
|
-
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$
|
|
9942
|
-
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$
|
|
9924
|
+
[CSS$P.toggle]: true,
|
|
9925
|
+
[CSS$P.toggleSwitch]: true
|
|
9926
|
+
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$P.toggleSwitchContent }, hAsync("span", { class: CSS$P.toggleSwitchText }, text)), hAsync("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (hAsync("button", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
9927
|
+
[CSS$P.sectionHeader]: true,
|
|
9928
|
+
[CSS$P.toggle]: true
|
|
9929
|
+
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$P.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
9930
|
+
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$P.content, hidden: !open, id: regionId }, hAsync("slot", null))));
|
|
9943
9931
|
}
|
|
9944
9932
|
get el() { return getElement(this); }
|
|
9945
9933
|
static get style() { return blockSectionCss; }
|
|
@@ -9988,7 +9976,7 @@ class BlockSection {
|
|
|
9988
9976
|
}
|
|
9989
9977
|
})(HTMLFormElement.prototype);
|
|
9990
9978
|
|
|
9991
|
-
const CSS$
|
|
9979
|
+
const CSS$O = {
|
|
9992
9980
|
buttonLoader: "calcite-button--loader",
|
|
9993
9981
|
content: "content",
|
|
9994
9982
|
contentSlotted: "content--slotted",
|
|
@@ -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
|
}
|
|
@@ -10424,17 +10408,17 @@ class Button {
|
|
|
10424
10408
|
render() {
|
|
10425
10409
|
const childElType = this.href ? "a" : "button";
|
|
10426
10410
|
const Tag = childElType;
|
|
10427
|
-
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$
|
|
10411
|
+
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$O.buttonLoader }, hAsync("calcite-loader", { class: this.loading ? CSS$O.loadingIn : CSS$O.loadingOut, inline: true, label: this.intlLoading, scale: this.scale === "l" ? "m" : "s" }))) : null;
|
|
10428
10412
|
const noStartEndIcons = !this.iconStart && !this.iconEnd;
|
|
10429
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
10430
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
10431
|
-
const contentEl = (hAsync("span", { class: CSS$
|
|
10413
|
+
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$O.icon]: true, [CSS$O.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: this.scale === "l" ? "m" : "s" }));
|
|
10414
|
+
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$O.icon]: true, [CSS$O.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: this.scale === "l" ? "m" : "s" }));
|
|
10415
|
+
const contentEl = (hAsync("span", { class: CSS$O.content }, hAsync("slot", null)));
|
|
10432
10416
|
return (hAsync(Tag, { "aria-label": getLabelText(this), class: {
|
|
10433
|
-
[CSS$
|
|
10434
|
-
[CSS$
|
|
10435
|
-
[CSS$
|
|
10436
|
-
[CSS$
|
|
10437
|
-
[CSS$
|
|
10417
|
+
[CSS$O.buttonPadding]: noStartEndIcons,
|
|
10418
|
+
[CSS$O.buttonPaddingShrunk]: !noStartEndIcons,
|
|
10419
|
+
[CSS$O.contentSlotted]: this.hasContent,
|
|
10420
|
+
[CSS$O.iconStartEmpty]: !this.iconStart,
|
|
10421
|
+
[CSS$O.iconEndEmpty]: !this.iconEnd
|
|
10438
10422
|
}, disabled: this.disabled || this.loading, href: childElType === "a" && this.href, name: childElType === "button" && this.name, onClick: this.handleClick, ref: (el) => (this.childEl = el), rel: childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: childElType === "a" && this.target, type: childElType === "button" && this.type }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
10439
10423
|
}
|
|
10440
10424
|
//--------------------------------------------------------------------------
|
|
@@ -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
|
//
|
|
@@ -10508,7 +10489,7 @@ class Button {
|
|
|
10508
10489
|
}; }
|
|
10509
10490
|
}
|
|
10510
10491
|
|
|
10511
|
-
const CSS$
|
|
10492
|
+
const CSS$N = {
|
|
10512
10493
|
container: "container",
|
|
10513
10494
|
header: "header",
|
|
10514
10495
|
footer: "footer",
|
|
@@ -10592,32 +10573,32 @@ class Card {
|
|
|
10592
10573
|
render() {
|
|
10593
10574
|
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
|
10594
10575
|
const thumbnailStart = this.thumbnailPosition.endsWith("start");
|
|
10595
|
-
return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$
|
|
10576
|
+
return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { label: this.intlLoading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$N.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
|
|
10596
10577
|
}
|
|
10597
10578
|
selectCard() {
|
|
10598
10579
|
this.selected = !this.selected;
|
|
10599
10580
|
this.calciteCardSelect.emit();
|
|
10600
10581
|
}
|
|
10601
10582
|
renderThumbnail() {
|
|
10602
|
-
return getSlotted(this.el, SLOTS$m.thumbnail) ? (hAsync("section", { class: CSS$
|
|
10583
|
+
return getSlotted(this.el, SLOTS$m.thumbnail) ? (hAsync("section", { class: CSS$N.thumbnailWrapper }, hAsync("slot", { name: SLOTS$m.thumbnail }))) : null;
|
|
10603
10584
|
}
|
|
10604
10585
|
renderCheckbox() {
|
|
10605
10586
|
const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
|
|
10606
|
-
return (hAsync("calcite-label", { class: CSS$
|
|
10587
|
+
return (hAsync("calcite-label", { class: CSS$N.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
|
|
10607
10588
|
}
|
|
10608
10589
|
renderHeader() {
|
|
10609
10590
|
const { el } = this;
|
|
10610
10591
|
const title = getSlotted(el, SLOTS$m.title);
|
|
10611
10592
|
const subtitle = getSlotted(el, SLOTS$m.subtitle);
|
|
10612
10593
|
const hasHeader = title || subtitle;
|
|
10613
|
-
return hasHeader ? (hAsync("header", { class: CSS$
|
|
10594
|
+
return hasHeader ? (hAsync("header", { class: CSS$N.header }, hAsync("slot", { name: SLOTS$m.title }), hAsync("slot", { name: SLOTS$m.subtitle }))) : null;
|
|
10614
10595
|
}
|
|
10615
10596
|
renderFooter() {
|
|
10616
10597
|
const { el } = this;
|
|
10617
10598
|
const leadingFooter = getSlotted(el, SLOTS$m.footerLeading);
|
|
10618
10599
|
const trailingFooter = getSlotted(el, SLOTS$m.footerTrailing);
|
|
10619
10600
|
const hasFooter = leadingFooter || trailingFooter;
|
|
10620
|
-
return hasFooter ? (hAsync("footer", { class: CSS$
|
|
10601
|
+
return hasFooter ? (hAsync("footer", { class: CSS$N.footer }, hAsync("slot", { name: SLOTS$m.footerLeading }), hAsync("slot", { name: SLOTS$m.footerTrailing }))) : null;
|
|
10621
10602
|
}
|
|
10622
10603
|
get el() { return getElement(this); }
|
|
10623
10604
|
static get style() { return cardCss; }
|
|
@@ -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
|
//
|
|
@@ -10768,7 +10748,7 @@ class Checkbox {
|
|
|
10768
10748
|
}; }
|
|
10769
10749
|
}
|
|
10770
10750
|
|
|
10771
|
-
const CSS$
|
|
10751
|
+
const CSS$M = {
|
|
10772
10752
|
title: "title",
|
|
10773
10753
|
close: "close",
|
|
10774
10754
|
imageContainer: "image-container",
|
|
@@ -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
|
//
|
|
@@ -10852,12 +10831,12 @@ class Chip {
|
|
|
10852
10831
|
renderChipImage() {
|
|
10853
10832
|
const { el } = this;
|
|
10854
10833
|
const hasChipImage = getSlotted(el, SLOTS$l.image);
|
|
10855
|
-
return hasChipImage ? (hAsync("div", { class: CSS$
|
|
10834
|
+
return hasChipImage ? (hAsync("div", { class: CSS$M.imageContainer, key: "image" }, hAsync("slot", { name: SLOTS$l.image }))) : null;
|
|
10856
10835
|
}
|
|
10857
10836
|
render() {
|
|
10858
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
10859
|
-
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$
|
|
10860
|
-
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$
|
|
10837
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$M.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
10838
|
+
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$M.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { class: CSS$M.closeIcon, icon: ICONS$c.close, scale: "s" })));
|
|
10839
|
+
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$M.title, id: this.guid }, hAsync("slot", null)), this.closable ? closeButton : null));
|
|
10861
10840
|
}
|
|
10862
10841
|
get el() { return getElement(this); }
|
|
10863
10842
|
static get style() { return chipCss; }
|
|
@@ -12992,7 +12971,7 @@ function zeroArray(array, length) {
|
|
|
12992
12971
|
|
|
12993
12972
|
var color = Color;
|
|
12994
12973
|
|
|
12995
|
-
const CSS$
|
|
12974
|
+
const CSS$L = {
|
|
12996
12975
|
container: "container",
|
|
12997
12976
|
controlSection: "control-section",
|
|
12998
12977
|
hexOptions: "color-hex-options",
|
|
@@ -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();
|
|
@@ -13366,7 +13344,7 @@ class ColorPicker {
|
|
|
13366
13344
|
const { channelMode: activeChannelMode, intlRgb, intlHsv } = this;
|
|
13367
13345
|
const active = channelMode === activeChannelMode;
|
|
13368
13346
|
const label = channelMode === "rgb" ? intlRgb : intlHsv;
|
|
13369
|
-
return (hAsync("calcite-tab-title", { active: active, class: CSS$
|
|
13347
|
+
return (hAsync("calcite-tab-title", { active: active, class: CSS$L.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate }, label));
|
|
13370
13348
|
};
|
|
13371
13349
|
this.renderChannelsTab = (channelMode) => {
|
|
13372
13350
|
const { channelMode: activeChannelMode, channels, intlB, intlBlue, intlG, intlGreen, intlH, intlHue, intlR, intlRed, intlS, intlSaturation, intlV, intlValue } = this;
|
|
@@ -13377,11 +13355,11 @@ class ColorPicker {
|
|
|
13377
13355
|
? [intlRed, intlGreen, intlBlue]
|
|
13378
13356
|
: [intlHue, intlSaturation, intlValue];
|
|
13379
13357
|
const direction = getElementDir(this.el);
|
|
13380
|
-
return (hAsync("calcite-tab", { active: active, class: CSS$
|
|
13358
|
+
return (hAsync("calcite-tab", { active: active, class: CSS$L.control, key: channelMode }, hAsync("div", { class: CSS$L.channels, dir: "ltr" }, channels.map((channel, index) =>
|
|
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$
|
|
13362
|
+
this.renderChannel = (value, index, label, ariaLabel, direction) => (hAsync("calcite-input", { class: CSS$L.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$L.channel))) {
|
|
13529
13506
|
return;
|
|
13530
13507
|
}
|
|
13531
13508
|
const { shiftKey } = event;
|
|
@@ -13597,24 +13574,24 @@ 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
|
-
return (hAsync("div", { class: CSS$
|
|
13605
|
-
[CSS$
|
|
13606
|
-
[CSS$
|
|
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
|
|
13608
|
-
[CSS$
|
|
13609
|
-
[CSS$
|
|
13610
|
-
} }, hideHex ? null : (hAsync("div", { class: CSS$
|
|
13611
|
-
[CSS$
|
|
13612
|
-
[CSS$
|
|
13613
|
-
} }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$
|
|
13614
|
-
[CSS$
|
|
13615
|
-
[CSS$
|
|
13616
|
-
}, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$
|
|
13617
|
-
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$
|
|
13581
|
+
return (hAsync("div", { class: CSS$L.container }, hAsync("div", { class: CSS$L.colorFieldAndSliderWrap }, hAsync("canvas", { class: {
|
|
13582
|
+
[CSS$L.colorFieldAndSlider]: true,
|
|
13583
|
+
[CSS$L.colorFieldAndSliderInteractive]: colorFieldAndSliderInteractive
|
|
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$L.scope]: true, [CSS$L.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$L.scope]: true, [CSS$L.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: {
|
|
13585
|
+
[CSS$L.controlSection]: true,
|
|
13586
|
+
[CSS$L.section]: true
|
|
13587
|
+
} }, hideHex ? null : (hAsync("div", { class: CSS$L.hexOptions }, hAsync("span", { class: {
|
|
13588
|
+
[CSS$L.header]: true,
|
|
13589
|
+
[CSS$L.headerHex]: true
|
|
13590
|
+
} }, intlHex), hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, class: CSS$L.control, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: hexInputScale, value: selectedColorInHex }))), hideChannels ? null : (hAsync("calcite-tabs", { class: {
|
|
13591
|
+
[CSS$L.colorModeContainer]: true,
|
|
13592
|
+
[CSS$L.splitSection]: true
|
|
13593
|
+
}, scale: hexInputScale }, hAsync("calcite-tab-nav", { slot: "tab-nav" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv"))))), hideSaved ? null : (hAsync("div", { class: { [CSS$L.savedColorsSection]: true, [CSS$L.section]: true } }, hAsync("div", { class: CSS$L.header }, hAsync("label", null, intlSaved), hAsync("div", { class: CSS$L.savedColorsButtons }, hAsync("calcite-button", { appearance: "transparent", class: CSS$L.deleteColor, color: "neutral", disabled: noColor, iconStart: "minus", label: intlDeleteColor, onClick: this.deleteColor, scale: hexInputScale, type: "button" }), hAsync("calcite-button", { appearance: "transparent", class: CSS$L.saveColor, color: "neutral", disabled: noColor, iconStart: "plus", label: intlSaveColor, onClick: this.saveColor, scale: hexInputScale, type: "button" }))), savedColors.length > 0 ? (hAsync("div", { class: CSS$L.savedColors }, [
|
|
13594
|
+
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { active: selectedColorInHex === color, class: CSS$L.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 })))
|
|
13618
13595
|
])) : null))));
|
|
13619
13596
|
}
|
|
13620
13597
|
// --------------------------------------------------------------------------
|
|
@@ -13860,7 +13837,7 @@ class ColorPicker {
|
|
|
13860
13837
|
}; }
|
|
13861
13838
|
}
|
|
13862
13839
|
|
|
13863
|
-
const CSS$
|
|
13840
|
+
const CSS$K = {
|
|
13864
13841
|
container: "container",
|
|
13865
13842
|
preview: "preview",
|
|
13866
13843
|
input: "input"
|
|
@@ -13974,7 +13951,7 @@ class ColorPickerHexInput {
|
|
|
13974
13951
|
render() {
|
|
13975
13952
|
const { intlHex, value } = this;
|
|
13976
13953
|
const hexInputValue = this.formatForInternalInput(value);
|
|
13977
|
-
return (hAsync("div", { class: CSS$
|
|
13954
|
+
return (hAsync("div", { class: CSS$K.container }, hAsync("calcite-input", { class: CSS$K.input, label: intlHex, maxLength: 6, numberingSystem: this.numberingSystem, onCalciteInputChange: this.onInputChange, onCalciteInternalInputBlur: this.onCalciteInternalInputBlur, onKeyDown: this.handleKeyDown, onPaste: this.onPaste, prefixText: "#", ref: this.storeInputRef, scale: this.scale, value: hexInputValue }), hexInputValue ? (hAsync("calcite-color-picker-swatch", { active: true, class: CSS$K.preview, color: `#${hexInputValue}`, scale: this.scale })) : null));
|
|
13978
13955
|
}
|
|
13979
13956
|
//--------------------------------------------------------------------------
|
|
13980
13957
|
//
|
|
@@ -14051,7 +14028,7 @@ class ColorPickerHexInput {
|
|
|
14051
14028
|
}; }
|
|
14052
14029
|
}
|
|
14053
14030
|
|
|
14054
|
-
const CSS$
|
|
14031
|
+
const CSS$J = {
|
|
14055
14032
|
swatch: "swatch",
|
|
14056
14033
|
noColorIcon: "no-color-icon"
|
|
14057
14034
|
};
|
|
@@ -14086,7 +14063,7 @@ class ColorPickerSwatch {
|
|
|
14086
14063
|
const hex = internalColor.hex();
|
|
14087
14064
|
const theme = getThemeName(el);
|
|
14088
14065
|
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
14089
|
-
return (hAsync("svg", { class: CSS$
|
|
14066
|
+
return (hAsync("svg", { class: CSS$J.swatch, xmlns: "http://www.w3.org/2000/svg" }, hAsync("title", null, hex), hAsync("rect", { fill: hex, height: "100%", id: "swatch", rx: borderRadius, stroke: borderColor, "stroke-width": "2", style: { "clip-path": `inset(0 round ${borderRadius})` }, width: "100%" })));
|
|
14090
14067
|
}
|
|
14091
14068
|
get el() { return getElement(this); }
|
|
14092
14069
|
static get watchers() { return {
|
|
@@ -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
|
|
@@ -16633,7 +16602,7 @@ class Combobox {
|
|
|
16633
16602
|
}; }
|
|
16634
16603
|
}
|
|
16635
16604
|
|
|
16636
|
-
const CSS$
|
|
16605
|
+
const CSS$I = {
|
|
16637
16606
|
icon: "icon",
|
|
16638
16607
|
iconActive: "icon--active",
|
|
16639
16608
|
custom: "icon--custom",
|
|
@@ -16719,18 +16688,18 @@ class ComboboxItem {
|
|
|
16719
16688
|
// --------------------------------------------------------------------------
|
|
16720
16689
|
renderIcon(isSingle) {
|
|
16721
16690
|
const { icon, disabled, selected } = this;
|
|
16722
|
-
const level = `${CSS$
|
|
16691
|
+
const level = `${CSS$I.icon}--indent`;
|
|
16723
16692
|
const defaultIcon = isSingle ? "dot" : "check";
|
|
16724
16693
|
const iconPath = disabled ? "circle-disallowed" : defaultIcon;
|
|
16725
16694
|
const showDot = isSingle && !icon && !disabled;
|
|
16726
16695
|
return showDot ? (hAsync("span", { class: {
|
|
16727
|
-
[CSS$
|
|
16728
|
-
[CSS$
|
|
16696
|
+
[CSS$I.icon]: true,
|
|
16697
|
+
[CSS$I.dot]: true,
|
|
16729
16698
|
[level]: true
|
|
16730
16699
|
} })) : (hAsync("calcite-icon", { class: {
|
|
16731
|
-
[CSS$
|
|
16732
|
-
[CSS$
|
|
16733
|
-
[CSS$
|
|
16700
|
+
[CSS$I.icon]: !icon,
|
|
16701
|
+
[CSS$I.custom]: !!icon,
|
|
16702
|
+
[CSS$I.iconActive]: icon && selected,
|
|
16734
16703
|
[level]: true
|
|
16735
16704
|
}, icon: icon || iconPath, scale: "s" }));
|
|
16736
16705
|
}
|
|
@@ -16743,13 +16712,13 @@ class ComboboxItem {
|
|
|
16743
16712
|
render() {
|
|
16744
16713
|
const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
|
|
16745
16714
|
const classes = {
|
|
16746
|
-
[CSS$
|
|
16747
|
-
[CSS$
|
|
16748
|
-
[CSS$
|
|
16749
|
-
[CSS$
|
|
16715
|
+
[CSS$I.label]: true,
|
|
16716
|
+
[CSS$I.selected]: this.selected,
|
|
16717
|
+
[CSS$I.active]: this.active,
|
|
16718
|
+
[CSS$I.single]: isSingleSelect
|
|
16750
16719
|
};
|
|
16751
16720
|
const depth = getDepth$1();
|
|
16752
|
-
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), hAsync("span", { class: CSS$
|
|
16721
|
+
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderIcon(isSingleSelect), hAsync("span", { class: CSS$I.title }, this.textLabel)), this.renderChildren())));
|
|
16753
16722
|
}
|
|
16754
16723
|
get el() { return getElement(this); }
|
|
16755
16724
|
static get watchers() { return {
|
|
@@ -16778,7 +16747,7 @@ class ComboboxItem {
|
|
|
16778
16747
|
}; }
|
|
16779
16748
|
}
|
|
16780
16749
|
|
|
16781
|
-
const CSS$
|
|
16750
|
+
const CSS$H = {
|
|
16782
16751
|
list: "list",
|
|
16783
16752
|
label: "label",
|
|
16784
16753
|
title: "title"
|
|
@@ -16813,8 +16782,8 @@ class ComboboxItemGroup {
|
|
|
16813
16782
|
// --------------------------------------------------------------------------
|
|
16814
16783
|
render() {
|
|
16815
16784
|
const { el, scale } = this;
|
|
16816
|
-
const indent = `${CSS$
|
|
16817
|
-
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
16785
|
+
const indent = `${CSS$H.label}--indent-${getDepth$1()}`;
|
|
16786
|
+
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$H.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$H.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, hAsync("span", { class: CSS$H.title }, this.label)), hAsync("slot", null)));
|
|
16818
16787
|
}
|
|
16819
16788
|
get el() { return getElement(this); }
|
|
16820
16789
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -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) {
|
|
@@ -17937,6 +17902,19 @@ class DatePickerMonth {
|
|
|
17937
17902
|
}
|
|
17938
17903
|
|
|
17939
17904
|
const BUDDHIST_CALENDAR_YEAR_OFFSET = 543;
|
|
17905
|
+
const CSS$G = {
|
|
17906
|
+
header: "header",
|
|
17907
|
+
month: "month",
|
|
17908
|
+
chevron: "chevron",
|
|
17909
|
+
suffix: "suffix",
|
|
17910
|
+
yearSuffix: "year--suffix",
|
|
17911
|
+
yearWrap: "year-wrap",
|
|
17912
|
+
textReverse: "text--reverse"
|
|
17913
|
+
};
|
|
17914
|
+
const ICON = {
|
|
17915
|
+
chevronLeft: "chevron-left",
|
|
17916
|
+
chevronRight: "chevron-right"
|
|
17917
|
+
};
|
|
17940
17918
|
|
|
17941
17919
|
const datePickerMonthHeaderCss = "@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-date-picker-month-header: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-date-picker-month-header{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-date-picker-month-header{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-date-picker-month-header{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-date-picker-month-header{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-date-picker-month-header{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-date-picker-month-header:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-date-picker-month-header:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-date-picker-month-header-h{display:none}/*!@:host*/.sc-calcite-date-picker-month-header-h{display:block}/*!@.header*/.header.sc-calcite-date-picker-month-header{display:flex;justify-content:space-between;padding-block:0px;padding-inline:0.25rem}/*!@:host([scale=s]) .text*/[scale=s].sc-calcite-date-picker-month-header-h .text.sc-calcite-date-picker-month-header{margin-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=s]) .chevron*/[scale=s].sc-calcite-date-picker-month-header-h .chevron.sc-calcite-date-picker-month-header{block-size:2.25rem}/*!@:host([scale=m]) .text*/[scale=m].sc-calcite-date-picker-month-header-h .text.sc-calcite-date-picker-month-header{margin-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=m]) .chevron*/[scale=m].sc-calcite-date-picker-month-header-h .chevron.sc-calcite-date-picker-month-header{block-size:3rem}/*!@:host([scale=l]) .text*/[scale=l].sc-calcite-date-picker-month-header-h .text.sc-calcite-date-picker-month-header{margin-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.5rem}/*!@:host([scale=l]) .chevron*/[scale=l].sc-calcite-date-picker-month-header-h .chevron.sc-calcite-date-picker-month-header{block-size:3.5rem}/*!@.chevron*/.chevron.sc-calcite-date-picker-month-header{margin-inline:-0.25rem;box-sizing:content-box;display:flex;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-inline:0.25rem;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inline-size:14.2857142857%}/*!@.chevron:focus*/.chevron.sc-calcite-date-picker-month-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.chevron:hover, .chevron:focus*/.chevron.sc-calcite-date-picker-month-header:hover,.chevron.sc-calcite-date-picker-month-header:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@.chevron:active*/.chevron.sc-calcite-date-picker-month-header:active{background-color:var(--calcite-ui-foreground-3)}/*!@.chevron[aria-disabled=true]*/.chevron[aria-disabled=true].sc-calcite-date-picker-month-header{pointer-events:none;opacity:0}/*!@.text*/.text.sc-calcite-date-picker-month-header{margin-block:auto;display:flex;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:center;text-align:center;line-height:1}/*!@.text--reverse*/.text--reverse.sc-calcite-date-picker-month-header{flex-direction:row-reverse}/*!@.month,\n.year,\n.suffix*/.month.sc-calcite-date-picker-month-header,.year.sc-calcite-date-picker-month-header,.suffix.sc-calcite-date-picker-month-header{margin-inline:0.25rem;margin-block:auto;display:inline-block;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-1);font-size:inherit}/*!@.year*/.year.sc-calcite-date-picker-month-header{position:relative;inline-size:2.5rem;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent}/*!@.year:hover*/.year.sc-calcite-date-picker-month-header:hover{transition-duration:100ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:outline-color;outline:2px solid var(--calcite-ui-border-2);outline-offset:2px}/*!@.year:focus*/.year.sc-calcite-date-picker-month-header:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}/*!@.year--suffix*/.year--suffix.sc-calcite-date-picker-month-header{text-align:start}/*!@.year-wrap*/.year-wrap.sc-calcite-date-picker-month-header{position:relative}/*!@.suffix*/.suffix.sc-calcite-date-picker-month-header{inset-block-start:0px;white-space:nowrap;text-align:start;inset-inline-start:0}";
|
|
17942
17920
|
|
|
@@ -18027,10 +18005,9 @@ class DatePickerMonthHeader {
|
|
|
18027
18005
|
this.setNextPrevMonthDates();
|
|
18028
18006
|
}
|
|
18029
18007
|
render() {
|
|
18030
|
-
return hAsync("div", { class:
|
|
18008
|
+
return hAsync("div", { class: CSS$G.header }, this.renderContent());
|
|
18031
18009
|
}
|
|
18032
18010
|
renderContent() {
|
|
18033
|
-
var _a;
|
|
18034
18011
|
if (!this.activeDate || !this.localeData) {
|
|
18035
18012
|
return null;
|
|
18036
18013
|
}
|
|
@@ -18049,11 +18026,11 @@ class DatePickerMonthHeader {
|
|
|
18049
18026
|
const iconScale = this.scale === "l" ? "m" : "s";
|
|
18050
18027
|
const order = getOrder(unitOrder);
|
|
18051
18028
|
const reverse = order.indexOf("y") < order.indexOf("m");
|
|
18052
|
-
const suffix =
|
|
18053
|
-
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": this.intlPrevMonth, class:
|
|
18029
|
+
const suffix = this.localeData.year?.suffix;
|
|
18030
|
+
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": this.intlPrevMonth, class: CSS$G.chevron, href: "#", onClick: this.prevMonthClick, onKeyDown: this.prevMonthKeydown, role: "button", tabindex: this.prevMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: ICON.chevronLeft, scale: iconScale })), hAsync("div", { class: { text: true, [CSS$G.textReverse]: reverse } }, hAsync(Heading, { class: CSS$G.month, level: this.headingLevel }, localizedMonth), hAsync("span", { class: CSS$G.yearWrap }, hAsync("input", { "aria-label": this.intlYear, class: {
|
|
18054
18031
|
year: true,
|
|
18055
|
-
|
|
18056
|
-
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", ref: (el) => (this.yearInput = el), type: "text", value: localizedYear }), suffix && hAsync("span", { class:
|
|
18032
|
+
[CSS$G.yearSuffix]: !!suffix
|
|
18033
|
+
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", ref: (el) => (this.yearInput = el), type: "text", value: localizedYear }), suffix && hAsync("span", { class: CSS$G.suffix }, suffix))), hAsync("a", { "aria-disabled": `${this.nextMonthDate.getMonth() === activeMonth}`, "aria-label": this.intlNextMonth, class: CSS$G.chevron, href: "#", onClick: this.nextMonthClick, onKeyDown: this.nextMonthKeydown, role: "button", tabindex: this.nextMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: ICON.chevronRight, scale: iconScale }))));
|
|
18057
18034
|
}
|
|
18058
18035
|
setNextPrevMonthDates() {
|
|
18059
18036
|
if (!this.activeDate) {
|
|
@@ -18189,7 +18166,7 @@ class Dropdown {
|
|
|
18189
18166
|
};
|
|
18190
18167
|
this.updateItems = () => {
|
|
18191
18168
|
this.items = this.groups
|
|
18192
|
-
.map((group) => Array.from(group
|
|
18169
|
+
.map((group) => Array.from(group?.querySelectorAll("calcite-dropdown-item")))
|
|
18193
18170
|
.reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
|
|
18194
18171
|
this.updateSelectedItems();
|
|
18195
18172
|
this.reposition(true);
|
|
@@ -18197,7 +18174,7 @@ class Dropdown {
|
|
|
18197
18174
|
this.updateGroups = (event) => {
|
|
18198
18175
|
const groups = event.target
|
|
18199
18176
|
.assignedElements({ flatten: true })
|
|
18200
|
-
.filter((el) => el
|
|
18177
|
+
.filter((el) => el?.matches("calcite-dropdown-group"));
|
|
18201
18178
|
this.groups = groups;
|
|
18202
18179
|
this.updateItems();
|
|
18203
18180
|
};
|
|
@@ -18214,7 +18191,7 @@ class Dropdown {
|
|
|
18214
18191
|
};
|
|
18215
18192
|
this.setDropdownWidth = () => {
|
|
18216
18193
|
const { referenceEl, scrollerEl } = this;
|
|
18217
|
-
const referenceElWidth = referenceEl
|
|
18194
|
+
const referenceElWidth = referenceEl?.clientWidth;
|
|
18218
18195
|
if (!referenceElWidth || !scrollerEl) {
|
|
18219
18196
|
return;
|
|
18220
18197
|
}
|
|
@@ -18339,8 +18316,7 @@ class Dropdown {
|
|
|
18339
18316
|
//
|
|
18340
18317
|
//--------------------------------------------------------------------------
|
|
18341
18318
|
connectedCallback() {
|
|
18342
|
-
|
|
18343
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
18319
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
18344
18320
|
this.setFilteredPlacements();
|
|
18345
18321
|
this.reposition(true);
|
|
18346
18322
|
if (this.open) {
|
|
@@ -18355,10 +18331,9 @@ class Dropdown {
|
|
|
18355
18331
|
updateHostInteraction(this);
|
|
18356
18332
|
}
|
|
18357
18333
|
disconnectedCallback() {
|
|
18358
|
-
|
|
18359
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
18334
|
+
this.mutationObserver?.disconnect();
|
|
18360
18335
|
disconnectFloatingUI(this, this.referenceEl, this.floatingEl);
|
|
18361
|
-
|
|
18336
|
+
this.resizeObserver?.disconnect();
|
|
18362
18337
|
disconnectOpenCloseComponent(this);
|
|
18363
18338
|
}
|
|
18364
18339
|
render() {
|
|
@@ -18684,9 +18659,8 @@ class DropdownItem {
|
|
|
18684
18659
|
//--------------------------------------------------------------------------
|
|
18685
18660
|
/** Sets focus on the component. */
|
|
18686
18661
|
async setFocus() {
|
|
18687
|
-
var _a;
|
|
18688
18662
|
await componentLoaded(this);
|
|
18689
|
-
|
|
18663
|
+
this.el?.focus();
|
|
18690
18664
|
}
|
|
18691
18665
|
//--------------------------------------------------------------------------
|
|
18692
18666
|
//
|
|
@@ -19129,13 +19103,11 @@ class Flow {
|
|
|
19129
19103
|
//
|
|
19130
19104
|
// --------------------------------------------------------------------------
|
|
19131
19105
|
connectedCallback() {
|
|
19132
|
-
|
|
19133
|
-
(_a = this.itemMutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
19106
|
+
this.itemMutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
19134
19107
|
this.updateFlowProps();
|
|
19135
19108
|
}
|
|
19136
19109
|
disconnectedCallback() {
|
|
19137
|
-
|
|
19138
|
-
(_a = this.itemMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
19110
|
+
this.itemMutationObserver?.disconnect();
|
|
19139
19111
|
}
|
|
19140
19112
|
// --------------------------------------------------------------------------
|
|
19141
19113
|
//
|
|
@@ -19324,7 +19296,7 @@ class FlowItem {
|
|
|
19324
19296
|
backButtonEl.setFocus();
|
|
19325
19297
|
return;
|
|
19326
19298
|
}
|
|
19327
|
-
containerEl
|
|
19299
|
+
containerEl?.setFocus();
|
|
19328
19300
|
}
|
|
19329
19301
|
/**
|
|
19330
19302
|
* Scrolls the component's content to a specified set of coordinates.
|
|
@@ -19338,8 +19310,7 @@ class FlowItem {
|
|
|
19338
19310
|
* @param options
|
|
19339
19311
|
*/
|
|
19340
19312
|
async scrollContentTo(options) {
|
|
19341
|
-
|
|
19342
|
-
await ((_a = this.containerEl) === null || _a === void 0 ? void 0 : _a.scrollContentTo(options));
|
|
19313
|
+
await this.containerEl?.scrollContentTo(options);
|
|
19343
19314
|
}
|
|
19344
19315
|
// --------------------------------------------------------------------------
|
|
19345
19316
|
//
|
|
@@ -19542,12 +19513,10 @@ class Graph {
|
|
|
19542
19513
|
//
|
|
19543
19514
|
//--------------------------------------------------------------------------
|
|
19544
19515
|
connectedCallback() {
|
|
19545
|
-
|
|
19546
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
|
|
19516
|
+
this.resizeObserver?.observe(this.el);
|
|
19547
19517
|
}
|
|
19548
19518
|
disconnectedCallback() {
|
|
19549
|
-
|
|
19550
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
19519
|
+
this.resizeObserver?.disconnect();
|
|
19551
19520
|
}
|
|
19552
19521
|
render() {
|
|
19553
19522
|
const { data, colorStops, el, highlightMax, highlightMin, min, max } = this;
|
|
@@ -19677,9 +19646,8 @@ class Handle {
|
|
|
19677
19646
|
// --------------------------------------------------------------------------
|
|
19678
19647
|
/** Sets focus on the component. */
|
|
19679
19648
|
async setFocus() {
|
|
19680
|
-
var _a;
|
|
19681
19649
|
await componentLoaded(this);
|
|
19682
|
-
|
|
19650
|
+
this.handleButton?.focus();
|
|
19683
19651
|
}
|
|
19684
19652
|
// --------------------------------------------------------------------------
|
|
19685
19653
|
//
|
|
@@ -19744,8 +19712,7 @@ class Icon {
|
|
|
19744
19712
|
});
|
|
19745
19713
|
}
|
|
19746
19714
|
disconnectedCallback() {
|
|
19747
|
-
|
|
19748
|
-
(_a = this.intersectionObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
19715
|
+
this.intersectionObserver?.disconnect();
|
|
19749
19716
|
this.intersectionObserver = null;
|
|
19750
19717
|
}
|
|
19751
19718
|
async componentWillLoad() {
|
|
@@ -19832,10 +19799,9 @@ class InlineEditable {
|
|
|
19832
19799
|
this.calciteInternalInlineEditableEnableEditingChange = createEvent(this, "calciteInternalInlineEditableEnableEditingChange", 6);
|
|
19833
19800
|
this.mutationObserver = createObserver();
|
|
19834
19801
|
this.enableEditing = () => {
|
|
19835
|
-
|
|
19836
|
-
this.valuePriorToEditing = (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.value;
|
|
19802
|
+
this.valuePriorToEditing = this.inputElement?.value;
|
|
19837
19803
|
this.editingEnabled = true;
|
|
19838
|
-
|
|
19804
|
+
this.inputElement?.setFocus();
|
|
19839
19805
|
this.calciteInternalInlineEditableEnableEditingChange.emit();
|
|
19840
19806
|
};
|
|
19841
19807
|
this.disableEditing = () => {
|
|
@@ -19852,7 +19818,6 @@ class InlineEditable {
|
|
|
19852
19818
|
}
|
|
19853
19819
|
};
|
|
19854
19820
|
this.escapeKeyHandler = async (event) => {
|
|
19855
|
-
var _a;
|
|
19856
19821
|
if (event.defaultPrevented) {
|
|
19857
19822
|
return;
|
|
19858
19823
|
}
|
|
@@ -19867,7 +19832,7 @@ class InlineEditable {
|
|
|
19867
19832
|
}
|
|
19868
19833
|
if (!!event.shiftKey && event.target === this.cancelEditingButton) {
|
|
19869
19834
|
event.preventDefault();
|
|
19870
|
-
|
|
19835
|
+
this.inputElement?.setFocus();
|
|
19871
19836
|
}
|
|
19872
19837
|
}
|
|
19873
19838
|
};
|
|
@@ -19932,9 +19897,8 @@ class InlineEditable {
|
|
|
19932
19897
|
//
|
|
19933
19898
|
//--------------------------------------------------------------------------
|
|
19934
19899
|
connectedCallback() {
|
|
19935
|
-
var _a;
|
|
19936
19900
|
connectLabel(this);
|
|
19937
|
-
|
|
19901
|
+
this.mutationObserver?.observe(this.el, { childList: true });
|
|
19938
19902
|
this.mutationObserverCallback();
|
|
19939
19903
|
}
|
|
19940
19904
|
componentWillLoad() {
|
|
@@ -19944,9 +19908,8 @@ class InlineEditable {
|
|
|
19944
19908
|
setComponentLoaded(this);
|
|
19945
19909
|
}
|
|
19946
19910
|
disconnectedCallback() {
|
|
19947
|
-
var _a;
|
|
19948
19911
|
disconnectLabel(this);
|
|
19949
|
-
|
|
19912
|
+
this.mutationObserver?.disconnect();
|
|
19950
19913
|
}
|
|
19951
19914
|
componentDidRender() {
|
|
19952
19915
|
updateHostInteraction(this);
|
|
@@ -19976,13 +19939,12 @@ class InlineEditable {
|
|
|
19976
19939
|
//
|
|
19977
19940
|
//--------------------------------------------------------------------------
|
|
19978
19941
|
async setFocus() {
|
|
19979
|
-
var _a, _b;
|
|
19980
19942
|
await componentLoaded(this);
|
|
19981
19943
|
if (this.editingEnabled) {
|
|
19982
|
-
|
|
19944
|
+
this.inputElement?.setFocus();
|
|
19983
19945
|
}
|
|
19984
19946
|
else {
|
|
19985
|
-
|
|
19947
|
+
this.enableEditingButton?.setFocus();
|
|
19986
19948
|
}
|
|
19987
19949
|
}
|
|
19988
19950
|
//--------------------------------------------------------------------------
|
|
@@ -19991,10 +19953,9 @@ class InlineEditable {
|
|
|
19991
19953
|
//
|
|
19992
19954
|
//--------------------------------------------------------------------------
|
|
19993
19955
|
mutationObserverCallback() {
|
|
19994
|
-
var _a;
|
|
19995
19956
|
this.updateSlottedInput();
|
|
19996
19957
|
this.scale =
|
|
19997
|
-
this.scale ||
|
|
19958
|
+
this.scale || this.inputElement?.scale || getElementProp(this.el, "scale", undefined);
|
|
19998
19959
|
}
|
|
19999
19960
|
onLabelClick() {
|
|
20000
19961
|
this.setFocus();
|
|
@@ -20423,13 +20384,11 @@ class Input {
|
|
|
20423
20384
|
}
|
|
20424
20385
|
/** watcher to update number-to-string for max */
|
|
20425
20386
|
maxWatcher() {
|
|
20426
|
-
|
|
20427
|
-
this.maxString = ((_a = this.max) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
20387
|
+
this.maxString = this.max?.toString() || null;
|
|
20428
20388
|
}
|
|
20429
20389
|
/** watcher to update number-to-string for min */
|
|
20430
20390
|
minWatcher() {
|
|
20431
|
-
|
|
20432
|
-
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
20391
|
+
this.minString = this.min?.toString() || null;
|
|
20433
20392
|
}
|
|
20434
20393
|
valueWatcher(newValue, previousValue) {
|
|
20435
20394
|
if (!this.userChangedValue) {
|
|
@@ -20463,7 +20422,6 @@ class Input {
|
|
|
20463
20422
|
//
|
|
20464
20423
|
//--------------------------------------------------------------------------
|
|
20465
20424
|
connectedCallback() {
|
|
20466
|
-
var _a;
|
|
20467
20425
|
connectLocalized(this);
|
|
20468
20426
|
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
20469
20427
|
this.status = getElementProp(this.el, "status", this.status);
|
|
@@ -20482,24 +20440,22 @@ class Input {
|
|
|
20482
20440
|
value: isValidNumber(this.value) ? this.value : ""
|
|
20483
20441
|
});
|
|
20484
20442
|
}
|
|
20485
|
-
|
|
20443
|
+
this.mutationObserver?.observe(this.el, { childList: true });
|
|
20486
20444
|
this.setDisabledAction();
|
|
20487
20445
|
this.el.addEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
|
|
20488
20446
|
}
|
|
20489
20447
|
disconnectedCallback() {
|
|
20490
|
-
var _a;
|
|
20491
20448
|
disconnectLabel(this);
|
|
20492
20449
|
disconnectForm(this);
|
|
20493
20450
|
disconnectLocalized(this);
|
|
20494
|
-
|
|
20451
|
+
this.mutationObserver?.disconnect();
|
|
20495
20452
|
this.el.removeEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
|
|
20496
20453
|
}
|
|
20497
20454
|
componentWillLoad() {
|
|
20498
|
-
var _a, _b;
|
|
20499
20455
|
setUpLoadableComponent(this);
|
|
20500
20456
|
this.childElType = this.type === "textarea" ? "textarea" : "input";
|
|
20501
|
-
this.maxString =
|
|
20502
|
-
this.minString =
|
|
20457
|
+
this.maxString = this.max?.toString();
|
|
20458
|
+
this.minString = this.min?.toString();
|
|
20503
20459
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
20504
20460
|
}
|
|
20505
20461
|
componentDidLoad() {
|
|
@@ -20525,23 +20481,21 @@ class Input {
|
|
|
20525
20481
|
//--------------------------------------------------------------------------
|
|
20526
20482
|
/** Sets focus on the component. */
|
|
20527
20483
|
async setFocus() {
|
|
20528
|
-
var _a, _b;
|
|
20529
20484
|
await componentLoaded(this);
|
|
20530
20485
|
if (this.type === "number") {
|
|
20531
|
-
|
|
20486
|
+
this.childNumberEl?.focus();
|
|
20532
20487
|
}
|
|
20533
20488
|
else {
|
|
20534
|
-
|
|
20489
|
+
this.childEl?.focus();
|
|
20535
20490
|
}
|
|
20536
20491
|
}
|
|
20537
20492
|
/** Selects all text of the component's `value`. */
|
|
20538
20493
|
async selectText() {
|
|
20539
|
-
var _a, _b;
|
|
20540
20494
|
if (this.type === "number") {
|
|
20541
|
-
|
|
20495
|
+
this.childNumberEl?.select();
|
|
20542
20496
|
}
|
|
20543
20497
|
else {
|
|
20544
|
-
|
|
20498
|
+
this.childEl?.select();
|
|
20545
20499
|
}
|
|
20546
20500
|
}
|
|
20547
20501
|
onLabelClick() {
|
|
@@ -20573,11 +20527,10 @@ class Input {
|
|
|
20573
20527
|
});
|
|
20574
20528
|
}
|
|
20575
20529
|
syncHiddenFormInput(input) {
|
|
20576
|
-
var _a, _b, _c, _d;
|
|
20577
20530
|
if (this.type === "number") {
|
|
20578
20531
|
input.type = "number";
|
|
20579
|
-
input.min =
|
|
20580
|
-
input.max =
|
|
20532
|
+
input.min = this.min?.toString(10) ?? "";
|
|
20533
|
+
input.max = this.max?.toString(10) ?? "";
|
|
20581
20534
|
}
|
|
20582
20535
|
else if (this.type === "text") {
|
|
20583
20536
|
input.type = "text";
|
|
@@ -20769,15 +20722,14 @@ class InputDatePicker {
|
|
|
20769
20722
|
this.open = false;
|
|
20770
20723
|
};
|
|
20771
20724
|
this.keyDownHandler = (event) => {
|
|
20772
|
-
var _a, _b;
|
|
20773
20725
|
const { defaultPrevented, key } = event;
|
|
20774
20726
|
if (key === "Enter" && !defaultPrevented) {
|
|
20775
20727
|
this.commitValue();
|
|
20776
20728
|
if (this.shouldFocusRangeEnd()) {
|
|
20777
|
-
|
|
20729
|
+
this.endInput?.setFocus();
|
|
20778
20730
|
}
|
|
20779
20731
|
else if (this.shouldFocusRangeStart()) {
|
|
20780
|
-
|
|
20732
|
+
this.startInput?.setFocus();
|
|
20781
20733
|
}
|
|
20782
20734
|
if (submitForm(this)) {
|
|
20783
20735
|
event.preventDefault();
|
|
@@ -20829,7 +20781,6 @@ class InputDatePicker {
|
|
|
20829
20781
|
this.localizeInputValues();
|
|
20830
20782
|
};
|
|
20831
20783
|
this.handleDateRangeChange = (event) => {
|
|
20832
|
-
var _a, _b;
|
|
20833
20784
|
if (!this.range || !event.detail) {
|
|
20834
20785
|
return;
|
|
20835
20786
|
}
|
|
@@ -20838,10 +20789,10 @@ class InputDatePicker {
|
|
|
20838
20789
|
this.setRangeValue([startDate, endDate]);
|
|
20839
20790
|
this.localizeInputValues();
|
|
20840
20791
|
if (this.shouldFocusRangeEnd()) {
|
|
20841
|
-
|
|
20792
|
+
this.endInput?.setFocus();
|
|
20842
20793
|
}
|
|
20843
20794
|
else if (this.shouldFocusRangeStart()) {
|
|
20844
|
-
|
|
20795
|
+
this.startInput?.setFocus();
|
|
20845
20796
|
}
|
|
20846
20797
|
};
|
|
20847
20798
|
this.setInputValue = (newValue, input = "start") => {
|
|
@@ -20909,17 +20860,12 @@ class InputDatePicker {
|
|
|
20909
20860
|
this.setInputValue(oldValue);
|
|
20910
20861
|
}
|
|
20911
20862
|
};
|
|
20912
|
-
this.commonDateSeparators = [".", "-", "/"];
|
|
20913
20863
|
this.formatNumerals = (value) => value
|
|
20914
20864
|
? value
|
|
20915
20865
|
.split("")
|
|
20916
|
-
.map((char) =>
|
|
20917
|
-
|
|
20918
|
-
|
|
20919
|
-
? this.localeData.separator
|
|
20920
|
-
: numberKeys.includes(char)
|
|
20921
|
-
? numberStringFormatter.numberFormatter.format(Number(char))
|
|
20922
|
-
: char)
|
|
20866
|
+
.map((char) => numberKeys.includes(char)
|
|
20867
|
+
? numberStringFormatter.numberFormatter.format(Number(char))
|
|
20868
|
+
: char)
|
|
20923
20869
|
.join("")
|
|
20924
20870
|
: "";
|
|
20925
20871
|
this.disabled = false;
|
|
@@ -21048,9 +20994,8 @@ class InputDatePicker {
|
|
|
21048
20994
|
// --------------------------------------------------------------------------
|
|
21049
20995
|
/** Sets focus on the component. */
|
|
21050
20996
|
async setFocus() {
|
|
21051
|
-
var _a;
|
|
21052
20997
|
await componentLoaded(this);
|
|
21053
|
-
|
|
20998
|
+
this.startInput?.setFocus();
|
|
21054
20999
|
}
|
|
21055
21000
|
/**
|
|
21056
21001
|
* Updates the position of the component.
|
|
@@ -21142,14 +21087,13 @@ class InputDatePicker {
|
|
|
21142
21087
|
updateHostInteraction(this);
|
|
21143
21088
|
}
|
|
21144
21089
|
render() {
|
|
21145
|
-
var _a, _b;
|
|
21146
21090
|
const { disabled, effectiveLocale, numberingSystem, readOnly } = this;
|
|
21147
21091
|
numberStringFormatter.numberFormatOptions = {
|
|
21148
21092
|
numberingSystem,
|
|
21149
21093
|
locale: effectiveLocale,
|
|
21150
21094
|
useGrouping: false
|
|
21151
21095
|
};
|
|
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),
|
|
21096
|
+
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), "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
21097
|
[CSS$u.menu]: true,
|
|
21154
21098
|
[CSS$u.menuActive]: this.open
|
|
21155
21099
|
}, ref: this.setFloatingEl }, hAsync("div", { class: {
|
|
@@ -21157,10 +21101,10 @@ class InputDatePicker {
|
|
|
21157
21101
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
21158
21102
|
[FloatingCSS.animation]: true,
|
|
21159
21103
|
[FloatingCSS.animationActive]: this.open
|
|
21160
|
-
}, 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,
|
|
21104
|
+
}, 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, 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
21105
|
input: true,
|
|
21162
21106
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
21163
|
-
}, disabled: disabled, icon: "calendar",
|
|
21107
|
+
}, disabled: disabled, icon: "calendar", "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
21108
|
}
|
|
21165
21109
|
setReferenceEl() {
|
|
21166
21110
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -21726,13 +21670,11 @@ class InputNumber {
|
|
|
21726
21670
|
}
|
|
21727
21671
|
/** watcher to update number-to-string for max */
|
|
21728
21672
|
maxWatcher() {
|
|
21729
|
-
|
|
21730
|
-
this.maxString = ((_a = this.max) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
21673
|
+
this.maxString = this.max?.toString() || null;
|
|
21731
21674
|
}
|
|
21732
21675
|
/** watcher to update number-to-string for min */
|
|
21733
21676
|
minWatcher() {
|
|
21734
|
-
|
|
21735
|
-
this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
|
|
21677
|
+
this.minString = this.min?.toString() || null;
|
|
21736
21678
|
}
|
|
21737
21679
|
valueWatcher(newValue, previousValue) {
|
|
21738
21680
|
if (!this.userChangedValue) {
|
|
@@ -21761,7 +21703,6 @@ class InputNumber {
|
|
|
21761
21703
|
//
|
|
21762
21704
|
//--------------------------------------------------------------------------
|
|
21763
21705
|
connectedCallback() {
|
|
21764
|
-
var _a;
|
|
21765
21706
|
connectLocalized(this);
|
|
21766
21707
|
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
21767
21708
|
this.status = getElementProp(this.el, "status", this.status);
|
|
@@ -21778,7 +21719,7 @@ class InputNumber {
|
|
|
21778
21719
|
origin: "connected",
|
|
21779
21720
|
value: isValidNumber(this.value) ? this.value : ""
|
|
21780
21721
|
});
|
|
21781
|
-
|
|
21722
|
+
this.mutationObserver?.observe(this.el, { childList: true });
|
|
21782
21723
|
this.setDisabledAction();
|
|
21783
21724
|
this.el.addEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
|
|
21784
21725
|
}
|
|
@@ -21786,18 +21727,16 @@ class InputNumber {
|
|
|
21786
21727
|
setComponentLoaded(this);
|
|
21787
21728
|
}
|
|
21788
21729
|
disconnectedCallback() {
|
|
21789
|
-
var _a;
|
|
21790
21730
|
disconnectLabel(this);
|
|
21791
21731
|
disconnectForm(this);
|
|
21792
21732
|
disconnectLocalized(this);
|
|
21793
|
-
|
|
21733
|
+
this.mutationObserver?.disconnect();
|
|
21794
21734
|
this.el.removeEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
|
|
21795
21735
|
}
|
|
21796
21736
|
componentWillLoad() {
|
|
21797
|
-
var _a, _b;
|
|
21798
21737
|
setUpLoadableComponent(this);
|
|
21799
|
-
this.maxString =
|
|
21800
|
-
this.minString =
|
|
21738
|
+
this.maxString = this.max?.toString();
|
|
21739
|
+
this.minString = this.min?.toString();
|
|
21801
21740
|
this.requestedIcon = setRequestedIcon({}, this.icon, "number");
|
|
21802
21741
|
}
|
|
21803
21742
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
@@ -21820,14 +21759,12 @@ class InputNumber {
|
|
|
21820
21759
|
//--------------------------------------------------------------------------
|
|
21821
21760
|
/** Sets focus on the component. */
|
|
21822
21761
|
async setFocus() {
|
|
21823
|
-
var _a;
|
|
21824
21762
|
await componentLoaded(this);
|
|
21825
|
-
|
|
21763
|
+
this.childNumberEl?.focus();
|
|
21826
21764
|
}
|
|
21827
21765
|
/** Selects all text of the component's `value`. */
|
|
21828
21766
|
async selectText() {
|
|
21829
|
-
|
|
21830
|
-
(_a = this.childNumberEl) === null || _a === void 0 ? void 0 : _a.select();
|
|
21767
|
+
this.childNumberEl?.select();
|
|
21831
21768
|
}
|
|
21832
21769
|
onLabelClick() {
|
|
21833
21770
|
this.setFocus();
|
|
@@ -21858,10 +21795,9 @@ class InputNumber {
|
|
|
21858
21795
|
});
|
|
21859
21796
|
}
|
|
21860
21797
|
syncHiddenFormInput(input) {
|
|
21861
|
-
var _a, _b, _c, _d;
|
|
21862
21798
|
input.type = "number";
|
|
21863
|
-
input.min =
|
|
21864
|
-
input.max =
|
|
21799
|
+
input.min = this.min?.toString(10) ?? "";
|
|
21800
|
+
input.max = this.max?.toString(10) ?? "";
|
|
21865
21801
|
}
|
|
21866
21802
|
setDisabledAction() {
|
|
21867
21803
|
const slottedActionEl = getSlotted(this.el, "action");
|
|
@@ -22163,7 +22099,6 @@ class InputText {
|
|
|
22163
22099
|
//
|
|
22164
22100
|
//--------------------------------------------------------------------------
|
|
22165
22101
|
connectedCallback() {
|
|
22166
|
-
var _a;
|
|
22167
22102
|
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
22168
22103
|
this.status = getElementProp(this.el, "status", this.status);
|
|
22169
22104
|
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
@@ -22174,15 +22109,14 @@ class InputText {
|
|
|
22174
22109
|
this.setPreviousValue(this.value);
|
|
22175
22110
|
connectLabel(this);
|
|
22176
22111
|
connectForm(this);
|
|
22177
|
-
|
|
22112
|
+
this.mutationObserver?.observe(this.el, { childList: true });
|
|
22178
22113
|
this.setDisabledAction();
|
|
22179
22114
|
this.el.addEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
|
|
22180
22115
|
}
|
|
22181
22116
|
disconnectedCallback() {
|
|
22182
|
-
var _a;
|
|
22183
22117
|
disconnectLabel(this);
|
|
22184
22118
|
disconnectForm(this);
|
|
22185
|
-
|
|
22119
|
+
this.mutationObserver?.disconnect();
|
|
22186
22120
|
this.el.removeEventListener("calciteInternalHiddenInputChange", this.hiddenInputChangeHandler);
|
|
22187
22121
|
}
|
|
22188
22122
|
componentWillLoad() {
|
|
@@ -22202,14 +22136,12 @@ class InputText {
|
|
|
22202
22136
|
//--------------------------------------------------------------------------
|
|
22203
22137
|
/** Sets focus on the component. */
|
|
22204
22138
|
async setFocus() {
|
|
22205
|
-
var _a;
|
|
22206
22139
|
await componentLoaded(this);
|
|
22207
|
-
|
|
22140
|
+
this.childEl?.focus();
|
|
22208
22141
|
}
|
|
22209
22142
|
/** Selects all text of the component's `value`. */
|
|
22210
22143
|
async selectText() {
|
|
22211
|
-
|
|
22212
|
-
(_a = this.childEl) === null || _a === void 0 ? void 0 : _a.select();
|
|
22144
|
+
this.childEl?.select();
|
|
22213
22145
|
}
|
|
22214
22146
|
onLabelClick() {
|
|
22215
22147
|
this.setFocus();
|
|
@@ -22341,7 +22273,6 @@ function getLocaleHourCycle(locale, numberingSystem) {
|
|
|
22341
22273
|
return getLocalizedTimePart("meridiem", parts) ? "12" : "24";
|
|
22342
22274
|
}
|
|
22343
22275
|
function getLocalizedTimePart(part, parts) {
|
|
22344
|
-
var _a, _b, _c, _d;
|
|
22345
22276
|
if (!part || !parts) {
|
|
22346
22277
|
return null;
|
|
22347
22278
|
}
|
|
@@ -22350,7 +22281,7 @@ function getLocalizedTimePart(part, parts) {
|
|
|
22350
22281
|
const minuteIndex = parts.indexOf(parts.find(({ type }) => type === "minute"));
|
|
22351
22282
|
const hourSuffix = parts[hourIndex + 1];
|
|
22352
22283
|
return hourSuffix && hourSuffix.type === "literal" && minuteIndex - hourIndex === 2
|
|
22353
|
-
?
|
|
22284
|
+
? hourSuffix.value?.trim() || null
|
|
22354
22285
|
: null;
|
|
22355
22286
|
}
|
|
22356
22287
|
if (part === "minuteSuffix") {
|
|
@@ -22358,15 +22289,15 @@ function getLocalizedTimePart(part, parts) {
|
|
|
22358
22289
|
const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
|
|
22359
22290
|
const minuteSuffix = parts[minuteIndex + 1];
|
|
22360
22291
|
return minuteSuffix && minuteSuffix.type === "literal" && secondIndex - minuteIndex === 2
|
|
22361
|
-
?
|
|
22292
|
+
? minuteSuffix.value?.trim() || null
|
|
22362
22293
|
: null;
|
|
22363
22294
|
}
|
|
22364
22295
|
if (part === "secondSuffix") {
|
|
22365
22296
|
const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
|
|
22366
22297
|
const secondSuffix = parts[secondIndex + 1];
|
|
22367
|
-
return secondSuffix && secondSuffix.type === "literal" ?
|
|
22298
|
+
return secondSuffix && secondSuffix.type === "literal" ? secondSuffix.value?.trim() || null : null;
|
|
22368
22299
|
}
|
|
22369
|
-
return
|
|
22300
|
+
return parts.find(({ type }) => (part == "meridiem" ? type === "dayPeriod" : type === part))?.value || null;
|
|
22370
22301
|
}
|
|
22371
22302
|
function getMeridiem(hour) {
|
|
22372
22303
|
if (!isValidNumber(hour)) {
|
|
@@ -22425,7 +22356,7 @@ function localizeTimeString({ value, locale, numberingSystem, includeSeconds = t
|
|
|
22425
22356
|
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
22426
22357
|
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
22427
22358
|
const formatter = createLocaleDateTimeFormatter(locale, numberingSystem, includeSeconds);
|
|
22428
|
-
return
|
|
22359
|
+
return formatter?.format(dateFromTimeString) || null;
|
|
22429
22360
|
}
|
|
22430
22361
|
function localizeTimeStringToParts({ value, locale, numberingSystem }) {
|
|
22431
22362
|
if (!isValidTime(value)) {
|
|
@@ -22708,9 +22639,8 @@ class InputTimePicker {
|
|
|
22708
22639
|
// --------------------------------------------------------------------------
|
|
22709
22640
|
/** Sets focus on the component. */
|
|
22710
22641
|
async setFocus() {
|
|
22711
|
-
var _a;
|
|
22712
22642
|
await componentLoaded(this);
|
|
22713
|
-
|
|
22643
|
+
this.calciteInputEl?.setFocus();
|
|
22714
22644
|
}
|
|
22715
22645
|
/**
|
|
22716
22646
|
* Updates the position of the component.
|
|
@@ -22718,8 +22648,7 @@ class InputTimePicker {
|
|
|
22718
22648
|
* @param delayed
|
|
22719
22649
|
*/
|
|
22720
22650
|
async reposition(delayed = false) {
|
|
22721
|
-
|
|
22722
|
-
(_a = this.popoverEl) === null || _a === void 0 ? void 0 : _a.reposition(delayed);
|
|
22651
|
+
this.popoverEl?.reposition(delayed);
|
|
22723
22652
|
}
|
|
22724
22653
|
onLabelClick() {
|
|
22725
22654
|
this.setFocus();
|
|
@@ -22769,7 +22698,7 @@ class InputTimePicker {
|
|
|
22769
22698
|
// --------------------------------------------------------------------------
|
|
22770
22699
|
render() {
|
|
22771
22700
|
const popoverId = `${this.referenceElementId}-popover`;
|
|
22772
|
-
return (hAsync(Host, { onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, hAsync("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: this.readOnly, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), hAsync("calcite-popover", { disableFocusTrap: true, id: popoverId, label: "Time Picker", open: this.open, overlayPositioning: this.overlayPositioning, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId, triggerDisabled: true }, hAsync("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp,
|
|
22701
|
+
return (hAsync(Host, { onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-controls": popoverId, "aria-haspopup": "dialog", "aria-label": this.name, "aria-owns": popoverId, id: this.referenceElementId, role: "combobox" }, hAsync("calcite-input", { disabled: this.disabled, icon: "clock", label: getLabelText(this), onCalciteInputInput: this.calciteInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: this.readOnly, ref: this.setCalciteInputEl, scale: this.scale, step: this.step })), hAsync("calcite-popover", { disableFocusTrap: true, id: popoverId, label: "Time Picker", open: this.open, overlayPositioning: this.overlayPositioning, placement: this.placement, ref: this.setCalcitePopoverEl, referenceElement: this.referenceElementId, triggerDisabled: true }, hAsync("calcite-time-picker", { intlHour: this.intlHour, intlHourDown: this.intlHourDown, intlHourUp: this.intlHourUp, intlMeridiem: this.intlMeridiem, intlMeridiemDown: this.intlMeridiemDown, intlMeridiemUp: this.intlMeridiemUp, intlMinute: this.intlMinute, intlMinuteDown: this.intlMinuteDown, intlMinuteUp: this.intlMinuteUp, intlSecond: this.intlSecond, intlSecondDown: this.intlSecondDown, intlSecondUp: this.intlSecondUp, numberingSystem: this.numberingSystem, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, ref: this.setCalciteTimePickerEl, scale: this.scale, step: this.step, value: this.value })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
22773
22702
|
}
|
|
22774
22703
|
get el() { return getElement(this); }
|
|
22775
22704
|
static get watchers() { return {
|
|
@@ -23005,10 +22934,10 @@ const listItemGroupSelector = "calcite-list-item-group";
|
|
|
23005
22934
|
const listItemSelector$1 = "calcite-list-item";
|
|
23006
22935
|
function getListItemChildren(event) {
|
|
23007
22936
|
const assignedElements = event.target.assignedElements({ flatten: true });
|
|
23008
|
-
const listItemGroupChildren = assignedElements.filter((el) => el
|
|
22937
|
+
const listItemGroupChildren = assignedElements.filter((el) => el?.matches(listItemGroupSelector))
|
|
23009
22938
|
.map((group) => Array.from(group.querySelectorAll(listItemSelector$1)))
|
|
23010
22939
|
.reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
|
|
23011
|
-
const listItemChildren = assignedElements.filter((el) => el
|
|
22940
|
+
const listItemChildren = assignedElements.filter((el) => el?.matches(listItemSelector$1));
|
|
23012
22941
|
return [...listItemGroupChildren, ...listItemChildren];
|
|
23013
22942
|
}
|
|
23014
22943
|
function updateListItemChildren(listItemChildren) {
|
|
@@ -23097,7 +23026,7 @@ class List$1 {
|
|
|
23097
23026
|
const { listItems, filteredData, filterText } = this;
|
|
23098
23027
|
const values = filteredData.map((item) => item.value);
|
|
23099
23028
|
const groups = new Set();
|
|
23100
|
-
const filteredItems =
|
|
23029
|
+
const filteredItems = listItems?.filter((item) => {
|
|
23101
23030
|
const parent = item.parentElement;
|
|
23102
23031
|
const grouped = parent.matches("calcite-list-item-group");
|
|
23103
23032
|
if (grouped) {
|
|
@@ -23106,7 +23035,7 @@ class List$1 {
|
|
|
23106
23035
|
const matches = filterText ? values.includes(item.value) : true;
|
|
23107
23036
|
item.hidden = !matches;
|
|
23108
23037
|
return matches;
|
|
23109
|
-
})
|
|
23038
|
+
}) || [];
|
|
23110
23039
|
this.filteredItems = filteredItems;
|
|
23111
23040
|
groups.forEach((group) => {
|
|
23112
23041
|
const hasAtLeastOneMatch = filteredItems.some((item) => group.contains(item));
|
|
@@ -23168,8 +23097,7 @@ class List$1 {
|
|
|
23168
23097
|
focusEl.setFocus();
|
|
23169
23098
|
};
|
|
23170
23099
|
this.isNavigable = (listItem) => {
|
|
23171
|
-
|
|
23172
|
-
const parentListItemEl = (_a = listItem.parentElement) === null || _a === void 0 ? void 0 : _a.closest(listItemSelector);
|
|
23100
|
+
const parentListItemEl = listItem.parentElement?.closest(listItemSelector);
|
|
23173
23101
|
if (!parentListItemEl) {
|
|
23174
23102
|
return true;
|
|
23175
23103
|
}
|
|
@@ -23254,13 +23182,11 @@ class List$1 {
|
|
|
23254
23182
|
//
|
|
23255
23183
|
//--------------------------------------------------------------------------
|
|
23256
23184
|
connectedCallback() {
|
|
23257
|
-
|
|
23258
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
23185
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
23259
23186
|
this.updateListItems();
|
|
23260
23187
|
}
|
|
23261
23188
|
disconnectedCallback() {
|
|
23262
|
-
|
|
23263
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
23189
|
+
this.mutationObserver?.disconnect();
|
|
23264
23190
|
}
|
|
23265
23191
|
componentWillLoad() {
|
|
23266
23192
|
setUpLoadableComponent(this);
|
|
@@ -23271,7 +23197,7 @@ class List$1 {
|
|
|
23271
23197
|
componentDidLoad() {
|
|
23272
23198
|
setComponentLoaded(this);
|
|
23273
23199
|
const { filterEl } = this;
|
|
23274
|
-
const filteredItems = filterEl
|
|
23200
|
+
const filteredItems = filterEl?.filteredItems;
|
|
23275
23201
|
if (filteredItems) {
|
|
23276
23202
|
this.filteredData = filteredItems;
|
|
23277
23203
|
}
|
|
@@ -23284,9 +23210,8 @@ class List$1 {
|
|
|
23284
23210
|
// --------------------------------------------------------------------------
|
|
23285
23211
|
/** Sets focus on the component. */
|
|
23286
23212
|
async setFocus() {
|
|
23287
|
-
var _a;
|
|
23288
23213
|
await componentLoaded(this);
|
|
23289
|
-
|
|
23214
|
+
this.enabledListItems.find((listItem) => listItem.active)?.setFocus();
|
|
23290
23215
|
}
|
|
23291
23216
|
// --------------------------------------------------------------------------
|
|
23292
23217
|
//
|
|
@@ -23453,7 +23378,7 @@ class ListItem {
|
|
|
23453
23378
|
tableCell.removeAttribute(tabIndexAttr);
|
|
23454
23379
|
}
|
|
23455
23380
|
});
|
|
23456
|
-
focusEl
|
|
23381
|
+
focusEl?.focus();
|
|
23457
23382
|
};
|
|
23458
23383
|
this.active = false;
|
|
23459
23384
|
this.description = undefined;
|
|
@@ -23518,11 +23443,11 @@ class ListItem {
|
|
|
23518
23443
|
this.focusCell(cells[focusIndex]);
|
|
23519
23444
|
}
|
|
23520
23445
|
else {
|
|
23521
|
-
containerEl
|
|
23446
|
+
containerEl?.focus();
|
|
23522
23447
|
}
|
|
23523
23448
|
return;
|
|
23524
23449
|
}
|
|
23525
|
-
containerEl
|
|
23450
|
+
containerEl?.focus();
|
|
23526
23451
|
}
|
|
23527
23452
|
// --------------------------------------------------------------------------
|
|
23528
23453
|
//
|
|
@@ -23543,7 +23468,7 @@ class ListItem {
|
|
|
23543
23468
|
renderOpen() {
|
|
23544
23469
|
const { el, open, openable, parentListEl } = this;
|
|
23545
23470
|
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" }))) :
|
|
23471
|
+
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
23472
|
}
|
|
23548
23473
|
renderActionsStart() {
|
|
23549
23474
|
const { label, hasActionsStart } = this;
|
|
@@ -24988,8 +24913,7 @@ function connectFocusTrap(component) {
|
|
|
24988
24913
|
* @param component
|
|
24989
24914
|
*/
|
|
24990
24915
|
function activateFocusTrap(component) {
|
|
24991
|
-
|
|
24992
|
-
(_a = component.focusTrap) === null || _a === void 0 ? void 0 : _a.activate();
|
|
24916
|
+
component.focusTrap?.activate();
|
|
24993
24917
|
}
|
|
24994
24918
|
/**
|
|
24995
24919
|
* Helper to tear deactivate focus trap component.
|
|
@@ -24997,8 +24921,7 @@ function activateFocusTrap(component) {
|
|
|
24997
24921
|
* @param component
|
|
24998
24922
|
*/
|
|
24999
24923
|
function deactivateFocusTrap(component) {
|
|
25000
|
-
|
|
25001
|
-
(_a = component.focusTrap) === null || _a === void 0 ? void 0 : _a.deactivate();
|
|
24924
|
+
component.focusTrap?.deactivate();
|
|
25002
24925
|
}
|
|
25003
24926
|
|
|
25004
24927
|
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 +25008,7 @@ class Modal {
|
|
|
25085
25008
|
setComponentLoaded(this);
|
|
25086
25009
|
}
|
|
25087
25010
|
connectedCallback() {
|
|
25088
|
-
|
|
25089
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
25011
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
25090
25012
|
this.updateFooterVisibility();
|
|
25091
25013
|
connectConditionalSlotComponent(this);
|
|
25092
25014
|
connectOpenCloseComponent(this);
|
|
@@ -25098,9 +25020,8 @@ class Modal {
|
|
|
25098
25020
|
}
|
|
25099
25021
|
}
|
|
25100
25022
|
disconnectedCallback() {
|
|
25101
|
-
var _a;
|
|
25102
25023
|
this.removeOverflowHiddenClass();
|
|
25103
|
-
|
|
25024
|
+
this.mutationObserver?.disconnect();
|
|
25104
25025
|
disconnectConditionalSlotComponent(this);
|
|
25105
25026
|
disconnectOpenCloseComponent(this);
|
|
25106
25027
|
deactivateFocusTrap(this);
|
|
@@ -25225,14 +25146,13 @@ class Modal {
|
|
|
25225
25146
|
this.open = value;
|
|
25226
25147
|
}
|
|
25227
25148
|
async toggleModal(value) {
|
|
25228
|
-
var _a, _b;
|
|
25229
25149
|
this.active = value;
|
|
25230
25150
|
if (value) {
|
|
25231
|
-
|
|
25151
|
+
this.transitionEl?.classList.add(CSS$n.openingIdle);
|
|
25232
25152
|
this.openModal();
|
|
25233
25153
|
}
|
|
25234
25154
|
else {
|
|
25235
|
-
|
|
25155
|
+
this.transitionEl?.classList.add(CSS$n.closingIdle);
|
|
25236
25156
|
this.close();
|
|
25237
25157
|
}
|
|
25238
25158
|
}
|
|
@@ -25481,9 +25401,8 @@ class Option {
|
|
|
25481
25401
|
//
|
|
25482
25402
|
//--------------------------------------------------------------------------
|
|
25483
25403
|
connectedCallback() {
|
|
25484
|
-
var _a;
|
|
25485
25404
|
this.ensureTextContentDependentProps();
|
|
25486
|
-
|
|
25405
|
+
this.mutationObserver?.observe(this.el, {
|
|
25487
25406
|
attributeFilter: ["label", "value"],
|
|
25488
25407
|
characterData: true,
|
|
25489
25408
|
childList: true,
|
|
@@ -25491,8 +25410,7 @@ class Option {
|
|
|
25491
25410
|
});
|
|
25492
25411
|
}
|
|
25493
25412
|
disconnectedCallback() {
|
|
25494
|
-
|
|
25495
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
25413
|
+
this.mutationObserver?.disconnect();
|
|
25496
25414
|
}
|
|
25497
25415
|
//--------------------------------------------------------------------------
|
|
25498
25416
|
//
|
|
@@ -25864,11 +25782,10 @@ class Panel {
|
|
|
25864
25782
|
this.hasFab = !!elements.length;
|
|
25865
25783
|
};
|
|
25866
25784
|
this.setPanelScrollEl = (el) => {
|
|
25867
|
-
var _a, _b;
|
|
25868
25785
|
this.panelScrollEl = el;
|
|
25869
|
-
|
|
25786
|
+
this.resizeObserver?.disconnect();
|
|
25870
25787
|
if (el) {
|
|
25871
|
-
|
|
25788
|
+
this.resizeObserver?.observe(el);
|
|
25872
25789
|
this.resizeHandler();
|
|
25873
25790
|
}
|
|
25874
25791
|
};
|
|
@@ -25912,8 +25829,7 @@ class Panel {
|
|
|
25912
25829
|
//
|
|
25913
25830
|
// --------------------------------------------------------------------------
|
|
25914
25831
|
disconnectedCallback() {
|
|
25915
|
-
|
|
25916
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
25832
|
+
this.resizeObserver?.disconnect();
|
|
25917
25833
|
}
|
|
25918
25834
|
// --------------------------------------------------------------------------
|
|
25919
25835
|
//
|
|
@@ -25929,11 +25845,11 @@ class Panel {
|
|
|
25929
25845
|
await componentLoaded(this);
|
|
25930
25846
|
const { backButtonEl, closeButtonEl, containerEl } = this;
|
|
25931
25847
|
if (focusId === "back-button") {
|
|
25932
|
-
backButtonEl
|
|
25848
|
+
backButtonEl?.setFocus();
|
|
25933
25849
|
return;
|
|
25934
25850
|
}
|
|
25935
25851
|
if (focusId === "dismiss-button") {
|
|
25936
|
-
closeButtonEl
|
|
25852
|
+
closeButtonEl?.setFocus();
|
|
25937
25853
|
return;
|
|
25938
25854
|
}
|
|
25939
25855
|
if (backButtonEl) {
|
|
@@ -25944,7 +25860,7 @@ class Panel {
|
|
|
25944
25860
|
closeButtonEl.setFocus();
|
|
25945
25861
|
return;
|
|
25946
25862
|
}
|
|
25947
|
-
containerEl
|
|
25863
|
+
containerEl?.focus();
|
|
25948
25864
|
}
|
|
25949
25865
|
/**
|
|
25950
25866
|
* Scrolls the component's content to a specified set of coordinates.
|
|
@@ -25958,8 +25874,7 @@ class Panel {
|
|
|
25958
25874
|
* @param options
|
|
25959
25875
|
*/
|
|
25960
25876
|
async scrollContentTo(options) {
|
|
25961
|
-
|
|
25962
|
-
(_a = this.panelScrollEl) === null || _a === void 0 ? void 0 : _a.scrollTo(options);
|
|
25877
|
+
this.panelScrollEl?.scrollTo(options);
|
|
25963
25878
|
}
|
|
25964
25879
|
// --------------------------------------------------------------------------
|
|
25965
25880
|
//
|
|
@@ -26102,12 +26017,10 @@ function initialize() {
|
|
|
26102
26017
|
this.emitCalciteListFilter = debounce(internalCalciteListFilterEvent.bind(this), 0);
|
|
26103
26018
|
}
|
|
26104
26019
|
function initializeObserver() {
|
|
26105
|
-
|
|
26106
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
26020
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
26107
26021
|
}
|
|
26108
26022
|
function cleanUpObserver() {
|
|
26109
|
-
|
|
26110
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
26023
|
+
this.mutationObserver?.disconnect();
|
|
26111
26024
|
}
|
|
26112
26025
|
// --------------------------------------------------------------------------
|
|
26113
26026
|
//
|
|
@@ -26250,7 +26163,6 @@ function toggleSingleSelectItemTabbing(item, selectable) {
|
|
|
26250
26163
|
}
|
|
26251
26164
|
}
|
|
26252
26165
|
async function setFocus(focusId) {
|
|
26253
|
-
var _a;
|
|
26254
26166
|
if (this.filterEnabled && focusId === "filter") {
|
|
26255
26167
|
await focusElement(this.filterEl);
|
|
26256
26168
|
return;
|
|
@@ -26260,7 +26172,7 @@ async function setFocus(focusId) {
|
|
|
26260
26172
|
return;
|
|
26261
26173
|
}
|
|
26262
26174
|
if (multiple) {
|
|
26263
|
-
return
|
|
26175
|
+
return filterOutDisabled(items)[0]?.setFocus();
|
|
26264
26176
|
}
|
|
26265
26177
|
const filtered = filterOutDisabled(items);
|
|
26266
26178
|
const focusTarget = filtered.find((item) => item.selected) || filtered[0];
|
|
@@ -26332,14 +26244,13 @@ function selectSiblings(item, deselect = false) {
|
|
|
26332
26244
|
}
|
|
26333
26245
|
let groups;
|
|
26334
26246
|
function handleFilter(emit = false) {
|
|
26335
|
-
var _a;
|
|
26336
26247
|
const { filteredData, filterText } = this;
|
|
26337
26248
|
const values = filteredData.map((item) => item.value);
|
|
26338
26249
|
let hasSelectedMatch = false;
|
|
26339
26250
|
if (!groups) {
|
|
26340
26251
|
groups = new Set();
|
|
26341
26252
|
}
|
|
26342
|
-
const matchedItems =
|
|
26253
|
+
const matchedItems = this.items?.filter((item) => {
|
|
26343
26254
|
const parent = item.parentElement;
|
|
26344
26255
|
const grouped = parent.matches("calcite-pick-list-group");
|
|
26345
26256
|
if (grouped) {
|
|
@@ -26351,7 +26262,7 @@ function handleFilter(emit = false) {
|
|
|
26351
26262
|
hasSelectedMatch = matches && item.selected;
|
|
26352
26263
|
}
|
|
26353
26264
|
return matches;
|
|
26354
|
-
})
|
|
26265
|
+
}) || [];
|
|
26355
26266
|
groups.forEach((group) => {
|
|
26356
26267
|
const hasAtLeastOneMatch = matchedItems.some((item) => group.contains(item));
|
|
26357
26268
|
group.hidden = !hasAtLeastOneMatch;
|
|
@@ -26376,8 +26287,7 @@ function handleFilter(emit = false) {
|
|
|
26376
26287
|
}
|
|
26377
26288
|
}
|
|
26378
26289
|
function handleInitialFilter() {
|
|
26379
|
-
|
|
26380
|
-
const filteredItems = (_a = this.filterEl) === null || _a === void 0 ? void 0 : _a.filteredItems;
|
|
26290
|
+
const filteredItems = this.filterEl?.filteredItems;
|
|
26381
26291
|
if (filteredItems) {
|
|
26382
26292
|
this.filteredData = filteredItems;
|
|
26383
26293
|
}
|
|
@@ -26586,7 +26496,6 @@ class PickListGroup {
|
|
|
26586
26496
|
//
|
|
26587
26497
|
// --------------------------------------------------------------------------
|
|
26588
26498
|
render() {
|
|
26589
|
-
var _a;
|
|
26590
26499
|
const { el, groupTitle, headingLevel } = this;
|
|
26591
26500
|
const hasParentItem = getSlotted(el, SLOTS$a.parentItem) !== null;
|
|
26592
26501
|
const sectionClasses = {
|
|
@@ -26594,7 +26503,7 @@ class PickListGroup {
|
|
|
26594
26503
|
[CSS$j.indented]: hasParentItem
|
|
26595
26504
|
};
|
|
26596
26505
|
const title = groupTitle;
|
|
26597
|
-
const parentLevel =
|
|
26506
|
+
const parentLevel = el.closest("calcite-pick-list")?.headingLevel;
|
|
26598
26507
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
26599
26508
|
const level = headingLevel || relativeLevel;
|
|
26600
26509
|
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 +26656,8 @@ class PickListItem {
|
|
|
26747
26656
|
}
|
|
26748
26657
|
/** Sets focus on the component. */
|
|
26749
26658
|
async setFocus() {
|
|
26750
|
-
var _a;
|
|
26751
26659
|
await componentLoaded(this);
|
|
26752
|
-
|
|
26660
|
+
this.focusEl?.focus();
|
|
26753
26661
|
}
|
|
26754
26662
|
// --------------------------------------------------------------------------
|
|
26755
26663
|
//
|
|
@@ -27407,7 +27315,7 @@ class RadioButton {
|
|
|
27407
27315
|
checkLastRadioButton() {
|
|
27408
27316
|
const radioButtons = this.queryButtons();
|
|
27409
27317
|
const checkedRadioButtons = radioButtons.filter((radioButton) => radioButton.checked);
|
|
27410
|
-
if (
|
|
27318
|
+
if (checkedRadioButtons?.length > 1) {
|
|
27411
27319
|
const lastCheckedRadioButton = checkedRadioButtons[checkedRadioButtons.length - 1];
|
|
27412
27320
|
checkedRadioButtons
|
|
27413
27321
|
.filter((checkedRadioButton) => checkedRadioButton !== lastCheckedRadioButton)
|
|
@@ -27583,13 +27491,11 @@ class RadioButtonGroup {
|
|
|
27583
27491
|
//
|
|
27584
27492
|
//--------------------------------------------------------------------------
|
|
27585
27493
|
connectedCallback() {
|
|
27586
|
-
var _a;
|
|
27587
27494
|
this.passPropsToRadioButtons();
|
|
27588
|
-
|
|
27495
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
27589
27496
|
}
|
|
27590
27497
|
disconnectedCallback() {
|
|
27591
|
-
|
|
27592
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
27498
|
+
this.mutationObserver?.disconnect();
|
|
27593
27499
|
}
|
|
27594
27500
|
//--------------------------------------------------------------------------
|
|
27595
27501
|
//
|
|
@@ -27666,7 +27572,7 @@ class RadioGroup {
|
|
|
27666
27572
|
items.forEach((item) => (item.checked = item.value === value));
|
|
27667
27573
|
}
|
|
27668
27574
|
handleSelectedItemChange(newItem, oldItem) {
|
|
27669
|
-
this.value = newItem
|
|
27575
|
+
this.value = newItem?.value;
|
|
27670
27576
|
if (newItem === oldItem) {
|
|
27671
27577
|
return;
|
|
27672
27578
|
}
|
|
@@ -27773,9 +27679,8 @@ class RadioGroup {
|
|
|
27773
27679
|
// --------------------------------------------------------------------------
|
|
27774
27680
|
/** Sets focus on the component. */
|
|
27775
27681
|
async setFocus() {
|
|
27776
|
-
var _a;
|
|
27777
27682
|
await componentLoaded(this);
|
|
27778
|
-
(
|
|
27683
|
+
(this.selectedItem || this.getItems()[0])?.focus();
|
|
27779
27684
|
}
|
|
27780
27685
|
//--------------------------------------------------------------------------
|
|
27781
27686
|
//
|
|
@@ -27988,8 +27893,7 @@ class Rating {
|
|
|
27988
27893
|
}
|
|
27989
27894
|
render() {
|
|
27990
27895
|
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 })));
|
|
27896
|
+
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
27897
|
}
|
|
27994
27898
|
//--------------------------------------------------------------------------
|
|
27995
27899
|
//
|
|
@@ -28010,9 +27914,8 @@ class Rating {
|
|
|
28010
27914
|
//--------------------------------------------------------------------------
|
|
28011
27915
|
/** Sets focus on the component. */
|
|
28012
27916
|
async setFocus() {
|
|
28013
|
-
var _a;
|
|
28014
27917
|
await componentLoaded(this);
|
|
28015
|
-
|
|
27918
|
+
this.inputFocusRef?.focus();
|
|
28016
27919
|
}
|
|
28017
27920
|
get el() { return getElement(this); }
|
|
28018
27921
|
static get style() { return ratingCss; }
|
|
@@ -28119,7 +28022,7 @@ class Select {
|
|
|
28119
28022
|
this.populateInternalSelect = () => {
|
|
28120
28023
|
const optionsAndGroups = Array.from(this.el.children).filter((child) => child.tagName === "CALCITE-OPTION" || child.tagName === "CALCITE-OPTION-GROUP");
|
|
28121
28024
|
this.clearInternalSelect();
|
|
28122
|
-
optionsAndGroups.forEach((optionOrGroup) =>
|
|
28025
|
+
optionsAndGroups.forEach((optionOrGroup) => this.selectEl?.append(this.toNativeElement(optionOrGroup)));
|
|
28123
28026
|
};
|
|
28124
28027
|
this.storeSelectRef = (node) => {
|
|
28125
28028
|
this.selectEl = node;
|
|
@@ -28144,7 +28047,7 @@ class Select {
|
|
|
28144
28047
|
items.forEach((item) => (item.selected = item.value === value));
|
|
28145
28048
|
}
|
|
28146
28049
|
selectedOptionHandler(selectedOption) {
|
|
28147
|
-
this.value = selectedOption
|
|
28050
|
+
this.value = selectedOption?.value;
|
|
28148
28051
|
}
|
|
28149
28052
|
//--------------------------------------------------------------------------
|
|
28150
28053
|
//
|
|
@@ -28152,9 +28055,8 @@ class Select {
|
|
|
28152
28055
|
//
|
|
28153
28056
|
//--------------------------------------------------------------------------
|
|
28154
28057
|
connectedCallback() {
|
|
28155
|
-
var _a;
|
|
28156
28058
|
const { el } = this;
|
|
28157
|
-
|
|
28059
|
+
this.mutationObserver?.observe(el, {
|
|
28158
28060
|
subtree: true,
|
|
28159
28061
|
childList: true
|
|
28160
28062
|
});
|
|
@@ -28162,8 +28064,7 @@ class Select {
|
|
|
28162
28064
|
connectForm(this);
|
|
28163
28065
|
}
|
|
28164
28066
|
disconnectedCallback() {
|
|
28165
|
-
|
|
28166
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
28067
|
+
this.mutationObserver?.disconnect();
|
|
28167
28068
|
disconnectLabel(this);
|
|
28168
28069
|
disconnectForm(this);
|
|
28169
28070
|
}
|
|
@@ -28171,9 +28072,8 @@ class Select {
|
|
|
28171
28072
|
setUpLoadableComponent(this);
|
|
28172
28073
|
}
|
|
28173
28074
|
componentDidLoad() {
|
|
28174
|
-
var _a, _b;
|
|
28175
28075
|
setComponentLoaded(this);
|
|
28176
|
-
afterConnectDefaultValueSet(this,
|
|
28076
|
+
afterConnectDefaultValueSet(this, this.selectedOption?.value ?? "");
|
|
28177
28077
|
}
|
|
28178
28078
|
componentDidRender() {
|
|
28179
28079
|
updateHostInteraction(this);
|
|
@@ -28439,7 +28339,7 @@ class ShellCenterRow {
|
|
|
28439
28339
|
const actionBar = getSlotted(el, SLOTS$6.actionBar);
|
|
28440
28340
|
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$b.actionBarContainer, key: "action-bar" }, hAsync("slot", { name: SLOTS$6.actionBar }))) : null;
|
|
28441
28341
|
const children = [actionBarNode, contentNode];
|
|
28442
|
-
if (
|
|
28342
|
+
if (actionBar?.position === "end") {
|
|
28443
28343
|
children.reverse();
|
|
28444
28344
|
}
|
|
28445
28345
|
return hAsync(Fragment, null, children);
|
|
@@ -28566,8 +28466,7 @@ class ShellPanel {
|
|
|
28566
28466
|
document.removeEventListener("pointermove", this.separatorPointerMove);
|
|
28567
28467
|
};
|
|
28568
28468
|
this.setInitialContentWidth = () => {
|
|
28569
|
-
|
|
28570
|
-
this.initialContentWidth = (_a = this.contentEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width;
|
|
28469
|
+
this.initialContentWidth = this.contentEl?.getBoundingClientRect().width;
|
|
28571
28470
|
};
|
|
28572
28471
|
this.separatorPointerDown = (event) => {
|
|
28573
28472
|
if (!isPrimaryPointerButton(event)) {
|
|
@@ -28587,8 +28486,7 @@ class ShellPanel {
|
|
|
28587
28486
|
separatorEl.addEventListener("pointerdown", this.separatorPointerDown);
|
|
28588
28487
|
};
|
|
28589
28488
|
this.disconnectSeparator = () => {
|
|
28590
|
-
|
|
28591
|
-
(_a = this.separatorEl) === null || _a === void 0 ? void 0 : _a.removeEventListener("pointerdown", this.separatorPointerDown);
|
|
28489
|
+
this.separatorEl?.removeEventListener("pointerdown", this.separatorPointerDown);
|
|
28592
28490
|
};
|
|
28593
28491
|
this.collapsed = false;
|
|
28594
28492
|
this.detached = false;
|
|
@@ -28628,7 +28526,7 @@ class ShellPanel {
|
|
|
28628
28526
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
28629
28527
|
const allowResizing = !detached && resizable;
|
|
28630
28528
|
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
|
|
28529
|
+
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
28530
|
const actionBarNode = hAsync("slot", { key: "action-bar", name: SLOTS$5.actionBar });
|
|
28633
28531
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
28634
28532
|
if (position === "end") {
|
|
@@ -29131,7 +29029,7 @@ class Slider {
|
|
|
29131
29029
|
async setFocus() {
|
|
29132
29030
|
await componentLoaded(this);
|
|
29133
29031
|
const handle = this.minHandle ? this.minHandle : this.maxHandle;
|
|
29134
|
-
handle
|
|
29032
|
+
handle?.focus();
|
|
29135
29033
|
}
|
|
29136
29034
|
//--------------------------------------------------------------------------
|
|
29137
29035
|
//
|
|
@@ -32592,15 +32490,13 @@ class SortableList {
|
|
|
32592
32490
|
this.beginObserving();
|
|
32593
32491
|
}
|
|
32594
32492
|
disconnectedCallback() {
|
|
32595
|
-
|
|
32596
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
32493
|
+
this.mutationObserver?.disconnect();
|
|
32597
32494
|
this.cleanUpDragAndDrop();
|
|
32598
32495
|
}
|
|
32599
32496
|
componentDidRender() {
|
|
32600
32497
|
updateHostInteraction(this);
|
|
32601
32498
|
}
|
|
32602
32499
|
calciteHandleNudgeHandler(event) {
|
|
32603
|
-
var _a;
|
|
32604
32500
|
const sortItem = this.items.find((item) => {
|
|
32605
32501
|
return item.contains(event.detail.handle) || event.composedPath().includes(item);
|
|
32606
32502
|
});
|
|
@@ -32633,7 +32529,7 @@ class SortableList {
|
|
|
32633
32529
|
default:
|
|
32634
32530
|
return;
|
|
32635
32531
|
}
|
|
32636
|
-
|
|
32532
|
+
this.mutationObserver?.disconnect();
|
|
32637
32533
|
if (appendInstead) {
|
|
32638
32534
|
sortItem.parentElement.appendChild(sortItem);
|
|
32639
32535
|
}
|
|
@@ -32663,8 +32559,7 @@ class SortableList {
|
|
|
32663
32559
|
},
|
|
32664
32560
|
// Element dragging started
|
|
32665
32561
|
onStart: () => {
|
|
32666
|
-
|
|
32667
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
32562
|
+
this.mutationObserver?.disconnect();
|
|
32668
32563
|
},
|
|
32669
32564
|
// Element dragging ended
|
|
32670
32565
|
onEnd: () => {
|
|
@@ -32677,13 +32572,11 @@ class SortableList {
|
|
|
32677
32572
|
this.sortable = Sortable.create(this.el, options);
|
|
32678
32573
|
}
|
|
32679
32574
|
cleanUpDragAndDrop() {
|
|
32680
|
-
|
|
32681
|
-
(_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
32575
|
+
this.sortable?.destroy();
|
|
32682
32576
|
this.sortable = null;
|
|
32683
32577
|
}
|
|
32684
32578
|
beginObserving() {
|
|
32685
|
-
|
|
32686
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
32579
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
32687
32580
|
}
|
|
32688
32581
|
// --------------------------------------------------------------------------
|
|
32689
32582
|
//
|
|
@@ -32868,7 +32761,7 @@ class Stepper {
|
|
|
32868
32761
|
return (hAsync("slot", { onSlotchange: (event) => {
|
|
32869
32762
|
const items = event.currentTarget
|
|
32870
32763
|
.assignedElements()
|
|
32871
|
-
.filter((el) =>
|
|
32764
|
+
.filter((el) => el?.tagName === "CALCITE-STEPPER-ITEM");
|
|
32872
32765
|
const spacing = Array(items.length).fill("1fr").join(" ");
|
|
32873
32766
|
this.el.style.gridTemplateAreas = spacing;
|
|
32874
32767
|
this.el.style.gridTemplateColumns = spacing;
|
|
@@ -32989,10 +32882,9 @@ class Stepper {
|
|
|
32989
32882
|
//
|
|
32990
32883
|
//--------------------------------------------------------------------------
|
|
32991
32884
|
getEnabledStepIndex(startIndex, direction = "next") {
|
|
32992
|
-
var _a;
|
|
32993
32885
|
const { items, currentPosition } = this;
|
|
32994
32886
|
let newIndex = startIndex;
|
|
32995
|
-
while (
|
|
32887
|
+
while (items[newIndex]?.disabled) {
|
|
32996
32888
|
newIndex = newIndex + (direction === "previous" ? -1 : 1);
|
|
32997
32889
|
}
|
|
32998
32890
|
return newIndex !== currentPosition && newIndex < items.length && newIndex >= 0
|
|
@@ -33097,7 +32989,7 @@ class StepperItem {
|
|
|
33097
32989
|
if (this.layout === "horizontal" &&
|
|
33098
32990
|
event
|
|
33099
32991
|
.composedPath()
|
|
33100
|
-
.some((el) =>
|
|
32992
|
+
.some((el) => el.classList?.contains("stepper-item-content"))) {
|
|
33101
32993
|
return;
|
|
33102
32994
|
}
|
|
33103
32995
|
this.emitUserRequestedItem();
|
|
@@ -33148,10 +33040,9 @@ class StepperItem {
|
|
|
33148
33040
|
this.registerStepperItem();
|
|
33149
33041
|
}
|
|
33150
33042
|
effectiveLocaleWatcher(locale) {
|
|
33151
|
-
var _a;
|
|
33152
33043
|
numberStringFormatter.numberFormatOptions = {
|
|
33153
33044
|
locale,
|
|
33154
|
-
numberingSystem:
|
|
33045
|
+
numberingSystem: this.parentStepperEl?.numberingSystem,
|
|
33155
33046
|
useGrouping: false
|
|
33156
33047
|
};
|
|
33157
33048
|
}
|
|
@@ -33171,7 +33062,6 @@ class StepperItem {
|
|
|
33171
33062
|
}
|
|
33172
33063
|
}
|
|
33173
33064
|
componentWillLoad() {
|
|
33174
|
-
var _a;
|
|
33175
33065
|
setUpLoadableComponent(this);
|
|
33176
33066
|
this.icon = getElementProp(this.el, "icon", false);
|
|
33177
33067
|
this.numbered = getElementProp(this.el, "numbered", false);
|
|
@@ -33185,7 +33075,7 @@ class StepperItem {
|
|
|
33185
33075
|
}
|
|
33186
33076
|
numberStringFormatter.numberFormatOptions = {
|
|
33187
33077
|
locale: this.effectiveLocale,
|
|
33188
|
-
numberingSystem:
|
|
33078
|
+
numberingSystem: this.parentStepperEl?.numberingSystem,
|
|
33189
33079
|
useGrouping: false
|
|
33190
33080
|
};
|
|
33191
33081
|
}
|
|
@@ -33221,9 +33111,8 @@ class StepperItem {
|
|
|
33221
33111
|
//
|
|
33222
33112
|
//--------------------------------------------------------------------------
|
|
33223
33113
|
async setFocus() {
|
|
33224
|
-
var _a;
|
|
33225
33114
|
await componentLoaded(this);
|
|
33226
|
-
(
|
|
33115
|
+
(this.layout === "vertical" ? this.el : this.headerEl)?.focus();
|
|
33227
33116
|
}
|
|
33228
33117
|
renderIcon() {
|
|
33229
33118
|
const path = this.selected
|
|
@@ -33244,8 +33133,7 @@ class StepperItem {
|
|
|
33244
33133
|
});
|
|
33245
33134
|
}
|
|
33246
33135
|
getItemPosition() {
|
|
33247
|
-
|
|
33248
|
-
return Array.from((_a = this.parentStepperEl) === null || _a === void 0 ? void 0 : _a.querySelectorAll("calcite-stepper-item")).indexOf(this.el);
|
|
33136
|
+
return Array.from(this.parentStepperEl?.querySelectorAll("calcite-stepper-item")).indexOf(this.el);
|
|
33249
33137
|
}
|
|
33250
33138
|
get el() { return getElement(this); }
|
|
33251
33139
|
static get watchers() { return {
|
|
@@ -33439,13 +33327,11 @@ class Tab {
|
|
|
33439
33327
|
this.calciteInternalTabRegister.emit();
|
|
33440
33328
|
}
|
|
33441
33329
|
componentWillRender() {
|
|
33442
|
-
|
|
33443
|
-
this.scale = (_a = this.parentTabsEl) === null || _a === void 0 ? void 0 : _a.scale;
|
|
33330
|
+
this.scale = this.parentTabsEl?.scale;
|
|
33444
33331
|
}
|
|
33445
33332
|
disconnectedCallback() {
|
|
33446
|
-
var _a;
|
|
33447
33333
|
// Dispatching to body in order to be listened by other elements that are still connected to the DOM.
|
|
33448
|
-
|
|
33334
|
+
document.body?.dispatchEvent(new CustomEvent("calciteTabUnregister", {
|
|
33449
33335
|
detail: this.el
|
|
33450
33336
|
}));
|
|
33451
33337
|
}
|
|
@@ -33540,7 +33426,7 @@ class TabNav {
|
|
|
33540
33426
|
//
|
|
33541
33427
|
//--------------------------------------------------------------------------
|
|
33542
33428
|
this.handleTabFocus = (event, tabTitle) => {
|
|
33543
|
-
tabTitle
|
|
33429
|
+
tabTitle?.focus();
|
|
33544
33430
|
event.stopPropagation();
|
|
33545
33431
|
event.preventDefault();
|
|
33546
33432
|
};
|
|
@@ -33584,13 +33470,11 @@ class TabNav {
|
|
|
33584
33470
|
//
|
|
33585
33471
|
//--------------------------------------------------------------------------
|
|
33586
33472
|
connectedCallback() {
|
|
33587
|
-
var _a;
|
|
33588
33473
|
this.parentTabsEl = this.el.closest("calcite-tabs");
|
|
33589
|
-
|
|
33474
|
+
this.resizeObserver?.observe(this.el);
|
|
33590
33475
|
}
|
|
33591
33476
|
disconnectedCallback() {
|
|
33592
|
-
|
|
33593
|
-
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
33477
|
+
this.resizeObserver?.disconnect();
|
|
33594
33478
|
}
|
|
33595
33479
|
componentWillLoad() {
|
|
33596
33480
|
const storageKey = `calcite-tab-nav-${this.storageId}`;
|
|
@@ -33601,10 +33485,10 @@ class TabNav {
|
|
|
33601
33485
|
}
|
|
33602
33486
|
componentWillRender() {
|
|
33603
33487
|
const { parentTabsEl } = this;
|
|
33604
|
-
this.layout = parentTabsEl
|
|
33605
|
-
this.position = parentTabsEl
|
|
33606
|
-
this.scale = parentTabsEl
|
|
33607
|
-
this.bordered = parentTabsEl
|
|
33488
|
+
this.layout = parentTabsEl?.layout;
|
|
33489
|
+
this.position = parentTabsEl?.position;
|
|
33490
|
+
this.scale = parentTabsEl?.scale;
|
|
33491
|
+
this.bordered = parentTabsEl?.bordered;
|
|
33608
33492
|
// fix issue with active tab-title not lining up with blue indicator
|
|
33609
33493
|
if (this.selectedTabEl) {
|
|
33610
33494
|
this.updateOffsetPosition();
|
|
@@ -33686,18 +33570,16 @@ class TabNav {
|
|
|
33686
33570
|
this.updateActiveWidth();
|
|
33687
33571
|
}
|
|
33688
33572
|
updateOffsetPosition() {
|
|
33689
|
-
var _a, _b, _c, _d, _e;
|
|
33690
33573
|
const dir = getElementDir(this.el);
|
|
33691
|
-
const navWidth =
|
|
33692
|
-
const tabLeft =
|
|
33693
|
-
const tabWidth =
|
|
33574
|
+
const navWidth = this.activeIndicatorContainerEl?.offsetWidth;
|
|
33575
|
+
const tabLeft = this.selectedTabEl?.offsetLeft;
|
|
33576
|
+
const tabWidth = this.selectedTabEl?.offsetWidth;
|
|
33694
33577
|
const offsetRight = navWidth - (tabLeft + tabWidth);
|
|
33695
33578
|
this.indicatorOffset =
|
|
33696
|
-
dir !== "rtl" ? tabLeft -
|
|
33579
|
+
dir !== "rtl" ? tabLeft - this.tabNavEl?.scrollLeft : offsetRight + this.tabNavEl?.scrollLeft;
|
|
33697
33580
|
}
|
|
33698
33581
|
updateActiveWidth() {
|
|
33699
|
-
|
|
33700
|
-
this.indicatorWidth = (_a = this.selectedTabEl) === null || _a === void 0 ? void 0 : _a.offsetWidth;
|
|
33582
|
+
this.indicatorWidth = this.selectedTabEl?.offsetWidth;
|
|
33701
33583
|
}
|
|
33702
33584
|
getIndexOfTabTitle(el, tabTitles = this.tabTitles) {
|
|
33703
33585
|
// In most cases, since these indexes correlate with tab contents, we want to consider all tab titles.
|
|
@@ -33808,13 +33690,12 @@ class TabTitle {
|
|
|
33808
33690
|
this.parentTabsEl = this.el.closest("calcite-tabs");
|
|
33809
33691
|
}
|
|
33810
33692
|
disconnectedCallback() {
|
|
33811
|
-
|
|
33812
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
33693
|
+
this.mutationObserver?.disconnect();
|
|
33813
33694
|
// Dispatching to body in order to be listened by other elements that are still connected to the DOM.
|
|
33814
|
-
|
|
33695
|
+
document.body?.dispatchEvent(new CustomEvent("calciteTabTitleUnregister", {
|
|
33815
33696
|
detail: this.el
|
|
33816
33697
|
}));
|
|
33817
|
-
|
|
33698
|
+
this.resizeObserver?.disconnect();
|
|
33818
33699
|
}
|
|
33819
33700
|
componentWillLoad() {
|
|
33820
33701
|
if (this.tab && this.selected) {
|
|
@@ -33841,7 +33722,7 @@ class TabTitle {
|
|
|
33841
33722
|
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
33723
|
container: true,
|
|
33843
33724
|
"container--has-text": this.hasText
|
|
33844
|
-
}, ref: (el) =>
|
|
33725
|
+
}, ref: (el) => this.resizeObserver?.observe(el) }, this.iconStart ? iconStartEl : null, hAsync("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
33845
33726
|
}
|
|
33846
33727
|
async componentDidLoad() {
|
|
33847
33728
|
this.calciteInternalTabTitleRegister.emit(await this.getTabIdentifier());
|
|
@@ -33940,8 +33821,7 @@ class TabTitle {
|
|
|
33940
33821
|
this.hasText = this.el.textContent.trim().length > 0;
|
|
33941
33822
|
}
|
|
33942
33823
|
setupTextContentObserver() {
|
|
33943
|
-
|
|
33944
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
33824
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
33945
33825
|
}
|
|
33946
33826
|
emitActiveTab(userTriggered = true) {
|
|
33947
33827
|
if (this.disabled) {
|
|
@@ -34253,9 +34133,8 @@ class TileSelect {
|
|
|
34253
34133
|
//--------------------------------------------------------------------------
|
|
34254
34134
|
/** Sets focus on the component. */
|
|
34255
34135
|
async setFocus() {
|
|
34256
|
-
var _a;
|
|
34257
34136
|
await componentLoaded(this);
|
|
34258
|
-
|
|
34137
|
+
this.input?.setFocus();
|
|
34259
34138
|
}
|
|
34260
34139
|
//--------------------------------------------------------------------------
|
|
34261
34140
|
//
|
|
@@ -34794,7 +34673,6 @@ class TimePicker {
|
|
|
34794
34673
|
}
|
|
34795
34674
|
};
|
|
34796
34675
|
this.setValuePart = (key, value, emit = true) => {
|
|
34797
|
-
var _a;
|
|
34798
34676
|
const { effectiveLocale: locale, numberingSystem } = this;
|
|
34799
34677
|
if (key === "meridiem") {
|
|
34800
34678
|
this.meridiem = value;
|
|
@@ -34837,7 +34715,8 @@ class TimePicker {
|
|
|
34837
34715
|
this.value = null;
|
|
34838
34716
|
}
|
|
34839
34717
|
this.localizedMeridiem = this.value
|
|
34840
|
-
?
|
|
34718
|
+
? localizeTimeStringToParts({ value: this.value, locale, numberingSystem })
|
|
34719
|
+
?.localizedMeridiem || null
|
|
34841
34720
|
: localizeTimePart({ value: this.meridiem, part: "meridiem", locale, numberingSystem });
|
|
34842
34721
|
if (emit) {
|
|
34843
34722
|
this.calciteInternalTimePickerChange.emit();
|
|
@@ -34966,9 +34845,8 @@ class TimePicker {
|
|
|
34966
34845
|
* @param target
|
|
34967
34846
|
*/
|
|
34968
34847
|
async setFocus(target) {
|
|
34969
|
-
var _a;
|
|
34970
34848
|
await componentLoaded(this);
|
|
34971
|
-
|
|
34849
|
+
this[`${target || "hour"}El`]?.focus();
|
|
34972
34850
|
}
|
|
34973
34851
|
// --------------------------------------------------------------------------
|
|
34974
34852
|
//
|
|
@@ -35193,9 +35071,8 @@ class Tip {
|
|
|
35193
35071
|
//
|
|
35194
35072
|
// --------------------------------------------------------------------------
|
|
35195
35073
|
renderHeader() {
|
|
35196
|
-
var _a;
|
|
35197
35074
|
const { heading, headingLevel, el } = this;
|
|
35198
|
-
const parentLevel =
|
|
35075
|
+
const parentLevel = el.closest("calcite-tip-manager")?.headingLevel;
|
|
35199
35076
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
35200
35077
|
const level = headingLevel || relativeLevel;
|
|
35201
35078
|
return heading ? (hAsync("header", { class: CSS$4.header }, hAsync(Heading, { class: CSS$4.heading, level: level }, heading))) : null;
|
|
@@ -35361,13 +35238,11 @@ class TipManager {
|
|
|
35361
35238
|
//
|
|
35362
35239
|
// --------------------------------------------------------------------------
|
|
35363
35240
|
connectedCallback() {
|
|
35364
|
-
var _a;
|
|
35365
35241
|
this.setUpTips();
|
|
35366
|
-
|
|
35242
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
35367
35243
|
}
|
|
35368
35244
|
disconnectedCallback() {
|
|
35369
|
-
|
|
35370
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
35245
|
+
this.mutationObserver?.disconnect();
|
|
35371
35246
|
}
|
|
35372
35247
|
// --------------------------------------------------------------------------
|
|
35373
35248
|
//
|
|
@@ -35416,7 +35291,7 @@ class TipManager {
|
|
|
35416
35291
|
updateGroupTitle() {
|
|
35417
35292
|
const selectedTip = this.tips[this.selectedIndex];
|
|
35418
35293
|
const tipParent = selectedTip.closest("calcite-tip-group");
|
|
35419
|
-
this.groupTitle =
|
|
35294
|
+
this.groupTitle = tipParent?.groupTitle || this.intlDefaultTitle || TEXT.defaultGroupTitle;
|
|
35420
35295
|
}
|
|
35421
35296
|
// --------------------------------------------------------------------------
|
|
35422
35297
|
//
|
|
@@ -35522,7 +35397,7 @@ class TooltipManager {
|
|
|
35522
35397
|
}
|
|
35523
35398
|
const clickedTooltip = this.queryTooltip(event.composedPath());
|
|
35524
35399
|
this.clickedTooltip = clickedTooltip;
|
|
35525
|
-
if (clickedTooltip
|
|
35400
|
+
if (clickedTooltip?.closeOnClick) {
|
|
35526
35401
|
this.toggleTooltip(clickedTooltip, false);
|
|
35527
35402
|
this.clearHoverTimeout(clickedTooltip);
|
|
35528
35403
|
}
|
|
@@ -35844,7 +35719,7 @@ class Tooltip {
|
|
|
35844
35719
|
}
|
|
35845
35720
|
|
|
35846
35721
|
function isTreeItem(element) {
|
|
35847
|
-
return element
|
|
35722
|
+
return element?.matches("calcite-tree-item");
|
|
35848
35723
|
}
|
|
35849
35724
|
function getEnabledSiblingItem(el, direction) {
|
|
35850
35725
|
const directionProp = direction === "down" ? "nextElementSibling" : "previousElementSibling";
|
|
@@ -35880,8 +35755,7 @@ class Tree {
|
|
|
35880
35755
|
//
|
|
35881
35756
|
//--------------------------------------------------------------------------
|
|
35882
35757
|
componentWillRender() {
|
|
35883
|
-
|
|
35884
|
-
const parent = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.closest("calcite-tree");
|
|
35758
|
+
const parent = this.el.parentElement?.closest("calcite-tree");
|
|
35885
35759
|
this.lines = parent ? parent.lines : this.lines;
|
|
35886
35760
|
this.scale = parent ? parent.scale : this.scale;
|
|
35887
35761
|
this.selectionMode = parent ? parent.selectionMode : this.selectionMode;
|
|
@@ -35998,7 +35872,6 @@ class Tree {
|
|
|
35998
35872
|
event.stopPropagation();
|
|
35999
35873
|
}
|
|
36000
35874
|
keyDownHandler(event) {
|
|
36001
|
-
var _a;
|
|
36002
35875
|
const root = this.el.closest("calcite-tree:not([child])");
|
|
36003
35876
|
const target = event.target;
|
|
36004
35877
|
if (!(root === this.el && target.tagName === "CALCITE-TREE-ITEM" && this.el.contains(target))) {
|
|
@@ -36040,7 +35913,7 @@ class Tree {
|
|
|
36040
35913
|
if (target.hasChildren) {
|
|
36041
35914
|
if (target.expanded && getRootNode$1(this.el).activeElement === target) {
|
|
36042
35915
|
// When focus is on an open node, moves focus to the first child node.
|
|
36043
|
-
|
|
35916
|
+
getEnabledSiblingItem(target.querySelector("calcite-tree-item"), "down")?.focus();
|
|
36044
35917
|
event.preventDefault();
|
|
36045
35918
|
}
|
|
36046
35919
|
else {
|
|
@@ -36178,13 +36051,12 @@ class TreeItem {
|
|
|
36178
36051
|
items.forEach((item) => (item.parentExpanded = expanded));
|
|
36179
36052
|
};
|
|
36180
36053
|
this.updateAncestorTree = () => {
|
|
36181
|
-
var _a;
|
|
36182
36054
|
if (this.selected && this.selectionMode === "ancestors") {
|
|
36183
36055
|
const ancestors = [];
|
|
36184
36056
|
let parent = this.parentTreeItem;
|
|
36185
36057
|
while (parent) {
|
|
36186
36058
|
ancestors.push(parent);
|
|
36187
|
-
parent =
|
|
36059
|
+
parent = parent.parentElement?.closest("calcite-tree-item");
|
|
36188
36060
|
}
|
|
36189
36061
|
ancestors.forEach((item) => (item.indeterminate = true));
|
|
36190
36062
|
return;
|
|
@@ -36216,8 +36088,7 @@ class TreeItem {
|
|
|
36216
36088
|
//
|
|
36217
36089
|
//--------------------------------------------------------------------------
|
|
36218
36090
|
connectedCallback() {
|
|
36219
|
-
|
|
36220
|
-
this.parentTreeItem = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.closest("calcite-tree-item");
|
|
36091
|
+
this.parentTreeItem = this.el.parentElement?.closest("calcite-tree-item");
|
|
36221
36092
|
if (this.parentTreeItem) {
|
|
36222
36093
|
const { expanded } = this.parentTreeItem;
|
|
36223
36094
|
this.updateParentIsExpanded(this.parentTreeItem, expanded);
|
|
@@ -36228,7 +36099,6 @@ class TreeItem {
|
|
|
36228
36099
|
disconnectConditionalSlotComponent(this);
|
|
36229
36100
|
}
|
|
36230
36101
|
componentWillRender() {
|
|
36231
|
-
var _a;
|
|
36232
36102
|
this.hasChildren = !!this.el.querySelector("calcite-tree");
|
|
36233
36103
|
this.depth = 0;
|
|
36234
36104
|
let parentTree = this.el.closest("calcite-tree");
|
|
@@ -36240,7 +36110,7 @@ class TreeItem {
|
|
|
36240
36110
|
this.lines = parentTree.lines;
|
|
36241
36111
|
let nextParentTree;
|
|
36242
36112
|
while (parentTree) {
|
|
36243
|
-
nextParentTree =
|
|
36113
|
+
nextParentTree = parentTree.parentElement?.closest("calcite-tree");
|
|
36244
36114
|
if (nextParentTree === parentTree) {
|
|
36245
36115
|
break;
|
|
36246
36116
|
}
|
|
@@ -36342,7 +36212,7 @@ class TreeItem {
|
|
|
36342
36212
|
case "Home":
|
|
36343
36213
|
root = this.el.closest("calcite-tree:not([child])");
|
|
36344
36214
|
const firstNode = root.querySelector("calcite-tree-item");
|
|
36345
|
-
firstNode
|
|
36215
|
+
firstNode?.focus();
|
|
36346
36216
|
break;
|
|
36347
36217
|
case "End":
|
|
36348
36218
|
root = this.el.closest("calcite-tree:not([child])");
|
|
@@ -36352,7 +36222,7 @@ class TreeItem {
|
|
|
36352
36222
|
currentNode = currentTree.children[root.children.length - 1];
|
|
36353
36223
|
currentTree = nodeListToArray(currentNode.children).find((el) => el.matches("calcite-tree"));
|
|
36354
36224
|
}
|
|
36355
|
-
currentNode
|
|
36225
|
+
currentNode?.focus();
|
|
36356
36226
|
break;
|
|
36357
36227
|
}
|
|
36358
36228
|
}
|
|
@@ -36424,10 +36294,10 @@ function getScreenReaderText(item, status, valueList) {
|
|
|
36424
36294
|
function getHandleAndItemElement(event) {
|
|
36425
36295
|
const handle = event
|
|
36426
36296
|
.composedPath()
|
|
36427
|
-
.find((item) =>
|
|
36297
|
+
.find((item) => item.dataset?.jsHandle !== undefined);
|
|
36428
36298
|
const item = event
|
|
36429
36299
|
.composedPath()
|
|
36430
|
-
.find((item) =>
|
|
36300
|
+
.find((item) => item.tagName?.toLowerCase() === "calcite-value-list-item");
|
|
36431
36301
|
return { handle, item };
|
|
36432
36302
|
}
|
|
36433
36303
|
function replacePlaceholders(text, label, position, total) {
|
|
@@ -36496,7 +36366,7 @@ class ValueList {
|
|
|
36496
36366
|
}
|
|
36497
36367
|
this.items = this.getItems();
|
|
36498
36368
|
this.calciteListOrderChange.emit(this.items.map(({ value }) => value));
|
|
36499
|
-
requestAnimationFrame(() => handle
|
|
36369
|
+
requestAnimationFrame(() => handle?.focus());
|
|
36500
36370
|
item.handleActivated = true;
|
|
36501
36371
|
this.updateHandleAriaLabel(handle, getScreenReaderText(item, "change", this));
|
|
36502
36372
|
};
|
|
@@ -36505,7 +36375,7 @@ class ValueList {
|
|
|
36505
36375
|
};
|
|
36506
36376
|
this.handleFocusIn = (event) => {
|
|
36507
36377
|
const { handle, item } = getHandleAndItemElement(event);
|
|
36508
|
-
if (!
|
|
36378
|
+
if (!item?.handleActivated && item && handle) {
|
|
36509
36379
|
this.updateHandleAriaLabel(handle, getScreenReaderText(item, "idle", this));
|
|
36510
36380
|
}
|
|
36511
36381
|
};
|
|
@@ -36602,8 +36472,7 @@ class ValueList {
|
|
|
36602
36472
|
});
|
|
36603
36473
|
}
|
|
36604
36474
|
cleanUpDragAndDrop() {
|
|
36605
|
-
|
|
36606
|
-
(_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
36475
|
+
this.sortable?.destroy();
|
|
36607
36476
|
this.sortable = null;
|
|
36608
36477
|
}
|
|
36609
36478
|
handleBlur() {
|
|
@@ -36768,9 +36637,8 @@ class ValueListItem {
|
|
|
36768
36637
|
}
|
|
36769
36638
|
/** Set focus on the component. */
|
|
36770
36639
|
async setFocus() {
|
|
36771
|
-
var _a;
|
|
36772
36640
|
await componentLoaded(this);
|
|
36773
|
-
|
|
36641
|
+
this.pickListItem?.setFocus();
|
|
36774
36642
|
}
|
|
36775
36643
|
calciteListItemChangeHandler(event) {
|
|
36776
36644
|
// adjust item payload from wrapped item before bubbling
|