@esri/calcite-components 1.0.0-next.636 → 1.0.0-next.638
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-f1c98c3e.entry.js → p-02047954.entry.js} +2 -2
- package/dist/calcite/{p-2437f9d8.js → p-038792c7.js} +1 -1
- package/dist/calcite/{p-67e64dc2.js → p-038a6fa4.js} +1 -1
- package/dist/calcite/{p-ea8f42de.entry.js → p-06812611.entry.js} +2 -2
- package/dist/calcite/{p-baf10b3e.entry.js → p-0729c007.entry.js} +2 -2
- package/dist/calcite/{p-cb623fb2.entry.js → p-09a131a3.entry.js} +2 -2
- package/dist/calcite/{p-86791119.entry.js → p-0deef856.entry.js} +2 -2
- package/dist/calcite/p-121c40d1.entry.js +6 -0
- package/dist/calcite/{p-e5a1b041.entry.js → p-1883d2c4.entry.js} +2 -2
- package/dist/calcite/{p-ac05b6c0.js → p-1b727713.js} +2 -2
- package/dist/calcite/{p-a994432e.entry.js → p-1ef7d617.entry.js} +2 -2
- package/dist/calcite/{p-fb990403.js → p-218a46f2.js} +2 -2
- package/dist/calcite/{p-b44544d1.entry.js → p-2498c02c.entry.js} +2 -2
- package/dist/calcite/{p-e7f64668.entry.js → p-2a3aa528.entry.js} +2 -2
- package/dist/calcite/{p-a3fe057c.js → p-2b541622.js} +2 -2
- package/dist/calcite/{p-5a614bb5.entry.js → p-301d0592.entry.js} +2 -2
- package/dist/calcite/{p-ff739aac.entry.js → p-39cb0f06.entry.js} +2 -2
- package/dist/calcite/p-3a9117af.entry.js +6 -0
- package/dist/calcite/p-41588a74.entry.js +6 -0
- package/dist/calcite/{p-57562b21.entry.js → p-4450921d.entry.js} +2 -2
- package/dist/calcite/{p-d34b3464.entry.js → p-49fcfa79.entry.js} +2 -2
- package/dist/calcite/{p-7cc61e30.entry.js → p-5281740b.entry.js} +2 -2
- package/dist/calcite/{p-769b7383.entry.js → p-56487e7c.entry.js} +2 -2
- package/dist/calcite/{p-33f5b8e6.entry.js → p-5839e44e.entry.js} +2 -2
- package/dist/calcite/{p-61cd280f.entry.js → p-63de534f.entry.js} +2 -2
- package/dist/calcite/{p-a8bb1274.js → p-653bacd0.js} +1 -1
- package/dist/calcite/{p-86d3b233.js → p-65610a13.js} +1 -1
- package/dist/calcite/{p-e87dcb61.entry.js → p-688afc51.entry.js} +2 -2
- package/dist/calcite/p-6ee73cef.entry.js +6 -0
- package/dist/calcite/{p-06e408e6.entry.js → p-707acddc.entry.js} +2 -2
- package/dist/calcite/{p-19966f31.js → p-707b571f.js} +1 -1
- package/dist/calcite/{p-771abcbf.js → p-72733b4b.js} +2 -2
- package/dist/calcite/{p-7a3df001.entry.js → p-751d0d84.entry.js} +2 -2
- package/dist/calcite/{p-ee221109.entry.js → p-773c0aec.entry.js} +2 -2
- package/dist/calcite/{p-968cfb07.entry.js → p-782710de.entry.js} +2 -2
- package/dist/calcite/{p-9ccc1023.js → p-7b26c461.js} +1 -1
- package/dist/calcite/{p-6936c2d5.entry.js → p-7bb57ce6.entry.js} +2 -2
- package/dist/calcite/{p-fe73616f.entry.js → p-7bdea57c.entry.js} +2 -2
- package/dist/calcite/p-7c01cc41.entry.js +6 -0
- package/dist/calcite/{p-dea1b58f.entry.js → p-7d4afae8.entry.js} +2 -2
- package/dist/calcite/{p-da8dd4c2.entry.js → p-84a41ede.entry.js} +2 -2
- package/dist/calcite/{p-ad8429bc.js → p-85b95a93.js} +1 -1
- package/dist/calcite/{p-71ad5676.entry.js → p-8792c54d.entry.js} +2 -2
- package/dist/calcite/{p-70b4e4ec.js → p-8acdb692.js} +2 -2
- package/dist/calcite/{p-57c084d2.js → p-8bfc8600.js} +2 -2
- package/dist/calcite/{p-60dd0565.entry.js → p-8f5b7ad7.entry.js} +2 -2
- package/dist/calcite/{p-98f019e1.entry.js → p-90bf4991.entry.js} +2 -2
- package/dist/calcite/{p-eeeee029.js → p-91b6a760.js} +1 -1
- package/dist/calcite/{p-a983d04b.entry.js → p-92853c92.entry.js} +2 -2
- package/dist/calcite/{p-333aa3fe.entry.js → p-929dd822.entry.js} +2 -2
- package/dist/calcite/{p-8a5f0d75.entry.js → p-97cddd85.entry.js} +2 -2
- package/dist/calcite/{p-3bcd7786.entry.js → p-9b807a5d.entry.js} +2 -2
- package/dist/calcite/{p-5a12a68e.entry.js → p-9c604442.entry.js} +2 -2
- package/dist/calcite/{p-0acb8cbe.js → p-9dcbec99.js} +2 -2
- package/dist/calcite/{p-ac445235.js → p-9e612ab9.js} +2 -2
- package/dist/calcite/{p-67ab44c2.entry.js → p-a1f3fb5d.entry.js} +2 -2
- package/dist/calcite/{p-edd4fc77.js → p-a4b4702f.js} +2 -2
- package/dist/calcite/p-a50474ff.js +6 -0
- package/dist/calcite/{p-ac7f4630.entry.js → p-afdc4ab2.entry.js} +2 -2
- package/dist/calcite/{p-0fc28e03.js → p-b0956c25.js} +1 -1
- package/dist/calcite/{p-2036d2fc.entry.js → p-b1cd14ff.entry.js} +2 -2
- package/dist/calcite/{p-5e5a9beb.entry.js → p-b2652091.entry.js} +2 -2
- package/dist/calcite/{p-514a00d8.entry.js → p-b5f23dca.entry.js} +2 -2
- package/dist/calcite/{p-b41e7e3a.js → p-b77440b4.js} +1 -1
- package/dist/calcite/{p-1bb7c568.entry.js → p-bb2cc5fd.entry.js} +2 -2
- package/dist/calcite/{p-859b6e39.entry.js → p-bf65c472.entry.js} +2 -2
- package/dist/calcite/{p-cac51a71.js → p-c31e5366.js} +2 -2
- package/dist/calcite/{p-4aced9e8.js → p-c48a762f.js} +1 -1
- package/dist/calcite/{p-00a97531.entry.js → p-c700cdb2.entry.js} +2 -2
- package/dist/calcite/{p-cfc1f51e.entry.js → p-c719f831.entry.js} +2 -2
- package/dist/calcite/{p-c87ae805.js → p-c7317507.js} +2 -2
- package/dist/calcite/{p-6ae0e5f3.js → p-c95e2b62.js} +1 -1
- package/dist/calcite/{p-a9d52a09.entry.js → p-cb0ac55a.entry.js} +2 -2
- package/dist/calcite/{p-13847681.entry.js → p-d00d92a6.entry.js} +2 -2
- package/dist/calcite/{p-753870d8.js → p-d1e4d33a.js} +1 -1
- package/dist/calcite/{p-f378eddf.entry.js → p-d256868d.entry.js} +2 -2
- package/dist/calcite/{p-5473e287.js → p-d374a27a.js} +1 -1
- package/dist/calcite/{p-de57d2c2.js → p-d3ebd2b4.js} +1 -1
- package/dist/calcite/p-de80cfeb.entry.js +6 -0
- package/dist/calcite/p-de8c0c8b.js +6 -0
- package/dist/calcite/{p-e5e9ccfe.js → p-dff92df6.js} +1 -1
- package/dist/calcite/{p-366980c1.js → p-e23682cb.js} +1 -1
- package/dist/calcite/{p-bf88462c.entry.js → p-e2bf34d5.entry.js} +2 -2
- package/dist/calcite/{p-02b1cbd1.entry.js → p-e4cc239e.entry.js} +2 -2
- package/dist/calcite/{p-8f02f472.entry.js → p-e593ff8e.entry.js} +2 -2
- package/dist/calcite/{p-26102edc.js → p-e8b253f8.js} +2 -2
- package/dist/calcite/{p-4c679a22.entry.js → p-eb04cc68.entry.js} +2 -2
- package/dist/calcite/{p-44006b68.entry.js → p-f0895d0c.entry.js} +2 -2
- package/dist/calcite/{p-53a19ef1.entry.js → p-f40b6e73.entry.js} +2 -2
- package/dist/calcite/{p-3cce5c8b.entry.js → p-f65834ce.entry.js} +2 -2
- package/dist/calcite/{p-8c770d77.entry.js → p-fc2d386e.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-54255b81.js → ExpandToggle-eec33090.js} +5 -5
- package/dist/cjs/{Heading-b526ff45.js → Heading-a5a05878.js} +2 -2
- package/dist/cjs/{app-globals-fba1cf21.js → app-globals-27fd708a.js} +2 -2
- package/dist/cjs/{array-dd1b7450.js → array-45177d9d.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +11 -11
- package/dist/cjs/calcite-action.cjs.entry.js +8 -8
- package/dist/cjs/calcite-alert.cjs.entry.js +24 -13
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-card.cjs.entry.js +7 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
- package/dist/cjs/calcite-chip.cjs.entry.js +8 -8
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +15 -15
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +11 -11
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
- 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 +8 -8
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-handle.cjs.entry.js +6 -6
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +16 -16
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-text.cjs.entry.js +10 -10
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input.cjs.entry.js +13 -13
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +601 -80
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +10 -10
- package/dist/cjs/calcite-notice.cjs.entry.js +9 -9
- package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pagination.cjs.entry.js +8 -8
- package/dist/cjs/calcite-panel.cjs.entry.js +11 -11
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-popover_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-rating.cjs.entry.js +10 -10
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-8e686586.js → conditionalSlot-e88e2e59.js} +3 -3
- package/dist/cjs/{debounce-5d63b0c7.js → debounce-891f5371.js} +1 -1
- package/dist/cjs/{dom-43e4f26f.js → dom-174e4de3.js} +32 -3
- package/dist/cjs/{filter-2dbf260f.js → filter-00b1cc29.js} +2 -2
- package/dist/cjs/{floating-ui-336cfe0f.js → floating-ui-92ee9a7e.js} +4 -4
- package/dist/cjs/{focusTrapComponent-cb5f94cb.js → focusTrapComponent-230b759a.js} +2 -2
- package/dist/cjs/{form-daaa94a8.js → form-d3d45193.js} +3 -3
- package/dist/cjs/{guid-00fb951d.js → guid-bb54b501.js} +1 -1
- package/dist/cjs/{index-06711fd4.js → index-e480dbe3.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-251a436b.js → interactive-04cf9beb.js} +1 -1
- package/dist/cjs/{interfaces-742bf539.js → interfaces-4b80f7e4.js} +1 -1
- package/dist/cjs/{key-24715b4c.js → key-11cdfcbf.js} +1 -1
- package/dist/cjs/{label-2d0404d3.js → label-60971c84.js} +2 -2
- package/dist/cjs/{loadable-93fa1819.js → loadable-c843838f.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-f1bc7145.js → locale-5d4c39fc.js} +4 -4
- package/dist/cjs/{math-d33c1733.js → math-d42026cc.js} +1 -1
- package/dist/cjs/{nonChromiumPlatformUtils-f8e45f33.js → nonChromiumPlatformUtils-162a5176.js} +6 -6
- package/dist/cjs/{observers-9985d188.js → observers-a2904f3c.js} +1 -1
- package/dist/cjs/{openCloseComponent-6000b95b.js → openCloseComponent-5a63ad6b.js} +1 -1
- package/dist/cjs/{resources-ac53ff3b.js → resources-0bb3a950.js} +1 -1
- package/dist/cjs/{resources-00983dc5.js → resources-18fb09be.js} +5 -5
- package/dist/cjs/{resources-fd8df720.js → resources-68a19f27.js} +1 -1
- package/dist/cjs/{resources-69981161.js → resources-b26a603c.js} +3 -3
- package/dist/cjs/{resources-496495ef.js → resources-b6e8bcc5.js} +1 -1
- package/dist/cjs/{resources-40a41e6b.js → resources-eb7b7720.js} +1 -1
- package/dist/cjs/{sortable.esm-15bf7700.js → sortable.esm-918eeb0a.js} +1 -1
- package/dist/cjs/{utils-c9f37d0d.js → utils-810aac67.js} +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.css +9 -0
- package/dist/collection/components/alert/alert.js +12 -4
- package/dist/collection/components/alert/interfaces.js +1 -1
- package/dist/collection/components/alert/resources.js +3 -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.css +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- 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 +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +1 -1
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.css +21 -1
- package/dist/collection/components/list/list.js +517 -13
- package/dist/collection/components/list/resources.js +7 -2
- package/dist/collection/components/list-item/list-item.css +48 -23
- package/dist/collection/components/list-item/list-item.js +531 -40
- package/dist/collection/components/list-item/resources.js +18 -3
- package/dist/collection/components/list-item/utils.js +32 -0
- package/dist/collection/components/list-item-group/list-item-group.css +30 -8
- package/dist/collection/components/list-item-group/list-item-group.js +57 -9
- package/dist/collection/components/list-item-group/resources.js +3 -3
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/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 +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/theme.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +2 -2
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +16 -4
- package/dist/components/calcite-avatar.js +2 -2
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +1 -1
- package/dist/components/calcite-input-message.js +2 -2
- package/dist/components/calcite-input-number.js +2 -2
- package/dist/components/calcite-input-text.js +2 -2
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +33 -12
- package/dist/components/calcite-list-item.js +294 -59
- package/dist/components/calcite-list.js +296 -12
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +2 -2
- package/dist/components/calcite-notice.js +2 -2
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- 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 -2
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +2 -2
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-radio-group-item.js +1 -1
- package/dist/components/calcite-radio-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +2 -2
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +2 -2
- package/dist/components/calcite-tree.js +2 -2
- package/dist/components/calcite-value-list-item.js +2 -2
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +2 -2
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +2 -2
- package/dist/components/date-picker-month-header.js +2 -2
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +30 -2
- package/dist/components/dropdown.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +2 -2
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +2 -2
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +2 -2
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +2 -2
- 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 +2 -2
- 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 +1 -1
- package/dist/components/pick-list-item.js +2 -2
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +62 -10
- package/dist/components/resources2.js +10 -6
- package/dist/components/resources3.js +15 -0
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +3 -3
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tab-nav.js +2 -2
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/esm/{ExpandToggle-0d0a6dad.js → ExpandToggle-4fca7d3d.js} +5 -5
- package/dist/esm/{Heading-5e76b2b4.js → Heading-94ce749d.js} +2 -2
- package/dist/esm/{app-globals-bdafe203.js → app-globals-4523c4bb.js} +2 -2
- package/dist/esm/{array-a4e3b4cc.js → array-9d104dff.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +12 -12
- package/dist/esm/calcite-action-group.entry.js +9 -9
- package/dist/esm/calcite-action-menu.entry.js +9 -9
- package/dist/esm/calcite-action-pad.entry.js +11 -11
- package/dist/esm/calcite-action.entry.js +8 -8
- package/dist/esm/calcite-alert.entry.js +24 -13
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +11 -11
- package/dist/esm/calcite-button.entry.js +10 -10
- package/dist/esm/calcite-card.entry.js +7 -7
- package/dist/esm/calcite-checkbox.entry.js +10 -10
- package/dist/esm/calcite-chip.entry.js +8 -8
- package/dist/esm/calcite-color-picker_3.entry.js +11 -11
- package/dist/esm/calcite-combobox_3.entry.js +15 -15
- package/dist/esm/calcite-date-picker_4.entry.js +11 -11
- package/dist/esm/calcite-dropdown_3.entry.js +12 -12
- 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 +8 -8
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +13 -13
- package/dist/esm/calcite-handle.entry.js +6 -6
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +9 -9
- package/dist/esm/calcite-input-date-picker.entry.js +16 -16
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +13 -13
- package/dist/esm/calcite-input-text.entry.js +10 -10
- package/dist/esm/calcite-input-time-picker_2.entry.js +12 -12
- package/dist/esm/calcite-input.entry.js +13 -13
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +7 -7
- package/dist/esm/calcite-list_3.entry.js +601 -80
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +10 -10
- package/dist/esm/calcite-notice.entry.js +9 -9
- package/dist/esm/calcite-option_3.entry.js +10 -10
- package/dist/esm/calcite-pagination.entry.js +8 -8
- package/dist/esm/calcite-panel.entry.js +11 -11
- package/dist/esm/calcite-pick-list_3.entry.js +13 -13
- package/dist/esm/calcite-popover_2.entry.js +13 -13
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +10 -10
- package/dist/esm/calcite-radio-group_2.entry.js +9 -9
- package/dist/esm/calcite-rating.entry.js +10 -10
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +8 -8
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +10 -10
- package/dist/esm/calcite-switch.entry.js +10 -10
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-tile-select_2.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +8 -8
- package/dist/esm/calcite-tooltip_2.entry.js +8 -8
- package/dist/esm/calcite-tree_2.entry.js +8 -8
- package/dist/esm/calcite-value-list_2.entry.js +13 -13
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-d7042454.js → conditionalSlot-1620f1ad.js} +3 -3
- package/dist/esm/{debounce-5b813e28.js → debounce-0686d9a1.js} +1 -1
- package/dist/esm/{dom-1e25772a.js → dom-af8fc88b.js} +32 -4
- package/dist/esm/{filter-9f8f8154.js → filter-cbb2b874.js} +2 -2
- package/dist/esm/{floating-ui-133bb551.js → floating-ui-5919ed56.js} +4 -4
- package/dist/esm/{focusTrapComponent-579bde12.js → focusTrapComponent-8f434148.js} +2 -2
- package/dist/esm/{form-9a041e68.js → form-2aa6c9e9.js} +3 -3
- package/dist/esm/{guid-c42adc0b.js → guid-a32bfc37.js} +1 -1
- package/dist/esm/{index-43905a28.js → index-f5307217.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-dc49c49b.js → interactive-408a778e.js} +1 -1
- package/dist/esm/{interfaces-86bb76d1.js → interfaces-25274bad.js} +1 -1
- package/dist/esm/{key-a3cbc709.js → key-ff94e2df.js} +1 -1
- package/dist/esm/{label-7ab2f78b.js → label-c38a7e62.js} +2 -2
- package/dist/esm/{loadable-f9ca5c20.js → loadable-8dc52efb.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-a47c2f83.js → locale-d8acb890.js} +4 -4
- package/dist/esm/{math-75a0848f.js → math-06af2d12.js} +1 -1
- package/dist/esm/{nonChromiumPlatformUtils-50b180f8.js → nonChromiumPlatformUtils-3c8e691e.js} +6 -6
- package/dist/esm/{observers-10b6d9bf.js → observers-c4a710f2.js} +1 -1
- package/dist/esm/{openCloseComponent-90c0bc0f.js → openCloseComponent-10ccb926.js} +1 -1
- package/dist/esm/{resources-1d29b1a4.js → resources-295cd6ac.js} +5 -5
- package/dist/esm/{resources-10b5a81c.js → resources-2cf72e16.js} +1 -1
- package/dist/esm/{resources-12be96e6.js → resources-56be8d83.js} +1 -1
- package/dist/esm/{resources-9cfc185a.js → resources-a79f35f7.js} +1 -1
- package/dist/esm/{resources-30d36ead.js → resources-b5550e9c.js} +3 -3
- package/dist/esm/{resources-49545055.js → resources-f669fefd.js} +1 -1
- package/dist/esm/{sortable.esm-381fb2a0.js → sortable.esm-0eb8bd97.js} +1 -1
- package/dist/esm/{utils-42067c6f.js → utils-6c7a0dc5.js} +1 -1
- package/dist/extras/docs-json.json +375 -10
- 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/alert/alert.d.ts +3 -0
- package/dist/types/components/alert/resources.d.ts +2 -0
- package/dist/types/components/list/list.d.ts +85 -3
- package/dist/types/components/list/resources.d.ts +7 -0
- package/dist/types/components/list-item/interfaces.d.ts +6 -0
- package/dist/types/components/list-item/list-item.d.ts +95 -8
- package/dist/types/components/list-item/resources.d.ts +17 -2
- package/dist/types/components/list-item/utils.d.ts +3 -0
- package/dist/types/components/list-item-group/list-item-group.d.ts +11 -1
- package/dist/types/components/list-item-group/resources.d.ts +1 -1
- package/dist/types/components.d.ts +179 -5
- package/dist/types/preact.d.ts +8 -2
- package/hydrate/index.js +726 -134
- package/package.json +1 -1
- package/dist/calcite/p-33625802.entry.js +0 -6
- package/dist/calcite/p-46fb198b.entry.js +0 -6
- package/dist/calcite/p-578ba695.entry.js +0 -6
- package/dist/calcite/p-57b194ca.js +0 -6
- package/dist/calcite/p-75a3f683.entry.js +0 -6
- package/dist/calcite/p-ac9d8c2c.js +0 -6
- package/dist/calcite/p-b46a2676.entry.js +0 -6
- package/dist/calcite/p-ce88bc2d.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.638
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -6152,6 +6152,34 @@ function intersects(rect1, rect2) {
|
|
|
6152
6152
|
function toAriaBoolean(value) {
|
|
6153
6153
|
return Boolean(value).toString();
|
|
6154
6154
|
}
|
|
6155
|
+
/**
|
|
6156
|
+
* This helper returns `true` if the target `slot` element from the `onSlotchange` event has an assigned element.
|
|
6157
|
+
*
|
|
6158
|
+
* ```
|
|
6159
|
+
* <slot onSlotchange={(event) => this.mySlotHasElement = slotChangeHasAssignedElement(event)} />}
|
|
6160
|
+
* ```
|
|
6161
|
+
*
|
|
6162
|
+
* @param event
|
|
6163
|
+
* @returns {boolean} Whether the slot has any assigned elements.
|
|
6164
|
+
*/
|
|
6165
|
+
function slotChangeHasAssignedElement(event) {
|
|
6166
|
+
return !!slotChangeGetAssignedElements(event).length;
|
|
6167
|
+
}
|
|
6168
|
+
/**
|
|
6169
|
+
* This helper returns the assigned elements on a `slot` element from the `onSlotchange` event.
|
|
6170
|
+
*
|
|
6171
|
+
* ```
|
|
6172
|
+
* <slot onSlotchange={(event) => this.mySlotElements = slotChangeGetAssignedElements(event)} />}
|
|
6173
|
+
* ```
|
|
6174
|
+
*
|
|
6175
|
+
* @param event
|
|
6176
|
+
* @returns {boolean} Whether the slot has any assigned elements.
|
|
6177
|
+
*/
|
|
6178
|
+
function slotChangeGetAssignedElements(event) {
|
|
6179
|
+
return event.target.assignedElements({
|
|
6180
|
+
flatten: true
|
|
6181
|
+
});
|
|
6182
|
+
}
|
|
6155
6183
|
/**
|
|
6156
6184
|
* This helper returns true if the pointer event fired from the primary button of the device.
|
|
6157
6185
|
*
|
|
@@ -6227,7 +6255,7 @@ const SLOTS$u = {
|
|
|
6227
6255
|
actionsStart: "actions-start",
|
|
6228
6256
|
actionsEnd: "actions-end"
|
|
6229
6257
|
};
|
|
6230
|
-
const CSS$
|
|
6258
|
+
const CSS$V = {
|
|
6231
6259
|
icon: "icon",
|
|
6232
6260
|
header: "header",
|
|
6233
6261
|
headerContent: "header-content",
|
|
@@ -6325,27 +6353,27 @@ class AccordionItem {
|
|
|
6325
6353
|
// --------------------------------------------------------------------------
|
|
6326
6354
|
renderActionsStart() {
|
|
6327
6355
|
const { el } = this;
|
|
6328
|
-
return getSlotted(el, SLOTS$u.actionsStart) ? (hAsync("div", { class: CSS$
|
|
6356
|
+
return getSlotted(el, SLOTS$u.actionsStart) ? (hAsync("div", { class: CSS$V.actionsStart }, hAsync("slot", { name: SLOTS$u.actionsStart }))) : null;
|
|
6329
6357
|
}
|
|
6330
6358
|
renderActionsEnd() {
|
|
6331
6359
|
const { el } = this;
|
|
6332
|
-
return getSlotted(el, SLOTS$u.actionsEnd) ? (hAsync("div", { class: CSS$
|
|
6360
|
+
return getSlotted(el, SLOTS$u.actionsEnd) ? (hAsync("div", { class: CSS$V.actionsEnd }, hAsync("slot", { name: SLOTS$u.actionsEnd }))) : null;
|
|
6333
6361
|
}
|
|
6334
6362
|
render() {
|
|
6335
6363
|
const dir = getElementDir(this.el);
|
|
6336
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
6337
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$
|
|
6364
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$V.iconStart, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
6365
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$V.iconEnd, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
6338
6366
|
const description = this.description || this.itemSubtitle;
|
|
6339
6367
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
6340
6368
|
[`icon-position--${this.iconPosition}`]: true,
|
|
6341
6369
|
[`icon-type--${this.iconType}`]: true
|
|
6342
|
-
} }, hAsync("div", { class: { [CSS$
|
|
6370
|
+
} }, hAsync("div", { class: { [CSS$V.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), hAsync("div", { "aria-expanded": toAriaBoolean(this.active || this.expanded), class: CSS$V.headerContent, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, hAsync("div", { class: CSS$V.headerContainer }, iconStartEl, hAsync("div", { class: CSS$V.headerText }, hAsync("span", { class: CSS$V.heading }, this.heading || this.itemTitle), description ? hAsync("span", { class: CSS$V.description }, description) : null), iconEndEl), hAsync("calcite-icon", { class: CSS$V.expandIcon, icon: this.iconType === "chevron"
|
|
6343
6371
|
? "chevronDown"
|
|
6344
6372
|
: this.iconType === "caret"
|
|
6345
6373
|
? "caretDown"
|
|
6346
6374
|
: this.expanded || this.active
|
|
6347
6375
|
? "minus"
|
|
6348
|
-
: "plus", scale: "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$
|
|
6376
|
+
: "plus", scale: "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$V.content }, hAsync("slot", null)))));
|
|
6349
6377
|
}
|
|
6350
6378
|
//--------------------------------------------------------------------------
|
|
6351
6379
|
//
|
|
@@ -6439,7 +6467,7 @@ class AccordionItem {
|
|
|
6439
6467
|
}; }
|
|
6440
6468
|
}
|
|
6441
6469
|
|
|
6442
|
-
const CSS$
|
|
6470
|
+
const CSS$U = {
|
|
6443
6471
|
button: "button",
|
|
6444
6472
|
buttonTextVisible: "button--text-visible",
|
|
6445
6473
|
buttonCompact: "button--compact",
|
|
@@ -6664,8 +6692,8 @@ class Action {
|
|
|
6664
6692
|
renderTextContainer() {
|
|
6665
6693
|
const { text, textEnabled } = this;
|
|
6666
6694
|
const textContainerClasses = {
|
|
6667
|
-
[CSS$
|
|
6668
|
-
[CSS$
|
|
6695
|
+
[CSS$U.textContainer]: true,
|
|
6696
|
+
[CSS$U.textContainerVisible]: textEnabled
|
|
6669
6697
|
};
|
|
6670
6698
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
6671
6699
|
}
|
|
@@ -6679,18 +6707,18 @@ class Action {
|
|
|
6679
6707
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
6680
6708
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
6681
6709
|
const slotContainerNode = (hAsync("div", { class: {
|
|
6682
|
-
[CSS$
|
|
6683
|
-
[CSS$
|
|
6710
|
+
[CSS$U.slotContainer]: true,
|
|
6711
|
+
[CSS$U.slotContainerHidden]: loading
|
|
6684
6712
|
} }, hAsync("slot", null)));
|
|
6685
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
6713
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$U.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
6686
6714
|
}
|
|
6687
6715
|
render() {
|
|
6688
6716
|
const { compact, disabled, loading, textEnabled, label, text } = this;
|
|
6689
6717
|
const ariaLabel = label || text;
|
|
6690
6718
|
const buttonClasses = {
|
|
6691
|
-
[CSS$
|
|
6692
|
-
[CSS$
|
|
6693
|
-
[CSS$
|
|
6719
|
+
[CSS$U.button]: true,
|
|
6720
|
+
[CSS$U.buttonTextVisible]: textEnabled,
|
|
6721
|
+
[CSS$U.buttonCompact]: compact
|
|
6694
6722
|
};
|
|
6695
6723
|
return (hAsync(Host, { onClick: this.calciteActionClickHandler }, 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 })));
|
|
6696
6724
|
}
|
|
@@ -6721,7 +6749,7 @@ class Action {
|
|
|
6721
6749
|
}; }
|
|
6722
6750
|
}
|
|
6723
6751
|
|
|
6724
|
-
const CSS$
|
|
6752
|
+
const CSS$T = {
|
|
6725
6753
|
menu: "menu",
|
|
6726
6754
|
defaultTrigger: "default-trigger"
|
|
6727
6755
|
};
|
|
@@ -6729,7 +6757,7 @@ const SLOTS$s = {
|
|
|
6729
6757
|
tooltip: "tooltip",
|
|
6730
6758
|
trigger: "trigger"
|
|
6731
6759
|
};
|
|
6732
|
-
const ICONS$
|
|
6760
|
+
const ICONS$h = {
|
|
6733
6761
|
menu: "ellipsis"
|
|
6734
6762
|
};
|
|
6735
6763
|
|
|
@@ -6740,7 +6768,7 @@ const SLOTS$r = {
|
|
|
6740
6768
|
const TEXT$t = {
|
|
6741
6769
|
more: "More"
|
|
6742
6770
|
};
|
|
6743
|
-
const ICONS$
|
|
6771
|
+
const ICONS$g = {
|
|
6744
6772
|
menu: "ellipsis"
|
|
6745
6773
|
};
|
|
6746
6774
|
|
|
@@ -6794,7 +6822,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount }) => {
|
|
|
6794
6822
|
});
|
|
6795
6823
|
};
|
|
6796
6824
|
|
|
6797
|
-
const ICONS$
|
|
6825
|
+
const ICONS$f = {
|
|
6798
6826
|
chevronsLeft: "chevrons-left",
|
|
6799
6827
|
chevronsRight: "chevrons-right"
|
|
6800
6828
|
};
|
|
@@ -6822,7 +6850,7 @@ const setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {
|
|
|
6822
6850
|
const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position, tooltip, ref, scale }) => {
|
|
6823
6851
|
const rtl = getElementDir(el) === "rtl";
|
|
6824
6852
|
const expandText = expanded ? intlCollapse : intlExpand;
|
|
6825
|
-
const icons = [ICONS$
|
|
6853
|
+
const icons = [ICONS$f.chevronsLeft, ICONS$f.chevronsRight];
|
|
6826
6854
|
if (rtl) {
|
|
6827
6855
|
icons.reverse();
|
|
6828
6856
|
}
|
|
@@ -6833,7 +6861,7 @@ const ExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, position
|
|
|
6833
6861
|
return actionNode;
|
|
6834
6862
|
};
|
|
6835
6863
|
|
|
6836
|
-
const CSS$
|
|
6864
|
+
const CSS$S = {
|
|
6837
6865
|
actionGroupBottom: "action-group--bottom"
|
|
6838
6866
|
};
|
|
6839
6867
|
const SLOTS$q = {
|
|
@@ -8283,7 +8311,7 @@ class ActionBar {
|
|
|
8283
8311
|
const expandLabel = intlExpand || TEXT$s.expand;
|
|
8284
8312
|
const collapseLabel = intlCollapse || TEXT$s.collapse;
|
|
8285
8313
|
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;
|
|
8286
|
-
return getSlotted(el, SLOTS$q.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
8314
|
+
return getSlotted(el, SLOTS$q.bottomActions) || expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$S.actionGroupBottom, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$q.bottomActions }), hAsync("slot", { name: SLOTS$q.expandTooltip }), expandToggleNode)) : null;
|
|
8287
8315
|
}
|
|
8288
8316
|
render() {
|
|
8289
8317
|
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("slot", null), this.renderBottomActionGroup()));
|
|
@@ -8379,7 +8407,7 @@ class ActionGroup {
|
|
|
8379
8407
|
renderMenu() {
|
|
8380
8408
|
const { el, expanded, intlMore, menuOpen, scale, layout } = this;
|
|
8381
8409
|
const hasMenuItems = getSlotted(el, SLOTS$r.menuActions);
|
|
8382
|
-
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$t.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: layout === "horizontal" ? "bottom-leading" : "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$
|
|
8410
|
+
return hasMenuItems ? (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], label: intlMore || TEXT$t.more, onCalciteActionMenuOpenChange: this.setMenuOpen, open: menuOpen, placement: layout === "horizontal" ? "bottom-leading" : "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$g.menu, scale: scale, slot: SLOTS$s.trigger, text: intlMore || TEXT$t.more, textEnabled: expanded }), hAsync("slot", { name: SLOTS$r.menuActions }), this.renderTooltip())) : null;
|
|
8383
8411
|
}
|
|
8384
8412
|
render() {
|
|
8385
8413
|
return (hAsync(Fragment, null, hAsync("slot", null), this.renderMenu()));
|
|
@@ -8679,14 +8707,14 @@ class ActionMenu {
|
|
|
8679
8707
|
}
|
|
8680
8708
|
renderMenuButton() {
|
|
8681
8709
|
const { label, scale, expanded } = this;
|
|
8682
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$s.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { class: CSS$
|
|
8710
|
+
const menuButtonSlot = (hAsync("slot", { name: SLOTS$s.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { class: CSS$T.defaultTrigger, icon: ICONS$h.menu, ref: this.setDefaultMenuButtonEl, scale: scale, text: label, textEnabled: expanded })));
|
|
8683
8711
|
return menuButtonSlot;
|
|
8684
8712
|
}
|
|
8685
8713
|
renderMenuItems() {
|
|
8686
8714
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
|
|
8687
8715
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
8688
8716
|
const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
|
|
8689
|
-
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 === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$
|
|
8717
|
+
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 === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS$T.menu, id: menuId, onClick: this.handleCalciteActionClick, role: "menu", tabIndex: -1 }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
8690
8718
|
}
|
|
8691
8719
|
render() {
|
|
8692
8720
|
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$s.tooltip, onSlotchange: this.updateTooltip })));
|
|
@@ -8722,7 +8750,7 @@ class ActionMenu {
|
|
|
8722
8750
|
}; }
|
|
8723
8751
|
}
|
|
8724
8752
|
|
|
8725
|
-
const CSS$
|
|
8753
|
+
const CSS$R = {
|
|
8726
8754
|
actionGroupBottom: "action-group--bottom",
|
|
8727
8755
|
container: "container"
|
|
8728
8756
|
};
|
|
@@ -8836,10 +8864,10 @@ class ActionPad {
|
|
|
8836
8864
|
const expandLabel = intlExpand || TEXT$r.expand;
|
|
8837
8865
|
const collapseLabel = intlCollapse || TEXT$r.collapse;
|
|
8838
8866
|
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;
|
|
8839
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
8867
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$R.actionGroupBottom, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$p.expandTooltip }), expandToggleNode)) : null;
|
|
8840
8868
|
}
|
|
8841
8869
|
render() {
|
|
8842
|
-
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$
|
|
8870
|
+
return (hAsync(Host, { onCalciteActionMenuOpenChange: this.actionMenuOpenChangeHandler }, hAsync("div", { class: CSS$R.container }, hAsync("slot", null), this.renderBottomActionGroup())));
|
|
8843
8871
|
}
|
|
8844
8872
|
get el() { return getElement(this); }
|
|
8845
8873
|
static get watchers() { return {
|
|
@@ -8874,10 +8902,15 @@ const DURATIONS = {
|
|
|
8874
8902
|
fast: 6000
|
|
8875
8903
|
};
|
|
8876
8904
|
const SLOTS$o = {
|
|
8905
|
+
actionsEnd: "actions-end",
|
|
8877
8906
|
title: "title",
|
|
8878
8907
|
message: "message",
|
|
8879
8908
|
link: "link"
|
|
8880
8909
|
};
|
|
8910
|
+
const CSS$Q = {
|
|
8911
|
+
actionsEnd: "actions-end",
|
|
8912
|
+
container: "container"
|
|
8913
|
+
};
|
|
8881
8914
|
|
|
8882
8915
|
var StatusIcons;
|
|
8883
8916
|
(function (StatusIcons) {
|
|
@@ -9293,7 +9326,7 @@ class NumberStringFormat {
|
|
|
9293
9326
|
}
|
|
9294
9327
|
const numberStringFormatter = new NumberStringFormat();
|
|
9295
9328
|
|
|
9296
|
-
const alertCss = "@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-alert: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-alert{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-alert{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-alert{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-alert{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-alert{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-alert:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-alert:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-alert-h{display:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-alert-h{--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem}/*!@:host([scale=s]) slot[name=title]::slotted(*),\n:host([scale=s]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=s] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=s]) slot[name=message]::slotted(*),\n:host([scale=s]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=s] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) slot[name=link]::slotted(*),\n:host([scale=s]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=s] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) .alert-queue-count*/[scale=s].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-inline:0.5rem}/*!@:host([scale=s]) .container*/[scale=s].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:3.5rem}/*!@:host([scale=s]) .alert-close*/[scale=s].sc-calcite-alert-h .alert-close.sc-calcite-alert{padding:0.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-alert-h{--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem}/*!@:host([scale=m]) slot[name=title]::slotted(*),\n:host([scale=m]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=m] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=m]) slot[name=message]::slotted(*),\n:host([scale=m]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=m] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) slot[name=link]::slotted(*),\n:host([scale=m]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=m] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) .alert-queue-count*/[scale=m].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-inline:0.75rem}/*!@:host([scale=m]) .container*/[scale=m].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:4.1875rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-alert-h{--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem}/*!@:host([scale=l]) slot[name=title]::slotted(*),\n:host([scale=l]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=l] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=title]{margin-block-end:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}/*!@:host([scale=l]) slot[name=message]::slotted(*),\n:host([scale=l]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=l] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) slot[name=link]::slotted(*),\n:host([scale=l]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=l] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) .alert-queue-count*/[scale=l].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-inline:1rem}/*!@:host([scale=l]) .container*/[scale=l].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:5.625rem}/*!@:host*/.sc-calcite-alert-h{--calcite-alert-edge-distance:2rem;display:block}/*!@:host .container*/.sc-calcite-alert-h .container.sc-calcite-alert{pointer-events:none;position:fixed;z-index:500;margin-block:0px;margin-inline:auto;display:flex;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -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);border-radius:var(--calcite-border-radius);border-block-start:0px solid transparent;border-inline:1px solid var(--calcite-ui-border-3);border-block-end:1px solid var(--calcite-ui-border-3);min-block-size:var(--calcite-alert-min-height);inline-size:var(--calcite-alert-width);max-inline-size:calc(100% - (var(--calcite-alert-edge-distance) * 2 + 2px));max-block-size:0;transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}/*!@:host .container.bottom, :host .container.top*/.sc-calcite-alert-h .container.bottom.sc-calcite-alert,.sc-calcite-alert-h .container.top.sc-calcite-alert{inset-inline-end:0;inset-inline-start:0}/*!@:host .container[class*=bottom]*/.sc-calcite-alert-h .container[class*=bottom].sc-calcite-alert{transform:translate3d(0, var(--calcite-alert-edge-distance), 0);inset-block-end:var(--calcite-alert-edge-distance)}/*!@:host .container[class*=top]*/.sc-calcite-alert-h .container[class*=top].sc-calcite-alert{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);inset-block-start:var(--calcite-alert-edge-distance)}/*!@:host .container[class*=-start]*/.sc-calcite-alert-h .container[class*=-start].sc-calcite-alert{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}/*!@:host .container[class*=-end]*/.sc-calcite-alert-h .container[class*=-end].sc-calcite-alert{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-alert-h{visibility:hidden !important;pointer-events:none}/*!@.container*/.container.sc-calcite-alert{display:flex;inline-size:100%;align-items:center;justify-content:center}/*!@.alert-close*/.alert-close.sc-calcite-alert{outline-color:transparent}/*!@.alert-close:focus*/.alert-close.sc-calcite-alert:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([open]) .container:not(.queued)*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.queued){max-block-size:100%;border-block-start-width:2px;opacity:1;pointer-events:initial}/*!@:host([open]) .container:not(.queued)[class*=bottom]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.queued)[class*=bottom]{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit)}/*!@:host([open]) .container:not(.queued)[class*=top]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.queued)[class*=top]{transform:translate3d(0, var(--calcite-alert-edge-distance), inherit)}/*!@slot[name=title]::slotted(*),\n*::slotted([slot=title])*/slot[name=title].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@slot[name=message]::slotted(*),\n*::slotted([slot=message])*/slot[name=message].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=message]{margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);margin-inline-end:0.5rem}/*!@slot[name=link]::slotted(*),\n*::slotted([slot=link])*/slot[name=link].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=link]{display:inline-flex;color:var(--calcite-ui-text-link)}/*!@.alert-content*/.alert-content.sc-calcite-alert{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;overflow-wrap:break-word;background-color:var(--calcite-ui-foreground-1);flex:1 1 auto;min-inline-size:0;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:0 var(--calcite-alert-spacing-token-small);border-end-start-radius:var(--calcite-border-radius);border-end-end-radius:var(--calcite-border-radius)}/*!@.alert-content:first-of-type:not(:only-child)*/.alert-content.sc-calcite-alert:first-of-type:not(:only-child){padding-inline-start:var(--calcite-alert-spacing-token-large)}/*!@.alert-content:only-child*/.alert-content.sc-calcite-alert:only-child{padding:var(--calcite-alert-spacing-token-small)}/*!@.alert-icon*/.alert-icon.sc-calcite-alert{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;display:flex;align-items:center;align-self:stretch;background-color:var(--calcite-ui-foreground-1);padding-block:0px}/*!@.alert-close*/.alert-close.sc-calcite-alert{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;cursor:pointer;align-self:stretch;overflow:hidden;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-block:0px;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;border-end-end-radius:var(--calcite-border-radius)}/*!@.alert-close:hover, .alert-close:focus*/.alert-close.sc-calcite-alert:hover,.alert-close.sc-calcite-alert:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.alert-close:open*/.alert-close.sc-calcite-alert:open{background-color:var(--calcite-ui-foreground-3)}/*!@.alert-queue-count*/.alert-queue-count.sc-calcite-alert{visibility:hidden;display:flex;cursor:default;align-items:center;justify-content:space-around;align-self:stretch;overflow:hidden;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline:0px solid transparent;border-start-end-radius:0}/*!@.alert-queue-count.active*/.alert-queue-count.active.sc-calcite-alert{visibility:visible;opacity:1}/*!@:host([auto-dismiss]) > .alert-queue-count*/[auto-dismiss].sc-calcite-alert-h>.alert-queue-count.sc-calcite-alert{border-inline-end:0px solid transparent}/*!@.alert-dismiss-progress*/.alert-dismiss-progress.sc-calcite-alert{position:absolute;display:block;inline-size:100%;overflow:hidden;inset-inline:0;inset-block-start:-2px;block-size:2px;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}/*!@.alert-dismiss-progress:after*/.alert-dismiss-progress.sc-calcite-alert:after{position:absolute;inset-block-start:0px;display:block;block-size:2px;content:\"\";background-color:var(--calcite-alert-dismiss-progress-background);inset-inline-end:0}/*!@:host([color=blue]) .container*/[color=blue].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-info)}/*!@:host([color=blue]) .container .alert-icon*/[color=blue].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-info)}/*!@:host([color=red]) .container*/[color=red].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-danger)}/*!@:host([color=red]) .container .alert-icon*/[color=red].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-danger)}/*!@:host([color=yellow]) .container*/[color=yellow].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-warning)}/*!@:host([color=yellow]) .container .alert-icon*/[color=yellow].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-warning)}/*!@:host([color=green]) .container*/[color=green].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-success)}/*!@:host([color=green]) .container .alert-icon*/[color=green].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-success)}/*!@:host([auto-dismiss-duration=fast]) .alert-dismiss-progress:after*/[auto-dismiss-duration=fast].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 6000ms ease-out}/*!@:host([auto-dismiss-duration=medium]) .alert-dismiss-progress:after*/[auto-dismiss-duration=medium].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 10000ms ease-out}/*!@:host([auto-dismiss-duration=slow]) .alert-dismiss-progress:after*/[auto-dismiss-duration=slow].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 14000ms ease-out}@keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}";
|
|
9329
|
+
const alertCss = "@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-alert: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-alert{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-alert{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-alert{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-alert{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-alert{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-alert:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-alert:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-alert-h{display:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-alert-h{--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem}/*!@:host([scale=s]) slot[name=title]::slotted(*),\n:host([scale=s]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=s] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=s]) slot[name=message]::slotted(*),\n:host([scale=s]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=s] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) slot[name=link]::slotted(*),\n:host([scale=s]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=s] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) .alert-queue-count*/[scale=s].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-inline:0.5rem}/*!@:host([scale=s]) .container*/[scale=s].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:3.5rem}/*!@:host([scale=s]) .alert-close*/[scale=s].sc-calcite-alert-h .alert-close.sc-calcite-alert{padding:0.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-alert-h{--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem}/*!@:host([scale=m]) slot[name=title]::slotted(*),\n:host([scale=m]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=m] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=m]) slot[name=message]::slotted(*),\n:host([scale=m]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=m] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) slot[name=link]::slotted(*),\n:host([scale=m]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=m] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) .alert-queue-count*/[scale=m].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-inline:0.75rem}/*!@:host([scale=m]) .container*/[scale=m].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:4.1875rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-alert-h{--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem}/*!@:host([scale=l]) slot[name=title]::slotted(*),\n:host([scale=l]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=l] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=title]{margin-block-end:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}/*!@:host([scale=l]) slot[name=message]::slotted(*),\n:host([scale=l]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=l] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) slot[name=link]::slotted(*),\n:host([scale=l]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=l] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) .alert-queue-count*/[scale=l].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-inline:1rem}/*!@:host([scale=l]) .container*/[scale=l].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:5.625rem}/*!@:host*/.sc-calcite-alert-h{--calcite-alert-edge-distance:2rem;display:block}/*!@:host .container*/.sc-calcite-alert-h .container.sc-calcite-alert{pointer-events:none;position:fixed;z-index:500;margin-block:0px;margin-inline:auto;display:flex;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -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);border-radius:var(--calcite-border-radius);border-block-start:0px solid transparent;border-inline:1px solid var(--calcite-ui-border-3);border-block-end:1px solid var(--calcite-ui-border-3);min-block-size:var(--calcite-alert-min-height);inline-size:var(--calcite-alert-width);max-inline-size:calc(100% - (var(--calcite-alert-edge-distance) * 2 + 2px));max-block-size:0;transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}/*!@:host .container.bottom, :host .container.top*/.sc-calcite-alert-h .container.bottom.sc-calcite-alert,.sc-calcite-alert-h .container.top.sc-calcite-alert{inset-inline-end:0;inset-inline-start:0}/*!@:host .container[class*=bottom]*/.sc-calcite-alert-h .container[class*=bottom].sc-calcite-alert{transform:translate3d(0, var(--calcite-alert-edge-distance), 0);inset-block-end:var(--calcite-alert-edge-distance)}/*!@:host .container[class*=top]*/.sc-calcite-alert-h .container[class*=top].sc-calcite-alert{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);inset-block-start:var(--calcite-alert-edge-distance)}/*!@:host .container[class*=-start]*/.sc-calcite-alert-h .container[class*=-start].sc-calcite-alert{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}/*!@:host .container[class*=-end]*/.sc-calcite-alert-h .container[class*=-end].sc-calcite-alert{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-alert-h{visibility:hidden !important;pointer-events:none}/*!@[hidden]*/[hidden].sc-calcite-alert{display:none}/*!@.container*/.container.sc-calcite-alert{display:flex;inline-size:100%;align-items:center;justify-content:center}/*!@.alert-close*/.alert-close.sc-calcite-alert{outline-color:transparent}/*!@.alert-close:focus*/.alert-close.sc-calcite-alert:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@:host([open]) .container:not(.queued)*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.queued){max-block-size:100%;border-block-start-width:2px;opacity:1;pointer-events:initial}/*!@:host([open]) .container:not(.queued)[class*=bottom]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.queued)[class*=bottom]{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit)}/*!@:host([open]) .container:not(.queued)[class*=top]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.queued)[class*=top]{transform:translate3d(0, var(--calcite-alert-edge-distance), inherit)}/*!@slot[name=title]::slotted(*),\n*::slotted([slot=title])*/slot[name=title].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@slot[name=message]::slotted(*),\n*::slotted([slot=message])*/slot[name=message].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=message]{margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);margin-inline-end:0.5rem}/*!@slot[name=link]::slotted(*),\n*::slotted([slot=link])*/slot[name=link].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=link]{display:inline-flex;color:var(--calcite-ui-text-link)}/*!@.alert-content*/.alert-content.sc-calcite-alert{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;overflow-wrap:break-word;background-color:var(--calcite-ui-foreground-1);flex:1 1 auto;min-inline-size:0;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:0 var(--calcite-alert-spacing-token-small);border-end-start-radius:var(--calcite-border-radius);border-end-end-radius:var(--calcite-border-radius)}/*!@.alert-content:first-of-type:not(:only-child)*/.alert-content.sc-calcite-alert:first-of-type:not(:only-child){padding-inline-start:var(--calcite-alert-spacing-token-large)}/*!@.alert-content:only-child*/.alert-content.sc-calcite-alert:only-child{padding:var(--calcite-alert-spacing-token-small)}/*!@.alert-icon*/.alert-icon.sc-calcite-alert{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;display:flex;align-items:center;align-self:stretch;background-color:var(--calcite-ui-foreground-1);padding-block:0px}/*!@.alert-close*/.alert-close.sc-calcite-alert{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;cursor:pointer;align-self:stretch;overflow:hidden;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-block:0px;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;border-end-end-radius:var(--calcite-border-radius)}/*!@.alert-close:hover, .alert-close:focus*/.alert-close.sc-calcite-alert:hover,.alert-close.sc-calcite-alert:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.alert-close:open*/.alert-close.sc-calcite-alert:open{background-color:var(--calcite-ui-foreground-3)}/*!@.alert-queue-count*/.alert-queue-count.sc-calcite-alert{visibility:hidden;display:flex;cursor:default;align-items:center;justify-content:space-around;align-self:stretch;overflow:hidden;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline:0px solid transparent;border-start-end-radius:0}/*!@.alert-queue-count.active*/.alert-queue-count.active.sc-calcite-alert{visibility:visible;opacity:1}/*!@:host([auto-dismiss]) > .alert-queue-count*/[auto-dismiss].sc-calcite-alert-h>.alert-queue-count.sc-calcite-alert{border-inline-end:0px solid transparent}/*!@.alert-dismiss-progress*/.alert-dismiss-progress.sc-calcite-alert{position:absolute;display:block;inline-size:100%;overflow:hidden;inset-inline:0;inset-block-start:-2px;block-size:2px;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}/*!@.alert-dismiss-progress:after*/.alert-dismiss-progress.sc-calcite-alert:after{position:absolute;inset-block-start:0px;display:block;block-size:2px;content:\"\";background-color:var(--calcite-alert-dismiss-progress-background);inset-inline-end:0}/*!@.actions-end*/.actions-end.sc-calcite-alert{display:flex;align-self:stretch}/*!@:host([color=blue]) .container*/[color=blue].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-info)}/*!@:host([color=blue]) .container .alert-icon*/[color=blue].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-info)}/*!@:host([color=red]) .container*/[color=red].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-danger)}/*!@:host([color=red]) .container .alert-icon*/[color=red].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-danger)}/*!@:host([color=yellow]) .container*/[color=yellow].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-warning)}/*!@:host([color=yellow]) .container .alert-icon*/[color=yellow].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-warning)}/*!@:host([color=green]) .container*/[color=green].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-success)}/*!@:host([color=green]) .container .alert-icon*/[color=green].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-success)}/*!@:host([auto-dismiss-duration=fast]) .alert-dismiss-progress:after*/[auto-dismiss-duration=fast].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 6000ms ease-out}/*!@:host([auto-dismiss-duration=medium]) .alert-dismiss-progress:after*/[auto-dismiss-duration=medium].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 10000ms ease-out}/*!@:host([auto-dismiss-duration=slow]) .alert-dismiss-progress:after*/[auto-dismiss-duration=slow].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 14000ms ease-out}@keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}";
|
|
9297
9330
|
|
|
9298
9331
|
/**
|
|
9299
9332
|
* Alerts are meant to provide a way to communicate urgent or important information to users, frequently as a result of an action they took in your app. Alerts are positioned
|
|
@@ -9303,6 +9336,7 @@ const alertCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{
|
|
|
9303
9336
|
* @slot title - A slot for optionally adding a title to the component.
|
|
9304
9337
|
* @slot message - A slot for adding main text to the component.
|
|
9305
9338
|
* @slot link - A slot for optionally adding an action to take from the alert (undo, try again, link to page, etc.)
|
|
9339
|
+
* @slot actions-end - A slot for adding actions to the end of the component. It is recommended to use two or fewer actions.
|
|
9306
9340
|
*/
|
|
9307
9341
|
class Alert {
|
|
9308
9342
|
constructor(hostRef) {
|
|
@@ -9348,6 +9382,7 @@ class Alert {
|
|
|
9348
9382
|
//
|
|
9349
9383
|
//--------------------------------------------------------------------------
|
|
9350
9384
|
this.effectiveLocale = "";
|
|
9385
|
+
this.hasEndActions = false;
|
|
9351
9386
|
/** the list of queued alerts */
|
|
9352
9387
|
this.queue = [];
|
|
9353
9388
|
/** the count of queued alerts */
|
|
@@ -9375,6 +9410,9 @@ class Alert {
|
|
|
9375
9410
|
this.determineActiveAlert();
|
|
9376
9411
|
this.calciteInternalAlertSync.emit({ queue: this.queue });
|
|
9377
9412
|
};
|
|
9413
|
+
this.actionsEndSlotChangeHandler = (event) => {
|
|
9414
|
+
this.hasEndActions = slotChangeHasAssignedElement(event);
|
|
9415
|
+
};
|
|
9378
9416
|
}
|
|
9379
9417
|
activeHandler(value) {
|
|
9380
9418
|
this.open = value;
|
|
@@ -9427,6 +9465,7 @@ class Alert {
|
|
|
9427
9465
|
disconnectLocalized(this);
|
|
9428
9466
|
}
|
|
9429
9467
|
render() {
|
|
9468
|
+
const { hasEndActions } = this;
|
|
9430
9469
|
const closeButton = (hAsync("button", { "aria-label": this.intlClose, class: "alert-close", onClick: this.closeAlert, ref: (el) => (this.closeButton = el), type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
9431
9470
|
numberStringFormatter.numberFormatOptions = {
|
|
9432
9471
|
locale: this.effectiveLocale,
|
|
@@ -9439,11 +9478,12 @@ class Alert {
|
|
|
9439
9478
|
const { active, autoDismiss, label, placement, queued, requestedIcon } = this;
|
|
9440
9479
|
const role = autoDismiss ? "alert" : "alertdialog";
|
|
9441
9480
|
const hidden = !active;
|
|
9481
|
+
const slotNode = (hAsync("slot", { key: "actionsEndSlot", name: SLOTS$o.actionsEnd, onSlotchange: this.actionsEndSlotChangeHandler }));
|
|
9442
9482
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, hAsync("div", { class: {
|
|
9443
9483
|
container: true,
|
|
9444
9484
|
queued,
|
|
9445
9485
|
[placement]: true
|
|
9446
|
-
}, 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 })), queueCount, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
9486
|
+
}, 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$Q.actionsEnd, hidden: !hasEndActions }, slotNode), this.queueLength > 1 ? queueCount : null, !autoDismiss ? closeButton : null, active && !queued && autoDismiss ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
9447
9487
|
}
|
|
9448
9488
|
// when an alert is opened or closed, update queue and determine active alert
|
|
9449
9489
|
alertSync(event) {
|
|
@@ -9538,6 +9578,7 @@ class Alert {
|
|
|
9538
9578
|
"placement": [513],
|
|
9539
9579
|
"scale": [513],
|
|
9540
9580
|
"effectiveLocale": [32],
|
|
9581
|
+
"hasEndActions": [32],
|
|
9541
9582
|
"queue": [32],
|
|
9542
9583
|
"queueLength": [32],
|
|
9543
9584
|
"queued": [32],
|
|
@@ -9839,7 +9880,7 @@ const SLOTS$n = {
|
|
|
9839
9880
|
control: "control",
|
|
9840
9881
|
headerMenuActions: "header-menu-actions"
|
|
9841
9882
|
};
|
|
9842
|
-
const ICONS$
|
|
9883
|
+
const ICONS$e = {
|
|
9843
9884
|
opened: "chevron-up",
|
|
9844
9885
|
closed: "chevron-down",
|
|
9845
9886
|
valid: "check-circle",
|
|
@@ -9856,7 +9897,7 @@ const Heading = (props, children) => {
|
|
|
9856
9897
|
return hAsync(HeadingTag, { ...props }, children);
|
|
9857
9898
|
};
|
|
9858
9899
|
|
|
9859
|
-
const blockCss = "@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-block: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-block{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-block{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-block{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-block{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-block{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-block:root{--calcite-internal-duration-factor:0.01}}/*!@:host*/.sc-calcite-block-h{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-block-h *.sc-calcite-block{box-sizing:border-box}/*!@:host*/.sc-calcite-block-h{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}/*!@:root*/.sc-calcite-block:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-block-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-block-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-block-h{display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding:0px;transition-property:margin;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);flex-basis:auto}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-block-h[disabled] .sc-calcite-block-s>[calcite-hydrated][disabled],[disabled].sc-calcite-block-h [calcite-hydrated][disabled].sc-calcite-block{opacity:1}/*!@.header*/.header.sc-calcite-block{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}/*!@.heading*/.heading.sc-calcite-block{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}/*!@.header .heading*/.header.sc-calcite-block .heading.sc-calcite-block{flex:1 1 auto;padding:0.5rem}/*!@.header*/.header.sc-calcite-block{justify-content:flex-start;padding:0px}/*!@.header,\n.toggle*/.header.sc-calcite-block,.toggle.sc-calcite-block{grid-area:header}/*!@.header-container*/.header-container.sc-calcite-block{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:\"handle header control menu\";grid-column:header-start/menu-end;grid-row:1/2}/*!@.toggle*/.toggle.sc-calcite-block{margin:0px;display:flex;cursor:pointer;flex-wrap:nowrap;align-items:center;justify-content:space-between;border-style:none;padding:0px;font-family:inherit;outline-color:transparent;text-align:initial;background-color:transparent}/*!@.toggle:hover*/.toggle.sc-calcite-block:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.toggle:focus*/.toggle.sc-calcite-block:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@calcite-loader[inline]*/calcite-loader[inline].sc-calcite-block{grid-area:control;align-self:center}/*!@calcite-handle*/calcite-handle.sc-calcite-block{grid-area:handle}/*!@.title*/.title.sc-calcite-block{margin:0px;padding:0.75rem}/*!@.header .title .heading*/.header.sc-calcite-block .title.sc-calcite-block .heading.sc-calcite-block{padding:0px;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-2);transition-property:color;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);word-wrap:break-word;word-break:break-word}/*!@.description*/.description.sc-calcite-block{margin-block-start:0.125rem;padding:0px;font-size:var(--calcite-font-size--2);color:var(--calcite-ui-text-3);word-wrap:break-word;word-break:break-word}/*!@.icon*/.icon.sc-calcite-block{margin-inline-start:0.75rem;margin-inline-end:0px;margin-block:0.75rem}/*!@.status-icon.valid*/.status-icon.valid.sc-calcite-block{color:var(--calcite-ui-success)}/*!@.status-icon.invalid*/.status-icon.invalid.sc-calcite-block{color:var(--calcite-ui-danger)}/*!@.status-icon.loading*/.status-icon.loading.sc-calcite-block{animation:spin var(--calcite-internal-animation-timing-
|
|
9900
|
+
const blockCss = "@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-block: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-block{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-block{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-block{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-block{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-block{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-block:root{--calcite-internal-duration-factor:0.01}}/*!@:host*/.sc-calcite-block-h{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-block-h *.sc-calcite-block{box-sizing:border-box}/*!@:host*/.sc-calcite-block-h{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}/*!@:root*/.sc-calcite-block:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-block-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-block-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-block-h{display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);padding:0px;transition-property:margin;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition-timing-function:cubic-bezier(0.215, 0.440, 0.420, 0.880);flex-basis:auto}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-block-h[disabled] .sc-calcite-block-s>[calcite-hydrated][disabled],[disabled].sc-calcite-block-h [calcite-hydrated][disabled].sc-calcite-block{opacity:1}/*!@.header*/.header.sc-calcite-block{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}/*!@.heading*/.heading.sc-calcite-block{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}/*!@.header .heading*/.header.sc-calcite-block .heading.sc-calcite-block{flex:1 1 auto;padding:0.5rem}/*!@.header*/.header.sc-calcite-block{justify-content:flex-start;padding:0px}/*!@.header,\n.toggle*/.header.sc-calcite-block,.toggle.sc-calcite-block{grid-area:header}/*!@.header-container*/.header-container.sc-calcite-block{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto;grid-template-areas:\"handle header control menu\";grid-column:header-start/menu-end;grid-row:1/2}/*!@.toggle*/.toggle.sc-calcite-block{margin:0px;display:flex;cursor:pointer;flex-wrap:nowrap;align-items:center;justify-content:space-between;border-style:none;padding:0px;font-family:inherit;outline-color:transparent;text-align:initial;background-color:transparent}/*!@.toggle:hover*/.toggle.sc-calcite-block:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.toggle:focus*/.toggle.sc-calcite-block:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@calcite-loader[inline]*/calcite-loader[inline].sc-calcite-block{grid-area:control;align-self:center}/*!@calcite-handle*/calcite-handle.sc-calcite-block{grid-area:handle}/*!@.title*/.title.sc-calcite-block{margin:0px;padding:0.75rem}/*!@.header .title .heading*/.header.sc-calcite-block .title.sc-calcite-block .heading.sc-calcite-block{padding:0px;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);line-height:1.25;color:var(--calcite-ui-text-2);transition-property:color;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);word-wrap:break-word;word-break:break-word}/*!@.description*/.description.sc-calcite-block{margin-block-start:0.125rem;padding:0px;font-size:var(--calcite-font-size--2);color:var(--calcite-ui-text-3);word-wrap:break-word;word-break:break-word}/*!@.icon*/.icon.sc-calcite-block{margin-inline-start:0.75rem;margin-inline-end:0px;margin-block:0.75rem}/*!@.status-icon.valid*/.status-icon.valid.sc-calcite-block{color:var(--calcite-ui-success)}/*!@.status-icon.invalid*/.status-icon.invalid.sc-calcite-block{color:var(--calcite-ui-danger)}/*!@.status-icon.loading*/.status-icon.loading.sc-calcite-block{animation:spin calc(var(--calcite-internal-animation-timing-slow) * 2) linear infinite}@keyframes spin{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}100%{transform:rotate(360deg)}}/*!@.toggle-icon*/.toggle-icon.sc-calcite-block{margin-block:0.75rem;align-self:center;justify-self:end;color:var(--calcite-ui-text-3);transition-property:color;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:1rem;margin-inline-start:auto}/*!@.toggle:hover .toggle-icon*/.toggle.sc-calcite-block:hover .toggle-icon.sc-calcite-block{color:var(--calcite-ui-text-1)}/*!@.container*/.container.sc-calcite-block{position:relative;display:flex;block-size:100%;flex-direction:column}/*!@.content*/.content.sc-calcite-block{position:relative;flex:1 1 0%}@keyframes in{0%{opacity:0}100%{opacity:1}}/*!@.content*/.content.sc-calcite-block{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out}/*!@.content--spaced*/.content--spaced.sc-calcite-block{padding-block:var(--calcite-block-padding, 0.5rem);padding-inline:var(--calcite-block-padding, 0.625rem)}/*!@.control-container*/.control-container.sc-calcite-block{margin:0px;display:flex;grid-area:control}/*!@calcite-action-menu*/calcite-action-menu.sc-calcite-block{grid-area:menu}/*!@:host([open])*/[open].sc-calcite-block-h{margin-block:0.5rem}/*!@:host([open]) .header .title .heading*/[open].sc-calcite-block-h .header.sc-calcite-block .title.sc-calcite-block .heading.sc-calcite-block{color:var(--calcite-ui-text-1)}";
|
|
9860
9901
|
|
|
9861
9902
|
/**
|
|
9862
9903
|
* @slot - A slot for adding content to the component.
|
|
@@ -9966,7 +10007,7 @@ class Block {
|
|
|
9966
10007
|
renderIcon() {
|
|
9967
10008
|
const { el, status } = this;
|
|
9968
10009
|
const showingLoadingStatus = this.loading && !this.open;
|
|
9969
|
-
const statusIcon = showingLoadingStatus ? ICONS$
|
|
10010
|
+
const statusIcon = showingLoadingStatus ? ICONS$e.refresh : ICONS$e[status];
|
|
9970
10011
|
const hasIcon = getSlotted(el, SLOTS$n.icon) || statusIcon;
|
|
9971
10012
|
const iconEl = !statusIcon ? (hAsync("slot", { key: "icon-slot", name: SLOTS$n.icon })) : (hAsync("calcite-icon", { class: {
|
|
9972
10013
|
[CSS$P.statusIcon]: true,
|
|
@@ -9986,7 +10027,7 @@ class Block {
|
|
|
9986
10027
|
const headerContent = (hAsync("header", { class: CSS$P.header }, this.renderIcon(), this.renderTitle()));
|
|
9987
10028
|
const hasControl = !!getSlotted(el, SLOTS$n.control);
|
|
9988
10029
|
const hasMenuActions = !!getSlotted(el, SLOTS$n.headerMenuActions);
|
|
9989
|
-
const collapseIcon = open ? ICONS$
|
|
10030
|
+
const collapseIcon = open ? ICONS$e.opened : ICONS$e.closed;
|
|
9990
10031
|
const { guid } = this;
|
|
9991
10032
|
const regionId = `${guid}-region`;
|
|
9992
10033
|
const buttonId = `${guid}-button`;
|
|
@@ -10042,7 +10083,7 @@ const TEXT$o = {
|
|
|
10042
10083
|
collapse: "Collapse",
|
|
10043
10084
|
expand: "Expand"
|
|
10044
10085
|
};
|
|
10045
|
-
const ICONS$
|
|
10086
|
+
const ICONS$d = {
|
|
10046
10087
|
menuOpen: "chevron-down",
|
|
10047
10088
|
menuClosedLeft: "chevron-left",
|
|
10048
10089
|
menuClosedRight: "chevron-right",
|
|
@@ -10097,7 +10138,7 @@ class BlockSection {
|
|
|
10097
10138
|
renderStatusIcon() {
|
|
10098
10139
|
var _a;
|
|
10099
10140
|
const { status } = this;
|
|
10100
|
-
const statusIcon = (_a = ICONS$
|
|
10141
|
+
const statusIcon = (_a = ICONS$d[status]) !== null && _a !== void 0 ? _a : false;
|
|
10101
10142
|
const statusIconClasses = {
|
|
10102
10143
|
[CSS$O.statusIcon]: true,
|
|
10103
10144
|
[CSS$O.valid]: status == "valid",
|
|
@@ -10109,10 +10150,10 @@ class BlockSection {
|
|
|
10109
10150
|
const { el, intlCollapse, intlExpand, open, text, toggleDisplay } = this;
|
|
10110
10151
|
const dir = getElementDir(el);
|
|
10111
10152
|
const arrowIcon = open
|
|
10112
|
-
? ICONS$
|
|
10153
|
+
? ICONS$d.menuOpen
|
|
10113
10154
|
: dir === "rtl"
|
|
10114
|
-
? ICONS$
|
|
10115
|
-
: ICONS$
|
|
10155
|
+
? ICONS$d.menuClosedLeft
|
|
10156
|
+
: ICONS$d.menuClosedRight;
|
|
10116
10157
|
const toggleLabel = open ? intlCollapse || TEXT$o.collapse : intlExpand || TEXT$o.expand;
|
|
10117
10158
|
const { guid } = this;
|
|
10118
10159
|
const regionId = `${guid}-region`;
|
|
@@ -11030,7 +11071,7 @@ const TEXT$l = {
|
|
|
11030
11071
|
const SLOTS$l = {
|
|
11031
11072
|
image: "image"
|
|
11032
11073
|
};
|
|
11033
|
-
const ICONS$
|
|
11074
|
+
const ICONS$c = {
|
|
11034
11075
|
close: "x"
|
|
11035
11076
|
};
|
|
11036
11077
|
|
|
@@ -11137,7 +11178,7 @@ class Chip {
|
|
|
11137
11178
|
}
|
|
11138
11179
|
render() {
|
|
11139
11180
|
const iconEl = (hAsync("calcite-icon", { class: CSS$L.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
11140
|
-
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$L.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { class: CSS$L.closeIcon, icon: ICONS$
|
|
11181
|
+
const closeButton = (hAsync("button", { "aria-describedby": this.guid, "aria-label": this.dismissLabel, class: CSS$L.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { class: CSS$L.closeIcon, icon: ICONS$c.close, scale: "s" })));
|
|
11141
11182
|
return (hAsync("div", { class: "container" }, this.renderChipImage(), this.icon ? iconEl : null, hAsync("span", { class: CSS$L.title, id: this.guid }, hAsync("slot", null)), this.closable ? closeButton : null));
|
|
11142
11183
|
}
|
|
11143
11184
|
get el() { return getElement(this); }
|
|
@@ -16282,7 +16323,7 @@ function hasActiveChildren(node) {
|
|
|
16282
16323
|
const items = nodeListToArray(node.querySelectorAll("calcite-combobox-item"));
|
|
16283
16324
|
return items.filter((item) => item.selected).length > 0;
|
|
16284
16325
|
}
|
|
16285
|
-
function getDepth(element) {
|
|
16326
|
+
function getDepth$1(element) {
|
|
16286
16327
|
{
|
|
16287
16328
|
return 0;
|
|
16288
16329
|
}
|
|
@@ -17290,7 +17331,7 @@ class ComboboxItem {
|
|
|
17290
17331
|
[CSS$H.active]: this.active,
|
|
17291
17332
|
[CSS$H.single]: isSingleSelect
|
|
17292
17333
|
};
|
|
17293
|
-
const depth = getDepth();
|
|
17334
|
+
const depth = getDepth$1();
|
|
17294
17335
|
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$H.title }, this.textLabel)), this.renderChildren())));
|
|
17295
17336
|
}
|
|
17296
17337
|
get el() { return getElement(this); }
|
|
@@ -17353,7 +17394,7 @@ class ComboboxItemGroup {
|
|
|
17353
17394
|
// --------------------------------------------------------------------------
|
|
17354
17395
|
render() {
|
|
17355
17396
|
const { el, scale } = this;
|
|
17356
|
-
const indent = `${CSS$G.label}--indent-${getDepth()}`;
|
|
17397
|
+
const indent = `${CSS$G.label}--indent-${getDepth$1()}`;
|
|
17357
17398
|
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$G.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$G.label]: true, [indent]: true }, id: this.guid, role: "presentation" }, hAsync("span", { class: CSS$G.title }, this.label)), hAsync("slot", null)));
|
|
17358
17399
|
}
|
|
17359
17400
|
get el() { return getElement(this); }
|
|
@@ -19451,7 +19492,7 @@ class DropdownItem {
|
|
|
19451
19492
|
const CSS$D = {
|
|
19452
19493
|
button: "button"
|
|
19453
19494
|
};
|
|
19454
|
-
const ICONS$
|
|
19495
|
+
const ICONS$b = {
|
|
19455
19496
|
plus: "plus"
|
|
19456
19497
|
};
|
|
19457
19498
|
|
|
@@ -19482,7 +19523,7 @@ class Fab {
|
|
|
19482
19523
|
*
|
|
19483
19524
|
* @default "plus"
|
|
19484
19525
|
*/
|
|
19485
|
-
this.icon = ICONS$
|
|
19526
|
+
this.icon = ICONS$b.plus;
|
|
19486
19527
|
/**
|
|
19487
19528
|
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
19488
19529
|
*/
|
|
@@ -19563,7 +19604,7 @@ const TEXT$h = {
|
|
|
19563
19604
|
filterLabel: "Filter",
|
|
19564
19605
|
clear: "Clear filter"
|
|
19565
19606
|
};
|
|
19566
|
-
const ICONS$
|
|
19607
|
+
const ICONS$a = {
|
|
19567
19608
|
search: "search",
|
|
19568
19609
|
close: "x"
|
|
19569
19610
|
};
|
|
@@ -19674,7 +19715,7 @@ class Filter {
|
|
|
19674
19715
|
// --------------------------------------------------------------------------
|
|
19675
19716
|
render() {
|
|
19676
19717
|
const { disabled, scale } = this;
|
|
19677
|
-
return (hAsync(Fragment, null, hAsync("div", { class: CSS$C.container }, hAsync("label", null, hAsync("calcite-input", { "aria-label": this.intlLabel || TEXT$h.filterLabel, clearable: true, disabled: disabled, icon: ICONS$
|
|
19718
|
+
return (hAsync(Fragment, null, hAsync("div", { class: CSS$C.container }, hAsync("label", null, hAsync("calcite-input", { "aria-label": this.intlLabel || TEXT$h.filterLabel, clearable: true, disabled: disabled, icon: ICONS$a.search, intlClear: this.intlClear || TEXT$h.clear, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, ref: (el) => {
|
|
19678
19719
|
this.textInput = el;
|
|
19679
19720
|
}, scale: scale, type: "text", value: this.value })))));
|
|
19680
19721
|
}
|
|
@@ -19832,7 +19873,7 @@ class Flow {
|
|
|
19832
19873
|
const CSS$A = {
|
|
19833
19874
|
backButton: "back-button"
|
|
19834
19875
|
};
|
|
19835
|
-
const ICONS$
|
|
19876
|
+
const ICONS$9 = {
|
|
19836
19877
|
backLeft: "chevron-left",
|
|
19837
19878
|
backRight: "chevron-right"
|
|
19838
19879
|
};
|
|
@@ -19866,7 +19907,7 @@ const CSS$z = {
|
|
|
19866
19907
|
fabContainer: "fab-container",
|
|
19867
19908
|
footer: "footer"
|
|
19868
19909
|
};
|
|
19869
|
-
const ICONS$
|
|
19910
|
+
const ICONS$8 = {
|
|
19870
19911
|
close: "x",
|
|
19871
19912
|
menu: "ellipsis",
|
|
19872
19913
|
backLeft: "chevron-left",
|
|
@@ -20015,7 +20056,7 @@ class FlowItem {
|
|
|
20015
20056
|
const rtl = getElementDir(el) === "rtl";
|
|
20016
20057
|
const { showBackButton, backButtonClick } = this;
|
|
20017
20058
|
const label = this.getBackLabel();
|
|
20018
|
-
const icon = rtl ? ICONS$
|
|
20059
|
+
const icon = rtl ? ICONS$9.backRight : ICONS$9.backLeft;
|
|
20019
20060
|
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$A.backButton, icon: icon, key: "flow-back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: "header-actions-start", text: label })) : null;
|
|
20020
20061
|
}
|
|
20021
20062
|
render() {
|
|
@@ -20289,7 +20330,7 @@ const CSS$y = {
|
|
|
20289
20330
|
handle: "handle",
|
|
20290
20331
|
handleActivated: "handle--activated"
|
|
20291
20332
|
};
|
|
20292
|
-
const ICONS$
|
|
20333
|
+
const ICONS$7 = {
|
|
20293
20334
|
drag: "drag"
|
|
20294
20335
|
};
|
|
20295
20336
|
|
|
@@ -20370,7 +20411,7 @@ class Handle {
|
|
|
20370
20411
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
20371
20412
|
hAsync("span", { "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$y.handle]: true, [CSS$y.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
|
|
20372
20413
|
this.handleButton = el;
|
|
20373
|
-
}, role: "button", tabindex: "0", title: this.textTitle }, hAsync("calcite-icon", { icon: ICONS$
|
|
20414
|
+
}, role: "button", tabindex: "0", title: this.textTitle }, hAsync("calcite-icon", { icon: ICONS$7.drag, scale: "s" })));
|
|
20374
20415
|
}
|
|
20375
20416
|
get el() { return getElement(this); }
|
|
20376
20417
|
static get style() { return handleCss; }
|
|
@@ -23907,11 +23948,75 @@ class Link {
|
|
|
23907
23948
|
}
|
|
23908
23949
|
|
|
23909
23950
|
const CSS$q = {
|
|
23910
|
-
container: "container"
|
|
23951
|
+
container: "container",
|
|
23952
|
+
table: "table",
|
|
23953
|
+
scrim: "scrim",
|
|
23954
|
+
tableContainer: "table-container",
|
|
23955
|
+
sticky: "sticky-pos"
|
|
23956
|
+
};
|
|
23957
|
+
const debounceTimeout = 100;
|
|
23958
|
+
|
|
23959
|
+
const listItemGroupSelector = "calcite-list-item-group";
|
|
23960
|
+
const listItemSelector$1 = "calcite-list-item";
|
|
23961
|
+
function getListItemChildren(event) {
|
|
23962
|
+
const assignedElements = event.target.assignedElements({ flatten: true });
|
|
23963
|
+
const listItemGroupChildren = assignedElements.filter((el) => el === null || el === void 0 ? void 0 : el.matches(listItemGroupSelector))
|
|
23964
|
+
.map((group) => Array.from(group.querySelectorAll(listItemSelector$1)))
|
|
23965
|
+
.reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
|
|
23966
|
+
const listItemChildren = assignedElements.filter((el) => el === null || el === void 0 ? void 0 : el.matches(listItemSelector$1));
|
|
23967
|
+
return [...listItemGroupChildren, ...listItemChildren];
|
|
23968
|
+
}
|
|
23969
|
+
function updateListItemChildren(listItemChildren) {
|
|
23970
|
+
listItemChildren.forEach((listItem) => {
|
|
23971
|
+
listItem.setPosition = listItemChildren.indexOf(listItem) + 1;
|
|
23972
|
+
listItem.setSize = listItemChildren.length;
|
|
23973
|
+
});
|
|
23974
|
+
}
|
|
23975
|
+
function getDepth(element, includeGroup = false) {
|
|
23976
|
+
{
|
|
23977
|
+
return 0;
|
|
23978
|
+
}
|
|
23979
|
+
}
|
|
23980
|
+
|
|
23981
|
+
const CSS$p = {
|
|
23982
|
+
container: "container",
|
|
23983
|
+
containerBorderSelected: "container--border-selected",
|
|
23984
|
+
containerBorderUnselected: "container--border-unselected",
|
|
23985
|
+
contentContainer: "content-container",
|
|
23986
|
+
contentContainerSelectable: "content-container--selectable",
|
|
23987
|
+
contentContainerHasCenterContent: "content-container--has-center-content",
|
|
23988
|
+
nestedContainer: "nested-container",
|
|
23989
|
+
nestedContainerHidden: "nested-container--hidden",
|
|
23990
|
+
content: "content",
|
|
23991
|
+
actionsStart: "actions-start",
|
|
23992
|
+
contentStart: "content-start",
|
|
23993
|
+
label: "label",
|
|
23994
|
+
description: "description",
|
|
23995
|
+
contentEnd: "content-end",
|
|
23996
|
+
actionsEnd: "actions-end",
|
|
23997
|
+
selectionContainer: "selection-container",
|
|
23998
|
+
openContainer: "open-container"
|
|
23999
|
+
};
|
|
24000
|
+
const SLOTS$e = {
|
|
24001
|
+
actionsStart: "actions-start",
|
|
24002
|
+
contentStart: "content-start",
|
|
24003
|
+
contentEnd: "content-end",
|
|
24004
|
+
actionsEnd: "actions-end"
|
|
24005
|
+
};
|
|
24006
|
+
const MAX_COLUMNS = 5;
|
|
24007
|
+
const ICONS$6 = {
|
|
24008
|
+
selectedMultiple: "check-circle-f",
|
|
24009
|
+
selectedSingle: "circle-f",
|
|
24010
|
+
unselected: "blank",
|
|
24011
|
+
closedLTR: "caret-right",
|
|
24012
|
+
closedRTL: "caret-left",
|
|
24013
|
+
open: "caret-down",
|
|
24014
|
+
blank: "blank"
|
|
23911
24015
|
};
|
|
23912
24016
|
|
|
23913
|
-
const listCss = "@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-list: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-list{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-list{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-list{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-list{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-list{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-list:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-list:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-list-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-list-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-list-h{display:block}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-list-h[disabled] .sc-calcite-list-s>[calcite-hydrated][disabled],[disabled].sc-calcite-list-h [calcite-hydrated][disabled].sc-calcite-list{opacity:1}/*!@.container*/.container.sc-calcite-list{box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}/*!@.container **/.container.sc-calcite-list *.sc-calcite-list{box-sizing:border-box}/*!@::slotted(calcite-list-item)*/.sc-calcite-list-s>calcite-list-item{margin-block-end:1px;--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}/*!@::slotted(calcite-list-item:last-child)*/.sc-calcite-list-s>calcite-list-item:last-child{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";
|
|
24017
|
+
const listCss = "@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-list: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-list{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-list{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-list{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-list{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-list{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-list:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-list:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-list-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-list-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-list-h{display:block}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-list-h[disabled] .sc-calcite-list-s>[calcite-hydrated][disabled],[disabled].sc-calcite-list-h [calcite-hydrated][disabled].sc-calcite-list{opacity:1}/*!@.container*/.container.sc-calcite-list{position:relative}/*!@.table-container*/.table-container.sc-calcite-list{position:relative;z-index:1;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}/*!@.table-container **/.table-container.sc-calcite-list *.sc-calcite-list{box-sizing:border-box}/*!@.table*/.table.sc-calcite-list{inline-size:100%}/*!@::slotted(calcite-list-item)*/.sc-calcite-list-s>calcite-list-item{margin-block-end:1px;--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}/*!@::slotted(calcite-list-item:last-child)*/.sc-calcite-list-s>calcite-list-item:last-child{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}/*!@.sticky-pos*/.sticky-pos.sc-calcite-list{position:sticky;inset-block-start:0px;z-index:300}/*!@calcite-filter*/calcite-filter.sc-calcite-list{margin-block-end:1px}";
|
|
23914
24018
|
|
|
24019
|
+
const listItemSelector = "calcite-list-item";
|
|
23915
24020
|
/**
|
|
23916
24021
|
* A general purpose list that enables users to construct list items that conform to Calcite styling.
|
|
23917
24022
|
*
|
|
@@ -23920,6 +24025,7 @@ const listCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0
|
|
|
23920
24025
|
class List$1 {
|
|
23921
24026
|
constructor(hostRef) {
|
|
23922
24027
|
registerInstance(this, hostRef);
|
|
24028
|
+
this.calciteListFilter = createEvent(this, "calciteListFilter", 6);
|
|
23923
24029
|
// --------------------------------------------------------------------------
|
|
23924
24030
|
//
|
|
23925
24031
|
// Properties
|
|
@@ -23929,21 +24035,240 @@ class List$1 {
|
|
|
23929
24035
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
23930
24036
|
*/
|
|
23931
24037
|
this.disabled = false;
|
|
24038
|
+
/**
|
|
24039
|
+
* When true, an input appears at the top of the list that can be used by end users to filter items in the list.
|
|
24040
|
+
*/
|
|
24041
|
+
this.filterEnabled = false;
|
|
24042
|
+
/**
|
|
24043
|
+
* **read-only** The currently filtered items
|
|
24044
|
+
*
|
|
24045
|
+
* @readonly
|
|
24046
|
+
*/
|
|
24047
|
+
this.filteredItems = [];
|
|
24048
|
+
/**
|
|
24049
|
+
* **read-only** The currently filtered items
|
|
24050
|
+
*
|
|
24051
|
+
* @readonly
|
|
24052
|
+
*/
|
|
24053
|
+
this.filteredData = [];
|
|
24054
|
+
/**
|
|
24055
|
+
* When true, content is waiting to be loaded. This state shows a busy indicator.
|
|
24056
|
+
*/
|
|
24057
|
+
this.loading = false;
|
|
24058
|
+
/**
|
|
24059
|
+
* One of the items within the list can be opened.
|
|
24060
|
+
*
|
|
24061
|
+
* @internal
|
|
24062
|
+
*/
|
|
24063
|
+
this.openable = false;
|
|
24064
|
+
/**
|
|
24065
|
+
* **read-only** The currently selected items
|
|
24066
|
+
*
|
|
24067
|
+
* @readonly
|
|
24068
|
+
*/
|
|
24069
|
+
this.selectedItems = [];
|
|
24070
|
+
/**
|
|
24071
|
+
* specify the selection mode - multiple (allow any number of (or no) selected items), single (allow and require one selected item), none (no selected items), defaults to single
|
|
24072
|
+
*/
|
|
24073
|
+
this.selectionMode = "none";
|
|
24074
|
+
/**
|
|
24075
|
+
* specify the selection appearance - icon (displays a checkmark or dot), border (displays a border), defaults to icon
|
|
24076
|
+
*/
|
|
24077
|
+
this.selectionAppearance = "icon";
|
|
24078
|
+
this.listItems = [];
|
|
24079
|
+
this.enabledListItems = [];
|
|
24080
|
+
this.mutationObserver = createObserver();
|
|
24081
|
+
this.dataForFilter = [];
|
|
24082
|
+
// --------------------------------------------------------------------------
|
|
24083
|
+
//
|
|
24084
|
+
// Private Methods
|
|
24085
|
+
//
|
|
24086
|
+
// --------------------------------------------------------------------------
|
|
24087
|
+
this.handleDefaultSlotChange = (event) => {
|
|
24088
|
+
updateListItemChildren(getListItemChildren(event));
|
|
24089
|
+
};
|
|
24090
|
+
this.setActiveListItem = () => {
|
|
24091
|
+
const { enabledListItems } = this;
|
|
24092
|
+
if (!enabledListItems.some((item) => item.active)) {
|
|
24093
|
+
if (enabledListItems[0]) {
|
|
24094
|
+
enabledListItems[0].active = true;
|
|
24095
|
+
}
|
|
24096
|
+
}
|
|
24097
|
+
};
|
|
24098
|
+
this.updateSelectedItems = debounce(() => {
|
|
24099
|
+
this.selectedItems = this.enabledListItems.filter((item) => item.selected);
|
|
24100
|
+
}, debounceTimeout);
|
|
24101
|
+
this.updateFilteredItems = debounce(() => {
|
|
24102
|
+
const { listItems, filteredData, filterText } = this;
|
|
24103
|
+
const values = filteredData.map((item) => item.value);
|
|
24104
|
+
const groups = new Set();
|
|
24105
|
+
const filteredItems = (listItems === null || listItems === void 0 ? void 0 : listItems.filter((item) => {
|
|
24106
|
+
const parent = item.parentElement;
|
|
24107
|
+
const grouped = parent.matches("calcite-list-item-group");
|
|
24108
|
+
if (grouped) {
|
|
24109
|
+
groups.add(parent);
|
|
24110
|
+
}
|
|
24111
|
+
const matches = filterText ? values.includes(item.value) : true;
|
|
24112
|
+
item.hidden = !matches;
|
|
24113
|
+
return matches;
|
|
24114
|
+
})) || [];
|
|
24115
|
+
this.filteredItems = filteredItems;
|
|
24116
|
+
groups.forEach((group) => {
|
|
24117
|
+
const hasAtLeastOneMatch = filteredItems.some((item) => group.contains(item));
|
|
24118
|
+
group.hidden = !hasAtLeastOneMatch;
|
|
24119
|
+
if (!hasAtLeastOneMatch) {
|
|
24120
|
+
return;
|
|
24121
|
+
}
|
|
24122
|
+
const parentItem = group.closest("calcite-list-item");
|
|
24123
|
+
if (parentItem) {
|
|
24124
|
+
parentItem.hidden = false;
|
|
24125
|
+
if (filteredItems.includes(parentItem)) {
|
|
24126
|
+
Array.from(group.querySelectorAll("calcite-list-item")).forEach((child) => (child.hidden = false));
|
|
24127
|
+
}
|
|
24128
|
+
}
|
|
24129
|
+
});
|
|
24130
|
+
groups.clear();
|
|
24131
|
+
});
|
|
24132
|
+
this.handleFilter = (event) => {
|
|
24133
|
+
event.stopPropagation();
|
|
24134
|
+
const { filteredItems, value } = event.currentTarget;
|
|
24135
|
+
this.filteredData = filteredItems;
|
|
24136
|
+
this.filterText = value;
|
|
24137
|
+
this.updateFilteredItems();
|
|
24138
|
+
this.calciteListFilter.emit();
|
|
24139
|
+
};
|
|
24140
|
+
this.getItemData = () => {
|
|
24141
|
+
return this.listItems.map((item) => ({
|
|
24142
|
+
label: item.label,
|
|
24143
|
+
description: item.description,
|
|
24144
|
+
metadata: item.metadata,
|
|
24145
|
+
value: item.value
|
|
24146
|
+
}));
|
|
24147
|
+
};
|
|
24148
|
+
this.updateListItems = debounce(() => {
|
|
24149
|
+
const { selectionAppearance, selectionMode } = this;
|
|
24150
|
+
const items = this.queryListItems();
|
|
24151
|
+
items.forEach((item) => {
|
|
24152
|
+
item.selectionAppearance = selectionAppearance;
|
|
24153
|
+
item.selectionMode = selectionMode;
|
|
24154
|
+
});
|
|
24155
|
+
this.listItems = items;
|
|
24156
|
+
this.enabledListItems = items.filter((item) => !item.disabled);
|
|
24157
|
+
if (this.filterEnabled) {
|
|
24158
|
+
this.dataForFilter = this.getItemData();
|
|
24159
|
+
}
|
|
24160
|
+
this.setActiveListItem();
|
|
24161
|
+
this.updateSelectedItems();
|
|
24162
|
+
this.updateFilteredItems();
|
|
24163
|
+
}, debounceTimeout);
|
|
24164
|
+
this.queryListItems = () => {
|
|
24165
|
+
return Array.from(this.el.querySelectorAll(listItemSelector));
|
|
24166
|
+
};
|
|
24167
|
+
this.focusRow = (focusEl) => {
|
|
24168
|
+
const { enabledListItems } = this;
|
|
24169
|
+
if (!focusEl) {
|
|
24170
|
+
return;
|
|
24171
|
+
}
|
|
24172
|
+
enabledListItems.forEach((listItem) => (listItem.active = listItem === focusEl));
|
|
24173
|
+
focusEl.setFocus();
|
|
24174
|
+
};
|
|
24175
|
+
this.isNavigable = (listItem) => {
|
|
24176
|
+
var _a;
|
|
24177
|
+
const parentListItemEl = (_a = listItem.parentElement) === null || _a === void 0 ? void 0 : _a.closest(listItemSelector);
|
|
24178
|
+
if (!parentListItemEl) {
|
|
24179
|
+
return true;
|
|
24180
|
+
}
|
|
24181
|
+
return parentListItemEl.open && this.isNavigable(parentListItemEl);
|
|
24182
|
+
};
|
|
24183
|
+
this.handleListKeydown = (event) => {
|
|
24184
|
+
const { key } = event;
|
|
24185
|
+
const filteredItems = this.enabledListItems.filter((listItem) => this.isNavigable(listItem));
|
|
24186
|
+
const currentIndex = filteredItems.findIndex((listItem) => listItem.active);
|
|
24187
|
+
if (key === "ArrowDown") {
|
|
24188
|
+
event.preventDefault();
|
|
24189
|
+
const nextIndex = currentIndex + 1;
|
|
24190
|
+
if (filteredItems[nextIndex]) {
|
|
24191
|
+
this.focusRow(filteredItems[nextIndex]);
|
|
24192
|
+
}
|
|
24193
|
+
}
|
|
24194
|
+
else if (key === "ArrowUp") {
|
|
24195
|
+
event.preventDefault();
|
|
24196
|
+
const prevIndex = currentIndex - 1;
|
|
24197
|
+
if (filteredItems[prevIndex]) {
|
|
24198
|
+
this.focusRow(filteredItems[prevIndex]);
|
|
24199
|
+
}
|
|
24200
|
+
}
|
|
24201
|
+
else if (key === "Home") {
|
|
24202
|
+
event.preventDefault();
|
|
24203
|
+
const homeItem = filteredItems[0];
|
|
24204
|
+
if (homeItem) {
|
|
24205
|
+
this.focusRow(homeItem);
|
|
24206
|
+
}
|
|
24207
|
+
}
|
|
24208
|
+
else if (key === "End") {
|
|
24209
|
+
event.preventDefault();
|
|
24210
|
+
const endItem = filteredItems[filteredItems.length - 1];
|
|
24211
|
+
if (endItem) {
|
|
24212
|
+
this.focusRow(endItem);
|
|
24213
|
+
}
|
|
24214
|
+
}
|
|
24215
|
+
};
|
|
24216
|
+
}
|
|
24217
|
+
handleFilterEnabledChange() {
|
|
24218
|
+
this.updateListItems();
|
|
24219
|
+
}
|
|
24220
|
+
handleSelectionAppearanceChange() {
|
|
24221
|
+
this.updateListItems();
|
|
24222
|
+
}
|
|
24223
|
+
handleCalciteInternalFocusPreviousItem(event) {
|
|
24224
|
+
event.stopPropagation();
|
|
24225
|
+
const { enabledListItems } = this;
|
|
24226
|
+
const currentIndex = enabledListItems.findIndex((listItem) => listItem.active);
|
|
24227
|
+
const prevIndex = currentIndex - 1;
|
|
24228
|
+
if (enabledListItems[prevIndex]) {
|
|
24229
|
+
this.focusRow(enabledListItems[prevIndex]);
|
|
24230
|
+
}
|
|
24231
|
+
}
|
|
24232
|
+
handleCalciteListItemSelect(event) {
|
|
24233
|
+
const target = event.target;
|
|
24234
|
+
const { listItems, selectionMode } = this;
|
|
24235
|
+
listItems.forEach((listItem) => {
|
|
24236
|
+
listItem.active = listItem === target;
|
|
24237
|
+
if (selectionMode === "single") {
|
|
24238
|
+
listItem.selected = listItem === target;
|
|
24239
|
+
}
|
|
24240
|
+
});
|
|
24241
|
+
this.updateSelectedItems();
|
|
23932
24242
|
}
|
|
23933
24243
|
//--------------------------------------------------------------------------
|
|
23934
24244
|
//
|
|
23935
24245
|
// Lifecycle
|
|
23936
24246
|
//
|
|
23937
24247
|
//--------------------------------------------------------------------------
|
|
24248
|
+
connectedCallback() {
|
|
24249
|
+
var _a;
|
|
24250
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
24251
|
+
this.updateListItems();
|
|
24252
|
+
}
|
|
24253
|
+
disconnectedCallback() {
|
|
24254
|
+
var _a;
|
|
24255
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
24256
|
+
}
|
|
23938
24257
|
componentWillLoad() {
|
|
23939
24258
|
setUpLoadableComponent(this);
|
|
23940
24259
|
}
|
|
23941
|
-
componentDidLoad() {
|
|
23942
|
-
setComponentLoaded(this);
|
|
23943
|
-
}
|
|
23944
24260
|
componentDidRender() {
|
|
23945
24261
|
updateHostInteraction(this);
|
|
23946
24262
|
}
|
|
24263
|
+
componentDidLoad() {
|
|
24264
|
+
setComponentLoaded(this);
|
|
24265
|
+
const { filterEl } = this;
|
|
24266
|
+
const filteredItems = filterEl === null || filterEl === void 0 ? void 0 : filterEl.filteredItems;
|
|
24267
|
+
if (filteredItems) {
|
|
24268
|
+
this.filteredData = filteredItems;
|
|
24269
|
+
}
|
|
24270
|
+
this.updateFilteredItems();
|
|
24271
|
+
}
|
|
23947
24272
|
// --------------------------------------------------------------------------
|
|
23948
24273
|
//
|
|
23949
24274
|
// Public Methods
|
|
@@ -23951,9 +24276,9 @@ class List$1 {
|
|
|
23951
24276
|
// --------------------------------------------------------------------------
|
|
23952
24277
|
/** Sets focus on the component. */
|
|
23953
24278
|
async setFocus() {
|
|
24279
|
+
var _a;
|
|
23954
24280
|
await componentLoaded(this);
|
|
23955
|
-
|
|
23956
|
-
firstListItem === null || firstListItem === void 0 ? void 0 : firstListItem.setFocus();
|
|
24281
|
+
(_a = this.enabledListItems.find((listItem) => listItem.active)) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
23957
24282
|
}
|
|
23958
24283
|
// --------------------------------------------------------------------------
|
|
23959
24284
|
//
|
|
@@ -23961,47 +24286,46 @@ class List$1 {
|
|
|
23961
24286
|
//
|
|
23962
24287
|
// --------------------------------------------------------------------------
|
|
23963
24288
|
render() {
|
|
23964
|
-
|
|
24289
|
+
const { loading, label, disabled, dataForFilter, filterEnabled, filterPlaceholder, filterText } = this;
|
|
24290
|
+
return (hAsync("div", { class: CSS$q.container }, loading ? hAsync("calcite-scrim", { class: CSS$q.scrim, loading: loading }) : null, hAsync("table", { "aria-busy": toAriaBoolean(loading), "aria-label": label || "", class: CSS$q.table, onKeyDown: this.handleListKeydown, role: "treegrid" }, filterEnabled ? (hAsync("thead", null, hAsync("tr", { class: { [CSS$q.sticky]: true } }, hAsync("th", { colSpan: MAX_COLUMNS }, hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: this.handleFilter, placeholder: filterPlaceholder, ref: (el) => (this.filterEl = el), value: filterText }))))) : null, hAsync("tbody", { class: CSS$q.tableContainer }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })))));
|
|
23965
24291
|
}
|
|
23966
24292
|
get el() { return getElement(this); }
|
|
24293
|
+
static get watchers() { return {
|
|
24294
|
+
"filterEnabled": ["handleFilterEnabledChange"],
|
|
24295
|
+
"selectionMode": ["handleSelectionAppearanceChange"],
|
|
24296
|
+
"selectionAppearance": ["handleSelectionAppearanceChange"]
|
|
24297
|
+
}; }
|
|
23967
24298
|
static get style() { return listCss; }
|
|
23968
24299
|
static get cmpMeta() { return {
|
|
23969
24300
|
"$flags$": 9,
|
|
23970
24301
|
"$tagName$": "calcite-list",
|
|
23971
24302
|
"$members$": {
|
|
23972
24303
|
"disabled": [516],
|
|
24304
|
+
"filterEnabled": [516, "filter-enabled"],
|
|
24305
|
+
"filteredItems": [1040],
|
|
24306
|
+
"filteredData": [1040],
|
|
24307
|
+
"filterPlaceholder": [513, "filter-placeholder"],
|
|
24308
|
+
"filterText": [1537, "filter-text"],
|
|
23973
24309
|
"headingLevel": [514, "heading-level"],
|
|
24310
|
+
"label": [1],
|
|
24311
|
+
"loading": [516],
|
|
24312
|
+
"openable": [4],
|
|
24313
|
+
"selectedItems": [1040],
|
|
24314
|
+
"selectionMode": [513, "selection-mode"],
|
|
24315
|
+
"selectionAppearance": [513, "selection-appearance"],
|
|
24316
|
+
"dataForFilter": [32],
|
|
23974
24317
|
"setFocus": [64]
|
|
23975
24318
|
},
|
|
23976
|
-
"$listeners$":
|
|
24319
|
+
"$listeners$": [[0, "calciteInternalFocusPreviousItem", "handleCalciteInternalFocusPreviousItem"], [0, "calciteInternalListItemSelect", "handleCalciteListItemSelect"]],
|
|
23977
24320
|
"$lazyBundleId$": "-",
|
|
23978
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["headingLevel", "heading-level"]]
|
|
24321
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["filterEnabled", "filter-enabled"], ["filterPlaceholder", "filter-placeholder"], ["filterText", "filter-text"], ["headingLevel", "heading-level"], ["loading", "loading"], ["selectionMode", "selection-mode"], ["selectionAppearance", "selection-appearance"]]
|
|
23979
24322
|
}; }
|
|
23980
24323
|
}
|
|
23981
24324
|
|
|
23982
|
-
const
|
|
23983
|
-
container: "container",
|
|
23984
|
-
contentContainer: "content-container",
|
|
23985
|
-
nestedContainer: "nested-container",
|
|
23986
|
-
contentContainerButton: "content-container--button",
|
|
23987
|
-
content: "content",
|
|
23988
|
-
actionsStart: "actions-start",
|
|
23989
|
-
contentStart: "content-start",
|
|
23990
|
-
label: "label",
|
|
23991
|
-
description: "description",
|
|
23992
|
-
contentEnd: "content-end",
|
|
23993
|
-
actionsEnd: "actions-end",
|
|
23994
|
-
hasCenterContent: "has-center-content"
|
|
23995
|
-
};
|
|
23996
|
-
const SLOTS$e = {
|
|
23997
|
-
actionsStart: "actions-start",
|
|
23998
|
-
contentStart: "content-start",
|
|
23999
|
-
contentEnd: "content-end",
|
|
24000
|
-
actionsEnd: "actions-end"
|
|
24001
|
-
};
|
|
24002
|
-
|
|
24003
|
-
const listItemCss = "@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-list-item:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-list-item{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-list-item{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-list-item{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-list-item{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-list-item{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-list-item:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-list-item:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-list-item-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-list-item-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-list-item-h{display:flex;flex-direction:column}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-list-item-h[disabled] .sc-calcite-list-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-list-item-h [calcite-hydrated][disabled].sc-calcite-list-item{opacity:1}/*!@.container*/.container.sc-calcite-list-item{box-sizing:border-box;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family)}/*!@.container **/.container.sc-calcite-list-item *.sc-calcite-list-item{box-sizing:border-box}/*!@.nested-container*/.nested-container.sc-calcite-list-item{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}/*!@.content-container*/.content-container.sc-calcite-list-item{display:flex;flex:1 1 auto;align-items:stretch;padding:0px;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);outline-color:transparent}/*!@.content-container--button*/.content-container--button.sc-calcite-list-item{cursor:pointer;border-style:none;background-color:var(--calcite-ui-foreground-1);outline-color:transparent;text-align:initial}/*!@.content-container--button:hover*/.content-container--button.sc-calcite-list-item:hover{background-color:var(--calcite-ui-foreground-2)}/*!@.content-container--button:hover .label,\n.content-container--button:hover .description*/.content-container--button.sc-calcite-list-item:hover .label.sc-calcite-list-item,.content-container--button.sc-calcite-list-item:hover .description.sc-calcite-list-item{color:var(--calcite-ui-text-1)}/*!@.content-container--button:focus*/.content-container--button.sc-calcite-list-item:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.content-container--button .content-start,\n.content-container--button .content-end*/.content-container--button.sc-calcite-list-item .content-start.sc-calcite-list-item,.content-container--button.sc-calcite-list-item .content-end.sc-calcite-list-item{pointer-events:none}/*!@.content*/.content.sc-calcite-list-item{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@.label,\n.description*/.label.sc-calcite-list-item,.description.sc-calcite-list-item{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}/*!@.label:only-child,\n.description:only-child*/.label.sc-calcite-list-item:only-child,.description.sc-calcite-list-item:only-child{margin:0px;padding-block:0.25rem}/*!@.label*/.label.sc-calcite-list-item{color:var(--calcite-ui-text-1)}/*!@.description*/.description.sc-calcite-list-item{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}/*!@.content-start*/.content-start.sc-calcite-list-item{justify-content:flex-start}/*!@.content-end*/.content-end.sc-calcite-list-item{justify-content:flex-end}/*!@.content-start,\n.content-end*/.content-start.sc-calcite-list-item,.content-end.sc-calcite-list-item{flex:1 1 auto}/*!@.has-center-content .content-start,\n.has-center-content .content-end*/.has-center-content.sc-calcite-list-item .content-start.sc-calcite-list-item,.has-center-content.sc-calcite-list-item .content-end.sc-calcite-list-item{flex:0 1 auto}/*!@.actions-start,\n.actions-end,\n.content-start,\n.content-end*/.actions-start.sc-calcite-list-item,.actions-end.sc-calcite-list-item,.content-start.sc-calcite-list-item,.content-end.sc-calcite-list-item{display:flex;align-items:center}/*!@.content-start ::slotted(calcite-icon),\n.content-end ::slotted(calcite-icon)*/.content-start .sc-calcite-list-item-s>calcite-icon,.content-end .sc-calcite-list-item-s>calcite-icon{margin-inline:0.75rem;align-self:center}/*!@.actions-start ::slotted(calcite-action),\n.actions-end ::slotted(calcite-action)*/.actions-start .sc-calcite-list-item-s>calcite-action,.actions-end .sc-calcite-list-item-s>calcite-action{align-self:stretch;color:inherit}/*!@::slotted(calcite-list-item-group),\n::slotted(calcite-list-item)*/.sc-calcite-list-item-s>calcite-list-item-group,.sc-calcite-list-item-s>calcite-list-item{padding-inline-start:0.5rem}";
|
|
24325
|
+
const listItemCss = "@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-list-item:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-list-item{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-list-item{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-list-item{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-list-item{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-list-item{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-list-item:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-list-item:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-list-item-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-list-item-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-list-item-h{display:flex;flex-direction:column;--calcite-list-item-icon-color:var(--calcite-ui-brand);--calcite-list-item-spacing-indent:1rem}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-list-item-h[disabled] .sc-calcite-list-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-list-item-h [calcite-hydrated][disabled].sc-calcite-list-item{opacity:1}/*!@.container*/.container.sc-calcite-list-item{box-sizing:border-box;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family);padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}/*!@.container **/.container.sc-calcite-list-item *.sc-calcite-list-item{box-sizing:border-box}/*!@.container--border-selected*/.container--border-selected.sc-calcite-list-item{border-inline-start:4px solid var(--calcite-ui-brand)}/*!@.container--border-unselected*/.container--border-unselected.sc-calcite-list-item{border-inline-start:4px solid transparent}/*!@.nested-container*/.nested-container.sc-calcite-list-item{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}/*!@.nested-container--hidden*/.nested-container--hidden.sc-calcite-list-item{display:none}/*!@.content-container*/.content-container.sc-calcite-list-item{display:flex;flex:1 1 auto;align-items:stretch;padding:0px;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}/*!@.content-container--selectable*/.content-container--selectable.sc-calcite-list-item{cursor:pointer}/*!@tr,\ntd*/tr.sc-calcite-list-item,td.sc-calcite-list-item{outline-color:transparent}/*!@tr:focus,\ntd:focus*/tr.sc-calcite-list-item:focus,td.sc-calcite-list-item:focus{z-index:300;outline:2px solid var(--calcite-ui-brand)}/*!@.content*/.content.sc-calcite-list-item{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@.label,\n.description*/.label.sc-calcite-list-item,.description.sc-calcite-list-item{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}/*!@.label:only-child,\n.description:only-child*/.label.sc-calcite-list-item:only-child,.description.sc-calcite-list-item:only-child{margin:0px;padding-block:0.25rem}/*!@.label*/.label.sc-calcite-list-item{color:var(--calcite-ui-text-1)}/*!@.description*/.description.sc-calcite-list-item{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}/*!@.content-start*/.content-start.sc-calcite-list-item{justify-content:flex-start}/*!@.content-end*/.content-end.sc-calcite-list-item{justify-content:flex-end}/*!@.content-start,\n.content-end*/.content-start.sc-calcite-list-item,.content-end.sc-calcite-list-item{flex:1 1 auto}/*!@.content-container--has-center-content .content-start,\n.content-container--has-center-content .content-end*/.content-container--has-center-content.sc-calcite-list-item .content-start.sc-calcite-list-item,.content-container--has-center-content.sc-calcite-list-item .content-end.sc-calcite-list-item{flex:0 1 auto}/*!@.selection-container*/.selection-container.sc-calcite-list-item{display:flex;padding-inline:0.75rem;color:var(--calcite-list-item-icon-color)}/*!@.actions-start,\n.actions-end,\n.content-start,\n.content-end,\n.selection-container,\n.open-container*/.actions-start.sc-calcite-list-item,.actions-end.sc-calcite-list-item,.content-start.sc-calcite-list-item,.content-end.sc-calcite-list-item,.selection-container.sc-calcite-list-item,.open-container.sc-calcite-list-item{display:flex;align-items:center}/*!@.open-container,\n.selection-container*/.open-container.sc-calcite-list-item,.selection-container.sc-calcite-list-item{cursor:pointer}/*!@.content-start ::slotted(calcite-icon),\n.content-end ::slotted(calcite-icon)*/.content-start .sc-calcite-list-item-s>calcite-icon,.content-end .sc-calcite-list-item-s>calcite-icon{margin-inline:0.75rem;align-self:center}/*!@.actions-start ::slotted(calcite-action),\n.actions-end ::slotted(calcite-action)*/.actions-start .sc-calcite-list-item-s>calcite-action,.actions-end .sc-calcite-list-item-s>calcite-action{align-self:stretch;color:inherit}/*!@::slotted(calcite-list-item)*/.sc-calcite-list-item-s>calcite-list-item{border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}/*!@[hidden]*/[hidden].sc-calcite-list-item{display:none}";
|
|
24004
24326
|
|
|
24327
|
+
const focusMap = new Map();
|
|
24328
|
+
const listSelector = "calcite-list";
|
|
24005
24329
|
/**
|
|
24006
24330
|
* @slot - A slot for adding `calcite-list-item` and `calcite-list-item-group` elements.
|
|
24007
24331
|
* @slot actions-start - A slot for adding actionable `calcite-action` elements before the content of the component.
|
|
@@ -24012,25 +24336,208 @@ const listItemCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-do
|
|
|
24012
24336
|
class ListItem {
|
|
24013
24337
|
constructor(hostRef) {
|
|
24014
24338
|
registerInstance(this, hostRef);
|
|
24339
|
+
this.calciteListItemSelect = createEvent(this, "calciteListItemSelect", 6);
|
|
24340
|
+
this.calciteInternalListItemSelect = createEvent(this, "calciteInternalListItemSelect", 6);
|
|
24341
|
+
this.calciteInternalFocusPreviousItem = createEvent(this, "calciteInternalFocusPreviousItem", 6);
|
|
24015
24342
|
// --------------------------------------------------------------------------
|
|
24016
24343
|
//
|
|
24017
24344
|
// Properties
|
|
24018
24345
|
//
|
|
24019
24346
|
// --------------------------------------------------------------------------
|
|
24020
24347
|
/**
|
|
24021
|
-
*
|
|
24348
|
+
* Sets the item as focusable. Only one item should be focusable within a list.
|
|
24349
|
+
*
|
|
24350
|
+
* @internal
|
|
24022
24351
|
*/
|
|
24023
|
-
this.
|
|
24352
|
+
this.active = false;
|
|
24024
24353
|
/**
|
|
24025
24354
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
24026
24355
|
*/
|
|
24027
24356
|
this.disabled = false;
|
|
24357
|
+
/**
|
|
24358
|
+
* When `true`, prevents the content of the component from user interaction.
|
|
24359
|
+
*
|
|
24360
|
+
* @deprecated no longer necessary.
|
|
24361
|
+
*/
|
|
24362
|
+
this.nonInteractive = false;
|
|
24363
|
+
/**
|
|
24364
|
+
* When true, item is open to show child components.
|
|
24365
|
+
*/
|
|
24366
|
+
this.open = false;
|
|
24367
|
+
/**
|
|
24368
|
+
* Used to specify the aria-setsize attribute to define the number of items in the current set of list for accessibility.
|
|
24369
|
+
*
|
|
24370
|
+
* @internal
|
|
24371
|
+
*/
|
|
24372
|
+
this.setSize = null;
|
|
24373
|
+
/**
|
|
24374
|
+
* Used to specify the aria-posinset attribute to define the number or position in the current set of list items for accessibility.
|
|
24375
|
+
*
|
|
24376
|
+
* @internal
|
|
24377
|
+
*/
|
|
24378
|
+
this.setPosition = null;
|
|
24379
|
+
/**
|
|
24380
|
+
* When true, the component is selected.
|
|
24381
|
+
*/
|
|
24382
|
+
this.selected = false;
|
|
24383
|
+
/**
|
|
24384
|
+
* specify the selection mode - multiple (allow any number of (or no) selected items), single (allow and require one selected item), none (no selected items), defaults to single
|
|
24385
|
+
*
|
|
24386
|
+
* @internal
|
|
24387
|
+
*/
|
|
24388
|
+
this.selectionMode = null;
|
|
24389
|
+
/**
|
|
24390
|
+
* specify the selection appearance - icon (displays a checkmark or dot), border (displays a border), defaults to icon
|
|
24391
|
+
*
|
|
24392
|
+
* @internal
|
|
24393
|
+
*/
|
|
24394
|
+
this.selectionAppearance = null;
|
|
24395
|
+
this.level = null;
|
|
24396
|
+
this.visualLevel = null;
|
|
24397
|
+
this.openable = false;
|
|
24398
|
+
this.hasActionsStart = false;
|
|
24399
|
+
this.hasActionsEnd = false;
|
|
24400
|
+
this.hasContentStart = false;
|
|
24401
|
+
this.hasContentEnd = false;
|
|
24402
|
+
// --------------------------------------------------------------------------
|
|
24403
|
+
//
|
|
24404
|
+
// Private Methods
|
|
24405
|
+
//
|
|
24406
|
+
// --------------------------------------------------------------------------
|
|
24407
|
+
this.handleActionsStartSlotChange = (event) => {
|
|
24408
|
+
const elements = event.target.assignedElements({
|
|
24409
|
+
flatten: true
|
|
24410
|
+
});
|
|
24411
|
+
this.hasActionsStart = !!elements.length;
|
|
24412
|
+
};
|
|
24413
|
+
this.handleActionsEndSlotChange = (event) => {
|
|
24414
|
+
const elements = event.target.assignedElements({
|
|
24415
|
+
flatten: true
|
|
24416
|
+
});
|
|
24417
|
+
this.hasActionsEnd = !!elements.length;
|
|
24418
|
+
};
|
|
24419
|
+
this.handleContentStartSlotChange = (event) => {
|
|
24420
|
+
const elements = event.target.assignedElements({
|
|
24421
|
+
flatten: true
|
|
24422
|
+
});
|
|
24423
|
+
this.hasContentStart = !!elements.length;
|
|
24424
|
+
};
|
|
24425
|
+
this.handleContentEndSlotChange = (event) => {
|
|
24426
|
+
const elements = event.target.assignedElements({
|
|
24427
|
+
flatten: true
|
|
24428
|
+
});
|
|
24429
|
+
this.hasContentEnd = !!elements.length;
|
|
24430
|
+
};
|
|
24431
|
+
this.handleDefaultSlotChange = (event) => {
|
|
24432
|
+
const { parentListEl } = this;
|
|
24433
|
+
const listItemChildren = getListItemChildren(event);
|
|
24434
|
+
updateListItemChildren(listItemChildren);
|
|
24435
|
+
const openable = !!listItemChildren.length;
|
|
24436
|
+
if (openable && parentListEl && !parentListEl.openable) {
|
|
24437
|
+
parentListEl.openable = true;
|
|
24438
|
+
}
|
|
24439
|
+
this.openable = openable;
|
|
24440
|
+
if (!openable) {
|
|
24441
|
+
this.open = false;
|
|
24442
|
+
}
|
|
24443
|
+
};
|
|
24444
|
+
this.toggleOpen = () => {
|
|
24445
|
+
this.open = !this.open;
|
|
24446
|
+
};
|
|
24447
|
+
this.toggleSelected = () => {
|
|
24448
|
+
if (this.disabled) {
|
|
24449
|
+
return;
|
|
24450
|
+
}
|
|
24451
|
+
if (this.selectionMode !== "none") {
|
|
24452
|
+
this.selected = !this.selected;
|
|
24453
|
+
}
|
|
24454
|
+
this.calciteListItemSelect.emit();
|
|
24455
|
+
};
|
|
24456
|
+
this.handleItemKeyDown = (event) => {
|
|
24457
|
+
const { key } = event;
|
|
24458
|
+
const composedPath = event.composedPath();
|
|
24459
|
+
const { containerEl, contentEl, actionsStartEl, actionsEndEl, open, openable } = this;
|
|
24460
|
+
const cells = [actionsStartEl, contentEl, actionsEndEl].filter(Boolean);
|
|
24461
|
+
const currentIndex = cells.findIndex((cell) => composedPath.includes(cell));
|
|
24462
|
+
if (key === " ") {
|
|
24463
|
+
event.preventDefault();
|
|
24464
|
+
this.toggleSelected();
|
|
24465
|
+
}
|
|
24466
|
+
else if (key === "ArrowRight") {
|
|
24467
|
+
event.preventDefault();
|
|
24468
|
+
const nextIndex = currentIndex + 1;
|
|
24469
|
+
if (currentIndex === -1) {
|
|
24470
|
+
if (!open && openable) {
|
|
24471
|
+
this.open = true;
|
|
24472
|
+
this.focusCell(null);
|
|
24473
|
+
}
|
|
24474
|
+
else if (cells[0]) {
|
|
24475
|
+
this.focusCell(cells[0]);
|
|
24476
|
+
}
|
|
24477
|
+
}
|
|
24478
|
+
else if (cells[currentIndex] && cells[nextIndex]) {
|
|
24479
|
+
this.focusCell(cells[nextIndex]);
|
|
24480
|
+
}
|
|
24481
|
+
}
|
|
24482
|
+
else if (key === "ArrowLeft") {
|
|
24483
|
+
event.preventDefault();
|
|
24484
|
+
const prevIndex = currentIndex - 1;
|
|
24485
|
+
if (currentIndex === -1) {
|
|
24486
|
+
this.focusCell(null);
|
|
24487
|
+
if (open && openable) {
|
|
24488
|
+
this.open = false;
|
|
24489
|
+
}
|
|
24490
|
+
else {
|
|
24491
|
+
this.calciteInternalFocusPreviousItem.emit();
|
|
24492
|
+
}
|
|
24493
|
+
}
|
|
24494
|
+
else if (currentIndex === 0) {
|
|
24495
|
+
this.focusCell(null);
|
|
24496
|
+
containerEl.focus();
|
|
24497
|
+
}
|
|
24498
|
+
else if (cells[currentIndex] && cells[prevIndex]) {
|
|
24499
|
+
this.focusCell(cells[prevIndex]);
|
|
24500
|
+
}
|
|
24501
|
+
}
|
|
24502
|
+
};
|
|
24503
|
+
this.focusCellNull = () => {
|
|
24504
|
+
this.focusCell(null);
|
|
24505
|
+
};
|
|
24506
|
+
this.focusCell = (focusEl, saveFocusIndex = true) => {
|
|
24507
|
+
const { contentEl, actionsStartEl, actionsEndEl, parentListEl } = this;
|
|
24508
|
+
if (saveFocusIndex) {
|
|
24509
|
+
focusMap.set(parentListEl, null);
|
|
24510
|
+
}
|
|
24511
|
+
[actionsStartEl, contentEl, actionsEndEl].filter(Boolean).forEach((tableCell, cellIndex) => {
|
|
24512
|
+
const tabIndexAttr = "tabindex";
|
|
24513
|
+
if (tableCell === focusEl) {
|
|
24514
|
+
tableCell.setAttribute(tabIndexAttr, "0");
|
|
24515
|
+
saveFocusIndex && focusMap.set(parentListEl, cellIndex);
|
|
24516
|
+
}
|
|
24517
|
+
else {
|
|
24518
|
+
tableCell.removeAttribute(tabIndexAttr);
|
|
24519
|
+
}
|
|
24520
|
+
});
|
|
24521
|
+
focusEl === null || focusEl === void 0 ? void 0 : focusEl.focus();
|
|
24522
|
+
};
|
|
24523
|
+
}
|
|
24524
|
+
activeHandler(active) {
|
|
24525
|
+
if (!active) {
|
|
24526
|
+
this.focusCell(null, false);
|
|
24527
|
+
}
|
|
24528
|
+
}
|
|
24529
|
+
handleSelectedChange(value) {
|
|
24530
|
+
if (value) {
|
|
24531
|
+
this.calciteInternalListItemSelect.emit();
|
|
24532
|
+
}
|
|
24533
|
+
}
|
|
24534
|
+
connectedCallback() {
|
|
24535
|
+
const { el } = this;
|
|
24536
|
+
this.parentListEl = el.closest(listSelector);
|
|
24537
|
+
this.level = getDepth() + 1;
|
|
24538
|
+
this.visualLevel = getDepth(el, true);
|
|
24539
|
+
this.setSelectionDefaults();
|
|
24028
24540
|
}
|
|
24029
|
-
//--------------------------------------------------------------------------
|
|
24030
|
-
//
|
|
24031
|
-
// Lifecycle
|
|
24032
|
-
//
|
|
24033
|
-
//--------------------------------------------------------------------------
|
|
24034
24541
|
componentWillLoad() {
|
|
24035
24542
|
setUpLoadableComponent(this);
|
|
24036
24543
|
}
|
|
@@ -24038,13 +24545,7 @@ class ListItem {
|
|
|
24038
24545
|
setComponentLoaded(this);
|
|
24039
24546
|
}
|
|
24040
24547
|
componentDidRender() {
|
|
24041
|
-
updateHostInteraction(this);
|
|
24042
|
-
}
|
|
24043
|
-
connectedCallback() {
|
|
24044
|
-
connectConditionalSlotComponent(this);
|
|
24045
|
-
}
|
|
24046
|
-
disconnectedCallback() {
|
|
24047
|
-
disconnectConditionalSlotComponent(this);
|
|
24548
|
+
updateHostInteraction(this, "managed");
|
|
24048
24549
|
}
|
|
24049
24550
|
// --------------------------------------------------------------------------
|
|
24050
24551
|
//
|
|
@@ -24053,72 +24554,143 @@ class ListItem {
|
|
|
24053
24554
|
// --------------------------------------------------------------------------
|
|
24054
24555
|
/** Sets focus on the component. */
|
|
24055
24556
|
async setFocus() {
|
|
24056
|
-
var _a;
|
|
24057
24557
|
await componentLoaded(this);
|
|
24058
|
-
|
|
24558
|
+
const { containerEl, contentEl, actionsStartEl, actionsEndEl, parentListEl } = this;
|
|
24559
|
+
const focusIndex = focusMap.get(parentListEl);
|
|
24560
|
+
if (typeof focusIndex === "number") {
|
|
24561
|
+
const cells = [actionsStartEl, contentEl, actionsEndEl].filter(Boolean);
|
|
24562
|
+
if (cells[focusIndex]) {
|
|
24563
|
+
this.focusCell(cells[focusIndex]);
|
|
24564
|
+
}
|
|
24565
|
+
else {
|
|
24566
|
+
containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
|
|
24567
|
+
}
|
|
24568
|
+
return;
|
|
24569
|
+
}
|
|
24570
|
+
containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
|
|
24059
24571
|
}
|
|
24060
24572
|
// --------------------------------------------------------------------------
|
|
24061
24573
|
//
|
|
24062
24574
|
// Render Methods
|
|
24063
24575
|
//
|
|
24064
24576
|
// --------------------------------------------------------------------------
|
|
24577
|
+
renderSelected() {
|
|
24578
|
+
const { selected, selectionMode, selectionAppearance } = this;
|
|
24579
|
+
if (selectionMode === "none" || selectionAppearance === "border") {
|
|
24580
|
+
return null;
|
|
24581
|
+
}
|
|
24582
|
+
return (hAsync("td", { class: CSS$p.selectionContainer, key: "selection-container", onClick: this.toggleSelected }, hAsync("calcite-icon", { icon: selected
|
|
24583
|
+
? selectionMode === "multiple"
|
|
24584
|
+
? ICONS$6.selectedMultiple
|
|
24585
|
+
: ICONS$6.selectedSingle
|
|
24586
|
+
: ICONS$6.unselected, scale: "s" })));
|
|
24587
|
+
}
|
|
24588
|
+
renderOpen() {
|
|
24589
|
+
const { el, open, openable, parentListEl } = this;
|
|
24590
|
+
const dir = getElementDir(el);
|
|
24591
|
+
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 === null || parentListEl === void 0 ? void 0 : parentListEl.openable) ? (hAsync("td", { class: CSS$p.openContainer, key: "open-container", onClick: this.toggleSelected }, hAsync("calcite-icon", { icon: ICONS$6.blank, scale: "s" }))) : null;
|
|
24592
|
+
}
|
|
24065
24593
|
renderActionsStart() {
|
|
24066
|
-
const {
|
|
24067
|
-
return
|
|
24594
|
+
const { label, hasActionsStart } = this;
|
|
24595
|
+
return (hAsync("td", { "aria-label": label, class: CSS$p.actionsStart, hidden: !hasActionsStart, key: "actions-start-container", ref: (el) => (this.actionsStartEl = el), role: "gridcell" }, hAsync("slot", { name: SLOTS$e.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
24068
24596
|
}
|
|
24069
24597
|
renderActionsEnd() {
|
|
24070
|
-
const {
|
|
24071
|
-
return
|
|
24598
|
+
const { label, hasActionsEnd } = this;
|
|
24599
|
+
return (hAsync("td", { "aria-label": label, class: CSS$p.actionsEnd, hidden: !hasActionsEnd, key: "actions-end-container", ref: (el) => (this.actionsEndEl = el), role: "gridcell" }, hAsync("slot", { name: SLOTS$e.actionsEnd, onSlotchange: this.handleActionsEndSlotChange })));
|
|
24072
24600
|
}
|
|
24073
24601
|
renderContentStart() {
|
|
24074
|
-
const {
|
|
24075
|
-
return
|
|
24602
|
+
const { hasContentStart } = this;
|
|
24603
|
+
return (hAsync("div", { class: CSS$p.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$e.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
24076
24604
|
}
|
|
24077
24605
|
renderContentEnd() {
|
|
24078
|
-
const {
|
|
24079
|
-
return
|
|
24606
|
+
const { hasContentEnd } = this;
|
|
24607
|
+
return (hAsync("div", { class: CSS$p.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$e.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
24080
24608
|
}
|
|
24081
24609
|
renderContent() {
|
|
24082
24610
|
const { label, description } = this;
|
|
24083
|
-
return !!label || !!description ? (hAsync("div", { class: CSS$p.content }, label ? hAsync("div", { class: CSS$p.label }, label) : null, description ? hAsync("div", { class: CSS$p.description }, description) : null)) : null;
|
|
24611
|
+
return !!label || !!description ? (hAsync("div", { class: CSS$p.content, key: "content" }, label ? (hAsync("div", { class: CSS$p.label, key: "label" }, label)) : null, description ? (hAsync("div", { class: CSS$p.description, key: "description" }, description)) : null)) : null;
|
|
24084
24612
|
}
|
|
24085
24613
|
renderContentContainer() {
|
|
24086
|
-
const { description,
|
|
24614
|
+
const { description, label, selectionMode } = this;
|
|
24087
24615
|
const hasCenterContent = !!label || !!description;
|
|
24088
24616
|
const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
|
|
24089
|
-
return
|
|
24617
|
+
return (hAsync("td", { "aria-label": label, class: {
|
|
24090
24618
|
[CSS$p.contentContainer]: true,
|
|
24091
|
-
[CSS$p.
|
|
24092
|
-
[CSS$p.
|
|
24093
|
-
},
|
|
24619
|
+
[CSS$p.contentContainerSelectable]: selectionMode !== "none",
|
|
24620
|
+
[CSS$p.contentContainerHasCenterContent]: hasCenterContent
|
|
24621
|
+
}, key: "content-container", onClick: this.toggleSelected, ref: (el) => (this.contentEl = el), role: "gridcell" }, content));
|
|
24094
24622
|
}
|
|
24095
24623
|
render() {
|
|
24096
|
-
|
|
24624
|
+
const { openable, open, level, setPosition, setSize, active, label, selected, selectionAppearance, selectionMode } = this;
|
|
24625
|
+
const showBorder = selectionMode !== "none" && selectionAppearance === "border";
|
|
24626
|
+
const borderSelected = showBorder && selected;
|
|
24627
|
+
const borderUnselected = showBorder && !selected;
|
|
24628
|
+
return (hAsync(Host, null, hAsync("tr", { "aria-expanded": openable ? toAriaBoolean(open) : null, "aria-label": label, "aria-level": level, "aria-posinset": setPosition, "aria-selected": toAriaBoolean(selected), "aria-setsize": setSize, class: {
|
|
24629
|
+
[CSS$p.container]: true,
|
|
24630
|
+
[CSS$p.containerBorderSelected]: borderSelected,
|
|
24631
|
+
[CSS$p.containerBorderUnselected]: borderUnselected
|
|
24632
|
+
}, onFocus: this.focusCellNull, onKeyDown: this.handleItemKeyDown, ref: (el) => (this.containerEl = el), role: "row", style: { "--calcite-list-item-spacing-indent-multiplier": `${this.visualLevel}` }, tabIndex: active ? 0 : -1 }, this.renderSelected(), this.renderOpen(), this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), hAsync("div", { class: {
|
|
24633
|
+
[CSS$p.nestedContainer]: true,
|
|
24634
|
+
[CSS$p.nestedContainerHidden]: openable && !open
|
|
24635
|
+
} }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
24636
|
+
}
|
|
24637
|
+
setSelectionDefaults() {
|
|
24638
|
+
const { parentListEl, selectionMode, selectionAppearance } = this;
|
|
24639
|
+
if (!parentListEl) {
|
|
24640
|
+
return;
|
|
24641
|
+
}
|
|
24642
|
+
if (!selectionMode) {
|
|
24643
|
+
this.selectionMode = parentListEl.selectionMode;
|
|
24644
|
+
}
|
|
24645
|
+
if (!selectionAppearance) {
|
|
24646
|
+
this.selectionAppearance = parentListEl.selectionAppearance;
|
|
24647
|
+
}
|
|
24097
24648
|
}
|
|
24098
24649
|
get el() { return getElement(this); }
|
|
24650
|
+
static get watchers() { return {
|
|
24651
|
+
"active": ["activeHandler"],
|
|
24652
|
+
"selected": ["handleSelectedChange"]
|
|
24653
|
+
}; }
|
|
24099
24654
|
static get style() { return listItemCss; }
|
|
24100
24655
|
static get cmpMeta() { return {
|
|
24101
24656
|
"$flags$": 9,
|
|
24102
24657
|
"$tagName$": "calcite-list-item",
|
|
24103
24658
|
"$members$": {
|
|
24104
|
-
"
|
|
24659
|
+
"active": [4],
|
|
24105
24660
|
"description": [1],
|
|
24106
24661
|
"disabled": [516],
|
|
24107
24662
|
"label": [1],
|
|
24663
|
+
"metadata": [16],
|
|
24664
|
+
"nonInteractive": [516, "non-interactive"],
|
|
24665
|
+
"open": [1540],
|
|
24666
|
+
"setSize": [2, "set-size"],
|
|
24667
|
+
"setPosition": [2, "set-position"],
|
|
24668
|
+
"selected": [1540],
|
|
24669
|
+
"value": [8],
|
|
24670
|
+
"selectionMode": [1025, "selection-mode"],
|
|
24671
|
+
"selectionAppearance": [1025, "selection-appearance"],
|
|
24672
|
+
"level": [32],
|
|
24673
|
+
"visualLevel": [32],
|
|
24674
|
+
"parentListEl": [32],
|
|
24675
|
+
"openable": [32],
|
|
24676
|
+
"hasActionsStart": [32],
|
|
24677
|
+
"hasActionsEnd": [32],
|
|
24678
|
+
"hasContentStart": [32],
|
|
24679
|
+
"hasContentEnd": [32],
|
|
24108
24680
|
"setFocus": [64]
|
|
24109
24681
|
},
|
|
24110
24682
|
"$listeners$": undefined,
|
|
24111
24683
|
"$lazyBundleId$": "-",
|
|
24112
|
-
"$attrsToReflect$": [["nonInteractive", "non-interactive"], ["
|
|
24684
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["nonInteractive", "non-interactive"], ["open", "open"], ["selected", "selected"]]
|
|
24113
24685
|
}; }
|
|
24114
24686
|
}
|
|
24115
24687
|
|
|
24116
24688
|
const CSS$o = {
|
|
24117
|
-
|
|
24118
|
-
|
|
24689
|
+
container: "container",
|
|
24690
|
+
heading: "heading"
|
|
24119
24691
|
};
|
|
24120
24692
|
|
|
24121
|
-
const listItemGroupCss = "@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-list-item-group: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-list-item-group{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-list-item-group{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-list-item-group{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-list-item-group{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-list-item-group{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-list-item-group:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-list-item-group:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-list-item-group-h{display:none}/*!@:host*/.sc-calcite-list-item-group-h{display:flex;flex-direction:column}/*!@.
|
|
24693
|
+
const listItemGroupCss = "@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-list-item-group: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-list-item-group{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-list-item-group{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-list-item-group{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-list-item-group{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-list-item-group{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-list-item-group:root{--calcite-internal-duration-factor:0.01}}/*!@:root*/.sc-calcite-list-item-group:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}/*!@:host([hidden])*/[hidden].sc-calcite-list-item-group-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-list-item-group-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-list-item-group-h{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);--calcite-list-item-spacing-indent:1rem}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-list-item-group-h[disabled] .sc-calcite-list-item-group-s>[calcite-hydrated][disabled],[disabled].sc-calcite-list-item-group-h [calcite-hydrated][disabled].sc-calcite-list-item-group{opacity:1}/*!@.container*/.container.sc-calcite-list-item-group{margin:0px;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-2);padding:0.75rem;font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}/*!@.heading*/.heading.sc-calcite-list-item-group{padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}/*!@::slotted(calcite-list-item)*/.sc-calcite-list-item-group-s>calcite-list-item{margin-block-end:1px;--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}/*!@::slotted(calcite-list-item:last-child)*/.sc-calcite-list-item-group-s>calcite-list-item:last-child{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";
|
|
24122
24694
|
|
|
24123
24695
|
/**
|
|
24124
24696
|
* @slot - A slot for adding `calcite-list-item` and `calcite-list-item-group` elements.
|
|
@@ -24126,6 +24698,28 @@ const listItemGroupCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes
|
|
|
24126
24698
|
class ListItemGroup {
|
|
24127
24699
|
constructor(hostRef) {
|
|
24128
24700
|
registerInstance(this, hostRef);
|
|
24701
|
+
// --------------------------------------------------------------------------
|
|
24702
|
+
//
|
|
24703
|
+
// Properties
|
|
24704
|
+
//
|
|
24705
|
+
// --------------------------------------------------------------------------
|
|
24706
|
+
/**
|
|
24707
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
|
24708
|
+
*/
|
|
24709
|
+
this.disabled = false;
|
|
24710
|
+
this.visualLevel = null;
|
|
24711
|
+
}
|
|
24712
|
+
// --------------------------------------------------------------------------
|
|
24713
|
+
//
|
|
24714
|
+
// Lifecycle
|
|
24715
|
+
//
|
|
24716
|
+
// --------------------------------------------------------------------------
|
|
24717
|
+
connectedCallback() {
|
|
24718
|
+
const { el } = this;
|
|
24719
|
+
this.visualLevel = getDepth(el, true);
|
|
24720
|
+
}
|
|
24721
|
+
componentDidRender() {
|
|
24722
|
+
updateHostInteraction(this);
|
|
24129
24723
|
}
|
|
24130
24724
|
// --------------------------------------------------------------------------
|
|
24131
24725
|
//
|
|
@@ -24133,12 +24727,8 @@ class ListItemGroup {
|
|
|
24133
24727
|
//
|
|
24134
24728
|
// --------------------------------------------------------------------------
|
|
24135
24729
|
render() {
|
|
24136
|
-
|
|
24137
|
-
|
|
24138
|
-
const parentLevel = (_a = el.closest("calcite-list, calcite-list-item-group")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
24139
|
-
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
24140
|
-
const level = headingLevel || relativeLevel;
|
|
24141
|
-
return (hAsync(Host, null, heading ? (hAsync(Heading, { class: CSS$o.heading, level: level }, heading)) : null, hAsync("div", { class: CSS$o.container, role: "group" }, hAsync("slot", null))));
|
|
24730
|
+
const { heading, visualLevel } = this;
|
|
24731
|
+
return (hAsync(Host, null, hAsync("tr", { class: CSS$o.container, style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` } }, hAsync("td", { class: CSS$o.heading, colSpan: MAX_COLUMNS }, heading)), hAsync("slot", null)));
|
|
24142
24732
|
}
|
|
24143
24733
|
get el() { return getElement(this); }
|
|
24144
24734
|
static get style() { return listItemGroupCss; }
|
|
@@ -24146,12 +24736,14 @@ class ListItemGroup {
|
|
|
24146
24736
|
"$flags$": 9,
|
|
24147
24737
|
"$tagName$": "calcite-list-item-group",
|
|
24148
24738
|
"$members$": {
|
|
24739
|
+
"disabled": [516],
|
|
24149
24740
|
"heading": [513],
|
|
24150
|
-
"headingLevel": [514, "heading-level"]
|
|
24741
|
+
"headingLevel": [514, "heading-level"],
|
|
24742
|
+
"visualLevel": [32]
|
|
24151
24743
|
},
|
|
24152
24744
|
"$listeners$": undefined,
|
|
24153
24745
|
"$lazyBundleId$": "-",
|
|
24154
|
-
"$attrsToReflect$": [["heading", "heading"], ["headingLevel", "heading-level"]]
|
|
24746
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["heading", "heading"], ["headingLevel", "heading-level"]]
|
|
24155
24747
|
}; }
|
|
24156
24748
|
}
|
|
24157
24749
|
|
|
@@ -26676,7 +27268,7 @@ class Panel {
|
|
|
26676
27268
|
const rtl = getElementDir(el) === "rtl";
|
|
26677
27269
|
const { showBackButton, intlBack, backButtonClick } = this;
|
|
26678
27270
|
const label = intlBack || TEXT$f.back;
|
|
26679
|
-
const icon = rtl ? ICONS$
|
|
27271
|
+
const icon = rtl ? ICONS$8.backRight : ICONS$8.backLeft;
|
|
26680
27272
|
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$z.backButton, icon: icon, key: "back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: SLOTS$i.headerActionsStart, text: label })) : null;
|
|
26681
27273
|
}
|
|
26682
27274
|
renderHeaderContent() {
|
|
@@ -26698,14 +27290,14 @@ class Panel {
|
|
|
26698
27290
|
renderHeaderActionsEnd() {
|
|
26699
27291
|
const { close, hasEndActions, intlClose, closable } = this;
|
|
26700
27292
|
const text = intlClose || TEXT$f.close;
|
|
26701
|
-
const closableNode = closable ? (hAsync("calcite-action", { "aria-label": text, icon: ICONS$
|
|
27293
|
+
const closableNode = closable ? (hAsync("calcite-action", { "aria-label": text, icon: ICONS$8.close, onClick: close, ref: this.setCloseRef, text: text })) : null;
|
|
26702
27294
|
const slotNode = (hAsync("slot", { name: SLOTS$i.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
|
|
26703
27295
|
const showContainer = hasEndActions || closableNode;
|
|
26704
27296
|
return (hAsync("div", { class: { [CSS$z.headerActionsEnd]: true, [CSS$z.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, closableNode));
|
|
26705
27297
|
}
|
|
26706
27298
|
renderMenu() {
|
|
26707
27299
|
const { hasMenuItems, intlOptions, menuOpen } = this;
|
|
26708
|
-
return (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], hidden: !hasMenuItems, key: "menu", label: intlOptions || TEXT$f.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$
|
|
27300
|
+
return (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], hidden: !hasMenuItems, key: "menu", label: intlOptions || TEXT$f.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$8.menu, slot: SLOTS$s.trigger, text: intlOptions || TEXT$f.options }), hAsync("slot", { name: SLOTS$i.headerMenuActions, onSlotchange: this.handleHeaderMenuActionsSlotChange })));
|
|
26709
27301
|
}
|
|
26710
27302
|
renderHeaderNode() {
|
|
26711
27303
|
const { showBackButton, hasHeaderContent, hasStartActions, hasEndActions, closable, hasMenuItems } = this;
|