@baloise/ds-core 20.0.0-next.6 → 20.0.0-next.7
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/all.d.ts +2 -0
- package/components/all.js +3 -0
- package/components/ds-accordion.js +1 -1
- package/components/ds-badge.js +1 -1
- package/components/ds-button.js +1 -1
- package/components/ds-card-content.js +1 -1
- package/components/ds-card-title.js +1 -1
- package/components/ds-card.js +1 -1
- package/components/ds-carousel.js +1 -1
- package/components/ds-checkbox-group.js +1 -1
- package/components/ds-checkbox.js +1 -1
- package/components/ds-close.js +1 -1
- package/components/ds-data-item.js +1 -1
- package/components/ds-date.js +1 -1
- package/components/ds-drawer.js +1 -1
- package/components/ds-file-upload.js +1 -1
- package/components/ds-footer.js +1 -1
- package/components/ds-heading.js +1 -1
- package/components/ds-hint.js +1 -1
- package/components/ds-input-slider.d.ts +11 -0
- package/components/ds-input-slider.js +4 -0
- package/components/ds-input.js +1 -1
- package/components/ds-item.js +1 -1
- package/components/ds-label.js +1 -1
- package/components/ds-list.js +1 -1
- package/components/ds-logo.js +1 -1
- package/components/ds-modal-body.js +1 -1
- package/components/ds-modal-header.js +1 -1
- package/components/ds-modal.js +1 -1
- package/components/ds-navbar.js +1 -1
- package/components/ds-notification.js +1 -1
- package/components/ds-number-input.js +1 -1
- package/components/ds-pagination.js +1 -1
- package/components/ds-popup.js +1 -1
- package/components/ds-progress-bar.js +1 -1
- package/components/ds-radio-group.js +1 -1
- package/components/ds-radio.js +1 -1
- package/components/ds-segment-item.js +1 -1
- package/components/ds-segment.js +1 -1
- package/components/ds-select-optgroup.js +1 -1
- package/components/ds-select-option.js +1 -1
- package/components/ds-select.js +1 -1
- package/components/ds-shape.js +1 -1
- package/components/ds-snackbar.js +1 -1
- package/components/ds-spinner.js +1 -1
- package/components/ds-stack.js +1 -1
- package/components/ds-step-panel.js +1 -1
- package/components/ds-tab-panel.js +1 -1
- package/components/ds-tabs.js +1 -1
- package/components/ds-tag-group.js +1 -1
- package/components/ds-tag.js +1 -1
- package/components/ds-text.js +1 -1
- package/components/ds-textarea.js +1 -1
- package/components/ds-toast.js +1 -1
- package/components/ds-toggle.js +1 -1
- package/components/ds-tooltip.js +1 -1
- package/components/index.js +1 -1
- package/components/p--EKmxaBS.js +4 -0
- package/components/{p-BfXZJ1Fe.js → p-ABj0eATe.js} +1 -1
- package/components/{p-BU0dY8pq.js → p-BwwAKEvn.js} +1 -1
- package/components/{p-B1gnrQ9b.js → p-CWDuQL1i.js} +1 -1
- package/components/{p-bGV2P6rT.js → p-D5zw5ezD.js} +1 -1
- package/components/{p-CjIxf5zy.js → p-DSeYzuO7.js} +1 -1
- package/components/{p-Ctnm_MBD.js → p-DY0y8uLL.js} +1 -1
- package/components/{p-DokkRjWC.js → p-VsWv65bD.js} +1 -1
- package/components/p-gz0Nxl39.js +4 -0
- package/components/{p-CYWn3X22.js → p-qaSW94OG.js} +1 -1
- package/components/{p-Btdh3fq7.js → p-u5aa74vh.js} +1 -1
- package/dist/cjs/{_getTag-B468r9bu.js → _getTag-DxZgmSPS.js} +1 -1
- package/dist/cjs/{array-CioNm_V1.js → array-CYn4ALBt.js} +10 -9
- package/dist/cjs/{breakpoints.decorator-C-Qm21UK.js → breakpoints.decorator-DY5iYsA5.js} +1 -1
- package/dist/cjs/{breakpoints.subject-XNcGwhzh.js → breakpoints.subject-CzhLlIwN.js} +3 -3
- package/dist/cjs/{config.decorator-ThGLtT-3.js → config.decorator-C64wi-MA.js} +1 -1
- package/dist/cjs/{config.utils-MhZvq4Qm.js → config.utils-BhWbrVRz.js} +1 -1
- package/dist/cjs/{create-validator-decorator-BIgFqrMJ.js → create-validator-decorator-Ctd288ve.js} +1 -1
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{device-BnjBOLnP.js → device-CIliLOe9.js} +1 -1
- package/dist/cjs/ds-accordion.cjs.entry.js +9 -9
- package/dist/cjs/ds-alert-container.cjs.entry.js +6 -6
- package/dist/cjs/ds-app.cjs.entry.js +6 -6
- package/dist/cjs/ds-badge.cjs.entry.js +7 -7
- package/dist/cjs/ds-button-group.cjs.entry.js +6 -6
- package/dist/cjs/ds-button_2.cjs.entry.js +9 -9
- package/dist/cjs/ds-card-actions.cjs.entry.js +4 -4
- package/dist/cjs/ds-card-content.cjs.entry.js +3 -3
- package/dist/cjs/ds-card-header.cjs.entry.js +5 -5
- package/dist/cjs/ds-card-subtitle.cjs.entry.js +6 -6
- package/dist/cjs/ds-card-title.cjs.entry.js +6 -6
- package/dist/cjs/ds-card.cjs.entry.js +14 -13
- package/dist/cjs/ds-carousel-item.cjs.entry.js +6 -6
- package/dist/cjs/ds-carousel.cjs.entry.js +8 -8
- package/dist/cjs/ds-checkbox-group.cjs.entry.js +34 -16
- package/dist/cjs/ds-checkbox.cjs.entry.js +19 -10
- package/dist/cjs/ds-content_2.cjs.entry.js +8 -8
- package/dist/cjs/ds-data-item.cjs.entry.js +6 -6
- package/dist/cjs/ds-data-label.cjs.entry.js +4 -4
- package/dist/cjs/ds-data-value.cjs.entry.js +2 -2
- package/dist/cjs/ds-data.cjs.entry.js +4 -4
- package/dist/cjs/ds-date.cjs.entry.js +10 -10
- package/dist/cjs/ds-divider_2.cjs.entry.js +14 -14
- package/dist/cjs/ds-drawer_2.cjs.entry.js +10 -10
- package/dist/cjs/ds-file-upload.cjs.entry.js +13 -12
- package/dist/cjs/ds-footer.cjs.entry.js +7 -7
- package/dist/cjs/ds-heading.cjs.entry.js +7 -7
- package/dist/cjs/ds-hint-text.cjs.entry.js +2 -2
- package/dist/cjs/ds-hint-title.cjs.entry.js +2 -2
- package/dist/cjs/ds-hint.cjs.entry.js +11 -11
- package/dist/cjs/ds-icon_2.cjs.entry.js +14 -13
- package/dist/cjs/ds-input-slider.cjs.entry.js +2885 -0
- package/dist/cjs/ds-input.cjs.entry.js +10 -10
- package/dist/cjs/ds-item.cjs.entry.js +6 -6
- package/dist/cjs/ds-label.cjs.entry.js +11 -11
- package/dist/cjs/ds-list.cjs.entry.js +5 -5
- package/dist/cjs/ds-modal-body.cjs.entry.js +3 -3
- package/dist/cjs/ds-modal-header.cjs.entry.js +3 -3
- package/dist/cjs/ds-modal.cjs.entry.js +9 -9
- package/dist/cjs/ds-navbar.cjs.entry.js +17 -17
- package/dist/cjs/ds-notification.cjs.entry.js +11 -11
- package/dist/cjs/ds-number-input.cjs.entry.js +22 -117
- package/dist/cjs/ds-pagination.cjs.entry.js +17 -17
- package/dist/cjs/ds-progress-bar.cjs.entry.js +14 -14
- package/dist/cjs/ds-radio-group.cjs.entry.js +29 -12
- package/dist/cjs/ds-radio.cjs.entry.js +19 -10
- package/dist/cjs/ds-segment-item.cjs.entry.js +5 -5
- package/dist/cjs/ds-segment.cjs.entry.js +13 -13
- package/dist/cjs/ds-select-optgroup.cjs.entry.js +5 -5
- package/dist/cjs/ds-select-option.cjs.entry.js +5 -5
- package/dist/cjs/ds-select.cjs.entry.js +11 -11
- package/dist/cjs/ds-shape.cjs.entry.js +5 -5
- package/dist/cjs/ds-snackbar.cjs.entry.js +12 -12
- package/dist/cjs/ds-step-panel.cjs.entry.js +6 -6
- package/dist/cjs/ds-step.cjs.entry.js +5 -5
- package/dist/cjs/ds-steps.cjs.entry.js +6 -6
- package/dist/cjs/ds-tab-panel.cjs.entry.js +6 -6
- package/dist/cjs/ds-tab.cjs.entry.js +5 -5
- package/dist/cjs/ds-tabs.cjs.entry.js +12 -12
- package/dist/cjs/ds-tag-group.cjs.entry.js +3 -3
- package/dist/cjs/ds-tag.cjs.entry.js +8 -8
- package/dist/cjs/ds-text.cjs.entry.js +10 -10
- package/dist/cjs/ds-textarea.cjs.entry.js +10 -10
- package/dist/cjs/ds-toast.cjs.entry.js +11 -11
- package/dist/cjs/ds-toggle.cjs.entry.js +7 -7
- package/dist/cjs/ds-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/{field.util-L-DkeMVk.js → field.util-g9nhtuZH.js} +1 -1
- package/dist/cjs/{focus-D3VVgpM7.js → focus-BUszBnbl.js} +1 -1
- package/dist/cjs/{form-control-CtMcJUuC.js → form-control-B4Qf8fg-.js} +1 -1
- package/dist/cjs/{has-value-DK0oRqXI.js → has-value-rj502MLA.js} +1 -1
- package/dist/cjs/{index-sC3JnTlJ.js → index-CqInh7Vc.js} +6 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/isArray-DvQst6zQ.js +42 -0
- package/dist/cjs/isNaN-DOSPWDkt.js +106 -0
- package/dist/cjs/{isObjectLike-h-ta_ikf.js → isObjectLike-BNz6hnAu.js} +0 -37
- package/dist/cjs/{listener-BwB_xent.js → listener-1PZJDuOW.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{one-of-BZGRIMtQ.js → one-of-BotLfpAZ.js} +1 -1
- package/dist/cjs/{required-COz3Unzu.js → required-BAhZ8oRM.js} +1 -1
- package/dist/cjs/{resize.decorator-DWM_fQgv.js → resize.decorator-Sqefy8ta.js} +2 -2
- package/dist/cjs/{scroll-CUuEh4xd.js → scroll--5tnvpG1.js} +1 -1
- package/dist/cjs/{tslib.es6-CxyosZMg.js → tslib.es6-BIB10hMZ.js} +1 -1
- package/dist/cjs/{type-hmc4CJcO.js → type-Br_NbeTX.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion/accordion.host.css +1 -1
- package/dist/collection/components/alert/snackbar/snackbar.host.css +1 -1
- package/dist/collection/components/alert/toast/toast.host.css +1 -1
- package/dist/collection/components/badge/badge.host.css +1 -1
- package/dist/collection/components/card/card-content/card-content.host.css +1 -1
- package/dist/collection/components/card/card.host.css +1 -1
- package/dist/collection/components/card/card.js +10 -9
- package/dist/collection/components/checkbox/checkbox-group/checkbox-group.js +40 -3
- package/dist/collection/components/checkbox/checkbox.host.css +1 -1
- package/dist/collection/components/checkbox/checkbox.js +31 -2
- package/dist/collection/components/checkbox/test/checkbox.visual.play.js +3 -0
- package/dist/collection/components/heading/heading.host.css +1 -1
- package/dist/collection/components/input-slider/input-slider.host.css +1 -0
- package/dist/collection/components/input-slider/input-slider.interfaces.js +4 -0
- package/dist/collection/components/input-slider/input-slider.js +961 -0
- package/dist/collection/components/input-slider/input-slider.picker.js +124 -0
- package/dist/collection/components/input-slider/input-slider.utils.js +32 -0
- package/dist/collection/components/input-slider/test/input-slider.a11y.play.js +36 -0
- package/dist/collection/components/input-slider/test/input-slider.component.play.js +87 -0
- package/dist/collection/components/input-slider/test/input-slider.visual.play.js +27 -0
- package/dist/collection/components/label/label.host.css +1 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/list/item/item.host.css +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/logo/logo.js +2 -2
- package/dist/collection/components/modal/modal-body/modal-body.js +1 -1
- package/dist/collection/components/modal/modal-header/modal-header.js +1 -1
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/navbar/navbar.js +3 -3
- package/dist/collection/components/notification/notification.host.css +1 -1
- package/dist/collection/components/notification/notification.js +3 -3
- package/dist/collection/components/number-input/number-input.js +1 -1
- package/dist/collection/components/pagination/pagination.js +5 -5
- package/dist/collection/components/popup/popup.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +2 -2
- package/dist/collection/components/radio/radio-group/radio-group.js +40 -3
- package/dist/collection/components/radio/radio.host.css +1 -1
- package/dist/collection/components/radio/radio.js +31 -2
- package/dist/collection/components/radio/test/radio.visual.play.js +3 -0
- package/dist/collection/components/segment/segment/segment.js +3 -3
- package/dist/collection/components/segment/segment-item.js +1 -1
- package/dist/collection/components/select/select-optgroup.js +1 -1
- package/dist/collection/components/select/select-option.js +1 -1
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/shape/shape.js +1 -1
- package/dist/collection/components/spinner/spinner.js +2 -2
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/steps/step-panel/step-panel.js +1 -1
- package/dist/collection/components/tabs/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/tabs/tabs/tabs.js +4 -4
- package/dist/collection/components/tag/tag-group/tag-group.js +1 -1
- package/dist/collection/components/tag/tag.js +2 -2
- package/dist/collection/components/text/text.host.css +1 -1
- package/dist/collection/components/text/text.js +3 -3
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/global/constants/tags.constant.js +1 -0
- package/dist/collection/global/constants/version.constant.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-afd8bbe699.entry.js → p-00e6b1b780.entry.js} +1 -1
- package/dist/design-system/{p-774b89ed0b.entry.js → p-0bf3d4d939.entry.js} +1 -1
- package/dist/design-system/{p-dcb749efc7.entry.js → p-0ea6cdd218.entry.js} +1 -1
- package/dist/design-system/{p-9f2dd0b55b.entry.js → p-0f2a87fa39.entry.js} +1 -1
- package/dist/design-system/{p-0ff0be5b83.entry.js → p-138be1f0cc.entry.js} +1 -1
- package/dist/design-system/{p-650289138a.entry.js → p-16b03e0b02.entry.js} +1 -1
- package/dist/design-system/{p-d5f8d8f5e1.entry.js → p-1750b3c4f1.entry.js} +1 -1
- package/dist/design-system/{p-BkTv_bQR.js → p-1A9jKraP.js} +1 -1
- package/dist/design-system/{p-3134821ac6.entry.js → p-1b1e3ad99c.entry.js} +1 -1
- package/dist/design-system/p-24c85e99f5.entry.js +4 -0
- package/dist/design-system/p-2b038255c5.entry.js +4 -0
- package/dist/design-system/{p-6b6531379b.entry.js → p-2bb98dfa2f.entry.js} +1 -1
- package/dist/design-system/{p-c37f266740.entry.js → p-2eb6067210.entry.js} +1 -1
- package/dist/design-system/p-32e156bc72.entry.js +4 -0
- package/dist/design-system/p-3824068ae7.entry.js +4 -0
- package/dist/design-system/{p-ad2b17b0a0.entry.js → p-3aa3841834.entry.js} +1 -1
- package/dist/design-system/{p-53dda5d400.entry.js → p-3d2539929c.entry.js} +1 -1
- package/dist/design-system/{p-372bf379f9.entry.js → p-3d675c6507.entry.js} +1 -1
- package/dist/design-system/{p-e7472337ed.entry.js → p-3e3a6799d6.entry.js} +1 -1
- package/dist/design-system/{p-7e702193fc.entry.js → p-3e43fa2bc6.entry.js} +1 -1
- package/dist/design-system/{p-2f51e1d39b.entry.js → p-4284d6d646.entry.js} +1 -1
- package/dist/design-system/{p-8406f6faf1.entry.js → p-44981aaf8d.entry.js} +1 -1
- package/dist/design-system/{p-df5899b930.entry.js → p-4b2a59576c.entry.js} +1 -1
- package/dist/design-system/{p-0663d7c0f1.entry.js → p-4bfc094a03.entry.js} +1 -1
- package/dist/design-system/p-53d9a40010.entry.js +4 -0
- package/dist/design-system/p-564ee4d78f.entry.js +4 -0
- package/dist/design-system/{p-a62b7985a0.entry.js → p-599a693db3.entry.js} +1 -1
- package/dist/design-system/p-5a6c6959fa.entry.js +4 -0
- package/dist/design-system/{p-0bd2ce2da3.entry.js → p-5d4a5d0b61.entry.js} +1 -1
- package/dist/design-system/{p-13d1ce3158.entry.js → p-5ded2b6438.entry.js} +1 -1
- package/dist/design-system/{p-f0119fe693.entry.js → p-5f1a8be21c.entry.js} +1 -1
- package/dist/design-system/p-5f28436626.entry.js +4 -0
- package/dist/design-system/p-6c60833550.entry.js +4 -0
- package/dist/design-system/{p-01430d5c28.entry.js → p-7246bfb9a0.entry.js} +1 -1
- package/dist/design-system/p-77e7a6a068.entry.js +4 -0
- package/dist/design-system/{p-a8de98dd7b.entry.js → p-78112e7b35.entry.js} +1 -1
- package/dist/design-system/p-7ebdd14afc.entry.js +4 -0
- package/dist/design-system/p-7f42c18249.entry.js +4 -0
- package/dist/design-system/p-85bf3794f9.entry.js +4 -0
- package/dist/design-system/p-8a9d617f75.entry.js +4 -0
- package/dist/design-system/p-908e7b073a.entry.js +4 -0
- package/dist/design-system/{p-7c353652a9.entry.js → p-9f9364d7df.entry.js} +1 -1
- package/dist/design-system/p-B-v2Wm-V.js +5 -0
- package/dist/design-system/{p-BhdSNuGP.js → p-B8PCdo6e.js} +1 -1
- package/dist/design-system/{p-C7i6xLTJ.js → p-C5Rtikeh.js} +1 -1
- package/dist/design-system/p-CDhvZoCt.js +4 -0
- package/dist/design-system/p-CGHN-3RC.js +4 -0
- package/dist/design-system/{p-Dm2lqE3-.js → p-CfgwSore.js} +1 -1
- package/dist/design-system/p-ChSKXFK5.js +4 -0
- package/dist/design-system/{p-hLAmwHiq.js → p-Chgme2NJ.js} +1 -1
- package/dist/design-system/{p-DTxLRTYr.js → p-CrYAd3JT.js} +1 -1
- package/dist/design-system/p-CziF75uh.js +4 -0
- package/dist/design-system/{p-B1e0kNRJ.js → p-DJBD4skP.js} +2 -2
- package/dist/design-system/{p-78NZc8PM.js → p-DOvdnojj.js} +1 -1
- package/dist/design-system/p-DYPX3A8m.js +4 -0
- package/dist/design-system/p-DiUgZKWs.js +4 -0
- package/dist/design-system/{p-HwbqEzpk.js → p-Dk0GEN2t.js} +1 -1
- package/dist/design-system/p-DkhJaoXg.js +4 -0
- package/dist/design-system/{p-CvTcEsXg.js → p-DoHCSvjl.js} +1 -1
- package/dist/design-system/p-DypNSUAh.js +4 -0
- package/dist/design-system/{p-DgVaaZT_.js → p-Y0rKqVvm.js} +1 -1
- package/dist/design-system/p-Z0zrglhd.js +4 -0
- package/dist/design-system/p-a42ecb68a0.entry.js +4 -0
- package/dist/design-system/{p-dd38f8f206.entry.js → p-a782c877ea.entry.js} +1 -1
- package/dist/design-system/p-a8df8f067b.entry.js +4 -0
- package/dist/design-system/{p-a465c1acce.entry.js → p-aa3aee2591.entry.js} +1 -1
- package/dist/design-system/p-aa3c0ff536.entry.js +4 -0
- package/dist/design-system/{p-6ef31a3c07.entry.js → p-ab8bee7022.entry.js} +1 -1
- package/dist/design-system/p-adc58b2821.entry.js +4 -0
- package/dist/design-system/{p-8353961d39.entry.js → p-b390490b0d.entry.js} +1 -1
- package/dist/design-system/p-b44641ec28.entry.js +4 -0
- package/dist/design-system/{p-5d17209d91.entry.js → p-b4738dc266.entry.js} +1 -1
- package/dist/design-system/p-b851a43fff.entry.js +4 -0
- package/dist/design-system/{p-4e6638d14e.entry.js → p-b8669a617c.entry.js} +1 -1
- package/dist/design-system/p-b8f626bf28.entry.js +4 -0
- package/dist/design-system/{p-202ecb8f01.entry.js → p-bd543e1baf.entry.js} +1 -1
- package/dist/design-system/p-ce67cbbed5.entry.js +4 -0
- package/dist/design-system/{p-60d29d8b8e.entry.js → p-d3a80b8422.entry.js} +1 -1
- package/dist/design-system/p-d4d9205dda.entry.js +4 -0
- package/dist/design-system/p-dbd3d3b3d3.entry.js +4 -0
- package/dist/design-system/{p-BATOumsf.js → p-dziB1ufg.js} +1 -1
- package/dist/design-system/{p-014d464627.entry.js → p-e0b2d6e296.entry.js} +1 -1
- package/dist/design-system/p-e94ee7391c.entry.js +4 -0
- package/dist/design-system/{p-10c136d00d.entry.js → p-ee76bf354e.entry.js} +1 -1
- package/dist/design-system/p-f7be5b6114.entry.js +4 -0
- package/dist/design-system/{p-f4958b9e97.entry.js → p-fa613cd0d1.entry.js} +1 -1
- package/dist/design-system/p-faf75173db.entry.js +4 -0
- package/dist/design-system/{p-68c9f4f630.entry.js → p-fff38e1ca7.entry.js} +1 -1
- package/dist/design-system/{p-LCY5n5tq.js → p-x2KazRjl.js} +1 -1
- package/dist/esm/{_getTag-DFxL3s3h.js → _getTag-BkweuRJc.js} +1 -1
- package/dist/esm/{array-dJH4dfMr.js → array-BJZA868l.js} +3 -2
- package/dist/esm/{breakpoints.decorator-DZ0xN4Np.js → breakpoints.decorator-D9M4v98c.js} +1 -1
- package/dist/esm/{breakpoints.subject-BNnXcKMw.js → breakpoints.subject-DHZ7TzYV.js} +3 -3
- package/dist/esm/{config.decorator-ZQ0_Zx5y.js → config.decorator-CRYVBTkX.js} +1 -1
- package/dist/esm/{config.utils-D9o7rffC.js → config.utils-CR4Xudpz.js} +1 -1
- package/dist/esm/{create-validator-decorator-DovxquEu.js → create-validator-decorator-fUav5byo.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{device-CRuIJzXR.js → device-CapioAfe.js} +1 -1
- package/dist/esm/ds-accordion.entry.js +9 -9
- package/dist/esm/ds-alert-container.entry.js +6 -6
- package/dist/esm/ds-app.entry.js +6 -6
- package/dist/esm/ds-badge.entry.js +7 -7
- package/dist/esm/ds-button-group.entry.js +6 -6
- package/dist/esm/ds-button_2.entry.js +9 -9
- package/dist/esm/ds-card-actions.entry.js +4 -4
- package/dist/esm/ds-card-content.entry.js +3 -3
- package/dist/esm/ds-card-header.entry.js +5 -5
- package/dist/esm/ds-card-subtitle.entry.js +6 -6
- package/dist/esm/ds-card-title.entry.js +6 -6
- package/dist/esm/ds-card.entry.js +14 -13
- package/dist/esm/ds-carousel-item.entry.js +6 -6
- package/dist/esm/ds-carousel.entry.js +8 -8
- package/dist/esm/ds-checkbox-group.entry.js +34 -16
- package/dist/esm/ds-checkbox.entry.js +19 -10
- package/dist/esm/ds-content_2.entry.js +8 -8
- package/dist/esm/ds-data-item.entry.js +6 -6
- package/dist/esm/ds-data-label.entry.js +4 -4
- package/dist/esm/ds-data-value.entry.js +2 -2
- package/dist/esm/ds-data.entry.js +4 -4
- package/dist/esm/ds-date.entry.js +10 -10
- package/dist/esm/ds-divider_2.entry.js +14 -14
- package/dist/esm/ds-drawer_2.entry.js +10 -10
- package/dist/esm/ds-file-upload.entry.js +13 -12
- package/dist/esm/ds-footer.entry.js +7 -7
- package/dist/esm/ds-heading.entry.js +7 -7
- package/dist/esm/ds-hint-text.entry.js +2 -2
- package/dist/esm/ds-hint-title.entry.js +2 -2
- package/dist/esm/ds-hint.entry.js +11 -11
- package/dist/esm/ds-icon_2.entry.js +12 -11
- package/dist/esm/ds-input-slider.entry.js +2883 -0
- package/dist/esm/ds-input.entry.js +10 -10
- package/dist/esm/ds-item.entry.js +6 -6
- package/dist/esm/ds-label.entry.js +11 -11
- package/dist/esm/ds-list.entry.js +5 -5
- package/dist/esm/ds-modal-body.entry.js +3 -3
- package/dist/esm/ds-modal-header.entry.js +3 -3
- package/dist/esm/ds-modal.entry.js +9 -9
- package/dist/esm/ds-navbar.entry.js +17 -17
- package/dist/esm/ds-notification.entry.js +11 -11
- package/dist/esm/ds-number-input.entry.js +15 -110
- package/dist/esm/ds-pagination.entry.js +17 -17
- package/dist/esm/ds-progress-bar.entry.js +14 -14
- package/dist/esm/ds-radio-group.entry.js +29 -12
- package/dist/esm/ds-radio.entry.js +19 -10
- package/dist/esm/ds-segment-item.entry.js +5 -5
- package/dist/esm/ds-segment.entry.js +13 -13
- package/dist/esm/ds-select-optgroup.entry.js +5 -5
- package/dist/esm/ds-select-option.entry.js +5 -5
- package/dist/esm/ds-select.entry.js +11 -11
- package/dist/esm/ds-shape.entry.js +5 -5
- package/dist/esm/ds-snackbar.entry.js +12 -12
- package/dist/esm/ds-step-panel.entry.js +6 -6
- package/dist/esm/ds-step.entry.js +5 -5
- package/dist/esm/ds-steps.entry.js +6 -6
- package/dist/esm/ds-tab-panel.entry.js +6 -6
- package/dist/esm/ds-tab.entry.js +5 -5
- package/dist/esm/ds-tabs.entry.js +12 -12
- package/dist/esm/ds-tag-group.entry.js +3 -3
- package/dist/esm/ds-tag.entry.js +8 -8
- package/dist/esm/ds-text.entry.js +10 -10
- package/dist/esm/ds-textarea.entry.js +10 -10
- package/dist/esm/ds-toast.entry.js +11 -11
- package/dist/esm/ds-toggle.entry.js +7 -7
- package/dist/esm/ds-tooltip.entry.js +5 -5
- package/dist/esm/{field.util-BjZzAi09.js → field.util-neIQBS-h.js} +1 -1
- package/dist/esm/{focus-ZxHImoOj.js → focus-6OAqvfus.js} +1 -1
- package/dist/esm/{form-control-DvJo0GKN.js → form-control-DhinyMa9.js} +1 -1
- package/dist/esm/{has-value-DU9L2JaI.js → has-value-Dmsj8ZQw.js} +1 -1
- package/dist/esm/{index-C6MVahkC.js → index-B-v2Wm-V.js} +6 -1
- package/dist/esm/index.js +10 -10
- package/dist/esm/isArray-B8PCdo6e.js +40 -0
- package/dist/esm/isNaN-BrbqGXXw.js +104 -0
- package/dist/esm/{isObjectLike-BAYao9w7.js → isObjectLike-BnBXjF_n.js} +1 -37
- package/dist/esm/{listener-DHP2OPMZ.js → listener-DIZDQOuO.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{one-of-CKPv0Nqm.js → one-of-CjRvS2Tk.js} +1 -1
- package/dist/esm/{required-Dqsbx5fH.js → required-Dtml5IID.js} +1 -1
- package/dist/esm/{resize.decorator-B8h8D676.js → resize.decorator-eogZBBk6.js} +2 -2
- package/dist/esm/{scroll-CsH7NHo5.js → scroll-v2MaEkiZ.js} +1 -1
- package/dist/esm/{tslib.es6-C9GKXw-5.js → tslib.es6-n47B6oUi.js} +1 -1
- package/dist/esm/{type-DzkhLOG_.js → type-7qEQcw90.js} +1 -1
- package/dist/types/components/card/card.d.ts +1 -1
- package/dist/types/components/checkbox/checkbox-group/checkbox-group.d.ts +6 -0
- package/dist/types/components/checkbox/checkbox.d.ts +4 -0
- package/dist/types/components/input-slider/input-slider.d.ts +186 -0
- package/dist/types/components/input-slider/input-slider.interfaces.d.ts +18 -0
- package/dist/types/components/input-slider/input-slider.picker.d.ts +37 -0
- package/dist/types/components/input-slider/input-slider.utils.d.ts +18 -0
- package/dist/types/components/input-slider/test/input-slider.a11y.play.d.ts +1 -0
- package/dist/types/components/input-slider/test/input-slider.component.play.d.ts +1 -0
- package/dist/types/components/input-slider/test/input-slider.visual.play.d.ts +1 -0
- package/dist/types/components/radio/radio-group/radio-group.d.ts +6 -0
- package/dist/types/components/radio/radio.d.ts +4 -0
- package/dist/types/components.d.ts +308 -3
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/index.d.ts +1 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/playwright/src/lib/components/input-slider.po.d.ts +18 -0
- package/docs/cem.json +573 -4
- package/docs/components.json +1471 -448
- package/docs/html.html-data.json +123 -0
- package/docs/tags.json +1 -0
- package/package.json +9 -8
- package/sbom.cdx.json +10768 -6272
- package/components/p-DsvYY32v.js +0 -4
- package/dist/design-system/p-11f34d0c7d.entry.js +0 -4
- package/dist/design-system/p-163d606781.entry.js +0 -4
- package/dist/design-system/p-1VXOIrN2.js +0 -4
- package/dist/design-system/p-27d181c5ac.entry.js +0 -4
- package/dist/design-system/p-2a35e0b9b0.entry.js +0 -4
- package/dist/design-system/p-3292ae6a05.entry.js +0 -4
- package/dist/design-system/p-3895178b39.entry.js +0 -4
- package/dist/design-system/p-3c6b7a2967.entry.js +0 -4
- package/dist/design-system/p-3ef4bd1c59.entry.js +0 -4
- package/dist/design-system/p-493b18cc46.entry.js +0 -4
- package/dist/design-system/p-4a99464dae.entry.js +0 -4
- package/dist/design-system/p-5e51fa8df4.entry.js +0 -4
- package/dist/design-system/p-62cb503015.entry.js +0 -4
- package/dist/design-system/p-65c221261c.entry.js +0 -4
- package/dist/design-system/p-68ebed7eee.entry.js +0 -4
- package/dist/design-system/p-6d168ba9ad.entry.js +0 -4
- package/dist/design-system/p-787bd92bcc.entry.js +0 -4
- package/dist/design-system/p-7c8bf0f33e.entry.js +0 -4
- package/dist/design-system/p-BLGVE-7Z.js +0 -4
- package/dist/design-system/p-BvEM6oCl.js +0 -4
- package/dist/design-system/p-C6MVahkC.js +0 -5
- package/dist/design-system/p-CwCAiaMq.js +0 -4
- package/dist/design-system/p-DHeVI6dR.js +0 -4
- package/dist/design-system/p-b68bc14064.entry.js +0 -4
- package/dist/design-system/p-b955a93959.entry.js +0 -4
- package/dist/design-system/p-caad93b943.entry.js +0 -4
- package/dist/design-system/p-cca79bfeb1.entry.js +0 -4
- package/dist/design-system/p-ddf2a7dfee.entry.js +0 -4
- package/dist/design-system/p-e85c92ca1a.entry.js +0 -4
- package/dist/design-system/p-f62643c33d.entry.js +0 -4
- package/dist/design-system/p-fa9568abce.entry.js +0 -4
- package/dist/design-system/p-fcd98f22b7.entry.js +0 -4
- package/dist/design-system/p-feeef4a8cb.entry.js +0 -4
- package/dist/design-system/p-ij4OEkzJ.js +0 -4
- package/dist/design-system/p-tl_BegdE.js +0 -4
|
@@ -0,0 +1,961 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Helvetia Design System https://design.baloise.dev/ - Apache License 2.0
|
|
3
|
+
*/
|
|
4
|
+
import { __decorate, __metadata } from "tslib";
|
|
5
|
+
import { h, } from "@stencil/core";
|
|
6
|
+
import isNaN from "lodash/isNaN";
|
|
7
|
+
import { inheritAttributes, debounceEvent, hasValue, Logger, OneOf, Type } from "../../utils/index";
|
|
8
|
+
import { defaultConfig, ListenToConfig } from "../../global/index";
|
|
9
|
+
import { Field } from "../input/field.util";
|
|
10
|
+
import { INPUT_COLORS } from "../input/input.interfaces";
|
|
11
|
+
import { INPUT_SLIDER_BRAND_COLORS, } from "./input-slider.interfaces";
|
|
12
|
+
import { clampValue, resolveInitialValue } from "./input-slider.utils";
|
|
13
|
+
import { InputSliderPickerController } from "./input-slider.picker";
|
|
14
|
+
/**
|
|
15
|
+
* Input slider renders a noUiSlider-backed slider with validation and label/description messaging.
|
|
16
|
+
*
|
|
17
|
+
* @part slider - The noUiSlider target element.
|
|
18
|
+
*/
|
|
19
|
+
export class InputSlider {
|
|
20
|
+
constructor() {
|
|
21
|
+
this.inheritedAttributes = {};
|
|
22
|
+
this.initialValue = NaN;
|
|
23
|
+
this.inputSliderId = `ds-input-slider-${InputSliderIds++}`;
|
|
24
|
+
this.focused = false;
|
|
25
|
+
this.language = defaultConfig.language;
|
|
26
|
+
this.region = defaultConfig.region;
|
|
27
|
+
/**
|
|
28
|
+
* PUBLIC PROPERTY API
|
|
29
|
+
* ------------------------------------------------------
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* The value of the slider. Unlike a text input, a slider can never be
|
|
33
|
+
* empty; when unset it defaults to `min`. Internally starts as `NaN` (this
|
|
34
|
+
* codebase's established "empty number" sentinel, see `isValueEmpty`) until
|
|
35
|
+
* `connectedCallback` resolves it — never actually rendered or emitted.
|
|
36
|
+
*/
|
|
37
|
+
this.value = NaN;
|
|
38
|
+
/**
|
|
39
|
+
* The name of the control, which is submitted with the form data.
|
|
40
|
+
*/
|
|
41
|
+
this.name = this.inputSliderId;
|
|
42
|
+
/**
|
|
43
|
+
* The label of the slider, which is displayed above the control.
|
|
44
|
+
*/
|
|
45
|
+
this.label = '';
|
|
46
|
+
/**
|
|
47
|
+
* The description of the slider, which is displayed below the control.
|
|
48
|
+
*/
|
|
49
|
+
this.description = '';
|
|
50
|
+
/**
|
|
51
|
+
* Defines the color of the slider. The default value is `primary`.
|
|
52
|
+
*/
|
|
53
|
+
this.color = 'primary';
|
|
54
|
+
/**
|
|
55
|
+
* Recolors the connect (the filled progress track) with a brand color instead of the default
|
|
56
|
+
* grey/primary style. Left of the handle uses the darker `-4` shade, right of it the lighter
|
|
57
|
+
* `-2` shade. Empty (default) keeps the current grey/primary look.
|
|
58
|
+
*/
|
|
59
|
+
this.brandColor = '';
|
|
60
|
+
/**
|
|
61
|
+
* If `true` the component gets an invalid style.
|
|
62
|
+
*/
|
|
63
|
+
this.invalid = false;
|
|
64
|
+
/**
|
|
65
|
+
* The text to display when the slider is in an invalid state.
|
|
66
|
+
*/
|
|
67
|
+
this.invalidText = '';
|
|
68
|
+
/**
|
|
69
|
+
* The minimum value of the slider.
|
|
70
|
+
*/
|
|
71
|
+
this.min = 0;
|
|
72
|
+
/**
|
|
73
|
+
* The maximum value of the slider.
|
|
74
|
+
*/
|
|
75
|
+
this.max = 100;
|
|
76
|
+
/**
|
|
77
|
+
* The granularity the value must adhere to, as a string so `"any"` (free,
|
|
78
|
+
* continuous dragging with no step snapping) can be expressed alongside
|
|
79
|
+
* numeric step sizes.
|
|
80
|
+
*/
|
|
81
|
+
this.step = '1';
|
|
82
|
+
/**
|
|
83
|
+
* Set the amount of time, in milliseconds, to wait to trigger the `dsChange` event after each keystroke. This also impacts form bindings such as `ngModel` or `v-model`.
|
|
84
|
+
*/
|
|
85
|
+
this.debounce = 0;
|
|
86
|
+
/**
|
|
87
|
+
* If `true`, the element is not mutable, focusable, or even submitted with the form. The user can neither edit nor focus on the control, nor its form control descendants.
|
|
88
|
+
*/
|
|
89
|
+
this.disabled = false;
|
|
90
|
+
/**
|
|
91
|
+
* If `true` the element can not be mutated. noUiSlider has no native concept of
|
|
92
|
+
* `readonly`, so this is treated as equivalent to `disabled`.
|
|
93
|
+
*/
|
|
94
|
+
this.readonly = false;
|
|
95
|
+
/**
|
|
96
|
+
* If `true`, the user must fill in a value before submitting a form.
|
|
97
|
+
*/
|
|
98
|
+
this.required = true;
|
|
99
|
+
/**
|
|
100
|
+
* If `true`, in Angular reactive forms the control will not be set invalid
|
|
101
|
+
*/
|
|
102
|
+
this.autoInvalidOff = false;
|
|
103
|
+
/**
|
|
104
|
+
* EVENT HANDLERS
|
|
105
|
+
* ------------------------------------------------------
|
|
106
|
+
*/
|
|
107
|
+
this.handleFocus = (ev) => {
|
|
108
|
+
this.focused = true;
|
|
109
|
+
if (!this.disabled && !this.readonly) {
|
|
110
|
+
this.dsFocus.emit(ev);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
this.handleBlur = (ev) => {
|
|
114
|
+
this.focused = false;
|
|
115
|
+
if (!this.disabled && !this.readonly) {
|
|
116
|
+
this.dsBlur.emit(ev);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
this.handleClick = (ev) => {
|
|
120
|
+
if (!this.disabled && !this.readonly) {
|
|
121
|
+
this.dsClick.emit(ev);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
createLogger(log) {
|
|
126
|
+
this.log = log;
|
|
127
|
+
}
|
|
128
|
+
valueChanged(newVal) {
|
|
129
|
+
var _a;
|
|
130
|
+
(_a = this.picker) === null || _a === void 0 ? void 0 : _a.setValue(newVal);
|
|
131
|
+
this.syncFormValue(newVal);
|
|
132
|
+
}
|
|
133
|
+
invalidChanged() {
|
|
134
|
+
var _a;
|
|
135
|
+
(_a = this.picker) === null || _a === void 0 ? void 0 : _a.setInvalid(this.invalid);
|
|
136
|
+
}
|
|
137
|
+
minChanged() {
|
|
138
|
+
var _a;
|
|
139
|
+
if (!isNaN(this.value)) {
|
|
140
|
+
this.value = clampValue(this.value, this.min, this.max);
|
|
141
|
+
}
|
|
142
|
+
(_a = this.picker) === null || _a === void 0 ? void 0 : _a.updateRange(this.min, this.max, this.step);
|
|
143
|
+
}
|
|
144
|
+
stepChanged() {
|
|
145
|
+
var _a;
|
|
146
|
+
(_a = this.picker) === null || _a === void 0 ? void 0 : _a.updateRange(this.min, this.max, this.step);
|
|
147
|
+
}
|
|
148
|
+
debounceChanged() {
|
|
149
|
+
this.dsChange = debounceEvent(this.dsChange, this.debounce);
|
|
150
|
+
}
|
|
151
|
+
disabledChanged() {
|
|
152
|
+
this.syncDisabledState();
|
|
153
|
+
}
|
|
154
|
+
readonlyChanged() {
|
|
155
|
+
this.syncDisabledState();
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* LIFECYCLE
|
|
159
|
+
* ------------------------------------------------------
|
|
160
|
+
*/
|
|
161
|
+
connectedCallback() {
|
|
162
|
+
this.debounceChanged();
|
|
163
|
+
this.value = clampValue(resolveInitialValue(this.value, this.min), this.min, this.max);
|
|
164
|
+
this.initialValue = this.value;
|
|
165
|
+
this.syncFormValue(this.value);
|
|
166
|
+
}
|
|
167
|
+
componentWillLoad() {
|
|
168
|
+
this.inheritedAttributes = inheritAttributes(this.el, ['aria-label', 'tabindex', 'title']);
|
|
169
|
+
}
|
|
170
|
+
componentDidLoad() {
|
|
171
|
+
var _a, _b;
|
|
172
|
+
if (!this.sliderEl)
|
|
173
|
+
return;
|
|
174
|
+
this.picker = new InputSliderPickerController({
|
|
175
|
+
targetEl: this.sliderEl,
|
|
176
|
+
labelId: 'label',
|
|
177
|
+
min: this.min,
|
|
178
|
+
max: this.max,
|
|
179
|
+
step: this.step,
|
|
180
|
+
value: this.value,
|
|
181
|
+
disabled: this.disabled || this.readonly,
|
|
182
|
+
invalid: this.invalid,
|
|
183
|
+
onInput: value => {
|
|
184
|
+
this.dsInput.emit(value);
|
|
185
|
+
},
|
|
186
|
+
onChange: value => {
|
|
187
|
+
this.setValue(value);
|
|
188
|
+
},
|
|
189
|
+
});
|
|
190
|
+
(_a = this.picker.handleEl) === null || _a === void 0 ? void 0 : _a.addEventListener('focus', this.handleFocus);
|
|
191
|
+
(_b = this.picker.handleEl) === null || _b === void 0 ? void 0 : _b.addEventListener('blur', this.handleBlur);
|
|
192
|
+
}
|
|
193
|
+
disconnectedCallback() {
|
|
194
|
+
var _a;
|
|
195
|
+
(_a = this.picker) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
196
|
+
this.picker = undefined;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* PUBLIC LISTENERS
|
|
200
|
+
* ------------------------------------------------------
|
|
201
|
+
*/
|
|
202
|
+
listenToClick(ev) {
|
|
203
|
+
if ((this.disabled || this.readonly) && ev.target === this.el) {
|
|
204
|
+
ev.preventDefault();
|
|
205
|
+
ev.stopPropagation();
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
listenToReset(ev) {
|
|
209
|
+
const form = ev.target;
|
|
210
|
+
if (form === null || form === void 0 ? void 0 : form.contains(this.el)) {
|
|
211
|
+
this.value = this.initialValue;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* @internal define config for the component
|
|
216
|
+
*/
|
|
217
|
+
async configChanged(state) {
|
|
218
|
+
this.language = state.language;
|
|
219
|
+
this.region = state.region;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* PUBLIC METHODS
|
|
223
|
+
* ------------------------------------------------------
|
|
224
|
+
*/
|
|
225
|
+
/**
|
|
226
|
+
* Sets focus on `ds-input-slider`'s slider handle. Use this method instead of the global
|
|
227
|
+
* `element.focus()`.
|
|
228
|
+
*/
|
|
229
|
+
async setFocus() {
|
|
230
|
+
var _a;
|
|
231
|
+
(_a = this.picker) === null || _a === void 0 ? void 0 : _a.focus();
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Sets blur on `ds-input-slider`'s slider handle. Use this method instead of the global
|
|
235
|
+
* `element.blur()`.
|
|
236
|
+
* @internal
|
|
237
|
+
*/
|
|
238
|
+
async setBlur() {
|
|
239
|
+
var _a;
|
|
240
|
+
(_a = this.picker) === null || _a === void 0 ? void 0 : _a.blur();
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Returns the noUiSlider handle element used under the hood.
|
|
244
|
+
*/
|
|
245
|
+
async getInputElement() {
|
|
246
|
+
var _a;
|
|
247
|
+
return (_a = this.picker) === null || _a === void 0 ? void 0 : _a.handleEl;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* PRIVATE METHODS
|
|
251
|
+
* ------------------------------------------------------
|
|
252
|
+
*/
|
|
253
|
+
setValue(newValue) {
|
|
254
|
+
if (this.value === newValue)
|
|
255
|
+
return;
|
|
256
|
+
this.value = newValue;
|
|
257
|
+
this.dsChange.emit(newValue);
|
|
258
|
+
}
|
|
259
|
+
syncFormValue(value) {
|
|
260
|
+
this.internals.setFormValue(String(value));
|
|
261
|
+
}
|
|
262
|
+
syncDisabledState() {
|
|
263
|
+
var _a;
|
|
264
|
+
(_a = this.picker) === null || _a === void 0 ? void 0 : _a.setDisabled(this.disabled || this.readonly);
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* RENDER
|
|
268
|
+
* ------------------------------------------------------
|
|
269
|
+
*/
|
|
270
|
+
render() {
|
|
271
|
+
return (h(Field, { key: '673117fa1520455f38ee39c6f2218468e6ca8150', disabled: this.disabled || this.readonly, color: this.color, invalid: this.invalid, label: this.label, description: this.description, invalidText: this.invalidText, required: this.required, language: this.language, cssClasses: {
|
|
272
|
+
'is-brand-yellow': hasValue(this.brandColor) && this.brandColor === 'yellow',
|
|
273
|
+
'is-brand-purple': hasValue(this.brandColor) && this.brandColor === 'purple',
|
|
274
|
+
'is-brand-red': hasValue(this.brandColor) && this.brandColor === 'red',
|
|
275
|
+
'is-brand-green': hasValue(this.brandColor) && this.brandColor === 'green',
|
|
276
|
+
} }, h("div", Object.assign({ key: 'b760944d8141876484054f1454b453e087bc7eda', id: "slider", part: "slider", ref: el => (this.sliderEl = el), onClick: this.handleClick }, this.inheritedAttributes))));
|
|
277
|
+
}
|
|
278
|
+
static get is() { return "ds-input-slider"; }
|
|
279
|
+
static get encapsulation() { return "shadow"; }
|
|
280
|
+
static get formAssociated() { return true; }
|
|
281
|
+
static get originalStyleUrls() {
|
|
282
|
+
return {
|
|
283
|
+
"$": ["input-slider.host.scss"]
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
static get styleUrls() {
|
|
287
|
+
return {
|
|
288
|
+
"$": ["input-slider.host.css"]
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
static get properties() {
|
|
292
|
+
return {
|
|
293
|
+
"value": {
|
|
294
|
+
"type": "number",
|
|
295
|
+
"mutable": true,
|
|
296
|
+
"complexType": {
|
|
297
|
+
"original": "number",
|
|
298
|
+
"resolved": "number",
|
|
299
|
+
"references": {}
|
|
300
|
+
},
|
|
301
|
+
"required": false,
|
|
302
|
+
"optional": false,
|
|
303
|
+
"docs": {
|
|
304
|
+
"tags": [],
|
|
305
|
+
"text": "The value of the slider. Unlike a text input, a slider can never be\nempty; when unset it defaults to `min`. Internally starts as `NaN` (this\ncodebase's established \"empty number\" sentinel, see `isValueEmpty`) until\n`connectedCallback` resolves it \u2014 never actually rendered or emitted."
|
|
306
|
+
},
|
|
307
|
+
"getter": false,
|
|
308
|
+
"setter": false,
|
|
309
|
+
"reflect": true,
|
|
310
|
+
"attribute": "value",
|
|
311
|
+
"defaultValue": "NaN"
|
|
312
|
+
},
|
|
313
|
+
"name": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"mutable": false,
|
|
316
|
+
"complexType": {
|
|
317
|
+
"original": "string",
|
|
318
|
+
"resolved": "string",
|
|
319
|
+
"references": {}
|
|
320
|
+
},
|
|
321
|
+
"required": false,
|
|
322
|
+
"optional": false,
|
|
323
|
+
"docs": {
|
|
324
|
+
"tags": [],
|
|
325
|
+
"text": "The name of the control, which is submitted with the form data."
|
|
326
|
+
},
|
|
327
|
+
"getter": false,
|
|
328
|
+
"setter": false,
|
|
329
|
+
"reflect": true,
|
|
330
|
+
"attribute": "name",
|
|
331
|
+
"defaultValue": "this.inputSliderId"
|
|
332
|
+
},
|
|
333
|
+
"label": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"mutable": false,
|
|
336
|
+
"complexType": {
|
|
337
|
+
"original": "string",
|
|
338
|
+
"resolved": "string",
|
|
339
|
+
"references": {}
|
|
340
|
+
},
|
|
341
|
+
"required": false,
|
|
342
|
+
"optional": false,
|
|
343
|
+
"docs": {
|
|
344
|
+
"tags": [],
|
|
345
|
+
"text": "The label of the slider, which is displayed above the control."
|
|
346
|
+
},
|
|
347
|
+
"getter": false,
|
|
348
|
+
"setter": false,
|
|
349
|
+
"reflect": false,
|
|
350
|
+
"attribute": "label",
|
|
351
|
+
"defaultValue": "''"
|
|
352
|
+
},
|
|
353
|
+
"description": {
|
|
354
|
+
"type": "string",
|
|
355
|
+
"mutable": false,
|
|
356
|
+
"complexType": {
|
|
357
|
+
"original": "string",
|
|
358
|
+
"resolved": "string",
|
|
359
|
+
"references": {}
|
|
360
|
+
},
|
|
361
|
+
"required": false,
|
|
362
|
+
"optional": false,
|
|
363
|
+
"docs": {
|
|
364
|
+
"tags": [],
|
|
365
|
+
"text": "The description of the slider, which is displayed below the control."
|
|
366
|
+
},
|
|
367
|
+
"getter": false,
|
|
368
|
+
"setter": false,
|
|
369
|
+
"reflect": false,
|
|
370
|
+
"attribute": "description",
|
|
371
|
+
"defaultValue": "''"
|
|
372
|
+
},
|
|
373
|
+
"color": {
|
|
374
|
+
"type": "string",
|
|
375
|
+
"mutable": false,
|
|
376
|
+
"complexType": {
|
|
377
|
+
"original": "InputColor",
|
|
378
|
+
"resolved": "\"\" | \"danger\" | \"primary\" | \"success\" | \"warning\"",
|
|
379
|
+
"references": {
|
|
380
|
+
"InputColor": {
|
|
381
|
+
"location": "import",
|
|
382
|
+
"path": "../input/input.interfaces",
|
|
383
|
+
"id": "src/components/input/input.interfaces.ts::InputColor",
|
|
384
|
+
"referenceLocation": "InputColor"
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"required": false,
|
|
389
|
+
"optional": false,
|
|
390
|
+
"docs": {
|
|
391
|
+
"tags": [],
|
|
392
|
+
"text": "Defines the color of the slider. The default value is `primary`."
|
|
393
|
+
},
|
|
394
|
+
"getter": false,
|
|
395
|
+
"setter": false,
|
|
396
|
+
"reflect": false,
|
|
397
|
+
"attribute": "color",
|
|
398
|
+
"defaultValue": "'primary'"
|
|
399
|
+
},
|
|
400
|
+
"brandColor": {
|
|
401
|
+
"type": "string",
|
|
402
|
+
"mutable": false,
|
|
403
|
+
"complexType": {
|
|
404
|
+
"original": "InputSliderBrandColor",
|
|
405
|
+
"resolved": "\"\" | \"green\" | \"purple\" | \"red\" | \"yellow\"",
|
|
406
|
+
"references": {
|
|
407
|
+
"InputSliderBrandColor": {
|
|
408
|
+
"location": "import",
|
|
409
|
+
"path": "./input-slider.interfaces",
|
|
410
|
+
"id": "src/components/input-slider/input-slider.interfaces.ts::InputSliderBrandColor",
|
|
411
|
+
"referenceLocation": "InputSliderBrandColor"
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"required": false,
|
|
416
|
+
"optional": false,
|
|
417
|
+
"docs": {
|
|
418
|
+
"tags": [],
|
|
419
|
+
"text": "Recolors the connect (the filled progress track) with a brand color instead of the default\ngrey/primary style. Left of the handle uses the darker `-4` shade, right of it the lighter\n`-2` shade. Empty (default) keeps the current grey/primary look."
|
|
420
|
+
},
|
|
421
|
+
"getter": false,
|
|
422
|
+
"setter": false,
|
|
423
|
+
"reflect": false,
|
|
424
|
+
"attribute": "brand-color",
|
|
425
|
+
"defaultValue": "''"
|
|
426
|
+
},
|
|
427
|
+
"invalid": {
|
|
428
|
+
"type": "boolean",
|
|
429
|
+
"mutable": false,
|
|
430
|
+
"complexType": {
|
|
431
|
+
"original": "boolean",
|
|
432
|
+
"resolved": "boolean",
|
|
433
|
+
"references": {}
|
|
434
|
+
},
|
|
435
|
+
"required": false,
|
|
436
|
+
"optional": false,
|
|
437
|
+
"docs": {
|
|
438
|
+
"tags": [],
|
|
439
|
+
"text": "If `true` the component gets an invalid style."
|
|
440
|
+
},
|
|
441
|
+
"getter": false,
|
|
442
|
+
"setter": false,
|
|
443
|
+
"reflect": true,
|
|
444
|
+
"attribute": "invalid",
|
|
445
|
+
"defaultValue": "false"
|
|
446
|
+
},
|
|
447
|
+
"invalidText": {
|
|
448
|
+
"type": "string",
|
|
449
|
+
"mutable": false,
|
|
450
|
+
"complexType": {
|
|
451
|
+
"original": "string",
|
|
452
|
+
"resolved": "string",
|
|
453
|
+
"references": {}
|
|
454
|
+
},
|
|
455
|
+
"required": false,
|
|
456
|
+
"optional": false,
|
|
457
|
+
"docs": {
|
|
458
|
+
"tags": [],
|
|
459
|
+
"text": "The text to display when the slider is in an invalid state."
|
|
460
|
+
},
|
|
461
|
+
"getter": false,
|
|
462
|
+
"setter": false,
|
|
463
|
+
"reflect": false,
|
|
464
|
+
"attribute": "invalid-text",
|
|
465
|
+
"defaultValue": "''"
|
|
466
|
+
},
|
|
467
|
+
"min": {
|
|
468
|
+
"type": "number",
|
|
469
|
+
"mutable": false,
|
|
470
|
+
"complexType": {
|
|
471
|
+
"original": "number",
|
|
472
|
+
"resolved": "number",
|
|
473
|
+
"references": {}
|
|
474
|
+
},
|
|
475
|
+
"required": false,
|
|
476
|
+
"optional": false,
|
|
477
|
+
"docs": {
|
|
478
|
+
"tags": [],
|
|
479
|
+
"text": "The minimum value of the slider."
|
|
480
|
+
},
|
|
481
|
+
"getter": false,
|
|
482
|
+
"setter": false,
|
|
483
|
+
"reflect": false,
|
|
484
|
+
"attribute": "min",
|
|
485
|
+
"defaultValue": "0"
|
|
486
|
+
},
|
|
487
|
+
"max": {
|
|
488
|
+
"type": "number",
|
|
489
|
+
"mutable": false,
|
|
490
|
+
"complexType": {
|
|
491
|
+
"original": "number",
|
|
492
|
+
"resolved": "number",
|
|
493
|
+
"references": {}
|
|
494
|
+
},
|
|
495
|
+
"required": false,
|
|
496
|
+
"optional": false,
|
|
497
|
+
"docs": {
|
|
498
|
+
"tags": [],
|
|
499
|
+
"text": "The maximum value of the slider."
|
|
500
|
+
},
|
|
501
|
+
"getter": false,
|
|
502
|
+
"setter": false,
|
|
503
|
+
"reflect": false,
|
|
504
|
+
"attribute": "max",
|
|
505
|
+
"defaultValue": "100"
|
|
506
|
+
},
|
|
507
|
+
"step": {
|
|
508
|
+
"type": "string",
|
|
509
|
+
"mutable": false,
|
|
510
|
+
"complexType": {
|
|
511
|
+
"original": "string",
|
|
512
|
+
"resolved": "string",
|
|
513
|
+
"references": {}
|
|
514
|
+
},
|
|
515
|
+
"required": false,
|
|
516
|
+
"optional": false,
|
|
517
|
+
"docs": {
|
|
518
|
+
"tags": [],
|
|
519
|
+
"text": "The granularity the value must adhere to, as a string so `\"any\"` (free,\ncontinuous dragging with no step snapping) can be expressed alongside\nnumeric step sizes."
|
|
520
|
+
},
|
|
521
|
+
"getter": false,
|
|
522
|
+
"setter": false,
|
|
523
|
+
"reflect": false,
|
|
524
|
+
"attribute": "step",
|
|
525
|
+
"defaultValue": "'1'"
|
|
526
|
+
},
|
|
527
|
+
"debounce": {
|
|
528
|
+
"type": "number",
|
|
529
|
+
"mutable": false,
|
|
530
|
+
"complexType": {
|
|
531
|
+
"original": "number",
|
|
532
|
+
"resolved": "number",
|
|
533
|
+
"references": {}
|
|
534
|
+
},
|
|
535
|
+
"required": false,
|
|
536
|
+
"optional": false,
|
|
537
|
+
"docs": {
|
|
538
|
+
"tags": [],
|
|
539
|
+
"text": "Set the amount of time, in milliseconds, to wait to trigger the `dsChange` event after each keystroke. This also impacts form bindings such as `ngModel` or `v-model`."
|
|
540
|
+
},
|
|
541
|
+
"getter": false,
|
|
542
|
+
"setter": false,
|
|
543
|
+
"reflect": false,
|
|
544
|
+
"attribute": "debounce",
|
|
545
|
+
"defaultValue": "0"
|
|
546
|
+
},
|
|
547
|
+
"disabled": {
|
|
548
|
+
"type": "boolean",
|
|
549
|
+
"mutable": false,
|
|
550
|
+
"complexType": {
|
|
551
|
+
"original": "boolean",
|
|
552
|
+
"resolved": "boolean",
|
|
553
|
+
"references": {}
|
|
554
|
+
},
|
|
555
|
+
"required": false,
|
|
556
|
+
"optional": false,
|
|
557
|
+
"docs": {
|
|
558
|
+
"tags": [],
|
|
559
|
+
"text": "If `true`, the element is not mutable, focusable, or even submitted with the form. The user can neither edit nor focus on the control, nor its form control descendants."
|
|
560
|
+
},
|
|
561
|
+
"getter": false,
|
|
562
|
+
"setter": false,
|
|
563
|
+
"reflect": false,
|
|
564
|
+
"attribute": "disabled",
|
|
565
|
+
"defaultValue": "false"
|
|
566
|
+
},
|
|
567
|
+
"readonly": {
|
|
568
|
+
"type": "boolean",
|
|
569
|
+
"mutable": false,
|
|
570
|
+
"complexType": {
|
|
571
|
+
"original": "boolean",
|
|
572
|
+
"resolved": "boolean",
|
|
573
|
+
"references": {}
|
|
574
|
+
},
|
|
575
|
+
"required": false,
|
|
576
|
+
"optional": false,
|
|
577
|
+
"docs": {
|
|
578
|
+
"tags": [],
|
|
579
|
+
"text": "If `true` the element can not be mutated. noUiSlider has no native concept of\n`readonly`, so this is treated as equivalent to `disabled`."
|
|
580
|
+
},
|
|
581
|
+
"getter": false,
|
|
582
|
+
"setter": false,
|
|
583
|
+
"reflect": false,
|
|
584
|
+
"attribute": "readonly",
|
|
585
|
+
"defaultValue": "false"
|
|
586
|
+
},
|
|
587
|
+
"required": {
|
|
588
|
+
"type": "boolean",
|
|
589
|
+
"mutable": false,
|
|
590
|
+
"complexType": {
|
|
591
|
+
"original": "boolean",
|
|
592
|
+
"resolved": "boolean",
|
|
593
|
+
"references": {}
|
|
594
|
+
},
|
|
595
|
+
"required": false,
|
|
596
|
+
"optional": false,
|
|
597
|
+
"docs": {
|
|
598
|
+
"tags": [],
|
|
599
|
+
"text": "If `true`, the user must fill in a value before submitting a form."
|
|
600
|
+
},
|
|
601
|
+
"getter": false,
|
|
602
|
+
"setter": false,
|
|
603
|
+
"reflect": false,
|
|
604
|
+
"attribute": "required",
|
|
605
|
+
"defaultValue": "true"
|
|
606
|
+
},
|
|
607
|
+
"autoInvalidOff": {
|
|
608
|
+
"type": "boolean",
|
|
609
|
+
"mutable": false,
|
|
610
|
+
"complexType": {
|
|
611
|
+
"original": "boolean",
|
|
612
|
+
"resolved": "boolean",
|
|
613
|
+
"references": {}
|
|
614
|
+
},
|
|
615
|
+
"required": false,
|
|
616
|
+
"optional": false,
|
|
617
|
+
"docs": {
|
|
618
|
+
"tags": [],
|
|
619
|
+
"text": "If `true`, in Angular reactive forms the control will not be set invalid"
|
|
620
|
+
},
|
|
621
|
+
"getter": false,
|
|
622
|
+
"setter": false,
|
|
623
|
+
"reflect": true,
|
|
624
|
+
"attribute": "auto-invalid-off",
|
|
625
|
+
"defaultValue": "false"
|
|
626
|
+
}
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
static get states() {
|
|
630
|
+
return {
|
|
631
|
+
"language": {},
|
|
632
|
+
"region": {}
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
static get events() {
|
|
636
|
+
return [{
|
|
637
|
+
"method": "dsInput",
|
|
638
|
+
"name": "dsInput",
|
|
639
|
+
"bubbles": true,
|
|
640
|
+
"cancelable": true,
|
|
641
|
+
"composed": true,
|
|
642
|
+
"docs": {
|
|
643
|
+
"tags": [],
|
|
644
|
+
"text": "Emitted on each keyboard/pointer movement, before the value is committed."
|
|
645
|
+
},
|
|
646
|
+
"complexType": {
|
|
647
|
+
"original": "InputSliderInputDetail",
|
|
648
|
+
"resolved": "number",
|
|
649
|
+
"references": {
|
|
650
|
+
"InputSliderInputDetail": {
|
|
651
|
+
"location": "import",
|
|
652
|
+
"path": "./input-slider.interfaces",
|
|
653
|
+
"id": "src/components/input-slider/input-slider.interfaces.ts::InputSliderInputDetail",
|
|
654
|
+
"referenceLocation": "InputSliderInputDetail"
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}, {
|
|
659
|
+
"method": "dsFocus",
|
|
660
|
+
"name": "dsFocus",
|
|
661
|
+
"bubbles": true,
|
|
662
|
+
"cancelable": true,
|
|
663
|
+
"composed": true,
|
|
664
|
+
"docs": {
|
|
665
|
+
"tags": [],
|
|
666
|
+
"text": "Emitted when the input has focus."
|
|
667
|
+
},
|
|
668
|
+
"complexType": {
|
|
669
|
+
"original": "InputSliderFocusDetail",
|
|
670
|
+
"resolved": "FocusEvent",
|
|
671
|
+
"references": {
|
|
672
|
+
"InputSliderFocusDetail": {
|
|
673
|
+
"location": "import",
|
|
674
|
+
"path": "./input-slider.interfaces",
|
|
675
|
+
"id": "src/components/input-slider/input-slider.interfaces.ts::InputSliderFocusDetail",
|
|
676
|
+
"referenceLocation": "InputSliderFocusDetail"
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
}, {
|
|
681
|
+
"method": "dsBlur",
|
|
682
|
+
"name": "dsBlur",
|
|
683
|
+
"bubbles": true,
|
|
684
|
+
"cancelable": true,
|
|
685
|
+
"composed": true,
|
|
686
|
+
"docs": {
|
|
687
|
+
"tags": [],
|
|
688
|
+
"text": "Emitted when the input loses focus."
|
|
689
|
+
},
|
|
690
|
+
"complexType": {
|
|
691
|
+
"original": "InputSliderBlurDetail",
|
|
692
|
+
"resolved": "FocusEvent",
|
|
693
|
+
"references": {
|
|
694
|
+
"InputSliderBlurDetail": {
|
|
695
|
+
"location": "import",
|
|
696
|
+
"path": "./input-slider.interfaces",
|
|
697
|
+
"id": "src/components/input-slider/input-slider.interfaces.ts::InputSliderBlurDetail",
|
|
698
|
+
"referenceLocation": "InputSliderBlurDetail"
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
}, {
|
|
703
|
+
"method": "dsClick",
|
|
704
|
+
"name": "dsClick",
|
|
705
|
+
"bubbles": true,
|
|
706
|
+
"cancelable": true,
|
|
707
|
+
"composed": true,
|
|
708
|
+
"docs": {
|
|
709
|
+
"tags": [],
|
|
710
|
+
"text": "Emitted when the input is clicked."
|
|
711
|
+
},
|
|
712
|
+
"complexType": {
|
|
713
|
+
"original": "InputSliderClickDetail",
|
|
714
|
+
"resolved": "MouseEvent",
|
|
715
|
+
"references": {
|
|
716
|
+
"InputSliderClickDetail": {
|
|
717
|
+
"location": "import",
|
|
718
|
+
"path": "./input-slider.interfaces",
|
|
719
|
+
"id": "src/components/input-slider/input-slider.interfaces.ts::InputSliderClickDetail",
|
|
720
|
+
"referenceLocation": "InputSliderClickDetail"
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}, {
|
|
725
|
+
"method": "dsChange",
|
|
726
|
+
"name": "dsChange",
|
|
727
|
+
"bubbles": true,
|
|
728
|
+
"cancelable": true,
|
|
729
|
+
"composed": true,
|
|
730
|
+
"docs": {
|
|
731
|
+
"tags": [],
|
|
732
|
+
"text": "Emitted when the value is committed (noUiSlider `change`, not `blur` \u2014 see\nADR-0006/ADR-0007). Fires once per discrete drag/step, independent of focus."
|
|
733
|
+
},
|
|
734
|
+
"complexType": {
|
|
735
|
+
"original": "InputSliderChangeDetail",
|
|
736
|
+
"resolved": "number",
|
|
737
|
+
"references": {
|
|
738
|
+
"InputSliderChangeDetail": {
|
|
739
|
+
"location": "import",
|
|
740
|
+
"path": "./input-slider.interfaces",
|
|
741
|
+
"id": "src/components/input-slider/input-slider.interfaces.ts::InputSliderChangeDetail",
|
|
742
|
+
"referenceLocation": "InputSliderChangeDetail"
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}];
|
|
747
|
+
}
|
|
748
|
+
static get methods() {
|
|
749
|
+
return {
|
|
750
|
+
"configChanged": {
|
|
751
|
+
"complexType": {
|
|
752
|
+
"signature": "(state: DsConfigState) => Promise<void>",
|
|
753
|
+
"parameters": [{
|
|
754
|
+
"name": "state",
|
|
755
|
+
"type": "DsConfigState",
|
|
756
|
+
"docs": ""
|
|
757
|
+
}],
|
|
758
|
+
"references": {
|
|
759
|
+
"Promise": {
|
|
760
|
+
"location": "global",
|
|
761
|
+
"id": "global::Promise"
|
|
762
|
+
},
|
|
763
|
+
"DsConfigState": {
|
|
764
|
+
"location": "import",
|
|
765
|
+
"path": "@global",
|
|
766
|
+
"id": "src/global/index.ts::DsConfigState",
|
|
767
|
+
"referenceLocation": "DsConfigState"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"return": "Promise<void>"
|
|
771
|
+
},
|
|
772
|
+
"docs": {
|
|
773
|
+
"text": "",
|
|
774
|
+
"tags": [{
|
|
775
|
+
"name": "internal",
|
|
776
|
+
"text": "define config for the component"
|
|
777
|
+
}]
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
"setFocus": {
|
|
781
|
+
"complexType": {
|
|
782
|
+
"signature": "() => Promise<void>",
|
|
783
|
+
"parameters": [],
|
|
784
|
+
"references": {
|
|
785
|
+
"Promise": {
|
|
786
|
+
"location": "global",
|
|
787
|
+
"id": "global::Promise"
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
"return": "Promise<void>"
|
|
791
|
+
},
|
|
792
|
+
"docs": {
|
|
793
|
+
"text": "Sets focus on `ds-input-slider`'s slider handle. Use this method instead of the global\n`element.focus()`.",
|
|
794
|
+
"tags": []
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
"setBlur": {
|
|
798
|
+
"complexType": {
|
|
799
|
+
"signature": "() => Promise<void>",
|
|
800
|
+
"parameters": [],
|
|
801
|
+
"references": {
|
|
802
|
+
"Promise": {
|
|
803
|
+
"location": "global",
|
|
804
|
+
"id": "global::Promise"
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
"return": "Promise<void>"
|
|
808
|
+
},
|
|
809
|
+
"docs": {
|
|
810
|
+
"text": "Sets blur on `ds-input-slider`'s slider handle. Use this method instead of the global\n`element.blur()`.",
|
|
811
|
+
"tags": [{
|
|
812
|
+
"name": "internal",
|
|
813
|
+
"text": undefined
|
|
814
|
+
}]
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
"getInputElement": {
|
|
818
|
+
"complexType": {
|
|
819
|
+
"signature": "() => Promise<HTMLElement | undefined>",
|
|
820
|
+
"parameters": [],
|
|
821
|
+
"references": {
|
|
822
|
+
"Promise": {
|
|
823
|
+
"location": "global",
|
|
824
|
+
"id": "global::Promise"
|
|
825
|
+
},
|
|
826
|
+
"HTMLElement": {
|
|
827
|
+
"location": "global",
|
|
828
|
+
"id": "global::HTMLElement"
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
"return": "Promise<HTMLElement | undefined>"
|
|
832
|
+
},
|
|
833
|
+
"docs": {
|
|
834
|
+
"text": "Returns the noUiSlider handle element used under the hood.",
|
|
835
|
+
"tags": []
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
static get elementRef() { return "el"; }
|
|
841
|
+
static get watchers() {
|
|
842
|
+
return [{
|
|
843
|
+
"propName": "value",
|
|
844
|
+
"methodName": "valueChanged"
|
|
845
|
+
}, {
|
|
846
|
+
"propName": "invalid",
|
|
847
|
+
"methodName": "invalidChanged"
|
|
848
|
+
}, {
|
|
849
|
+
"propName": "min",
|
|
850
|
+
"methodName": "minChanged"
|
|
851
|
+
}, {
|
|
852
|
+
"propName": "max",
|
|
853
|
+
"methodName": "minChanged"
|
|
854
|
+
}, {
|
|
855
|
+
"propName": "step",
|
|
856
|
+
"methodName": "stepChanged"
|
|
857
|
+
}, {
|
|
858
|
+
"propName": "debounce",
|
|
859
|
+
"methodName": "debounceChanged"
|
|
860
|
+
}, {
|
|
861
|
+
"propName": "disabled",
|
|
862
|
+
"methodName": "disabledChanged"
|
|
863
|
+
}, {
|
|
864
|
+
"propName": "readonly",
|
|
865
|
+
"methodName": "readonlyChanged"
|
|
866
|
+
}];
|
|
867
|
+
}
|
|
868
|
+
static get listeners() {
|
|
869
|
+
return [{
|
|
870
|
+
"name": "click",
|
|
871
|
+
"method": "listenToClick",
|
|
872
|
+
"target": "document",
|
|
873
|
+
"capture": true,
|
|
874
|
+
"passive": false
|
|
875
|
+
}, {
|
|
876
|
+
"name": "reset",
|
|
877
|
+
"method": "listenToReset",
|
|
878
|
+
"target": "document",
|
|
879
|
+
"capture": true,
|
|
880
|
+
"passive": false
|
|
881
|
+
}];
|
|
882
|
+
}
|
|
883
|
+
static get attachInternalsMemberName() { return "internals"; }
|
|
884
|
+
}
|
|
885
|
+
__decorate([
|
|
886
|
+
Logger('input-slider'),
|
|
887
|
+
__metadata("design:type", Function),
|
|
888
|
+
__metadata("design:paramtypes", [Function]),
|
|
889
|
+
__metadata("design:returntype", void 0)
|
|
890
|
+
], InputSlider.prototype, "createLogger", null);
|
|
891
|
+
__decorate([
|
|
892
|
+
Type('number'),
|
|
893
|
+
__metadata("design:type", Number)
|
|
894
|
+
], InputSlider.prototype, "value", void 0);
|
|
895
|
+
__decorate([
|
|
896
|
+
Type('string'),
|
|
897
|
+
__metadata("design:type", String)
|
|
898
|
+
], InputSlider.prototype, "name", void 0);
|
|
899
|
+
__decorate([
|
|
900
|
+
Type('string'),
|
|
901
|
+
__metadata("design:type", String)
|
|
902
|
+
], InputSlider.prototype, "label", void 0);
|
|
903
|
+
__decorate([
|
|
904
|
+
Type('string'),
|
|
905
|
+
__metadata("design:type", String)
|
|
906
|
+
], InputSlider.prototype, "description", void 0);
|
|
907
|
+
__decorate([
|
|
908
|
+
OneOf(INPUT_COLORS),
|
|
909
|
+
__metadata("design:type", String)
|
|
910
|
+
], InputSlider.prototype, "color", void 0);
|
|
911
|
+
__decorate([
|
|
912
|
+
OneOf(INPUT_SLIDER_BRAND_COLORS),
|
|
913
|
+
__metadata("design:type", String)
|
|
914
|
+
], InputSlider.prototype, "brandColor", void 0);
|
|
915
|
+
__decorate([
|
|
916
|
+
Type('boolean'),
|
|
917
|
+
__metadata("design:type", Boolean)
|
|
918
|
+
], InputSlider.prototype, "invalid", void 0);
|
|
919
|
+
__decorate([
|
|
920
|
+
Type('string'),
|
|
921
|
+
__metadata("design:type", String)
|
|
922
|
+
], InputSlider.prototype, "invalidText", void 0);
|
|
923
|
+
__decorate([
|
|
924
|
+
Type('number'),
|
|
925
|
+
__metadata("design:type", Number)
|
|
926
|
+
], InputSlider.prototype, "min", void 0);
|
|
927
|
+
__decorate([
|
|
928
|
+
Type('number'),
|
|
929
|
+
__metadata("design:type", Number)
|
|
930
|
+
], InputSlider.prototype, "max", void 0);
|
|
931
|
+
__decorate([
|
|
932
|
+
Type('string'),
|
|
933
|
+
__metadata("design:type", String)
|
|
934
|
+
], InputSlider.prototype, "step", void 0);
|
|
935
|
+
__decorate([
|
|
936
|
+
Type('number'),
|
|
937
|
+
__metadata("design:type", Number)
|
|
938
|
+
], InputSlider.prototype, "debounce", void 0);
|
|
939
|
+
__decorate([
|
|
940
|
+
Type('boolean'),
|
|
941
|
+
__metadata("design:type", Boolean)
|
|
942
|
+
], InputSlider.prototype, "disabled", void 0);
|
|
943
|
+
__decorate([
|
|
944
|
+
Type('boolean'),
|
|
945
|
+
__metadata("design:type", Boolean)
|
|
946
|
+
], InputSlider.prototype, "readonly", void 0);
|
|
947
|
+
__decorate([
|
|
948
|
+
Type('boolean'),
|
|
949
|
+
__metadata("design:type", Boolean)
|
|
950
|
+
], InputSlider.prototype, "required", void 0);
|
|
951
|
+
__decorate([
|
|
952
|
+
Type('boolean'),
|
|
953
|
+
__metadata("design:type", Boolean)
|
|
954
|
+
], InputSlider.prototype, "autoInvalidOff", void 0);
|
|
955
|
+
__decorate([
|
|
956
|
+
ListenToConfig(),
|
|
957
|
+
__metadata("design:type", Function),
|
|
958
|
+
__metadata("design:paramtypes", [Object]),
|
|
959
|
+
__metadata("design:returntype", Promise)
|
|
960
|
+
], InputSlider.prototype, "configChanged", null);
|
|
961
|
+
let InputSliderIds = 0;
|