wcs-core 7.2.2 → 7.4.0
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/README.md +11 -9
- package/design-tokens/dist/sncf-groupe-root-scoped.css +227 -227
- package/design-tokens/dist/sncf-groupe.css +227 -227
- package/design-tokens/dist/sncf-holding-root-scoped.css +227 -227
- package/design-tokens/dist/sncf-holding.css +227 -227
- package/design-tokens/dist/sncf-reseau-root-scoped.css +227 -227
- package/design-tokens/dist/sncf-reseau.css +227 -227
- package/design-tokens/dist/sncf-voyageurs-root-scoped.css +242 -242
- package/design-tokens/dist/sncf-voyageurs.css +242 -242
- package/dist/cjs/accessibility-5f681a74.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{popper-8d6e7fca.js → popper-1b61df21.js} +10 -17
- package/dist/cjs/popper-1b61df21.js.map +1 -0
- package/dist/cjs/wcs-accordion-panel.cjs.entry.js +1 -1
- package/dist/cjs/wcs-accordion-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/wcs-accordion.cjs.entry.js +2 -1
- package/dist/cjs/wcs-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/wcs-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/wcs-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/wcs-checkbox.cjs.entry.js +3 -2
- package/dist/cjs/wcs-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/wcs-chip.cjs.entry.js +102 -0
- package/dist/cjs/wcs-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/wcs-com-nav-item.cjs.entry.js +1 -1
- package/dist/cjs/wcs-com-nav-item.cjs.entry.js.map +1 -1
- package/dist/cjs/wcs-com-nav.cjs.entry.js +3 -3
- package/dist/cjs/wcs-com-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/wcs-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/wcs-error_3.cjs.entry.js +1 -1
- package/dist/cjs/wcs-error_3.cjs.entry.js.map +1 -1
- package/dist/cjs/wcs-galactic-menu.cjs.entry.js +1 -1
- package/dist/cjs/wcs-grid.cjs.entry.js +5 -4
- package/dist/cjs/wcs-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/wcs-horizontal-stepper.cjs.entry.js +3 -2
- package/dist/cjs/wcs-horizontal-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/wcs-modal.cjs.entry.js +2 -2
- package/dist/cjs/wcs-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/wcs-select_2.cjs.entry.js +59 -24
- package/dist/cjs/wcs-select_2.cjs.entry.js.map +1 -1
- package/dist/cjs/wcs-tabs.cjs.entry.js +1 -1
- package/dist/cjs/wcs-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/wcs.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion/accordion.e2e.playwright.js +183 -0
- package/dist/collection/components/accordion/accordion.e2e.playwright.js.map +1 -0
- package/dist/collection/components/accordion/accordion.js +2 -1
- package/dist/collection/components/accordion/accordion.js.map +1 -1
- package/dist/collection/components/accordion-panel/accordion-panel.js +3 -3
- package/dist/collection/components/accordion-panel/accordion-panel.js.map +1 -1
- package/dist/collection/components/alert/alert.e2e.playwright.js +125 -0
- package/dist/collection/components/alert/alert.e2e.playwright.js.map +1 -0
- package/dist/collection/components/alert-drawer/alert-drawer.e2e.playwright.js +107 -0
- package/dist/collection/components/alert-drawer/alert-drawer.e2e.playwright.js.map +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb.e2e.playwright.js +188 -0
- package/dist/collection/components/breadcrumb/breadcrumb.e2e.playwright.js.map +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +2 -2
- package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/collection/components/button/button.e2e.playwright.js +26 -0
- package/dist/collection/components/button/button.e2e.playwright.js.map +1 -0
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/checkbox/checkbox.css +3 -0
- package/dist/collection/components/checkbox/checkbox.e2e.playwright.js +39 -0
- package/dist/collection/components/checkbox/checkbox.e2e.playwright.js.map +1 -0
- package/dist/collection/components/checkbox/checkbox.js +21 -2
- package/dist/collection/components/checkbox/checkbox.js.map +1 -1
- package/dist/collection/components/chip/chip-interface.js +2 -0
- package/dist/collection/components/chip/chip-interface.js.map +1 -0
- package/dist/collection/components/chip/chip.css +220 -0
- package/dist/collection/components/chip/chip.e2e.playwright.js +190 -0
- package/dist/collection/components/chip/chip.e2e.playwright.js.map +1 -0
- package/dist/collection/components/chip/chip.js +341 -0
- package/dist/collection/components/chip/chip.js.map +1 -0
- package/dist/collection/components/com-nav/com-nav.css +15 -0
- package/dist/collection/components/com-nav/{com-nav.e2e.js → com-nav.e2e.playwright.js} +60 -44
- package/dist/collection/components/com-nav/com-nav.e2e.playwright.js.map +1 -0
- package/dist/collection/components/com-nav/com-nav.js +3 -3
- package/dist/collection/components/com-nav/com-nav.js.map +1 -1
- package/dist/collection/components/com-nav-category/com-nav-category.js +1 -1
- package/dist/collection/components/com-nav-item/com-nav-item.css +2 -2
- package/dist/collection/components/com-nav-submenu/com-nav-submenu.js +1 -1
- package/dist/collection/components/counter/counter.e2e.playwright.js +187 -0
- package/dist/collection/components/counter/counter.e2e.playwright.js.map +1 -0
- package/dist/collection/components/counter/counter.js +1 -1
- package/dist/collection/components/dropdown/dropdown.e2e.playwright.js +320 -0
- package/dist/collection/components/dropdown/dropdown.e2e.playwright.js.map +1 -0
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/editable-field/editable-field.e2e.playwright.js +156 -0
- package/dist/collection/components/editable-field/editable-field.e2e.playwright.js.map +1 -0
- package/dist/collection/components/form-field/form-field.e2e.playwright.js +104 -0
- package/dist/collection/components/form-field/form-field.e2e.playwright.js.map +1 -0
- package/dist/collection/components/galactic-menu/galactic-menu.js +1 -1
- package/dist/collection/components/grid/grid.e2e.playwright.js +153 -0
- package/dist/collection/components/grid/grid.e2e.playwright.js.map +1 -0
- package/dist/collection/components/grid/grid.js +6 -5
- package/dist/collection/components/grid/grid.js.map +1 -1
- package/dist/collection/components/grid-column/grid-column.js +1 -1
- package/dist/collection/components/grid-pagination/grid-pagination.js +1 -1
- package/dist/collection/components/header/header.js +1 -1
- package/dist/collection/components/horizontal-stepper/horizontal-step.js +2 -1
- package/dist/collection/components/horizontal-stepper/horizontal-step.js.map +1 -1
- package/dist/collection/components/horizontal-stepper/horizontal-stepper-interface.js.map +1 -1
- package/dist/collection/components/horizontal-stepper/horizontal-stepper.js +5 -1
- package/dist/collection/components/horizontal-stepper/horizontal-stepper.js.map +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/input/input.e2e.playwright.js +157 -0
- package/dist/collection/components/input/input.e2e.playwright.js.map +1 -0
- package/dist/collection/components/input/input.js +2 -2
- package/dist/collection/components/label/label.css +4 -6
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/mat-icon/mat-icon.js +1 -1
- package/dist/collection/components/modal/modal.css +4 -0
- package/dist/collection/components/modal/modal.e2e.playwright.js +35 -0
- package/dist/collection/components/modal/modal.e2e.playwright.js.map +1 -0
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/native-select/native-select.js +1 -1
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/progress-radial/progress-radial.js +1 -1
- package/dist/collection/components/radio/radio.js +1 -1
- package/dist/collection/components/radio-group/radio-group.e2e.playwright.js +231 -0
- package/dist/collection/components/radio-group/radio-group.e2e.playwright.js.map +1 -0
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/select/select.e2e.playwright.js +1702 -0
- package/dist/collection/components/select/select.e2e.playwright.js.map +1 -0
- package/dist/collection/components/select/select.js +49 -20
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/select-option/select-option.js +3 -3
- package/dist/collection/components/select-option/select-option.js.map +1 -1
- package/dist/collection/components/switch/switch.e2e.playwright.js +40 -0
- package/dist/collection/components/switch/switch.e2e.playwright.js.map +1 -0
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tabs/tabs.e2e.playwright.js +205 -0
- package/dist/collection/components/tabs/tabs.e2e.playwright.js.map +1 -0
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/textarea/textarea.e2e.playwright.js +133 -0
- package/dist/collection/components/textarea/textarea.e2e.playwright.js.map +1 -0
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/utils/accessibility.js +16 -0
- package/dist/collection/utils/accessibility.js.map +1 -1
- package/dist/collection/utils/playwright/test-expect.js +2 -0
- package/dist/collection/utils/playwright/test-expect.js.map +1 -0
- package/dist/collection/utils/playwright/test.js +16 -0
- package/dist/collection/utils/playwright/test.js.map +1 -0
- package/dist/esm/accessibility-069640cf.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{popper-e491c314.js → popper-ac238961.js} +10 -17
- package/dist/esm/popper-ac238961.js.map +1 -0
- package/dist/esm/wcs-accordion-panel.entry.js +1 -1
- package/dist/esm/wcs-accordion-panel.entry.js.map +1 -1
- package/dist/esm/wcs-accordion.entry.js +2 -1
- package/dist/esm/wcs-accordion.entry.js.map +1 -1
- package/dist/esm/wcs-breadcrumb.entry.js +1 -1
- package/dist/esm/wcs-breadcrumb.entry.js.map +1 -1
- package/dist/esm/wcs-checkbox.entry.js +3 -2
- package/dist/esm/wcs-checkbox.entry.js.map +1 -1
- package/dist/esm/wcs-chip.entry.js +98 -0
- package/dist/esm/wcs-chip.entry.js.map +1 -0
- package/dist/esm/wcs-com-nav-item.entry.js +1 -1
- package/dist/esm/wcs-com-nav-item.entry.js.map +1 -1
- package/dist/esm/wcs-com-nav.entry.js +3 -3
- package/dist/esm/wcs-com-nav.entry.js.map +1 -1
- package/dist/esm/wcs-dropdown.entry.js +1 -1
- package/dist/esm/wcs-error_3.entry.js +1 -1
- package/dist/esm/wcs-error_3.entry.js.map +1 -1
- package/dist/esm/wcs-galactic-menu.entry.js +1 -1
- package/dist/esm/wcs-grid.entry.js +5 -4
- package/dist/esm/wcs-grid.entry.js.map +1 -1
- package/dist/esm/wcs-horizontal-stepper.entry.js +3 -2
- package/dist/esm/wcs-horizontal-stepper.entry.js.map +1 -1
- package/dist/esm/wcs-modal.entry.js +2 -2
- package/dist/esm/wcs-modal.entry.js.map +1 -1
- package/dist/esm/wcs-select_2.entry.js +59 -24
- package/dist/esm/wcs-select_2.entry.js.map +1 -1
- package/dist/esm/wcs-tabs.entry.js +1 -1
- package/dist/esm/wcs-tooltip.entry.js +1 -1
- package/dist/esm/wcs.js +1 -1
- package/dist/types/components/accordion/accordion.e2e.playwright.d.ts +1 -0
- package/dist/types/components/accordion-panel/accordion-panel.d.ts +5 -0
- package/dist/types/components/alert/alert.e2e.playwright.d.ts +1 -0
- package/dist/types/components/alert-drawer/alert-drawer.e2e.playwright.d.ts +1 -0
- package/dist/types/components/breadcrumb/breadcrumb.e2e.playwright.d.ts +1 -0
- package/dist/types/components/button/button.e2e.playwright.d.ts +1 -0
- package/dist/types/components/checkbox/checkbox.d.ts +4 -0
- package/dist/types/components/checkbox/checkbox.e2e.playwright.d.ts +1 -0
- package/dist/types/components/chip/chip-interface.d.ts +4 -0
- package/dist/types/components/chip/chip.d.ts +132 -0
- package/dist/types/components/chip/chip.e2e.playwright.d.ts +1 -0
- package/dist/types/components/com-nav/com-nav.e2e.playwright.d.ts +1 -0
- package/dist/types/components/counter/counter.e2e.playwright.d.ts +1 -0
- package/dist/types/components/dropdown/dropdown.e2e.playwright.d.ts +1 -0
- package/dist/types/components/editable-field/editable-field.e2e.playwright.d.ts +1 -0
- package/dist/types/components/form-field/form-field.e2e.playwright.d.ts +1 -0
- package/dist/types/components/grid/grid.e2e.playwright.d.ts +1 -0
- package/dist/types/components/horizontal-stepper/horizontal-stepper-interface.d.ts +2 -0
- package/dist/types/components/horizontal-stepper/horizontal-stepper.d.ts +4 -0
- package/dist/types/components/input/input.e2e.playwright.d.ts +1 -0
- package/dist/types/components/modal/modal.e2e.playwright.d.ts +1 -0
- package/dist/types/components/radio-group/radio-group.e2e.playwright.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +7 -1
- package/dist/types/components/select/select.e2e.playwright.d.ts +1 -0
- package/dist/types/components/switch/switch.e2e.playwright.d.ts +1 -0
- package/dist/types/components/tabs/tabs.e2e.playwright.d.ts +1 -0
- package/dist/types/components/textarea/textarea.e2e.playwright.d.ts +1 -0
- package/dist/types/components.d.ts +354 -0
- package/dist/types/utils/accessibility.d.ts +7 -0
- package/dist/types/utils/playwright/test-expect.d.ts +33 -0
- package/dist/types/utils/playwright/test.d.ts +7 -0
- package/dist/wcs/{p-8e9bd0f1.entry.js → p-0326f834.entry.js} +2 -2
- package/dist/wcs/{p-8e9bd0f1.entry.js.map → p-0326f834.entry.js.map} +1 -1
- package/dist/wcs/p-2221bf0c.entry.js +16 -0
- package/dist/wcs/p-2221bf0c.entry.js.map +1 -0
- package/dist/wcs/p-4ae08567.entry.js +2 -0
- package/dist/wcs/p-4ae08567.entry.js.map +1 -0
- package/dist/wcs/p-4e2d6227.entry.js +2 -0
- package/dist/wcs/p-4e2d6227.entry.js.map +1 -0
- package/dist/wcs/p-828b45b4.entry.js +2 -0
- package/dist/wcs/p-828b45b4.entry.js.map +1 -0
- package/dist/wcs/p-8332a7e3.entry.js +2 -0
- package/dist/wcs/p-8332a7e3.entry.js.map +1 -0
- package/dist/wcs/p-990698a7.entry.js +2 -0
- package/dist/wcs/p-990698a7.entry.js.map +1 -0
- package/dist/wcs/{p-ec383729.entry.js → p-9b76b8e6.entry.js} +2 -2
- package/dist/wcs/{p-ec383729.entry.js.map → p-9b76b8e6.entry.js.map} +1 -1
- package/dist/wcs/{p-1f593d06.entry.js → p-abd8d5a0.entry.js} +2 -2
- package/dist/wcs/{p-622f7403.entry.js → p-c6f8c45c.entry.js} +2 -2
- package/dist/wcs/{p-a94e685c.entry.js → p-db7ba599.entry.js} +2 -2
- package/dist/wcs/p-e1fb3625.js +2 -0
- package/dist/wcs/p-e1fb3625.js.map +1 -0
- package/dist/wcs/p-ed3b0709.entry.js +2 -0
- package/dist/wcs/p-ed3b0709.entry.js.map +1 -0
- package/dist/wcs/{p-6c6079ee.entry.js → p-f2eeb249.entry.js} +2 -2
- package/dist/wcs/{p-6c6079ee.entry.js.map → p-f2eeb249.entry.js.map} +1 -1
- package/dist/wcs/{p-a956dc84.entry.js → p-f2f7595e.entry.js} +2 -2
- package/dist/wcs/{p-a956dc84.entry.js.map → p-f2f7595e.entry.js.map} +1 -1
- package/dist/wcs/p-fb2751c2.js.map +1 -1
- package/dist/wcs/p-fbd68522.entry.js +2 -0
- package/dist/wcs/p-fbd68522.entry.js.map +1 -0
- package/dist/wcs/{p-8c2605fd.entry.js → p-fe303f58.entry.js} +2 -2
- package/dist/wcs/wcs.esm.js +1 -1
- package/dist/wcs/wcs.esm.js.map +1 -1
- package/package.json +18 -24
- package/dist/cjs/popper-8d6e7fca.js.map +0 -1
- package/dist/collection/components/alert/alert.e2e.js +0 -142
- package/dist/collection/components/alert/alert.e2e.js.map +0 -1
- package/dist/collection/components/alert-drawer/alert-drawer.e2e.js +0 -111
- package/dist/collection/components/alert-drawer/alert-drawer.e2e.js.map +0 -1
- package/dist/collection/components/breadcrumb/breadcrumb.e2e.js +0 -223
- package/dist/collection/components/breadcrumb/breadcrumb.e2e.js.map +0 -1
- package/dist/collection/components/button/button.e2e.js +0 -25
- package/dist/collection/components/button/button.e2e.js.map +0 -1
- package/dist/collection/components/checkbox/checkbox.e2e.js +0 -45
- package/dist/collection/components/checkbox/checkbox.e2e.js.map +0 -1
- package/dist/collection/components/com-nav/com-nav.e2e.js.map +0 -1
- package/dist/collection/components/counter/counter.e2e.js +0 -206
- package/dist/collection/components/counter/counter.e2e.js.map +0 -1
- package/dist/collection/components/dropdown/dropdown.e2e.js +0 -156
- package/dist/collection/components/dropdown/dropdown.e2e.js.map +0 -1
- package/dist/collection/components/editable-field/editable-field.e2e.js +0 -176
- package/dist/collection/components/editable-field/editable-field.e2e.js.map +0 -1
- package/dist/collection/components/form-field/form-field.e2e.js +0 -122
- package/dist/collection/components/form-field/form-field.e2e.js.map +0 -1
- package/dist/collection/components/grid/grid.e2e.js +0 -147
- package/dist/collection/components/grid/grid.e2e.js.map +0 -1
- package/dist/collection/components/input/input.e2e.js +0 -152
- package/dist/collection/components/input/input.e2e.js.map +0 -1
- package/dist/collection/components/modal/modal.e2e.js +0 -36
- package/dist/collection/components/modal/modal.e2e.js.map +0 -1
- package/dist/collection/components/radio-group/radio-group.e2e.js +0 -239
- package/dist/collection/components/radio-group/radio-group.e2e.js.map +0 -1
- package/dist/collection/components/select/select.e2e.js +0 -1081
- package/dist/collection/components/select/select.e2e.js.map +0 -1
- package/dist/collection/components/switch/switch.e2e.js +0 -45
- package/dist/collection/components/switch/switch.e2e.js.map +0 -1
- package/dist/collection/components/tabs/tabs.e2e.js +0 -207
- package/dist/collection/components/tabs/tabs.e2e.js.map +0 -1
- package/dist/collection/components/textarea/textarea.e2e.js +0 -132
- package/dist/collection/components/textarea/textarea.e2e.js.map +0 -1
- package/dist/collection/utils/tests.js +0 -23
- package/dist/collection/utils/tests.js.map +0 -1
- package/dist/esm/popper-e491c314.js.map +0 -1
- package/dist/types/utils/tests.d.ts +0 -4
- package/dist/wcs/p-02f31010.entry.js +0 -2
- package/dist/wcs/p-02f31010.entry.js.map +0 -1
- package/dist/wcs/p-0dd07842.entry.js +0 -2
- package/dist/wcs/p-0dd07842.entry.js.map +0 -1
- package/dist/wcs/p-0f864e86.js +0 -2
- package/dist/wcs/p-0f864e86.js.map +0 -1
- package/dist/wcs/p-1244daa0.entry.js +0 -2
- package/dist/wcs/p-1244daa0.entry.js.map +0 -1
- package/dist/wcs/p-1fbe0328.entry.js +0 -2
- package/dist/wcs/p-1fbe0328.entry.js.map +0 -1
- package/dist/wcs/p-4fb2d985.entry.js +0 -2
- package/dist/wcs/p-4fb2d985.entry.js.map +0 -1
- package/dist/wcs/p-b94a09b6.entry.js +0 -16
- package/dist/wcs/p-b94a09b6.entry.js.map +0 -1
- package/dist/wcs/p-fd187bce.entry.js +0 -2
- package/dist/wcs/p-fd187bce.entry.js.map +0 -1
- /package/dist/wcs/{p-1f593d06.entry.js.map → p-abd8d5a0.entry.js.map} +0 -0
- /package/dist/wcs/{p-622f7403.entry.js.map → p-c6f8c45c.entry.js.map} +0 -0
- /package/dist/wcs/{p-a94e685c.entry.js.map → p-db7ba599.entry.js.map} +0 -0
- /package/dist/wcs/{p-8c2605fd.entry.js.map → p-fe303f58.entry.js.map} +0 -0
|
@@ -12,6 +12,7 @@ import { BadgeColor, BadgeShape, BadgeSize } from "./components/badge/badge-inte
|
|
|
12
12
|
import { WcsButtonMode, WcsButtonShape, WcsButtonSize, WcsButtonType } from "./components/button/button-interface";
|
|
13
13
|
import { CardMode, CardOrientation } from "./components/card/card-interface";
|
|
14
14
|
import { CheckboxChangeEventDetail, CheckboxLabelAlignment } from "./components/checkbox/checkbox-interface";
|
|
15
|
+
import { WcsChipMode, WcsChipVariant } from "./components/chip/chip-interface";
|
|
15
16
|
import { CategoryOpenedEventDetail, MenuOpenedEventDetail } from "./components/com-nav/com-nav-interface";
|
|
16
17
|
import { CounterChangeEventDetail, WcsCounterSize } from "./components/counter/counter-interface";
|
|
17
18
|
import { WcsDropdownPlacement } from "./components/dropdown/dropdown-interface";
|
|
@@ -40,6 +41,7 @@ export { BadgeColor, BadgeShape, BadgeSize } from "./components/badge/badge-inte
|
|
|
40
41
|
export { WcsButtonMode, WcsButtonShape, WcsButtonSize, WcsButtonType } from "./components/button/button-interface";
|
|
41
42
|
export { CardMode, CardOrientation } from "./components/card/card-interface";
|
|
42
43
|
export { CheckboxChangeEventDetail, CheckboxLabelAlignment } from "./components/checkbox/checkbox-interface";
|
|
44
|
+
export { WcsChipMode, WcsChipVariant } from "./components/chip/chip-interface";
|
|
43
45
|
export { CategoryOpenedEventDetail, MenuOpenedEventDetail } from "./components/com-nav/com-nav-interface";
|
|
44
46
|
export { CounterChangeEventDetail, WcsCounterSize } from "./components/counter/counter-interface";
|
|
45
47
|
export { WcsDropdownPlacement } from "./components/dropdown/dropdown-interface";
|
|
@@ -534,8 +536,101 @@ export namespace Components {
|
|
|
534
536
|
*/
|
|
535
537
|
"labelAlignment": CheckboxLabelAlignment;
|
|
536
538
|
"name": string;
|
|
539
|
+
/**
|
|
540
|
+
* If `true`, the user must fill in a value before submitting a form.
|
|
541
|
+
*/
|
|
542
|
+
"required": boolean;
|
|
537
543
|
"setAriaAttribute": (attr: AriaAttributeName, value: string | null | undefined) => Promise<void>;
|
|
538
544
|
}
|
|
545
|
+
/**
|
|
546
|
+
* The chip component is a small, interactive element that can be used to represent an input, filter, or tag.
|
|
547
|
+
* It can be in one of two modes: 'selectable' or 'dismissible'.
|
|
548
|
+
* - In 'selectable' mode, the chip can be selected or deselected, and emits an event when clicked.
|
|
549
|
+
* - In 'dismissible' mode, the chip can be dismissed (removed) by clicking a dismiss icon, and emits an event when the dismiss icon is clicked.
|
|
550
|
+
* @cssprop --wcs-chip-height - Height of the chip
|
|
551
|
+
* @cssprop --wcs-chip-font-size - Font size of the chip text
|
|
552
|
+
* @cssprop --wcs-chip-font-weight - Font weight of the chip text
|
|
553
|
+
* @cssprop --wcs-chip-focus-outline-border-width - Border width of the chip focus outline
|
|
554
|
+
* @cssprop --wcs-chip-padding-vertical - Vertical padding (top - bottom) of the chip
|
|
555
|
+
* @cssprop --wcs-chip-padding-horizontal - Horizontal padding (left - right) of the chip
|
|
556
|
+
* @cssprop --wcs-chip-padding-horizontal-dismissible - Horizontal padding (left - right) of the chip with 'dismissible' mode
|
|
557
|
+
* @cssprop --wcs-chip-selectable-background-color - Background color of the chip with 'selectable' mode in default state
|
|
558
|
+
* @cssprop --wcs-chip-selectable-background-color-pressed - Background color of the chip with 'selectable' mode when pressed
|
|
559
|
+
* @cssprop --wcs-chip-selectable-background-color-hover - Background color of the chip with 'selectable' mode when hovered
|
|
560
|
+
* @cssprop --wcs-chip-selectable-background-color-selected - Background color of the chip with 'selectable' mode when selected
|
|
561
|
+
* @cssprop --wcs-chip-selectable-background-color-selected-hover - Background color of the chip with 'selectable' mode when selected and hovered
|
|
562
|
+
* @cssprop --wcs-chip-selectable-background-color-selected-pressed - Background color of the chip with 'selectable' mode when selected and pressed
|
|
563
|
+
* @cssprop --wcs-chip-selectable-background-color-selected-disabled - Background color of the chip with 'selectable' mode when selected and disabled
|
|
564
|
+
* @cssprop --wcs-chip-selectable-color - Text color of the chip with 'selectable' mode in default state
|
|
565
|
+
* @cssprop --wcs-chip-selectable-color-hover - Text color of the chip with 'selectable' mode when hovered
|
|
566
|
+
* @cssprop --wcs-chip-selectable-color-pressed - Text color of the chip with 'selectable' mode when pressed
|
|
567
|
+
* @cssprop --wcs-chip-selectable-color-disabled - Text color of the chip with 'selectable' mode when disabled
|
|
568
|
+
* @cssprop --wcs-chip-selectable-color-selected - Text color of the chip with 'selectable' mode when selected
|
|
569
|
+
* @cssprop --wcs-chip-selectable-color-selected-hover - Text color of the chip with 'selectable' mode when selected and hovered
|
|
570
|
+
* @cssprop --wcs-chip-selectable-color-selected-pressed - Text color of the chip with 'selectable' mode when selected and pressed
|
|
571
|
+
* @cssprop --wcs-chip-border-radius - Border radius of the chip
|
|
572
|
+
* @cssprop --wcs-chip-border-line-width - Border line width of the chip
|
|
573
|
+
* @cssprop --wcs-chip-selectable-border-color - Border color of the chip with 'selectable' mode in default state
|
|
574
|
+
* @cssprop --wcs-chip-selectable-border-color-hover - Border color of the chip with 'selectable' mode when hovered
|
|
575
|
+
* @cssprop --wcs-chip-selectable-border-color-pressed - Border color of the chip with 'selectable' mode when pressed
|
|
576
|
+
* @cssprop --wcs-chip-selectable-border-color-disabled - Border color of the chip with 'selectable' mode when disabled
|
|
577
|
+
* @cssprop --wcs-chip-selectable-content-gap - Gap between content elements in chip with 'selectable' mode
|
|
578
|
+
* @cssprop --wcs-chip-selectable-focus-outline-color - Focus outline color of the chip with 'selectable' mode
|
|
579
|
+
* @cssprop --wcs-chip-dismissible-content-gap - Gap between content elements in chip with 'dismissible' mode
|
|
580
|
+
* @cssprop --wcs-chip-dismissible-padding-right - Right padding of the chip with 'dismissible' mode
|
|
581
|
+
* @cssprop --wcs-chip-dismissible-button-outline-radius - Outline radius of the button for the chip with 'dismissible' mode
|
|
582
|
+
* @cssprop --wcs-chip-dismissible-primary-focus-outline-color - Focus outline color of the chip with 'dismissible' mode and 'primary' variant
|
|
583
|
+
* @cssprop --wcs-chip-dismissible-primary-border-color - Border color of the chip with 'dismissible' mode and 'primary' variant
|
|
584
|
+
* @cssprop --wcs-chip-dismissible-primary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'primary' variant when disabled
|
|
585
|
+
* @cssprop --wcs-chip-dismissible-primary-color - Text color of the chip with 'dismissible' mode and 'primary' variant
|
|
586
|
+
* @cssprop --wcs-chip-dismissible-primary-color-hover - Text color of the chip with 'dismissible' mode and 'primary' variant when hovered
|
|
587
|
+
* @cssprop --wcs-chip-dismissible-primary-color-pressed - Text color of the chip with 'dismissible' mode and 'primary' variant when pressed
|
|
588
|
+
* @cssprop --wcs-chip-dismissible-primary-color-disabled - Text color of the chip with 'dismissible' mode and 'primary' variant when disabled
|
|
589
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color - Background color of the chip with 'dismissible' mode and 'primary' variant
|
|
590
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color-hover - Background color of the chip with 'dismissible' mode and 'primary' variant when hovered
|
|
591
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color-pressed - Background color of the chip with 'dismissible' mode and 'primary' variant when pressed
|
|
592
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color-disabled - Background color of the chip with 'dismissible' mode and 'primary' variant when disabled
|
|
593
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-focus-outline-color - Button focus outline color of the chip with 'dismissible' mode and 'secondary' variant
|
|
594
|
+
* @cssprop --wcs-chip-dismissible-secondary-border-color - Border color of the chip with 'dismissible' mode and 'secondary' variant
|
|
595
|
+
* @cssprop --wcs-chip-dismissible-secondary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'secondary' variant when disabled
|
|
596
|
+
* @cssprop --wcs-chip-dismissible-secondary-color - Text color of the chip with 'dismissible' mode and 'secondary' variant
|
|
597
|
+
* @cssprop --wcs-chip-dismissible-secondary-color-disabled - Text color of the chip with 'dismissible' mode and 'secondary' variant when disabled
|
|
598
|
+
* @cssprop --wcs-chip-dismissible-secondary-background-color - Background color of the chip with 'dismissible' mode and 'secondary' variant
|
|
599
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color - Button background color of the chip with 'dismissible' mode and 'secondary' variant
|
|
600
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color-hover - Button background color of the chip with 'dismissible' mode and 'secondary' variant when hovered
|
|
601
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color-pressed - Button background color of the chip with 'dismissible' mode and 'secondary' variant when pressed
|
|
602
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color-disabled - Button background color of the chip with 'dismissible' mode and 'secondary' variant when disabled
|
|
603
|
+
*/
|
|
604
|
+
interface WcsChip {
|
|
605
|
+
/**
|
|
606
|
+
* If `true`, the chip is disabled. The chip will not respond to click events and will not emit any events. This property is used in both 'selectable' and 'dismissible' modes.
|
|
607
|
+
*/
|
|
608
|
+
"disabled": boolean;
|
|
609
|
+
/**
|
|
610
|
+
* Text label displayed on the chip.
|
|
611
|
+
*/
|
|
612
|
+
"label": string;
|
|
613
|
+
/**
|
|
614
|
+
* Defines the mode of the chip. Can be 'selectable' or 'dismissible'. - 'selectable': The chip can be selected and emits an event when clicked. - 'dismissible': The chip can be dismissed (removed) and emits an event when the dismiss icon is clicked.
|
|
615
|
+
*/
|
|
616
|
+
"mode": WcsChipMode;
|
|
617
|
+
/**
|
|
618
|
+
* If `true`, the chip is open. This property is used to control the visibility of the chip in the dismissible mode. When the user clicks the dismiss icon, this property automatically becomes `false`, hiding the chip.
|
|
619
|
+
*/
|
|
620
|
+
"open": boolean;
|
|
621
|
+
/**
|
|
622
|
+
* If `true`, the chip is selected. This property is only used in 'selectable' mode.
|
|
623
|
+
*/
|
|
624
|
+
"selected": boolean;
|
|
625
|
+
/**
|
|
626
|
+
* Unique value representing the chip identifier in events.
|
|
627
|
+
*/
|
|
628
|
+
"value": string;
|
|
629
|
+
/**
|
|
630
|
+
* Defines the visual style of the chip for the dismissible mode.
|
|
631
|
+
*/
|
|
632
|
+
"variant": WcsChipVariant;
|
|
633
|
+
}
|
|
539
634
|
/**
|
|
540
635
|
* *Part of communication design system*
|
|
541
636
|
* The com-nav component is a container for navigation links to external or internal pages of the website.
|
|
@@ -1215,6 +1310,9 @@ export namespace Components {
|
|
|
1215
1310
|
}
|
|
1216
1311
|
/**
|
|
1217
1312
|
* The horizontal-stepper is a representation of a user’s progress through a series of discrete steps.
|
|
1313
|
+
* ## Accessibility guidelines 💡
|
|
1314
|
+
* > - The `ariaLabel` property is available for every step to provide a more descriptive label for screen readers.
|
|
1315
|
+
* > - It is **mandatory** in `linear` mode if the step's content is not descriptive enough (e.g., only a number).
|
|
1218
1316
|
* @cssprop --wcs-horizontal-step-text-color-default - Text color of the step by default
|
|
1219
1317
|
* @cssprop --wcs-horizontal-step-text-color-active - Text color of the step when active
|
|
1220
1318
|
* @cssprop --wcs-horizontal-step-text-color-disabled - Text color of step when disabled
|
|
@@ -2484,6 +2582,10 @@ export interface WcsCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
|
2484
2582
|
detail: T;
|
|
2485
2583
|
target: HTMLWcsCheckboxElement;
|
|
2486
2584
|
}
|
|
2585
|
+
export interface WcsChipCustomEvent<T> extends CustomEvent<T> {
|
|
2586
|
+
detail: T;
|
|
2587
|
+
target: HTMLWcsChipElement;
|
|
2588
|
+
}
|
|
2487
2589
|
export interface WcsComNavCategoryCustomEvent<T> extends CustomEvent<T> {
|
|
2488
2590
|
detail: T;
|
|
2489
2591
|
target: HTMLWcsComNavCategoryElement;
|
|
@@ -2991,6 +3093,83 @@ declare global {
|
|
|
2991
3093
|
prototype: HTMLWcsCheckboxElement;
|
|
2992
3094
|
new (): HTMLWcsCheckboxElement;
|
|
2993
3095
|
};
|
|
3096
|
+
interface HTMLWcsChipElementEventMap {
|
|
3097
|
+
"wcsChipSelectChange": { value: string; selected: boolean };
|
|
3098
|
+
"wcsChipDismiss": { value: string };
|
|
3099
|
+
}
|
|
3100
|
+
/**
|
|
3101
|
+
* The chip component is a small, interactive element that can be used to represent an input, filter, or tag.
|
|
3102
|
+
* It can be in one of two modes: 'selectable' or 'dismissible'.
|
|
3103
|
+
* - In 'selectable' mode, the chip can be selected or deselected, and emits an event when clicked.
|
|
3104
|
+
* - In 'dismissible' mode, the chip can be dismissed (removed) by clicking a dismiss icon, and emits an event when the dismiss icon is clicked.
|
|
3105
|
+
* @cssprop --wcs-chip-height - Height of the chip
|
|
3106
|
+
* @cssprop --wcs-chip-font-size - Font size of the chip text
|
|
3107
|
+
* @cssprop --wcs-chip-font-weight - Font weight of the chip text
|
|
3108
|
+
* @cssprop --wcs-chip-focus-outline-border-width - Border width of the chip focus outline
|
|
3109
|
+
* @cssprop --wcs-chip-padding-vertical - Vertical padding (top - bottom) of the chip
|
|
3110
|
+
* @cssprop --wcs-chip-padding-horizontal - Horizontal padding (left - right) of the chip
|
|
3111
|
+
* @cssprop --wcs-chip-padding-horizontal-dismissible - Horizontal padding (left - right) of the chip with 'dismissible' mode
|
|
3112
|
+
* @cssprop --wcs-chip-selectable-background-color - Background color of the chip with 'selectable' mode in default state
|
|
3113
|
+
* @cssprop --wcs-chip-selectable-background-color-pressed - Background color of the chip with 'selectable' mode when pressed
|
|
3114
|
+
* @cssprop --wcs-chip-selectable-background-color-hover - Background color of the chip with 'selectable' mode when hovered
|
|
3115
|
+
* @cssprop --wcs-chip-selectable-background-color-selected - Background color of the chip with 'selectable' mode when selected
|
|
3116
|
+
* @cssprop --wcs-chip-selectable-background-color-selected-hover - Background color of the chip with 'selectable' mode when selected and hovered
|
|
3117
|
+
* @cssprop --wcs-chip-selectable-background-color-selected-pressed - Background color of the chip with 'selectable' mode when selected and pressed
|
|
3118
|
+
* @cssprop --wcs-chip-selectable-background-color-selected-disabled - Background color of the chip with 'selectable' mode when selected and disabled
|
|
3119
|
+
* @cssprop --wcs-chip-selectable-color - Text color of the chip with 'selectable' mode in default state
|
|
3120
|
+
* @cssprop --wcs-chip-selectable-color-hover - Text color of the chip with 'selectable' mode when hovered
|
|
3121
|
+
* @cssprop --wcs-chip-selectable-color-pressed - Text color of the chip with 'selectable' mode when pressed
|
|
3122
|
+
* @cssprop --wcs-chip-selectable-color-disabled - Text color of the chip with 'selectable' mode when disabled
|
|
3123
|
+
* @cssprop --wcs-chip-selectable-color-selected - Text color of the chip with 'selectable' mode when selected
|
|
3124
|
+
* @cssprop --wcs-chip-selectable-color-selected-hover - Text color of the chip with 'selectable' mode when selected and hovered
|
|
3125
|
+
* @cssprop --wcs-chip-selectable-color-selected-pressed - Text color of the chip with 'selectable' mode when selected and pressed
|
|
3126
|
+
* @cssprop --wcs-chip-border-radius - Border radius of the chip
|
|
3127
|
+
* @cssprop --wcs-chip-border-line-width - Border line width of the chip
|
|
3128
|
+
* @cssprop --wcs-chip-selectable-border-color - Border color of the chip with 'selectable' mode in default state
|
|
3129
|
+
* @cssprop --wcs-chip-selectable-border-color-hover - Border color of the chip with 'selectable' mode when hovered
|
|
3130
|
+
* @cssprop --wcs-chip-selectable-border-color-pressed - Border color of the chip with 'selectable' mode when pressed
|
|
3131
|
+
* @cssprop --wcs-chip-selectable-border-color-disabled - Border color of the chip with 'selectable' mode when disabled
|
|
3132
|
+
* @cssprop --wcs-chip-selectable-content-gap - Gap between content elements in chip with 'selectable' mode
|
|
3133
|
+
* @cssprop --wcs-chip-selectable-focus-outline-color - Focus outline color of the chip with 'selectable' mode
|
|
3134
|
+
* @cssprop --wcs-chip-dismissible-content-gap - Gap between content elements in chip with 'dismissible' mode
|
|
3135
|
+
* @cssprop --wcs-chip-dismissible-padding-right - Right padding of the chip with 'dismissible' mode
|
|
3136
|
+
* @cssprop --wcs-chip-dismissible-button-outline-radius - Outline radius of the button for the chip with 'dismissible' mode
|
|
3137
|
+
* @cssprop --wcs-chip-dismissible-primary-focus-outline-color - Focus outline color of the chip with 'dismissible' mode and 'primary' variant
|
|
3138
|
+
* @cssprop --wcs-chip-dismissible-primary-border-color - Border color of the chip with 'dismissible' mode and 'primary' variant
|
|
3139
|
+
* @cssprop --wcs-chip-dismissible-primary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'primary' variant when disabled
|
|
3140
|
+
* @cssprop --wcs-chip-dismissible-primary-color - Text color of the chip with 'dismissible' mode and 'primary' variant
|
|
3141
|
+
* @cssprop --wcs-chip-dismissible-primary-color-hover - Text color of the chip with 'dismissible' mode and 'primary' variant when hovered
|
|
3142
|
+
* @cssprop --wcs-chip-dismissible-primary-color-pressed - Text color of the chip with 'dismissible' mode and 'primary' variant when pressed
|
|
3143
|
+
* @cssprop --wcs-chip-dismissible-primary-color-disabled - Text color of the chip with 'dismissible' mode and 'primary' variant when disabled
|
|
3144
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color - Background color of the chip with 'dismissible' mode and 'primary' variant
|
|
3145
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color-hover - Background color of the chip with 'dismissible' mode and 'primary' variant when hovered
|
|
3146
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color-pressed - Background color of the chip with 'dismissible' mode and 'primary' variant when pressed
|
|
3147
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color-disabled - Background color of the chip with 'dismissible' mode and 'primary' variant when disabled
|
|
3148
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-focus-outline-color - Button focus outline color of the chip with 'dismissible' mode and 'secondary' variant
|
|
3149
|
+
* @cssprop --wcs-chip-dismissible-secondary-border-color - Border color of the chip with 'dismissible' mode and 'secondary' variant
|
|
3150
|
+
* @cssprop --wcs-chip-dismissible-secondary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'secondary' variant when disabled
|
|
3151
|
+
* @cssprop --wcs-chip-dismissible-secondary-color - Text color of the chip with 'dismissible' mode and 'secondary' variant
|
|
3152
|
+
* @cssprop --wcs-chip-dismissible-secondary-color-disabled - Text color of the chip with 'dismissible' mode and 'secondary' variant when disabled
|
|
3153
|
+
* @cssprop --wcs-chip-dismissible-secondary-background-color - Background color of the chip with 'dismissible' mode and 'secondary' variant
|
|
3154
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color - Button background color of the chip with 'dismissible' mode and 'secondary' variant
|
|
3155
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color-hover - Button background color of the chip with 'dismissible' mode and 'secondary' variant when hovered
|
|
3156
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color-pressed - Button background color of the chip with 'dismissible' mode and 'secondary' variant when pressed
|
|
3157
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color-disabled - Button background color of the chip with 'dismissible' mode and 'secondary' variant when disabled
|
|
3158
|
+
*/
|
|
3159
|
+
interface HTMLWcsChipElement extends Components.WcsChip, HTMLStencilElement {
|
|
3160
|
+
addEventListener<K extends keyof HTMLWcsChipElementEventMap>(type: K, listener: (this: HTMLWcsChipElement, ev: WcsChipCustomEvent<HTMLWcsChipElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3161
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3162
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3163
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3164
|
+
removeEventListener<K extends keyof HTMLWcsChipElementEventMap>(type: K, listener: (this: HTMLWcsChipElement, ev: WcsChipCustomEvent<HTMLWcsChipElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
3165
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3166
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3167
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3168
|
+
}
|
|
3169
|
+
var HTMLWcsChipElement: {
|
|
3170
|
+
prototype: HTMLWcsChipElement;
|
|
3171
|
+
new (): HTMLWcsChipElement;
|
|
3172
|
+
};
|
|
2994
3173
|
/**
|
|
2995
3174
|
* *Part of communication design system*
|
|
2996
3175
|
* The com-nav component is a container for navigation links to external or internal pages of the website.
|
|
@@ -3635,6 +3814,9 @@ declare global {
|
|
|
3635
3814
|
}
|
|
3636
3815
|
/**
|
|
3637
3816
|
* The horizontal-stepper is a representation of a user’s progress through a series of discrete steps.
|
|
3817
|
+
* ## Accessibility guidelines 💡
|
|
3818
|
+
* > - The `ariaLabel` property is available for every step to provide a more descriptive label for screen readers.
|
|
3819
|
+
* > - It is **mandatory** in `linear` mode if the step's content is not descriptive enough (e.g., only a number).
|
|
3638
3820
|
* @cssprop --wcs-horizontal-step-text-color-default - Text color of the step by default
|
|
3639
3821
|
* @cssprop --wcs-horizontal-step-text-color-active - Text color of the step when active
|
|
3640
3822
|
* @cssprop --wcs-horizontal-step-text-color-disabled - Text color of step when disabled
|
|
@@ -4536,6 +4718,7 @@ declare global {
|
|
|
4536
4718
|
"wcs-card-header": HTMLWcsCardHeaderElement;
|
|
4537
4719
|
"wcs-card-media": HTMLWcsCardMediaElement;
|
|
4538
4720
|
"wcs-checkbox": HTMLWcsCheckboxElement;
|
|
4721
|
+
"wcs-chip": HTMLWcsChipElement;
|
|
4539
4722
|
"wcs-com-nav": HTMLWcsComNavElement;
|
|
4540
4723
|
"wcs-com-nav-category": HTMLWcsComNavCategoryElement;
|
|
4541
4724
|
"wcs-com-nav-item": HTMLWcsComNavItemElement;
|
|
@@ -4662,6 +4845,9 @@ declare namespace LocalJSX {
|
|
|
4662
4845
|
* Specifies whether the component should highlight when open with primary color. if true, the background color will be the primary color. if false, the background color will be wcs-light.
|
|
4663
4846
|
*/
|
|
4664
4847
|
"highlight"?: boolean;
|
|
4848
|
+
/**
|
|
4849
|
+
* Emitted when the open property changes. Note that this event is stopped from propagating when using the component inside a wcs-accordion as the accordion handles the open state of its accordion-panel children.
|
|
4850
|
+
*/
|
|
4665
4851
|
"onWcsOpenChange"?: (event: WcsAccordionPanelCustomEvent<boolean>) => void;
|
|
4666
4852
|
"open"?: boolean;
|
|
4667
4853
|
}
|
|
@@ -5059,6 +5245,107 @@ declare namespace LocalJSX {
|
|
|
5059
5245
|
* Emitted when the checkbox has focus.
|
|
5060
5246
|
*/
|
|
5061
5247
|
"onWcsFocus"?: (event: WcsCheckboxCustomEvent<FocusEvent>) => void;
|
|
5248
|
+
/**
|
|
5249
|
+
* If `true`, the user must fill in a value before submitting a form.
|
|
5250
|
+
*/
|
|
5251
|
+
"required"?: boolean;
|
|
5252
|
+
}
|
|
5253
|
+
/**
|
|
5254
|
+
* The chip component is a small, interactive element that can be used to represent an input, filter, or tag.
|
|
5255
|
+
* It can be in one of two modes: 'selectable' or 'dismissible'.
|
|
5256
|
+
* - In 'selectable' mode, the chip can be selected or deselected, and emits an event when clicked.
|
|
5257
|
+
* - In 'dismissible' mode, the chip can be dismissed (removed) by clicking a dismiss icon, and emits an event when the dismiss icon is clicked.
|
|
5258
|
+
* @cssprop --wcs-chip-height - Height of the chip
|
|
5259
|
+
* @cssprop --wcs-chip-font-size - Font size of the chip text
|
|
5260
|
+
* @cssprop --wcs-chip-font-weight - Font weight of the chip text
|
|
5261
|
+
* @cssprop --wcs-chip-focus-outline-border-width - Border width of the chip focus outline
|
|
5262
|
+
* @cssprop --wcs-chip-padding-vertical - Vertical padding (top - bottom) of the chip
|
|
5263
|
+
* @cssprop --wcs-chip-padding-horizontal - Horizontal padding (left - right) of the chip
|
|
5264
|
+
* @cssprop --wcs-chip-padding-horizontal-dismissible - Horizontal padding (left - right) of the chip with 'dismissible' mode
|
|
5265
|
+
* @cssprop --wcs-chip-selectable-background-color - Background color of the chip with 'selectable' mode in default state
|
|
5266
|
+
* @cssprop --wcs-chip-selectable-background-color-pressed - Background color of the chip with 'selectable' mode when pressed
|
|
5267
|
+
* @cssprop --wcs-chip-selectable-background-color-hover - Background color of the chip with 'selectable' mode when hovered
|
|
5268
|
+
* @cssprop --wcs-chip-selectable-background-color-selected - Background color of the chip with 'selectable' mode when selected
|
|
5269
|
+
* @cssprop --wcs-chip-selectable-background-color-selected-hover - Background color of the chip with 'selectable' mode when selected and hovered
|
|
5270
|
+
* @cssprop --wcs-chip-selectable-background-color-selected-pressed - Background color of the chip with 'selectable' mode when selected and pressed
|
|
5271
|
+
* @cssprop --wcs-chip-selectable-background-color-selected-disabled - Background color of the chip with 'selectable' mode when selected and disabled
|
|
5272
|
+
* @cssprop --wcs-chip-selectable-color - Text color of the chip with 'selectable' mode in default state
|
|
5273
|
+
* @cssprop --wcs-chip-selectable-color-hover - Text color of the chip with 'selectable' mode when hovered
|
|
5274
|
+
* @cssprop --wcs-chip-selectable-color-pressed - Text color of the chip with 'selectable' mode when pressed
|
|
5275
|
+
* @cssprop --wcs-chip-selectable-color-disabled - Text color of the chip with 'selectable' mode when disabled
|
|
5276
|
+
* @cssprop --wcs-chip-selectable-color-selected - Text color of the chip with 'selectable' mode when selected
|
|
5277
|
+
* @cssprop --wcs-chip-selectable-color-selected-hover - Text color of the chip with 'selectable' mode when selected and hovered
|
|
5278
|
+
* @cssprop --wcs-chip-selectable-color-selected-pressed - Text color of the chip with 'selectable' mode when selected and pressed
|
|
5279
|
+
* @cssprop --wcs-chip-border-radius - Border radius of the chip
|
|
5280
|
+
* @cssprop --wcs-chip-border-line-width - Border line width of the chip
|
|
5281
|
+
* @cssprop --wcs-chip-selectable-border-color - Border color of the chip with 'selectable' mode in default state
|
|
5282
|
+
* @cssprop --wcs-chip-selectable-border-color-hover - Border color of the chip with 'selectable' mode when hovered
|
|
5283
|
+
* @cssprop --wcs-chip-selectable-border-color-pressed - Border color of the chip with 'selectable' mode when pressed
|
|
5284
|
+
* @cssprop --wcs-chip-selectable-border-color-disabled - Border color of the chip with 'selectable' mode when disabled
|
|
5285
|
+
* @cssprop --wcs-chip-selectable-content-gap - Gap between content elements in chip with 'selectable' mode
|
|
5286
|
+
* @cssprop --wcs-chip-selectable-focus-outline-color - Focus outline color of the chip with 'selectable' mode
|
|
5287
|
+
* @cssprop --wcs-chip-dismissible-content-gap - Gap between content elements in chip with 'dismissible' mode
|
|
5288
|
+
* @cssprop --wcs-chip-dismissible-padding-right - Right padding of the chip with 'dismissible' mode
|
|
5289
|
+
* @cssprop --wcs-chip-dismissible-button-outline-radius - Outline radius of the button for the chip with 'dismissible' mode
|
|
5290
|
+
* @cssprop --wcs-chip-dismissible-primary-focus-outline-color - Focus outline color of the chip with 'dismissible' mode and 'primary' variant
|
|
5291
|
+
* @cssprop --wcs-chip-dismissible-primary-border-color - Border color of the chip with 'dismissible' mode and 'primary' variant
|
|
5292
|
+
* @cssprop --wcs-chip-dismissible-primary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'primary' variant when disabled
|
|
5293
|
+
* @cssprop --wcs-chip-dismissible-primary-color - Text color of the chip with 'dismissible' mode and 'primary' variant
|
|
5294
|
+
* @cssprop --wcs-chip-dismissible-primary-color-hover - Text color of the chip with 'dismissible' mode and 'primary' variant when hovered
|
|
5295
|
+
* @cssprop --wcs-chip-dismissible-primary-color-pressed - Text color of the chip with 'dismissible' mode and 'primary' variant when pressed
|
|
5296
|
+
* @cssprop --wcs-chip-dismissible-primary-color-disabled - Text color of the chip with 'dismissible' mode and 'primary' variant when disabled
|
|
5297
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color - Background color of the chip with 'dismissible' mode and 'primary' variant
|
|
5298
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color-hover - Background color of the chip with 'dismissible' mode and 'primary' variant when hovered
|
|
5299
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color-pressed - Background color of the chip with 'dismissible' mode and 'primary' variant when pressed
|
|
5300
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color-disabled - Background color of the chip with 'dismissible' mode and 'primary' variant when disabled
|
|
5301
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-focus-outline-color - Button focus outline color of the chip with 'dismissible' mode and 'secondary' variant
|
|
5302
|
+
* @cssprop --wcs-chip-dismissible-secondary-border-color - Border color of the chip with 'dismissible' mode and 'secondary' variant
|
|
5303
|
+
* @cssprop --wcs-chip-dismissible-secondary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'secondary' variant when disabled
|
|
5304
|
+
* @cssprop --wcs-chip-dismissible-secondary-color - Text color of the chip with 'dismissible' mode and 'secondary' variant
|
|
5305
|
+
* @cssprop --wcs-chip-dismissible-secondary-color-disabled - Text color of the chip with 'dismissible' mode and 'secondary' variant when disabled
|
|
5306
|
+
* @cssprop --wcs-chip-dismissible-secondary-background-color - Background color of the chip with 'dismissible' mode and 'secondary' variant
|
|
5307
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color - Button background color of the chip with 'dismissible' mode and 'secondary' variant
|
|
5308
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color-hover - Button background color of the chip with 'dismissible' mode and 'secondary' variant when hovered
|
|
5309
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color-pressed - Button background color of the chip with 'dismissible' mode and 'secondary' variant when pressed
|
|
5310
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color-disabled - Button background color of the chip with 'dismissible' mode and 'secondary' variant when disabled
|
|
5311
|
+
*/
|
|
5312
|
+
interface WcsChip {
|
|
5313
|
+
/**
|
|
5314
|
+
* If `true`, the chip is disabled. The chip will not respond to click events and will not emit any events. This property is used in both 'selectable' and 'dismissible' modes.
|
|
5315
|
+
*/
|
|
5316
|
+
"disabled"?: boolean;
|
|
5317
|
+
/**
|
|
5318
|
+
* Text label displayed on the chip.
|
|
5319
|
+
*/
|
|
5320
|
+
"label"?: string;
|
|
5321
|
+
/**
|
|
5322
|
+
* Defines the mode of the chip. Can be 'selectable' or 'dismissible'. - 'selectable': The chip can be selected and emits an event when clicked. - 'dismissible': The chip can be dismissed (removed) and emits an event when the dismiss icon is clicked.
|
|
5323
|
+
*/
|
|
5324
|
+
"mode"?: WcsChipMode;
|
|
5325
|
+
/**
|
|
5326
|
+
* Emitted when the dismiss icon is clicked in 'dismissible' mode.
|
|
5327
|
+
*/
|
|
5328
|
+
"onWcsChipDismiss"?: (event: WcsChipCustomEvent<{ value: string }>) => void;
|
|
5329
|
+
/**
|
|
5330
|
+
* Emitted when the chip is clicked in 'selectable' mode.
|
|
5331
|
+
*/
|
|
5332
|
+
"onWcsChipSelectChange"?: (event: WcsChipCustomEvent<{ value: string; selected: boolean }>) => void;
|
|
5333
|
+
/**
|
|
5334
|
+
* If `true`, the chip is open. This property is used to control the visibility of the chip in the dismissible mode. When the user clicks the dismiss icon, this property automatically becomes `false`, hiding the chip.
|
|
5335
|
+
*/
|
|
5336
|
+
"open"?: boolean;
|
|
5337
|
+
/**
|
|
5338
|
+
* If `true`, the chip is selected. This property is only used in 'selectable' mode.
|
|
5339
|
+
*/
|
|
5340
|
+
"selected"?: boolean;
|
|
5341
|
+
/**
|
|
5342
|
+
* Unique value representing the chip identifier in events.
|
|
5343
|
+
*/
|
|
5344
|
+
"value"?: string;
|
|
5345
|
+
/**
|
|
5346
|
+
* Defines the visual style of the chip for the dismissible mode.
|
|
5347
|
+
*/
|
|
5348
|
+
"variant"?: WcsChipVariant;
|
|
5062
5349
|
}
|
|
5063
5350
|
/**
|
|
5064
5351
|
* *Part of communication design system*
|
|
@@ -5751,6 +6038,9 @@ declare namespace LocalJSX {
|
|
|
5751
6038
|
}
|
|
5752
6039
|
/**
|
|
5753
6040
|
* The horizontal-stepper is a representation of a user’s progress through a series of discrete steps.
|
|
6041
|
+
* ## Accessibility guidelines 💡
|
|
6042
|
+
* > - The `ariaLabel` property is available for every step to provide a more descriptive label for screen readers.
|
|
6043
|
+
* > - It is **mandatory** in `linear` mode if the step's content is not descriptive enough (e.g., only a number).
|
|
5754
6044
|
* @cssprop --wcs-horizontal-step-text-color-default - Text color of the step by default
|
|
5755
6045
|
* @cssprop --wcs-horizontal-step-text-color-active - Text color of the step when active
|
|
5756
6046
|
* @cssprop --wcs-horizontal-step-text-color-disabled - Text color of step when disabled
|
|
@@ -7025,6 +7315,7 @@ declare namespace LocalJSX {
|
|
|
7025
7315
|
"wcs-card-header": WcsCardHeader;
|
|
7026
7316
|
"wcs-card-media": WcsCardMedia;
|
|
7027
7317
|
"wcs-checkbox": WcsCheckbox;
|
|
7318
|
+
"wcs-chip": WcsChip;
|
|
7028
7319
|
"wcs-com-nav": WcsComNav;
|
|
7029
7320
|
"wcs-com-nav-category": WcsComNavCategory;
|
|
7030
7321
|
"wcs-com-nav-item": WcsComNavItem;
|
|
@@ -7379,6 +7670,66 @@ declare module "@stencil/core" {
|
|
|
7379
7670
|
* @cssprop --wcs-checkbox-transition-duration - Duration of the transition
|
|
7380
7671
|
*/
|
|
7381
7672
|
"wcs-checkbox": LocalJSX.WcsCheckbox & JSXBase.HTMLAttributes<HTMLWcsCheckboxElement>;
|
|
7673
|
+
/**
|
|
7674
|
+
* The chip component is a small, interactive element that can be used to represent an input, filter, or tag.
|
|
7675
|
+
* It can be in one of two modes: 'selectable' or 'dismissible'.
|
|
7676
|
+
* - In 'selectable' mode, the chip can be selected or deselected, and emits an event when clicked.
|
|
7677
|
+
* - In 'dismissible' mode, the chip can be dismissed (removed) by clicking a dismiss icon, and emits an event when the dismiss icon is clicked.
|
|
7678
|
+
* @cssprop --wcs-chip-height - Height of the chip
|
|
7679
|
+
* @cssprop --wcs-chip-font-size - Font size of the chip text
|
|
7680
|
+
* @cssprop --wcs-chip-font-weight - Font weight of the chip text
|
|
7681
|
+
* @cssprop --wcs-chip-focus-outline-border-width - Border width of the chip focus outline
|
|
7682
|
+
* @cssprop --wcs-chip-padding-vertical - Vertical padding (top - bottom) of the chip
|
|
7683
|
+
* @cssprop --wcs-chip-padding-horizontal - Horizontal padding (left - right) of the chip
|
|
7684
|
+
* @cssprop --wcs-chip-padding-horizontal-dismissible - Horizontal padding (left - right) of the chip with 'dismissible' mode
|
|
7685
|
+
* @cssprop --wcs-chip-selectable-background-color - Background color of the chip with 'selectable' mode in default state
|
|
7686
|
+
* @cssprop --wcs-chip-selectable-background-color-pressed - Background color of the chip with 'selectable' mode when pressed
|
|
7687
|
+
* @cssprop --wcs-chip-selectable-background-color-hover - Background color of the chip with 'selectable' mode when hovered
|
|
7688
|
+
* @cssprop --wcs-chip-selectable-background-color-selected - Background color of the chip with 'selectable' mode when selected
|
|
7689
|
+
* @cssprop --wcs-chip-selectable-background-color-selected-hover - Background color of the chip with 'selectable' mode when selected and hovered
|
|
7690
|
+
* @cssprop --wcs-chip-selectable-background-color-selected-pressed - Background color of the chip with 'selectable' mode when selected and pressed
|
|
7691
|
+
* @cssprop --wcs-chip-selectable-background-color-selected-disabled - Background color of the chip with 'selectable' mode when selected and disabled
|
|
7692
|
+
* @cssprop --wcs-chip-selectable-color - Text color of the chip with 'selectable' mode in default state
|
|
7693
|
+
* @cssprop --wcs-chip-selectable-color-hover - Text color of the chip with 'selectable' mode when hovered
|
|
7694
|
+
* @cssprop --wcs-chip-selectable-color-pressed - Text color of the chip with 'selectable' mode when pressed
|
|
7695
|
+
* @cssprop --wcs-chip-selectable-color-disabled - Text color of the chip with 'selectable' mode when disabled
|
|
7696
|
+
* @cssprop --wcs-chip-selectable-color-selected - Text color of the chip with 'selectable' mode when selected
|
|
7697
|
+
* @cssprop --wcs-chip-selectable-color-selected-hover - Text color of the chip with 'selectable' mode when selected and hovered
|
|
7698
|
+
* @cssprop --wcs-chip-selectable-color-selected-pressed - Text color of the chip with 'selectable' mode when selected and pressed
|
|
7699
|
+
* @cssprop --wcs-chip-border-radius - Border radius of the chip
|
|
7700
|
+
* @cssprop --wcs-chip-border-line-width - Border line width of the chip
|
|
7701
|
+
* @cssprop --wcs-chip-selectable-border-color - Border color of the chip with 'selectable' mode in default state
|
|
7702
|
+
* @cssprop --wcs-chip-selectable-border-color-hover - Border color of the chip with 'selectable' mode when hovered
|
|
7703
|
+
* @cssprop --wcs-chip-selectable-border-color-pressed - Border color of the chip with 'selectable' mode when pressed
|
|
7704
|
+
* @cssprop --wcs-chip-selectable-border-color-disabled - Border color of the chip with 'selectable' mode when disabled
|
|
7705
|
+
* @cssprop --wcs-chip-selectable-content-gap - Gap between content elements in chip with 'selectable' mode
|
|
7706
|
+
* @cssprop --wcs-chip-selectable-focus-outline-color - Focus outline color of the chip with 'selectable' mode
|
|
7707
|
+
* @cssprop --wcs-chip-dismissible-content-gap - Gap between content elements in chip with 'dismissible' mode
|
|
7708
|
+
* @cssprop --wcs-chip-dismissible-padding-right - Right padding of the chip with 'dismissible' mode
|
|
7709
|
+
* @cssprop --wcs-chip-dismissible-button-outline-radius - Outline radius of the button for the chip with 'dismissible' mode
|
|
7710
|
+
* @cssprop --wcs-chip-dismissible-primary-focus-outline-color - Focus outline color of the chip with 'dismissible' mode and 'primary' variant
|
|
7711
|
+
* @cssprop --wcs-chip-dismissible-primary-border-color - Border color of the chip with 'dismissible' mode and 'primary' variant
|
|
7712
|
+
* @cssprop --wcs-chip-dismissible-primary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'primary' variant when disabled
|
|
7713
|
+
* @cssprop --wcs-chip-dismissible-primary-color - Text color of the chip with 'dismissible' mode and 'primary' variant
|
|
7714
|
+
* @cssprop --wcs-chip-dismissible-primary-color-hover - Text color of the chip with 'dismissible' mode and 'primary' variant when hovered
|
|
7715
|
+
* @cssprop --wcs-chip-dismissible-primary-color-pressed - Text color of the chip with 'dismissible' mode and 'primary' variant when pressed
|
|
7716
|
+
* @cssprop --wcs-chip-dismissible-primary-color-disabled - Text color of the chip with 'dismissible' mode and 'primary' variant when disabled
|
|
7717
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color - Background color of the chip with 'dismissible' mode and 'primary' variant
|
|
7718
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color-hover - Background color of the chip with 'dismissible' mode and 'primary' variant when hovered
|
|
7719
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color-pressed - Background color of the chip with 'dismissible' mode and 'primary' variant when pressed
|
|
7720
|
+
* @cssprop --wcs-chip-dismissible-primary-background-color-disabled - Background color of the chip with 'dismissible' mode and 'primary' variant when disabled
|
|
7721
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-focus-outline-color - Button focus outline color of the chip with 'dismissible' mode and 'secondary' variant
|
|
7722
|
+
* @cssprop --wcs-chip-dismissible-secondary-border-color - Border color of the chip with 'dismissible' mode and 'secondary' variant
|
|
7723
|
+
* @cssprop --wcs-chip-dismissible-secondary-border-color-disabled - Border color of the chip with 'dismissible' mode and 'secondary' variant when disabled
|
|
7724
|
+
* @cssprop --wcs-chip-dismissible-secondary-color - Text color of the chip with 'dismissible' mode and 'secondary' variant
|
|
7725
|
+
* @cssprop --wcs-chip-dismissible-secondary-color-disabled - Text color of the chip with 'dismissible' mode and 'secondary' variant when disabled
|
|
7726
|
+
* @cssprop --wcs-chip-dismissible-secondary-background-color - Background color of the chip with 'dismissible' mode and 'secondary' variant
|
|
7727
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color - Button background color of the chip with 'dismissible' mode and 'secondary' variant
|
|
7728
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color-hover - Button background color of the chip with 'dismissible' mode and 'secondary' variant when hovered
|
|
7729
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color-pressed - Button background color of the chip with 'dismissible' mode and 'secondary' variant when pressed
|
|
7730
|
+
* @cssprop --wcs-chip-dismissible-secondary-button-background-color-disabled - Button background color of the chip with 'dismissible' mode and 'secondary' variant when disabled
|
|
7731
|
+
*/
|
|
7732
|
+
"wcs-chip": LocalJSX.WcsChip & JSXBase.HTMLAttributes<HTMLWcsChipElement>;
|
|
7382
7733
|
/**
|
|
7383
7734
|
* *Part of communication design system*
|
|
7384
7735
|
* The com-nav component is a container for navigation links to external or internal pages of the website.
|
|
@@ -7791,6 +8142,9 @@ declare module "@stencil/core" {
|
|
|
7791
8142
|
"wcs-hint": LocalJSX.WcsHint & JSXBase.HTMLAttributes<HTMLWcsHintElement>;
|
|
7792
8143
|
/**
|
|
7793
8144
|
* The horizontal-stepper is a representation of a user’s progress through a series of discrete steps.
|
|
8145
|
+
* ## Accessibility guidelines 💡
|
|
8146
|
+
* > - The `ariaLabel` property is available for every step to provide a more descriptive label for screen readers.
|
|
8147
|
+
* > - It is **mandatory** in `linear` mode if the step's content is not descriptive enough (e.g., only a number).
|
|
7794
8148
|
* @cssprop --wcs-horizontal-step-text-color-default - Text color of the step by default
|
|
7795
8149
|
* @cssprop --wcs-horizontal-step-text-color-active - Text color of the step when active
|
|
7796
8150
|
* @cssprop --wcs-horizontal-step-text-color-disabled - Text color of step when disabled
|
|
@@ -5,3 +5,10 @@ export declare const wcsFocusableElements: string[];
|
|
|
5
5
|
*/
|
|
6
6
|
export declare function isWcsFocusableElement(element: any): boolean;
|
|
7
7
|
export declare function isFocusable(element: any): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Finds the next focusable element after the given startElement.
|
|
10
|
+
* It checks the next siblings of the startElement and returns the first focusable element found.
|
|
11
|
+
* If no focusable element is found, it returns null.
|
|
12
|
+
* @param startElement The element from which to start searching for the next focusable element.
|
|
13
|
+
*/
|
|
14
|
+
export declare function findNextFocusableElement(startElement: HTMLElement): HTMLElement | null;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface CustomMatchers<R = unknown> {
|
|
2
|
+
/**
|
|
3
|
+
* Will check if the event spy received the expected event.
|
|
4
|
+
*/
|
|
5
|
+
toHaveReceivedEvent(): R;
|
|
6
|
+
/**
|
|
7
|
+
* Will check if the event spy received the expected event with the expected detail.
|
|
8
|
+
* @param eventDetail The expected detail of the event.
|
|
9
|
+
*/
|
|
10
|
+
toHaveReceivedEventDetail(eventDetail: any): R;
|
|
11
|
+
/**
|
|
12
|
+
* Will check if the event spy received the expected event at the given index with the expected detail.
|
|
13
|
+
* @param index position of the event in the received events array.
|
|
14
|
+
* @param eventDetail The expected detail of the event.
|
|
15
|
+
*/
|
|
16
|
+
toHaveNthReceivedEventDetail(index: number, eventDetail: any): R;
|
|
17
|
+
/**
|
|
18
|
+
* Will check if the event spy received the expected event with the expected detail on the first received event.
|
|
19
|
+
* @param eventDetail The expected detail of the event.
|
|
20
|
+
*/
|
|
21
|
+
toHaveFirstReceivedEventDetail(eventDetail: any): R;
|
|
22
|
+
/**
|
|
23
|
+
* Will check how many times the event has been received.
|
|
24
|
+
*/
|
|
25
|
+
toHaveReceivedEventTimes(count: number): R;
|
|
26
|
+
}
|
|
27
|
+
declare global {
|
|
28
|
+
namespace PlaywrightTest {
|
|
29
|
+
interface Matchers<R> extends CustomMatchers<R> {
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,f as s,h as t,H as a,g as i}from"./p-32e583ea.js";import{i as n,a as r,s as o}from"./p-52d77e1f.js";import{E as c,I as d,N as l}from"./p-3abf8a42.js";const h=':host{--wcs-breadcrumb-icon-color:var(--wcs-semantic-color-foreground-brand);--wcs-breadcrumb-icon-font-size:0.5rem;--wcs-breadcrumb-gap:var(--wcs-semantic-spacing-base)}nav.wcs-breadcrumb-container slot[name=hidden-items]{display:none}nav.wcs-breadcrumb-container.show-hidden-items slot[name=hidden-items]{display:contents}nav.wcs-breadcrumb-container div[role=list]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:0;list-style:none}nav.wcs-breadcrumb-container div[role=list] ::slotted(wcs-breadcrumb-item){margin-right:var(--wcs-breadcrumb-gap)}nav.wcs-breadcrumb-container div[role=list] ::slotted(wcs-breadcrumb-item:last-child){margin-right:0}nav.wcs-breadcrumb-container div[role=list] .item-not-slotted{display:flex;align-items:center;margin-right:var(--wcs-breadcrumb-gap)}nav.wcs-breadcrumb-container div[role=list] .item-not-slotted wcs-button[size=s]{--wcs-button-min-width:24px;--wcs-button-height:20px;--wcs-button-border-radius:2px;transform:translateY(2px)}nav.wcs-breadcrumb-container div[role=list] .item-not-slotted .item-icon{margin-left:calc(var(--wcs-breadcrumb-gap) - 1px);font-family:"icons";font-size:var(--wcs-breadcrumb-icon-font-size);color:var(--wcs-breadcrumb-icon-color);transform:translateY(1px)}';const m=h;const b=[];const
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,f as s,h as t,H as a,g as i}from"./p-32e583ea.js";import{i as n,a as r,s as o}from"./p-52d77e1f.js";import{E as c,I as d,N as l}from"./p-3abf8a42.js";const h=':host{--wcs-breadcrumb-icon-color:var(--wcs-semantic-color-foreground-brand);--wcs-breadcrumb-icon-font-size:0.5rem;--wcs-breadcrumb-gap:var(--wcs-semantic-spacing-base)}nav.wcs-breadcrumb-container slot[name=hidden-items]{display:none}nav.wcs-breadcrumb-container.show-hidden-items slot[name=hidden-items]{display:contents}nav.wcs-breadcrumb-container div[role=list]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:0;list-style:none}nav.wcs-breadcrumb-container div[role=list] ::slotted(wcs-breadcrumb-item){margin-right:var(--wcs-breadcrumb-gap)}nav.wcs-breadcrumb-container div[role=list] ::slotted(wcs-breadcrumb-item:last-child){margin-right:0}nav.wcs-breadcrumb-container div[role=list] .item-not-slotted{display:flex;align-items:center;margin-right:var(--wcs-breadcrumb-gap)}nav.wcs-breadcrumb-container div[role=list] .item-not-slotted wcs-button[size=s]{--wcs-button-min-width:24px;--wcs-button-height:20px;--wcs-button-border-radius:2px;transform:translateY(2px)}nav.wcs-breadcrumb-container div[role=list] .item-not-slotted .item-icon{margin-left:calc(var(--wcs-breadcrumb-gap) - 1px);font-family:"icons";font-size:var(--wcs-breadcrumb-icon-font-size);color:var(--wcs-breadcrumb-icon-color);transform:translateY(1px)}';const m=h;const b=[];const f=class{constructor(s){e(this,s);this.inheritedAttributes={};this.maxItems=undefined;this.itemsBeforeCollapse=1;this.itemsAfterCollapse=2;this.ariaLabelExpandButton=c;this.showHiddenItems=false}handleCollapsePropsChange(){this.updateCollapsedViewMode()}handleAriaLabelExpandBtnChange(e){var s;(s=this.expandBtnEl)===null||s===void 0?void 0:s.setAriaAttribute("aria-label",e)}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},n(this.el)),r(this.el,b));this.updateCollapsedViewMode()}componentDidLoad(){var e;(e=this.expandBtnEl)===null||e===void 0?void 0:e.setAriaAttribute("aria-label",this.ariaLabelExpandButton)}async setAriaAttribute(e,s){o(this.navEl,e,s)}getBreadcrumbItems(){return Array.from(this.el.querySelectorAll("wcs-breadcrumb-item"))}shouldCollapseItems(){return!!this.maxItems&&this.getBreadcrumbItems().length>this.maxItems&&this.itemsBeforeCollapse+this.itemsAfterCollapse<=this.maxItems}updateCollapsedViewMode(){if(this.shouldCollapseItems()){this.assignSlotNamesForCollapsedViewMode()}else{this.assignSlotNamesForNonCollapsedViewMode()}}assignSlotNamesForCollapsedViewMode(){const e=this.getBreadcrumbItems();const s=this.itemsBeforeCollapse-1;const t=e.length-this.itemsAfterCollapse;e.forEach(((a,i)=>{if(i<=s){a.slot="items-before-expand-btn";a.last=false}else if(i>s&&i<t){a.slot="hidden-items";a.last=false}else{a.slot="items-after-expand-btn";a.last=i===e.length-1}}))}assignSlotNamesForNonCollapsedViewMode(){const e=this.getBreadcrumbItems();e.forEach(((s,t)=>{s.slot="non-collapsed";s.last=t===e.length-1}))}handleSlotChange(){this.updateCollapsedViewMode();this.showHiddenItems=false;s(this)}handleOnExpandBtnClick(){this.showHiddenItems=true;requestAnimationFrame((()=>this.setFocusToFirstHiddenItem()))}setFocusToFirstHiddenItem(){const e=this.getBreadcrumbItems();const s=this.itemsBeforeCollapse;const t=e[s];const a=t.shadowRoot.querySelector("slot");const i=a.assignedElements()[0];i===null||i===void 0?void 0:i.focus()}renderExpandAllButton(){const e=this.itemsAfterCollapse===0;return t("div",{role:"listitem",class:"item-not-slotted"},t("wcs-button",{mode:"clear",shape:"square",size:"s",onClick:this.handleOnExpandBtnClick.bind(this),ref:e=>this.expandBtnEl=e},t("wcs-mat-icon",{icon:"more_horiz"})),!e&&t("span",{class:"item-icon","aria-hidden":"true"},d))}render(){const e=this.shouldCollapseItems()&&!this.showHiddenItems;return t(a,{key:"1707e6c3ee0cc621c75f85f927b543dea1af4342"},t("nav",Object.assign({key:"b326c58b86feed5092f8a6c5d46c3cf2dd06a783",class:`wcs-breadcrumb-container${this.showHiddenItems?" show-hidden-items":""}`,"aria-label":l},this.inheritedAttributes,{ref:e=>this.navEl=e}),t("div",{key:"9a4395f63e0895bca1918d7236a01dd9d0437f26",role:"list"},t("slot",{key:"b74aa1fc77ddfc892f0ba79bceffceab10e49c1f",onSlotchange:this.handleSlotChange.bind(this)}),t("slot",{key:"c616f6281282a7088073ceb131f12f93d1126c8b",name:"non-collapsed"}),t("slot",{key:"0db22f440bc3956219c343e4dac60bfe09581d73",name:"items-before-expand-btn"}),t("slot",{key:"a29809c5122d539d11c1e53e591ed4342c338810",name:"hidden-items"}),e&&this.renderExpandAllButton(),t("slot",{key:"aa906ec3b5805f78136b39e5d56937cdca7a7f38",name:"items-after-expand-btn"}))))}get el(){return i(this)}static get watchers(){return{maxItems:["handleCollapsePropsChange"],itemsBeforeCollapse:["handleCollapsePropsChange"],itemsAfterCollapse:["handleCollapsePropsChange"],ariaLabelExpandButton:["handleAriaLabelExpandBtnChange"]}}};f.style=m;export{f as wcs_breadcrumb};
|
|
2
|
+
//# sourceMappingURL=p-0326f834.entry.js.map
|