@esri/calcite-components 1.0.0-next.631 → 1.0.0-next.633
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-9e985ad3.js → p-004dc91c.js} +1 -1
- package/dist/calcite/{p-256dd63d.js → p-035fa26b.js} +1 -1
- package/dist/calcite/{p-c7d55f76.js → p-05c3789b.js} +1 -1
- package/dist/calcite/{p-09d0b7df.entry.js → p-09749684.entry.js} +2 -2
- package/dist/calcite/{p-fb7f07bc.entry.js → p-0d96f830.entry.js} +2 -2
- package/dist/calcite/p-0f31433c.entry.js +6 -0
- package/dist/calcite/{p-74f724b5.entry.js → p-12f64f8b.entry.js} +2 -2
- package/dist/calcite/{p-829c6736.entry.js → p-14a7da73.entry.js} +2 -2
- package/dist/calcite/{p-b600b3f2.entry.js → p-1806b759.entry.js} +2 -2
- package/dist/calcite/{p-c566271a.js → p-18b9b69e.js} +1 -1
- package/dist/calcite/{p-3d2bd3a6.entry.js → p-18f9b87b.entry.js} +2 -2
- package/dist/calcite/{p-a1a76d84.entry.js → p-1cebb96f.entry.js} +2 -2
- package/dist/calcite/{p-2122e0d1.js → p-22c8223d.js} +1 -1
- package/dist/calcite/{p-b2e36784.js → p-24681cc9.js} +1 -1
- package/dist/calcite/{p-d61be3b7.entry.js → p-266871ba.entry.js} +2 -2
- package/dist/calcite/{p-cb7557e3.entry.js → p-26b693c2.entry.js} +2 -2
- package/dist/calcite/{p-63c436be.entry.js → p-29cf00c4.entry.js} +2 -2
- package/dist/calcite/{p-640cf4fa.entry.js → p-2a52b1af.entry.js} +2 -2
- package/dist/calcite/{p-f5f0f20c.entry.js → p-2c730d84.entry.js} +2 -2
- package/dist/calcite/{p-471d7ed4.js → p-2c9d7402.js} +2 -2
- package/dist/calcite/{p-423f219f.entry.js → p-2ebffb8e.entry.js} +2 -2
- package/dist/calcite/{p-d1e085b3.entry.js → p-308ed699.entry.js} +2 -2
- package/dist/calcite/{p-e9ed1444.js → p-31090aba.js} +1 -1
- package/dist/calcite/{p-852c2b37.js → p-319d0fb7.js} +2 -2
- package/dist/calcite/{p-b02b3316.js → p-32abefe9.js} +1 -1
- package/dist/calcite/{p-e5b8fd94.entry.js → p-3bb21f63.entry.js} +2 -2
- package/dist/calcite/p-3cc531b1.entry.js +6 -0
- package/dist/calcite/{p-ac49a5fc.entry.js → p-3d69f172.entry.js} +2 -2
- package/dist/calcite/p-3e9f366c.entry.js +6 -0
- package/dist/calcite/{p-030f8c3f.js → p-3ed7f5b5.js} +2 -2
- package/dist/calcite/p-42f22b60.js +6 -0
- package/dist/calcite/{p-66124d87.entry.js → p-431e0692.entry.js} +2 -2
- package/dist/calcite/{p-ec473061.js → p-4794e7df.js} +1 -1
- package/dist/calcite/{p-ddb93587.js → p-498de00a.js} +2 -2
- package/dist/calcite/{p-ba4b8115.entry.js → p-49a5573d.entry.js} +2 -2
- package/dist/calcite/p-4ada52dc.entry.js +6 -0
- package/dist/calcite/{p-08a381ac.js → p-4f72fc01.js} +1 -1
- package/dist/calcite/p-513fef9a.js +6 -0
- package/dist/calcite/{p-941609dd.js → p-5215672d.js} +2 -2
- package/dist/calcite/p-58de9d51.entry.js +6 -0
- package/dist/calcite/{p-25a557a3.entry.js → p-5c05198d.entry.js} +2 -2
- package/dist/calcite/p-5f59c538.entry.js +6 -0
- package/dist/calcite/{p-f2b115a1.entry.js → p-69d9a248.entry.js} +2 -2
- package/dist/calcite/{p-cc4a1d2e.entry.js → p-6bc879e0.entry.js} +2 -2
- package/dist/calcite/{p-ee6ce295.entry.js → p-6f30e051.entry.js} +2 -2
- package/dist/calcite/{p-93bd2d29.entry.js → p-73f93e1c.entry.js} +2 -2
- package/dist/calcite/{p-b00b7eb4.entry.js → p-77658bab.entry.js} +2 -2
- package/dist/calcite/{p-a6ad1cf2.entry.js → p-7def899e.entry.js} +2 -2
- package/dist/calcite/{p-3b385f23.entry.js → p-8021f786.entry.js} +2 -2
- package/dist/calcite/{p-680c3505.entry.js → p-810fcf41.entry.js} +2 -2
- package/dist/calcite/p-83617657.entry.js +16 -0
- package/dist/calcite/{p-6765a427.entry.js → p-953012fa.entry.js} +2 -2
- package/dist/calcite/{p-0aef0b8f.js → p-a2ab3648.js} +2 -2
- package/dist/calcite/{p-401439ec.entry.js → p-a359b901.entry.js} +2 -2
- package/dist/calcite/{p-d3910b2c.entry.js → p-a6f1ebf6.entry.js} +2 -2
- package/dist/calcite/{p-c079c310.js → p-ab3812ba.js} +1 -1
- package/dist/calcite/{p-afc65e56.entry.js → p-ac3ace5c.entry.js} +2 -2
- package/dist/calcite/{p-d248def9.entry.js → p-ac5e38a2.entry.js} +2 -2
- package/dist/calcite/{p-529b296e.js → p-b672fd97.js} +2 -2
- package/dist/calcite/{p-2f873464.entry.js → p-b7fbe5a9.entry.js} +2 -2
- package/dist/calcite/{p-4db062a5.entry.js → p-bb73d51b.entry.js} +2 -2
- package/dist/calcite/{p-30cff6ab.entry.js → p-bbd46504.entry.js} +2 -2
- package/dist/calcite/p-c24271dc.entry.js +6 -0
- package/dist/calcite/{p-7677636b.js → p-c3d50492.js} +1 -1
- package/dist/calcite/{p-34b91fe7.js → p-c8640992.js} +1 -1
- package/dist/calcite/{p-1df431db.entry.js → p-cb016c52.entry.js} +2 -2
- package/dist/calcite/{p-f80307a8.entry.js → p-cc2c16c4.entry.js} +2 -2
- package/dist/calcite/{p-ec7b54ca.js → p-cfaa9ea8.js} +2 -2
- package/dist/calcite/p-d010539f.entry.js +6 -0
- package/dist/calcite/p-d0681fe7.js +6 -0
- package/dist/calcite/{p-1ed5c382.js → p-d17b8ee9.js} +2 -2
- package/dist/calcite/{p-2a5bd5de.js → p-d25a6228.js} +1 -1
- package/dist/calcite/{p-6c655030.entry.js → p-d26767ec.entry.js} +2 -2
- package/dist/calcite/{p-e2380d5f.entry.js → p-d2f83c6a.entry.js} +2 -2
- package/dist/calcite/p-d4246ab6.js +6 -0
- package/dist/calcite/{p-9ac63c64.entry.js → p-d52deb05.entry.js} +2 -2
- package/dist/calcite/{p-9eb0a60c.entry.js → p-d5a92819.entry.js} +2 -2
- package/dist/calcite/{p-0207a04b.entry.js → p-d728f7e7.entry.js} +2 -2
- package/dist/calcite/{p-69333e74.entry.js → p-d935cc1b.entry.js} +2 -2
- package/dist/calcite/{p-22a21d2f.entry.js → p-da667566.entry.js} +2 -2
- package/dist/calcite/{p-eccd1832.entry.js → p-db293e50.entry.js} +2 -2
- package/dist/calcite/{p-12c4354b.entry.js → p-dcad31e0.entry.js} +2 -2
- package/dist/calcite/{p-f0a5c1cf.entry.js → p-ddb1b9bb.entry.js} +2 -2
- package/dist/calcite/{p-b3f707d1.js → p-deb7df1e.js} +1 -1
- package/dist/calcite/p-e2db7cb6.entry.js +6 -0
- package/dist/calcite/{p-676113f7.entry.js → p-e64e5cdc.entry.js} +2 -2
- package/dist/calcite/{p-a5925283.entry.js → p-e8d83a55.entry.js} +2 -2
- package/dist/calcite/p-f61babd1.js +6 -0
- package/dist/calcite/{p-67c2d744.entry.js → p-fb3e8b9b.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-eec7a74a.js → ExpandToggle-3cab12e1.js} +5 -5
- package/dist/cjs/{Heading-96c57bf1.js → Heading-79adac08.js} +3 -3
- package/dist/cjs/{app-globals-36bb7e5f.js → app-globals-0e5a6ce5.js} +2 -2
- package/dist/cjs/{array-144c5568.js → array-6a2dea2c.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +11 -11
- package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action.cjs.entry.js +7 -7
- package/dist/cjs/calcite-alert.cjs.entry.js +10 -10
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +11 -12
- package/dist/cjs/calcite-button.cjs.entry.js +9 -9
- package/dist/cjs/calcite-card.cjs.entry.js +7 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -9
- package/dist/cjs/calcite-chip.cjs.entry.js +7 -7
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +12 -12
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
- package/dist/cjs/calcite-filter.cjs.entry.js +9 -9
- package/dist/cjs/calcite-flow-item.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +8 -8
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +15 -15
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-input.cjs.entry.js +12 -12
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +6 -6
- package/dist/cjs/calcite-list_3.cjs.entry.js +10 -11
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +1281 -134
- package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
- package/dist/cjs/calcite-option_3.cjs.entry.js +9 -9
- 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 +33 -13
- package/dist/cjs/calcite-popover_2.cjs.entry.js +12 -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 +9 -9
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-rating.cjs.entry.js +9 -9
- 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 +9 -9
- package/dist/cjs/calcite-switch.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +54 -56
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +30 -12
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-7f4a8e10.js → conditionalSlot-1322fc35.js} +13 -3
- package/dist/cjs/{debounce-3d8e527c.js → debounce-0f9e9abc.js} +1 -1
- package/dist/cjs/{dom-1c0b6833.js → dom-13de8dae.js} +3 -4
- package/dist/cjs/{filter-a043da6d.js → filter-b64d328c.js} +2 -2
- package/dist/cjs/{floating-ui-78db6436.js → floating-ui-81762090.js} +4 -4
- package/dist/cjs/{form-5cda2366.js → form-5d8e6d3d.js} +3 -3
- package/dist/cjs/{guid-0bb5fc1b.js → guid-4c424c40.js} +1 -1
- package/dist/cjs/{index-5bdde370.js → index-a6176241.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-19caf709.js → interactive-4c92331d.js} +1 -1
- package/dist/cjs/{interfaces-e83765f7.js → interfaces-31dee91d.js} +1 -1
- package/dist/cjs/{key-42ab632f.js → key-98575516.js} +1 -1
- package/dist/cjs/{label-2cc97ee2.js → label-40d2674d.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-e755b3f7.js → locale-59a564a4.js} +37 -49
- package/dist/cjs/{math-976c29c4.js → math-434fe599.js} +1 -1
- package/dist/cjs/{nonChromiumPlatformUtils-0e526ecf.js → nonChromiumPlatformUtils-4af36414.js} +6 -6
- package/dist/cjs/{observers-bcbecbbd.js → observers-5bc9fe46.js} +1 -1
- package/dist/cjs/{openCloseComponent-edbc7b2a.js → openCloseComponent-67cd4a5b.js} +1 -1
- package/dist/cjs/{resources-17fc0687.js → resources-69bd2041.js} +1 -1
- package/dist/cjs/{resources-511507b8.js → resources-73628073.js} +1 -1
- package/dist/cjs/{resources-749ca3c0.js → resources-a28e66cd.js} +1 -1
- package/dist/cjs/{resources-5fdad010.js → resources-a665ff66.js} +1 -3
- package/dist/cjs/{resources-1a9c1993.js → resources-aace079b.js} +3 -5
- package/dist/cjs/{resources-b4931f11.js → resources-e3e0e1e3.js} +39 -15
- package/dist/cjs/{sortable.esm-037a4c16.js → sortable.esm-c1959d54.js} +1 -1
- package/dist/cjs/{utils-ecc37d9b.js → utils-62376f8f.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.js +1 -1
- package/dist/collection/components/alert/interfaces.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +3 -3
- package/dist/collection/components/block/resources.js +1 -2
- 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 +3 -3
- package/dist/collection/components/date-picker/resources.js +1 -2
- 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 +2 -2
- 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 +2 -2
- 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.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +2 -3
- package/dist/collection/components/list-item-group/resources.js +1 -2
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/modal.js +15 -28
- 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 +3 -3
- package/dist/collection/components/panel/resources.js +1 -2
- package/dist/collection/components/pick-list/pick-list.js +100 -2
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +31 -7
- package/dist/collection/components/pick-list/shared-list-render.js +3 -3
- package/dist/collection/components/pick-list-group/pick-list-group.js +2 -3
- package/dist/collection/components/pick-list-group/resources.js +1 -2
- 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 +3 -3
- package/dist/collection/components/popover/resources.js +1 -2
- 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 -3
- package/dist/collection/components/tip/tip.js +3 -3
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -2
- package/dist/collection/components/tip-manager/tip-manager.js +3 -3
- 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 +98 -2
- 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 +11 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +29 -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 +53 -0
- 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/locale.js +3 -3
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +33 -46
- 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 +2 -2
- 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 +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +2 -3
- 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 +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- 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 +2 -3
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +1275 -128
- package/dist/components/calcite-notice.js +1 -1
- 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 +3 -3
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +25 -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 +28 -3
- package/dist/components/calcite-tip.js +2 -4
- 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 +1 -1
- package/dist/components/calcite-value-list.js +23 -2
- 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 +1 -1
- package/dist/components/conditionalSlot.js +11 -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 +2 -3
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +2 -2
- package/dist/components/dropdown.js +1 -1
- package/dist/components/filter.js +2 -2
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +2 -2
- 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 +1 -1
- 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/loader.js +1 -1
- package/dist/components/locale.js +35 -47
- 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 +2 -3
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +2 -3
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +2 -3
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +34 -10
- 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-8d1a3315.js → ExpandToggle-c1666d9f.js} +5 -5
- package/dist/esm/{Heading-fdaf2441.js → Heading-6f3b27d7.js} +3 -3
- package/dist/esm/{app-globals-62f1ea5d.js → app-globals-dc53e887.js} +2 -2
- package/dist/esm/{array-a3f4690d.js → array-ec97ab21.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +11 -11
- package/dist/esm/calcite-action-group.entry.js +9 -9
- package/dist/esm/calcite-action-menu.entry.js +8 -8
- package/dist/esm/calcite-action-pad.entry.js +10 -10
- package/dist/esm/calcite-action.entry.js +7 -7
- package/dist/esm/calcite-alert.entry.js +10 -10
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +11 -12
- package/dist/esm/calcite-button.entry.js +9 -9
- package/dist/esm/calcite-card.entry.js +7 -7
- package/dist/esm/calcite-checkbox.entry.js +9 -9
- package/dist/esm/calcite-chip.entry.js +7 -7
- package/dist/esm/calcite-color-picker_3.entry.js +10 -10
- package/dist/esm/calcite-combobox_3.entry.js +14 -14
- package/dist/esm/calcite-date-picker_4.entry.js +12 -12
- package/dist/esm/calcite-dropdown_3.entry.js +11 -11
- package/dist/esm/calcite-fab.entry.js +6 -6
- package/dist/esm/calcite-filter.entry.js +9 -9
- package/dist/esm/calcite-flow-item.entry.js +7 -7
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +12 -12
- package/dist/esm/calcite-handle.entry.js +5 -5
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +8 -8
- package/dist/esm/calcite-input-date-picker.entry.js +15 -15
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +12 -12
- package/dist/esm/calcite-input-text.entry.js +9 -9
- package/dist/esm/calcite-input-time-picker_2.entry.js +11 -11
- package/dist/esm/calcite-input.entry.js +12 -12
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +6 -6
- package/dist/esm/calcite-list_3.entry.js +10 -11
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +1281 -134
- package/dist/esm/calcite-notice.entry.js +8 -8
- package/dist/esm/calcite-option_3.entry.js +9 -9
- 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 +33 -13
- package/dist/esm/calcite-popover_2.entry.js +12 -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 +9 -9
- package/dist/esm/calcite-radio-group_2.entry.js +8 -8
- package/dist/esm/calcite-rating.entry.js +9 -9
- 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 +9 -9
- package/dist/esm/calcite-switch.entry.js +9 -9
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +54 -56
- package/dist/esm/calcite-tooltip_2.entry.js +7 -7
- package/dist/esm/calcite-tree_2.entry.js +8 -8
- package/dist/esm/calcite-value-list_2.entry.js +30 -12
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-7a623ab3.js → conditionalSlot-65d395e3.js} +13 -3
- package/dist/esm/{debounce-65d04f40.js → debounce-150a7fe8.js} +1 -1
- package/dist/esm/{dom-6ced0696.js → dom-cc5c3984.js} +4 -4
- package/dist/esm/{filter-a94d668f.js → filter-1ebb2c6b.js} +2 -2
- package/dist/esm/{floating-ui-88f3cab2.js → floating-ui-93789309.js} +4 -4
- package/dist/esm/{form-796899b4.js → form-255c911d.js} +3 -3
- package/dist/esm/{guid-4e7e998d.js → guid-f9660e6f.js} +1 -1
- package/dist/esm/{index-ee2154b8.js → index-d2393e84.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-c01b3adc.js → interactive-26a4cd50.js} +1 -1
- package/dist/esm/{interfaces-6e1adc71.js → interfaces-36e4a241.js} +1 -1
- package/dist/esm/{key-29710632.js → key-a4eb4c7a.js} +1 -1
- package/dist/esm/{label-d97fd95f.js → label-958c6dcb.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-9344d29f.js → locale-356e61ad.js} +37 -49
- package/dist/esm/{math-43507cd0.js → math-edfa7bd5.js} +1 -1
- package/dist/esm/{nonChromiumPlatformUtils-733b22ab.js → nonChromiumPlatformUtils-0826d52b.js} +6 -6
- package/dist/esm/{observers-3e969148.js → observers-8a9fc943.js} +1 -1
- package/dist/esm/{openCloseComponent-2c95053e.js → openCloseComponent-759e2351.js} +1 -1
- package/dist/esm/{resources-2c83579b.js → resources-03d3cf60.js} +2 -3
- package/dist/esm/{resources-07ad5aa9.js → resources-0fd6d659.js} +1 -1
- package/dist/esm/{resources-78c5b4d1.js → resources-64a95f35.js} +1 -1
- package/dist/esm/{resources-a8c464a5.js → resources-b9c5aaf9.js} +1 -1
- package/dist/esm/{resources-f36e2798.js → resources-c578caf8.js} +38 -15
- package/dist/esm/{resources-bc4bdc72.js → resources-d313bb62.js} +4 -5
- package/dist/esm/{sortable.esm-a5c12724.js → sortable.esm-6298e963.js} +1 -1
- package/dist/esm/{utils-e8657244.js → utils-18a922e5.js} +1 -1
- package/dist/extras/docs-json.json +131 -1
- 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/block/resources.d.ts +0 -1
- package/dist/types/components/date-picker/resources.d.ts +0 -1
- package/dist/types/components/functional/Heading.d.ts +1 -1
- package/dist/types/components/list-item-group/resources.d.ts +0 -1
- package/dist/types/components/modal/modal.d.ts +4 -4
- package/dist/types/components/panel/resources.d.ts +0 -1
- package/dist/types/components/pick-list/pick-list.d.ts +24 -0
- package/dist/types/components/pick-list/shared-list-logic.d.ts +4 -1
- package/dist/types/components/pick-list/shared-list-render.d.ts +4 -1
- package/dist/types/components/pick-list-group/resources.d.ts +0 -1
- package/dist/types/components/popover/resources.d.ts +0 -1
- package/dist/types/components/tip/resources.d.ts +0 -2
- package/dist/types/components/tip-manager/resources.d.ts +0 -1
- package/dist/types/components/value-list/value-list.d.ts +23 -0
- package/dist/types/components.d.ts +65 -1
- package/dist/types/preact.d.ts +4 -2
- package/dist/types/utils/conditionalSlot.d.ts +16 -0
- package/dist/types/utils/dom.d.ts +34 -0
- package/dist/types/utils/focusTrapComponent.d.ts +33 -0
- package/dist/types/utils/locale.d.ts +1 -2
- package/dist/types/utils/number.d.ts +13 -8
- package/hydrate/index.js +1453 -248
- package/package.json +2 -2
- package/dist/calcite/p-079e3c1e.js +0 -6
- package/dist/calcite/p-1993b247.js +0 -6
- package/dist/calcite/p-1a291a99.entry.js +0 -6
- package/dist/calcite/p-23f31b98.entry.js +0 -6
- package/dist/calcite/p-3a4f8c9a.entry.js +0 -6
- package/dist/calcite/p-5d9f0c37.entry.js +0 -6
- package/dist/calcite/p-8557fe8d.entry.js +0 -6
- package/dist/calcite/p-86c3dd63.entry.js +0 -6
- package/dist/calcite/p-8afa3d3c.js +0 -6
- package/dist/calcite/p-8d81edd4.entry.js +0 -6
- package/dist/calcite/p-9460a0c0.js +0 -6
- package/dist/calcite/p-9c6f7a63.entry.js +0 -6
- package/dist/calcite/p-a5fed565.entry.js +0 -6
- package/dist/calcite/p-b3571ee3.js +0 -6
- package/dist/calcite/p-e1084c73.entry.js +0 -6
- package/dist/components/resources3.js +0 -33
|
@@ -1,22 +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.633
|
|
5
5
|
*/
|
|
6
6
|
import { h, Host } from "@stencil/core";
|
|
7
|
-
import { ensureId, focusElement, getSlotted
|
|
8
|
-
import { queryShadowRoot } from "@a11y/focus-trap/shadow";
|
|
9
|
-
import { isFocusable, isHidden } from "@a11y/focus-trap/focusable";
|
|
7
|
+
import { ensureId, focusElement, getSlotted } from "../../utils/dom";
|
|
10
8
|
import { CSS, ICONS, SLOTS, TEXT } from "./resources";
|
|
11
9
|
import { createObserver } from "../../utils/observers";
|
|
12
10
|
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
13
11
|
import { connectOpenCloseComponent, disconnectOpenCloseComponent } from "../../utils/openCloseComponent";
|
|
14
|
-
|
|
15
|
-
return isCalciteFocusable(el) || isFocusable(el);
|
|
16
|
-
};
|
|
17
|
-
const getFocusableElements = (el) => {
|
|
18
|
-
return queryShadowRoot(el, isHidden, isFocusableExtended);
|
|
19
|
-
};
|
|
12
|
+
import { connectFocusTrap, activateFocusTrap, deactivateFocusTrap } from "../../utils/focusTrapComponent";
|
|
20
13
|
/**
|
|
21
14
|
* @slot header - A slot for adding header text.
|
|
22
15
|
* @slot content - A slot for adding the component's content.
|
|
@@ -83,10 +76,13 @@ export class Modal {
|
|
|
83
76
|
this.setTransitionEl = (el) => {
|
|
84
77
|
this.transitionEl = el;
|
|
85
78
|
connectOpenCloseComponent(this);
|
|
79
|
+
this.focusTrapEl = el;
|
|
80
|
+
connectFocusTrap(this);
|
|
86
81
|
};
|
|
87
82
|
this.openEnd = () => {
|
|
88
83
|
this.setFocus();
|
|
89
84
|
this.el.removeEventListener("calciteModalOpen", this.openEnd);
|
|
85
|
+
activateFocusTrap(this);
|
|
90
86
|
};
|
|
91
87
|
this.handleOutsideClose = () => {
|
|
92
88
|
if (this.disableOutsideClose) {
|
|
@@ -99,22 +95,9 @@ export class Modal {
|
|
|
99
95
|
return this.beforeClose(this.el).then(() => {
|
|
100
96
|
this.open = false;
|
|
101
97
|
this.isOpen = false;
|
|
102
|
-
focusElement(this.previousActiveElement);
|
|
103
98
|
this.removeOverflowHiddenClass();
|
|
104
99
|
});
|
|
105
100
|
};
|
|
106
|
-
this.focusFirstElement = () => {
|
|
107
|
-
focusElement(this.disableCloseButton ? getFocusableElements(this.el)[0] : this.closeButtonEl);
|
|
108
|
-
};
|
|
109
|
-
this.focusLastElement = () => {
|
|
110
|
-
const focusableElements = getFocusableElements(this.el).filter((el) => !el.getAttribute("data-focus-fence"));
|
|
111
|
-
if (focusableElements.length > 0) {
|
|
112
|
-
focusElement(focusableElements[focusableElements.length - 1]);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
focusElement(this.closeButtonEl);
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
101
|
this.updateFooterVisibility = () => {
|
|
119
102
|
this.hasFooter = !!getSlotted(this.el, [SLOTS.back, SLOTS.primary, SLOTS.secondary]);
|
|
120
103
|
};
|
|
@@ -149,16 +132,17 @@ export class Modal {
|
|
|
149
132
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
150
133
|
disconnectConditionalSlotComponent(this);
|
|
151
134
|
disconnectOpenCloseComponent(this);
|
|
135
|
+
deactivateFocusTrap(this);
|
|
152
136
|
}
|
|
153
137
|
render() {
|
|
154
138
|
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), h("div", { class: {
|
|
155
139
|
[CSS.modal]: true,
|
|
156
140
|
[CSS.modalOpen]: this.isOpen
|
|
157
|
-
}, ref: this.setTransitionEl }, h("div", {
|
|
141
|
+
}, ref: this.setTransitionEl }, h("div", { class: CSS.header }, this.renderCloseButton(), h("header", { class: CSS.title }, h("slot", { name: CSS.header }))), h("div", { class: {
|
|
158
142
|
content: true,
|
|
159
143
|
"content--spaced": !this.noPadding,
|
|
160
144
|
"content--no-footer": !this.hasFooter
|
|
161
|
-
}, ref: (el) => (this.modalContent = el) }, h("slot", { name: SLOTS.content })), this.renderFooter()
|
|
145
|
+
}, ref: (el) => (this.modalContent = el) }, h("slot", { name: SLOTS.content })), this.renderFooter())));
|
|
162
146
|
}
|
|
163
147
|
renderFooter() {
|
|
164
148
|
return this.hasFooter ? (h("div", { class: CSS.footer, key: "footer" }, h("span", { class: CSS.back }, h("slot", { name: SLOTS.back })), h("span", { class: CSS.secondary }, h("slot", { name: SLOTS.secondary })), h("span", { class: CSS.primary }, h("slot", { name: SLOTS.primary })))) : null;
|
|
@@ -225,8 +209,11 @@ export class Modal {
|
|
|
225
209
|
* @param focusId
|
|
226
210
|
*/
|
|
227
211
|
async setFocus(focusId) {
|
|
228
|
-
const
|
|
229
|
-
|
|
212
|
+
const { closeButtonEl } = this;
|
|
213
|
+
if (closeButtonEl && focusId === "close-button") {
|
|
214
|
+
return focusElement(closeButtonEl);
|
|
215
|
+
}
|
|
216
|
+
activateFocusTrap(this);
|
|
230
217
|
}
|
|
231
218
|
/**
|
|
232
219
|
* Sets the scroll top of the component's content.
|
|
@@ -260,6 +247,7 @@ export class Modal {
|
|
|
260
247
|
onClose() {
|
|
261
248
|
this.transitionEl.classList.remove(CSS.closingIdle, CSS.closingActive);
|
|
262
249
|
this.calciteModalClose.emit();
|
|
250
|
+
deactivateFocusTrap(this);
|
|
263
251
|
}
|
|
264
252
|
activeHandler(value) {
|
|
265
253
|
this.open = value;
|
|
@@ -278,7 +266,6 @@ export class Modal {
|
|
|
278
266
|
}
|
|
279
267
|
/** Open the modal */
|
|
280
268
|
openModal() {
|
|
281
|
-
this.previousActiveElement = document.activeElement;
|
|
282
269
|
this.el.addEventListener("calciteModalOpen", this.openEnd);
|
|
283
270
|
this.open = true;
|
|
284
271
|
this.isOpen = true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.633
|
|
5
5
|
*/
|
|
6
6
|
import { h } from "@stencil/core";
|
|
7
7
|
import { CSS, SLOTS, TEXT } from "./resources";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.633
|
|
5
5
|
*/
|
|
6
6
|
import { h } from "@stencil/core";
|
|
7
7
|
import { createObserver } from "../../utils/observers";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.633
|
|
5
5
|
*/
|
|
6
6
|
import { h, Fragment } from "@stencil/core";
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.633
|
|
5
5
|
*/
|
|
6
6
|
import { h, Fragment } from "@stencil/core";
|
|
7
7
|
import { connectLocalized, disconnectLocalized, numberStringFormatter } from "../../utils/locale";
|
|
@@ -1,10 +1,10 @@
|
|
|
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.633
|
|
5
5
|
*/
|
|
6
6
|
import { h, Fragment } from "@stencil/core";
|
|
7
|
-
import { CSS,
|
|
7
|
+
import { CSS, ICONS, SLOTS, TEXT } from "./resources";
|
|
8
8
|
import { getElementDir, toAriaBoolean } from "../../utils/dom";
|
|
9
9
|
import { Heading } from "../functional/Heading";
|
|
10
10
|
import { SLOTS as ACTION_MENU_SLOTS } from "../action-menu/resources";
|
|
@@ -263,7 +263,7 @@ export class Panel {
|
|
|
263
263
|
}
|
|
264
264
|
renderHeaderContent() {
|
|
265
265
|
const { heading, headingLevel, summary, description, hasHeaderContent } = this;
|
|
266
|
-
const headingNode = heading ? (h(Heading, { class: CSS.heading, level: headingLevel
|
|
266
|
+
const headingNode = heading ? (h(Heading, { class: CSS.heading, level: headingLevel }, heading)) : null;
|
|
267
267
|
const descriptionNode = description || summary ? h("span", { class: CSS.description }, description || summary) : null;
|
|
268
268
|
return !hasHeaderContent && (headingNode || descriptionNode) ? (h("div", { class: CSS.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
|
|
269
269
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.633
|
|
5
5
|
*/
|
|
6
6
|
export const CSS = {
|
|
7
7
|
backButton: "back-button",
|
|
@@ -41,4 +41,3 @@ export const TEXT = {
|
|
|
41
41
|
open: "Open",
|
|
42
42
|
options: "Options"
|
|
43
43
|
};
|
|
44
|
-
export const HEADING_LEVEL = 3;
|
|
@@ -1,11 +1,11 @@
|
|
|
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.633
|
|
5
5
|
*/
|
|
6
6
|
import { h } from "@stencil/core";
|
|
7
7
|
import { ICON_TYPES } from "./resources";
|
|
8
|
-
import { calciteListItemChangeHandler, calciteInternalListItemValueChangeHandler, cleanUpObserver, deselectSiblingItems, deselectRemovedItems, getItemData, handleFilter, calciteListFocusOutHandler, initialize, initializeObserver, mutationObserverCallback, selectSiblings, setUpItems, keyDownHandler, setFocus, removeItem } from "./shared-list-logic";
|
|
8
|
+
import { calciteListItemChangeHandler, calciteInternalListItemValueChangeHandler, cleanUpObserver, deselectSiblingItems, deselectRemovedItems, getItemData, handleFilter, handleFilterEvent, handleInitialFilter, calciteListFocusOutHandler, initialize, initializeObserver, mutationObserverCallback, selectSiblings, setUpItems, keyDownHandler, setFocus, removeItem } from "./shared-list-logic";
|
|
9
9
|
import List from "./shared-list-render";
|
|
10
10
|
import { createObserver } from "../../utils/observers";
|
|
11
11
|
import { updateHostInteraction } from "../../utils/interactive";
|
|
@@ -24,6 +24,18 @@ export class PickList {
|
|
|
24
24
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
25
25
|
*/
|
|
26
26
|
this.disabled = false;
|
|
27
|
+
/**
|
|
28
|
+
* **read-only** The currently filtered items
|
|
29
|
+
*
|
|
30
|
+
* @readonly
|
|
31
|
+
*/
|
|
32
|
+
this.filteredItems = [];
|
|
33
|
+
/**
|
|
34
|
+
* **read-only** The currently filtered items
|
|
35
|
+
*
|
|
36
|
+
* @readonly
|
|
37
|
+
*/
|
|
38
|
+
this.filteredData = [];
|
|
27
39
|
/**
|
|
28
40
|
* When `true`, an input appears at the top of the list that can be used by end users to filter items in the list.
|
|
29
41
|
*/
|
|
@@ -55,10 +67,14 @@ export class PickList {
|
|
|
55
67
|
this.setFilterEl = (el) => {
|
|
56
68
|
this.filterEl = el;
|
|
57
69
|
};
|
|
70
|
+
this.setFilteredItems = (filteredItems) => {
|
|
71
|
+
this.filteredItems = filteredItems;
|
|
72
|
+
};
|
|
58
73
|
this.deselectRemovedItems = deselectRemovedItems.bind(this);
|
|
59
74
|
this.deselectSiblingItems = deselectSiblingItems.bind(this);
|
|
60
75
|
this.selectSiblings = selectSiblings.bind(this);
|
|
61
76
|
this.handleFilter = handleFilter.bind(this);
|
|
77
|
+
this.handleFilterEvent = handleFilterEvent.bind(this);
|
|
62
78
|
this.getItemData = getItemData.bind(this);
|
|
63
79
|
this.keyDownHandler = keyDownHandler.bind(this);
|
|
64
80
|
}
|
|
@@ -74,6 +90,9 @@ export class PickList {
|
|
|
74
90
|
disconnectedCallback() {
|
|
75
91
|
cleanUpObserver.call(this);
|
|
76
92
|
}
|
|
93
|
+
componentDidLoad() {
|
|
94
|
+
handleInitialFilter.call(this);
|
|
95
|
+
}
|
|
77
96
|
componentDidRender() {
|
|
78
97
|
updateHostInteraction(this);
|
|
79
98
|
}
|
|
@@ -167,6 +186,53 @@ export class PickList {
|
|
|
167
186
|
"reflect": true,
|
|
168
187
|
"defaultValue": "false"
|
|
169
188
|
},
|
|
189
|
+
"filteredItems": {
|
|
190
|
+
"type": "unknown",
|
|
191
|
+
"mutable": true,
|
|
192
|
+
"complexType": {
|
|
193
|
+
"original": "HTMLCalcitePickListItemElement[]",
|
|
194
|
+
"resolved": "HTMLCalcitePickListItemElement[]",
|
|
195
|
+
"references": {
|
|
196
|
+
"HTMLCalcitePickListItemElement": {
|
|
197
|
+
"location": "global"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"required": false,
|
|
202
|
+
"optional": false,
|
|
203
|
+
"docs": {
|
|
204
|
+
"tags": [{
|
|
205
|
+
"name": "readonly",
|
|
206
|
+
"text": undefined
|
|
207
|
+
}],
|
|
208
|
+
"text": "**read-only** The currently filtered items"
|
|
209
|
+
},
|
|
210
|
+
"defaultValue": "[]"
|
|
211
|
+
},
|
|
212
|
+
"filteredData": {
|
|
213
|
+
"type": "unknown",
|
|
214
|
+
"mutable": true,
|
|
215
|
+
"complexType": {
|
|
216
|
+
"original": "ItemData",
|
|
217
|
+
"resolved": "{ label: string; description: string; metadata: Record<string, unknown>; value: string; }[]",
|
|
218
|
+
"references": {
|
|
219
|
+
"ItemData": {
|
|
220
|
+
"location": "import",
|
|
221
|
+
"path": "./shared-list-logic"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"required": false,
|
|
226
|
+
"optional": false,
|
|
227
|
+
"docs": {
|
|
228
|
+
"tags": [{
|
|
229
|
+
"name": "readonly",
|
|
230
|
+
"text": undefined
|
|
231
|
+
}],
|
|
232
|
+
"text": "**read-only** The currently filtered items"
|
|
233
|
+
},
|
|
234
|
+
"defaultValue": "[]"
|
|
235
|
+
},
|
|
170
236
|
"filterEnabled": {
|
|
171
237
|
"type": "boolean",
|
|
172
238
|
"mutable": false,
|
|
@@ -202,6 +268,23 @@ export class PickList {
|
|
|
202
268
|
"attribute": "filter-placeholder",
|
|
203
269
|
"reflect": true
|
|
204
270
|
},
|
|
271
|
+
"filterText": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"mutable": true,
|
|
274
|
+
"complexType": {
|
|
275
|
+
"original": "string",
|
|
276
|
+
"resolved": "string",
|
|
277
|
+
"references": {}
|
|
278
|
+
},
|
|
279
|
+
"required": false,
|
|
280
|
+
"optional": false,
|
|
281
|
+
"docs": {
|
|
282
|
+
"tags": [],
|
|
283
|
+
"text": "Text for the filter input field."
|
|
284
|
+
},
|
|
285
|
+
"attribute": "filter-text",
|
|
286
|
+
"reflect": true
|
|
287
|
+
},
|
|
205
288
|
"headingLevel": {
|
|
206
289
|
"type": "number",
|
|
207
290
|
"mutable": false,
|
|
@@ -309,6 +392,21 @@ export class PickList {
|
|
|
309
392
|
}
|
|
310
393
|
}
|
|
311
394
|
}
|
|
395
|
+
}, {
|
|
396
|
+
"method": "calciteListFilter",
|
|
397
|
+
"name": "calciteListFilter",
|
|
398
|
+
"bubbles": true,
|
|
399
|
+
"cancelable": false,
|
|
400
|
+
"composed": true,
|
|
401
|
+
"docs": {
|
|
402
|
+
"tags": [],
|
|
403
|
+
"text": "Emits when a filter has changed."
|
|
404
|
+
},
|
|
405
|
+
"complexType": {
|
|
406
|
+
"original": "void",
|
|
407
|
+
"resolved": "void",
|
|
408
|
+
"references": {}
|
|
409
|
+
}
|
|
312
410
|
}];
|
|
313
411
|
}
|
|
314
412
|
static get methods() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.633
|
|
5
5
|
*/
|
|
6
6
|
import { debounce } from "lodash-es";
|
|
7
7
|
import { focusElement, getSlotted } from "../../utils/dom";
|
|
@@ -22,6 +22,7 @@ export function initialize() {
|
|
|
22
22
|
this.setUpItems();
|
|
23
23
|
this.setUpFilter();
|
|
24
24
|
this.emitCalciteListChange = debounce(internalCalciteListChangeEvent.bind(this), 0);
|
|
25
|
+
this.emitCalciteListFilter = debounce(internalCalciteListFilterEvent.bind(this), 0);
|
|
25
26
|
}
|
|
26
27
|
export function initializeObserver() {
|
|
27
28
|
var _a;
|
|
@@ -137,6 +138,9 @@ export function getItemIndex(list, item) {
|
|
|
137
138
|
function filterOutDisabled(items) {
|
|
138
139
|
return items.filter((item) => !item.disabled);
|
|
139
140
|
}
|
|
141
|
+
export function internalCalciteListFilterEvent() {
|
|
142
|
+
this.calciteListFilter.emit();
|
|
143
|
+
}
|
|
140
144
|
export function internalCalciteListChangeEvent() {
|
|
141
145
|
this.calciteListChange.emit(this.selectedValues);
|
|
142
146
|
}
|
|
@@ -255,26 +259,27 @@ export function selectSiblings(item, deselect = false) {
|
|
|
255
259
|
});
|
|
256
260
|
}
|
|
257
261
|
let groups;
|
|
258
|
-
export function handleFilter(
|
|
259
|
-
|
|
260
|
-
const
|
|
262
|
+
export function handleFilter(emit = false) {
|
|
263
|
+
var _a;
|
|
264
|
+
const { filteredData, filterText } = this;
|
|
265
|
+
const values = filteredData.map((item) => item.value);
|
|
261
266
|
let hasSelectedMatch = false;
|
|
262
267
|
if (!groups) {
|
|
263
268
|
groups = new Set();
|
|
264
269
|
}
|
|
265
|
-
const matchedItems = this.items.filter((item) => {
|
|
270
|
+
const matchedItems = ((_a = this.items) === null || _a === void 0 ? void 0 : _a.filter((item) => {
|
|
266
271
|
const parent = item.parentElement;
|
|
267
272
|
const grouped = parent.matches("calcite-pick-list-group");
|
|
268
273
|
if (grouped) {
|
|
269
274
|
groups.add(parent);
|
|
270
275
|
}
|
|
271
|
-
const matches = values.includes(item.value);
|
|
276
|
+
const matches = filterText ? values.includes(item.value) : true;
|
|
272
277
|
item.hidden = !matches;
|
|
273
278
|
if (!hasSelectedMatch) {
|
|
274
279
|
hasSelectedMatch = matches && item.selected;
|
|
275
280
|
}
|
|
276
281
|
return matches;
|
|
277
|
-
});
|
|
282
|
+
})) || [];
|
|
278
283
|
groups.forEach((group) => {
|
|
279
284
|
const hasAtLeastOneMatch = matchedItems.some((item) => group.contains(item));
|
|
280
285
|
group.hidden = !hasAtLeastOneMatch;
|
|
@@ -293,6 +298,25 @@ export function handleFilter(event) {
|
|
|
293
298
|
if (matchedItems.length > 0 && !hasSelectedMatch && !this.multiple) {
|
|
294
299
|
toggleSingleSelectItemTabbing(matchedItems[0], true);
|
|
295
300
|
}
|
|
301
|
+
this.setFilteredItems(matchedItems);
|
|
302
|
+
if (emit) {
|
|
303
|
+
this.emitCalciteListFilter();
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
export function handleInitialFilter() {
|
|
307
|
+
var _a;
|
|
308
|
+
const filteredItems = (_a = this.filterEl) === null || _a === void 0 ? void 0 : _a.filteredItems;
|
|
309
|
+
if (filteredItems) {
|
|
310
|
+
this.filteredData = filteredItems;
|
|
311
|
+
}
|
|
312
|
+
this.handleFilter();
|
|
313
|
+
}
|
|
314
|
+
export function handleFilterEvent(event) {
|
|
315
|
+
event.stopPropagation();
|
|
316
|
+
const { filteredItems, value } = event.currentTarget;
|
|
317
|
+
this.filterText = value;
|
|
318
|
+
this.filteredData = filteredItems;
|
|
319
|
+
this.handleFilter(true);
|
|
296
320
|
}
|
|
297
321
|
export function getItemData() {
|
|
298
322
|
return this.items.map((item) => ({
|
|
@@ -1,13 +1,13 @@
|
|
|
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.633
|
|
5
5
|
*/
|
|
6
6
|
import { h, Host } from "@stencil/core";
|
|
7
7
|
import { toAriaBoolean } from "../../utils/dom";
|
|
8
8
|
import { CSS, SLOTS } from "./resources";
|
|
9
|
-
export const List = ({ props: { disabled, loading, filterEnabled, dataForFilter,
|
|
9
|
+
export const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handleFilterEvent, filterPlaceholder, filterText, setFilterEl, dragEnabled, storeAssistiveEl }, ...rest }) => {
|
|
10
10
|
const defaultSlot = h("slot", null);
|
|
11
|
-
return (h(Host, { "aria-busy": toAriaBoolean(loading), role: "menu", ...rest }, h("section", null, dragEnabled ? (h("span", { "aria-live": "assertive", class: "assistive-text", ref: storeAssistiveEl })) : null, h("header", { class: { [CSS.sticky]: true } }, filterEnabled ? (h("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange:
|
|
11
|
+
return (h(Host, { "aria-busy": toAriaBoolean(loading), role: "menu", ...rest }, h("section", null, dragEnabled ? (h("span", { "aria-live": "assertive", class: "assistive-text", ref: storeAssistiveEl })) : null, h("header", { class: { [CSS.sticky]: true } }, filterEnabled ? (h("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilterEvent, placeholder: filterPlaceholder, ref: setFilterEl, value: filterText })) : null, h("slot", { name: SLOTS.menuActions })), loading ? h("calcite-scrim", { loading: loading }) : null, defaultSlot)));
|
|
12
12
|
};
|
|
13
13
|
export default List;
|
|
@@ -1,11 +1,10 @@
|
|
|
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.633
|
|
5
5
|
*/
|
|
6
6
|
import { h, Fragment } from "@stencil/core";
|
|
7
7
|
import { CSS, SLOTS } from "./resources";
|
|
8
|
-
import { HEADING_LEVEL } from "./resources";
|
|
9
8
|
import { getSlotted } from "../../utils/dom";
|
|
10
9
|
import { Heading, constrainHeadingLevel } from "../functional/Heading";
|
|
11
10
|
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
@@ -40,7 +39,7 @@ export class PickListGroup {
|
|
|
40
39
|
const title = groupTitle;
|
|
41
40
|
const parentLevel = (_a = el.closest("calcite-pick-list")) === null || _a === void 0 ? void 0 : _a.headingLevel;
|
|
42
41
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
43
|
-
const level = headingLevel || relativeLevel
|
|
42
|
+
const level = headingLevel || relativeLevel;
|
|
44
43
|
return (h(Fragment, null, title ? (h(Heading, { class: CSS.heading, level: level }, title)) : null, h("slot", { name: SLOTS.parentItem }), h("section", { class: sectionClasses }, h("slot", null))));
|
|
45
44
|
}
|
|
46
45
|
static get is() { return "calcite-pick-list-group"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.633
|
|
5
5
|
*/
|
|
6
6
|
export const CSS = {
|
|
7
7
|
heading: "heading",
|
|
@@ -11,4 +11,3 @@ export const CSS = {
|
|
|
11
11
|
export const SLOTS = {
|
|
12
12
|
parentItem: "parent-item"
|
|
13
13
|
};
|
|
14
|
-
export const HEADING_LEVEL = 3;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.633
|
|
5
5
|
*/
|
|
6
6
|
import { Fragment, h } from "@stencil/core";
|
|
7
7
|
import { CSS, ICONS, SLOTS, TEXT } from "./resources";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.633
|
|
5
5
|
*/
|
|
6
6
|
import { isPrimaryPointerButton } from "../../utils/dom";
|
|
7
7
|
import { isActivationKey } from "../../utils/key";
|
|
@@ -1,10 +1,10 @@
|
|
|
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.633
|
|
5
5
|
*/
|
|
6
6
|
import { forceUpdate, Host, h } from "@stencil/core";
|
|
7
|
-
import { CSS, ARIA_CONTROLS, ARIA_EXPANDED,
|
|
7
|
+
import { CSS, ARIA_CONTROLS, ARIA_EXPANDED, TEXT, defaultPopoverPlacement } from "./resources";
|
|
8
8
|
import { FloatingCSS, connectFloatingUI, disconnectFloatingUI, defaultOffsetDistance, filterComputedPlacements, reposition, updateAfterClose } from "../../utils/floating-ui";
|
|
9
9
|
import { guid } from "../../utils/guid";
|
|
10
10
|
import { queryElementRoots, toAriaBoolean } from "../../utils/dom";
|
|
@@ -306,7 +306,7 @@ export class Popover {
|
|
|
306
306
|
}
|
|
307
307
|
renderHeader() {
|
|
308
308
|
const { heading, headingLevel } = this;
|
|
309
|
-
const headingNode = heading ? (h(Heading, { class: CSS.heading, level: headingLevel
|
|
309
|
+
const headingNode = heading ? (h(Heading, { class: CSS.heading, level: headingLevel }, heading)) : null;
|
|
310
310
|
return headingNode ? (h("div", { class: CSS.header }, headingNode, this.renderCloseButton())) : null;
|
|
311
311
|
}
|
|
312
312
|
render() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.633
|
|
5
5
|
*/
|
|
6
6
|
export const CSS = {
|
|
7
7
|
container: "container",
|
|
@@ -21,4 +21,3 @@ export const TEXT = {
|
|
|
21
21
|
export const defaultPopoverPlacement = "auto";
|
|
22
22
|
export const ARIA_CONTROLS = "aria-controls";
|
|
23
23
|
export const ARIA_EXPANDED = "aria-expanded";
|
|
24
|
-
export const HEADING_LEVEL = 2;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.633
|
|
5
5
|
*/
|
|
6
6
|
import { h } from "@stencil/core";
|
|
7
7
|
import { createObserver } from "../../utils/observers";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.633
|
|
5
5
|
*/
|
|
6
6
|
import { h } from "@stencil/core";
|
|
7
7
|
export class Progress {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.633
|
|
5
5
|
*/
|
|
6
6
|
import { h, Host } from "@stencil/core";
|
|
7
7
|
import { guid } from "../../utils/guid";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.633
|
|
5
5
|
*/
|
|
6
6
|
import { Host, h } from "@stencil/core";
|
|
7
7
|
import { createObserver } from "../../utils/observers";
|