@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
|
@@ -1,61 +1,226 @@
|
|
|
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
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client/index.js';
|
|
7
|
-
import {
|
|
8
|
-
import { c as
|
|
6
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client/index.js';
|
|
7
|
+
import { g as getListItemChildren, u as updateListItemChildren, a as getDepth, C as CSS, I as ICONS, S as SLOTS } from './resources.js';
|
|
8
|
+
import { c as getElementDir, t as toAriaBoolean } from './dom.js';
|
|
9
9
|
import { u as updateHostInteraction } from './interactive.js';
|
|
10
10
|
import { s as setUpLoadableComponent, a as setComponentLoaded, c as componentLoaded } from './loadable.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './icon.js';
|
|
11
12
|
|
|
12
|
-
const
|
|
13
|
-
container: "container",
|
|
14
|
-
contentContainer: "content-container",
|
|
15
|
-
nestedContainer: "nested-container",
|
|
16
|
-
contentContainerButton: "content-container--button",
|
|
17
|
-
content: "content",
|
|
18
|
-
actionsStart: "actions-start",
|
|
19
|
-
contentStart: "content-start",
|
|
20
|
-
label: "label",
|
|
21
|
-
description: "description",
|
|
22
|
-
contentEnd: "content-end",
|
|
23
|
-
actionsEnd: "actions-end",
|
|
24
|
-
hasCenterContent: "has-center-content"
|
|
25
|
-
};
|
|
26
|
-
const SLOTS = {
|
|
27
|
-
actionsStart: "actions-start",
|
|
28
|
-
contentStart: "content-start",
|
|
29
|
-
contentEnd: "content-end",
|
|
30
|
-
actionsEnd: "actions-end"
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
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{--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{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;flex-direction:column}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{box-sizing:border-box;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family)}.container *{box-sizing:border-box}.nested-container{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.content-container{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{cursor:pointer;border-style:none;background-color:var(--calcite-ui-foreground-1);outline-color:transparent;text-align:initial}.content-container--button:hover{background-color:var(--calcite-ui-foreground-2)}.content-container--button:hover .label,.content-container--button:hover .description{color:var(--calcite-ui-text-1)}.content-container--button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.content-container--button .content-start,.content-container--button .content-end{pointer-events:none}.content{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,.description{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,.description:only-child{margin:0px;padding-block:0.25rem}.label{color:var(--calcite-ui-text-1)}.description{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:1 1 auto}.has-center-content .content-start,.has-center-content .content-end{flex:0 1 auto}.actions-start,.actions-end,.content-start,.content-end{display:flex;align-items:center}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){margin-inline:0.75rem;align-self:center}.actions-start ::slotted(calcite-action),.actions-end ::slotted(calcite-action){align-self:stretch;color:inherit}::slotted(calcite-list-item-group),::slotted(calcite-list-item){padding-inline-start:0.5rem}";
|
|
13
|
+
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{--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{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{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]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{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 *{box-sizing:border-box}.container--border-selected{border-inline-start:4px solid var(--calcite-ui-brand)}.container--border-unselected{border-inline-start:4px solid transparent}.nested-container{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.nested-container--hidden{display:none}.content-container{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{cursor:pointer}tr,td{outline-color:transparent}tr:focus,td:focus{z-index:300;outline:2px solid var(--calcite-ui-brand)}.content{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,.description{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,.description:only-child{margin:0px;padding-block:0.25rem}.label{color:var(--calcite-ui-text-1)}.description{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:1 1 auto}.content-container--has-center-content .content-start,.content-container--has-center-content .content-end{flex:0 1 auto}.selection-container{display:flex;padding-inline:0.75rem;color:var(--calcite-list-item-icon-color)}.actions-start,.actions-end,.content-start,.content-end,.selection-container,.open-container{display:flex;align-items:center}.open-container,.selection-container{cursor:pointer}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){margin-inline:0.75rem;align-self:center}.actions-start ::slotted(calcite-action),.actions-end ::slotted(calcite-action){align-self:stretch;color:inherit}::slotted(calcite-list-item){border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}[hidden]{display:none}";
|
|
34
14
|
|
|
15
|
+
const focusMap = new Map();
|
|
16
|
+
const listSelector = "calcite-list";
|
|
35
17
|
const ListItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
36
18
|
constructor() {
|
|
37
19
|
super();
|
|
38
20
|
this.__registerHost();
|
|
39
21
|
this.__attachShadow();
|
|
22
|
+
this.calciteListItemSelect = createEvent(this, "calciteListItemSelect", 6);
|
|
23
|
+
this.calciteInternalListItemSelect = createEvent(this, "calciteInternalListItemSelect", 6);
|
|
24
|
+
this.calciteInternalFocusPreviousItem = createEvent(this, "calciteInternalFocusPreviousItem", 6);
|
|
40
25
|
// --------------------------------------------------------------------------
|
|
41
26
|
//
|
|
42
27
|
// Properties
|
|
43
28
|
//
|
|
44
29
|
// --------------------------------------------------------------------------
|
|
45
30
|
/**
|
|
46
|
-
*
|
|
31
|
+
* Sets the item as focusable. Only one item should be focusable within a list.
|
|
32
|
+
*
|
|
33
|
+
* @internal
|
|
47
34
|
*/
|
|
48
|
-
this.
|
|
35
|
+
this.active = false;
|
|
49
36
|
/**
|
|
50
37
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
51
38
|
*/
|
|
52
39
|
this.disabled = false;
|
|
40
|
+
/**
|
|
41
|
+
* When `true`, prevents the content of the component from user interaction.
|
|
42
|
+
*
|
|
43
|
+
* @deprecated no longer necessary.
|
|
44
|
+
*/
|
|
45
|
+
this.nonInteractive = false;
|
|
46
|
+
/**
|
|
47
|
+
* When true, item is open to show child components.
|
|
48
|
+
*/
|
|
49
|
+
this.open = false;
|
|
50
|
+
/**
|
|
51
|
+
* Used to specify the aria-setsize attribute to define the number of items in the current set of list for accessibility.
|
|
52
|
+
*
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
this.setSize = null;
|
|
56
|
+
/**
|
|
57
|
+
* Used to specify the aria-posinset attribute to define the number or position in the current set of list items for accessibility.
|
|
58
|
+
*
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
this.setPosition = null;
|
|
62
|
+
/**
|
|
63
|
+
* When true, the component is selected.
|
|
64
|
+
*/
|
|
65
|
+
this.selected = false;
|
|
66
|
+
/**
|
|
67
|
+
* 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
|
|
68
|
+
*
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
this.selectionMode = null;
|
|
72
|
+
/**
|
|
73
|
+
* specify the selection appearance - icon (displays a checkmark or dot), border (displays a border), defaults to icon
|
|
74
|
+
*
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
this.selectionAppearance = null;
|
|
78
|
+
this.level = null;
|
|
79
|
+
this.visualLevel = null;
|
|
80
|
+
this.openable = false;
|
|
81
|
+
this.hasActionsStart = false;
|
|
82
|
+
this.hasActionsEnd = false;
|
|
83
|
+
this.hasContentStart = false;
|
|
84
|
+
this.hasContentEnd = false;
|
|
85
|
+
// --------------------------------------------------------------------------
|
|
86
|
+
//
|
|
87
|
+
// Private Methods
|
|
88
|
+
//
|
|
89
|
+
// --------------------------------------------------------------------------
|
|
90
|
+
this.handleActionsStartSlotChange = (event) => {
|
|
91
|
+
const elements = event.target.assignedElements({
|
|
92
|
+
flatten: true
|
|
93
|
+
});
|
|
94
|
+
this.hasActionsStart = !!elements.length;
|
|
95
|
+
};
|
|
96
|
+
this.handleActionsEndSlotChange = (event) => {
|
|
97
|
+
const elements = event.target.assignedElements({
|
|
98
|
+
flatten: true
|
|
99
|
+
});
|
|
100
|
+
this.hasActionsEnd = !!elements.length;
|
|
101
|
+
};
|
|
102
|
+
this.handleContentStartSlotChange = (event) => {
|
|
103
|
+
const elements = event.target.assignedElements({
|
|
104
|
+
flatten: true
|
|
105
|
+
});
|
|
106
|
+
this.hasContentStart = !!elements.length;
|
|
107
|
+
};
|
|
108
|
+
this.handleContentEndSlotChange = (event) => {
|
|
109
|
+
const elements = event.target.assignedElements({
|
|
110
|
+
flatten: true
|
|
111
|
+
});
|
|
112
|
+
this.hasContentEnd = !!elements.length;
|
|
113
|
+
};
|
|
114
|
+
this.handleDefaultSlotChange = (event) => {
|
|
115
|
+
const { parentListEl } = this;
|
|
116
|
+
const listItemChildren = getListItemChildren(event);
|
|
117
|
+
updateListItemChildren(listItemChildren);
|
|
118
|
+
const openable = !!listItemChildren.length;
|
|
119
|
+
if (openable && parentListEl && !parentListEl.openable) {
|
|
120
|
+
parentListEl.openable = true;
|
|
121
|
+
}
|
|
122
|
+
this.openable = openable;
|
|
123
|
+
if (!openable) {
|
|
124
|
+
this.open = false;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
this.toggleOpen = () => {
|
|
128
|
+
this.open = !this.open;
|
|
129
|
+
};
|
|
130
|
+
this.toggleSelected = () => {
|
|
131
|
+
if (this.disabled) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
if (this.selectionMode !== "none") {
|
|
135
|
+
this.selected = !this.selected;
|
|
136
|
+
}
|
|
137
|
+
this.calciteListItemSelect.emit();
|
|
138
|
+
};
|
|
139
|
+
this.handleItemKeyDown = (event) => {
|
|
140
|
+
const { key } = event;
|
|
141
|
+
const composedPath = event.composedPath();
|
|
142
|
+
const { containerEl, contentEl, actionsStartEl, actionsEndEl, open, openable } = this;
|
|
143
|
+
const cells = [actionsStartEl, contentEl, actionsEndEl].filter(Boolean);
|
|
144
|
+
const currentIndex = cells.findIndex((cell) => composedPath.includes(cell));
|
|
145
|
+
if (key === " ") {
|
|
146
|
+
event.preventDefault();
|
|
147
|
+
this.toggleSelected();
|
|
148
|
+
}
|
|
149
|
+
else if (key === "ArrowRight") {
|
|
150
|
+
event.preventDefault();
|
|
151
|
+
const nextIndex = currentIndex + 1;
|
|
152
|
+
if (currentIndex === -1) {
|
|
153
|
+
if (!open && openable) {
|
|
154
|
+
this.open = true;
|
|
155
|
+
this.focusCell(null);
|
|
156
|
+
}
|
|
157
|
+
else if (cells[0]) {
|
|
158
|
+
this.focusCell(cells[0]);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
else if (cells[currentIndex] && cells[nextIndex]) {
|
|
162
|
+
this.focusCell(cells[nextIndex]);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
else if (key === "ArrowLeft") {
|
|
166
|
+
event.preventDefault();
|
|
167
|
+
const prevIndex = currentIndex - 1;
|
|
168
|
+
if (currentIndex === -1) {
|
|
169
|
+
this.focusCell(null);
|
|
170
|
+
if (open && openable) {
|
|
171
|
+
this.open = false;
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
this.calciteInternalFocusPreviousItem.emit();
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
else if (currentIndex === 0) {
|
|
178
|
+
this.focusCell(null);
|
|
179
|
+
containerEl.focus();
|
|
180
|
+
}
|
|
181
|
+
else if (cells[currentIndex] && cells[prevIndex]) {
|
|
182
|
+
this.focusCell(cells[prevIndex]);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
this.focusCellNull = () => {
|
|
187
|
+
this.focusCell(null);
|
|
188
|
+
};
|
|
189
|
+
this.focusCell = (focusEl, saveFocusIndex = true) => {
|
|
190
|
+
const { contentEl, actionsStartEl, actionsEndEl, parentListEl } = this;
|
|
191
|
+
if (saveFocusIndex) {
|
|
192
|
+
focusMap.set(parentListEl, null);
|
|
193
|
+
}
|
|
194
|
+
[actionsStartEl, contentEl, actionsEndEl].filter(Boolean).forEach((tableCell, cellIndex) => {
|
|
195
|
+
const tabIndexAttr = "tabindex";
|
|
196
|
+
if (tableCell === focusEl) {
|
|
197
|
+
tableCell.setAttribute(tabIndexAttr, "0");
|
|
198
|
+
saveFocusIndex && focusMap.set(parentListEl, cellIndex);
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
tableCell.removeAttribute(tabIndexAttr);
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
focusEl === null || focusEl === void 0 ? void 0 : focusEl.focus();
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
activeHandler(active) {
|
|
208
|
+
if (!active) {
|
|
209
|
+
this.focusCell(null, false);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
handleSelectedChange(value) {
|
|
213
|
+
if (value) {
|
|
214
|
+
this.calciteInternalListItemSelect.emit();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
connectedCallback() {
|
|
218
|
+
const { el } = this;
|
|
219
|
+
this.parentListEl = el.closest(listSelector);
|
|
220
|
+
this.level = getDepth(el) + 1;
|
|
221
|
+
this.visualLevel = getDepth(el, true);
|
|
222
|
+
this.setSelectionDefaults();
|
|
53
223
|
}
|
|
54
|
-
//--------------------------------------------------------------------------
|
|
55
|
-
//
|
|
56
|
-
// Lifecycle
|
|
57
|
-
//
|
|
58
|
-
//--------------------------------------------------------------------------
|
|
59
224
|
componentWillLoad() {
|
|
60
225
|
setUpLoadableComponent(this);
|
|
61
226
|
}
|
|
@@ -63,13 +228,7 @@ const ListItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
63
228
|
setComponentLoaded(this);
|
|
64
229
|
}
|
|
65
230
|
componentDidRender() {
|
|
66
|
-
updateHostInteraction(this);
|
|
67
|
-
}
|
|
68
|
-
connectedCallback() {
|
|
69
|
-
connectConditionalSlotComponent(this);
|
|
70
|
-
}
|
|
71
|
-
disconnectedCallback() {
|
|
72
|
-
disconnectConditionalSlotComponent(this);
|
|
231
|
+
updateHostInteraction(this, "managed");
|
|
73
232
|
}
|
|
74
233
|
// --------------------------------------------------------------------------
|
|
75
234
|
//
|
|
@@ -78,68 +237,144 @@ const ListItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
78
237
|
// --------------------------------------------------------------------------
|
|
79
238
|
/** Sets focus on the component. */
|
|
80
239
|
async setFocus() {
|
|
81
|
-
var _a;
|
|
82
240
|
await componentLoaded(this);
|
|
83
|
-
|
|
241
|
+
const { containerEl, contentEl, actionsStartEl, actionsEndEl, parentListEl } = this;
|
|
242
|
+
const focusIndex = focusMap.get(parentListEl);
|
|
243
|
+
if (typeof focusIndex === "number") {
|
|
244
|
+
const cells = [actionsStartEl, contentEl, actionsEndEl].filter(Boolean);
|
|
245
|
+
if (cells[focusIndex]) {
|
|
246
|
+
this.focusCell(cells[focusIndex]);
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
|
|
250
|
+
}
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
|
|
84
254
|
}
|
|
85
255
|
// --------------------------------------------------------------------------
|
|
86
256
|
//
|
|
87
257
|
// Render Methods
|
|
88
258
|
//
|
|
89
259
|
// --------------------------------------------------------------------------
|
|
260
|
+
renderSelected() {
|
|
261
|
+
const { selected, selectionMode, selectionAppearance } = this;
|
|
262
|
+
if (selectionMode === "none" || selectionAppearance === "border") {
|
|
263
|
+
return null;
|
|
264
|
+
}
|
|
265
|
+
return (h("td", { class: CSS.selectionContainer, key: "selection-container", onClick: this.toggleSelected }, h("calcite-icon", { icon: selected
|
|
266
|
+
? selectionMode === "multiple"
|
|
267
|
+
? ICONS.selectedMultiple
|
|
268
|
+
: ICONS.selectedSingle
|
|
269
|
+
: ICONS.unselected, scale: "s" })));
|
|
270
|
+
}
|
|
271
|
+
renderOpen() {
|
|
272
|
+
const { el, open, openable, parentListEl } = this;
|
|
273
|
+
const dir = getElementDir(el);
|
|
274
|
+
return openable ? (h("td", { class: CSS.openContainer, key: "open-container", onClick: this.toggleOpen }, h("calcite-icon", { icon: open ? ICONS.open : dir === "rtl" ? ICONS.closedRTL : ICONS.closedLTR, scale: "s" }))) : (parentListEl === null || parentListEl === void 0 ? void 0 : parentListEl.openable) ? (h("td", { class: CSS.openContainer, key: "open-container", onClick: this.toggleSelected }, h("calcite-icon", { icon: ICONS.blank, scale: "s" }))) : null;
|
|
275
|
+
}
|
|
90
276
|
renderActionsStart() {
|
|
91
|
-
const {
|
|
92
|
-
return
|
|
277
|
+
const { label, hasActionsStart } = this;
|
|
278
|
+
return (h("td", { "aria-label": label, class: CSS.actionsStart, hidden: !hasActionsStart, key: "actions-start-container", ref: (el) => (this.actionsStartEl = el), role: "gridcell" }, h("slot", { name: SLOTS.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
93
279
|
}
|
|
94
280
|
renderActionsEnd() {
|
|
95
|
-
const {
|
|
96
|
-
return
|
|
281
|
+
const { label, hasActionsEnd } = this;
|
|
282
|
+
return (h("td", { "aria-label": label, class: CSS.actionsEnd, hidden: !hasActionsEnd, key: "actions-end-container", ref: (el) => (this.actionsEndEl = el), role: "gridcell" }, h("slot", { name: SLOTS.actionsEnd, onSlotchange: this.handleActionsEndSlotChange })));
|
|
97
283
|
}
|
|
98
284
|
renderContentStart() {
|
|
99
|
-
const {
|
|
100
|
-
return
|
|
285
|
+
const { hasContentStart } = this;
|
|
286
|
+
return (h("div", { class: CSS.contentStart, hidden: !hasContentStart }, h("slot", { name: SLOTS.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
101
287
|
}
|
|
102
288
|
renderContentEnd() {
|
|
103
|
-
const {
|
|
104
|
-
return
|
|
289
|
+
const { hasContentEnd } = this;
|
|
290
|
+
return (h("div", { class: CSS.contentEnd, hidden: !hasContentEnd }, h("slot", { name: SLOTS.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
105
291
|
}
|
|
106
292
|
renderContent() {
|
|
107
293
|
const { label, description } = this;
|
|
108
|
-
return !!label || !!description ? (h("div", { class: CSS.content }, label ? h("div", { class: CSS.label }, label) : null, description ? h("div", { class: CSS.description }, description) : null)) : null;
|
|
294
|
+
return !!label || !!description ? (h("div", { class: CSS.content, key: "content" }, label ? (h("div", { class: CSS.label, key: "label" }, label)) : null, description ? (h("div", { class: CSS.description, key: "description" }, description)) : null)) : null;
|
|
109
295
|
}
|
|
110
296
|
renderContentContainer() {
|
|
111
|
-
const { description,
|
|
297
|
+
const { description, label, selectionMode } = this;
|
|
112
298
|
const hasCenterContent = !!label || !!description;
|
|
113
299
|
const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
|
|
114
|
-
return
|
|
300
|
+
return (h("td", { "aria-label": label, class: {
|
|
115
301
|
[CSS.contentContainer]: true,
|
|
116
|
-
[CSS.
|
|
117
|
-
[CSS.
|
|
118
|
-
},
|
|
302
|
+
[CSS.contentContainerSelectable]: selectionMode !== "none",
|
|
303
|
+
[CSS.contentContainerHasCenterContent]: hasCenterContent
|
|
304
|
+
}, key: "content-container", onClick: this.toggleSelected, ref: (el) => (this.contentEl = el), role: "gridcell" }, content));
|
|
119
305
|
}
|
|
120
306
|
render() {
|
|
121
|
-
|
|
307
|
+
const { openable, open, level, setPosition, setSize, active, label, selected, selectionAppearance, selectionMode } = this;
|
|
308
|
+
const showBorder = selectionMode !== "none" && selectionAppearance === "border";
|
|
309
|
+
const borderSelected = showBorder && selected;
|
|
310
|
+
const borderUnselected = showBorder && !selected;
|
|
311
|
+
return (h(Host, null, h("tr", { "aria-expanded": openable ? toAriaBoolean(open) : null, "aria-label": label, "aria-level": level, "aria-posinset": setPosition, "aria-selected": toAriaBoolean(selected), "aria-setsize": setSize, class: {
|
|
312
|
+
[CSS.container]: true,
|
|
313
|
+
[CSS.containerBorderSelected]: borderSelected,
|
|
314
|
+
[CSS.containerBorderUnselected]: borderUnselected
|
|
315
|
+
}, 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()), h("div", { class: {
|
|
316
|
+
[CSS.nestedContainer]: true,
|
|
317
|
+
[CSS.nestedContainerHidden]: openable && !open
|
|
318
|
+
} }, h("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
319
|
+
}
|
|
320
|
+
setSelectionDefaults() {
|
|
321
|
+
const { parentListEl, selectionMode, selectionAppearance } = this;
|
|
322
|
+
if (!parentListEl) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
if (!selectionMode) {
|
|
326
|
+
this.selectionMode = parentListEl.selectionMode;
|
|
327
|
+
}
|
|
328
|
+
if (!selectionAppearance) {
|
|
329
|
+
this.selectionAppearance = parentListEl.selectionAppearance;
|
|
330
|
+
}
|
|
122
331
|
}
|
|
123
332
|
get el() { return this; }
|
|
333
|
+
static get watchers() { return {
|
|
334
|
+
"active": ["activeHandler"],
|
|
335
|
+
"selected": ["handleSelectedChange"]
|
|
336
|
+
}; }
|
|
124
337
|
static get style() { return listItemCss; }
|
|
125
338
|
}, [1, "calcite-list-item", {
|
|
126
|
-
"
|
|
339
|
+
"active": [4],
|
|
127
340
|
"description": [1],
|
|
128
341
|
"disabled": [516],
|
|
129
342
|
"label": [1],
|
|
343
|
+
"metadata": [16],
|
|
344
|
+
"nonInteractive": [516, "non-interactive"],
|
|
345
|
+
"open": [1540],
|
|
346
|
+
"setSize": [2, "set-size"],
|
|
347
|
+
"setPosition": [2, "set-position"],
|
|
348
|
+
"selected": [1540],
|
|
349
|
+
"value": [8],
|
|
350
|
+
"selectionMode": [1025, "selection-mode"],
|
|
351
|
+
"selectionAppearance": [1025, "selection-appearance"],
|
|
352
|
+
"level": [32],
|
|
353
|
+
"visualLevel": [32],
|
|
354
|
+
"parentListEl": [32],
|
|
355
|
+
"openable": [32],
|
|
356
|
+
"hasActionsStart": [32],
|
|
357
|
+
"hasActionsEnd": [32],
|
|
358
|
+
"hasContentStart": [32],
|
|
359
|
+
"hasContentEnd": [32],
|
|
130
360
|
"setFocus": [64]
|
|
131
361
|
}]);
|
|
132
362
|
function defineCustomElement$1() {
|
|
133
363
|
if (typeof customElements === "undefined") {
|
|
134
364
|
return;
|
|
135
365
|
}
|
|
136
|
-
const components = ["calcite-list-item"];
|
|
366
|
+
const components = ["calcite-list-item", "calcite-icon"];
|
|
137
367
|
components.forEach(tagName => { switch (tagName) {
|
|
138
368
|
case "calcite-list-item":
|
|
139
369
|
if (!customElements.get(tagName)) {
|
|
140
370
|
customElements.define(tagName, ListItem);
|
|
141
371
|
}
|
|
142
372
|
break;
|
|
373
|
+
case "calcite-icon":
|
|
374
|
+
if (!customElements.get(tagName)) {
|
|
375
|
+
defineCustomElement$2();
|
|
376
|
+
}
|
|
377
|
+
break;
|
|
143
378
|
} });
|
|
144
379
|
}
|
|
145
380
|
defineCustomElement$1();
|