@telesign/boreal-web-components 0.1.0-alpha.4 → 0.1.0-alpha.6
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/components-build/bds-avatar.js +1 -1
- package/components-build/bds-badge.js +1 -1
- package/components-build/bds-banner.js +1 -1
- package/components-build/bds-breadcrumb-item.d.ts +11 -0
- package/components-build/bds-breadcrumb-item.js +1 -0
- package/components-build/bds-breadcrumb.d.ts +11 -0
- package/components-build/bds-breadcrumb.js +1 -0
- package/components-build/bds-button-group.d.ts +11 -0
- package/components-build/bds-button-group.js +1 -0
- package/components-build/bds-button.js +1 -1
- package/components-build/bds-checkbox-button.d.ts +11 -0
- package/components-build/bds-checkbox-button.js +1 -0
- package/components-build/bds-checkbox-card.d.ts +11 -0
- package/components-build/bds-checkbox-card.js +1 -0
- package/components-build/bds-checkbox-group.d.ts +11 -0
- package/components-build/bds-checkbox-group.js +1 -0
- package/components-build/bds-checkbox.js +1 -1
- package/components-build/bds-dialog.js +1 -1
- package/components-build/bds-divider.js +1 -1
- package/components-build/bds-flag.js +1 -1
- package/components-build/bds-grid-item.js +1 -1
- package/components-build/bds-grid.js +1 -1
- package/components-build/bds-list-menu-item.js +1 -1
- package/components-build/bds-list-menu.js +1 -1
- package/components-build/bds-popover.js +1 -1
- package/components-build/bds-radio-button.d.ts +11 -0
- package/components-build/bds-radio-button.js +1 -0
- package/components-build/bds-radio-card.d.ts +11 -0
- package/components-build/bds-radio-card.js +1 -0
- package/components-build/bds-radio-group.d.ts +11 -0
- package/components-build/bds-radio-group.js +1 -0
- package/components-build/bds-radio.d.ts +11 -0
- package/components-build/bds-radio.js +1 -0
- package/components-build/bds-select.d.ts +11 -0
- package/components-build/bds-select.js +1 -0
- package/components-build/bds-slider.d.ts +11 -0
- package/components-build/bds-slider.js +1 -0
- package/components-build/bds-spinner.js +1 -1
- package/components-build/bds-status.js +1 -1
- package/components-build/bds-tag.js +1 -1
- package/components-build/bds-text-field.js +1 -1
- package/components-build/bds-toggle.js +1 -1
- package/components-build/bds-tooltip.js +1 -1
- package/components-build/bds-typography.js +1 -1
- package/components-build/index.js +1 -1
- package/components-build/p-B6e9eIHB.js +1 -0
- package/components-build/p-CJBdGD_4.js +1 -0
- package/components-build/p-CPvuMm5C.js +1 -0
- package/components-build/p-DcR7mHFE.js +1 -0
- package/components-build/p-DdOPD9wW.js +1 -0
- package/components-build/p-DfaYciGa.js +1 -0
- package/components-build/p-Dh8DSJs_.js +1 -0
- package/components-build/p-DoNZM78n.js +1 -0
- package/components-build/p-DrkDx75U.js +1 -0
- package/components-build/p-DuBzr05c.js +1 -0
- package/components-build/p-PmjPRW8X.js +1 -0
- package/components-build/p-cgdh1LO-.js +1 -0
- package/{dist/boreal-web-components/p-CaHOghy5.js → components-build/p-fUK0GCeC.js} +1 -1
- package/components-build/p-nxYzL9uu.js +1 -0
- package/components-build/p-yLNcMg2E.js +1 -0
- package/custom-elements.json +5078 -1524
- package/dist/boreal-web-components/boreal-web-components.esm.js +1 -1
- package/dist/boreal-web-components/css/boreal.css +60 -0
- package/dist/boreal-web-components/css/theme-connect.css +15 -0
- package/dist/boreal-web-components/css/theme-engage.css +15 -0
- package/dist/boreal-web-components/css/theme-protect.css +15 -0
- package/dist/boreal-web-components/css/theme-proximus.css +15 -0
- package/dist/boreal-web-components/p-02e53626.entry.js +1 -0
- package/dist/boreal-web-components/p-0357450d.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-e0bf8a6e.entry.js → p-1250ba53.entry.js} +1 -1
- package/dist/boreal-web-components/p-1911b978.entry.js +1 -0
- package/dist/boreal-web-components/{p-2158a7cd.entry.js → p-19f9352d.entry.js} +1 -1
- package/dist/boreal-web-components/p-1mOd23lT.system.js +1 -0
- package/dist/boreal-web-components/{p-52600375.system.entry.js → p-25823f7d.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-2db71382.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-251d35df.system.entry.js → p-365e8e5c.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-367e40f9.entry.js +1 -0
- package/dist/boreal-web-components/p-3946d587.entry.js +1 -0
- package/dist/boreal-web-components/p-44b6fe6c.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-7a4efddd.system.entry.js → p-48712a63.system.entry.js} +1 -1
- package/dist/boreal-web-components/{p-251b3002.entry.js → p-49ea207a.entry.js} +1 -1
- package/dist/boreal-web-components/p-4b028406.entry.js +1 -0
- package/dist/boreal-web-components/p-4b615de8.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-edca16b6.system.entry.js → p-4f431941.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-524421f7.system.entry.js +1 -0
- package/dist/boreal-web-components/p-530c8c7f.entry.js +1 -0
- package/dist/boreal-web-components/p-55aeff0c.system.entry.js +1 -0
- package/dist/boreal-web-components/p-5c8650b3.system.entry.js +1 -0
- package/dist/boreal-web-components/p-5e590291.system.entry.js +1 -0
- package/dist/boreal-web-components/p-5ee0841f.entry.js +1 -0
- package/dist/boreal-web-components/{p-871c9a9f.system.entry.js → p-65923619.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-66ec16d9.entry.js +1 -0
- package/dist/boreal-web-components/{p-127a4134.entry.js → p-714bf70d.entry.js} +1 -1
- package/dist/boreal-web-components/{p-66360e63.entry.js → p-71ed1e1d.entry.js} +1 -1
- package/dist/boreal-web-components/{p-b12d4788.system.entry.js → p-732e98f1.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-7626338e.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-80822731.system.entry.js → p-77658a5b.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-7G4h4DI7.js +1 -0
- package/dist/boreal-web-components/p-800fc096.system.entry.js +1 -0
- package/dist/boreal-web-components/p-824485ad.entry.js +1 -0
- package/dist/boreal-web-components/p-8dfe3a9f.entry.js +1 -0
- package/dist/boreal-web-components/p-90022071.entry.js +1 -0
- package/dist/boreal-web-components/{p-1d1bb9d2.entry.js → p-9d02057d.entry.js} +1 -1
- package/dist/boreal-web-components/p-C-g3hhl_.system.js +1 -0
- package/dist/boreal-web-components/p-C0P3gzq5.system.js +1 -0
- package/dist/boreal-web-components/p-C4HM8wQe.js +1 -0
- package/dist/boreal-web-components/p-CPvuMm5C.js +1 -0
- package/dist/boreal-web-components/p-CRMH6mfq.system.js +1 -0
- package/dist/boreal-web-components/p-CU_dRLdk.system.js +1 -0
- package/dist/boreal-web-components/p-CW4-dkCF.system.js +1 -0
- package/dist/boreal-web-components/p-CcENtewr.js +1 -0
- package/dist/boreal-web-components/{p-BuxZeJbu.system.js → p-DSU8tkVw.system.js} +1 -1
- package/dist/boreal-web-components/p-DfaYciGa.js +1 -0
- package/dist/boreal-web-components/p-Dk9dfU9-.system.js +1 -0
- package/dist/boreal-web-components/p-DlVzZK7o.js +1 -0
- package/dist/boreal-web-components/p-DnIhjwCH.system.js +1 -0
- package/dist/boreal-web-components/p-Dwo1hcd9.js +1 -0
- package/dist/boreal-web-components/p-K7DvMlRo.system.js +1 -0
- package/{components-build/p-CaHOghy5.js → dist/boreal-web-components/p-U9yfbs7i.js} +1 -1
- package/dist/boreal-web-components/p-UEj9YHof.system.js +1 -0
- package/dist/boreal-web-components/p-b54fe67f.system.entry.js +1 -0
- package/dist/boreal-web-components/p-bbcd3a30.system.entry.js +1 -0
- package/dist/boreal-web-components/p-bea25d3d.system.entry.js +1 -0
- package/dist/boreal-web-components/p-bed506d3.entry.js +1 -0
- package/dist/boreal-web-components/p-bfd62034.system.entry.js +1 -0
- package/dist/boreal-web-components/p-c07d6b82.system.entry.js +1 -0
- package/dist/boreal-web-components/p-cc5c359f.entry.js +1 -0
- package/dist/boreal-web-components/p-cgdh1LO-.js +1 -0
- package/dist/boreal-web-components/p-d2b6ae79.entry.js +1 -0
- package/dist/boreal-web-components/{p-695d0830.entry.js → p-dc7d429c.entry.js} +1 -1
- package/dist/boreal-web-components/p-e21b8416.entry.js +1 -0
- package/dist/boreal-web-components/p-e4364a44.system.entry.js +1 -0
- package/dist/boreal-web-components/p-e51407b2.system.entry.js +1 -0
- package/dist/boreal-web-components/p-e8cde179.system.entry.js +1 -0
- package/dist/boreal-web-components/p-eecc3028.system.entry.js +1 -0
- package/dist/boreal-web-components/p-f3bd824d.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-44ceff4e.system.entry.js → p-f65e9d0c.system.entry.js} +1 -1
- package/dist/boreal-web-components/p-f6eabb16.entry.js +1 -0
- package/dist/boreal-web-components/p-f7acf6e5.system.entry.js +1 -0
- package/dist/boreal-web-components/{p-7db870b7.entry.js → p-f9560509.entry.js} +1 -1
- package/dist/boreal-web-components/p-fa128cad.system.entry.js +1 -0
- package/dist/boreal-web-components/p-fab1a01d.entry.js +1 -0
- package/dist/boreal-web-components/{p-fc24d963.entry.js → p-fb9a0e94.entry.js} +1 -1
- package/dist/boreal-web-components/p-fb9ba833.entry.js +1 -0
- package/dist/boreal-web-components/p-fbe0c9f2.entry.js +1 -0
- package/dist/boreal-web-components/p-fbe88555.entry.js +1 -0
- package/dist/boreal-web-components/p-fc1fa966.system.entry.js +1 -0
- package/dist/boreal-web-components/p-fc4ffa0e.entry.js +1 -0
- package/dist/boreal-web-components/p-fef13445.entry.js +1 -0
- package/dist/boreal-web-components/p-iq2UuV7c.js +1 -0
- package/dist/boreal-web-components/p-qGhMe8Hk.js +1 -0
- package/dist/boreal-web-components/p-vzZJGcYF.system.js +1 -1
- package/dist/boreal-web-components/scss/maps/_theme-connect.scss +16 -1
- package/dist/boreal-web-components/scss/maps/_theme-engage.scss +16 -1
- package/dist/boreal-web-components/scss/maps/_theme-protect.scss +16 -1
- package/dist/boreal-web-components/scss/maps/_theme-proximus.scss +16 -1
- package/dist/boreal-web-components/scss/variables/_theme-connect.scss +16 -1
- package/dist/boreal-web-components/scss/variables/_theme-engage.scss +16 -1
- package/dist/boreal-web-components/scss/variables/_theme-protect.scss +16 -1
- package/dist/boreal-web-components/scss/variables/_theme-proximus.scss +16 -1
- package/dist/cjs/KeyboardController-B_g3peyB.js +1067 -0
- package/dist/cjs/Keys-DXn16dlA.js +34 -0
- package/dist/cjs/Logger-DnziItRH.js +51 -0
- package/dist/cjs/{attributes-wIHueigW.js → attributes-CgRFplrN.js} +3 -0
- package/dist/cjs/bds-avatar.cjs.entry.js +2 -2
- package/dist/cjs/bds-badge.cjs.entry.js +1 -1
- package/dist/cjs/bds-banner.cjs.entry.js +2 -2
- package/dist/cjs/bds-breadcrumb-item.cjs.entry.js +106 -0
- package/dist/cjs/bds-breadcrumb.cjs.entry.js +127 -0
- package/dist/cjs/bds-button-group.cjs.entry.js +116 -0
- package/dist/cjs/bds-button.cjs.entry.js +38 -17
- package/dist/cjs/bds-checkbox-button.cjs.entry.js +119 -0
- package/dist/cjs/bds-checkbox-card.cjs.entry.js +135 -0
- package/dist/cjs/bds-checkbox-group.cjs.entry.js +292 -0
- package/dist/cjs/bds-checkbox.cjs.entry.js +67 -29
- package/dist/cjs/bds-dialog.cjs.entry.js +4 -4
- package/dist/cjs/bds-divider.cjs.entry.js +2 -2
- package/dist/cjs/bds-flag.cjs.entry.js +1 -1
- package/dist/cjs/bds-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/bds-grid.cjs.entry.js +1 -1
- package/dist/cjs/bds-list-menu-item.cjs.entry.js +59 -23
- package/dist/cjs/bds-list-menu.cjs.entry.js +126 -22
- package/dist/cjs/bds-popover.cjs.entry.js +15 -6
- package/dist/cjs/bds-radio-button.cjs.entry.js +60 -0
- package/dist/cjs/bds-radio-card.cjs.entry.js +76 -0
- package/dist/cjs/bds-radio-group.cjs.entry.js +291 -0
- package/dist/cjs/bds-radio.cjs.entry.js +60 -0
- package/dist/cjs/bds-select.cjs.entry.js +394 -0
- package/dist/cjs/bds-slider.cjs.entry.js +655 -0
- package/dist/cjs/bds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/bds-status.cjs.entry.js +1 -1
- package/dist/cjs/bds-tag.cjs.entry.js +2 -2
- package/dist/cjs/bds-text-field.cjs.entry.js +15 -9
- package/dist/cjs/bds-toggle.cjs.entry.js +7 -6
- package/dist/cjs/bds-tooltip_2.cjs.entry.js +12 -9
- package/dist/cjs/boreal-web-components.cjs.js +1 -1
- package/dist/cjs/checkbox-form-association-DTEpHXUD.js +43 -0
- package/dist/cjs/coreColors-CQGojc0l.js +10 -0
- package/dist/cjs/{enum-DLblRCkQ.js → enum-DeTWfR0D.js} +3 -3
- package/dist/cjs/form-associated.mixin-BCR6bj29.js +33 -0
- package/dist/cjs/{getOffset-m4hBgyVP.js → getOffset-CsDHFjPW.js} +6 -53
- package/dist/cjs/{form-associated.mixin-DXwvF_vW.js → internals-D8x7GMfR.js} +0 -31
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/orientation-DQAIleEJ.js +8 -0
- package/dist/collection/collection-manifest.json +18 -6
- package/dist/collection/components/actions/bds-button/bds-button.css +55 -55
- package/dist/collection/components/actions/bds-button/bds-button.js +35 -11
- package/dist/collection/components/actions/bds-button/types/enum.js +3 -3
- package/dist/collection/components/actions/bds-button-group/bds-button-group.css +77 -0
- package/dist/collection/components/actions/bds-button-group/bds-button-group.js +264 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.css +27 -1
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.js +283 -51
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu/types/enum.js +4 -0
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.css +30 -11
- package/dist/collection/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.js +65 -7
- package/dist/collection/components/actions/bds-toggle/bds-toggle.css +3 -3
- package/dist/collection/components/actions/bds-toggle/bds-toggle.js +1 -1
- package/dist/collection/components/feedback/bds-badge/bds-badge.js +1 -1
- package/dist/collection/components/feedback/bds-banner/bds-banner.js +1 -1
- package/dist/collection/components/feedback/bds-spinner/bds-spinner.js +1 -1
- package/dist/collection/components/feedback/bds-status/bds-status.js +1 -1
- package/dist/collection/components/feedback/bds-tag/bds-tag.css +6 -6
- package/dist/collection/components/feedback/bds-tag/bds-tag.js +1 -1
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox/bds-checkbox.css +132 -0
- package/dist/collection/components/forms/bds-checkbox/{bds-checkbox.js → bds-checkbox/bds-checkbox.js} +138 -35
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-button/bds-checkbox-button.css +113 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-button/bds-checkbox-button.js +382 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-card/bds-checkbox-card.css +139 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-card/bds-checkbox-card.js +443 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/bds-checkbox-group.css +55 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/bds-checkbox-group.js +648 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/types/enum.js +5 -0
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox-group/types/index.js +3 -0
- package/dist/collection/components/forms/bds-checkbox/utils/checkbox-form-association.js +39 -0
- package/dist/collection/components/forms/bds-checkbox/utils/index.js +1 -0
- package/dist/collection/components/forms/bds-flag/bds-flag.js +1 -1
- package/dist/collection/components/forms/bds-radio/bds-radio/bds-radio.css +121 -0
- package/dist/collection/components/forms/bds-radio/bds-radio/bds-radio.js +238 -0
- package/dist/collection/components/forms/bds-radio/bds-radio/types/IRadio.js +1 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-button/bds-radio-button.css +113 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-button/bds-radio-button.js +238 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-button/types/IRadioButton.js +1 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-card/bds-radio-card.css +156 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-card/bds-radio-card.js +307 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-card/types/IRadioCard.js +1 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-group/bds-radio-group.css +55 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-group/bds-radio-group.js +648 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-group/types/IRadioGroup.js +1 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-group/types/enum.js +5 -0
- package/dist/collection/components/forms/bds-radio/bds-radio-group/types/types.js +1 -0
- package/dist/collection/components/forms/bds-select/bds-select.css +23 -0
- package/dist/collection/components/forms/bds-select/bds-select.js +431 -0
- package/dist/collection/components/forms/bds-select/types/ISelect.js +1 -0
- package/dist/collection/components/forms/bds-slider/bds-slider.css +213 -0
- package/dist/collection/components/forms/bds-slider/bds-slider.js +847 -0
- package/dist/collection/components/forms/bds-slider/helpers/SliderDOMController.js +61 -0
- package/dist/collection/components/forms/bds-slider/helpers/SliderService.js +93 -0
- package/dist/collection/components/forms/bds-slider/helpers/index.js +3 -0
- package/dist/collection/components/forms/bds-slider/helpers/parseValues.js +43 -0
- package/dist/collection/components/forms/bds-slider/types/ChangeDetail.js +1 -0
- package/dist/collection/components/forms/bds-slider/types/ISlider.js +1 -0
- package/dist/collection/components/forms/bds-slider/types/ISliderOptions.js +1 -0
- package/dist/collection/components/forms/bds-slider/types/enum.js +16 -0
- package/dist/collection/components/forms/bds-slider/types/index.js +5 -0
- package/dist/collection/components/forms/bds-slider/types/types.js +1 -0
- package/dist/collection/components/forms/bds-text-field/bds-text-field.css +10 -3
- package/dist/collection/components/forms/bds-text-field/bds-text-field.js +47 -2
- package/dist/collection/components/helpers/{bds-divider.css → bds-divider/bds-divider.css} +12 -4
- package/dist/collection/components/helpers/{bds-divider.js → bds-divider/bds-divider.js} +3 -3
- package/dist/collection/components/helpers/bds-divider/types/IDivider.js +1 -0
- package/dist/collection/components/helpers/bds-divider/types/types.js +1 -0
- package/dist/collection/components/images-icons/bds-avatar/bds-avatar.js +1 -1
- package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/bds-grid.js +3 -3
- package/dist/collection/components/layouts/bds-grid/bds-grid/types/IGrid.js +1 -0
- package/dist/collection/components/layouts/bds-grid/bds-grid/types/types.js +1 -0
- package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/bds-grid-item.js +9 -9
- package/dist/collection/components/layouts/bds-grid/bds-grid-item/types/IGridItem.js +1 -0
- package/dist/collection/components/layouts/bds-grid/bds-grid-item/types/types.js +1 -0
- package/dist/collection/components/navigation/bds-breadcrumb/bds-breadcrumb.css +21 -0
- package/dist/collection/components/navigation/bds-breadcrumb/bds-breadcrumb.js +292 -0
- package/dist/collection/components/navigation/bds-breadcrumb/types/IBreadcrumb.js +1 -0
- package/dist/collection/components/navigation/bds-breadcrumb-item/bds-breadcrumb-item.css +64 -0
- package/dist/collection/components/navigation/bds-breadcrumb-item/bds-breadcrumb-item.js +369 -0
- package/dist/collection/components/navigation/bds-breadcrumb-item/types/IBreadcrumbItem.js +1 -0
- package/dist/collection/components/overlays/bds-dialog/bds-dialog.css +1 -1
- package/dist/collection/components/overlays/bds-dialog/bds-dialog.js +2 -2
- package/dist/collection/components/overlays/bds-popover/bds-popover.js +49 -3
- package/dist/collection/components/overlays/bds-tooltip/bds-tooltip.js +3 -3
- package/dist/collection/components/titles-text/bds-typography/bds-typography.css +5 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.js +30 -47
- package/dist/collection/components/titles-text/bds-typography/utils/bds-typography-utils.js +1 -1
- package/dist/collection/css/boreal.css +60 -0
- package/dist/collection/css/theme-connect.css +15 -0
- package/dist/collection/css/theme-engage.css +15 -0
- package/dist/collection/css/theme-protect.css +15 -0
- package/dist/collection/css/theme-proximus.css +15 -0
- package/dist/collection/mixins/anchored.mixin.js +2 -2
- package/dist/collection/mixins/links.mixin.js +1 -2
- package/dist/collection/mixins/menu-behavior.mixin.js +12 -6
- package/dist/collection/scss/maps/_theme-connect.scss +16 -1
- package/dist/collection/scss/maps/_theme-engage.scss +16 -1
- package/dist/collection/scss/maps/_theme-protect.scss +16 -1
- package/dist/collection/scss/maps/_theme-proximus.scss +16 -1
- package/dist/collection/scss/variables/_theme-connect.scss +16 -1
- package/dist/collection/scss/variables/_theme-engage.scss +16 -1
- package/dist/collection/scss/variables/_theme-protect.scss +16 -1
- package/dist/collection/scss/variables/_theme-proximus.scss +16 -1
- package/dist/collection/types/index.js +2 -1
- package/dist/collection/types/orientation.js +4 -0
- package/dist/collection/utils/a11y/index.js +4 -0
- package/dist/collection/utils/a11y/keyboard/KeyboardController.js +566 -0
- package/dist/collection/utils/a11y/keyboard/_constants.js +30 -0
- package/dist/collection/utils/a11y/keyboard/focus/aria-activedescendant.js +41 -0
- package/dist/collection/utils/a11y/keyboard/focus/resolve.js +48 -0
- package/dist/collection/utils/a11y/keyboard/focus/roving-tabindex.js +55 -0
- package/dist/collection/utils/a11y/keyboard/navigation/grid-navigation.js +194 -0
- package/dist/collection/utils/a11y/keyboard/navigation/linear-navigation.js +137 -0
- package/dist/collection/utils/a11y/keyboard/types/IKeyboardController.js +1 -0
- package/dist/collection/utils/a11y/keyboard/types/index.js +2 -0
- package/dist/collection/utils/a11y/keyboard/types/types.js +1 -0
- package/dist/collection/utils/constants/common/Keys.js +29 -24
- package/dist/collection/utils/dom/elements.js +63 -0
- package/dist/collection/utils/menu/menu-item.utils.js +9 -8
- package/dist/collection/utils/testing/helpers.js +10 -0
- package/dist/css/boreal.css +60 -0
- package/dist/css/theme-connect.css +15 -0
- package/dist/css/theme-engage.css +15 -0
- package/dist/css/theme-protect.css +15 -0
- package/dist/css/theme-proximus.css +15 -0
- package/dist/esm/KeyboardController-DcnXb5F5.js +1064 -0
- package/dist/esm/Keys-7G4h4DI7.js +31 -0
- package/dist/esm/Logger-iq2UuV7c.js +49 -0
- package/dist/esm/{attributes-CaHOghy5.js → attributes-U9yfbs7i.js} +3 -0
- package/dist/esm/bds-avatar.entry.js +2 -2
- package/dist/esm/bds-badge.entry.js +1 -1
- package/dist/esm/bds-banner.entry.js +2 -2
- package/dist/esm/bds-breadcrumb-item.entry.js +104 -0
- package/dist/esm/bds-breadcrumb.entry.js +125 -0
- package/dist/esm/bds-button-group.entry.js +114 -0
- package/dist/esm/bds-button.entry.js +36 -15
- package/dist/esm/bds-checkbox-button.entry.js +117 -0
- package/dist/esm/bds-checkbox-card.entry.js +133 -0
- package/dist/esm/bds-checkbox-group.entry.js +290 -0
- package/dist/esm/bds-checkbox.entry.js +67 -29
- package/dist/esm/bds-dialog.entry.js +4 -4
- package/dist/esm/bds-divider.entry.js +2 -2
- package/dist/esm/bds-flag.entry.js +1 -1
- package/dist/esm/bds-grid-item.entry.js +1 -1
- package/dist/esm/bds-grid.entry.js +1 -1
- package/dist/esm/bds-list-menu-item.entry.js +59 -23
- package/dist/esm/bds-list-menu.entry.js +126 -22
- package/dist/esm/bds-popover.entry.js +15 -6
- package/dist/esm/bds-radio-button.entry.js +58 -0
- package/dist/esm/bds-radio-card.entry.js +74 -0
- package/dist/esm/bds-radio-group.entry.js +289 -0
- package/dist/esm/bds-radio.entry.js +58 -0
- package/dist/esm/bds-select.entry.js +392 -0
- package/dist/esm/bds-slider.entry.js +653 -0
- package/dist/esm/bds-spinner.entry.js +1 -1
- package/dist/esm/bds-status.entry.js +1 -1
- package/dist/esm/bds-tag.entry.js +2 -2
- package/dist/esm/bds-text-field.entry.js +10 -4
- package/dist/esm/bds-toggle.entry.js +5 -4
- package/dist/esm/bds-tooltip_2.entry.js +12 -9
- package/dist/esm/boreal-web-components.js +1 -1
- package/dist/esm/checkbox-form-association-cgdh1LO-.js +41 -0
- package/dist/esm/coreColors-Dwo1hcd9.js +8 -0
- package/dist/esm/{enum-C8mRvnTA.js → enum-DlVzZK7o.js} +4 -4
- package/dist/esm/form-associated.mixin-C4HM8wQe.js +31 -0
- package/dist/esm/{getOffset-DKPjeBHi.js → getOffset-DCLpJBcp.js} +4 -51
- package/dist/esm/{form-associated.mixin-CvK2d92c.js → internals-DfaYciGa.js} +1 -31
- package/dist/esm/loader.js +1 -1
- package/dist/esm/orientation-CPvuMm5C.js +6 -0
- package/dist/esm-es5/KeyboardController-DcnXb5F5.js +1 -0
- package/dist/esm-es5/Keys-7G4h4DI7.js +1 -0
- package/dist/esm-es5/Logger-iq2UuV7c.js +1 -0
- package/dist/esm-es5/{attributes-CaHOghy5.js → attributes-U9yfbs7i.js} +1 -1
- package/dist/esm-es5/bds-avatar.entry.js +1 -1
- package/dist/esm-es5/bds-badge.entry.js +1 -1
- package/dist/esm-es5/bds-banner.entry.js +1 -1
- package/dist/esm-es5/bds-breadcrumb-item.entry.js +1 -0
- package/dist/esm-es5/bds-breadcrumb.entry.js +1 -0
- package/dist/esm-es5/bds-button-group.entry.js +1 -0
- package/dist/esm-es5/bds-button.entry.js +1 -1
- package/dist/esm-es5/bds-checkbox-button.entry.js +1 -0
- package/dist/esm-es5/bds-checkbox-card.entry.js +1 -0
- package/dist/esm-es5/bds-checkbox-group.entry.js +1 -0
- package/dist/esm-es5/bds-checkbox.entry.js +1 -1
- package/dist/esm-es5/bds-dialog.entry.js +1 -1
- package/dist/esm-es5/bds-divider.entry.js +1 -1
- package/dist/esm-es5/bds-flag.entry.js +1 -1
- package/dist/esm-es5/bds-grid-item.entry.js +1 -1
- package/dist/esm-es5/bds-grid.entry.js +1 -1
- package/dist/esm-es5/bds-list-menu-item.entry.js +1 -1
- package/dist/esm-es5/bds-list-menu.entry.js +1 -1
- package/dist/esm-es5/bds-popover.entry.js +1 -1
- package/dist/esm-es5/bds-radio-button.entry.js +1 -0
- package/dist/esm-es5/bds-radio-card.entry.js +1 -0
- package/dist/esm-es5/bds-radio-group.entry.js +1 -0
- package/dist/esm-es5/bds-radio.entry.js +1 -0
- package/dist/esm-es5/bds-select.entry.js +1 -0
- package/dist/esm-es5/bds-slider.entry.js +1 -0
- package/dist/esm-es5/bds-spinner.entry.js +1 -1
- package/dist/esm-es5/bds-status.entry.js +1 -1
- package/dist/esm-es5/bds-tag.entry.js +1 -1
- package/dist/esm-es5/bds-text-field.entry.js +1 -1
- package/dist/esm-es5/bds-toggle.entry.js +1 -1
- package/dist/esm-es5/bds-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/boreal-web-components.js +1 -1
- package/dist/esm-es5/checkbox-form-association-cgdh1LO-.js +1 -0
- package/dist/esm-es5/coreColors-Dwo1hcd9.js +1 -0
- package/dist/esm-es5/enum-DlVzZK7o.js +1 -0
- package/dist/esm-es5/form-associated.mixin-C4HM8wQe.js +1 -0
- package/dist/esm-es5/getOffset-DCLpJBcp.js +1 -0
- package/dist/esm-es5/internals-DfaYciGa.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/orientation-CPvuMm5C.js +1 -0
- package/dist/scss/maps/_theme-connect.scss +16 -1
- package/dist/scss/maps/_theme-engage.scss +16 -1
- package/dist/scss/maps/_theme-protect.scss +16 -1
- package/dist/scss/maps/_theme-proximus.scss +16 -1
- package/dist/scss/variables/_theme-connect.scss +16 -1
- package/dist/scss/variables/_theme-engage.scss +16 -1
- package/dist/scss/variables/_theme-protect.scss +16 -1
- package/dist/scss/variables/_theme-proximus.scss +16 -1
- package/dist/types/components/actions/bds-button/bds-button.d.ts +8 -4
- package/dist/types/components/actions/bds-button/types/enum.d.ts +3 -3
- package/dist/types/components/actions/bds-button-group/bds-button-group.d.ts +40 -0
- package/dist/types/components/actions/bds-button-group/types/IButtonGroup.d.ts +11 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/bds-list-menu.d.ts +32 -15
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/IListMenu.d.ts +17 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/enum.d.ts +5 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu/types/types.d.ts +3 -0
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/bds-list-menu-item.d.ts +10 -1
- package/dist/types/components/actions/bds-list-menu/bds-list-menu-item/types/IListMenuItem.d.ts +2 -0
- package/dist/types/components/actions/bds-toggle/types/IToggle.d.ts +1 -1
- package/dist/types/components/forms/bds-checkbox/{bds-checkbox.d.ts → bds-checkbox/bds-checkbox.d.ts} +24 -9
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-button/bds-checkbox-button.d.ts +68 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-button/types/ICheckboxButton.d.ts +15 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-card/bds-checkbox-card.d.ts +63 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-card/types/ICheckboxCard.d.ts +9 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/bds-checkbox-group.d.ts +86 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/ICheckboxGroup.d.ts +27 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/enum.d.ts +6 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/index.d.ts +4 -0
- package/dist/types/components/forms/bds-checkbox/bds-checkbox-group/types/types.d.ts +4 -0
- package/dist/types/components/forms/bds-checkbox/types/ICheckbox.d.ts +7 -22
- package/dist/types/components/forms/bds-checkbox/utils/checkbox-form-association.d.ts +10 -0
- package/dist/types/components/forms/bds-checkbox/utils/index.d.ts +2 -0
- package/dist/types/components/forms/bds-radio/bds-radio/bds-radio.d.ts +36 -0
- package/dist/types/components/forms/bds-radio/bds-radio/types/IRadio.d.ts +13 -0
- package/dist/types/components/forms/bds-radio/bds-radio-button/bds-radio-button.d.ts +36 -0
- package/dist/types/components/forms/bds-radio/bds-radio-button/types/IRadioButton.d.ts +14 -0
- package/dist/types/components/forms/bds-radio/bds-radio-card/bds-radio-card.d.ts +57 -0
- package/dist/types/components/forms/bds-radio/bds-radio-card/types/IRadioCard.d.ts +14 -0
- package/dist/types/components/forms/bds-radio/bds-radio-group/bds-radio-group.d.ts +85 -0
- package/dist/types/components/forms/bds-radio/bds-radio-group/types/IRadioGroup.d.ts +20 -0
- package/dist/types/components/forms/bds-radio/bds-radio-group/types/enum.d.ts +6 -0
- package/dist/types/components/forms/bds-radio/bds-radio-group/types/types.d.ts +3 -0
- package/dist/types/components/forms/bds-select/bds-select.d.ts +98 -0
- package/dist/types/components/forms/bds-select/types/ISelect.d.ts +6 -0
- package/dist/types/components/forms/bds-slider/bds-slider.d.ts +176 -0
- package/dist/types/components/forms/bds-slider/helpers/SliderDOMController.d.ts +38 -0
- package/dist/types/components/forms/bds-slider/helpers/SliderService.d.ts +44 -0
- package/dist/types/components/forms/bds-slider/helpers/index.d.ts +4 -0
- package/dist/types/components/forms/bds-slider/helpers/parseValues.d.ts +18 -0
- package/dist/types/components/forms/bds-slider/types/ChangeDetail.d.ts +9 -0
- package/dist/types/components/forms/bds-slider/types/ISlider.d.ts +17 -0
- package/dist/types/components/forms/bds-slider/types/ISliderOptions.d.ts +31 -0
- package/dist/types/components/forms/bds-slider/types/enum.d.ts +17 -0
- package/dist/types/components/forms/bds-slider/types/index.d.ts +6 -0
- package/dist/types/components/forms/bds-slider/types/types.d.ts +5 -0
- package/dist/types/components/forms/bds-text-field/bds-text-field.d.ts +4 -0
- package/dist/types/components/navigation/bds-breadcrumb/bds-breadcrumb.d.ts +57 -0
- package/dist/types/components/navigation/bds-breadcrumb/types/IBreadcrumb.d.ts +17 -0
- package/dist/types/components/navigation/bds-breadcrumb-item/bds-breadcrumb-item.d.ts +83 -0
- package/dist/types/components/navigation/bds-breadcrumb-item/types/IBreadcrumbItem.d.ts +20 -0
- package/dist/types/components/overlays/bds-popover/bds-popover.d.ts +4 -0
- package/dist/types/components/titles-text/bds-typography/bds-typography.d.ts +2 -46
- package/dist/types/components/titles-text/bds-typography/types/ITypography.d.ts +1 -0
- package/dist/types/components.d.ts +2187 -450
- package/dist/types/mixins/menu-behavior.mixin.d.ts +5 -1
- package/dist/types/types/form.d.ts +24 -0
- package/dist/types/types/index.d.ts +2 -1
- package/dist/types/types/orientation.d.ts +6 -0
- package/dist/types/utils/a11y/index.d.ts +4 -0
- package/dist/types/utils/a11y/keyboard/KeyboardController.d.ts +321 -0
- package/dist/types/utils/a11y/keyboard/_constants.d.ts +28 -0
- package/dist/types/utils/a11y/keyboard/focus/aria-activedescendant.d.ts +17 -0
- package/dist/types/utils/a11y/keyboard/focus/resolve.d.ts +23 -0
- package/dist/types/utils/a11y/keyboard/focus/roving-tabindex.d.ts +20 -0
- package/dist/types/utils/a11y/keyboard/navigation/grid-navigation.d.ts +9 -0
- package/dist/types/utils/a11y/keyboard/navigation/linear-navigation.d.ts +13 -0
- package/dist/types/utils/a11y/keyboard/types/IKeyboardController.d.ts +125 -0
- package/dist/types/utils/a11y/keyboard/types/index.d.ts +3 -0
- package/dist/types/utils/a11y/keyboard/types/types.d.ts +6 -0
- package/dist/types/utils/constants/common/Keys.d.ts +28 -14
- package/dist/types/utils/dom/elements.d.ts +41 -0
- package/dist/types/utils/menu/menu-item.utils.d.ts +2 -2
- package/dist/types/utils/testing/helpers.d.ts +8 -0
- package/package.json +1 -1
- package/components-build/p-B8n1ru5i.js +0 -1
- package/components-build/p-CGdxFth9.js +0 -1
- package/components-build/p-CrAt6pGl.js +0 -1
- package/components-build/p-DCwT43Kz.js +0 -1
- package/components-build/p-DIY3CDNL.js +0 -1
- package/dist/boreal-web-components/p-0028481c.entry.js +0 -1
- package/dist/boreal-web-components/p-1466de58.system.entry.js +0 -1
- package/dist/boreal-web-components/p-2b8bd1dd.entry.js +0 -1
- package/dist/boreal-web-components/p-32c23246.system.entry.js +0 -1
- package/dist/boreal-web-components/p-3fbcc233.entry.js +0 -1
- package/dist/boreal-web-components/p-401f1aee.system.entry.js +0 -1
- package/dist/boreal-web-components/p-41b48701.system.entry.js +0 -1
- package/dist/boreal-web-components/p-41cac1b8.system.entry.js +0 -1
- package/dist/boreal-web-components/p-627b19a5.system.entry.js +0 -1
- package/dist/boreal-web-components/p-649737e5.entry.js +0 -1
- package/dist/boreal-web-components/p-64cb5825.entry.js +0 -1
- package/dist/boreal-web-components/p-6a99f4c6.system.entry.js +0 -1
- package/dist/boreal-web-components/p-731b88cc.entry.js +0 -1
- package/dist/boreal-web-components/p-74c13bed.system.entry.js +0 -1
- package/dist/boreal-web-components/p-7f7ac40f.entry.js +0 -1
- package/dist/boreal-web-components/p-82d49661.entry.js +0 -1
- package/dist/boreal-web-components/p-83ca193e.entry.js +0 -1
- package/dist/boreal-web-components/p-BQ_zoZa2.js +0 -1
- package/dist/boreal-web-components/p-C8mRvnTA.js +0 -1
- package/dist/boreal-web-components/p-CdKFZYxk.system.js +0 -1
- package/dist/boreal-web-components/p-CtknSula.system.js +0 -1
- package/dist/boreal-web-components/p-CvK2d92c.js +0 -1
- package/dist/boreal-web-components/p-CzYQb3pP.js +0 -1
- package/dist/boreal-web-components/p-DZcx75cy.system.js +0 -1
- package/dist/boreal-web-components/p-Dme-NuTD.system.js +0 -1
- package/dist/boreal-web-components/p-ab5ffa15.system.entry.js +0 -1
- package/dist/boreal-web-components/p-ba2b625a.system.entry.js +0 -1
- package/dist/boreal-web-components/p-bf2ef10b.entry.js +0 -1
- package/dist/boreal-web-components/p-c7aee9f4.system.entry.js +0 -1
- package/dist/cjs/Keys-DbIXSJF2.js +0 -22
- package/dist/collection/components/forms/bds-checkbox/bds-checkbox.css +0 -90
- package/dist/esm/Keys-CzYQb3pP.js +0 -20
- package/dist/esm-es5/Keys-CzYQb3pP.js +0 -1
- package/dist/esm-es5/enum-C8mRvnTA.js +0 -1
- package/dist/esm-es5/form-associated.mixin-CvK2d92c.js +0 -1
- package/dist/esm-es5/getOffset-DKPjeBHi.js +0 -1
- package/dist/types/types/IFormProps.d.ts +0 -25
- /package/dist/collection/components/{helpers/types/IDivider.js → actions/bds-button-group/types/IButtonGroup.js} +0 -0
- /package/dist/collection/components/{helpers/types/types.js → actions/bds-list-menu/bds-list-menu/types/IListMenu.js} +0 -0
- /package/dist/collection/components/{layouts/bds-grid/grid-item → actions/bds-list-menu/bds-list-menu}/types/types.js +0 -0
- /package/dist/collection/components/{layouts/bds-grid/grid-item/types/IGridItem.js → forms/bds-checkbox/bds-checkbox-button/types/ICheckboxButton.js} +0 -0
- /package/dist/collection/components/{layouts/bds-grid/grid/types/IGrid.js → forms/bds-checkbox/bds-checkbox-card/types/ICheckboxCard.js} +0 -0
- /package/dist/collection/components/{layouts/bds-grid/grid/types/types.js → forms/bds-checkbox/bds-checkbox-group/types/ICheckboxGroup.js} +0 -0
- /package/dist/collection/{types/IFormProps.js → components/forms/bds-checkbox/bds-checkbox-group/types/types.js} +0 -0
- /package/dist/collection/components/helpers/{types → bds-divider/types}/enum.js +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/bds-grid.css +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/types/enum.js +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid → bds-grid}/types/index.js +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/bds-grid-item.css +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/enum.js +0 -0
- /package/dist/collection/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/index.js +0 -0
- /package/dist/types/components/helpers/{bds-divider.d.ts → bds-divider/bds-divider.d.ts} +0 -0
- /package/dist/types/components/helpers/{types → bds-divider/types}/IDivider.d.ts +0 -0
- /package/dist/types/components/helpers/{types → bds-divider/types}/enum.d.ts +0 -0
- /package/dist/types/components/helpers/{types → bds-divider/types}/types.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/bds-grid.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/IGrid.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/enum.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/index.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid → bds-grid}/types/types.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/bds-grid-item.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/IGridItem.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/enum.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/index.d.ts +0 -0
- /package/dist/types/components/layouts/bds-grid/{grid-item → bds-grid-item}/types/types.d.ts +0 -0
|
@@ -0,0 +1,847 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { SLIDER_TOOLTIP, SLIDER_TYPE, } from "./types";
|
|
3
|
+
import { formAssociatedMixin } from "../../../mixins/index";
|
|
4
|
+
import { Mixin } from "@stencil/core/internal";
|
|
5
|
+
import { setFormValue } from "../../../utils/index";
|
|
6
|
+
import { parseValues, resolveValues, serializeFormValue } from "./helpers/parseValues";
|
|
7
|
+
import { SliderDOMController, SliderService } from "./helpers";
|
|
8
|
+
/**
|
|
9
|
+
* Slider component for selecting a numeric value or a range of values.
|
|
10
|
+
*
|
|
11
|
+
* @summary An accessible, single or multi-handle range slider built on HTML `<input type="range">`.
|
|
12
|
+
* Supports discrete tick marks, tooltips, disabled state, and N-handle multi-value mode
|
|
13
|
+
* with automatic collision prevention between handles.
|
|
14
|
+
*
|
|
15
|
+
* @property {number} min - Minimum selectable value. Defaults to `0`.
|
|
16
|
+
* @property {number} max - Maximum selectable value. Defaults to `100`.
|
|
17
|
+
* @property {number} step - Step size for each increment/decrement. Defaults to `1`.
|
|
18
|
+
* @property {number[]} value - Current value(s). A single number for one handle;
|
|
19
|
+
* an array for multi-handle mode. Defaults to `0`.
|
|
20
|
+
* @property {boolean} disabled - Disables interaction with the slider. Defaults to `false`.
|
|
21
|
+
* @property {boolean} discrete - Shows tick marks at each step position along the track. Defaults to `false`.
|
|
22
|
+
* @property {string} tooltip - Controls tooltip visibility: `"never"`, or `"focus"`. Defaults to `"focus"`.
|
|
23
|
+
*
|
|
24
|
+
* @method getValues - Returns the current value(s) as `number | number[]`.
|
|
25
|
+
* @method setValues - Programmatically sets the slider value(s).
|
|
26
|
+
*/
|
|
27
|
+
export class BdsSlider extends Mixin(formAssociatedMixin) {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.blockClass = 'bds-slider';
|
|
30
|
+
/** Active input elements, one per handle */
|
|
31
|
+
this.inputEls = [];
|
|
32
|
+
/** Active tooltip elements, one per handle */
|
|
33
|
+
this.tooltipEls = [];
|
|
34
|
+
// ---------------------------------------------------------------------------
|
|
35
|
+
// Props
|
|
36
|
+
// ---------------------------------------------------------------------------
|
|
37
|
+
/** Minimum selectable value. Defaults to `0`. */
|
|
38
|
+
this.min = 0;
|
|
39
|
+
/** Maximum selectable value. Defaults to `100`. */
|
|
40
|
+
this.max = 100;
|
|
41
|
+
/** Slider type that defines the slider behavior. Defaults to `single`. */
|
|
42
|
+
this.type = SLIDER_TYPE.SINGLE;
|
|
43
|
+
/** Label for the slider. Defaults to `""`. */
|
|
44
|
+
this.label = '';
|
|
45
|
+
/**
|
|
46
|
+
* Step size for each increment/decrement.
|
|
47
|
+
* Must be a positive number. Defaults to `1`.
|
|
48
|
+
*/
|
|
49
|
+
this.step = 1;
|
|
50
|
+
/**
|
|
51
|
+
* Shows the min and max values of the slider.
|
|
52
|
+
* Defaults to `false`.
|
|
53
|
+
*/
|
|
54
|
+
this.showLimits = false;
|
|
55
|
+
/**
|
|
56
|
+
* Current value(s) of the slider.
|
|
57
|
+
* Accepts `number`, `number[]`, or a JSON string for HTML vanilla usage.
|
|
58
|
+
* - Single handle: `50` or `"50"`
|
|
59
|
+
* - Multi-handle: `[10, 50, 80]` or `"[10, 50, 80]"`
|
|
60
|
+
* - Defaults to `0`.
|
|
61
|
+
*/
|
|
62
|
+
this.value = [0];
|
|
63
|
+
/** Disables the slider, preventing all user interaction. Defaults to `false`. */
|
|
64
|
+
this.disabled = false;
|
|
65
|
+
/** Name of the form control, submitted as a key in the form data. */
|
|
66
|
+
this.name = '';
|
|
67
|
+
/**
|
|
68
|
+
* JSON string array of handle values that should be individually disabled.
|
|
69
|
+
* Each number must match a value present in the `value` prop.
|
|
70
|
+
* Accepts `number`, `number[]`, or JSON string: `"[5, 30]"`.
|
|
71
|
+
* Defaults to `"[]"`.
|
|
72
|
+
*/
|
|
73
|
+
this.disabledHandlers = '[]';
|
|
74
|
+
/**
|
|
75
|
+
* When `true`, renders discrete tick marks along the track
|
|
76
|
+
* at every step position between `min` and `max`.
|
|
77
|
+
* Defaults to `false`.
|
|
78
|
+
*/
|
|
79
|
+
this.discrete = false;
|
|
80
|
+
/**
|
|
81
|
+
* Controls tooltip visibility on each handle.
|
|
82
|
+
* - `"never"` — tooltip is hidden.
|
|
83
|
+
* - `"focus"` — tooltip appears only when the handle is active/focused.
|
|
84
|
+
* Defa ults to `"focus"`.
|
|
85
|
+
*/
|
|
86
|
+
this.tooltip = SLIDER_TOOLTIP.FOCUS;
|
|
87
|
+
// ---------------------------------------------------------------------------
|
|
88
|
+
// State
|
|
89
|
+
// ---------------------------------------------------------------------------
|
|
90
|
+
/** Internal mirror of `disabled`, kept in sync via `@Watch`. */
|
|
91
|
+
this.isDisabled = false;
|
|
92
|
+
/** Internal mirror of `discrete`, kept in sync via `@Watch`. */
|
|
93
|
+
this.isDiscrete = false;
|
|
94
|
+
/**
|
|
95
|
+
* Internal mirror of `values` normalized to `number[]`.
|
|
96
|
+
* All internal logic reads from here; never from `values` directly.
|
|
97
|
+
* Updated via `parseValues()` whenever `values` prop changes.
|
|
98
|
+
*/
|
|
99
|
+
this.internalValues = [0];
|
|
100
|
+
this.handleClick = (event) => {
|
|
101
|
+
const target = event.target;
|
|
102
|
+
this.bdsClick.emit({ target, value: [...this.internalValues] });
|
|
103
|
+
};
|
|
104
|
+
super();
|
|
105
|
+
}
|
|
106
|
+
// ---------------------------------------------------------------------------
|
|
107
|
+
// Watchers
|
|
108
|
+
// ---------------------------------------------------------------------------
|
|
109
|
+
onDisabledChange(next) {
|
|
110
|
+
this.isDisabled = next;
|
|
111
|
+
this.syncDOMUpdates();
|
|
112
|
+
}
|
|
113
|
+
onDisabledHandlersChange() {
|
|
114
|
+
this.syncDOMUpdates();
|
|
115
|
+
}
|
|
116
|
+
onValueChange(next) {
|
|
117
|
+
this.internalValues = this.resolveValues(next);
|
|
118
|
+
this.syncDOMUpdates();
|
|
119
|
+
}
|
|
120
|
+
onConfigChange() {
|
|
121
|
+
this.isDiscrete = this.discrete;
|
|
122
|
+
this.internalValues = this.resolveValues(this.value);
|
|
123
|
+
this.buildAdapter();
|
|
124
|
+
this.syncDOMUpdates();
|
|
125
|
+
}
|
|
126
|
+
onRangeChange() {
|
|
127
|
+
this.buildAdapter();
|
|
128
|
+
this.syncDOMUpdates();
|
|
129
|
+
}
|
|
130
|
+
// ---------------------------------------------------------------------------
|
|
131
|
+
// Form-associated callbacks
|
|
132
|
+
// ---------------------------------------------------------------------------
|
|
133
|
+
formAssociatedCallback() {
|
|
134
|
+
this.syncFormValue();
|
|
135
|
+
}
|
|
136
|
+
formResetCallback() {
|
|
137
|
+
const initial = this.resolveValues(this.value);
|
|
138
|
+
this.updateValues(initial, false);
|
|
139
|
+
this.syncDOMUpdates();
|
|
140
|
+
this.emitChange(initial);
|
|
141
|
+
}
|
|
142
|
+
formStateRestoreCallback(state, _mode) {
|
|
143
|
+
if (typeof state !== 'string')
|
|
144
|
+
return;
|
|
145
|
+
const parsed = state
|
|
146
|
+
.split(',')
|
|
147
|
+
.map(value => parseFloat(value))
|
|
148
|
+
.filter(value => !Number.isNaN(value));
|
|
149
|
+
if (parsed.length === 0)
|
|
150
|
+
return;
|
|
151
|
+
this.updateValues(parsed, false);
|
|
152
|
+
this.syncDOMUpdates();
|
|
153
|
+
setFormValue(this.internals, state);
|
|
154
|
+
}
|
|
155
|
+
syncFormValue() {
|
|
156
|
+
setFormValue(this.internals, serializeFormValue(this.internalValues));
|
|
157
|
+
}
|
|
158
|
+
// ---------------------------------------------------------------------------
|
|
159
|
+
// Public methods
|
|
160
|
+
// ---------------------------------------------------------------------------
|
|
161
|
+
/**
|
|
162
|
+
* Returns the current value(s) of the slider.
|
|
163
|
+
* - Single-handle → `number`
|
|
164
|
+
* - Multi-handle → `number[]`
|
|
165
|
+
*/
|
|
166
|
+
async getValues() {
|
|
167
|
+
return [...this.internalValues];
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Programmatically sets the slider value(s).
|
|
171
|
+
* @param next - A single `number` or an array of `number[]` matching the number of handles.
|
|
172
|
+
*/
|
|
173
|
+
async setValues(next) {
|
|
174
|
+
const parsed = this.resolveValues(next);
|
|
175
|
+
this.updateValues(parsed, false);
|
|
176
|
+
this.syncDOMUpdates();
|
|
177
|
+
this.syncFormValue();
|
|
178
|
+
this.emitChange(parsed);
|
|
179
|
+
}
|
|
180
|
+
// ---------------------------------------------------------------------------
|
|
181
|
+
// Private — slider lifecycle
|
|
182
|
+
// ---------------------------------------------------------------------------
|
|
183
|
+
buildAdapter() {
|
|
184
|
+
this.service = new SliderService({
|
|
185
|
+
min: Number(this.min),
|
|
186
|
+
max: Number(this.max),
|
|
187
|
+
step: Number(this.step),
|
|
188
|
+
type: this.type,
|
|
189
|
+
value: this.internalValues,
|
|
190
|
+
disabledHandlers: parseValues(this.disabledHandlers, []),
|
|
191
|
+
discrete: this.isDiscrete,
|
|
192
|
+
disabled: this.isDisabled,
|
|
193
|
+
name: String(this.name ?? ''),
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
syncDOMUpdates() {
|
|
197
|
+
this.syncInputsToValues();
|
|
198
|
+
this.updateProgress();
|
|
199
|
+
this.syncTooltips();
|
|
200
|
+
}
|
|
201
|
+
// ---------------------------------------------------------------------------
|
|
202
|
+
// Private — helpers
|
|
203
|
+
// ---------------------------------------------------------------------------
|
|
204
|
+
handleInputEvent(handleIndex, event) {
|
|
205
|
+
const input = event?.target;
|
|
206
|
+
const targetInput = input ?? this.inputEls[handleIndex];
|
|
207
|
+
if (targetInput === undefined)
|
|
208
|
+
return;
|
|
209
|
+
let value = this.service.snapToStep(parseFloat(targetInput.value));
|
|
210
|
+
const nextValues = [...this.internalValues];
|
|
211
|
+
nextValues[handleIndex] = value;
|
|
212
|
+
const corrected = this.service.applyCollision(nextValues, handleIndex);
|
|
213
|
+
value = corrected[handleIndex] ?? value;
|
|
214
|
+
this.internalValues = corrected;
|
|
215
|
+
SliderDOMController.updateInputValue(targetInput, value);
|
|
216
|
+
this.updateProgress();
|
|
217
|
+
this.syncTooltip(handleIndex, value);
|
|
218
|
+
this.syncFormValue();
|
|
219
|
+
}
|
|
220
|
+
handleChangeEvent(handleIndex, event) {
|
|
221
|
+
this.handleInputEvent(handleIndex, event);
|
|
222
|
+
if (this.isDisabled)
|
|
223
|
+
return;
|
|
224
|
+
this.emitChange([...this.internalValues]);
|
|
225
|
+
}
|
|
226
|
+
onHandleFocus(handleIndex) {
|
|
227
|
+
SliderDOMController.addTooltipsStates(this.tooltipEls[handleIndex], this.blockClass);
|
|
228
|
+
}
|
|
229
|
+
onHandleBlur(handleIndex) {
|
|
230
|
+
SliderDOMController.removeTooltipsStates(this.tooltipEls[handleIndex], this.blockClass);
|
|
231
|
+
}
|
|
232
|
+
onHandleInactive(handleIndex) {
|
|
233
|
+
const input = this.inputEls[handleIndex];
|
|
234
|
+
SliderDOMController.removeTooltipsStates(input, this.blockClass);
|
|
235
|
+
input.blur();
|
|
236
|
+
}
|
|
237
|
+
syncInputsToValues() {
|
|
238
|
+
SliderDOMController.syncTooltips(this.internalValues, this.inputEls);
|
|
239
|
+
}
|
|
240
|
+
updateProgress() {
|
|
241
|
+
if (this.connectEl === undefined || this.service === undefined)
|
|
242
|
+
return;
|
|
243
|
+
const segment = this.service.getConnectSegment(this.internalValues);
|
|
244
|
+
SliderDOMController.moveConnect(this.connectEl, segment);
|
|
245
|
+
}
|
|
246
|
+
syncTooltip(handleIndex, value) {
|
|
247
|
+
const tooltip = this.tooltipEls[handleIndex];
|
|
248
|
+
if (tooltip === undefined)
|
|
249
|
+
return;
|
|
250
|
+
tooltip.textContent = String(value);
|
|
251
|
+
tooltip.style.left = `${this.getThumbPosition(value)}px`;
|
|
252
|
+
}
|
|
253
|
+
syncTooltips() {
|
|
254
|
+
this.internalValues.forEach((value, index) => {
|
|
255
|
+
this.syncTooltip(index, value);
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
resolveValues(raw) {
|
|
259
|
+
const service = this.service;
|
|
260
|
+
return resolveValues(raw, this.min, this.max, this.type).map(value => service.clamp(value));
|
|
261
|
+
}
|
|
262
|
+
updateValues(next, shouldEmit = true) {
|
|
263
|
+
this.internalValues = next;
|
|
264
|
+
if (shouldEmit) {
|
|
265
|
+
this.emitChange(next);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
emitChange(values) {
|
|
269
|
+
if (this.isDisabled)
|
|
270
|
+
return;
|
|
271
|
+
const payload = { value: values };
|
|
272
|
+
this.bdsChange.emit(payload);
|
|
273
|
+
this.valueChange.emit(values);
|
|
274
|
+
this.syncFormValue();
|
|
275
|
+
}
|
|
276
|
+
isHandleDisabled(value) {
|
|
277
|
+
const disabledValues = parseValues(this.disabledHandlers, []);
|
|
278
|
+
return this.isDisabled || disabledValues.includes(value);
|
|
279
|
+
}
|
|
280
|
+
getPipPositions() {
|
|
281
|
+
if (this.service === undefined)
|
|
282
|
+
return [];
|
|
283
|
+
return this.service.getPipPositions();
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Returns the CSS modifier class map for the slider component.
|
|
287
|
+
*
|
|
288
|
+
* Includes visual state modifiers such as disabled,
|
|
289
|
+
* discrete mode, and tooltip behavior.
|
|
290
|
+
*/
|
|
291
|
+
get classMap() {
|
|
292
|
+
const blockClass = 'bds-slider';
|
|
293
|
+
return {
|
|
294
|
+
[blockClass]: true,
|
|
295
|
+
[`${blockClass}--disabled`]: this.isDisabled,
|
|
296
|
+
[`${blockClass}--discrete`]: this.isDiscrete,
|
|
297
|
+
[`${blockClass}--label`]: Boolean(this.label.trim()),
|
|
298
|
+
[`${blockClass}--tooltip`]: Boolean(this.tooltip) && this.tooltip !== SLIDER_TOOLTIP.NEVER && this.isDisabled === false,
|
|
299
|
+
[`${blockClass}--tooltip-never`]: this.tooltip === SLIDER_TOOLTIP.NEVER,
|
|
300
|
+
[`${blockClass}--tooltip-focus`]: this.tooltip === SLIDER_TOOLTIP.FOCUS,
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
// ---------------------------------------------------------------------------
|
|
304
|
+
// Private — Render helpers
|
|
305
|
+
// ---------------------------------------------------------------------------
|
|
306
|
+
getThumbPosition(value) {
|
|
307
|
+
if (this.trackEl === undefined || this.service === undefined)
|
|
308
|
+
return 0;
|
|
309
|
+
const trackWidth = this.trackEl.getBoundingClientRect().width;
|
|
310
|
+
const thumbSize = parseFloat(getComputedStyle(this.el).getPropertyValue('--handle-size')) || 16;
|
|
311
|
+
return this.service.getThumbCSSPosition(value, trackWidth, thumbSize);
|
|
312
|
+
}
|
|
313
|
+
getThumbCSSPosition(percent) {
|
|
314
|
+
return SliderDOMController.getThumbCSSPosition(percent);
|
|
315
|
+
}
|
|
316
|
+
renderInput(handleIndex, value) {
|
|
317
|
+
const isDisabled = this.isHandleDisabled(value);
|
|
318
|
+
return (h("input", { class: `${this.blockClass}__input`, type: "range", min: this.min, max: this.max, step: this.step, value: value, disabled: isDisabled, "data-handle": handleIndex, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": value, "aria-disabled": isDisabled ? 'true' : undefined, "aria-describedby": `bds-slider-tooltip-${handleIndex}`, onInput: event => this.handleInputEvent(handleIndex, event), onChange: event => this.handleChangeEvent(handleIndex, event), onFocus: () => this.onHandleFocus(handleIndex), onBlur: () => this.onHandleBlur(handleIndex), onPointerUp: () => this.onHandleInactive(handleIndex), ref: el => {
|
|
319
|
+
if (el !== undefined) {
|
|
320
|
+
this.inputEls[handleIndex] = el;
|
|
321
|
+
}
|
|
322
|
+
} }));
|
|
323
|
+
}
|
|
324
|
+
renderMinMax() {
|
|
325
|
+
if (this.showLimits === false)
|
|
326
|
+
return null;
|
|
327
|
+
return (h("div", { class: `${this.blockClass}__limits` }, h("bds-typography", { variant: "helper" }, this.min), h("bds-typography", { variant: "helper" }, this.max)));
|
|
328
|
+
}
|
|
329
|
+
handleTrackClick(event) {
|
|
330
|
+
if (this.isDisabled || this.trackEl === undefined)
|
|
331
|
+
return;
|
|
332
|
+
const target = event.target;
|
|
333
|
+
if (target.classList.contains(`${this.blockClass}__input`))
|
|
334
|
+
return;
|
|
335
|
+
const rect = this.trackEl.getBoundingClientRect();
|
|
336
|
+
const percent = Math.min(Math.max((event.clientX - rect.left) / rect.width, 0), 1);
|
|
337
|
+
const rawValue = Number(this.min) + percent * (Number(this.max) - Number(this.min));
|
|
338
|
+
const value = this.service.snapToStep(rawValue);
|
|
339
|
+
const nextValues = [...this.internalValues];
|
|
340
|
+
if (this.type === SLIDER_TYPE.SINGLE) {
|
|
341
|
+
if (this.isHandleDisabled(nextValues[0]))
|
|
342
|
+
return;
|
|
343
|
+
nextValues[0] = value;
|
|
344
|
+
this.internalValues = nextValues;
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
const [minValue, maxValue] = nextValues;
|
|
348
|
+
const distanceToMin = Math.abs(value - minValue);
|
|
349
|
+
const distanceToMax = Math.abs(value - maxValue);
|
|
350
|
+
const targetHandle = distanceToMin <= distanceToMax ? 0 : 1;
|
|
351
|
+
if (this.isHandleDisabled(nextValues[targetHandle]))
|
|
352
|
+
return;
|
|
353
|
+
nextValues[targetHandle] = value;
|
|
354
|
+
this.internalValues = this.service.applyCollision(nextValues, targetHandle);
|
|
355
|
+
}
|
|
356
|
+
this.syncDOMUpdates();
|
|
357
|
+
this.emitChange([...this.internalValues]);
|
|
358
|
+
}
|
|
359
|
+
renderTooltip(handleIndex, value) {
|
|
360
|
+
if (this.tooltip === SLIDER_TOOLTIP.NEVER)
|
|
361
|
+
return null;
|
|
362
|
+
return (h("div", { id: `bds-slider-tooltip-${handleIndex}`, class: {
|
|
363
|
+
[`${this.blockClass}__tooltip`]: true,
|
|
364
|
+
[`${this.blockClass}__tooltip--${this.tooltip}`]: true,
|
|
365
|
+
}, role: "tooltip", onClick: event => {
|
|
366
|
+
event.stopPropagation();
|
|
367
|
+
}, style: {
|
|
368
|
+
left: `${this.service?.toPercent(value) ?? 0}%`,
|
|
369
|
+
}, ref: el => {
|
|
370
|
+
if (el !== undefined) {
|
|
371
|
+
this.tooltipEls[handleIndex] = el;
|
|
372
|
+
}
|
|
373
|
+
} }, value));
|
|
374
|
+
}
|
|
375
|
+
renderPips() {
|
|
376
|
+
if (!this.isDiscrete)
|
|
377
|
+
return null;
|
|
378
|
+
return (h("div", { class: `${this.blockClass}__pips` }, this.getPipPositions().map((percent, index) => (h("div", { key: `pip-${index}`, class: `${this.blockClass}__pip`, style: { left: this.getThumbCSSPosition(percent) } })))));
|
|
379
|
+
}
|
|
380
|
+
renderLabel() {
|
|
381
|
+
if (this.label.trim() === '' || this.label === undefined)
|
|
382
|
+
return null;
|
|
383
|
+
return (h("bds-typography", { class: `${this.blockClass}__label`, htmlFor: this.el.id, variant: "label" }, this.label));
|
|
384
|
+
}
|
|
385
|
+
// ---------------------------------------------------------------------------
|
|
386
|
+
// Lifecycle
|
|
387
|
+
// ---------------------------------------------------------------------------
|
|
388
|
+
componentWillLoad() {
|
|
389
|
+
this.isDisabled = this.disabled;
|
|
390
|
+
this.isDiscrete = this.discrete;
|
|
391
|
+
this.buildAdapter();
|
|
392
|
+
this.internalValues = this.resolveValues(this.value);
|
|
393
|
+
}
|
|
394
|
+
componentDidLoad() {
|
|
395
|
+
this.syncDOMUpdates();
|
|
396
|
+
}
|
|
397
|
+
componentDidUpdate() {
|
|
398
|
+
this.syncDOMUpdates();
|
|
399
|
+
}
|
|
400
|
+
disconnectedCallback() {
|
|
401
|
+
this.inputEls = [];
|
|
402
|
+
this.tooltipEls = [];
|
|
403
|
+
}
|
|
404
|
+
// ---------------------------------------------------------------------------
|
|
405
|
+
// Render
|
|
406
|
+
// ---------------------------------------------------------------------------
|
|
407
|
+
render() {
|
|
408
|
+
return (h(Host, { key: 'd883f67c2dfc80f8b97f2d7394b99ad6c30798fa', class: this.classMap, "aria-disabled": this.isDisabled ? 'true' : undefined, onClick: this.handleClick }, this.renderLabel(), h("div", { key: '2704c76fbc751029ca89519950dfb90c3294d5e7', class: `${this.blockClass}__wrapper`, onClick: event => this.handleTrackClick(event) }, h("div", { key: 'db67ea023a4f200069e68e02281539378e9e39db', class: `${this.blockClass}__track-base`, ref: el => {
|
|
409
|
+
if (el !== undefined)
|
|
410
|
+
this.trackEl = el;
|
|
411
|
+
} }), h("div", { key: '02163060bb531de138aae3ad1a4e7f221e7c127f', class: `${this.blockClass}__connect`, ref: el => {
|
|
412
|
+
if (el !== undefined)
|
|
413
|
+
this.connectEl = el;
|
|
414
|
+
} }), this.renderPips(), this.internalValues.map((value, index) => this.renderInput(index, value)), this.internalValues.map((value, index) => this.renderTooltip(index, value))), this.renderMinMax()));
|
|
415
|
+
}
|
|
416
|
+
static get is() { return "bds-slider"; }
|
|
417
|
+
static get formAssociated() { return true; }
|
|
418
|
+
static get originalStyleUrls() {
|
|
419
|
+
return {
|
|
420
|
+
"$": ["bds-slider.scss"]
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
static get styleUrls() {
|
|
424
|
+
return {
|
|
425
|
+
"$": ["bds-slider.css"]
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
static get properties() {
|
|
429
|
+
return {
|
|
430
|
+
"min": {
|
|
431
|
+
"type": "number",
|
|
432
|
+
"mutable": false,
|
|
433
|
+
"complexType": {
|
|
434
|
+
"original": "number",
|
|
435
|
+
"resolved": "number",
|
|
436
|
+
"references": {}
|
|
437
|
+
},
|
|
438
|
+
"required": false,
|
|
439
|
+
"optional": false,
|
|
440
|
+
"docs": {
|
|
441
|
+
"tags": [],
|
|
442
|
+
"text": "Minimum selectable value. Defaults to `0`."
|
|
443
|
+
},
|
|
444
|
+
"getter": false,
|
|
445
|
+
"setter": false,
|
|
446
|
+
"reflect": true,
|
|
447
|
+
"attribute": "min",
|
|
448
|
+
"defaultValue": "0"
|
|
449
|
+
},
|
|
450
|
+
"max": {
|
|
451
|
+
"type": "number",
|
|
452
|
+
"mutable": false,
|
|
453
|
+
"complexType": {
|
|
454
|
+
"original": "number",
|
|
455
|
+
"resolved": "number",
|
|
456
|
+
"references": {}
|
|
457
|
+
},
|
|
458
|
+
"required": false,
|
|
459
|
+
"optional": false,
|
|
460
|
+
"docs": {
|
|
461
|
+
"tags": [],
|
|
462
|
+
"text": "Maximum selectable value. Defaults to `100`."
|
|
463
|
+
},
|
|
464
|
+
"getter": false,
|
|
465
|
+
"setter": false,
|
|
466
|
+
"reflect": true,
|
|
467
|
+
"attribute": "max",
|
|
468
|
+
"defaultValue": "100"
|
|
469
|
+
},
|
|
470
|
+
"type": {
|
|
471
|
+
"type": "string",
|
|
472
|
+
"mutable": false,
|
|
473
|
+
"complexType": {
|
|
474
|
+
"original": "SliderType",
|
|
475
|
+
"resolved": "\"range\" | \"single\"",
|
|
476
|
+
"references": {
|
|
477
|
+
"SliderType": {
|
|
478
|
+
"location": "import",
|
|
479
|
+
"path": "./types",
|
|
480
|
+
"id": "src/components/forms/bds-slider/types/index.ts::SliderType",
|
|
481
|
+
"referenceLocation": "SliderType"
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"required": false,
|
|
486
|
+
"optional": false,
|
|
487
|
+
"docs": {
|
|
488
|
+
"tags": [],
|
|
489
|
+
"text": "Slider type that defines the slider behavior. Defaults to `single`."
|
|
490
|
+
},
|
|
491
|
+
"getter": false,
|
|
492
|
+
"setter": false,
|
|
493
|
+
"reflect": true,
|
|
494
|
+
"attribute": "type",
|
|
495
|
+
"defaultValue": "SLIDER_TYPE.SINGLE"
|
|
496
|
+
},
|
|
497
|
+
"label": {
|
|
498
|
+
"type": "string",
|
|
499
|
+
"mutable": false,
|
|
500
|
+
"complexType": {
|
|
501
|
+
"original": "string",
|
|
502
|
+
"resolved": "string",
|
|
503
|
+
"references": {}
|
|
504
|
+
},
|
|
505
|
+
"required": false,
|
|
506
|
+
"optional": false,
|
|
507
|
+
"docs": {
|
|
508
|
+
"tags": [],
|
|
509
|
+
"text": "Label for the slider. Defaults to `\"\"`."
|
|
510
|
+
},
|
|
511
|
+
"getter": false,
|
|
512
|
+
"setter": false,
|
|
513
|
+
"reflect": true,
|
|
514
|
+
"attribute": "label",
|
|
515
|
+
"defaultValue": "''"
|
|
516
|
+
},
|
|
517
|
+
"step": {
|
|
518
|
+
"type": "number",
|
|
519
|
+
"mutable": false,
|
|
520
|
+
"complexType": {
|
|
521
|
+
"original": "number",
|
|
522
|
+
"resolved": "number",
|
|
523
|
+
"references": {}
|
|
524
|
+
},
|
|
525
|
+
"required": false,
|
|
526
|
+
"optional": false,
|
|
527
|
+
"docs": {
|
|
528
|
+
"tags": [],
|
|
529
|
+
"text": "Step size for each increment/decrement.\nMust be a positive number. Defaults to `1`."
|
|
530
|
+
},
|
|
531
|
+
"getter": false,
|
|
532
|
+
"setter": false,
|
|
533
|
+
"reflect": true,
|
|
534
|
+
"attribute": "step",
|
|
535
|
+
"defaultValue": "1"
|
|
536
|
+
},
|
|
537
|
+
"showLimits": {
|
|
538
|
+
"type": "boolean",
|
|
539
|
+
"mutable": false,
|
|
540
|
+
"complexType": {
|
|
541
|
+
"original": "boolean",
|
|
542
|
+
"resolved": "boolean",
|
|
543
|
+
"references": {}
|
|
544
|
+
},
|
|
545
|
+
"required": false,
|
|
546
|
+
"optional": false,
|
|
547
|
+
"docs": {
|
|
548
|
+
"tags": [],
|
|
549
|
+
"text": "Shows the min and max values of the slider.\nDefaults to `false`."
|
|
550
|
+
},
|
|
551
|
+
"getter": false,
|
|
552
|
+
"setter": false,
|
|
553
|
+
"reflect": true,
|
|
554
|
+
"attribute": "show-limits",
|
|
555
|
+
"defaultValue": "false"
|
|
556
|
+
},
|
|
557
|
+
"value": {
|
|
558
|
+
"type": "string",
|
|
559
|
+
"mutable": false,
|
|
560
|
+
"complexType": {
|
|
561
|
+
"original": "SliderRawValue",
|
|
562
|
+
"resolved": "number[] | string",
|
|
563
|
+
"references": {
|
|
564
|
+
"SliderRawValue": {
|
|
565
|
+
"location": "import",
|
|
566
|
+
"path": "./types",
|
|
567
|
+
"id": "src/components/forms/bds-slider/types/index.ts::SliderRawValue",
|
|
568
|
+
"referenceLocation": "SliderRawValue"
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
"required": false,
|
|
573
|
+
"optional": false,
|
|
574
|
+
"docs": {
|
|
575
|
+
"tags": [],
|
|
576
|
+
"text": "Current value(s) of the slider.\nAccepts `number`, `number[]`, or a JSON string for HTML vanilla usage.\n- Single handle: `50` or `\"50\"`\n- Multi-handle: `[10, 50, 80]` or `\"[10, 50, 80]\"`\n- Defaults to `0`."
|
|
577
|
+
},
|
|
578
|
+
"getter": false,
|
|
579
|
+
"setter": false,
|
|
580
|
+
"reflect": false,
|
|
581
|
+
"attribute": "value",
|
|
582
|
+
"defaultValue": "[0]"
|
|
583
|
+
},
|
|
584
|
+
"disabled": {
|
|
585
|
+
"type": "boolean",
|
|
586
|
+
"mutable": false,
|
|
587
|
+
"complexType": {
|
|
588
|
+
"original": "boolean",
|
|
589
|
+
"resolved": "boolean",
|
|
590
|
+
"references": {}
|
|
591
|
+
},
|
|
592
|
+
"required": false,
|
|
593
|
+
"optional": false,
|
|
594
|
+
"docs": {
|
|
595
|
+
"tags": [],
|
|
596
|
+
"text": "Disables the slider, preventing all user interaction. Defaults to `false`."
|
|
597
|
+
},
|
|
598
|
+
"getter": false,
|
|
599
|
+
"setter": false,
|
|
600
|
+
"reflect": true,
|
|
601
|
+
"attribute": "disabled",
|
|
602
|
+
"defaultValue": "false"
|
|
603
|
+
},
|
|
604
|
+
"name": {
|
|
605
|
+
"type": "string",
|
|
606
|
+
"mutable": false,
|
|
607
|
+
"complexType": {
|
|
608
|
+
"original": "string",
|
|
609
|
+
"resolved": "string",
|
|
610
|
+
"references": {}
|
|
611
|
+
},
|
|
612
|
+
"required": false,
|
|
613
|
+
"optional": false,
|
|
614
|
+
"docs": {
|
|
615
|
+
"tags": [],
|
|
616
|
+
"text": "Name of the form control, submitted as a key in the form data."
|
|
617
|
+
},
|
|
618
|
+
"getter": false,
|
|
619
|
+
"setter": false,
|
|
620
|
+
"reflect": true,
|
|
621
|
+
"attribute": "name",
|
|
622
|
+
"defaultValue": "''"
|
|
623
|
+
},
|
|
624
|
+
"disabledHandlers": {
|
|
625
|
+
"type": "string",
|
|
626
|
+
"mutable": false,
|
|
627
|
+
"complexType": {
|
|
628
|
+
"original": "SliderRawValue",
|
|
629
|
+
"resolved": "number[] | string",
|
|
630
|
+
"references": {
|
|
631
|
+
"SliderRawValue": {
|
|
632
|
+
"location": "import",
|
|
633
|
+
"path": "./types",
|
|
634
|
+
"id": "src/components/forms/bds-slider/types/index.ts::SliderRawValue",
|
|
635
|
+
"referenceLocation": "SliderRawValue"
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
"required": false,
|
|
640
|
+
"optional": false,
|
|
641
|
+
"docs": {
|
|
642
|
+
"tags": [],
|
|
643
|
+
"text": "JSON string array of handle values that should be individually disabled.\nEach number must match a value present in the `value` prop.\nAccepts `number`, `number[]`, or JSON string: `\"[5, 30]\"`.\nDefaults to `\"[]\"`."
|
|
644
|
+
},
|
|
645
|
+
"getter": false,
|
|
646
|
+
"setter": false,
|
|
647
|
+
"reflect": true,
|
|
648
|
+
"attribute": "disabled-handlers",
|
|
649
|
+
"defaultValue": "'[]'"
|
|
650
|
+
},
|
|
651
|
+
"discrete": {
|
|
652
|
+
"type": "boolean",
|
|
653
|
+
"mutable": false,
|
|
654
|
+
"complexType": {
|
|
655
|
+
"original": "boolean",
|
|
656
|
+
"resolved": "boolean",
|
|
657
|
+
"references": {}
|
|
658
|
+
},
|
|
659
|
+
"required": false,
|
|
660
|
+
"optional": false,
|
|
661
|
+
"docs": {
|
|
662
|
+
"tags": [],
|
|
663
|
+
"text": "When `true`, renders discrete tick marks along the track\nat every step position between `min` and `max`.\nDefaults to `false`."
|
|
664
|
+
},
|
|
665
|
+
"getter": false,
|
|
666
|
+
"setter": false,
|
|
667
|
+
"reflect": true,
|
|
668
|
+
"attribute": "discrete",
|
|
669
|
+
"defaultValue": "false"
|
|
670
|
+
},
|
|
671
|
+
"tooltip": {
|
|
672
|
+
"type": "string",
|
|
673
|
+
"mutable": false,
|
|
674
|
+
"complexType": {
|
|
675
|
+
"original": "SliderTooltipType",
|
|
676
|
+
"resolved": "\"focus\" | \"never\"",
|
|
677
|
+
"references": {
|
|
678
|
+
"SliderTooltipType": {
|
|
679
|
+
"location": "import",
|
|
680
|
+
"path": "./types",
|
|
681
|
+
"id": "src/components/forms/bds-slider/types/index.ts::SliderTooltipType",
|
|
682
|
+
"referenceLocation": "SliderTooltipType"
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
"required": false,
|
|
687
|
+
"optional": false,
|
|
688
|
+
"docs": {
|
|
689
|
+
"tags": [],
|
|
690
|
+
"text": "Controls tooltip visibility on each handle.\n- `\"never\"` \u2014 tooltip is hidden.\n- `\"focus\"` \u2014 tooltip appears only when the handle is active/focused.\nDefa ults to `\"focus\"`."
|
|
691
|
+
},
|
|
692
|
+
"getter": false,
|
|
693
|
+
"setter": false,
|
|
694
|
+
"reflect": true,
|
|
695
|
+
"attribute": "tooltip",
|
|
696
|
+
"defaultValue": "SLIDER_TOOLTIP.FOCUS"
|
|
697
|
+
}
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
static get states() {
|
|
701
|
+
return {
|
|
702
|
+
"isDisabled": {},
|
|
703
|
+
"isDiscrete": {},
|
|
704
|
+
"internalValues": {}
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
static get events() {
|
|
708
|
+
return [{
|
|
709
|
+
"method": "bdsChange",
|
|
710
|
+
"name": "bdsChange",
|
|
711
|
+
"bubbles": true,
|
|
712
|
+
"cancelable": true,
|
|
713
|
+
"composed": true,
|
|
714
|
+
"docs": {
|
|
715
|
+
"tags": [],
|
|
716
|
+
"text": "Emitted whenever the slider value(s) change due to user interaction.\nPayload: `{ value: number }` for single handle, `{ value: number[] }` for multi-handle."
|
|
717
|
+
},
|
|
718
|
+
"complexType": {
|
|
719
|
+
"original": "SliderChangeDetail",
|
|
720
|
+
"resolved": "SliderChangeDetail",
|
|
721
|
+
"references": {
|
|
722
|
+
"SliderChangeDetail": {
|
|
723
|
+
"location": "import",
|
|
724
|
+
"path": "./types",
|
|
725
|
+
"id": "src/components/forms/bds-slider/types/index.ts::SliderChangeDetail",
|
|
726
|
+
"referenceLocation": "SliderChangeDetail"
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}, {
|
|
731
|
+
"method": "valueChange",
|
|
732
|
+
"name": "valueChange",
|
|
733
|
+
"bubbles": true,
|
|
734
|
+
"cancelable": true,
|
|
735
|
+
"composed": true,
|
|
736
|
+
"docs": {
|
|
737
|
+
"tags": [],
|
|
738
|
+
"text": "Native-style alias of `bdsChange`. Emitted simultaneously.\nPayload: `{ value: number[] }` for multi-handle."
|
|
739
|
+
},
|
|
740
|
+
"complexType": {
|
|
741
|
+
"original": "number[]",
|
|
742
|
+
"resolved": "number[]",
|
|
743
|
+
"references": {}
|
|
744
|
+
}
|
|
745
|
+
}, {
|
|
746
|
+
"method": "bdsClick",
|
|
747
|
+
"name": "bdsClick",
|
|
748
|
+
"bubbles": true,
|
|
749
|
+
"cancelable": true,
|
|
750
|
+
"composed": true,
|
|
751
|
+
"docs": {
|
|
752
|
+
"tags": [],
|
|
753
|
+
"text": "Emitted when the user clicks on the slider.\nPayload: `{ target: HTMLElement }` and `{ value: number[] }` for multi-handle."
|
|
754
|
+
},
|
|
755
|
+
"complexType": {
|
|
756
|
+
"original": "{ target: HTMLElement; value: number[] }",
|
|
757
|
+
"resolved": "{ target: HTMLElement; value: number[]; }",
|
|
758
|
+
"references": {
|
|
759
|
+
"HTMLElement": {
|
|
760
|
+
"location": "global",
|
|
761
|
+
"id": "global::HTMLElement"
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
}];
|
|
766
|
+
}
|
|
767
|
+
static get methods() {
|
|
768
|
+
return {
|
|
769
|
+
"getValues": {
|
|
770
|
+
"complexType": {
|
|
771
|
+
"signature": "() => Promise<number[]>",
|
|
772
|
+
"parameters": [],
|
|
773
|
+
"references": {
|
|
774
|
+
"Promise": {
|
|
775
|
+
"location": "global",
|
|
776
|
+
"id": "global::Promise"
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
"return": "Promise<number[]>"
|
|
780
|
+
},
|
|
781
|
+
"docs": {
|
|
782
|
+
"text": "Returns the current value(s) of the slider.\n- Single-handle \u2192 `number`\n- Multi-handle \u2192 `number[]`",
|
|
783
|
+
"tags": []
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
"setValues": {
|
|
787
|
+
"complexType": {
|
|
788
|
+
"signature": "(next: SliderRawValue) => Promise<void>",
|
|
789
|
+
"parameters": [{
|
|
790
|
+
"name": "next",
|
|
791
|
+
"type": "string | number[]",
|
|
792
|
+
"docs": "- A single `number` or an array of `number[]` matching the number of handles."
|
|
793
|
+
}],
|
|
794
|
+
"references": {
|
|
795
|
+
"Promise": {
|
|
796
|
+
"location": "global",
|
|
797
|
+
"id": "global::Promise"
|
|
798
|
+
},
|
|
799
|
+
"SliderRawValue": {
|
|
800
|
+
"location": "import",
|
|
801
|
+
"path": "./types",
|
|
802
|
+
"id": "src/components/forms/bds-slider/types/index.ts::SliderRawValue",
|
|
803
|
+
"referenceLocation": "SliderRawValue"
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
"return": "Promise<void>"
|
|
807
|
+
},
|
|
808
|
+
"docs": {
|
|
809
|
+
"text": "Programmatically sets the slider value(s).",
|
|
810
|
+
"tags": [{
|
|
811
|
+
"name": "param",
|
|
812
|
+
"text": "next - A single `number` or an array of `number[]` matching the number of handles."
|
|
813
|
+
}]
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
static get elementRef() { return "el"; }
|
|
819
|
+
static get watchers() {
|
|
820
|
+
return [{
|
|
821
|
+
"propName": "disabled",
|
|
822
|
+
"methodName": "onDisabledChange"
|
|
823
|
+
}, {
|
|
824
|
+
"propName": "disabledHandlers",
|
|
825
|
+
"methodName": "onDisabledHandlersChange"
|
|
826
|
+
}, {
|
|
827
|
+
"propName": "value",
|
|
828
|
+
"methodName": "onValueChange"
|
|
829
|
+
}, {
|
|
830
|
+
"propName": "type",
|
|
831
|
+
"methodName": "onConfigChange"
|
|
832
|
+
}, {
|
|
833
|
+
"propName": "discrete",
|
|
834
|
+
"methodName": "onConfigChange"
|
|
835
|
+
}, {
|
|
836
|
+
"propName": "min",
|
|
837
|
+
"methodName": "onRangeChange"
|
|
838
|
+
}, {
|
|
839
|
+
"propName": "max",
|
|
840
|
+
"methodName": "onRangeChange"
|
|
841
|
+
}, {
|
|
842
|
+
"propName": "step",
|
|
843
|
+
"methodName": "onRangeChange"
|
|
844
|
+
}];
|
|
845
|
+
}
|
|
846
|
+
static get attachInternalsMemberName() { return "internals"; }
|
|
847
|
+
}
|