@esri/calcite-components 1.0.0-next.597 → 1.0.0-next.599
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-1085e82f.js → p-005f18b9.js} +2 -2
- package/dist/calcite/{p-c2258fac.js → p-06833f7a.js} +1 -1
- package/dist/calcite/{p-2a88fa13.js → p-0e0e4cba.js} +1 -1
- package/dist/calcite/p-13c2c05b.entry.js +6 -0
- package/dist/calcite/p-17b42586.entry.js +6 -0
- package/dist/calcite/{p-ff82e6f2.entry.js → p-191be147.entry.js} +2 -2
- package/dist/calcite/{p-034710a1.js → p-1a3a60e3.js} +1 -1
- package/dist/calcite/{p-80a6379c.entry.js → p-1d0f773c.entry.js} +2 -2
- package/dist/calcite/{p-ce171933.entry.js → p-1d8ae7a0.entry.js} +2 -2
- package/dist/calcite/{p-5dc47d03.js → p-1d91de63.js} +1 -1
- package/dist/calcite/{p-fd6d1ed1.js → p-1ea21d0c.js} +1 -1
- package/dist/calcite/{p-a71a4bc5.entry.js → p-233023ca.entry.js} +2 -2
- package/dist/calcite/{p-b072ee90.js → p-25701696.js} +2 -2
- package/dist/calcite/p-284265e6.entry.js +6 -0
- package/dist/calcite/{p-14c442cb.entry.js → p-2856812b.entry.js} +2 -2
- package/dist/calcite/{p-bb21323e.entry.js → p-2882dc12.entry.js} +2 -2
- package/dist/calcite/{p-06505dc6.entry.js → p-29078eb8.entry.js} +2 -2
- package/dist/calcite/{p-6e070c45.entry.js → p-2f412d05.entry.js} +2 -2
- package/dist/calcite/p-32ceedc9.js +6 -0
- package/dist/calcite/p-36f2af39.entry.js +6 -0
- package/dist/calcite/{p-205462c9.js → p-3d01121e.js} +1 -1
- package/dist/calcite/{p-dfd51f34.entry.js → p-3f12b5de.entry.js} +2 -2
- package/dist/calcite/{p-975aba66.js → p-453078ec.js} +1 -1
- package/dist/calcite/{p-576a4d3b.js → p-454dc870.js} +2 -2
- package/dist/calcite/{p-016cee24.entry.js → p-4b862ca0.entry.js} +2 -2
- package/dist/calcite/{p-91db8a1d.entry.js → p-4c078d40.entry.js} +2 -2
- package/dist/calcite/{p-d16a1324.js → p-513442c5.js} +1 -1
- package/dist/calcite/p-59e80436.entry.js +6 -0
- package/dist/calcite/{p-1b9e3fb0.entry.js → p-5e6bfb56.entry.js} +2 -2
- package/dist/calcite/{p-a25cc528.entry.js → p-6e713b6e.entry.js} +2 -2
- package/dist/calcite/{p-7e36e2c5.entry.js → p-6e8c458d.entry.js} +2 -2
- package/dist/calcite/{p-d758a89d.entry.js → p-70857f14.entry.js} +2 -2
- package/dist/calcite/{p-179ed97a.js → p-73128db6.js} +1 -1
- package/dist/calcite/{p-67890d9f.js → p-7bc07fd5.js} +2 -2
- package/dist/calcite/p-7d0eb006.entry.js +6 -0
- package/dist/calcite/{p-228315da.entry.js → p-7ec93ddb.entry.js} +2 -2
- package/dist/calcite/{p-ec7e67d0.entry.js → p-8932b151.entry.js} +2 -2
- package/dist/calcite/{p-ce15d4a4.entry.js → p-8de8d255.entry.js} +2 -2
- package/dist/calcite/p-8f204210.js +6 -0
- package/dist/calcite/{p-9804459d.entry.js → p-950c2a35.entry.js} +2 -2
- package/dist/calcite/{p-0043efc4.js → p-97dea8bc.js} +1 -1
- package/dist/calcite/{p-ed51bd87.entry.js → p-9a12da19.entry.js} +2 -2
- package/dist/calcite/{p-627b4177.js → p-9c31e0d7.js} +1 -1
- package/dist/calcite/{p-d465da16.entry.js → p-9cc52c48.entry.js} +2 -2
- package/dist/calcite/p-9ed5067b.entry.js +6 -0
- package/dist/calcite/{p-6505334e.entry.js → p-9f34b8f6.entry.js} +2 -2
- package/dist/calcite/{p-ba334a9d.entry.js → p-a0199d1e.entry.js} +2 -2
- package/dist/calcite/{p-a7626d19.entry.js → p-a124f1d6.entry.js} +2 -2
- package/dist/calcite/{p-3d1ef84a.entry.js → p-a424b107.entry.js} +2 -2
- package/dist/calcite/{p-21931632.entry.js → p-a509a40c.entry.js} +2 -2
- package/dist/calcite/{p-d6067141.entry.js → p-a9a679bd.entry.js} +2 -2
- package/dist/calcite/{p-a0db47b9.js → p-ac30a477.js} +1 -1
- package/dist/calcite/p-b25685c5.js +6 -0
- package/dist/calcite/{p-f64286c8.entry.js → p-b49aaeaf.entry.js} +2 -2
- package/dist/calcite/{p-b9542a0a.js → p-b6361f79.js} +1 -1
- package/dist/calcite/{p-46ff1ae6.entry.js → p-b75011a8.entry.js} +2 -2
- package/dist/calcite/{p-f827044c.entry.js → p-bb2eb795.entry.js} +2 -2
- package/dist/calcite/{p-da5fac1a.entry.js → p-c497f821.entry.js} +2 -2
- package/dist/calcite/{p-10c17d1c.entry.js → p-c6a92e9e.entry.js} +2 -2
- package/dist/calcite/p-cad9a78a.entry.js +6 -0
- package/dist/calcite/{p-6b8d9887.js → p-caffc253.js} +2 -2
- package/dist/calcite/{p-65e8434d.js → p-d16fb192.js} +1 -1
- package/dist/calcite/{p-d4bab92e.entry.js → p-d2c5f524.entry.js} +2 -2
- package/dist/calcite/{p-ec1d7ff7.entry.js → p-d6b3c812.entry.js} +2 -2
- package/dist/calcite/{p-2e141574.entry.js → p-d7d50796.entry.js} +2 -2
- package/dist/calcite/{p-ae8f6623.entry.js → p-d927a254.entry.js} +2 -2
- package/dist/calcite/{p-421dc091.entry.js → p-d99531a9.entry.js} +2 -2
- package/dist/calcite/{p-fb5602cf.js → p-dbd273a7.js} +2 -2
- package/dist/calcite/{p-f66dfaea.entry.js → p-dffaa95f.entry.js} +2 -2
- package/dist/calcite/{p-b7dafefc.entry.js → p-e2ce697c.entry.js} +2 -2
- package/dist/calcite/{p-61cbec79.entry.js → p-e2f1a027.entry.js} +2 -2
- package/dist/calcite/{p-5da89821.entry.js → p-e36d406e.entry.js} +2 -2
- package/dist/calcite/p-e44e6774.entry.js +6 -0
- package/dist/calcite/{p-4e7b4c6c.entry.js → p-e5223ee8.entry.js} +2 -2
- package/dist/calcite/p-ea074205.js +6 -0
- package/dist/calcite/{p-86384397.entry.js → p-ee64ea59.entry.js} +2 -2
- package/dist/calcite/p-ef23a2c9.entry.js +6 -0
- package/dist/calcite/{p-19c7faaf.entry.js → p-efe49309.entry.js} +2 -2
- package/dist/calcite/{p-3d3d179c.js → p-f02e42cd.js} +2 -2
- package/dist/calcite/{p-1421f9ec.js → p-f037ae1d.js} +1 -1
- package/dist/calcite/{p-7dddc346.js → p-f3b38995.js} +2 -2
- package/dist/calcite/p-f5396d1a.entry.js +6 -0
- package/dist/calcite/{p-f94b6442.entry.js → p-f5a4f3cc.entry.js} +2 -2
- package/dist/calcite/{p-6bf1fe3b.entry.js → p-f88659fb.entry.js} +2 -2
- package/dist/calcite/{p-df9538a5.entry.js → p-fbe73244.entry.js} +2 -2
- package/dist/calcite/{p-36aa3ea2.entry.js → p-fd9260fe.entry.js} +2 -2
- package/dist/calcite/{p-5a81c608.entry.js → p-fec55310.entry.js} +2 -2
- package/dist/calcite/{p-67c0d879.js → p-ff3788c2.js} +1 -1
- package/dist/cjs/{ExpandToggle-73285037.js → ExpandToggle-ada2cb3c.js} +5 -5
- package/dist/cjs/{Heading-5409de6d.js → Heading-588ecb82.js} +2 -2
- package/dist/cjs/{app-globals-77859a02.js → app-globals-f0dc19ca.js} +2 -2
- package/dist/cjs/{array-f86c9258.js → array-a08ef783.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-bar.cjs.entry.js +13 -13
- package/dist/cjs/calcite-action-group.cjs.entry.js +11 -11
- package/dist/cjs/calcite-action-menu.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action-pad.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action.cjs.entry.js +12 -12
- package/dist/cjs/calcite-alert.cjs.entry.js +19 -20
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +16 -15
- 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 +16 -16
- 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 +8 -8
- package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -9
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +23 -23
- 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 +6 -6
- package/dist/cjs/calcite-input-number.cjs.entry.js +28 -28
- package/dist/cjs/calcite-input-text.cjs.entry.js +18 -18
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +98 -48
- package/dist/cjs/calcite-input.cjs.entry.js +29 -29
- package/dist/cjs/calcite-label.cjs.entry.js +8 -8
- package/dist/cjs/calcite-link.cjs.entry.js +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-loader.cjs.entry.js +6 -6
- package/dist/cjs/calcite-modal.cjs.entry.js +16 -16
- package/dist/cjs/calcite-notice.cjs.entry.js +14 -14
- package/dist/cjs/calcite-option_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-pagination.cjs.entry.js +11 -11
- package/dist/cjs/calcite-panel.cjs.entry.js +26 -23
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +24 -24
- package/dist/cjs/calcite-popover_2.cjs.entry.js +23 -21
- package/dist/cjs/calcite-progress.cjs.entry.js +9 -4
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +6 -6
- package/dist/cjs/calcite-radio-button.cjs.entry.js +13 -13
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
- package/dist/cjs/calcite-scrim.cjs.entry.js +3 -3
- package/dist/cjs/calcite-shell_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +6 -6
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +40 -18
- package/dist/cjs/calcite-switch.cjs.entry.js +12 -12
- package/dist/cjs/calcite-tab_4.cjs.entry.js +15 -15
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tile.cjs.entry.js +12 -12
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tree_2.cjs.entry.js +25 -20
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +23 -23
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-cdf70b61.js → conditionalSlot-ccf96751.js} +3 -3
- package/dist/cjs/{debounce-1f3af549.js → debounce-25452d97.js} +1 -1
- package/dist/cjs/{dom-9409deef.js → dom-968c6614.js} +3 -3
- package/dist/cjs/{filter-6497f68a.js → filter-71503a88.js} +2 -2
- package/dist/cjs/{floating-ui-40005e27.js → floating-ui-c6acf50b.js} +2 -2
- package/dist/cjs/{form-ed16c84e.js → form-8c14ceb5.js} +3 -3
- package/dist/cjs/{guid-07011a93.js → guid-6597a2ba.js} +1 -1
- package/dist/cjs/{index-dbaff4c6.js → index-2aa35059.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-825762eb.js → interactive-fea18111.js} +1 -1
- package/dist/cjs/{interfaces-a747d1cf.js → interfaces-3a459bb8.js} +1 -1
- package/dist/cjs/{key-40cfbef8.js → key-c7030cf7.js} +1 -1
- package/dist/cjs/{label-942c98df.js → label-b49c5b45.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-3b5c2d93.js → locale-ce092cb3.js} +55 -48
- package/dist/cjs/{math-19d2ae8c.js → math-168dbee6.js} +1 -1
- package/dist/cjs/{observers-2571ea25.js → observers-ae70ea35.js} +1 -1
- package/dist/cjs/{openCloseComponent-c152728d.js → openCloseComponent-a498f505.js} +1 -1
- package/dist/cjs/{resources-e5387109.js → resources-0e742993.js} +1 -1
- package/dist/cjs/{resources-b88532e5.js → resources-28f26b02.js} +1 -1
- package/dist/cjs/{resources-adfdf58d.js → resources-40ac0525.js} +1 -1
- package/dist/cjs/{resources-24f7e730.js → resources-b4b4932c.js} +3 -3
- package/dist/cjs/{resources-110e5929.js → resources-ec61f956.js} +1 -1
- package/dist/cjs/{resources-5f061484.js → resources-f97dfa28.js} +5 -5
- package/dist/cjs/{sortable.esm-9b594ce7.js → sortable.esm-4bd00bdb.js} +1 -1
- package/dist/cjs/{utils-0af662a9.js → utils-5161d4d6.js} +1 -1
- package/dist/collection/components/accordion/accordion.js +4 -4
- package/dist/collection/components/accordion-item/accordion-item.js +7 -7
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.css +1 -1
- package/dist/collection/components/action/action.js +12 -12
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +5 -5
- 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.css +1 -1
- package/dist/collection/components/action-group/action-group.js +5 -5
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +5 -5
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +5 -5
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +16 -17
- 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.css +7 -0
- package/dist/collection/components/block/block.js +4 -4
- package/dist/collection/components/block/resources.js +3 -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 +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.css +1 -8
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +5 -5
- 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 +6 -3
- 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.css +5 -0
- package/dist/collection/components/input/input.js +28 -28
- 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 +3 -3
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.css +1 -20
- package/dist/collection/components/input-number/input-number.js +26 -26
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.css +1 -20
- package/dist/collection/components/input-text/input-text.js +18 -18
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +76 -17
- package/dist/collection/components/label/label.js +5 -5
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +4 -4
- package/dist/collection/components/list/list.js +3 -3
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +5 -5
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.css +1 -1
- package/dist/collection/components/loader/loader.js +8 -8
- package/dist/collection/components/modal/modal.js +19 -19
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +14 -14
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +4 -4
- package/dist/collection/components/option-group/option-group.js +3 -3
- package/dist/collection/components/pagination/pagination.js +5 -5
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +32 -29
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +12 -12
- 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 +15 -15
- 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 +24 -22
- 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 +10 -5
- package/dist/collection/components/radio-button/radio-button.js +11 -11
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +7 -7
- package/dist/collection/components/radio-group/radio-group.js +7 -7
- package/dist/collection/components/radio-group-item/radio-group-item.js +5 -5
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +9 -9
- 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 +3 -3
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +8 -8
- 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 +3 -3
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +10 -10
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +24 -24
- 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 +8 -8
- package/dist/collection/components/stepper/stepper.js +27 -5
- package/dist/collection/components/stepper-item/stepper-item.js +43 -16
- package/dist/collection/components/switch/switch.js +8 -8
- package/dist/collection/components/tab/tab.js +5 -5
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +9 -9
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +7 -7
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +10 -10
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +11 -11
- package/dist/collection/components/tile-select-group/tile-select-group.js +3 -3
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +49 -13
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +5 -5
- 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 +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 +4 -4
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +2 -2
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +10 -8
- 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 +13 -10
- 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 +18 -18
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +9 -9
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.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.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/locale.js +52 -45
- 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 +16 -16
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +3 -3
- package/dist/components/action-menu.js +3 -3
- package/dist/components/action.js +6 -6
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-accordion-item.js +4 -4
- package/dist/components/calcite-accordion.js +3 -3
- package/dist/components/calcite-action-bar.js +3 -3
- 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 +3 -3
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +11 -12
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +7 -6
- 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 +6 -3
- 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 +17 -17
- package/dist/components/calcite-input-text.js +10 -10
- package/dist/components/calcite-input-time-picker.js +51 -13
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +3 -3
- package/dist/components/calcite-list.js +2 -2
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +9 -9
- package/dist/components/calcite-notice.js +7 -7
- package/dist/components/calcite-option-group.js +2 -2
- package/dist/components/calcite-option.js +2 -2
- package/dist/components/calcite-pagination.js +4 -4
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +7 -7
- 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 +4 -4
- package/dist/components/calcite-radio-button.js +5 -5
- package/dist/components/calcite-radio-group-item.js +3 -3
- package/dist/components/calcite-radio-group.js +4 -4
- package/dist/components/calcite-rating.js +5 -5
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +4 -4
- package/dist/components/calcite-shell-center-row.js +2 -2
- package/dist/components/calcite-shell-panel.js +5 -5
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +12 -12
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +4 -4
- package/dist/components/calcite-stepper-item.js +32 -11
- package/dist/components/calcite-stepper.js +4 -3
- 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 +2 -2
- package/dist/components/calcite-tile-select.js +6 -6
- 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 +2 -2
- package/dist/components/calcite-tip.js +3 -3
- package/dist/components/calcite-tooltip-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +10 -7
- package/dist/components/calcite-tree.js +9 -7
- package/dist/components/calcite-value-list-item.js +5 -5
- package/dist/components/calcite-value-list.js +8 -8
- 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 +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +6 -6
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +2 -2
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- 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 +1 -1
- package/dist/components/form.js +1 -1
- 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 +18 -18
- 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 +3 -3
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +2 -2
- package/dist/components/loader.js +4 -4
- package/dist/components/locale.js +53 -46
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +17 -14
- package/dist/components/pick-list-item.js +7 -7
- package/dist/components/popover.js +13 -11
- package/dist/components/progress.js +8 -3
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +2 -2
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +4 -4
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +4 -4
- package/dist/components/tab.js +3 -3
- package/dist/components/tabs.js +4 -4
- package/dist/components/tile.js +5 -5
- package/dist/components/time-picker.js +42 -27
- package/dist/components/tooltip.js +2 -2
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/esm/{ExpandToggle-21a5493f.js → ExpandToggle-9cc61349.js} +5 -5
- package/dist/esm/{Heading-0da1d231.js → Heading-70381e15.js} +2 -2
- package/dist/esm/{app-globals-53484588.js → app-globals-11b3aae5.js} +2 -2
- package/dist/esm/{array-afca26e4.js → array-023ac022.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +12 -12
- package/dist/esm/calcite-action-bar.entry.js +13 -13
- package/dist/esm/calcite-action-group.entry.js +11 -11
- package/dist/esm/calcite-action-menu.entry.js +10 -10
- package/dist/esm/calcite-action-pad.entry.js +12 -12
- package/dist/esm/calcite-action.entry.js +12 -12
- package/dist/esm/calcite-alert.entry.js +19 -20
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +16 -15
- 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 +16 -16
- 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 +8 -8
- package/dist/esm/calcite-flow-item.entry.js +12 -9
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +23 -23
- 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 +6 -6
- package/dist/esm/calcite-input-number.entry.js +28 -28
- package/dist/esm/calcite-input-text.entry.js +18 -18
- package/dist/esm/calcite-input-time-picker_2.entry.js +97 -47
- package/dist/esm/calcite-input.entry.js +29 -29
- package/dist/esm/calcite-label.entry.js +8 -8
- package/dist/esm/calcite-link.entry.js +7 -7
- package/dist/esm/calcite-list_3.entry.js +12 -12
- package/dist/esm/calcite-loader.entry.js +6 -6
- package/dist/esm/calcite-modal.entry.js +16 -16
- package/dist/esm/calcite-notice.entry.js +14 -14
- package/dist/esm/calcite-option_3.entry.js +14 -14
- package/dist/esm/calcite-pagination.entry.js +11 -11
- package/dist/esm/calcite-panel.entry.js +26 -23
- package/dist/esm/calcite-pick-list_3.entry.js +24 -24
- package/dist/esm/calcite-popover_2.entry.js +23 -21
- package/dist/esm/calcite-progress.entry.js +9 -4
- package/dist/esm/calcite-radio-button-group.entry.js +6 -6
- package/dist/esm/calcite-radio-button.entry.js +13 -13
- package/dist/esm/calcite-radio-group_2.entry.js +13 -13
- package/dist/esm/calcite-rating.entry.js +13 -13
- package/dist/esm/calcite-scrim.entry.js +3 -3
- package/dist/esm/calcite-shell_3.entry.js +13 -13
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +6 -6
- package/dist/esm/calcite-stepper_2.entry.js +40 -18
- package/dist/esm/calcite-switch.entry.js +12 -12
- package/dist/esm/calcite-tab_4.entry.js +15 -15
- package/dist/esm/calcite-tile-select_2.entry.js +10 -10
- package/dist/esm/calcite-tile.entry.js +12 -12
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip_2.entry.js +8 -8
- package/dist/esm/calcite-tree_2.entry.js +25 -20
- package/dist/esm/calcite-value-list_2.entry.js +23 -23
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-e50c9f14.js → conditionalSlot-12e6668f.js} +3 -3
- package/dist/esm/{debounce-6816d02c.js → debounce-e2ddce5d.js} +1 -1
- package/dist/esm/{dom-1ac7b489.js → dom-5fbae8c3.js} +3 -3
- package/dist/esm/{filter-1cca1a38.js → filter-add68d68.js} +2 -2
- package/dist/esm/{floating-ui-41bd9b35.js → floating-ui-826c3e7d.js} +2 -2
- package/dist/esm/{form-08544720.js → form-b288cf71.js} +3 -3
- package/dist/esm/{guid-57e25130.js → guid-d2a04ff5.js} +1 -1
- package/dist/esm/{index-5326c3af.js → index-58724626.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-c086cb04.js → interactive-ea3b8a49.js} +1 -1
- package/dist/esm/{interfaces-ba4e7fb1.js → interfaces-fbfaef24.js} +1 -1
- package/dist/esm/{key-42705c39.js → key-c62dbce4.js} +1 -1
- package/dist/esm/{label-a209a39c.js → label-50ac91c2.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-6840e756.js → locale-75e88bb3.js} +56 -49
- package/dist/esm/{math-e13ce572.js → math-3437525f.js} +1 -1
- package/dist/esm/{observers-68c33472.js → observers-81228aaa.js} +1 -1
- package/dist/esm/{openCloseComponent-f9f51e92.js → openCloseComponent-b1959bd4.js} +1 -1
- package/dist/esm/{resources-ba2025cb.js → resources-26ad6cba.js} +1 -1
- package/dist/esm/{resources-a65a8ad1.js → resources-56ebd25b.js} +1 -1
- package/dist/esm/{resources-d0f37d22.js → resources-7663310e.js} +5 -5
- package/dist/esm/{resources-c69a833c.js → resources-86d3add0.js} +3 -3
- package/dist/esm/{resources-d2b2a177.js → resources-95b7889f.js} +1 -1
- package/dist/esm/{resources-bf3cbf16.js → resources-bdcfb9c6.js} +1 -1
- package/dist/esm/{sortable.esm-1ad7cec8.js → sortable.esm-1f8f5b6c.js} +1 -1
- package/dist/esm/{utils-f163e9f8.js → utils-51bf9488.js} +1 -1
- package/dist/extras/docs-json.json +553 -250
- 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/accordion/accordion.d.ts +2 -2
- package/dist/types/components/accordion-item/accordion-item.d.ts +3 -3
- package/dist/types/components/action/action.d.ts +6 -6
- package/dist/types/components/action-bar/action-bar.d.ts +2 -2
- package/dist/types/components/action-group/action-group.d.ts +2 -2
- package/dist/types/components/action-menu/action-menu.d.ts +2 -2
- package/dist/types/components/action-pad/action-pad.d.ts +2 -2
- package/dist/types/components/alert/alert.d.ts +5 -5
- package/dist/types/components/block/resources.d.ts +2 -1
- package/dist/types/components/flow-item/flow-item.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +11 -11
- package/dist/types/components/input-message/input-message.d.ts +1 -1
- package/dist/types/components/input-number/input-number.d.ts +10 -10
- package/dist/types/components/input-text/input-text.d.ts +9 -9
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +9 -5
- package/dist/types/components/label/label.d.ts +2 -2
- package/dist/types/components/link/link.d.ts +2 -2
- package/dist/types/components/list/list.d.ts +1 -1
- package/dist/types/components/list-item/list-item.d.ts +2 -2
- package/dist/types/components/loader/loader.d.ts +9 -4
- package/dist/types/components/modal/modal.d.ts +10 -10
- package/dist/types/components/notice/notice.d.ts +7 -7
- package/dist/types/components/option/option.d.ts +2 -2
- package/dist/types/components/option-group/option-group.d.ts +1 -1
- package/dist/types/components/pagination/pagination.d.ts +1 -1
- package/dist/types/components/panel/panel.d.ts +15 -15
- package/dist/types/components/pick-list/pick-list.d.ts +6 -6
- package/dist/types/components/pick-list-item/pick-list-item.d.ts +8 -8
- package/dist/types/components/popover/popover.d.ts +13 -11
- package/dist/types/components/progress/progress.d.ts +7 -2
- package/dist/types/components/radio-button/radio-button.d.ts +6 -6
- package/dist/types/components/radio-button-group/radio-button-group.d.ts +3 -3
- package/dist/types/components/radio-group/radio-group.d.ts +3 -3
- package/dist/types/components/radio-group-item/radio-group-item.d.ts +2 -2
- package/dist/types/components/rating/rating.d.ts +4 -4
- package/dist/types/components/scrim/scrim.d.ts +1 -1
- package/dist/types/components/select/select.d.ts +4 -4
- package/dist/types/components/shell-center-row/shell-center-row.d.ts +1 -1
- package/dist/types/components/shell-panel/shell-panel.d.ts +5 -5
- package/dist/types/components/slider/slider.d.ts +12 -12
- package/dist/types/components/split-button/split-button.d.ts +4 -4
- package/dist/types/components/stepper/stepper.d.ts +7 -2
- package/dist/types/components/stepper-item/stepper-item.d.ts +13 -9
- package/dist/types/components/switch/switch.d.ts +5 -5
- package/dist/types/components/tab/tab.d.ts +2 -2
- package/dist/types/components/tab-title/tab-title.d.ts +5 -5
- package/dist/types/components/tabs/tabs.d.ts +3 -3
- package/dist/types/components/tile/tile.d.ts +5 -5
- package/dist/types/components/tile-select/tile-select.d.ts +5 -5
- package/dist/types/components/tile-select-group/tile-select-group.d.ts +1 -1
- package/dist/types/components/time-picker/time-picker.d.ts +7 -2
- package/dist/types/components/tip/tip.d.ts +2 -2
- package/dist/types/components/tip-manager/tip-manager.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.d.ts +6 -2
- package/dist/types/components/tooltip-manager/tooltip-manager.d.ts +1 -1
- package/dist/types/components/tree/tree.d.ts +1 -1
- package/dist/types/components/tree-item/tree-item.d.ts +3 -3
- package/dist/types/components/value-list/value-list.d.ts +15 -15
- package/dist/types/components/value-list-item/value-list-item.d.ts +4 -4
- package/dist/types/components.d.ts +472 -448
- package/dist/types/utils/locale.d.ts +20 -19
- package/dist/types/utils/time.d.ts +29 -5
- package/hydrate/index.js +430 -332
- package/package.json +10 -10
- package/dist/calcite/p-01cb5477.js +0 -6
- package/dist/calcite/p-27969266.entry.js +0 -6
- package/dist/calcite/p-416510d6.js +0 -6
- package/dist/calcite/p-4c8218d4.entry.js +0 -6
- package/dist/calcite/p-59772111.js +0 -6
- package/dist/calcite/p-672cf3c2.js +0 -6
- package/dist/calcite/p-99889377.entry.js +0 -6
- package/dist/calcite/p-a5ec748f.entry.js +0 -6
- package/dist/calcite/p-a8b04902.entry.js +0 -6
- package/dist/calcite/p-ab03590a.entry.js +0 -6
- package/dist/calcite/p-b31ac46b.entry.js +0 -6
- package/dist/calcite/p-b8492482.entry.js +0 -6
- package/dist/calcite/p-e1c801a6.entry.js +0 -6
- package/dist/calcite/p-e9ccd0bc.entry.js +0 -6
- package/dist/calcite/p-f52edbbb.entry.js +0 -6
- package/dist/collection/components/accordion/accordion.e2e.js +0 -183
- package/dist/collection/components/accordion-item/accordion-item.e2e.js +0 -8
- package/dist/collection/components/action/action.e2e.js +0 -93
- package/dist/collection/components/action-bar/action-bar.e2e.js +0 -290
- package/dist/collection/components/action-group/action-group.e2e.js +0 -23
- package/dist/collection/components/action-menu/action-menu.e2e.js +0 -153
- package/dist/collection/components/action-pad/action-pad.e2e.js +0 -178
- package/dist/collection/components/alert/alert.e2e.js +0 -294
- package/dist/collection/components/avatar/avatar.e2e.js +0 -55
- package/dist/collection/components/avatar/avatar.spec.js +0 -42
- package/dist/collection/components/block/block.e2e.js +0 -194
- package/dist/collection/components/block-section/block-section.e2e.js +0 -132
- package/dist/collection/components/button/button.e2e.js +0 -529
- package/dist/collection/components/card/card.e2e.js +0 -87
- package/dist/collection/components/checkbox/checkbox.e2e.js +0 -105
- package/dist/collection/components/chip/chip.e2e.js +0 -149
- package/dist/collection/components/color-picker/color-picker.e2e.js +0 -1068
- package/dist/collection/components/color-picker/utils.spec.js +0 -66
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.e2e.js +0 -281
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.e2e.js +0 -71
- package/dist/collection/components/combobox/combobox.e2e.js +0 -1043
- package/dist/collection/components/combobox-item/combobox-item.e2e.js +0 -7
- package/dist/collection/components/date-picker/date-picker.e2e.js +0 -195
- package/dist/collection/components/date-picker/utils.spec.js +0 -55
- package/dist/collection/components/date-picker-day/date-picker-day.e2e.js +0 -16
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.e2e.js +0 -72
- package/dist/collection/components/dropdown/dropdown.e2e.js +0 -1030
- package/dist/collection/components/dropdown-group/dropdown-group.e2e.js +0 -5
- package/dist/collection/components/dropdown-item/dropdown-item.e2e.js +0 -6
- package/dist/collection/components/fab/fab.e2e.js +0 -114
- package/dist/collection/components/filter/filter.e2e.js +0 -205
- package/dist/collection/components/flow/flow.e2e.js +0 -166
- package/dist/collection/components/flow-item/flow-item.e2e.js +0 -72
- package/dist/collection/components/functional/Heading.spec.js +0 -33
- package/dist/collection/components/graph/graph.e2e.js +0 -69
- package/dist/collection/components/handle/handle.e2e.js +0 -30
- package/dist/collection/components/icon/icon.e2e.js +0 -75
- package/dist/collection/components/icon/utils.spec.js +0 -61
- package/dist/collection/components/inline-editable/inline-editable.e2e.js +0 -327
- package/dist/collection/components/input/input.e2e.js +0 -1192
- package/dist/collection/components/input-date-picker/input-date-picker.e2e.js +0 -295
- package/dist/collection/components/input-message/input-message.e2e.js +0 -122
- package/dist/collection/components/input-number/input-number.e2e.js +0 -1004
- package/dist/collection/components/input-text/input-text.e2e.js +0 -276
- package/dist/collection/components/input-time-picker/input-time-picker.e2e.js +0 -241
- package/dist/collection/components/label/label.e2e.js +0 -156
- package/dist/collection/components/link/link.e2e.js +0 -257
- package/dist/collection/components/list/list.e2e.js +0 -32
- package/dist/collection/components/list-item/list-item.e2e.js +0 -46
- package/dist/collection/components/list-item-group/list-item-group.e2e.js +0 -16
- package/dist/collection/components/loader/loader.e2e.js +0 -49
- package/dist/collection/components/modal/modal.e2e.js +0 -382
- package/dist/collection/components/notice/notice.e2e.js +0 -127
- package/dist/collection/components/option/option.e2e.js +0 -56
- package/dist/collection/components/option-group/option-group.e2e.js +0 -26
- package/dist/collection/components/pagination/pagination.e2e.js +0 -208
- package/dist/collection/components/panel/panel.e2e.js +0 -281
- package/dist/collection/components/pick-list/pick-list.e2e.js +0 -157
- package/dist/collection/components/pick-list/shared-list-tests.js +0 -463
- package/dist/collection/components/pick-list-group/pick-list-group.e2e.js +0 -54
- package/dist/collection/components/pick-list-item/pick-list-item.e2e.js +0 -124
- package/dist/collection/components/popover/popover.e2e.js +0 -454
- package/dist/collection/components/popover-manager/popover-manager.e2e.js +0 -38
- package/dist/collection/components/progress/progress.e2e.js +0 -7
- package/dist/collection/components/radio-button/radio-button.e2e.js +0 -332
- package/dist/collection/components/radio-button-group/radio-button-group.e2e.js +0 -384
- package/dist/collection/components/radio-group/radio-group.e2e.js +0 -258
- package/dist/collection/components/radio-group-item/radio-group-item.e2e.js +0 -92
- package/dist/collection/components/rating/rating.e2e.js +0 -450
- package/dist/collection/components/scrim/scrim.e2e.js +0 -122
- package/dist/collection/components/select/select.e2e.js +0 -266
- package/dist/collection/components/shell/shell.e2e.js +0 -126
- package/dist/collection/components/shell-center-row/shell-center-row.e2e.js +0 -66
- package/dist/collection/components/shell-panel/shell-panel.e2e.js +0 -282
- package/dist/collection/components/slider/slider.e2e.js +0 -648
- package/dist/collection/components/sortable-list/sortable-list.e2e.js +0 -57
- package/dist/collection/components/split-button/split-button.e2e.js +0 -206
- package/dist/collection/components/stepper/stepper.e2e.js +0 -558
- package/dist/collection/components/stepper-item/stepper-item.e2e.js +0 -6
- package/dist/collection/components/switch/switch.e2e.js +0 -91
- package/dist/collection/components/tab/tab.e2e.js +0 -49
- package/dist/collection/components/tab-nav/tab-nav.e2e.js +0 -143
- package/dist/collection/components/tab-title/tab-title.e2e.js +0 -222
- package/dist/collection/components/tabs/tabs.e2e.js +0 -281
- package/dist/collection/components/tile/tile.e2e.js +0 -79
- package/dist/collection/components/tile-select/tile-select.e2e.js +0 -133
- package/dist/collection/components/tile-select-group/tile-select-group.e2e.js +0 -14
- package/dist/collection/components/time-picker/time-picker.e2e.js +0 -737
- package/dist/collection/components/tip/tip.e2e.js +0 -42
- package/dist/collection/components/tip-group/tip-group.e2e.js +0 -6
- package/dist/collection/components/tip-manager/tip-manager.e2e.js +0 -176
- package/dist/collection/components/tip-manager/tip-manager.spec.js +0 -13
- package/dist/collection/components/tooltip/tooltip.e2e.js +0 -359
- package/dist/collection/components/tooltip-manager/tooltip-manager.e2e.js +0 -19
- package/dist/collection/components/tree/tree.e2e.js +0 -586
- package/dist/collection/components/tree-item/tree-item.e2e.js +0 -302
- package/dist/collection/components/value-list/value-list.e2e.js +0 -205
- package/dist/collection/components/value-list-item/value-list-item.e2e.js +0 -96
- package/dist/collection/demos/_assets/demo-dom-swapper.js +0 -45
- package/dist/collection/demos/_assets/demo-spacer.js +0 -17
- package/dist/collection/demos/_assets/demo-template.js +0 -24
- package/dist/collection/demos/_assets/head.js +0 -48
- package/dist/collection/demos/_assets/locales.js +0 -223
- package/dist/collection/tests/commonTests.js +0 -596
- package/dist/collection/tests/utils.js +0 -200
- package/dist/collection/utils/date.spec.js +0 -153
- package/dist/collection/utils/dom.e2e.js +0 -107
- package/dist/collection/utils/dom.spec.js +0 -273
- package/dist/collection/utils/floating-ui.spec.js +0 -23
- package/dist/collection/utils/form.spec.js +0 -16
- package/dist/collection/utils/globalAttributes.spec.js +0 -36
- package/dist/collection/utils/guid.spec.js +0 -7
- package/dist/collection/utils/interactive.spec.js +0 -20
- package/dist/collection/utils/label.spec.js +0 -188
- package/dist/collection/utils/locale.spec.js +0 -44
- package/dist/collection/utils/math.spec.js +0 -8
- package/dist/collection/utils/number.spec.js +0 -113
- package/dist/collection/utils/popper.js +0 -121
|
@@ -1,596 +0,0 @@
|
|
|
1
|
-
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
-
import { toHaveNoViolations } from "jest-axe";
|
|
3
|
-
import { config } from "../../stencil.config";
|
|
4
|
-
import { skipAnimations } from "./utils";
|
|
5
|
-
import { hiddenFormInputSlotName } from "../utils/form";
|
|
6
|
-
import { html } from "../../support/formatting";
|
|
7
|
-
expect.extend(toHaveNoViolations);
|
|
8
|
-
export const HYDRATED_ATTR = config.hydratedFlag.name;
|
|
9
|
-
function isHTML(tagOrHTML) {
|
|
10
|
-
return tagOrHTML.trim().startsWith("<");
|
|
11
|
-
}
|
|
12
|
-
function getTag(tagOrHTML) {
|
|
13
|
-
if (isHTML(tagOrHTML)) {
|
|
14
|
-
const regex = /[>\s]/;
|
|
15
|
-
const trimmedTag = tagOrHTML.trim();
|
|
16
|
-
return trimmedTag.substring(1, trimmedTag.search(regex));
|
|
17
|
-
}
|
|
18
|
-
return tagOrHTML;
|
|
19
|
-
}
|
|
20
|
-
async function simplePageSetup(componentTagOrHTML) {
|
|
21
|
-
const componentTag = getTag(componentTagOrHTML);
|
|
22
|
-
const page = await newE2EPage({
|
|
23
|
-
html: isHTML(componentTagOrHTML) ? componentTagOrHTML : `<${componentTag}></${componentTag}>`,
|
|
24
|
-
failOnConsoleError: true
|
|
25
|
-
});
|
|
26
|
-
await page.waitForChanges();
|
|
27
|
-
return page;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Helper for asserting that a component is accessible.
|
|
31
|
-
*
|
|
32
|
-
* @param {string} componentTagOrHTML - the component tag or HTML markup to test against
|
|
33
|
-
* @param {E2EPage} [page] - an e2e page
|
|
34
|
-
*/
|
|
35
|
-
export async function accessible(componentTagOrHTML, page) {
|
|
36
|
-
if (!page) {
|
|
37
|
-
page = await simplePageSetup(componentTagOrHTML);
|
|
38
|
-
}
|
|
39
|
-
await page.addScriptTag({ path: require.resolve("axe-core") });
|
|
40
|
-
await page.waitForFunction(() => window.axe);
|
|
41
|
-
expect(await page.evaluate(async (componentTag) => window.axe.run(componentTag), getTag(componentTagOrHTML))).toHaveNoViolations();
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Helper for asserting that a component renders and is hydrated
|
|
45
|
-
*
|
|
46
|
-
* @param {string} componentTagOrHTML - the component tag or HTML markup to test against
|
|
47
|
-
* @param {object} options - additional options to assert
|
|
48
|
-
* @param {string} employee.visible - is the component visible
|
|
49
|
-
* @param {string} employee.display - is the component's display "inline"
|
|
50
|
-
* @param options.visible
|
|
51
|
-
* @param options.display
|
|
52
|
-
*/
|
|
53
|
-
export async function renders(componentTagOrHTML, options) {
|
|
54
|
-
var _a, _b;
|
|
55
|
-
const page = await simplePageSetup(componentTagOrHTML);
|
|
56
|
-
const element = await page.find(getTag(componentTagOrHTML));
|
|
57
|
-
expect(element).toHaveAttribute(HYDRATED_ATTR);
|
|
58
|
-
expect(await element.isVisible()).toBe((_a = options === null || options === void 0 ? void 0 : options.visible) !== null && _a !== void 0 ? _a : true);
|
|
59
|
-
expect((await element.getComputedStyle()).display).toBe((_b = options === null || options === void 0 ? void 0 : options.display) !== null && _b !== void 0 ? _b : "inline");
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Helper for asserting that a component reflects
|
|
63
|
-
*
|
|
64
|
-
* @param {string} componentTagOrHTML - the component tag or HTML markup to test against
|
|
65
|
-
* @param {object[]} propsToTest - the properties to test
|
|
66
|
-
* @param {string} propsToTest.propertyName - the property name
|
|
67
|
-
* @param {any} propsToTest.value - the property value
|
|
68
|
-
*/
|
|
69
|
-
export async function reflects(componentTagOrHTML, propsToTest) {
|
|
70
|
-
const page = await simplePageSetup(componentTagOrHTML);
|
|
71
|
-
const componentTag = getTag(componentTagOrHTML);
|
|
72
|
-
const element = await page.find(componentTag);
|
|
73
|
-
for (const propAndValue of propsToTest) {
|
|
74
|
-
const { propertyName, value } = propAndValue;
|
|
75
|
-
const attrName = propToAttr(propertyName);
|
|
76
|
-
const componentAttributeSelector = `${componentTag}[${attrName}]`;
|
|
77
|
-
element.setProperty(propertyName, value);
|
|
78
|
-
await page.waitForChanges();
|
|
79
|
-
expect(await page.find(componentAttributeSelector)).toBeTruthy();
|
|
80
|
-
if (typeof value === "boolean") {
|
|
81
|
-
const getExpectedValue = (propValue) => (propValue ? "" : null);
|
|
82
|
-
const negated = !value;
|
|
83
|
-
element.setProperty(propertyName, negated);
|
|
84
|
-
await page.waitForChanges();
|
|
85
|
-
expect(element.getAttribute(attrName)).toBe(getExpectedValue(negated));
|
|
86
|
-
element.setProperty(propertyName, value);
|
|
87
|
-
await page.waitForChanges();
|
|
88
|
-
expect(element.getAttribute(attrName)).toBe(getExpectedValue(value));
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
function propToAttr(name) {
|
|
93
|
-
return name.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Helper for asserting that a property's value is its default
|
|
97
|
-
*
|
|
98
|
-
* @param {string} componentTagOrHTML - the component tag or HTML markup to test against
|
|
99
|
-
* @param {object[]} propsToTest - the properties to test
|
|
100
|
-
* @param {string} propsToTest.propertyName - the property name
|
|
101
|
-
* @param {any} propsToTest.value - the property value
|
|
102
|
-
*/
|
|
103
|
-
export async function defaults(componentTagOrHTML, propsToTest) {
|
|
104
|
-
const page = await simplePageSetup(componentTagOrHTML);
|
|
105
|
-
const element = await page.find(getTag(componentTagOrHTML));
|
|
106
|
-
for (const propAndValue of propsToTest) {
|
|
107
|
-
const { propertyName, defaultValue } = propAndValue;
|
|
108
|
-
const prop = await element.getProperty(propertyName);
|
|
109
|
-
expect(prop).toEqual(defaultValue);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Helper for asserting that a component is not visible when hidden
|
|
114
|
-
*
|
|
115
|
-
* @param {string} componentTagOrHTML - the component tag or HTML markup to test against
|
|
116
|
-
*/
|
|
117
|
-
export async function hidden(componentTagOrHTML) {
|
|
118
|
-
const page = await simplePageSetup(componentTagOrHTML);
|
|
119
|
-
const element = await page.find(getTag(componentTagOrHTML));
|
|
120
|
-
element.setAttribute("hidden", "");
|
|
121
|
-
await page.waitForChanges();
|
|
122
|
-
expect(await element.isVisible()).toBe(false);
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Helper for asserting that a component is focusable
|
|
126
|
-
*
|
|
127
|
-
* @param {string} componentTagOrHTML - the component tag or HTML markup to test against
|
|
128
|
-
* @param {FocusableOptions} [options] - additional options for asserting focus
|
|
129
|
-
*/
|
|
130
|
-
export async function focusable(componentTagOrHTML, options) {
|
|
131
|
-
const page = await simplePageSetup(componentTagOrHTML);
|
|
132
|
-
const tag = getTag(componentTagOrHTML);
|
|
133
|
-
const element = await page.find(tag);
|
|
134
|
-
const focusTargetSelector = (options === null || options === void 0 ? void 0 : options.focusTargetSelector) || tag;
|
|
135
|
-
await element.callMethod("setFocus", options === null || options === void 0 ? void 0 : options.focusId); // assumes element is FocusableElement
|
|
136
|
-
if (options === null || options === void 0 ? void 0 : options.shadowFocusTargetSelector) {
|
|
137
|
-
expect(await page.$eval(tag, (element, selector) => element.shadowRoot.activeElement.matches(selector), options === null || options === void 0 ? void 0 : options.shadowFocusTargetSelector)).toBe(true);
|
|
138
|
-
}
|
|
139
|
-
expect(await page.evaluate((selector) => document.activeElement.matches(selector), focusTargetSelector)).toBe(true);
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Helper for asserting slots.
|
|
143
|
-
*
|
|
144
|
-
* @param {string} componentTagOrHTML - the component tag or HTML markup to test against
|
|
145
|
-
* @param slots - a component's SLOTS resource object or an array of slot names
|
|
146
|
-
* @param includeDefaultSlot - when true, it will run assertions on the default slot
|
|
147
|
-
*/
|
|
148
|
-
export async function slots(componentTagOrHTML, slots, includeDefaultSlot = false) {
|
|
149
|
-
const page = await simplePageSetup(componentTagOrHTML);
|
|
150
|
-
const tag = getTag(componentTagOrHTML);
|
|
151
|
-
const slotNames = Array.isArray(slots) ? slots : Object.values(slots);
|
|
152
|
-
await page.$eval(tag, async (component, slotNames, includeDefaultSlot) => {
|
|
153
|
-
async function slotTestElement(testClass, slotName) {
|
|
154
|
-
const el = document.createElement("div"); // slotting a <div> will suffice for our purposes
|
|
155
|
-
el.classList.add(testClass);
|
|
156
|
-
if (slotName) {
|
|
157
|
-
el.slot = slotName;
|
|
158
|
-
}
|
|
159
|
-
component.append(el);
|
|
160
|
-
await new Promise((resolve) => requestAnimationFrame(() => resolve()));
|
|
161
|
-
}
|
|
162
|
-
for (let i = 0; i < slotNames.length; i++) {
|
|
163
|
-
await slotTestElement("slotted-into-named-slot", slotNames[i]);
|
|
164
|
-
}
|
|
165
|
-
if (includeDefaultSlot) {
|
|
166
|
-
await slotTestElement("slotted-into-default-slot");
|
|
167
|
-
}
|
|
168
|
-
}, slotNames, includeDefaultSlot);
|
|
169
|
-
await page.waitForChanges();
|
|
170
|
-
const slotted = await page.evaluate(() => Array.from(document.querySelectorAll(".slotted-into-named-slot"))
|
|
171
|
-
.filter((slotted) => slotted.assignedSlot)
|
|
172
|
-
.map((slotted) => slotted.slot));
|
|
173
|
-
expect(slotNames).toEqual(slotted);
|
|
174
|
-
if (includeDefaultSlot) {
|
|
175
|
-
const hasDefaultSlotted = await page.evaluate(() => {
|
|
176
|
-
var _a;
|
|
177
|
-
const defaultSlotted = document.querySelector(".slotted-into-default-slot");
|
|
178
|
-
return ((_a = defaultSlotted.assignedSlot) === null || _a === void 0 ? void 0 : _a.name) === "" && defaultSlotted.slot === "";
|
|
179
|
-
});
|
|
180
|
-
expect(hasDefaultSlotted).toBe(true);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
async function assertLabelable({ page, componentTag, propertyToToggle, focusTargetSelector = componentTag, shadowFocusTargetSelector }) {
|
|
184
|
-
let component;
|
|
185
|
-
let initialPropertyValue;
|
|
186
|
-
if (propertyToToggle) {
|
|
187
|
-
component = await page.find(componentTag);
|
|
188
|
-
initialPropertyValue = await component.getProperty(propertyToToggle);
|
|
189
|
-
}
|
|
190
|
-
const label = await page.find("calcite-label");
|
|
191
|
-
await label.callMethod("click"); // we call the method to avoid clicking the child element
|
|
192
|
-
await page.waitForChanges();
|
|
193
|
-
expect(await page.evaluate((focusTargetSelector) => { var _a; return !!((_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.closest(focusTargetSelector)); }, focusTargetSelector)).toBe(true);
|
|
194
|
-
if (shadowFocusTargetSelector) {
|
|
195
|
-
expect(await page.$eval(componentTag, (element, selector) => element.shadowRoot.activeElement.matches(selector), shadowFocusTargetSelector)).toBe(true);
|
|
196
|
-
}
|
|
197
|
-
if (propertyToToggle) {
|
|
198
|
-
const toggledPropertyValue = !initialPropertyValue;
|
|
199
|
-
expect(await component.getProperty(propertyToToggle)).toBe(toggledPropertyValue);
|
|
200
|
-
// assert that direct clicks on component toggle property correctly
|
|
201
|
-
await component.setProperty(propertyToToggle, initialPropertyValue); // we reset as not all components toggle when clicked
|
|
202
|
-
await page.waitForChanges();
|
|
203
|
-
await component.click();
|
|
204
|
-
await page.waitForChanges();
|
|
205
|
-
expect(await component.getProperty(propertyToToggle)).toBe(toggledPropertyValue);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Helper for asserting label clicking functionality works.
|
|
210
|
-
*
|
|
211
|
-
* @param {string} componentTagOrHtml - the component tag or HTML used to test label support
|
|
212
|
-
* @param {LabelableOptions} [options] - labelable options
|
|
213
|
-
*/
|
|
214
|
-
export async function labelable(componentTagOrHtml, options) {
|
|
215
|
-
const id = "labelable-id";
|
|
216
|
-
const labelTitle = "My Component";
|
|
217
|
-
const propertyToToggle = options === null || options === void 0 ? void 0 : options.propertyToToggle;
|
|
218
|
-
const focusTargetSelector = (options === null || options === void 0 ? void 0 : options.focusTargetSelector) || `#${id}`;
|
|
219
|
-
const shadowFocusTargetSelector = options === null || options === void 0 ? void 0 : options.shadowFocusTargetSelector;
|
|
220
|
-
const componentTag = getTag(componentTagOrHtml);
|
|
221
|
-
const componentHtml = isHTML(componentTagOrHtml)
|
|
222
|
-
? ensureId(componentTagOrHtml)
|
|
223
|
-
: `<${componentTag} id="${id}"></${componentTag}>`;
|
|
224
|
-
function ensureId(html) {
|
|
225
|
-
return html.includes("id=") ? html : html.replace(componentTag, `${componentTag} id="${id}" `);
|
|
226
|
-
}
|
|
227
|
-
const wrappedHtml = html `<calcite-label> ${labelTitle} ${componentHtml} </calcite-label>`;
|
|
228
|
-
const wrappedPage = await newE2EPage({ html: wrappedHtml });
|
|
229
|
-
await wrappedPage.waitForChanges();
|
|
230
|
-
await assertLabelable({
|
|
231
|
-
page: wrappedPage,
|
|
232
|
-
componentTag,
|
|
233
|
-
propertyToToggle,
|
|
234
|
-
focusTargetSelector,
|
|
235
|
-
shadowFocusTargetSelector
|
|
236
|
-
});
|
|
237
|
-
const siblingHtml = html `
|
|
238
|
-
<calcite-label for="${id}">${labelTitle}</calcite-label>
|
|
239
|
-
${componentHtml}
|
|
240
|
-
`;
|
|
241
|
-
const siblingPage = await newE2EPage({ html: siblingHtml });
|
|
242
|
-
await siblingPage.waitForChanges();
|
|
243
|
-
await assertLabelable({
|
|
244
|
-
page: siblingPage,
|
|
245
|
-
componentTag,
|
|
246
|
-
propertyToToggle,
|
|
247
|
-
focusTargetSelector,
|
|
248
|
-
shadowFocusTargetSelector
|
|
249
|
-
});
|
|
250
|
-
const labelFirstSiblingPage = await newE2EPage();
|
|
251
|
-
await labelFirstSiblingPage.setContent(`<calcite-label for="${id}"></calcite-label>`);
|
|
252
|
-
await labelFirstSiblingPage.waitForChanges();
|
|
253
|
-
await labelFirstSiblingPage.evaluate((componentHtml) => {
|
|
254
|
-
const template = document.createElement("template");
|
|
255
|
-
template.innerHTML = `${componentHtml}`.trim();
|
|
256
|
-
const componentNode = template.content.firstChild;
|
|
257
|
-
document.body.append(componentNode);
|
|
258
|
-
}, componentHtml);
|
|
259
|
-
await labelFirstSiblingPage.waitForChanges();
|
|
260
|
-
await assertLabelable({
|
|
261
|
-
page: labelFirstSiblingPage,
|
|
262
|
-
componentTag,
|
|
263
|
-
propertyToToggle,
|
|
264
|
-
focusTargetSelector,
|
|
265
|
-
shadowFocusTargetSelector
|
|
266
|
-
});
|
|
267
|
-
const labelFirstWrappedPage = await newE2EPage();
|
|
268
|
-
await labelFirstWrappedPage.setContent(`<calcite-label for="${id}"></calcite-label>`);
|
|
269
|
-
await labelFirstWrappedPage.waitForChanges();
|
|
270
|
-
await labelFirstWrappedPage.evaluate((componentHtml) => {
|
|
271
|
-
const template = document.createElement("template");
|
|
272
|
-
template.innerHTML = `${componentHtml}`.trim();
|
|
273
|
-
const componentNode = template.content.firstChild;
|
|
274
|
-
const labelEl = document.querySelector("calcite-label");
|
|
275
|
-
labelEl.append(componentNode);
|
|
276
|
-
}, componentHtml);
|
|
277
|
-
await labelFirstWrappedPage.waitForChanges();
|
|
278
|
-
await assertLabelable({
|
|
279
|
-
page: labelFirstWrappedPage,
|
|
280
|
-
componentTag,
|
|
281
|
-
propertyToToggle,
|
|
282
|
-
focusTargetSelector,
|
|
283
|
-
shadowFocusTargetSelector
|
|
284
|
-
});
|
|
285
|
-
const componentFirstSiblingPage = await newE2EPage({ html: componentHtml });
|
|
286
|
-
await componentFirstSiblingPage.waitForChanges();
|
|
287
|
-
await componentFirstSiblingPage.evaluate((id) => {
|
|
288
|
-
const label = document.createElement("calcite-label");
|
|
289
|
-
label.setAttribute("for", `${id}`);
|
|
290
|
-
document.body.append(label);
|
|
291
|
-
}, id);
|
|
292
|
-
await componentFirstSiblingPage.waitForChanges();
|
|
293
|
-
await assertLabelable({
|
|
294
|
-
page: componentFirstSiblingPage,
|
|
295
|
-
componentTag,
|
|
296
|
-
propertyToToggle,
|
|
297
|
-
focusTargetSelector,
|
|
298
|
-
shadowFocusTargetSelector
|
|
299
|
-
});
|
|
300
|
-
const componentFirstWrappedPage = await newE2EPage();
|
|
301
|
-
await componentFirstWrappedPage.setContent(`${componentHtml}`);
|
|
302
|
-
await componentFirstWrappedPage.waitForChanges();
|
|
303
|
-
await componentFirstWrappedPage.evaluate((id) => {
|
|
304
|
-
const componentEl = document.querySelector(`[id='${id}']`);
|
|
305
|
-
const labelEl = document.createElement("calcite-label");
|
|
306
|
-
labelEl.setAttribute("for", `${id}`);
|
|
307
|
-
document.body.append(labelEl);
|
|
308
|
-
labelEl.append(componentEl);
|
|
309
|
-
}, id);
|
|
310
|
-
await componentFirstWrappedPage.waitForChanges();
|
|
311
|
-
await assertLabelable({
|
|
312
|
-
page: componentFirstWrappedPage,
|
|
313
|
-
componentTag,
|
|
314
|
-
propertyToToggle,
|
|
315
|
-
focusTargetSelector,
|
|
316
|
-
shadowFocusTargetSelector
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* Helper for testing form-associated components; specifically form submitting and resetting.
|
|
321
|
-
*
|
|
322
|
-
* @param {string} componentTagOrHtml - the component tag or HTML markup to test against
|
|
323
|
-
* @param {FormAssociatedOptions} options - form associated options
|
|
324
|
-
*/
|
|
325
|
-
export async function formAssociated(componentTagOrHtml, options) {
|
|
326
|
-
const componentTag = getTag(componentTagOrHtml);
|
|
327
|
-
const componentHtml = ensureName(isHTML(componentTagOrHtml) ? componentTagOrHtml : `<${componentTag}></${componentTag}>`);
|
|
328
|
-
function ensureName(html) {
|
|
329
|
-
return html.includes("name=") ? html : html.replace(componentTag, `${componentTag} name="testName" `);
|
|
330
|
-
}
|
|
331
|
-
const page = await newE2EPage({
|
|
332
|
-
html: html `<form>
|
|
333
|
-
${componentHtml}
|
|
334
|
-
<!--
|
|
335
|
-
keeping things simple by using submit-type input
|
|
336
|
-
this should cover button and calcite-button submit cases
|
|
337
|
-
-->
|
|
338
|
-
<input id="submitter" type="submit" />
|
|
339
|
-
</form>`
|
|
340
|
-
});
|
|
341
|
-
await page.waitForChanges();
|
|
342
|
-
const component = await page.find(componentTag);
|
|
343
|
-
const checkable = typeof options.testValue === "boolean" && (await page.$eval(componentTag, (component) => "checked" in component));
|
|
344
|
-
const resettablePropName = checkable ? "checked" : "value";
|
|
345
|
-
const initialValue = await component.getProperty(resettablePropName);
|
|
346
|
-
await assertValueResetOnFormReset();
|
|
347
|
-
await assertValueSubmittedOnFormSubmit();
|
|
348
|
-
if (options.submitsOnEnter) {
|
|
349
|
-
await assertFormSubmitOnEnter();
|
|
350
|
-
}
|
|
351
|
-
async function assertValueResetOnFormReset() {
|
|
352
|
-
component.setProperty(resettablePropName, options.testValue);
|
|
353
|
-
await page.waitForChanges();
|
|
354
|
-
await page.$eval("form", (form) => form.reset());
|
|
355
|
-
await page.waitForChanges();
|
|
356
|
-
expect(await component.getProperty(resettablePropName)).toBe(initialValue);
|
|
357
|
-
}
|
|
358
|
-
async function assertValueSubmittedOnFormSubmit() {
|
|
359
|
-
const inputName = await component.getProperty("name");
|
|
360
|
-
const stringifiedTestValue = stringifyTestValue(options.testValue);
|
|
361
|
-
if (checkable) {
|
|
362
|
-
component.setProperty("checked", true);
|
|
363
|
-
await page.waitForChanges();
|
|
364
|
-
expect(await submitAndGetValue()).toEqual("on");
|
|
365
|
-
component.setProperty("value", options.testValue);
|
|
366
|
-
await page.waitForChanges();
|
|
367
|
-
expect(await submitAndGetValue()).toEqual(stringifiedTestValue);
|
|
368
|
-
component.setProperty("disabled", true);
|
|
369
|
-
await page.waitForChanges();
|
|
370
|
-
expect(await submitAndGetValue()).toBe(null);
|
|
371
|
-
component.setProperty("checked", true);
|
|
372
|
-
component.setProperty("disabled", false);
|
|
373
|
-
await page.waitForChanges();
|
|
374
|
-
expect(await submitAndGetValue()).toEqual(stringifiedTestValue);
|
|
375
|
-
component.setProperty("checked", false);
|
|
376
|
-
await page.waitForChanges();
|
|
377
|
-
expect(await submitAndGetValue()).toBe(null);
|
|
378
|
-
}
|
|
379
|
-
else {
|
|
380
|
-
component.setProperty("required", true);
|
|
381
|
-
component.setProperty("value", null);
|
|
382
|
-
await page.waitForChanges();
|
|
383
|
-
expect(await submitAndGetValue()).toBeUndefined();
|
|
384
|
-
component.setProperty("required", false);
|
|
385
|
-
component.setProperty("value", options.testValue);
|
|
386
|
-
await page.waitForChanges();
|
|
387
|
-
expect(await submitAndGetValue()).toEqual((options === null || options === void 0 ? void 0 : options.expectedSubmitValue) || stringifiedTestValue);
|
|
388
|
-
component.setProperty("disabled", true);
|
|
389
|
-
await page.waitForChanges();
|
|
390
|
-
expect(await submitAndGetValue()).toBe(null);
|
|
391
|
-
component.setProperty("disabled", false);
|
|
392
|
-
component.setProperty("value", options.testValue);
|
|
393
|
-
await page.waitForChanges();
|
|
394
|
-
expect(await submitAndGetValue()).toEqual((options === null || options === void 0 ? void 0 : options.expectedSubmitValue) || stringifiedTestValue);
|
|
395
|
-
component.setProperty("value", options.testValue);
|
|
396
|
-
await page.waitForChanges();
|
|
397
|
-
expect(await submitAndGetValue()).toEqual((options === null || options === void 0 ? void 0 : options.expectedSubmitValue) || stringifiedTestValue);
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* This method will submit the form and return the submitted value:
|
|
401
|
-
*
|
|
402
|
-
* For single-value components, it will return a string or null if the value was not submitted
|
|
403
|
-
* For multi-value components, it will return an array of strings
|
|
404
|
-
*
|
|
405
|
-
* If the input cannot be submitted because it is invalid, undefined will be returned
|
|
406
|
-
*/
|
|
407
|
-
async function submitAndGetValue() {
|
|
408
|
-
return page.$eval("form", async (form, inputName, hiddenFormInputSlotName) => {
|
|
409
|
-
const hiddenFormInput = document.querySelector(`[name="${inputName}"] input[slot=${hiddenFormInputSlotName}]`);
|
|
410
|
-
let resolve;
|
|
411
|
-
const submitPromise = new Promise((yes) => (resolve = yes));
|
|
412
|
-
function handleFormSubmit(event) {
|
|
413
|
-
event.preventDefault();
|
|
414
|
-
const formData = new FormData(form);
|
|
415
|
-
const values = formData.getAll(inputName);
|
|
416
|
-
if (values.length > 1) {
|
|
417
|
-
resolve(values);
|
|
418
|
-
return;
|
|
419
|
-
}
|
|
420
|
-
resolve(formData.get(inputName));
|
|
421
|
-
hiddenFormInput.removeEventListener("invalid", handleInvalidInput);
|
|
422
|
-
}
|
|
423
|
-
function handleInvalidInput() {
|
|
424
|
-
resolve(undefined);
|
|
425
|
-
form.removeEventListener("submit", handleFormSubmit);
|
|
426
|
-
}
|
|
427
|
-
form.addEventListener("submit", handleFormSubmit, { once: true });
|
|
428
|
-
hiddenFormInput.addEventListener("invalid", handleInvalidInput, { once: true });
|
|
429
|
-
document.querySelector("#submitter").click();
|
|
430
|
-
return submitPromise;
|
|
431
|
-
}, inputName, hiddenFormInputSlotName);
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
async function assertFormSubmitOnEnter() {
|
|
435
|
-
await page.$eval("form", (form) => {
|
|
436
|
-
form.addEventListener("submit", (event) => {
|
|
437
|
-
event.preventDefault();
|
|
438
|
-
window.called = true;
|
|
439
|
-
});
|
|
440
|
-
});
|
|
441
|
-
const stringifiedTestValue = stringifyTestValue(options.testValue);
|
|
442
|
-
await component.setProperty("value", stringifiedTestValue);
|
|
443
|
-
await component.callMethod("setFocus");
|
|
444
|
-
await page.keyboard.press("Enter");
|
|
445
|
-
const called = await page.evaluate(() => window.called);
|
|
446
|
-
expect(called).toBe(true);
|
|
447
|
-
}
|
|
448
|
-
function stringifyTestValue(value) {
|
|
449
|
-
return Array.isArray(value) ? value.map((value) => value.toString()) : value.toString();
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
async function getTagAndPage(componentSetup) {
|
|
453
|
-
if (typeof componentSetup === "string") {
|
|
454
|
-
const page = await simplePageSetup(componentSetup);
|
|
455
|
-
const tag = getTag(componentSetup);
|
|
456
|
-
return { page, tag };
|
|
457
|
-
}
|
|
458
|
-
return componentSetup;
|
|
459
|
-
}
|
|
460
|
-
/**
|
|
461
|
-
* Helper to test the disabled prop disabling user interaction.
|
|
462
|
-
*
|
|
463
|
-
* @param {TagOrHTML|TagAndPage} componentSetup - A component tag, html, or an e2e page for setting up a test
|
|
464
|
-
* @param {DisabledOptions} [options={ focusTarget: "host" }] - disabled options
|
|
465
|
-
*/
|
|
466
|
-
export async function disabled(componentSetup, options = { focusTarget: "host" }) {
|
|
467
|
-
const { page, tag } = await getTagAndPage(componentSetup);
|
|
468
|
-
const component = await page.find(tag);
|
|
469
|
-
const enabledComponentClickSpy = await component.spyOnEvent("click");
|
|
470
|
-
await skipAnimations(page);
|
|
471
|
-
await page.$eval(tag, (el) => {
|
|
472
|
-
el.addEventListener("click", (event) => {
|
|
473
|
-
const path = event.composedPath();
|
|
474
|
-
const anchor = path.find((el) => (el === null || el === void 0 ? void 0 : el.tagName) === "A");
|
|
475
|
-
if (anchor) {
|
|
476
|
-
// we prevent the default behavior to avoid a page redirect
|
|
477
|
-
anchor.addEventListener("click", (event) => event.preventDefault(), { once: true });
|
|
478
|
-
}
|
|
479
|
-
}, true);
|
|
480
|
-
});
|
|
481
|
-
async function expectToBeFocused(tag) {
|
|
482
|
-
const focusedTag = await page.evaluate(() => { var _a; return (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.tagName.toLowerCase(); });
|
|
483
|
-
expect(focusedTag).toBe(tag);
|
|
484
|
-
}
|
|
485
|
-
expect(component.getAttribute("aria-disabled")).toBeNull();
|
|
486
|
-
if (options.focusTarget === "none") {
|
|
487
|
-
await page.click(tag);
|
|
488
|
-
await expectToBeFocused("body");
|
|
489
|
-
expect(enabledComponentClickSpy).toHaveReceivedEventTimes(1);
|
|
490
|
-
component.setProperty("disabled", true);
|
|
491
|
-
await page.waitForChanges();
|
|
492
|
-
const disabledComponentClickSpy = await component.spyOnEvent("click");
|
|
493
|
-
expect(component.getAttribute("aria-disabled")).toBe("true");
|
|
494
|
-
await page.click(tag);
|
|
495
|
-
await expectToBeFocused("body");
|
|
496
|
-
await component.callMethod("click");
|
|
497
|
-
await expectToBeFocused("body");
|
|
498
|
-
expect(disabledComponentClickSpy).toHaveReceivedEventTimes(0);
|
|
499
|
-
return;
|
|
500
|
-
}
|
|
501
|
-
async function getFocusTarget(focusTarget) {
|
|
502
|
-
return focusTarget === "host" ? tag : await page.evaluate(() => { var _a; return (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.tagName.toLowerCase(); });
|
|
503
|
-
}
|
|
504
|
-
await page.keyboard.press("Tab");
|
|
505
|
-
let tabFocusTarget;
|
|
506
|
-
let clickFocusTarget;
|
|
507
|
-
if (typeof options.focusTarget === "object") {
|
|
508
|
-
tabFocusTarget = options.focusTarget.tab;
|
|
509
|
-
clickFocusTarget = options.focusTarget.click;
|
|
510
|
-
}
|
|
511
|
-
else {
|
|
512
|
-
tabFocusTarget = clickFocusTarget = await getFocusTarget(options.focusTarget);
|
|
513
|
-
}
|
|
514
|
-
expect(tabFocusTarget).not.toBe("body");
|
|
515
|
-
await expectToBeFocused(tabFocusTarget);
|
|
516
|
-
const [shadowFocusableCenterX, shadowFocusableCenterY] = await page.$eval(tabFocusTarget, (element) => {
|
|
517
|
-
const focusTarget = element.shadowRoot.activeElement || element;
|
|
518
|
-
const rect = focusTarget.getBoundingClientRect();
|
|
519
|
-
return [rect.x + rect.width / 2, rect.y + rect.height / 2];
|
|
520
|
-
});
|
|
521
|
-
async function resetFocusOrder() {
|
|
522
|
-
// test page has default margin, so clicking on 0,0 will not hit the test element
|
|
523
|
-
await page.mouse.click(0, 0);
|
|
524
|
-
}
|
|
525
|
-
await resetFocusOrder();
|
|
526
|
-
await expectToBeFocused("body");
|
|
527
|
-
await page.mouse.click(shadowFocusableCenterX, shadowFocusableCenterY);
|
|
528
|
-
await expectToBeFocused(clickFocusTarget);
|
|
529
|
-
await component.callMethod("click");
|
|
530
|
-
await expectToBeFocused(clickFocusTarget);
|
|
531
|
-
// some components emit more than one click event,
|
|
532
|
-
// so we check if at least one event is received
|
|
533
|
-
expect(enabledComponentClickSpy.length).toBeGreaterThanOrEqual(2);
|
|
534
|
-
component.setProperty("disabled", true);
|
|
535
|
-
await page.waitForChanges();
|
|
536
|
-
const disabledComponentClickSpy = await component.spyOnEvent("click");
|
|
537
|
-
expect(component.getAttribute("aria-disabled")).toBe("true");
|
|
538
|
-
await resetFocusOrder();
|
|
539
|
-
await page.keyboard.press("Tab");
|
|
540
|
-
await expectToBeFocused("body");
|
|
541
|
-
await page.mouse.click(shadowFocusableCenterX, shadowFocusableCenterY);
|
|
542
|
-
await expectToBeFocused("body");
|
|
543
|
-
expect(disabledComponentClickSpy).toHaveReceivedEventTimes(0);
|
|
544
|
-
}
|
|
545
|
-
/**
|
|
546
|
-
* This helper will test if a floating-ui-owning component has configured the floating-ui correctly.
|
|
547
|
-
* At the moment, this only tests if the scroll event listeners are only active when the floating-ui is displayed.
|
|
548
|
-
*
|
|
549
|
-
* @param componentTagOrHTML - the component tag or HTML markup to test against
|
|
550
|
-
* @param togglePropName - the component property that toggles the floating-ui
|
|
551
|
-
* @param options - the floating-ui owner test configuration
|
|
552
|
-
* @param options.shadowSelector
|
|
553
|
-
*/
|
|
554
|
-
export async function floatingUIOwner(componentTagOrHTML, togglePropName, options) {
|
|
555
|
-
const page = await simplePageSetup(componentTagOrHTML);
|
|
556
|
-
const scrollablePageSizeInPx = 2400;
|
|
557
|
-
await page.addStyleTag({
|
|
558
|
-
content: `body {
|
|
559
|
-
height: ${scrollablePageSizeInPx}px;
|
|
560
|
-
width: ${scrollablePageSizeInPx}px;
|
|
561
|
-
}`
|
|
562
|
-
});
|
|
563
|
-
await page.waitForChanges();
|
|
564
|
-
const tag = getTag(componentTagOrHTML);
|
|
565
|
-
const component = await page.find(tag);
|
|
566
|
-
async function getTransform() {
|
|
567
|
-
// need to get the style attribute from the browser context since the E2E element returns null
|
|
568
|
-
return page.$eval(tag, (component, shadowSelector) => {
|
|
569
|
-
const floatingUIEl = shadowSelector
|
|
570
|
-
? component.shadowRoot.querySelector(shadowSelector)
|
|
571
|
-
: component;
|
|
572
|
-
return floatingUIEl.getAttribute("style");
|
|
573
|
-
}, options === null || options === void 0 ? void 0 : options.shadowSelector);
|
|
574
|
-
}
|
|
575
|
-
async function scrollTo(x, y) {
|
|
576
|
-
await page.evaluate((x, y) => document.firstElementChild.scrollTo(x, y), x, y);
|
|
577
|
-
}
|
|
578
|
-
component.setProperty(togglePropName, false);
|
|
579
|
-
await page.waitForChanges();
|
|
580
|
-
const initialClosedTransform = await getTransform();
|
|
581
|
-
await scrollTo(scrollablePageSizeInPx, scrollablePageSizeInPx);
|
|
582
|
-
await page.waitForChanges();
|
|
583
|
-
expect(await getTransform()).toBe(initialClosedTransform);
|
|
584
|
-
await scrollTo(0, 0);
|
|
585
|
-
await page.waitForChanges();
|
|
586
|
-
expect(await getTransform()).toBe(initialClosedTransform);
|
|
587
|
-
component.setProperty(togglePropName, true);
|
|
588
|
-
await page.waitForChanges();
|
|
589
|
-
const initialOpenTransform = await getTransform();
|
|
590
|
-
await scrollTo(scrollablePageSizeInPx, scrollablePageSizeInPx);
|
|
591
|
-
await page.waitForChanges();
|
|
592
|
-
expect(await getTransform()).not.toBe(initialOpenTransform);
|
|
593
|
-
await scrollTo(0, 0);
|
|
594
|
-
await page.waitForChanges();
|
|
595
|
-
expect(await getTransform()).toBe(initialOpenTransform);
|
|
596
|
-
}
|