@esri/calcite-components 1.0.0-next.597 → 1.0.0-next.598
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-6505334e.entry.js → p-010dd109.entry.js} +2 -2
- package/dist/calcite/{p-65e8434d.js → p-02c03af1.js} +1 -1
- package/dist/calcite/p-02d86d44.js +6 -0
- package/dist/calcite/{p-d758a89d.entry.js → p-03bdf648.entry.js} +2 -2
- package/dist/calcite/{p-016cee24.entry.js → p-062ce043.entry.js} +2 -2
- package/dist/calcite/{p-19c7faaf.entry.js → p-0deab0a4.entry.js} +2 -2
- package/dist/calcite/{p-3d3d179c.js → p-0edd33c6.js} +2 -2
- package/dist/calcite/{p-fd6d1ed1.js → p-0f5f53c2.js} +1 -1
- package/dist/calcite/{p-f827044c.entry.js → p-10c92db7.entry.js} +2 -2
- package/dist/calcite/{p-4e7b4c6c.entry.js → p-12b30d17.entry.js} +2 -2
- package/dist/calcite/{p-f64286c8.entry.js → p-1352273d.entry.js} +2 -2
- package/dist/calcite/{p-5da89821.entry.js → p-176c7c94.entry.js} +2 -2
- package/dist/calcite/{p-da5fac1a.entry.js → p-18ebc779.entry.js} +2 -2
- package/dist/calcite/{p-576a4d3b.js → p-1db0a85d.js} +2 -2
- package/dist/calcite/{p-36aa3ea2.entry.js → p-219e2e73.entry.js} +2 -2
- package/dist/calcite/{p-a7626d19.entry.js → p-2ab04b0f.entry.js} +2 -2
- package/dist/calcite/{p-ae8f6623.entry.js → p-2f357624.entry.js} +2 -2
- package/dist/calcite/{p-2e141574.entry.js → p-2f52a669.entry.js} +2 -2
- package/dist/calcite/p-2fecb26e.js +6 -0
- package/dist/calcite/{p-67c0d879.js → p-36a2b846.js} +1 -1
- package/dist/calcite/{p-034710a1.js → p-36c1c94c.js} +1 -1
- package/dist/calcite/{p-d4bab92e.entry.js → p-37bc6ac2.entry.js} +2 -2
- package/dist/calcite/{p-6e070c45.entry.js → p-392906a6.entry.js} +2 -2
- package/dist/calcite/p-3941a63c.js +6 -0
- package/dist/calcite/{p-91db8a1d.entry.js → p-3b9a8c5f.entry.js} +2 -2
- package/dist/calcite/{p-9804459d.entry.js → p-404e08b8.entry.js} +2 -2
- package/dist/calcite/{p-d465da16.entry.js → p-41aa50b7.entry.js} +2 -2
- package/dist/calcite/{p-fb5602cf.js → p-41c52f7c.js} +2 -2
- package/dist/calcite/{p-179ed97a.js → p-43b4a53e.js} +1 -1
- package/dist/calcite/{p-975aba66.js → p-44aecb14.js} +1 -1
- package/dist/calcite/{p-ed51bd87.entry.js → p-49529d9e.entry.js} +2 -2
- package/dist/calcite/{p-627b4177.js → p-4987b4ee.js} +1 -1
- package/dist/calcite/{p-80a6379c.entry.js → p-4cb9c524.entry.js} +2 -2
- package/dist/calcite/p-4e5fcfd7.entry.js +6 -0
- package/dist/calcite/{p-86384397.entry.js → p-4eeb34ad.entry.js} +2 -2
- package/dist/calcite/{p-df9538a5.entry.js → p-5139ac26.entry.js} +2 -2
- package/dist/calcite/{p-dfd51f34.entry.js → p-53c34094.entry.js} +2 -2
- package/dist/calcite/{p-205462c9.js → p-543a5925.js} +1 -1
- package/dist/calcite/{p-10c17d1c.entry.js → p-58ea74ab.entry.js} +2 -2
- package/dist/calcite/{p-b9542a0a.js → p-5d29962c.js} +1 -1
- package/dist/calcite/p-5e355fbb.entry.js +6 -0
- package/dist/calcite/{p-21931632.entry.js → p-66011932.entry.js} +2 -2
- package/dist/calcite/{p-ec1d7ff7.entry.js → p-665605d0.entry.js} +2 -2
- package/dist/calcite/{p-ba334a9d.entry.js → p-6d221ee4.entry.js} +2 -2
- package/dist/calcite/{p-6b8d9887.js → p-77a66a54.js} +2 -2
- package/dist/calcite/{p-b072ee90.js → p-7951d360.js} +2 -2
- package/dist/calcite/{p-228315da.entry.js → p-7c084561.entry.js} +2 -2
- package/dist/calcite/{p-46ff1ae6.entry.js → p-7cb27f2a.entry.js} +2 -2
- package/dist/calcite/{p-2a88fa13.js → p-7fa0faec.js} +1 -1
- package/dist/calcite/{p-5a81c608.entry.js → p-820a08a7.entry.js} +2 -2
- package/dist/calcite/{p-421dc091.entry.js → p-83ece20a.entry.js} +2 -2
- package/dist/calcite/{p-f66dfaea.entry.js → p-857f0433.entry.js} +2 -2
- package/dist/calcite/{p-ff82e6f2.entry.js → p-91ec0aa8.entry.js} +2 -2
- package/dist/calcite/{p-6bf1fe3b.entry.js → p-92976168.entry.js} +2 -2
- package/dist/calcite/{p-5dc47d03.js → p-93cd79e0.js} +1 -1
- package/dist/calcite/p-999f8f79.entry.js +6 -0
- package/dist/calcite/p-9c54742f.entry.js +6 -0
- package/dist/calcite/{p-7e36e2c5.entry.js → p-9fd20f7e.entry.js} +2 -2
- package/dist/calcite/p-a7862fd2.entry.js +6 -0
- package/dist/calcite/{p-7dddc346.js → p-aa9d985d.js} +2 -2
- package/dist/calcite/{p-d16a1324.js → p-ae75f7f9.js} +1 -1
- package/dist/calcite/{p-a0db47b9.js → p-b10d453d.js} +1 -1
- package/dist/calcite/{p-a71a4bc5.entry.js → p-b5abec95.entry.js} +2 -2
- package/dist/calcite/{p-ce171933.entry.js → p-b5d68e9b.entry.js} +2 -2
- package/dist/calcite/{p-f94b6442.entry.js → p-b62081a4.entry.js} +2 -2
- package/dist/calcite/p-bc460116.entry.js +6 -0
- package/dist/calcite/{p-0043efc4.js → p-bce0e288.js} +1 -1
- package/dist/calcite/{p-67890d9f.js → p-bd6478ee.js} +2 -2
- package/dist/calcite/{p-06505dc6.entry.js → p-cbbaffb1.entry.js} +2 -2
- package/dist/calcite/{p-b7dafefc.entry.js → p-cd2d103c.entry.js} +2 -2
- package/dist/calcite/p-cd3d6d8a.entry.js +6 -0
- package/dist/calcite/p-d274cd75.entry.js +6 -0
- package/dist/calcite/{p-e1c801a6.entry.js → p-d393cf2a.entry.js} +2 -2
- package/dist/calcite/{p-d6067141.entry.js → p-dd4f0eb4.entry.js} +2 -2
- package/dist/calcite/p-dd73aa68.entry.js +6 -0
- package/dist/calcite/{p-1085e82f.js → p-e1fa8d26.js} +2 -2
- package/dist/calcite/{p-1b9e3fb0.entry.js → p-e3158aba.entry.js} +2 -2
- package/dist/calcite/{p-bb21323e.entry.js → p-e43df264.entry.js} +2 -2
- package/dist/calcite/{p-59772111.js → p-e6757fa4.js} +2 -2
- package/dist/calcite/{p-c2258fac.js → p-e86518a3.js} +1 -1
- package/dist/calcite/{p-ec7e67d0.entry.js → p-eb8e9bec.entry.js} +2 -2
- package/dist/calcite/p-ecfdca0f.entry.js +6 -0
- package/dist/calcite/{p-3d1ef84a.entry.js → p-f1cc17e7.entry.js} +2 -2
- package/dist/calcite/{p-61cbec79.entry.js → p-f21ff110.entry.js} +2 -2
- package/dist/calcite/{p-1421f9ec.js → p-f4970d48.js} +1 -1
- package/dist/calcite/{p-14c442cb.entry.js → p-f707cf6d.entry.js} +2 -2
- package/dist/calcite/{p-ce15d4a4.entry.js → p-fd07c84a.entry.js} +2 -2
- package/dist/calcite/{p-a25cc528.entry.js → p-fd177f5d.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-73285037.js → ExpandToggle-ab03bc61.js} +5 -5
- package/dist/cjs/{Heading-5409de6d.js → Heading-2b3d0f1c.js} +2 -2
- package/dist/cjs/{app-globals-77859a02.js → app-globals-3d7459b7.js} +2 -2
- package/dist/cjs/{array-f86c9258.js → array-0903a4d0.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 +11 -11
- 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-4b981e1a.js} +3 -3
- package/dist/cjs/{debounce-1f3af549.js → debounce-6ac6d224.js} +1 -1
- package/dist/cjs/{dom-9409deef.js → dom-2aaee0df.js} +3 -3
- package/dist/cjs/{filter-6497f68a.js → filter-10c27a83.js} +2 -2
- package/dist/cjs/{floating-ui-40005e27.js → floating-ui-bf70093a.js} +2 -2
- package/dist/cjs/{form-ed16c84e.js → form-47d1e430.js} +3 -3
- package/dist/cjs/{guid-07011a93.js → guid-1b12a751.js} +1 -1
- package/dist/cjs/{index-dbaff4c6.js → index-457a5a54.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-825762eb.js → interactive-e35bd87f.js} +1 -1
- package/dist/cjs/{interfaces-a747d1cf.js → interfaces-58d0b0fb.js} +1 -1
- package/dist/cjs/{key-40cfbef8.js → key-5b6abad3.js} +1 -1
- package/dist/cjs/{label-942c98df.js → label-bcb3c8cc.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-3b5c2d93.js → locale-c66b8c43.js} +55 -48
- package/dist/cjs/{math-19d2ae8c.js → math-9a4a9057.js} +1 -1
- package/dist/cjs/{observers-2571ea25.js → observers-6c3955d2.js} +1 -1
- package/dist/cjs/{openCloseComponent-c152728d.js → openCloseComponent-d5404853.js} +1 -1
- package/dist/cjs/{resources-adfdf58d.js → resources-29b287c0.js} +1 -1
- package/dist/cjs/{resources-e5387109.js → resources-7103f0d8.js} +1 -1
- package/dist/cjs/{resources-110e5929.js → resources-83acf426.js} +1 -1
- package/dist/cjs/{resources-5f061484.js → resources-a636e50a.js} +5 -5
- package/dist/cjs/{resources-24f7e730.js → resources-c689e9d0.js} +3 -3
- package/dist/cjs/{resources-b88532e5.js → resources-d8da865a.js} +1 -1
- package/dist/cjs/{sortable.esm-9b594ce7.js → sortable.esm-4c7fab47.js} +1 -1
- package/dist/cjs/{utils-0af662a9.js → utils-147a89d2.js} +1 -1
- package/dist/collection/components/accordion/accordion.js +4 -4
- package/dist/collection/components/accordion/accordion.stories.js +197 -0
- 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/action.stories.js +181 -0
- 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/action-bar.stories.js +141 -0
- 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/action-group.stories.js +41 -0
- 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/action-menu.stories.js +26 -0
- 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/action-pad.stories.js +107 -0
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +16 -17
- package/dist/collection/components/alert/alert.stories.js +140 -0
- 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/avatar.stories.js +44 -0
- 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/block.stories.js +158 -0
- 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/button.stories.js +129 -0
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/card.stories.js +225 -0
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/checkbox/checkbox.stories.js +43 -0
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/chip.stories.js +85 -0
- 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/color-picker.stories.js +80 -0
- 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/combobox.stories.js +387 -0
- 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/dropdown.stories.js +408 -0
- 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/fab.stories.js +96 -0
- 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/flow.stories.js +151 -0
- 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/flow-item.stories.js +181 -0
- 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/graph.stories.js +77 -0
- 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/icon.stories.js +26 -0
- 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/inline-editable.stories.js +70 -0
- 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/input.stories.js +146 -0
- 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/input-date-picker.stories.js +79 -0
- 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/input-number.stories.js +124 -0
- 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/input-text.stories.js +99 -0
- 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/input-time-picker/input-time-picker.stories.js +77 -0
- package/dist/collection/components/label/label.js +5 -5
- package/dist/collection/components/label/label.stories.js +178 -0
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +4 -4
- package/dist/collection/components/link/link.stories.js +89 -0
- package/dist/collection/components/list/list.js +3 -3
- package/dist/collection/components/list/list.stories.js +187 -0
- 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/loader/loader.stories.js +42 -0
- package/dist/collection/components/modal/modal.js +19 -19
- package/dist/collection/components/modal/modal.stories.js +66 -0
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +14 -14
- package/dist/collection/components/notice/notice.stories.js +90 -0
- 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/pagination.stories.js +37 -0
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +32 -29
- package/dist/collection/components/panel/panel.stories.js +181 -0
- 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/pick-list.stories.js +142 -0
- 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/popover.stories.js +95 -0
- 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/progress/progress.stories.js +28 -0
- package/dist/collection/components/radio-button/radio-button.js +11 -11
- package/dist/collection/components/radio-button/radio-button.stories.js +43 -0
- 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-button-group/radio-button-group.stories.js +67 -0
- package/dist/collection/components/radio-group/radio-group.js +7 -7
- package/dist/collection/components/radio-group/radio-group.stories.js +79 -0
- 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/rating.stories.js +42 -0
- 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/scrim/scrim.stories.js +70 -0
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +8 -8
- package/dist/collection/components/select/select.stories.js +109 -0
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell/shell.stories.js +482 -0
- 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/slider/slider.stories.js +227 -0
- 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/split-button/split-button.stories.js +112 -0
- package/dist/collection/components/stepper/stepper.js +27 -5
- package/dist/collection/components/stepper/stepper.stories.js +163 -0
- package/dist/collection/components/stepper-item/stepper-item.js +43 -16
- package/dist/collection/components/switch/switch.js +8 -8
- package/dist/collection/components/switch/switch.stories.js +32 -0
- 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/tabs/tabs.stories.js +223 -0
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +10 -10
- package/dist/collection/components/tile/tile.stories.js +81 -0
- 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/tile-select.stories.js +137 -0
- package/dist/collection/components/tile-select-group/tile-select-group.js +3 -3
- package/dist/collection/components/tile-select-group/tile-select-group.stories.js +89 -0
- 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/tip.stories.js +60 -0
- 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/tip-manager/tip-manager.stories.js +115 -0
- 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/tooltip.stories.js +60 -0
- 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 +2 -2
- package/dist/collection/components/tree/tree.stories.js +76 -0
- 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 +7 -7
- 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/value-list.stories.js +125 -0
- 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 +4 -4
- package/dist/components/calcite-tree.js +1 -1
- 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-c4680d33.js} +5 -5
- package/dist/esm/{Heading-0da1d231.js → Heading-101a701e.js} +2 -2
- package/dist/esm/{app-globals-53484588.js → app-globals-ce2cbf03.js} +2 -2
- package/dist/esm/{array-afca26e4.js → array-2549899e.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 +11 -11
- 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-97eefd44.js} +3 -3
- package/dist/esm/{debounce-6816d02c.js → debounce-eb8de851.js} +1 -1
- package/dist/esm/{dom-1ac7b489.js → dom-648b4a2f.js} +3 -3
- package/dist/esm/{filter-1cca1a38.js → filter-7d351602.js} +2 -2
- package/dist/esm/{floating-ui-41bd9b35.js → floating-ui-65b7d762.js} +2 -2
- package/dist/esm/{form-08544720.js → form-6ee82a1e.js} +3 -3
- package/dist/esm/{guid-57e25130.js → guid-3260dd45.js} +1 -1
- package/dist/esm/{index-5326c3af.js → index-cf16b53b.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-c086cb04.js → interactive-53846bd5.js} +1 -1
- package/dist/esm/{interfaces-ba4e7fb1.js → interfaces-5bcff418.js} +1 -1
- package/dist/esm/{key-42705c39.js → key-a3bce814.js} +1 -1
- package/dist/esm/{label-a209a39c.js → label-a2d9ea4b.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-6840e756.js → locale-66ebbf7a.js} +56 -49
- package/dist/esm/{math-e13ce572.js → math-a5ac6592.js} +1 -1
- package/dist/esm/{observers-68c33472.js → observers-85e8fe58.js} +1 -1
- package/dist/esm/{openCloseComponent-f9f51e92.js → openCloseComponent-926c5b7a.js} +1 -1
- package/dist/esm/{resources-d2b2a177.js → resources-19dbedf3.js} +1 -1
- package/dist/esm/{resources-ba2025cb.js → resources-386257f3.js} +1 -1
- package/dist/esm/{resources-c69a833c.js → resources-418fb8c6.js} +3 -3
- package/dist/esm/{resources-a65a8ad1.js → resources-6177d83d.js} +1 -1
- package/dist/esm/{resources-bf3cbf16.js → resources-8468e332.js} +1 -1
- package/dist/esm/{resources-d0f37d22.js → resources-ab13d20f.js} +5 -5
- package/dist/esm/{sortable.esm-1ad7cec8.js → sortable.esm-aca7e683.js} +1 -1
- package/dist/esm/{utils-f163e9f8.js → utils-78b2f096.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 +416 -323
- package/package.json +5 -5
- 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-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-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,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.597
|
|
5
|
-
*/
|
|
6
|
-
import{r as t,c as e,h as i,H as a,g as s}from"./p-975aba66.js";import{s as o,t as n,g as l}from"./p-7dddc346.js";import{S as r}from"./p-5dc47d03.js";import{c,d}from"./p-1421f9ec.js";import{c as h,d as m,g as u}from"./p-01cb5477.js";import"./p-205462c9.js";import"./p-65e8434d.js";import"./p-034710a1.js";import"./p-0043efc4.js";const p={slow:14e3,medium:1e4,fast:6e3},g=class{constructor(i){t(this,i),this.calciteAlertBeforeClose=e(this,"calciteAlertBeforeClose",6),this.calciteAlertClose=e(this,"calciteAlertClose",6),this.calciteAlertBeforeOpen=e(this,"calciteAlertBeforeOpen",6),this.calciteAlertOpen=e(this,"calciteAlertOpen",6),this.calciteInternalAlertSync=e(this,"calciteInternalAlertSync",6),this.calciteInternalAlertRegister=e(this,"calciteInternalAlertRegister",6),this.active=!1,this.open=!1,this.autoDismiss=!1,this.autoDismissDuration=this.autoDismiss?"medium":null,this.color="blue",this.intlClose="Close",this.placement="bottom",this.scale="m",this.effectiveLocale="",this.queue=[],this.queueLength=0,this.queued=!1,this.autoDismissTimeoutId=null,this.trackTimer=Date.now(),this.openTransitionProp="opacity",this.setTransitionEl=t=>{this.transitionEl=t,c(this)},this.closeAlert=()=>{this.autoDismissTimeoutId=null,this.queued=!1,this.open=!1,this.queue=this.queue.filter((t=>t!==this.el)),this.determineActiveAlert(),this.calciteInternalAlertSync.emit({queue:this.queue})}}activeHandler(t){this.open=t}openHandler(t){this.open&&!this.queued&&(this.calciteInternalAlertRegister.emit(),this.active=t),this.open||(this.queue=this.queue.filter((t=>t!==this.el)),this.calciteInternalAlertSync.emit({queue:this.queue}),this.active=!1)}updateRequestedIcon(){this.requestedIcon=o(r,this.icon,this.color)}updateDuration(){this.autoDismiss&&this.autoDismissTimeoutId&&(window.clearTimeout(this.autoDismissTimeoutId),this.autoDismissTimeoutId=window.setTimeout((()=>this.closeAlert()),p[this.autoDismissDuration]-(Date.now()-this.trackTimer)))}connectedCallback(){h(this);const t=this.open||this.active;t&&!this.queued&&(this.activeHandler(t),this.openHandler(t),this.calciteInternalAlertRegister.emit()),c(this)}componentWillLoad(){this.requestedIcon=o(r,this.icon,this.color)}disconnectedCallback(){window.clearTimeout(this.autoDismissTimeoutId),d(this),m(this)}render(){const t=i("button",{"aria-label":this.intlClose,class:"alert-close",onClick:this.closeAlert,ref:t=>this.closeButton=t,type:"button"},i("calcite-icon",{icon:"x",scale:"l"===this.scale?"m":"s"})),e=new Intl.NumberFormat(this.effectiveLocale,{minimumFractionDigits:0,maximumFractionDigits:20,numberingSystem:u(this.numberingSystem),signDisplay:"always"}).format(this.queueLength>2?this.queueLength-1:1),s=i("div",{class:(this.queueLength>1?"active ":"")+"alert-queue-count"},i("calcite-chip",{scale:this.scale,value:e},e)),{active:o,autoDismiss:l,label:r,placement:c,queued:d,requestedIcon:h}=this,m=l?"alert":"alertdialog",p=!o;return i(a,{"aria-hidden":n(p),"aria-label":r,"calcite-hydrated-hidden":p,role:m},i("div",{class:{container:!0,queued:d,[c]:!0},ref:this.setTransitionEl},h?i("div",{class:"alert-icon"},i("calcite-icon",{icon:h,scale:"l"===this.scale?"m":"s"})):null,i("div",{class:"alert-content"},i("slot",{name:"title"}),i("slot",{name:"message"}),i("slot",{name:"link"})),s,l?null:t,o&&!d&&l?i("div",{class:"alert-dismiss-progress"}):null))}alertSync(t){this.queue!==t.detail.queue&&(this.queue=t.detail.queue),this.queueLength=this.queue.length,this.determineActiveAlert(),t.stopPropagation()}alertRegister(){this.open&&!this.queue.includes(this.el)&&(this.queued=!0,this.queue.push(this.el)),this.calciteInternalAlertSync.emit({queue:this.queue}),this.determineActiveAlert()}async setFocus(){const t=l(this.el,{selector:"calcite-link"});(this.closeButton||t)&&(t?t.setFocus():this.closeButton&&this.closeButton.focus())}determineActiveAlert(){var t;(null===(t=this.queue)||void 0===t?void 0:t[0])===this.el&&(this.openAlert(),this.autoDismiss&&!this.autoDismissTimeoutId&&(this.trackTimer=Date.now(),this.autoDismissTimeoutId=window.setTimeout((()=>this.closeAlert()),p[this.autoDismissDuration])))}onBeforeOpen(){this.calciteAlertBeforeOpen.emit()}onOpen(){this.calciteAlertOpen.emit()}onBeforeClose(){this.calciteAlertBeforeClose.emit()}onClose(){this.calciteAlertClose.emit()}openAlert(){window.clearTimeout(this.queueTimeout),this.queueTimeout=window.setTimeout((()=>this.queued=!1),300)}get el(){return s(this)}static get watchers(){return{active:["activeHandler"],open:["openHandler"],icon:["updateRequestedIcon"],color:["updateRequestedIcon"],autoDismissDuration:["updateDuration"]}}};g.style='@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem}:host([scale=s]) slot[name=title]::slotted(*),:host([scale=s]) *::slotted([slot=title]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) slot[name=message]::slotted(*),:host([scale=s]) *::slotted([slot=message]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) slot[name=link]::slotted(*),:host([scale=s]) *::slotted([slot=link]){font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .alert-queue-count{margin-inline:0.5rem}:host([scale=s]) .container{--calcite-alert-min-height:3.5rem}:host([scale=s]) .alert-close{padding:0.5rem}:host([scale=m]){--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem}:host([scale=m]) slot[name=title]::slotted(*),:host([scale=m]) *::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) slot[name=message]::slotted(*),:host([scale=m]) *::slotted([slot=message]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) slot[name=link]::slotted(*),:host([scale=m]) *::slotted([slot=link]){font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .alert-queue-count{margin-inline:0.75rem}:host([scale=m]) .container{--calcite-alert-min-height:4.1875rem}:host([scale=l]){--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem}:host([scale=l]) slot[name=title]::slotted(*),:host([scale=l]) *::slotted([slot=title]){margin-block-end:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) slot[name=message]::slotted(*),:host([scale=l]) *::slotted([slot=message]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) slot[name=link]::slotted(*),:host([scale=l]) *::slotted([slot=link]){font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .alert-queue-count{margin-inline:1rem}:host([scale=l]) .container{--calcite-alert-min-height:5.625rem}:host{--calcite-alert-edge-distance:2rem;display:block}:host .container{pointer-events:none;position:fixed;z-index:500;margin-block:0px;margin-inline:auto;display:flex;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius);border-block-start:0px solid transparent;border-inline:1px solid var(--calcite-ui-border-3);border-block-end:1px solid var(--calcite-ui-border-3);min-block-size:var(--calcite-alert-min-height);inline-size:var(--calcite-alert-width);max-inline-size:calc(100% - (var(--calcite-alert-edge-distance) * 2 + 2px));max-block-size:0;transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}:host .container.bottom,:host .container.top{inset-inline-end:0;inset-inline-start:0}:host .container[class*=bottom]{transform:translate3d(0, var(--calcite-alert-edge-distance), 0);inset-block-end:var(--calcite-alert-edge-distance)}:host .container[class*=top]{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);inset-block-start:var(--calcite-alert-edge-distance)}:host .container[class*=-start]{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}:host .container[class*=-end]{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.container{display:flex;inline-size:100%;align-items:center;justify-content:center}.alert-close{outline-color:transparent}.alert-close:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([open]) .container:not(.queued){max-block-size:100%;border-block-start-width:2px;opacity:1;pointer-events:initial}:host([open]) .container:not(.queued)[class*=bottom]{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit)}:host([open]) .container:not(.queued)[class*=top]{transform:translate3d(0, var(--calcite-alert-edge-distance), inherit)}slot[name=title]::slotted(*),*::slotted([slot=title]){font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}slot[name=message]::slotted(*),*::slotted([slot=message]){margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);margin-inline-end:0.5rem}slot[name=link]::slotted(*),*::slotted([slot=link]){display:inline-flex;color:var(--calcite-ui-text-link)}.alert-content{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;overflow-wrap:break-word;background-color:var(--calcite-ui-foreground-1);flex:1 1 auto;min-inline-size:0;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:0 var(--calcite-alert-spacing-token-small);border-end-start-radius:var(--calcite-border-radius);border-end-end-radius:var(--calcite-border-radius)}.alert-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-alert-spacing-token-large)}.alert-content:only-child{padding:var(--calcite-alert-spacing-token-small)}.alert-icon{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;display:flex;align-items:center;align-self:stretch;background-color:var(--calcite-ui-foreground-1);padding-block:0px}.alert-close{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;cursor:pointer;align-self:stretch;overflow:hidden;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-block:0px;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;border-end-end-radius:var(--calcite-border-radius)}.alert-close:hover,.alert-close:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}.alert-close:open{background-color:var(--calcite-ui-foreground-3)}.alert-queue-count{visibility:hidden;display:flex;cursor:default;align-items:center;justify-content:space-around;align-self:stretch;overflow:hidden;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline:0px solid transparent;border-start-end-radius:0}.alert-queue-count.active{visibility:visible;opacity:1}:host([auto-dismiss])>.alert-queue-count{border-inline-end:0px solid transparent}.alert-dismiss-progress{position:absolute;display:block;inline-size:100%;overflow:hidden;inset-inline:0;inset-block-start:-2px;block-size:2px;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}.alert-dismiss-progress:after{position:absolute;inset-block-start:0px;display:block;block-size:2px;content:"";background-color:var(--calcite-alert-dismiss-progress-background);inset-inline-end:0}:host([color=blue]) .container{border-block-start-color:var(--calcite-ui-info)}:host([color=blue]) .container .alert-icon{color:var(--calcite-ui-info)}:host([color=red]) .container{border-block-start-color:var(--calcite-ui-danger)}:host([color=red]) .container .alert-icon{color:var(--calcite-ui-danger)}:host([color=yellow]) .container{border-block-start-color:var(--calcite-ui-warning)}:host([color=yellow]) .container .alert-icon{color:var(--calcite-ui-warning)}:host([color=green]) .container{border-block-start-color:var(--calcite-ui-success)}:host([color=green]) .container .alert-icon{color:var(--calcite-ui-success)}:host([auto-dismiss-duration=fast]) .alert-dismiss-progress:after{animation:dismissProgress 6000ms ease-out}:host([auto-dismiss-duration=medium]) .alert-dismiss-progress:after{animation:dismissProgress 10000ms ease-out}:host([auto-dismiss-duration=slow]) .alert-dismiss-progress:after{animation:dismissProgress 14000ms ease-out}@keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}';export{g as calcite_alert}
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
-
import { accessible, renders, hidden } from "../../tests/commonTests";
|
|
3
|
-
import { html } from "../../../support/formatting";
|
|
4
|
-
import { CSS } from "../accordion-item/resources";
|
|
5
|
-
describe("calcite-accordion", () => {
|
|
6
|
-
const accordionContent = html `
|
|
7
|
-
<calcite-accordion-item heading="Accordion Title 1" id="1"
|
|
8
|
-
><calcite-action scale="s" icon="brush-tip" label="Paint" slot="actions-start"></calcite-action>Accordion Item
|
|
9
|
-
Content
|
|
10
|
-
<calcite-action scale="s" icon="sound" label="Volume" slot="actions-end"></calcite-action>
|
|
11
|
-
</calcite-accordion-item>
|
|
12
|
-
<calcite-accordion-item heading="Accordion Title 1" id="2" active>Accordion Item Content </calcite-accordion-item>
|
|
13
|
-
<calcite-accordion-item heading="Accordion Title 3" id="3">Accordion Item Content </calcite-accordion-item>
|
|
14
|
-
`;
|
|
15
|
-
it("renders", async () => renders("calcite-accordion", { display: "block" }));
|
|
16
|
-
it("honors hidden attribute", async () => hidden("calcite-accordion"));
|
|
17
|
-
it("is accessible", async () => accessible(`<calcite-accordion>${accordionContent}</calcite-accordion>`));
|
|
18
|
-
it("renders default props when none are provided", async () => {
|
|
19
|
-
const page = await newE2EPage();
|
|
20
|
-
await page.setContent(`
|
|
21
|
-
<calcite-accordion>
|
|
22
|
-
${accordionContent}
|
|
23
|
-
</calcite-accordion>`);
|
|
24
|
-
const element = await page.find("calcite-accordion");
|
|
25
|
-
expect(element).toEqualAttribute("appearance", "solid");
|
|
26
|
-
expect(element).toEqualAttribute("icon-position", "end");
|
|
27
|
-
expect(element).toEqualAttribute("scale", "m");
|
|
28
|
-
expect(element).toEqualAttribute("selection-mode", "multi");
|
|
29
|
-
expect(element).toEqualAttribute("icon-type", "chevron");
|
|
30
|
-
});
|
|
31
|
-
it("renders requested props when valid props are provided", async () => {
|
|
32
|
-
const page = await newE2EPage();
|
|
33
|
-
await page.setContent(`
|
|
34
|
-
<calcite-accordion appearance="minimal" icon-position="start" scale="l" selection-mode="single-persist" icon-type="caret">
|
|
35
|
-
${accordionContent}
|
|
36
|
-
</calcite-accordion>`);
|
|
37
|
-
const element = await page.find("calcite-accordion");
|
|
38
|
-
expect(element).toEqualAttribute("appearance", "minimal");
|
|
39
|
-
expect(element).toEqualAttribute("icon-position", "start");
|
|
40
|
-
expect(element).toEqualAttribute("scale", "l");
|
|
41
|
-
expect(element).toEqualAttribute("selection-mode", "single-persist");
|
|
42
|
-
expect(element).toEqualAttribute("icon-type", "caret");
|
|
43
|
-
});
|
|
44
|
-
it("renders icon if requested", async () => {
|
|
45
|
-
const page = await newE2EPage();
|
|
46
|
-
await page.setContent(`
|
|
47
|
-
<calcite-accordion appearance="minimal" icon-position="start" scale="l" selection-mode="single-persist" icon-type="caret">
|
|
48
|
-
<calcite-accordion-item heading="Accordion Title 1" icon="car" id="1">Accordion Item Content
|
|
49
|
-
</calcite-accordion-item>
|
|
50
|
-
<calcite-accordion-item item-title="Accordion Title 1" id="2" expanded>Accordion Item Content
|
|
51
|
-
</calcite-accordion-item>
|
|
52
|
-
<calcite-accordion-item heading="Accordion Title 3" icon="car" id="3">Accordion Item Content
|
|
53
|
-
</calcite-accordion-item>
|
|
54
|
-
</calcite-accordion>`);
|
|
55
|
-
const icon1 = await page.find(`calcite-accordion-item[id='1'] >>> .${CSS.iconStart}`);
|
|
56
|
-
const icon2 = await page.find(`calcite-accordion-item[id='2'] >>> .${CSS.iconStart}`);
|
|
57
|
-
const icon3 = await page.find(`calcite-accordion-item[id='3'] >>> .${CSS.iconStart}`);
|
|
58
|
-
expect(icon1).not.toBe(null);
|
|
59
|
-
expect(icon2).toBe(null);
|
|
60
|
-
expect(icon3).not.toBe(null);
|
|
61
|
-
});
|
|
62
|
-
it("renders expanded item based on attribute in dom", async () => {
|
|
63
|
-
const page = await newE2EPage();
|
|
64
|
-
await page.setContent(`
|
|
65
|
-
<calcite-accordion>
|
|
66
|
-
${accordionContent}
|
|
67
|
-
</calcite-accordion>`);
|
|
68
|
-
const element = await page.find("calcite-accordion");
|
|
69
|
-
const item1 = await element.find("calcite-accordion-item[id='1']");
|
|
70
|
-
const item2 = await element.find("calcite-accordion-item[id='2']");
|
|
71
|
-
const item3 = await element.find("calcite-accordion-item[id='3']");
|
|
72
|
-
const item1Content = await element.find(`calcite-accordion-item[id='1'] >>> .${CSS.content}`);
|
|
73
|
-
const item2Content = await element.find(`calcite-accordion-item[id='2'] >>> .${CSS.content}`);
|
|
74
|
-
const item3Content = await element.find(`calcite-accordion-item[id='3'] >>> .${CSS.content} `);
|
|
75
|
-
expect(item1).not.toHaveAttribute("expanded");
|
|
76
|
-
expect(item1).not.toHaveAttribute("active");
|
|
77
|
-
expect(item2).toHaveAttribute("expanded");
|
|
78
|
-
expect(item2).toHaveAttribute("active");
|
|
79
|
-
expect(item3).not.toHaveAttribute("expanded");
|
|
80
|
-
expect(item3).not.toHaveAttribute("active");
|
|
81
|
-
expect(await item1Content.isVisible()).toBe(false);
|
|
82
|
-
expect(await item2Content.isVisible()).toBe(true);
|
|
83
|
-
expect(await item3Content.isVisible()).toBe(false);
|
|
84
|
-
});
|
|
85
|
-
it("renders multiple expanded items when in multi selection mode", async () => {
|
|
86
|
-
const page = await newE2EPage();
|
|
87
|
-
await page.setContent(`
|
|
88
|
-
<calcite-accordion>
|
|
89
|
-
${accordionContent}
|
|
90
|
-
</calcite-accordion>`);
|
|
91
|
-
const element = await page.find("calcite-accordion");
|
|
92
|
-
expect(element).toEqualAttribute("selection-mode", "multi");
|
|
93
|
-
const item1 = await element.find("calcite-accordion-item[id='1']");
|
|
94
|
-
const item2 = await element.find("calcite-accordion-item[id='2']");
|
|
95
|
-
const item3 = await element.find("calcite-accordion-item[id='3']");
|
|
96
|
-
const item1Content = await element.find(`calcite-accordion-item[id='1'] >>> .${CSS.content}`);
|
|
97
|
-
const item2Content = await element.find(`calcite-accordion-item[id='2'] >>> .${CSS.content}`);
|
|
98
|
-
const item3Content = await element.find(`calcite-accordion-item[id='3'] >>> .${CSS.content}`);
|
|
99
|
-
await item1.click();
|
|
100
|
-
await item3.click();
|
|
101
|
-
expect(item1).toHaveAttribute("expanded");
|
|
102
|
-
expect(item1).toHaveAttribute("active");
|
|
103
|
-
expect(item2).toHaveAttribute("expanded");
|
|
104
|
-
expect(item2).toHaveAttribute("active");
|
|
105
|
-
expect(item3).toHaveAttribute("expanded");
|
|
106
|
-
expect(item3).toHaveAttribute("active");
|
|
107
|
-
expect(await item1Content.isVisible()).toBe(true);
|
|
108
|
-
expect(await item2Content.isVisible()).toBe(true);
|
|
109
|
-
expect(await item3Content.isVisible()).toBe(true);
|
|
110
|
-
});
|
|
111
|
-
it("renders just one expanded item when in single selection mode", async () => {
|
|
112
|
-
const page = await newE2EPage();
|
|
113
|
-
await page.setContent(`
|
|
114
|
-
<calcite-accordion selection-mode="single">
|
|
115
|
-
${accordionContent}
|
|
116
|
-
</calcite-accordion>`);
|
|
117
|
-
const element = await page.find("calcite-accordion");
|
|
118
|
-
expect(element).toEqualAttribute("selection-mode", "single");
|
|
119
|
-
const item1 = await element.find("calcite-accordion-item[id='1']");
|
|
120
|
-
const item2 = await element.find("calcite-accordion-item[id='2']");
|
|
121
|
-
const item3 = await element.find("calcite-accordion-item[id='3']");
|
|
122
|
-
const item1Content = await element.find(`calcite-accordion-item[id='1'] >>> .${CSS.content}`);
|
|
123
|
-
const item2Content = await element.find(`calcite-accordion-item[id='2'] >>> .${CSS.content}`);
|
|
124
|
-
const item3Content = await element.find(`calcite-accordion-item[id='3'] >>> .${CSS.content}`);
|
|
125
|
-
await item1.click();
|
|
126
|
-
await item3.click();
|
|
127
|
-
expect(item1).not.toHaveAttribute("expanded");
|
|
128
|
-
expect(item1).not.toHaveAttribute("active");
|
|
129
|
-
expect(item2).not.toHaveAttribute("expanded");
|
|
130
|
-
expect(item2).not.toHaveAttribute("active");
|
|
131
|
-
expect(item3).toHaveAttribute("expanded");
|
|
132
|
-
expect(item3).toHaveAttribute("active");
|
|
133
|
-
expect(await item1Content.isVisible()).toBe(false);
|
|
134
|
-
expect(await item2Content.isVisible()).toBe(false);
|
|
135
|
-
expect(await item3Content.isVisible()).toBe(true);
|
|
136
|
-
});
|
|
137
|
-
it("clicking on an accordion with selection-mode=single does not toggle unrelated accordions with the same selection mode", async () => {
|
|
138
|
-
const page = await newE2EPage({
|
|
139
|
-
html: html `<calcite-accordion selection-mode="single" id="first"> ${accordionContent} </calcite-accordion>
|
|
140
|
-
<calcite-accordion selection-mode="single" id="second"> ${accordionContent} </calcite-accordion>`
|
|
141
|
-
});
|
|
142
|
-
await page.waitForChanges();
|
|
143
|
-
const firstAccordion = await page.find("calcite-accordion[id='first']");
|
|
144
|
-
const item1FirstAccordion = await firstAccordion.find("calcite-accordion-item[id='1']");
|
|
145
|
-
await item1FirstAccordion.click();
|
|
146
|
-
await page.waitForChanges();
|
|
147
|
-
expect(await item1FirstAccordion.getProperty("active")).toBe(true);
|
|
148
|
-
expect(await item1FirstAccordion.getProperty("expanded")).toBe(true);
|
|
149
|
-
const secondAccordion = await page.find("calcite-accordion[id='second']");
|
|
150
|
-
const item1SecondAccordion = await secondAccordion.find("calcite-accordion-item[id='1']");
|
|
151
|
-
await item1SecondAccordion.click();
|
|
152
|
-
await page.waitForChanges();
|
|
153
|
-
expect(await item1SecondAccordion.getProperty("active")).toBe(true);
|
|
154
|
-
expect(await item1SecondAccordion.getProperty("expanded")).toBe(true);
|
|
155
|
-
expect(await item1FirstAccordion.getProperty("active")).toBe(true);
|
|
156
|
-
expect(await item1FirstAccordion.getProperty("expanded")).toBe(true);
|
|
157
|
-
});
|
|
158
|
-
it("prevents closing the last expanded item when in single-persist selection mode", async () => {
|
|
159
|
-
const page = await newE2EPage();
|
|
160
|
-
await page.setContent(`
|
|
161
|
-
<calcite-accordion selection-mode="single-persist">
|
|
162
|
-
${accordionContent}
|
|
163
|
-
</calcite-accordion>`);
|
|
164
|
-
const element = await page.find("calcite-accordion");
|
|
165
|
-
expect(element).toEqualAttribute("selection-mode", "single-persist");
|
|
166
|
-
const item1 = await element.find("calcite-accordion-item[id='1']");
|
|
167
|
-
const item2 = await element.find("calcite-accordion-item[id='2']");
|
|
168
|
-
const item3 = await element.find("calcite-accordion-item[id='3']");
|
|
169
|
-
const item1Content = await element.find(`calcite-accordion-item[id='1'] >>> .${CSS.content}`);
|
|
170
|
-
const item2Content = await element.find(`calcite-accordion-item[id='2'] >>> .${CSS.content}`);
|
|
171
|
-
const item3Content = await element.find(`calcite-accordion-item[id='3'] >>> .${CSS.content}`);
|
|
172
|
-
await item2.click();
|
|
173
|
-
expect(item1).not.toHaveAttribute("expanded");
|
|
174
|
-
expect(item1).not.toHaveAttribute("active");
|
|
175
|
-
expect(item2).toHaveAttribute("expanded");
|
|
176
|
-
expect(item2).toHaveAttribute("active");
|
|
177
|
-
expect(item3).not.toHaveAttribute("expanded");
|
|
178
|
-
expect(item3).not.toHaveAttribute("active");
|
|
179
|
-
expect(await item1Content.isVisible()).toBe(false);
|
|
180
|
-
expect(await item2Content.isVisible()).toBe(true);
|
|
181
|
-
expect(await item3Content.isVisible()).toBe(false);
|
|
182
|
-
});
|
|
183
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { accessible, renders, slots, hidden } from "../../tests/commonTests";
|
|
2
|
-
import { SLOTS } from "./resources";
|
|
3
|
-
describe("calcite-accordion-item", () => {
|
|
4
|
-
it("renders", async () => renders("calcite-accordion-item", { display: "flex" }));
|
|
5
|
-
it("honors hidden attribute", async () => hidden("calcite-accordion-item"));
|
|
6
|
-
it("is accessible", async () => accessible(`<calcite-accordion-item heading="My Heading"></calcite-accordion-item>`));
|
|
7
|
-
it("has slots", () => slots("calcite-accordion-item", SLOTS));
|
|
8
|
-
});
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
-
import { accessible, disabled, hidden, renders, slots } from "../../tests/commonTests";
|
|
3
|
-
import { CSS, SLOTS } from "./resources";
|
|
4
|
-
describe("calcite-action", () => {
|
|
5
|
-
it("renders", async () => renders("calcite-action", { display: "flex" }));
|
|
6
|
-
it("honors hidden attribute", async () => hidden("calcite-action"));
|
|
7
|
-
it("can be disabled", () => disabled("calcite-action"));
|
|
8
|
-
it("has slots", () => slots("calcite-action", SLOTS));
|
|
9
|
-
it("should have visible text when text is enabled", async () => {
|
|
10
|
-
const page = await newE2EPage();
|
|
11
|
-
await page.setContent(`<calcite-action text="hello world" text-enabled></calcite-action>`);
|
|
12
|
-
const textContainer = await page.find(`calcite-action >>> .${CSS.textContainer}`);
|
|
13
|
-
const isVisible = await textContainer.isVisible();
|
|
14
|
-
expect(isVisible).toBe(true);
|
|
15
|
-
});
|
|
16
|
-
it("should not have visible text when text is not enabled", async () => {
|
|
17
|
-
const page = await newE2EPage();
|
|
18
|
-
await page.setContent(`<calcite-action text="hello world"></calcite-action>`);
|
|
19
|
-
const textContainer = await page.find(`calcite-action >>> .${CSS.textContainer}`);
|
|
20
|
-
const isVisible = await textContainer.isVisible();
|
|
21
|
-
expect(isVisible).toBe(false);
|
|
22
|
-
});
|
|
23
|
-
it("should have icon container with icon prop", async () => {
|
|
24
|
-
const page = await newE2EPage();
|
|
25
|
-
await page.setContent(`<calcite-action icon="hamburger"></calcite-action>`);
|
|
26
|
-
const iconContainer = await page.find(`calcite-action >>> .${CSS.iconContainer}`);
|
|
27
|
-
expect(iconContainer).not.toBeNull();
|
|
28
|
-
});
|
|
29
|
-
it("should have icon container with calcite-icon", async () => {
|
|
30
|
-
const page = await newE2EPage();
|
|
31
|
-
await page.setContent(`<calcite-action><calcite-icon icon="hamburger" scale="s"></calcite-icon></calcite-action>`);
|
|
32
|
-
const iconContainer = await page.find(`calcite-action >>> .${CSS.iconContainer}`);
|
|
33
|
-
expect(iconContainer).not.toBeNull();
|
|
34
|
-
});
|
|
35
|
-
it("should have icon container with calcite-icon: after delay", async () => {
|
|
36
|
-
const page = await newE2EPage();
|
|
37
|
-
await page.setContent(`<calcite-action></calcite-action>`);
|
|
38
|
-
const action = await page.find("calcite-action");
|
|
39
|
-
await page.waitForTimeout(1);
|
|
40
|
-
action.innerHTML = `<calcite-icon icon="hamburger" scale="s"></calcite-icon>`;
|
|
41
|
-
await page.waitForChanges();
|
|
42
|
-
const iconContainer = await page.find(`calcite-action >>> .${CSS.iconContainer}`);
|
|
43
|
-
expect(iconContainer).not.toBeNull();
|
|
44
|
-
});
|
|
45
|
-
it("should have icon container with svg", async () => {
|
|
46
|
-
const page = await newE2EPage();
|
|
47
|
-
await page.setContent(`<calcite-action><svg></svg></calcite-action>`);
|
|
48
|
-
const iconContainer = await page.find(`calcite-action >>> .${CSS.iconContainer}`);
|
|
49
|
-
expect(iconContainer).not.toBeNull();
|
|
50
|
-
});
|
|
51
|
-
it("should not have icon container if no icon present", async () => {
|
|
52
|
-
const page = await newE2EPage();
|
|
53
|
-
await page.setContent(`<calcite-action></calcite-action>`);
|
|
54
|
-
const iconContainer = await page.find(`calcite-action >>> .${CSS.iconContainer}`);
|
|
55
|
-
expect(iconContainer).toBeNull();
|
|
56
|
-
});
|
|
57
|
-
it("should have icon container if loading", async () => {
|
|
58
|
-
const page = await newE2EPage();
|
|
59
|
-
await page.setContent(`<calcite-action loading></calcite-action>`);
|
|
60
|
-
const iconContainer = await page.find(`calcite-action >>> .${CSS.iconContainer}`);
|
|
61
|
-
expect(iconContainer).not.toBeNull();
|
|
62
|
-
});
|
|
63
|
-
it("should use text prop for a11y attributes when text is not enabled", async () => {
|
|
64
|
-
const page = await newE2EPage();
|
|
65
|
-
await page.setContent(`<calcite-action text="hello world"></calcite-action>`);
|
|
66
|
-
const button = await page.find(`calcite-action >>> .${CSS.button}`);
|
|
67
|
-
expect(button.getAttribute("aria-label")).toBe("hello world");
|
|
68
|
-
});
|
|
69
|
-
it("should have label", async () => {
|
|
70
|
-
const page = await newE2EPage();
|
|
71
|
-
await page.setContent(`<calcite-action text="hello world" label="hi"></calcite-action>`);
|
|
72
|
-
const button = await page.find(`calcite-action >>> .${CSS.button}`);
|
|
73
|
-
expect(button.getAttribute("aria-label")).toBe("hi");
|
|
74
|
-
});
|
|
75
|
-
it("should have appearance=solid", async () => {
|
|
76
|
-
const page = await newE2EPage();
|
|
77
|
-
await page.setContent(`<calcite-action text="hello world"></calcite-action>`);
|
|
78
|
-
const action = await page.find("calcite-action");
|
|
79
|
-
expect(action.getAttribute("appearance")).toBe("solid");
|
|
80
|
-
});
|
|
81
|
-
it("should be accessible", async () => {
|
|
82
|
-
await accessible(`<calcite-action text="hello world"></calcite-action>`);
|
|
83
|
-
await accessible(`<calcite-action text="hello world" disabled text-enabled></calcite-action>`);
|
|
84
|
-
});
|
|
85
|
-
it("should have a tooltip", async () => {
|
|
86
|
-
const page = await newE2EPage();
|
|
87
|
-
await page.setContent(`<calcite-action text="hello world"><calcite-tooltip slot="tooltip">Hello World!</calcite-tooltip></calcite-action>`);
|
|
88
|
-
await page.waitForChanges();
|
|
89
|
-
const tooltip = await page.find("calcite-tooltip");
|
|
90
|
-
const referenceElement = await tooltip.getProperty("referenceElement");
|
|
91
|
-
expect(referenceElement).toBeDefined();
|
|
92
|
-
});
|
|
93
|
-
});
|
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
-
import { accessible, defaults, focusable, hidden, reflects, renders, slots } from "../../tests/commonTests";
|
|
3
|
-
import { CSS, SLOTS } from "./resources";
|
|
4
|
-
import { overflowActionsDebounceInMs } from "./utils";
|
|
5
|
-
import { html } from "../../../support/formatting";
|
|
6
|
-
describe("calcite-action-bar", () => {
|
|
7
|
-
it("renders", async () => renders("calcite-action-bar", { display: "inline-flex" }));
|
|
8
|
-
it("honors hidden attribute", async () => hidden("calcite-action-bar"));
|
|
9
|
-
it("defaults", async () => defaults("calcite-action-bar", [
|
|
10
|
-
{
|
|
11
|
-
propertyName: "expandDisabled",
|
|
12
|
-
defaultValue: false
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
propertyName: "expanded",
|
|
16
|
-
defaultValue: false
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
propertyName: "scale",
|
|
20
|
-
defaultValue: undefined
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
propertyName: "layout",
|
|
24
|
-
defaultValue: "vertical"
|
|
25
|
-
}
|
|
26
|
-
]));
|
|
27
|
-
it("reflects", async () => reflects("calcite-action-bar", [
|
|
28
|
-
{
|
|
29
|
-
propertyName: "expandDisabled",
|
|
30
|
-
value: true
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
propertyName: "expanded",
|
|
34
|
-
value: true
|
|
35
|
-
}
|
|
36
|
-
]));
|
|
37
|
-
describe("expand functionality", () => {
|
|
38
|
-
it("should not modify actions within an action-menu", async () => {
|
|
39
|
-
const page = await newE2EPage({
|
|
40
|
-
html: html `<calcite-action-bar expanded>
|
|
41
|
-
<calcite-action-group>
|
|
42
|
-
<calcite-action id="my-action" text="Add" label="Add Item" icon="plus"></calcite-action>
|
|
43
|
-
</calcite-action-group>
|
|
44
|
-
<calcite-action-group>
|
|
45
|
-
<calcite-action-menu label="Save and open">
|
|
46
|
-
<calcite-action id="menu-action" text-enabled text="Save" label="Save" icon="save"></calcite-action>
|
|
47
|
-
</calcite-action-menu>
|
|
48
|
-
</calcite-action-group>
|
|
49
|
-
</calcite-action-bar>`
|
|
50
|
-
});
|
|
51
|
-
await page.waitForChanges();
|
|
52
|
-
const actionBar = await page.find("calcite-action-bar");
|
|
53
|
-
const actionBarAction = await page.find("#my-action");
|
|
54
|
-
const menuAction = await page.find("#menu-action");
|
|
55
|
-
expect(await actionBar.getProperty("expanded")).toBe(true);
|
|
56
|
-
expect(await actionBarAction.getProperty("textEnabled")).toBe(true);
|
|
57
|
-
expect(await menuAction.getProperty("textEnabled")).toBe(true);
|
|
58
|
-
actionBar.setProperty("expanded", false);
|
|
59
|
-
await page.waitForChanges();
|
|
60
|
-
expect(await menuAction.getProperty("textEnabled")).toBe(true);
|
|
61
|
-
expect(await actionBarAction.getProperty("textEnabled")).toBe(false);
|
|
62
|
-
});
|
|
63
|
-
it("should be expandable by default", async () => {
|
|
64
|
-
const page = await newE2EPage();
|
|
65
|
-
await page.setContent("<calcite-action-bar></calcite-action-bar>");
|
|
66
|
-
await page.waitForChanges();
|
|
67
|
-
const expandAction = await page.find("calcite-action-bar >>> calcite-action");
|
|
68
|
-
expect(expandAction).not.toBeNull();
|
|
69
|
-
});
|
|
70
|
-
it("allows disabling expandable behavior", async () => {
|
|
71
|
-
const page = await newE2EPage();
|
|
72
|
-
await page.setContent("<calcite-action-bar expand-disabled></calcite-action-bar>");
|
|
73
|
-
await page.waitForChanges();
|
|
74
|
-
const expandAction = await page.find("calcite-action-bar >>> calcite-action");
|
|
75
|
-
expect(expandAction).toBeNull();
|
|
76
|
-
});
|
|
77
|
-
it("should toggle expanded", async () => {
|
|
78
|
-
const page = await newE2EPage({ html: "<calcite-action-bar></calcite-action-bar>" });
|
|
79
|
-
const bar = await page.find("calcite-action-bar");
|
|
80
|
-
const buttonGroup = await page.find(`calcite-action-bar >>> .${CSS.actionGroupBottom}`);
|
|
81
|
-
const button = await buttonGroup.find("calcite-action");
|
|
82
|
-
expect(button).not.toBeNull();
|
|
83
|
-
await button.click();
|
|
84
|
-
expect(bar).toHaveAttribute("expanded");
|
|
85
|
-
});
|
|
86
|
-
it("should not fire expanded event when expanded programmatically", async () => {
|
|
87
|
-
const page = await newE2EPage();
|
|
88
|
-
await page.setContent("<calcite-action-bar></calcite-action-bar>");
|
|
89
|
-
const element = await page.find("calcite-action-bar");
|
|
90
|
-
const eventSpy = await element.spyOnEvent("calciteActionBarToggle");
|
|
91
|
-
element.setProperty("expanded", true);
|
|
92
|
-
await page.waitForChanges();
|
|
93
|
-
expect(eventSpy).not.toHaveReceivedEvent();
|
|
94
|
-
});
|
|
95
|
-
it("should fire expanded event on user interaction", async () => {
|
|
96
|
-
const page = await newE2EPage();
|
|
97
|
-
await page.setContent("<calcite-action-bar></calcite-action-bar>");
|
|
98
|
-
const element = await page.find("calcite-action-bar");
|
|
99
|
-
const eventSpy = await element.spyOnEvent("calciteActionBarToggle");
|
|
100
|
-
await element.click();
|
|
101
|
-
await page.waitForChanges();
|
|
102
|
-
expect(eventSpy).toHaveReceivedEvent();
|
|
103
|
-
});
|
|
104
|
-
it("should have child actions be textEnabled when expanded is set", async () => {
|
|
105
|
-
const page = await newE2EPage();
|
|
106
|
-
await page.setContent("<calcite-action-bar expanded></calcite-action-bar>");
|
|
107
|
-
const buttonGroup = await page.find(`calcite-action-bar >>> .${CSS.actionGroupBottom}`);
|
|
108
|
-
const button = await buttonGroup.find("calcite-action");
|
|
109
|
-
const textEnabled = await button.getProperty("textEnabled");
|
|
110
|
-
expect(textEnabled).toBe(true);
|
|
111
|
-
});
|
|
112
|
-
it("should not have bottomGroup when not expandable", async () => {
|
|
113
|
-
const page = await newE2EPage();
|
|
114
|
-
await page.setContent(html `<calcite-action-bar expand-disabled></calcite-action-bar>`);
|
|
115
|
-
const buttonGroup = await page.find(`calcite-action-bar >>> .${CSS.actionGroupBottom}`);
|
|
116
|
-
expect(buttonGroup).toBeNull();
|
|
117
|
-
});
|
|
118
|
-
it("should modify textEnabled on actions when expanded and expandDisabled", async () => {
|
|
119
|
-
const page = await newE2EPage();
|
|
120
|
-
await page.setContent(html `<calcite-action-bar expand-disabled expanded>
|
|
121
|
-
<calcite-action-group>
|
|
122
|
-
<calcite-action id="my-action" text="Add" label="Add Item" icon="plus"></calcite-action>
|
|
123
|
-
</calcite-action-group>
|
|
124
|
-
</calcite-action-bar>`);
|
|
125
|
-
const expandAction = await page.find("calcite-action-bar >>> calcite-action");
|
|
126
|
-
const action = await page.find("calcite-action");
|
|
127
|
-
const actionBar = await page.find("calcite-action-bar");
|
|
128
|
-
const group = await page.find("calcite-action-group");
|
|
129
|
-
expect(await actionBar.getProperty("expanded")).toBe(true);
|
|
130
|
-
expect(expandAction).toBeNull();
|
|
131
|
-
expect(action).not.toBeNull();
|
|
132
|
-
expect(await group.getProperty("expanded")).toBe(true);
|
|
133
|
-
expect(await action.getProperty("textEnabled")).toBe(true);
|
|
134
|
-
});
|
|
135
|
-
it("should modify textEnabled on actions when expanded is true and new children are added", async () => {
|
|
136
|
-
const page = await newE2EPage();
|
|
137
|
-
await page.setContent(`<calcite-action-bar expanded><calcite-action text="hello"></calcite-action></calcite-action-bar>`);
|
|
138
|
-
await page.evaluate(() => {
|
|
139
|
-
const actionBar = document.querySelector("calcite-action-bar");
|
|
140
|
-
const newAction = document.createElement("calcite-action");
|
|
141
|
-
newAction.textEnabled = false;
|
|
142
|
-
newAction.id = "new-child";
|
|
143
|
-
actionBar.appendChild(newAction);
|
|
144
|
-
});
|
|
145
|
-
const action = await page.find("#new-child");
|
|
146
|
-
const textEnabled = await action.getProperty("textEnabled");
|
|
147
|
-
expect(textEnabled).toBe(true);
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
it("should be accessible", async () => accessible(`
|
|
151
|
-
<calcite-action-bar>
|
|
152
|
-
<calcite-action-group>
|
|
153
|
-
<calcite-action text="Add" icon="plus"></calcite-action>
|
|
154
|
-
</calcite-action-group>
|
|
155
|
-
</calcite-action-bar>
|
|
156
|
-
`));
|
|
157
|
-
it("should be accessible when expanded", async () => accessible(`
|
|
158
|
-
<calcite-action-bar expanded>
|
|
159
|
-
<calcite-action-group>
|
|
160
|
-
<calcite-action text="Add" icon="plus"></calcite-action>
|
|
161
|
-
</calcite-action-group>
|
|
162
|
-
</calcite-action-bar>
|
|
163
|
-
`));
|
|
164
|
-
it("should focus on toggle button", async () => focusable(html `
|
|
165
|
-
<calcite-action-bar>
|
|
166
|
-
<calcite-action-group>
|
|
167
|
-
<calcite-action text="Add" icon="plus"></calcite-action>
|
|
168
|
-
</calcite-action-group>
|
|
169
|
-
</calcite-action-bar>
|
|
170
|
-
`, {
|
|
171
|
-
focusId: "expand-toggle",
|
|
172
|
-
focusTargetSelector: "calcite-action-bar"
|
|
173
|
-
}));
|
|
174
|
-
it("has slots", () => slots("calcite-action-bar", SLOTS));
|
|
175
|
-
it("should set other 'calcite-action-group' - 'menuOpen' to false", async () => {
|
|
176
|
-
const page = await newE2EPage();
|
|
177
|
-
await page.setContent(html `<calcite-action-bar>
|
|
178
|
-
<calcite-action-group>
|
|
179
|
-
<calcite-action text="Add" icon="plus"></calcite-action>
|
|
180
|
-
<calcite-action text="Add" icon="plus"></calcite-action>
|
|
181
|
-
<calcite-action text="Add" icon="plus"></calcite-action>
|
|
182
|
-
<calcite-action text="Add" icon="plus" slot="menu-actions"></calcite-action>
|
|
183
|
-
<calcite-action text="Add" icon="plus" slot="menu-actions"></calcite-action>
|
|
184
|
-
</calcite-action-group>
|
|
185
|
-
<calcite-action-group menu-open>
|
|
186
|
-
<calcite-action text="Add" icon="plus"></calcite-action>
|
|
187
|
-
<calcite-action text="Add" icon="plus"></calcite-action>
|
|
188
|
-
<calcite-action text="Add" icon="plus"></calcite-action>
|
|
189
|
-
<calcite-action text="Add" icon="plus"></calcite-action>
|
|
190
|
-
<calcite-action text="Add" icon="plus" slot="menu-actions"></calcite-action>
|
|
191
|
-
<calcite-action text="Add" icon="plus" slot="menu-actions"></calcite-action>
|
|
192
|
-
</calcite-action-group>
|
|
193
|
-
</calcite-action-bar>`);
|
|
194
|
-
const groups = await page.findAll("calcite-action-group");
|
|
195
|
-
expect(groups).toHaveLength(2);
|
|
196
|
-
expect(await groups[0].getProperty("menuOpen")).toBe(false);
|
|
197
|
-
expect(await groups[1].getProperty("menuOpen")).toBe(true);
|
|
198
|
-
const calciteActionMenuOpenChangeEvent = page.waitForEvent("calciteActionMenuOpenChange");
|
|
199
|
-
await page.$eval("calcite-action-group", (firstActionGroup) => {
|
|
200
|
-
firstActionGroup.menuOpen = true;
|
|
201
|
-
const event = new CustomEvent("calciteActionMenuOpenChange", { bubbles: true, detail: true });
|
|
202
|
-
firstActionGroup.dispatchEvent(event);
|
|
203
|
-
});
|
|
204
|
-
await calciteActionMenuOpenChangeEvent;
|
|
205
|
-
await page.waitForChanges();
|
|
206
|
-
expect(groups).toHaveLength(2);
|
|
207
|
-
expect(await groups[0].getProperty("menuOpen")).toBe(true);
|
|
208
|
-
expect(await groups[1].getProperty("menuOpen")).toBe(false);
|
|
209
|
-
});
|
|
210
|
-
it("should honor scale of expand icon", async () => {
|
|
211
|
-
const page = await newE2EPage({ html: html `<calcite-action-bar scale="l"></calcite-action-bar>` });
|
|
212
|
-
const buttonGroup = await page.find(`calcite-action-bar >>> .${CSS.actionGroupBottom}`);
|
|
213
|
-
const button = await buttonGroup.find("calcite-action");
|
|
214
|
-
expect(await button.getProperty("scale")).toBe("l");
|
|
215
|
-
});
|
|
216
|
-
const dynamicGroupActionsSelector = "#dynamic-group calcite-action";
|
|
217
|
-
const slottedActionsSelector = "calcite-action[slot='menu-actions']";
|
|
218
|
-
describe("overflow actions", () => {
|
|
219
|
-
it("should slot 'menu-actions' on sublist changes", async () => {
|
|
220
|
-
const page = await newE2EPage({
|
|
221
|
-
html: html `<div style="width:500px; height:500px;">
|
|
222
|
-
<calcite-action-bar style="height: 290px">
|
|
223
|
-
<calcite-action-group id="dynamic-group"
|
|
224
|
-
><calcite-action text="Layer properties" icon="sliders-horizontal"></calcite-action>
|
|
225
|
-
<calcite-action id="second-action" text="Styles" icon="shapes"></calcite-action
|
|
226
|
-
></calcite-action-group>
|
|
227
|
-
<calcite-action-group>
|
|
228
|
-
<calcite-action text="Save" icon="save" disabled></calcite-action>
|
|
229
|
-
<calcite-action icon="layers" text="Layers"></calcite-action>
|
|
230
|
-
</calcite-action-group>
|
|
231
|
-
<calcite-action-group slot="bottom-actions">
|
|
232
|
-
<calcite-action text="Tips" icon="lightbulb"></calcite-action>
|
|
233
|
-
</calcite-action-group>
|
|
234
|
-
</calcite-action-bar>
|
|
235
|
-
</div>`
|
|
236
|
-
});
|
|
237
|
-
await page.waitForTimeout(overflowActionsDebounceInMs);
|
|
238
|
-
expect(await page.findAll(dynamicGroupActionsSelector)).toHaveLength(2);
|
|
239
|
-
expect(await page.findAll(slottedActionsSelector)).toHaveLength(0);
|
|
240
|
-
await page.$eval("calcite-action-bar", (element) => {
|
|
241
|
-
element.ownerDocument.getElementById("second-action").insertAdjacentHTML("afterend", `
|
|
242
|
-
<calcite-action text="Styles" icon="shapes"></calcite-action>
|
|
243
|
-
<calcite-action text="Filter" icon="layer-filter"></calcite-action>
|
|
244
|
-
<calcite-action text="Configure pop-ups" icon="popup"></calcite-action>
|
|
245
|
-
<calcite-action text="Configure attributes" icon="feature-details"></calcite-action>
|
|
246
|
-
<calcite-action text="Labels" icon="label" active></calcite-action>
|
|
247
|
-
<calcite-action text="Table" icon="table"></calcite-action>`);
|
|
248
|
-
});
|
|
249
|
-
await page.waitForTimeout(overflowActionsDebounceInMs + 10);
|
|
250
|
-
await page.waitForChanges();
|
|
251
|
-
expect(await page.findAll(dynamicGroupActionsSelector)).toHaveLength(8);
|
|
252
|
-
expect(await page.findAll(slottedActionsSelector)).toHaveLength(7);
|
|
253
|
-
});
|
|
254
|
-
it.skip("should slot 'menu-actions' on resize of component", async () => {
|
|
255
|
-
const page = await newE2EPage({
|
|
256
|
-
html: html `<div style="width:500px; height:500px;">
|
|
257
|
-
<calcite-action-bar style="height: 290px">
|
|
258
|
-
<calcite-action-group id="dynamic-group"
|
|
259
|
-
><calcite-action text="Layer properties" icon="sliders-horizontal"></calcite-action>
|
|
260
|
-
<calcite-action text="Styles" icon="shapes"></calcite-action>
|
|
261
|
-
<calcite-action text="Styles" icon="shapes"></calcite-action>
|
|
262
|
-
<calcite-action text="Filter" icon="layer-filter"></calcite-action>
|
|
263
|
-
<calcite-action text="Configure pop-ups" icon="popup"></calcite-action>
|
|
264
|
-
<calcite-action text="Configure attributes" icon="feature-details"></calcite-action>
|
|
265
|
-
<calcite-action text="Labels" icon="label" active></calcite-action>
|
|
266
|
-
<calcite-action text="Table" icon="table"></calcite-action
|
|
267
|
-
></calcite-action-group>
|
|
268
|
-
<calcite-action-group>
|
|
269
|
-
<calcite-action text="Save" icon="save" disabled></calcite-action>
|
|
270
|
-
<calcite-action icon="layers" text="Layers"></calcite-action>
|
|
271
|
-
</calcite-action-group>
|
|
272
|
-
<calcite-action-group slot="bottom-actions">
|
|
273
|
-
<calcite-action text="Tips" icon="lightbulb"></calcite-action>
|
|
274
|
-
</calcite-action-group>
|
|
275
|
-
</calcite-action-bar>
|
|
276
|
-
</div>`
|
|
277
|
-
});
|
|
278
|
-
await page.waitForTimeout(overflowActionsDebounceInMs + 10);
|
|
279
|
-
expect(await page.findAll(dynamicGroupActionsSelector)).toHaveLength(8);
|
|
280
|
-
expect(await page.findAll(slottedActionsSelector)).toHaveLength(7);
|
|
281
|
-
await page.$eval("calcite-action-bar", (element) => {
|
|
282
|
-
element.style.height = "550px";
|
|
283
|
-
});
|
|
284
|
-
await page.waitForTimeout(overflowActionsDebounceInMs + 10);
|
|
285
|
-
await page.waitForChanges();
|
|
286
|
-
expect(await page.findAll(dynamicGroupActionsSelector)).toHaveLength(8);
|
|
287
|
-
expect(await page.findAll(slottedActionsSelector)).toHaveLength(2);
|
|
288
|
-
});
|
|
289
|
-
});
|
|
290
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { accessible, hidden, renders, slots } from "../../tests/commonTests";
|
|
2
|
-
import { newE2EPage } from "@stencil/core/testing";
|
|
3
|
-
import { SLOTS } from "./resources";
|
|
4
|
-
describe("calcite-action-group", () => {
|
|
5
|
-
it("renders", async () => renders("calcite-action-group", { display: "flex" }));
|
|
6
|
-
it("honors hidden attribute", async () => hidden("calcite-action-group"));
|
|
7
|
-
it("should be accessible", async () => accessible(`
|
|
8
|
-
<calcite-action-group>
|
|
9
|
-
<calcite-action text="Add" icon="plus"></calcite-action>
|
|
10
|
-
</calcite-action-group>
|
|
11
|
-
`));
|
|
12
|
-
it("has slots", () => slots("calcite-action-group", SLOTS));
|
|
13
|
-
it("should honor scale of expand icon", async () => {
|
|
14
|
-
const page = await newE2EPage({
|
|
15
|
-
html: `<calcite-action-group scale="l">
|
|
16
|
-
<calcite-action slot="menu-actions" text="Add" icon="plus"></calcite-action>
|
|
17
|
-
<calcite-action slot="menu-actions" text="Add" icon="plus"></calcite-action>
|
|
18
|
-
</calcite-action-group>`
|
|
19
|
-
});
|
|
20
|
-
const menu = await page.find(`calcite-action-group >>> calcite-action-menu`);
|
|
21
|
-
expect(await menu.getProperty("scale")).toBe("l");
|
|
22
|
-
});
|
|
23
|
-
});
|