@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,737 +0,0 @@
|
|
|
1
|
-
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
-
import { accessible, defaults, focusable, renders, hidden } from "../../tests/commonTests";
|
|
3
|
-
import { formatTimePart } from "../../utils/time";
|
|
4
|
-
import { CSS } from "./resources";
|
|
5
|
-
const letterKeys = [
|
|
6
|
-
"a",
|
|
7
|
-
"b",
|
|
8
|
-
"c",
|
|
9
|
-
"d",
|
|
10
|
-
"e",
|
|
11
|
-
"f",
|
|
12
|
-
"g",
|
|
13
|
-
"h",
|
|
14
|
-
"i",
|
|
15
|
-
"j",
|
|
16
|
-
"k",
|
|
17
|
-
"l",
|
|
18
|
-
"m",
|
|
19
|
-
"n",
|
|
20
|
-
"o",
|
|
21
|
-
"p",
|
|
22
|
-
"q",
|
|
23
|
-
"r",
|
|
24
|
-
"s",
|
|
25
|
-
"t",
|
|
26
|
-
"u",
|
|
27
|
-
"v",
|
|
28
|
-
"w",
|
|
29
|
-
"x",
|
|
30
|
-
"y",
|
|
31
|
-
"z"
|
|
32
|
-
];
|
|
33
|
-
describe("calcite-time-picker", () => {
|
|
34
|
-
it("renders", async () => renders("calcite-time-picker", { display: "inline-block" }));
|
|
35
|
-
it("honors hidden attribute", async () => hidden("calcite-time-picker"));
|
|
36
|
-
it("is accessible", async () => accessible(`<calcite-time-picker></calcite-time-picker>`));
|
|
37
|
-
it("is accessible using seconds", async () => accessible(`<calcite-time-picker step="1" value="00:00:00"></calcite-time-picker>`));
|
|
38
|
-
it("has defaults", async () => defaults("calcite-time-picker", [
|
|
39
|
-
{ propertyName: "scale", defaultValue: "m" },
|
|
40
|
-
{ propertyName: "step", defaultValue: 60 }
|
|
41
|
-
]));
|
|
42
|
-
it("should focus the first input when setFocus is called", async () => focusable(`calcite-time-picker`, {
|
|
43
|
-
shadowFocusTargetSelector: `.${CSS.hour}`
|
|
44
|
-
}));
|
|
45
|
-
it("value displays correctly when value is programmatically changed", async () => {
|
|
46
|
-
const originalValue = "11:00:00";
|
|
47
|
-
const newValue = "14:30:40";
|
|
48
|
-
const page = await newE2EPage({
|
|
49
|
-
html: `<calcite-time-picker step="1" value="${originalValue}"></calcite-time-picker>`
|
|
50
|
-
});
|
|
51
|
-
const timePicker = await page.find("calcite-time-picker");
|
|
52
|
-
const hourEl = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
53
|
-
const minuteEl = await page.find(`calcite-time-picker >>> .${CSS.minute}`);
|
|
54
|
-
const secondEl = await page.find(`calcite-time-picker >>> .${CSS.second}`);
|
|
55
|
-
const meridiemEl = await page.find(`calcite-time-picker >>> .${CSS.meridiem}`);
|
|
56
|
-
expect(await timePicker.getProperty("value")).toBe(originalValue);
|
|
57
|
-
expect(hourEl.textContent).toBe("11");
|
|
58
|
-
expect(minuteEl.textContent).toBe("00");
|
|
59
|
-
expect(secondEl.textContent).toBe("00");
|
|
60
|
-
expect(meridiemEl.textContent).toBe("AM");
|
|
61
|
-
timePicker.setProperty("value", newValue);
|
|
62
|
-
await page.waitForChanges();
|
|
63
|
-
expect(await timePicker.getProperty("value")).toBe(newValue);
|
|
64
|
-
expect(hourEl.textContent).toBe("02");
|
|
65
|
-
expect(minuteEl.textContent).toBe("30");
|
|
66
|
-
expect(secondEl.textContent).toBe("40");
|
|
67
|
-
expect(meridiemEl.textContent).toBe("PM");
|
|
68
|
-
});
|
|
69
|
-
describe("keyboard accessibility", () => {
|
|
70
|
-
it("tabbing focuses each input in the correct sequence", async () => {
|
|
71
|
-
const page = await newE2EPage({
|
|
72
|
-
html: `<calcite-time-picker step="1"></calcite-time-picker>`
|
|
73
|
-
});
|
|
74
|
-
await page.keyboard.press("Tab");
|
|
75
|
-
await page.waitForChanges();
|
|
76
|
-
expect(await page.$eval("calcite-time-picker", (element, selector) => element.shadowRoot.activeElement.matches(selector), `.${CSS.hour}`)).toBe(true);
|
|
77
|
-
await page.keyboard.press("Tab");
|
|
78
|
-
await page.waitForChanges();
|
|
79
|
-
expect(await page.$eval("calcite-time-picker", (element, selector) => element.shadowRoot.activeElement.matches(selector), `.${CSS.minute}`)).toBe(true);
|
|
80
|
-
await page.keyboard.press("Tab");
|
|
81
|
-
await page.waitForChanges();
|
|
82
|
-
expect(await page.$eval("calcite-time-picker", (element, selector) => element.shadowRoot.activeElement.matches(selector), `.${CSS.second}`)).toBe(true);
|
|
83
|
-
await page.keyboard.press("Tab");
|
|
84
|
-
await page.waitForChanges();
|
|
85
|
-
expect(await page.$eval("calcite-time-picker", (element, selector) => element.shadowRoot.activeElement.matches(selector), `.${CSS.meridiem}`)).toBe(true);
|
|
86
|
-
});
|
|
87
|
-
it("pressing right and left arrow keys focuses each input in the correct sequence", async () => {
|
|
88
|
-
const page = await newE2EPage({
|
|
89
|
-
html: `<calcite-time-picker step="1"></calcite-time-picker>`
|
|
90
|
-
});
|
|
91
|
-
await page.keyboard.press("Tab");
|
|
92
|
-
await page.waitForChanges();
|
|
93
|
-
expect(await page.$eval("calcite-time-picker", (element, selector) => element.shadowRoot.activeElement.matches(selector), `.${CSS.hour}`)).toBe(true);
|
|
94
|
-
await page.keyboard.press("ArrowRight");
|
|
95
|
-
await page.waitForChanges();
|
|
96
|
-
expect(await page.$eval("calcite-time-picker", (element, selector) => element.shadowRoot.activeElement.matches(selector), `.${CSS.minute}`)).toBe(true);
|
|
97
|
-
await page.keyboard.press("ArrowRight");
|
|
98
|
-
await page.waitForChanges();
|
|
99
|
-
expect(await page.$eval("calcite-time-picker", (element, selector) => element.shadowRoot.activeElement.matches(selector), `.${CSS.second}`)).toBe(true);
|
|
100
|
-
await page.keyboard.press("ArrowRight");
|
|
101
|
-
await page.waitForChanges();
|
|
102
|
-
expect(await page.$eval("calcite-time-picker", (element, selector) => element.shadowRoot.activeElement.matches(selector), `.${CSS.meridiem}`)).toBe(true);
|
|
103
|
-
await page.keyboard.press("ArrowLeft");
|
|
104
|
-
await page.waitForChanges();
|
|
105
|
-
expect(await page.$eval("calcite-time-picker", (element, selector) => element.shadowRoot.activeElement.matches(selector), `.${CSS.second}`)).toBe(true);
|
|
106
|
-
await page.keyboard.press("ArrowLeft");
|
|
107
|
-
await page.waitForChanges();
|
|
108
|
-
expect(await page.$eval("calcite-time-picker", (element, selector) => element.shadowRoot.activeElement.matches(selector), `.${CSS.minute}`)).toBe(true);
|
|
109
|
-
await page.keyboard.press("ArrowLeft");
|
|
110
|
-
await page.waitForChanges();
|
|
111
|
-
expect(await page.$eval("calcite-time-picker", (element, selector) => element.shadowRoot.activeElement.matches(selector), `.${CSS.hour}`)).toBe(true);
|
|
112
|
-
});
|
|
113
|
-
it("ArrowUp key increments hour property and display hour correctly for fr lang (24-hour)", async () => {
|
|
114
|
-
const page = await newE2EPage({
|
|
115
|
-
html: `<calcite-time-picker lang="fr"></calcite-time-picker>`
|
|
116
|
-
});
|
|
117
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
118
|
-
await hour.click();
|
|
119
|
-
for (let i = 1; i < 24; i++) {
|
|
120
|
-
await page.keyboard.press("ArrowUp");
|
|
121
|
-
await page.waitForChanges();
|
|
122
|
-
expect(hour.textContent).toBe(formatTimePart(i));
|
|
123
|
-
}
|
|
124
|
-
await page.keyboard.press("ArrowUp");
|
|
125
|
-
await page.waitForChanges();
|
|
126
|
-
expect(hour.textContent).toBe("00");
|
|
127
|
-
});
|
|
128
|
-
it("ArrowDown key decrements hour property and display hour correctly for fr lang (24-hour)", async () => {
|
|
129
|
-
const page = await newE2EPage({
|
|
130
|
-
html: `<calcite-time-picker lang="fr"></calcite-time-picker>`
|
|
131
|
-
});
|
|
132
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
133
|
-
await hour.click();
|
|
134
|
-
await page.keyboard.press("ArrowDown");
|
|
135
|
-
for (let i = 23; i > 0; i--) {
|
|
136
|
-
await page.keyboard.press("ArrowDown");
|
|
137
|
-
await page.waitForChanges();
|
|
138
|
-
expect(hour.textContent).toBe(formatTimePart(i));
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
it("ArrowUp key increments hour property and display hour correctly for en lang (12-hour)", async () => {
|
|
142
|
-
const page = await newE2EPage({
|
|
143
|
-
html: `<calcite-time-picker></calcite-time-picker>`
|
|
144
|
-
});
|
|
145
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
146
|
-
await hour.click();
|
|
147
|
-
for (let i = 1; i < 24; i++) {
|
|
148
|
-
await page.keyboard.press("ArrowUp");
|
|
149
|
-
await page.waitForChanges();
|
|
150
|
-
expect(hour.textContent).toBe(i > 12 ? formatTimePart(i - 12) : formatTimePart(i));
|
|
151
|
-
}
|
|
152
|
-
await page.keyboard.press("ArrowUp");
|
|
153
|
-
});
|
|
154
|
-
it("ArrowDown key decrements hour property and display hour correctly for en lang (12-hour)", async () => {
|
|
155
|
-
const page = await newE2EPage({
|
|
156
|
-
html: `<calcite-time-picker></calcite-time-picker>`
|
|
157
|
-
});
|
|
158
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
159
|
-
await hour.click();
|
|
160
|
-
await page.keyboard.press("ArrowDown");
|
|
161
|
-
for (let i = 23; i > 0; i--) {
|
|
162
|
-
await page.keyboard.press("ArrowDown");
|
|
163
|
-
await page.waitForChanges();
|
|
164
|
-
expect(hour.textContent).toBe(i > 12 ? formatTimePart(i - 12) : formatTimePart(i));
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
it("ArrowUp key increments minute property correctly", async () => {
|
|
168
|
-
const page = await newE2EPage({
|
|
169
|
-
html: `<calcite-time-picker></calcite-time-picker>`
|
|
170
|
-
});
|
|
171
|
-
const minute = await page.find(`calcite-time-picker >>> .${CSS.minute}`);
|
|
172
|
-
await minute.click();
|
|
173
|
-
for (let i = 0; i < 60; i++) {
|
|
174
|
-
await page.keyboard.press("ArrowUp");
|
|
175
|
-
}
|
|
176
|
-
await page.keyboard.press("ArrowUp");
|
|
177
|
-
});
|
|
178
|
-
it("ArrowDown key decrements minute property correctly", async () => {
|
|
179
|
-
const page = await newE2EPage({
|
|
180
|
-
html: `<calcite-time-picker></calcite-time-picker>`
|
|
181
|
-
});
|
|
182
|
-
const minute = await page.find(`calcite-time-picker >>> .${CSS.minute}`);
|
|
183
|
-
await minute.click();
|
|
184
|
-
for (let i = 59; i >= 0; i--) {
|
|
185
|
-
await page.keyboard.press("ArrowDown");
|
|
186
|
-
}
|
|
187
|
-
await page.keyboard.press("ArrowDown");
|
|
188
|
-
});
|
|
189
|
-
it("ArrowUp key increments second property correctly", async () => {
|
|
190
|
-
const page = await newE2EPage({
|
|
191
|
-
html: `<calcite-time-picker step="1"></calcite-time-picker>`
|
|
192
|
-
});
|
|
193
|
-
const second = await page.find(`calcite-time-picker >>> .${CSS.second}`);
|
|
194
|
-
await second.click();
|
|
195
|
-
for (let i = 0; i < 60; i++) {
|
|
196
|
-
await page.keyboard.press("ArrowUp");
|
|
197
|
-
}
|
|
198
|
-
await page.keyboard.press("ArrowUp");
|
|
199
|
-
});
|
|
200
|
-
it("ArrowDown key decrements second property correctly", async () => {
|
|
201
|
-
const page = await newE2EPage({
|
|
202
|
-
html: `<calcite-time-picker step="1"></calcite-time-picker>`
|
|
203
|
-
});
|
|
204
|
-
const second = await page.find(`calcite-time-picker >>> .${CSS.second}`);
|
|
205
|
-
await second.click();
|
|
206
|
-
for (let i = 59; i >= 0; i--) {
|
|
207
|
-
await page.keyboard.press("ArrowDown");
|
|
208
|
-
}
|
|
209
|
-
await page.keyboard.press("ArrowDown");
|
|
210
|
-
});
|
|
211
|
-
it("ArrowUp key increments meridiem property correctly", async () => {
|
|
212
|
-
const page = await newE2EPage({
|
|
213
|
-
html: `<calcite-time-picker></calcite-time-picker>`
|
|
214
|
-
});
|
|
215
|
-
const meridiem = await page.find(`calcite-time-picker >>> .${CSS.meridiem}`);
|
|
216
|
-
await meridiem.click();
|
|
217
|
-
await page.keyboard.press("ArrowUp");
|
|
218
|
-
await page.waitForChanges();
|
|
219
|
-
expect(meridiem.textContent).toBe("AM");
|
|
220
|
-
await page.keyboard.press("ArrowUp");
|
|
221
|
-
await page.waitForChanges();
|
|
222
|
-
expect(meridiem.textContent).toBe("PM");
|
|
223
|
-
await page.keyboard.press("ArrowUp");
|
|
224
|
-
await page.waitForChanges();
|
|
225
|
-
expect(meridiem.textContent).toBe("AM");
|
|
226
|
-
await page.keyboard.press("Backspace");
|
|
227
|
-
await page.waitForChanges();
|
|
228
|
-
expect(meridiem.textContent).toBe("--");
|
|
229
|
-
});
|
|
230
|
-
it("ArrowDown key decrements meridiem property correctly", async () => {
|
|
231
|
-
const page = await newE2EPage({
|
|
232
|
-
html: `<calcite-time-picker></calcite-time-picker>`
|
|
233
|
-
});
|
|
234
|
-
const meridiem = await page.find(`calcite-time-picker >>> .${CSS.meridiem}`);
|
|
235
|
-
await meridiem.click();
|
|
236
|
-
await page.keyboard.press("ArrowDown");
|
|
237
|
-
await page.waitForChanges();
|
|
238
|
-
expect(meridiem.textContent).toBe("PM");
|
|
239
|
-
await page.keyboard.press("ArrowDown");
|
|
240
|
-
await page.waitForChanges();
|
|
241
|
-
expect(meridiem.textContent).toBe("AM");
|
|
242
|
-
await page.keyboard.press("ArrowDown");
|
|
243
|
-
await page.waitForChanges();
|
|
244
|
-
expect(meridiem.textContent).toBe("PM");
|
|
245
|
-
await page.keyboard.press("Backspace");
|
|
246
|
-
await page.waitForChanges();
|
|
247
|
-
expect(meridiem.textContent).toBe("--");
|
|
248
|
-
});
|
|
249
|
-
it("typing letter keys changes nothing for hour, minute and second in 24-hour format", async () => {
|
|
250
|
-
const page = await newE2EPage({
|
|
251
|
-
html: `<calcite-time-picker lang="fr" step="1"></calcite-time-picker>`
|
|
252
|
-
});
|
|
253
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
254
|
-
const minute = await page.find(`calcite-time-picker >>> .${CSS.minute}`);
|
|
255
|
-
const second = await page.find(`calcite-time-picker >>> .${CSS.second}`);
|
|
256
|
-
await hour.click();
|
|
257
|
-
for (let i = 0; i >= letterKeys.length; i++) {
|
|
258
|
-
await page.keyboard.press(letterKeys[i]);
|
|
259
|
-
expect(hour.textContent).toBe("--");
|
|
260
|
-
}
|
|
261
|
-
await minute.click();
|
|
262
|
-
for (let i = 0; i >= letterKeys.length; i++) {
|
|
263
|
-
await page.keyboard.press(letterKeys[i]);
|
|
264
|
-
expect(minute.textContent).toBe("--");
|
|
265
|
-
}
|
|
266
|
-
await second.click();
|
|
267
|
-
for (let i = 0; i >= letterKeys.length; i++) {
|
|
268
|
-
await page.keyboard.press(letterKeys[i]);
|
|
269
|
-
expect(second.textContent).toBe("--");
|
|
270
|
-
}
|
|
271
|
-
});
|
|
272
|
-
it("typing letter keys changes nothing for hour, minute and second in 12-hour format", async () => {
|
|
273
|
-
const page = await newE2EPage({
|
|
274
|
-
html: `<calcite-time-picker step="1"></calcite-time-picker>`
|
|
275
|
-
});
|
|
276
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
277
|
-
const minute = await page.find(`calcite-time-picker >>> .${CSS.minute}`);
|
|
278
|
-
const second = await page.find(`calcite-time-picker >>> .${CSS.second}`);
|
|
279
|
-
await hour.click();
|
|
280
|
-
for (let i = 0; i >= letterKeys.length; i++) {
|
|
281
|
-
await page.keyboard.press(letterKeys[i]);
|
|
282
|
-
expect(hour.textContent).toBe("--");
|
|
283
|
-
}
|
|
284
|
-
await minute.click();
|
|
285
|
-
for (let i = 0; i >= letterKeys.length; i++) {
|
|
286
|
-
await page.keyboard.press(letterKeys[i]);
|
|
287
|
-
expect(minute.textContent).toBe("--");
|
|
288
|
-
}
|
|
289
|
-
await second.click();
|
|
290
|
-
for (let i = 0; i >= letterKeys.length; i++) {
|
|
291
|
-
await page.keyboard.press(letterKeys[i]);
|
|
292
|
-
expect(second.textContent).toBe("--");
|
|
293
|
-
}
|
|
294
|
-
});
|
|
295
|
-
it("allows typing single digit values for hour, minute and second and pads the value and display with a leading zero for 24-hour format", async () => {
|
|
296
|
-
const page = await newE2EPage({
|
|
297
|
-
html: `<calcite-time-picker lang="fr" step="1"></calcite-time-picker>`
|
|
298
|
-
});
|
|
299
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
300
|
-
const minute = await page.find(`calcite-time-picker >>> .${CSS.minute}`);
|
|
301
|
-
const second = await page.find(`calcite-time-picker >>> .${CSS.second}`);
|
|
302
|
-
await page.keyboard.press("Tab");
|
|
303
|
-
for (let i = 0; i < 10; i++) {
|
|
304
|
-
await page.keyboard.press(i.toString());
|
|
305
|
-
await page.waitForChanges();
|
|
306
|
-
expect(hour.textContent).toBe(`0${i}`);
|
|
307
|
-
await page.keyboard.press("Backspace");
|
|
308
|
-
}
|
|
309
|
-
await page.keyboard.press("Tab");
|
|
310
|
-
for (let i = 0; i < 10; i++) {
|
|
311
|
-
await page.keyboard.press(i.toString());
|
|
312
|
-
await page.waitForChanges();
|
|
313
|
-
expect(minute.textContent).toBe(`0${i}`);
|
|
314
|
-
await page.keyboard.press("Backspace");
|
|
315
|
-
}
|
|
316
|
-
await page.keyboard.press("Tab");
|
|
317
|
-
for (let i = 0; i < 10; i++) {
|
|
318
|
-
await page.keyboard.press(i.toString());
|
|
319
|
-
await page.waitForChanges();
|
|
320
|
-
expect(second.textContent).toBe(`0${i}`);
|
|
321
|
-
await page.keyboard.press("Backspace");
|
|
322
|
-
}
|
|
323
|
-
});
|
|
324
|
-
it("allows typing single digit values for hour, minute and second and pads the value and display with a leading zero for 12-hour format", async () => {
|
|
325
|
-
const page = await newE2EPage({
|
|
326
|
-
html: `<calcite-time-picker step="1"></calcite-time-picker>`
|
|
327
|
-
});
|
|
328
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
329
|
-
const minute = await page.find(`calcite-time-picker >>> .${CSS.minute}`);
|
|
330
|
-
const second = await page.find(`calcite-time-picker >>> .${CSS.second}`);
|
|
331
|
-
await page.keyboard.press("Tab");
|
|
332
|
-
for (let i = 0; i < 10; i++) {
|
|
333
|
-
await page.keyboard.press(i.toString());
|
|
334
|
-
await page.waitForChanges();
|
|
335
|
-
expect(hour.textContent).toBe(i === 0 ? `12` : `0${i}`);
|
|
336
|
-
await page.keyboard.press("Backspace");
|
|
337
|
-
}
|
|
338
|
-
await page.keyboard.press("Tab");
|
|
339
|
-
for (let i = 0; i < 10; i++) {
|
|
340
|
-
await page.keyboard.press(i.toString());
|
|
341
|
-
await page.waitForChanges();
|
|
342
|
-
expect(minute.textContent).toBe(`0${i}`);
|
|
343
|
-
await page.keyboard.press("Backspace");
|
|
344
|
-
}
|
|
345
|
-
await page.keyboard.press("Tab");
|
|
346
|
-
for (let i = 0; i < 10; i++) {
|
|
347
|
-
await page.keyboard.press(i.toString());
|
|
348
|
-
await page.waitForChanges();
|
|
349
|
-
expect(second.textContent).toBe(`0${i}`);
|
|
350
|
-
await page.keyboard.press("Backspace");
|
|
351
|
-
}
|
|
352
|
-
});
|
|
353
|
-
it("restricts typing to valid hour values for 12-hour format", async () => {
|
|
354
|
-
const page = await newE2EPage({
|
|
355
|
-
html: `<calcite-time-picker step="1"></calcite-time-picker>`
|
|
356
|
-
});
|
|
357
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
358
|
-
await hour.click();
|
|
359
|
-
for (let i = 10; i < 13; i++) {
|
|
360
|
-
const [key1, key2] = i.toString().split("");
|
|
361
|
-
await page.keyboard.press(key1);
|
|
362
|
-
await page.keyboard.press(key2);
|
|
363
|
-
await page.waitForChanges();
|
|
364
|
-
expect(hour.textContent).toBe(`${key1}${key2}`);
|
|
365
|
-
}
|
|
366
|
-
for (let i = 13; i < 100; i++) {
|
|
367
|
-
const [key1, key2] = i.toString().split("");
|
|
368
|
-
await page.keyboard.press(key1);
|
|
369
|
-
await page.keyboard.press(key2);
|
|
370
|
-
await page.waitForChanges();
|
|
371
|
-
expect(hour.textContent).toBe(key2 === "0" ? `12` : `0${key2}`);
|
|
372
|
-
}
|
|
373
|
-
});
|
|
374
|
-
it("restricts typing to valid hour values for 24-hour format", async () => {
|
|
375
|
-
const page = await newE2EPage({
|
|
376
|
-
html: `<calcite-time-picker lang="fr" step="1"></calcite-time-picker>`
|
|
377
|
-
});
|
|
378
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
379
|
-
await hour.click();
|
|
380
|
-
for (let i = 10; i < 24; i++) {
|
|
381
|
-
const [key1, key2] = i.toString().split("");
|
|
382
|
-
await page.keyboard.press(key1);
|
|
383
|
-
await page.keyboard.press(key2);
|
|
384
|
-
await page.waitForChanges();
|
|
385
|
-
expect(hour.textContent).toBe(`${key1}${key2}`);
|
|
386
|
-
}
|
|
387
|
-
for (let i = 24; i < 100; i++) {
|
|
388
|
-
const [key1, key2] = i.toString().split("");
|
|
389
|
-
await page.keyboard.press(key1);
|
|
390
|
-
await page.keyboard.press(key2);
|
|
391
|
-
await page.waitForChanges();
|
|
392
|
-
expect(hour.textContent).toBe(`0${key2}`);
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
it("restricts typing to valid minute values", async () => {
|
|
396
|
-
const page = await newE2EPage({
|
|
397
|
-
html: `<calcite-time-picker step="1"></calcite-time-picker>`
|
|
398
|
-
});
|
|
399
|
-
const minute = await page.find(`calcite-time-picker >>> .${CSS.minute}`);
|
|
400
|
-
await minute.click();
|
|
401
|
-
for (let i = 10; i < 60; i++) {
|
|
402
|
-
const [key1, key2] = i.toString().split("");
|
|
403
|
-
await page.keyboard.press(key1);
|
|
404
|
-
await page.keyboard.press(key2);
|
|
405
|
-
await page.waitForChanges();
|
|
406
|
-
expect(minute.textContent).toBe(`${key1}${key2}`);
|
|
407
|
-
}
|
|
408
|
-
for (let i = 60; i < 100; i++) {
|
|
409
|
-
const [key1, key2] = i.toString().split("");
|
|
410
|
-
await page.keyboard.press(key1);
|
|
411
|
-
await page.keyboard.press(key2);
|
|
412
|
-
await page.waitForChanges();
|
|
413
|
-
expect(minute.textContent).toBe(`0${key2}`);
|
|
414
|
-
}
|
|
415
|
-
});
|
|
416
|
-
it("restricts typing to valid second values", async () => {
|
|
417
|
-
const page = await newE2EPage({
|
|
418
|
-
html: `<calcite-time-picker step="1"></calcite-time-picker>`
|
|
419
|
-
});
|
|
420
|
-
const second = await page.find(`calcite-time-picker >>> .${CSS.second}`);
|
|
421
|
-
await second.click();
|
|
422
|
-
for (let i = 10; i < 60; i++) {
|
|
423
|
-
const [key1, key2] = i.toString().split("");
|
|
424
|
-
await page.keyboard.press(key1);
|
|
425
|
-
await page.keyboard.press(key2);
|
|
426
|
-
await page.waitForChanges();
|
|
427
|
-
expect(second.textContent).toBe(`${key1}${key2}`);
|
|
428
|
-
}
|
|
429
|
-
for (let i = 60; i < 100; i++) {
|
|
430
|
-
const [key1, key2] = i.toString().split("");
|
|
431
|
-
await page.keyboard.press(key1);
|
|
432
|
-
await page.keyboard.press(key2);
|
|
433
|
-
await page.waitForChanges();
|
|
434
|
-
expect(second.textContent).toBe(`0${key2}`);
|
|
435
|
-
}
|
|
436
|
-
});
|
|
437
|
-
it("allows typing AM and PM for en lang (12-hour)", async () => {
|
|
438
|
-
const page = await newE2EPage({
|
|
439
|
-
html: `<calcite-time-picker></calcite-time-picker>`
|
|
440
|
-
});
|
|
441
|
-
const meridiem = await page.find(`calcite-time-picker >>> .${CSS.meridiem}`);
|
|
442
|
-
await meridiem.click();
|
|
443
|
-
await page.keyboard.press("a");
|
|
444
|
-
await page.waitForChanges();
|
|
445
|
-
expect(meridiem.textContent).toBe("AM");
|
|
446
|
-
await page.keyboard.press("p");
|
|
447
|
-
await page.waitForChanges();
|
|
448
|
-
expect(meridiem.textContent).toBe("PM");
|
|
449
|
-
});
|
|
450
|
-
it("typing am and pm multiple times when they are already set doesn't affect the hour", async () => {
|
|
451
|
-
const page = await newE2EPage({
|
|
452
|
-
html: `<calcite-time-picker value="00:00"></calcite-time-picker>`
|
|
453
|
-
});
|
|
454
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
455
|
-
const meridiem = await page.find(`calcite-time-picker >>> .${CSS.meridiem}`);
|
|
456
|
-
await meridiem.click();
|
|
457
|
-
await page.keyboard.press("a");
|
|
458
|
-
await page.keyboard.press("a");
|
|
459
|
-
await page.keyboard.press("a");
|
|
460
|
-
await page.waitForChanges();
|
|
461
|
-
expect(hour.textContent).toBe("12");
|
|
462
|
-
expect(meridiem.textContent).toBe("AM");
|
|
463
|
-
await page.keyboard.press("p");
|
|
464
|
-
await page.keyboard.press("p");
|
|
465
|
-
await page.keyboard.press("p");
|
|
466
|
-
await page.waitForChanges();
|
|
467
|
-
expect(hour.textContent).toBe("12");
|
|
468
|
-
expect(meridiem.textContent).toBe("PM");
|
|
469
|
-
});
|
|
470
|
-
it("Pressing delete when hour is focused clears the whole value", async () => {
|
|
471
|
-
const page = await newE2EPage({
|
|
472
|
-
html: `<calcite-time-picker step="1" value="00:00:00"></calcite-time-picker>`
|
|
473
|
-
});
|
|
474
|
-
const timePicker = await page.find("calcite-time-picker");
|
|
475
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
476
|
-
const minute = await page.find(`calcite-time-picker >>> .${CSS.minute}`);
|
|
477
|
-
const second = await page.find(`calcite-time-picker >>> .${CSS.second}`);
|
|
478
|
-
const meridiem = await page.find(`calcite-time-picker >>> .${CSS.meridiem}`);
|
|
479
|
-
expect(await timePicker.getProperty("value")).toBe("00:00:00");
|
|
480
|
-
expect(hour.textContent).toBe("12");
|
|
481
|
-
expect(minute.textContent).toBe("00");
|
|
482
|
-
expect(second.textContent).toBe("00");
|
|
483
|
-
expect(meridiem.textContent).toBe("AM");
|
|
484
|
-
await hour.click();
|
|
485
|
-
await page.keyboard.press("Delete");
|
|
486
|
-
await page.waitForChanges();
|
|
487
|
-
expect(await timePicker.getProperty("value")).toBeNull();
|
|
488
|
-
expect(hour.textContent).toBe("--");
|
|
489
|
-
expect(minute.textContent).toBe("--");
|
|
490
|
-
expect(second.textContent).toBe("--");
|
|
491
|
-
expect(meridiem.textContent).toBe("--");
|
|
492
|
-
});
|
|
493
|
-
it("Pressing delete when minute is focused clears the whole value", async () => {
|
|
494
|
-
const page = await newE2EPage({
|
|
495
|
-
html: `<calcite-time-picker step="1" value="00:00:00"></calcite-time-picker>`
|
|
496
|
-
});
|
|
497
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
498
|
-
const minute = await page.find(`calcite-time-picker >>> .${CSS.minute}`);
|
|
499
|
-
const second = await page.find(`calcite-time-picker >>> .${CSS.second}`);
|
|
500
|
-
const meridiem = await page.find(`calcite-time-picker >>> .${CSS.meridiem}`);
|
|
501
|
-
expect(hour.textContent).toBe("12");
|
|
502
|
-
expect(minute.textContent).toBe("00");
|
|
503
|
-
expect(second.textContent).toBe("00");
|
|
504
|
-
expect(meridiem.textContent).toBe("AM");
|
|
505
|
-
await minute.click();
|
|
506
|
-
await page.keyboard.press("Delete");
|
|
507
|
-
await page.waitForChanges();
|
|
508
|
-
expect(hour.textContent).toBe("--");
|
|
509
|
-
expect(minute.textContent).toBe("--");
|
|
510
|
-
expect(second.textContent).toBe("--");
|
|
511
|
-
expect(meridiem.textContent).toBe("--");
|
|
512
|
-
});
|
|
513
|
-
it("Pressing delete when second is focused just clears seconds", async () => {
|
|
514
|
-
const page = await newE2EPage({
|
|
515
|
-
html: `<calcite-time-picker step="1" value="00:00:00"></calcite-time-picker>`
|
|
516
|
-
});
|
|
517
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
518
|
-
const minute = await page.find(`calcite-time-picker >>> .${CSS.minute}`);
|
|
519
|
-
const second = await page.find(`calcite-time-picker >>> .${CSS.second}`);
|
|
520
|
-
const meridiem = await page.find(`calcite-time-picker >>> .${CSS.meridiem}`);
|
|
521
|
-
expect(hour.textContent).toBe("12");
|
|
522
|
-
expect(minute.textContent).toBe("00");
|
|
523
|
-
expect(second.textContent).toBe("00");
|
|
524
|
-
expect(meridiem.textContent).toBe("AM");
|
|
525
|
-
await second.click();
|
|
526
|
-
await page.keyboard.press("Delete");
|
|
527
|
-
await page.waitForChanges();
|
|
528
|
-
expect(hour.textContent).toBe("12");
|
|
529
|
-
expect(minute.textContent).toBe("00");
|
|
530
|
-
expect(second.textContent).toBe("--");
|
|
531
|
-
expect(meridiem.textContent).toBe("AM");
|
|
532
|
-
});
|
|
533
|
-
});
|
|
534
|
-
describe("time behavior", () => {
|
|
535
|
-
it("hour, display hour and AM/PM set correctly as hour changes for en lang (12-hour)", async () => {
|
|
536
|
-
const page = await newE2EPage({
|
|
537
|
-
html: `<calcite-time-picker value="00:00:00"></calcite-time-picker>`
|
|
538
|
-
});
|
|
539
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
540
|
-
const meridiem = await page.find(`calcite-time-picker >>> .${CSS.meridiem}`);
|
|
541
|
-
expect(meridiem.textContent).toBe("AM");
|
|
542
|
-
await hour.click();
|
|
543
|
-
await page.keyboard.press("ArrowDown");
|
|
544
|
-
await page.waitForChanges();
|
|
545
|
-
expect(hour.textContent).toBe("11");
|
|
546
|
-
expect(meridiem.textContent).toBe("PM");
|
|
547
|
-
await page.keyboard.press("ArrowUp");
|
|
548
|
-
await page.waitForChanges();
|
|
549
|
-
expect(hour.textContent).toBe("12");
|
|
550
|
-
expect(meridiem.textContent).toBe("AM");
|
|
551
|
-
});
|
|
552
|
-
it("changing AM/PM updates value property correctly for en lang (12-hour)", async () => {
|
|
553
|
-
const page = await newE2EPage({
|
|
554
|
-
html: `<calcite-time-picker value="00:00:00" step="1"></calcite-time-picker>`
|
|
555
|
-
});
|
|
556
|
-
const timePicker = await page.find(`calcite-time-picker`);
|
|
557
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
558
|
-
const meridiem = await page.find(`calcite-time-picker >>> .${CSS.meridiem}`);
|
|
559
|
-
expect(hour.textContent).toBe("12");
|
|
560
|
-
await meridiem.click();
|
|
561
|
-
await page.keyboard.press("ArrowUp");
|
|
562
|
-
await page.waitForChanges();
|
|
563
|
-
expect(hour.textContent).toBe("12");
|
|
564
|
-
expect(meridiem.textContent).toBe("PM");
|
|
565
|
-
expect(await timePicker.getProperty("value")).toBe("12:00:00");
|
|
566
|
-
await page.keyboard.press("ArrowDown");
|
|
567
|
-
await page.waitForChanges();
|
|
568
|
-
expect(hour.textContent).toBe("12");
|
|
569
|
-
expect(meridiem.textContent).toBe("AM");
|
|
570
|
-
expect(await timePicker.getProperty("value")).toBe("00:00:00");
|
|
571
|
-
});
|
|
572
|
-
it("hour-up button increments hour property and display hour correctly for fr lang (24-hour)", async () => {
|
|
573
|
-
const page = await newE2EPage({
|
|
574
|
-
html: `<calcite-time-picker lang="fr"></calcite-time-picker>`
|
|
575
|
-
});
|
|
576
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
577
|
-
const hourUp = await page.find(`calcite-time-picker >>> .${CSS.buttonHourUp}`);
|
|
578
|
-
for (let i = 1; i < 24; i++) {
|
|
579
|
-
await hourUp.click();
|
|
580
|
-
await page.waitForChanges();
|
|
581
|
-
expect(hour.textContent).toBe(formatTimePart(i));
|
|
582
|
-
}
|
|
583
|
-
await hourUp.click();
|
|
584
|
-
await page.waitForChanges();
|
|
585
|
-
expect(hour.textContent).toBe("00");
|
|
586
|
-
});
|
|
587
|
-
it("hour-down button decrements hour property and display hour correctly for fr lang (24-hour)", async () => {
|
|
588
|
-
const page = await newE2EPage({
|
|
589
|
-
html: `<calcite-time-picker lang="fr"></calcite-time-picker>`
|
|
590
|
-
});
|
|
591
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
592
|
-
const hourdown = await page.find(`calcite-time-picker >>> .${CSS.buttonHourDown}`);
|
|
593
|
-
await hourdown.click();
|
|
594
|
-
await page.waitForChanges();
|
|
595
|
-
expect(hour.textContent).toBe("00");
|
|
596
|
-
for (let i = 23; i > 0; i--) {
|
|
597
|
-
await hourdown.click();
|
|
598
|
-
await page.waitForChanges();
|
|
599
|
-
expect(hour.textContent).toBe(formatTimePart(i));
|
|
600
|
-
}
|
|
601
|
-
});
|
|
602
|
-
it("hour-up button increments hour property and display hour correctly for en lang (12-hour)", async () => {
|
|
603
|
-
const page = await newE2EPage({
|
|
604
|
-
html: `<calcite-time-picker></calcite-time-picker>`
|
|
605
|
-
});
|
|
606
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
607
|
-
const hourup = await page.find(`calcite-time-picker >>> .${CSS.buttonHourUp}`);
|
|
608
|
-
for (let i = 1; i <= 24; i++) {
|
|
609
|
-
await hourup.click();
|
|
610
|
-
await page.waitForChanges();
|
|
611
|
-
expect(hour.textContent).toBe(i > 12 ? formatTimePart(i - 12) : formatTimePart(i));
|
|
612
|
-
}
|
|
613
|
-
});
|
|
614
|
-
it("hour-down button decrements hour property and display hour correctly for en lang (12-hour)", async () => {
|
|
615
|
-
const page = await newE2EPage({
|
|
616
|
-
html: `<calcite-time-picker></calcite-time-picker>`
|
|
617
|
-
});
|
|
618
|
-
const hour = await page.find(`calcite-time-picker >>> .${CSS.hour}`);
|
|
619
|
-
const hourdown = await page.find(`calcite-time-picker >>> .${CSS.buttonHourDown}`);
|
|
620
|
-
await hourdown.click();
|
|
621
|
-
await page.waitForChanges();
|
|
622
|
-
expect(hour.textContent).toBe("12");
|
|
623
|
-
for (let i = 23; i > 0; i--) {
|
|
624
|
-
await hourdown.click();
|
|
625
|
-
await page.waitForChanges();
|
|
626
|
-
expect(hour.textContent).toBe(i > 12 ? formatTimePart(i - 12) : formatTimePart(i));
|
|
627
|
-
}
|
|
628
|
-
});
|
|
629
|
-
it("minute-up button increments minute property correctly", async () => {
|
|
630
|
-
const page = await newE2EPage({
|
|
631
|
-
html: `<calcite-time-picker></calcite-time-picker>`
|
|
632
|
-
});
|
|
633
|
-
const minute = await page.find(`calcite-time-picker >>> .${CSS.minute}`);
|
|
634
|
-
const minuteup = await page.find(`calcite-time-picker >>> .${CSS.buttonMinuteUp}`);
|
|
635
|
-
for (let i = 0; i < 60; i++) {
|
|
636
|
-
await minuteup.click();
|
|
637
|
-
await page.waitForChanges();
|
|
638
|
-
expect(minute.textContent).toBe(`${formatTimePart(i)}`);
|
|
639
|
-
}
|
|
640
|
-
await minuteup.click();
|
|
641
|
-
await page.waitForChanges();
|
|
642
|
-
expect(minute.textContent).toBe("00");
|
|
643
|
-
});
|
|
644
|
-
it("minute-down button decrements minute property correctly", async () => {
|
|
645
|
-
const page = await newE2EPage({
|
|
646
|
-
html: `<calcite-time-picker></calcite-time-picker>`
|
|
647
|
-
});
|
|
648
|
-
const minute = await page.find(`calcite-time-picker >>> .${CSS.minute}`);
|
|
649
|
-
const minutedown = await page.find(`calcite-time-picker >>> .${CSS.buttonMinuteDown}`);
|
|
650
|
-
for (let i = 59; i >= 0; i--) {
|
|
651
|
-
await minutedown.click();
|
|
652
|
-
await page.waitForChanges();
|
|
653
|
-
expect(minute.textContent).toBe(`${formatTimePart(i)}`);
|
|
654
|
-
}
|
|
655
|
-
await minutedown.click();
|
|
656
|
-
await page.waitForChanges();
|
|
657
|
-
expect(minute.textContent).toBe("59");
|
|
658
|
-
});
|
|
659
|
-
it("second-up button increments second property correctly", async () => {
|
|
660
|
-
const page = await newE2EPage({
|
|
661
|
-
html: `<calcite-time-picker step="1"></calcite-time-picker>`
|
|
662
|
-
});
|
|
663
|
-
const second = await page.find(`calcite-time-picker >>> .${CSS.second}`);
|
|
664
|
-
const secondup = await page.find(`calcite-time-picker >>> .${CSS.buttonSecondUp}`);
|
|
665
|
-
for (let i = 0; i < 60; i++) {
|
|
666
|
-
await secondup.click();
|
|
667
|
-
await page.waitForChanges();
|
|
668
|
-
expect(second.textContent).toBe(`${formatTimePart(i)}`);
|
|
669
|
-
}
|
|
670
|
-
await secondup.click();
|
|
671
|
-
await page.waitForChanges();
|
|
672
|
-
expect(second.textContent).toBe("00");
|
|
673
|
-
});
|
|
674
|
-
it("second-down button decrements second property correctly", async () => {
|
|
675
|
-
const page = await newE2EPage({
|
|
676
|
-
html: `<calcite-time-picker step="1"></calcite-time-picker>`
|
|
677
|
-
});
|
|
678
|
-
const second = await page.find(`calcite-time-picker >>> .${CSS.second}`);
|
|
679
|
-
const seconddown = await page.find(`calcite-time-picker >>> .${CSS.buttonSecondDown}`);
|
|
680
|
-
for (let i = 59; i >= 0; i--) {
|
|
681
|
-
await seconddown.click();
|
|
682
|
-
await page.waitForChanges();
|
|
683
|
-
expect(second.textContent).toBe(`${formatTimePart(i)}`);
|
|
684
|
-
}
|
|
685
|
-
await seconddown.click();
|
|
686
|
-
await page.waitForChanges();
|
|
687
|
-
expect(second.textContent).toBe("59");
|
|
688
|
-
});
|
|
689
|
-
it("meridiem-up button increments meridiem property correctly", async () => {
|
|
690
|
-
const page = await newE2EPage({
|
|
691
|
-
html: `<calcite-time-picker></calcite-time-picker>`
|
|
692
|
-
});
|
|
693
|
-
const meridiem = await page.find(`calcite-time-picker >>> .${CSS.meridiem}`);
|
|
694
|
-
const meridiemup = await page.find(`calcite-time-picker >>> .${CSS.buttonMeridiemUp}`);
|
|
695
|
-
await meridiemup.click();
|
|
696
|
-
await page.waitForChanges();
|
|
697
|
-
expect(meridiem.textContent).toBe("AM");
|
|
698
|
-
await meridiemup.click();
|
|
699
|
-
await page.waitForChanges();
|
|
700
|
-
expect(meridiem.textContent).toBe("PM");
|
|
701
|
-
await meridiemup.click();
|
|
702
|
-
await page.waitForChanges();
|
|
703
|
-
expect(meridiem.textContent).toBe("AM");
|
|
704
|
-
});
|
|
705
|
-
it("meridiem-down button decrements meridiem property correctly", async () => {
|
|
706
|
-
const page = await newE2EPage({
|
|
707
|
-
html: `<calcite-time-picker></calcite-time-picker>`
|
|
708
|
-
});
|
|
709
|
-
const meridiem = await page.find(`calcite-time-picker >>> .${CSS.meridiem}`);
|
|
710
|
-
const meridiemdown = await page.find(`calcite-time-picker >>> .${CSS.buttonMeridiemDown}`);
|
|
711
|
-
await meridiemdown.click();
|
|
712
|
-
await page.waitForChanges();
|
|
713
|
-
expect(meridiem.textContent).toBe("PM");
|
|
714
|
-
await meridiemdown.click();
|
|
715
|
-
await page.waitForChanges();
|
|
716
|
-
expect(meridiem.textContent).toBe("AM");
|
|
717
|
-
await meridiemdown.click();
|
|
718
|
-
await page.waitForChanges();
|
|
719
|
-
expect(meridiem.textContent).toBe("PM");
|
|
720
|
-
});
|
|
721
|
-
it("time picker container direction is ltr when set to rtl on host", async () => {
|
|
722
|
-
const page = await newE2EPage({
|
|
723
|
-
html: `<calcite-time-picker dir="rtl" ></calcite-time-picker>`
|
|
724
|
-
});
|
|
725
|
-
const timePicker = await page.find(`calcite-time-picker >>> .${CSS.timePicker}`);
|
|
726
|
-
const timePickerDir = await timePicker.getAttribute("dir");
|
|
727
|
-
expect(timePickerDir).toBe("ltr");
|
|
728
|
-
});
|
|
729
|
-
it("meridiem is at the start of the time for arabic locale", async () => {
|
|
730
|
-
const page = await newE2EPage({
|
|
731
|
-
html: `<calcite-time-picker lang="ar" dir="rtl"></calcite-time-picker>`
|
|
732
|
-
});
|
|
733
|
-
const meridiemStart = await page.find(`calcite-time-picker >>> .${CSS.meridiemStart}`);
|
|
734
|
-
expect(meridiemStart).toBeTruthy();
|
|
735
|
-
});
|
|
736
|
-
});
|
|
737
|
-
});
|