@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,13 +1,15 @@
|
|
|
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
|
import { h, Host } from "@stencil/core";
|
|
7
|
-
import { SLOTS, CSS } from "./resources";
|
|
8
|
-
import {
|
|
9
|
-
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
7
|
+
import { SLOTS, CSS, ICONS } from "./resources";
|
|
8
|
+
import { getElementDir, toAriaBoolean } from "../../utils/dom";
|
|
10
9
|
import { updateHostInteraction } from "../../utils/interactive";
|
|
10
|
+
import { getDepth, getListItemChildren, updateListItemChildren } from "./utils";
|
|
11
|
+
const focusMap = new Map();
|
|
12
|
+
const listSelector = "calcite-list";
|
|
11
13
|
import { setUpLoadableComponent, setComponentLoaded, componentLoaded } from "../../utils/loadable";
|
|
12
14
|
/**
|
|
13
15
|
* @slot - A slot for adding `calcite-list-item` and `calcite-list-item-group` elements.
|
|
@@ -24,19 +26,199 @@ export class ListItem {
|
|
|
24
26
|
//
|
|
25
27
|
// --------------------------------------------------------------------------
|
|
26
28
|
/**
|
|
27
|
-
*
|
|
29
|
+
* Sets the item as focusable. Only one item should be focusable within a list.
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
28
32
|
*/
|
|
29
|
-
this.
|
|
33
|
+
this.active = false;
|
|
30
34
|
/**
|
|
31
35
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
32
36
|
*/
|
|
33
37
|
this.disabled = false;
|
|
38
|
+
/**
|
|
39
|
+
* When `true`, prevents the content of the component from user interaction.
|
|
40
|
+
*
|
|
41
|
+
* @deprecated no longer necessary.
|
|
42
|
+
*/
|
|
43
|
+
this.nonInteractive = false;
|
|
44
|
+
/**
|
|
45
|
+
* When true, item is open to show child components.
|
|
46
|
+
*/
|
|
47
|
+
this.open = false;
|
|
48
|
+
/**
|
|
49
|
+
* Used to specify the aria-setsize attribute to define the number of items in the current set of list for accessibility.
|
|
50
|
+
*
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
this.setSize = null;
|
|
54
|
+
/**
|
|
55
|
+
* Used to specify the aria-posinset attribute to define the number or position in the current set of list items for accessibility.
|
|
56
|
+
*
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
this.setPosition = null;
|
|
60
|
+
/**
|
|
61
|
+
* When true, the component is selected.
|
|
62
|
+
*/
|
|
63
|
+
this.selected = false;
|
|
64
|
+
/**
|
|
65
|
+
* 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
|
|
66
|
+
*
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
this.selectionMode = null;
|
|
70
|
+
/**
|
|
71
|
+
* specify the selection appearance - icon (displays a checkmark or dot), border (displays a border), defaults to icon
|
|
72
|
+
*
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
this.selectionAppearance = null;
|
|
76
|
+
this.level = null;
|
|
77
|
+
this.visualLevel = null;
|
|
78
|
+
this.openable = false;
|
|
79
|
+
this.hasActionsStart = false;
|
|
80
|
+
this.hasActionsEnd = false;
|
|
81
|
+
this.hasContentStart = false;
|
|
82
|
+
this.hasContentEnd = false;
|
|
83
|
+
// --------------------------------------------------------------------------
|
|
84
|
+
//
|
|
85
|
+
// Private Methods
|
|
86
|
+
//
|
|
87
|
+
// --------------------------------------------------------------------------
|
|
88
|
+
this.handleActionsStartSlotChange = (event) => {
|
|
89
|
+
const elements = event.target.assignedElements({
|
|
90
|
+
flatten: true
|
|
91
|
+
});
|
|
92
|
+
this.hasActionsStart = !!elements.length;
|
|
93
|
+
};
|
|
94
|
+
this.handleActionsEndSlotChange = (event) => {
|
|
95
|
+
const elements = event.target.assignedElements({
|
|
96
|
+
flatten: true
|
|
97
|
+
});
|
|
98
|
+
this.hasActionsEnd = !!elements.length;
|
|
99
|
+
};
|
|
100
|
+
this.handleContentStartSlotChange = (event) => {
|
|
101
|
+
const elements = event.target.assignedElements({
|
|
102
|
+
flatten: true
|
|
103
|
+
});
|
|
104
|
+
this.hasContentStart = !!elements.length;
|
|
105
|
+
};
|
|
106
|
+
this.handleContentEndSlotChange = (event) => {
|
|
107
|
+
const elements = event.target.assignedElements({
|
|
108
|
+
flatten: true
|
|
109
|
+
});
|
|
110
|
+
this.hasContentEnd = !!elements.length;
|
|
111
|
+
};
|
|
112
|
+
this.handleDefaultSlotChange = (event) => {
|
|
113
|
+
const { parentListEl } = this;
|
|
114
|
+
const listItemChildren = getListItemChildren(event);
|
|
115
|
+
updateListItemChildren(listItemChildren);
|
|
116
|
+
const openable = !!listItemChildren.length;
|
|
117
|
+
if (openable && parentListEl && !parentListEl.openable) {
|
|
118
|
+
parentListEl.openable = true;
|
|
119
|
+
}
|
|
120
|
+
this.openable = openable;
|
|
121
|
+
if (!openable) {
|
|
122
|
+
this.open = false;
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
this.toggleOpen = () => {
|
|
126
|
+
this.open = !this.open;
|
|
127
|
+
};
|
|
128
|
+
this.toggleSelected = () => {
|
|
129
|
+
if (this.disabled) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
if (this.selectionMode !== "none") {
|
|
133
|
+
this.selected = !this.selected;
|
|
134
|
+
}
|
|
135
|
+
this.calciteListItemSelect.emit();
|
|
136
|
+
};
|
|
137
|
+
this.handleItemKeyDown = (event) => {
|
|
138
|
+
const { key } = event;
|
|
139
|
+
const composedPath = event.composedPath();
|
|
140
|
+
const { containerEl, contentEl, actionsStartEl, actionsEndEl, open, openable } = this;
|
|
141
|
+
const cells = [actionsStartEl, contentEl, actionsEndEl].filter(Boolean);
|
|
142
|
+
const currentIndex = cells.findIndex((cell) => composedPath.includes(cell));
|
|
143
|
+
if (key === " ") {
|
|
144
|
+
event.preventDefault();
|
|
145
|
+
this.toggleSelected();
|
|
146
|
+
}
|
|
147
|
+
else if (key === "ArrowRight") {
|
|
148
|
+
event.preventDefault();
|
|
149
|
+
const nextIndex = currentIndex + 1;
|
|
150
|
+
if (currentIndex === -1) {
|
|
151
|
+
if (!open && openable) {
|
|
152
|
+
this.open = true;
|
|
153
|
+
this.focusCell(null);
|
|
154
|
+
}
|
|
155
|
+
else if (cells[0]) {
|
|
156
|
+
this.focusCell(cells[0]);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
else if (cells[currentIndex] && cells[nextIndex]) {
|
|
160
|
+
this.focusCell(cells[nextIndex]);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
else if (key === "ArrowLeft") {
|
|
164
|
+
event.preventDefault();
|
|
165
|
+
const prevIndex = currentIndex - 1;
|
|
166
|
+
if (currentIndex === -1) {
|
|
167
|
+
this.focusCell(null);
|
|
168
|
+
if (open && openable) {
|
|
169
|
+
this.open = false;
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
this.calciteInternalFocusPreviousItem.emit();
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
else if (currentIndex === 0) {
|
|
176
|
+
this.focusCell(null);
|
|
177
|
+
containerEl.focus();
|
|
178
|
+
}
|
|
179
|
+
else if (cells[currentIndex] && cells[prevIndex]) {
|
|
180
|
+
this.focusCell(cells[prevIndex]);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
this.focusCellNull = () => {
|
|
185
|
+
this.focusCell(null);
|
|
186
|
+
};
|
|
187
|
+
this.focusCell = (focusEl, saveFocusIndex = true) => {
|
|
188
|
+
const { contentEl, actionsStartEl, actionsEndEl, parentListEl } = this;
|
|
189
|
+
if (saveFocusIndex) {
|
|
190
|
+
focusMap.set(parentListEl, null);
|
|
191
|
+
}
|
|
192
|
+
[actionsStartEl, contentEl, actionsEndEl].filter(Boolean).forEach((tableCell, cellIndex) => {
|
|
193
|
+
const tabIndexAttr = "tabindex";
|
|
194
|
+
if (tableCell === focusEl) {
|
|
195
|
+
tableCell.setAttribute(tabIndexAttr, "0");
|
|
196
|
+
saveFocusIndex && focusMap.set(parentListEl, cellIndex);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
tableCell.removeAttribute(tabIndexAttr);
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
focusEl === null || focusEl === void 0 ? void 0 : focusEl.focus();
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
activeHandler(active) {
|
|
206
|
+
if (!active) {
|
|
207
|
+
this.focusCell(null, false);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
handleSelectedChange(value) {
|
|
211
|
+
if (value) {
|
|
212
|
+
this.calciteInternalListItemSelect.emit();
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
connectedCallback() {
|
|
216
|
+
const { el } = this;
|
|
217
|
+
this.parentListEl = el.closest(listSelector);
|
|
218
|
+
this.level = getDepth(el) + 1;
|
|
219
|
+
this.visualLevel = getDepth(el, true);
|
|
220
|
+
this.setSelectionDefaults();
|
|
34
221
|
}
|
|
35
|
-
//--------------------------------------------------------------------------
|
|
36
|
-
//
|
|
37
|
-
// Lifecycle
|
|
38
|
-
//
|
|
39
|
-
//--------------------------------------------------------------------------
|
|
40
222
|
componentWillLoad() {
|
|
41
223
|
setUpLoadableComponent(this);
|
|
42
224
|
}
|
|
@@ -44,13 +226,7 @@ export class ListItem {
|
|
|
44
226
|
setComponentLoaded(this);
|
|
45
227
|
}
|
|
46
228
|
componentDidRender() {
|
|
47
|
-
updateHostInteraction(this);
|
|
48
|
-
}
|
|
49
|
-
connectedCallback() {
|
|
50
|
-
connectConditionalSlotComponent(this);
|
|
51
|
-
}
|
|
52
|
-
disconnectedCallback() {
|
|
53
|
-
disconnectConditionalSlotComponent(this);
|
|
229
|
+
updateHostInteraction(this, "managed");
|
|
54
230
|
}
|
|
55
231
|
// --------------------------------------------------------------------------
|
|
56
232
|
//
|
|
@@ -59,47 +235,97 @@ export class ListItem {
|
|
|
59
235
|
// --------------------------------------------------------------------------
|
|
60
236
|
/** Sets focus on the component. */
|
|
61
237
|
async setFocus() {
|
|
62
|
-
var _a;
|
|
63
238
|
await componentLoaded(this);
|
|
64
|
-
|
|
239
|
+
const { containerEl, contentEl, actionsStartEl, actionsEndEl, parentListEl } = this;
|
|
240
|
+
const focusIndex = focusMap.get(parentListEl);
|
|
241
|
+
if (typeof focusIndex === "number") {
|
|
242
|
+
const cells = [actionsStartEl, contentEl, actionsEndEl].filter(Boolean);
|
|
243
|
+
if (cells[focusIndex]) {
|
|
244
|
+
this.focusCell(cells[focusIndex]);
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
|
|
248
|
+
}
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
|
|
65
252
|
}
|
|
66
253
|
// --------------------------------------------------------------------------
|
|
67
254
|
//
|
|
68
255
|
// Render Methods
|
|
69
256
|
//
|
|
70
257
|
// --------------------------------------------------------------------------
|
|
258
|
+
renderSelected() {
|
|
259
|
+
const { selected, selectionMode, selectionAppearance } = this;
|
|
260
|
+
if (selectionMode === "none" || selectionAppearance === "border") {
|
|
261
|
+
return null;
|
|
262
|
+
}
|
|
263
|
+
return (h("td", { class: CSS.selectionContainer, key: "selection-container", onClick: this.toggleSelected }, h("calcite-icon", { icon: selected
|
|
264
|
+
? selectionMode === "multiple"
|
|
265
|
+
? ICONS.selectedMultiple
|
|
266
|
+
: ICONS.selectedSingle
|
|
267
|
+
: ICONS.unselected, scale: "s" })));
|
|
268
|
+
}
|
|
269
|
+
renderOpen() {
|
|
270
|
+
const { el, open, openable, parentListEl } = this;
|
|
271
|
+
const dir = getElementDir(el);
|
|
272
|
+
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;
|
|
273
|
+
}
|
|
71
274
|
renderActionsStart() {
|
|
72
|
-
const {
|
|
73
|
-
return
|
|
275
|
+
const { label, hasActionsStart } = this;
|
|
276
|
+
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 })));
|
|
74
277
|
}
|
|
75
278
|
renderActionsEnd() {
|
|
76
|
-
const {
|
|
77
|
-
return
|
|
279
|
+
const { label, hasActionsEnd } = this;
|
|
280
|
+
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 })));
|
|
78
281
|
}
|
|
79
282
|
renderContentStart() {
|
|
80
|
-
const {
|
|
81
|
-
return
|
|
283
|
+
const { hasContentStart } = this;
|
|
284
|
+
return (h("div", { class: CSS.contentStart, hidden: !hasContentStart }, h("slot", { name: SLOTS.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
82
285
|
}
|
|
83
286
|
renderContentEnd() {
|
|
84
|
-
const {
|
|
85
|
-
return
|
|
287
|
+
const { hasContentEnd } = this;
|
|
288
|
+
return (h("div", { class: CSS.contentEnd, hidden: !hasContentEnd }, h("slot", { name: SLOTS.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
86
289
|
}
|
|
87
290
|
renderContent() {
|
|
88
291
|
const { label, description } = this;
|
|
89
|
-
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;
|
|
292
|
+
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;
|
|
90
293
|
}
|
|
91
294
|
renderContentContainer() {
|
|
92
|
-
const { description,
|
|
295
|
+
const { description, label, selectionMode } = this;
|
|
93
296
|
const hasCenterContent = !!label || !!description;
|
|
94
297
|
const content = [this.renderContentStart(), this.renderContent(), this.renderContentEnd()];
|
|
95
|
-
return
|
|
298
|
+
return (h("td", { "aria-label": label, class: {
|
|
96
299
|
[CSS.contentContainer]: true,
|
|
97
|
-
[CSS.
|
|
98
|
-
[CSS.
|
|
99
|
-
},
|
|
300
|
+
[CSS.contentContainerSelectable]: selectionMode !== "none",
|
|
301
|
+
[CSS.contentContainerHasCenterContent]: hasCenterContent
|
|
302
|
+
}, key: "content-container", onClick: this.toggleSelected, ref: (el) => (this.contentEl = el), role: "gridcell" }, content));
|
|
100
303
|
}
|
|
101
304
|
render() {
|
|
102
|
-
|
|
305
|
+
const { openable, open, level, setPosition, setSize, active, label, selected, selectionAppearance, selectionMode } = this;
|
|
306
|
+
const showBorder = selectionMode !== "none" && selectionAppearance === "border";
|
|
307
|
+
const borderSelected = showBorder && selected;
|
|
308
|
+
const borderUnselected = showBorder && !selected;
|
|
309
|
+
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: {
|
|
310
|
+
[CSS.container]: true,
|
|
311
|
+
[CSS.containerBorderSelected]: borderSelected,
|
|
312
|
+
[CSS.containerBorderUnselected]: borderUnselected
|
|
313
|
+
}, 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: {
|
|
314
|
+
[CSS.nestedContainer]: true,
|
|
315
|
+
[CSS.nestedContainerHidden]: openable && !open
|
|
316
|
+
} }, h("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
317
|
+
}
|
|
318
|
+
setSelectionDefaults() {
|
|
319
|
+
const { parentListEl, selectionMode, selectionAppearance } = this;
|
|
320
|
+
if (!parentListEl) {
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
if (!selectionMode) {
|
|
324
|
+
this.selectionMode = parentListEl.selectionMode;
|
|
325
|
+
}
|
|
326
|
+
if (!selectionAppearance) {
|
|
327
|
+
this.selectionAppearance = parentListEl.selectionAppearance;
|
|
328
|
+
}
|
|
103
329
|
}
|
|
104
330
|
static get is() { return "calcite-list-item"; }
|
|
105
331
|
static get encapsulation() { return "shadow"; }
|
|
@@ -115,7 +341,7 @@ export class ListItem {
|
|
|
115
341
|
}
|
|
116
342
|
static get properties() {
|
|
117
343
|
return {
|
|
118
|
-
"
|
|
344
|
+
"active": {
|
|
119
345
|
"type": "boolean",
|
|
120
346
|
"mutable": false,
|
|
121
347
|
"complexType": {
|
|
@@ -126,11 +352,14 @@ export class ListItem {
|
|
|
126
352
|
"required": false,
|
|
127
353
|
"optional": false,
|
|
128
354
|
"docs": {
|
|
129
|
-
"tags": [
|
|
130
|
-
|
|
355
|
+
"tags": [{
|
|
356
|
+
"name": "internal",
|
|
357
|
+
"text": undefined
|
|
358
|
+
}],
|
|
359
|
+
"text": "Sets the item as focusable. Only one item should be focusable within a list."
|
|
131
360
|
},
|
|
132
|
-
"attribute": "
|
|
133
|
-
"reflect":
|
|
361
|
+
"attribute": "active",
|
|
362
|
+
"reflect": false,
|
|
134
363
|
"defaultValue": "false"
|
|
135
364
|
},
|
|
136
365
|
"description": {
|
|
@@ -184,9 +413,262 @@ export class ListItem {
|
|
|
184
413
|
},
|
|
185
414
|
"attribute": "label",
|
|
186
415
|
"reflect": false
|
|
416
|
+
},
|
|
417
|
+
"metadata": {
|
|
418
|
+
"type": "unknown",
|
|
419
|
+
"mutable": false,
|
|
420
|
+
"complexType": {
|
|
421
|
+
"original": "Record<string, unknown>",
|
|
422
|
+
"resolved": "{ [x: string]: unknown; }",
|
|
423
|
+
"references": {
|
|
424
|
+
"Record": {
|
|
425
|
+
"location": "global"
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"required": false,
|
|
430
|
+
"optional": true,
|
|
431
|
+
"docs": {
|
|
432
|
+
"tags": [],
|
|
433
|
+
"text": "Provides additional metadata to the component. Primary use is for a filter on the parent list."
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"nonInteractive": {
|
|
437
|
+
"type": "boolean",
|
|
438
|
+
"mutable": false,
|
|
439
|
+
"complexType": {
|
|
440
|
+
"original": "boolean",
|
|
441
|
+
"resolved": "boolean",
|
|
442
|
+
"references": {}
|
|
443
|
+
},
|
|
444
|
+
"required": false,
|
|
445
|
+
"optional": false,
|
|
446
|
+
"docs": {
|
|
447
|
+
"tags": [{
|
|
448
|
+
"name": "deprecated",
|
|
449
|
+
"text": "no longer necessary."
|
|
450
|
+
}],
|
|
451
|
+
"text": "When `true`, prevents the content of the component from user interaction."
|
|
452
|
+
},
|
|
453
|
+
"attribute": "non-interactive",
|
|
454
|
+
"reflect": true,
|
|
455
|
+
"defaultValue": "false"
|
|
456
|
+
},
|
|
457
|
+
"open": {
|
|
458
|
+
"type": "boolean",
|
|
459
|
+
"mutable": true,
|
|
460
|
+
"complexType": {
|
|
461
|
+
"original": "boolean",
|
|
462
|
+
"resolved": "boolean",
|
|
463
|
+
"references": {}
|
|
464
|
+
},
|
|
465
|
+
"required": false,
|
|
466
|
+
"optional": false,
|
|
467
|
+
"docs": {
|
|
468
|
+
"tags": [],
|
|
469
|
+
"text": "When true, item is open to show child components."
|
|
470
|
+
},
|
|
471
|
+
"attribute": "open",
|
|
472
|
+
"reflect": true,
|
|
473
|
+
"defaultValue": "false"
|
|
474
|
+
},
|
|
475
|
+
"setSize": {
|
|
476
|
+
"type": "number",
|
|
477
|
+
"mutable": false,
|
|
478
|
+
"complexType": {
|
|
479
|
+
"original": "number",
|
|
480
|
+
"resolved": "number",
|
|
481
|
+
"references": {}
|
|
482
|
+
},
|
|
483
|
+
"required": false,
|
|
484
|
+
"optional": false,
|
|
485
|
+
"docs": {
|
|
486
|
+
"tags": [{
|
|
487
|
+
"name": "internal",
|
|
488
|
+
"text": undefined
|
|
489
|
+
}],
|
|
490
|
+
"text": "Used to specify the aria-setsize attribute to define the number of items in the current set of list for accessibility."
|
|
491
|
+
},
|
|
492
|
+
"attribute": "set-size",
|
|
493
|
+
"reflect": false,
|
|
494
|
+
"defaultValue": "null"
|
|
495
|
+
},
|
|
496
|
+
"setPosition": {
|
|
497
|
+
"type": "number",
|
|
498
|
+
"mutable": false,
|
|
499
|
+
"complexType": {
|
|
500
|
+
"original": "number",
|
|
501
|
+
"resolved": "number",
|
|
502
|
+
"references": {}
|
|
503
|
+
},
|
|
504
|
+
"required": false,
|
|
505
|
+
"optional": false,
|
|
506
|
+
"docs": {
|
|
507
|
+
"tags": [{
|
|
508
|
+
"name": "internal",
|
|
509
|
+
"text": undefined
|
|
510
|
+
}],
|
|
511
|
+
"text": "Used to specify the aria-posinset attribute to define the number or position in the current set of list items for accessibility."
|
|
512
|
+
},
|
|
513
|
+
"attribute": "set-position",
|
|
514
|
+
"reflect": false,
|
|
515
|
+
"defaultValue": "null"
|
|
516
|
+
},
|
|
517
|
+
"selected": {
|
|
518
|
+
"type": "boolean",
|
|
519
|
+
"mutable": true,
|
|
520
|
+
"complexType": {
|
|
521
|
+
"original": "boolean",
|
|
522
|
+
"resolved": "boolean",
|
|
523
|
+
"references": {}
|
|
524
|
+
},
|
|
525
|
+
"required": false,
|
|
526
|
+
"optional": false,
|
|
527
|
+
"docs": {
|
|
528
|
+
"tags": [],
|
|
529
|
+
"text": "When true, the component is selected."
|
|
530
|
+
},
|
|
531
|
+
"attribute": "selected",
|
|
532
|
+
"reflect": true,
|
|
533
|
+
"defaultValue": "false"
|
|
534
|
+
},
|
|
535
|
+
"value": {
|
|
536
|
+
"type": "any",
|
|
537
|
+
"mutable": false,
|
|
538
|
+
"complexType": {
|
|
539
|
+
"original": "any",
|
|
540
|
+
"resolved": "any",
|
|
541
|
+
"references": {}
|
|
542
|
+
},
|
|
543
|
+
"required": false,
|
|
544
|
+
"optional": false,
|
|
545
|
+
"docs": {
|
|
546
|
+
"tags": [],
|
|
547
|
+
"text": "The component's value."
|
|
548
|
+
},
|
|
549
|
+
"attribute": "value",
|
|
550
|
+
"reflect": false
|
|
551
|
+
},
|
|
552
|
+
"selectionMode": {
|
|
553
|
+
"type": "string",
|
|
554
|
+
"mutable": true,
|
|
555
|
+
"complexType": {
|
|
556
|
+
"original": "SelectionMode",
|
|
557
|
+
"resolved": "\"multiple\" | \"none\" | \"single\"",
|
|
558
|
+
"references": {
|
|
559
|
+
"SelectionMode": {
|
|
560
|
+
"location": "import",
|
|
561
|
+
"path": "../list/resources"
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
"required": false,
|
|
566
|
+
"optional": false,
|
|
567
|
+
"docs": {
|
|
568
|
+
"tags": [{
|
|
569
|
+
"name": "internal",
|
|
570
|
+
"text": undefined
|
|
571
|
+
}],
|
|
572
|
+
"text": "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"
|
|
573
|
+
},
|
|
574
|
+
"attribute": "selection-mode",
|
|
575
|
+
"reflect": false,
|
|
576
|
+
"defaultValue": "null"
|
|
577
|
+
},
|
|
578
|
+
"selectionAppearance": {
|
|
579
|
+
"type": "string",
|
|
580
|
+
"mutable": true,
|
|
581
|
+
"complexType": {
|
|
582
|
+
"original": "SelectionAppearance",
|
|
583
|
+
"resolved": "\"border\" | \"icon\"",
|
|
584
|
+
"references": {
|
|
585
|
+
"SelectionAppearance": {
|
|
586
|
+
"location": "import",
|
|
587
|
+
"path": "../list/resources"
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"required": false,
|
|
592
|
+
"optional": false,
|
|
593
|
+
"docs": {
|
|
594
|
+
"tags": [{
|
|
595
|
+
"name": "internal",
|
|
596
|
+
"text": undefined
|
|
597
|
+
}],
|
|
598
|
+
"text": "specify the selection appearance - icon (displays a checkmark or dot), border (displays a border), defaults to icon"
|
|
599
|
+
},
|
|
600
|
+
"attribute": "selection-appearance",
|
|
601
|
+
"reflect": false,
|
|
602
|
+
"defaultValue": "null"
|
|
187
603
|
}
|
|
188
604
|
};
|
|
189
605
|
}
|
|
606
|
+
static get states() {
|
|
607
|
+
return {
|
|
608
|
+
"level": {},
|
|
609
|
+
"visualLevel": {},
|
|
610
|
+
"parentListEl": {},
|
|
611
|
+
"openable": {},
|
|
612
|
+
"hasActionsStart": {},
|
|
613
|
+
"hasActionsEnd": {},
|
|
614
|
+
"hasContentStart": {},
|
|
615
|
+
"hasContentEnd": {}
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
static get events() {
|
|
619
|
+
return [{
|
|
620
|
+
"method": "calciteListItemSelect",
|
|
621
|
+
"name": "calciteListItemSelect",
|
|
622
|
+
"bubbles": true,
|
|
623
|
+
"cancelable": false,
|
|
624
|
+
"composed": true,
|
|
625
|
+
"docs": {
|
|
626
|
+
"tags": [],
|
|
627
|
+
"text": "Emitted whenever the list item content is selected."
|
|
628
|
+
},
|
|
629
|
+
"complexType": {
|
|
630
|
+
"original": "void",
|
|
631
|
+
"resolved": "void",
|
|
632
|
+
"references": {}
|
|
633
|
+
}
|
|
634
|
+
}, {
|
|
635
|
+
"method": "calciteInternalListItemSelect",
|
|
636
|
+
"name": "calciteInternalListItemSelect",
|
|
637
|
+
"bubbles": true,
|
|
638
|
+
"cancelable": false,
|
|
639
|
+
"composed": true,
|
|
640
|
+
"docs": {
|
|
641
|
+
"tags": [{
|
|
642
|
+
"name": "internal",
|
|
643
|
+
"text": undefined
|
|
644
|
+
}],
|
|
645
|
+
"text": ""
|
|
646
|
+
},
|
|
647
|
+
"complexType": {
|
|
648
|
+
"original": "void",
|
|
649
|
+
"resolved": "void",
|
|
650
|
+
"references": {}
|
|
651
|
+
}
|
|
652
|
+
}, {
|
|
653
|
+
"method": "calciteInternalFocusPreviousItem",
|
|
654
|
+
"name": "calciteInternalFocusPreviousItem",
|
|
655
|
+
"bubbles": true,
|
|
656
|
+
"cancelable": false,
|
|
657
|
+
"composed": true,
|
|
658
|
+
"docs": {
|
|
659
|
+
"tags": [{
|
|
660
|
+
"name": "internal",
|
|
661
|
+
"text": undefined
|
|
662
|
+
}],
|
|
663
|
+
"text": ""
|
|
664
|
+
},
|
|
665
|
+
"complexType": {
|
|
666
|
+
"original": "void",
|
|
667
|
+
"resolved": "void",
|
|
668
|
+
"references": {}
|
|
669
|
+
}
|
|
670
|
+
}];
|
|
671
|
+
}
|
|
190
672
|
static get methods() {
|
|
191
673
|
return {
|
|
192
674
|
"setFocus": {
|
|
@@ -208,4 +690,13 @@ export class ListItem {
|
|
|
208
690
|
};
|
|
209
691
|
}
|
|
210
692
|
static get elementRef() { return "el"; }
|
|
693
|
+
static get watchers() {
|
|
694
|
+
return [{
|
|
695
|
+
"propName": "active",
|
|
696
|
+
"methodName": "activeHandler"
|
|
697
|
+
}, {
|
|
698
|
+
"propName": "selected",
|
|
699
|
+
"methodName": "handleSelectedChange"
|
|
700
|
+
}];
|
|
701
|
+
}
|
|
211
702
|
}
|