@carbon/web-components 2.45.0 → 2.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +919 -101
- package/dist/{16-BBj-4U6O.js → 16-BXPirV4t.js} +3 -3
- package/dist/16-BiojhJb6.js +28 -0
- package/dist/{16-Fw7MQsgz.js → 16-BirbARgt.js} +3 -3
- package/dist/{16-CsB-3CrK.js → 16-CNObEOvs.js} +3 -3
- package/dist/{16-t_6d5Xg6.js → 16-DThcsE9v.js} +3 -3
- package/dist/{16-DOSrxpkh.js → 16-T0hLy__N.js} +3 -3
- package/dist/{16-BFG46iFc.js → 16-mUGLFymm.js} +3 -3
- package/dist/{20-Dz5R4rWy.js → 20-BSzLZNRY.js} +3 -3
- package/dist/accordion.min.js +3 -3
- package/dist/ai-label.min.js +3 -3
- package/dist/ai-skeleton.min.js +3 -3
- package/dist/badge-indicator.min.js +3 -3
- package/dist/breadcrumb.min.js +3 -3
- package/dist/{button-BINUfYkQ.js → button-3n7S6dfU.js} +5 -5
- package/dist/{button-skeleton-Ce4GOnYk.js → button-skeleton-DE9AxBek.js} +4 -4
- package/dist/button.min.js +3 -3
- package/dist/chat-button.min.js +3 -3
- package/dist/{checkbox-YpDgBEVJ.js → checkbox-CFU6bnOa.js} +3 -3
- package/dist/checkbox.min.js +6 -6
- package/dist/{class-map-DzlEdlET.js → class-map-BLvVLLRH.js} +3 -3
- package/dist/code-snippet.min.js +5 -5
- package/dist/combo-box.min.js +6 -6
- package/dist/combo-button.min.js +3 -3
- package/dist/contained-list.min.js +70 -0
- package/dist/{content-switcher-item-CTUxWE3X.js → content-switcher-item-CXc-BbRX.js} +3 -3
- package/dist/content-switcher.min.js +3 -3
- package/dist/copy-button.min.js +3 -3
- package/dist/data-table.min.js +5 -5
- package/dist/date-picker.min.js +3 -3
- package/dist/defs-CcLNpvSO.js +28 -0
- package/dist/dropdown-item-CSXYY4Up.js +100 -0
- package/dist/dropdown.min.js +5 -5
- package/dist/feature-flags.min.js +3 -3
- package/dist/file-uploader.min.js +3 -3
- package/dist/floating-controller-ClaZwDaj.js +28 -0
- package/dist/floating-menu.min.js +3 -3
- package/dist/fluid-number-input.min.js +28 -0
- package/dist/fluid-search.min.js +3 -3
- package/dist/fluid-select.min.js +3 -3
- package/dist/fluid-text-input.min.js +3 -3
- package/dist/fluid-textarea.min.js +3 -3
- package/dist/{focus-4hYY4Dyy.js → focus-DCv16lgz.js} +3 -3
- package/dist/{form-Bi7CmOIh.js → form-D0wM2t2A.js} +3 -3
- package/dist/form-group.min.js +3 -3
- package/dist/form.min.js +3 -3
- package/dist/grid.min.js +3 -3
- package/dist/heading.min.js +3 -3
- package/dist/{host-listener-DvFKBeEg.js → host-listener-maKckXVl.js} +3 -3
- package/dist/icon-button.min.js +3 -3
- package/dist/icon-indicator.min.js +3 -3
- package/dist/{icon-loader-C0ZqVK1W.js → icon-loader-BiaaiIZd.js} +3 -3
- package/dist/{icon-loader-utils-BR71i9XR.js → icon-loader-utils-Dw7YsY3n.js} +3 -3
- package/dist/icon.min.js +3 -3
- package/dist/{if-defined-CcLoN68A.js → if-defined-B342gMhK.js} +3 -3
- package/dist/{if-non-empty-B1wddvKZ.js → if-non-empty-BXM4sQkm.js} +3 -3
- package/dist/inline-loading.min.js +3 -3
- package/dist/layer.min.js +3 -3
- package/dist/link.min.js +3 -3
- package/dist/list.min.js +3 -3
- package/dist/{lit-element-DXoDLiKG.js → lit-element-W7dQy3wx.js} +4 -4
- package/dist/{loading-icon-BqRwBxw_.js → loading-icon-9dSwtpx9.js} +3 -3
- package/dist/loading.min.js +3 -3
- package/dist/menu-button.min.js +6 -6
- package/dist/menu.min.js +16 -16
- package/dist/modal.min.js +3 -3
- package/dist/multi-select.min.js +3 -3
- package/dist/notification.min.js +32 -32
- package/dist/number-input.min.js +32 -31
- package/dist/overflow-menu.min.js +3 -3
- package/dist/page-header.min.js +3 -3
- package/dist/pagination.min.js +3 -3
- package/dist/password-input.min.js +31 -30
- package/dist/popover.min.js +3 -3
- package/dist/progress-bar.min.js +3 -3
- package/dist/progress-indicator.min.js +3 -3
- package/dist/{property-uTgGvQPP.js → property-D8KHfsO7.js} +3 -3
- package/dist/{query-assigned-elements-DzwbMc--.js → query-assigned-elements-CuK851Xm.js} +3 -3
- package/dist/radio-button.min.js +6 -6
- package/dist/search-BpfBrZ_q.js +58 -0
- package/dist/search.min.js +4 -4
- package/dist/{select-DrnoHpZf.js → select-Bu-C3DEh.js} +3 -3
- package/dist/{select-item-XCdOkQFq.js → select-item-CY7ZCgDO.js} +3 -3
- package/dist/{select-skeleton-D_sk9gT-.js → select-skeleton-Bj1W9rv-.js} +3 -3
- package/dist/select.min.js +3 -3
- package/dist/shape-indicator.min.js +3 -3
- package/dist/side-panel.min.js +8 -8
- package/dist/skeleton-icon.min.js +3 -3
- package/dist/skeleton-placeholder.min.js +3 -3
- package/dist/skeleton-text.min.js +3 -3
- package/dist/skip-to-content.min.js +3 -3
- package/dist/slider.min.js +186 -100
- package/dist/slug.min.js +3 -3
- package/dist/stack.min.js +3 -3
- package/dist/{state-WaBTtiEK.js → state-DVnprZ3A.js} +3 -3
- package/dist/structured-list.min.js +3 -3
- package/dist/tabs.min.js +3 -3
- package/dist/tag.min.js +3 -3
- package/dist/tearsheet.min.js +3 -3
- package/dist/text-input-CMLDDQcE.js +95 -0
- package/dist/text-input.min.js +4 -4
- package/dist/textarea.min.js +6 -6
- package/dist/tile.min.js +3 -3
- package/dist/time-picker.min.js +3 -3
- package/dist/toggle-tip.min.js +3 -3
- package/dist/toggle.min.js +3 -3
- package/dist/{tooltip-content-qsyHhcSH.js → tooltip-content-eYgOs_c2.js} +3 -3
- package/dist/tooltip.min.js +3 -3
- package/dist/tree-view.min.js +3 -3
- package/dist/ui-shell.min.js +5 -5
- package/dist/{unsafe-html-DmB1txAP.js → unsafe-html-SGvBIOsG.js} +3 -3
- package/es/components/button/button.scss.js +1 -1
- package/es/components/chat-button/chat-button.scss.js +1 -1
- package/es/components/code-snippet/code-snippet.scss.js +1 -1
- package/es/components/combo-box/combo-box.d.ts +10 -3
- package/es/components/combo-box/combo-box.js +58 -7
- package/es/components/combo-box/combo-box.js.map +1 -1
- package/es/components/combo-box/combo-box.scss.js +1 -1
- package/es/components/contained-list/contained-list-description.d.ts +18 -0
- package/es/components/contained-list/contained-list-description.js +38 -0
- package/es/components/contained-list/contained-list-description.js.map +1 -0
- package/es/components/contained-list/contained-list-item.d.ts +43 -0
- package/es/components/contained-list/contained-list-item.js +135 -0
- package/es/components/contained-list/contained-list-item.js.map +1 -0
- package/es/components/contained-list/contained-list.d.ts +37 -0
- package/es/components/contained-list/contained-list.js +95 -0
- package/es/components/contained-list/contained-list.js.map +1 -0
- package/es/components/contained-list/contained-list.scss.js +13 -0
- package/es/components/contained-list/contained-list.scss.js.map +1 -0
- package/es/components/contained-list/index.d.ts +9 -0
- package/es/components/contained-list/index.js +11 -0
- package/es/components/contained-list/index.js.map +1 -0
- package/es/components/copy-button/copy-button.scss.js +1 -1
- package/es/components/data-table/data-table.scss.js +1 -1
- package/es/components/dropdown/dropdown.d.ts +25 -1
- package/es/components/dropdown/dropdown.js +72 -3
- package/es/components/dropdown/dropdown.js.map +1 -1
- package/es/components/dropdown/dropdown.scss.js +1 -1
- package/es/components/fluid-number-input/fluid-number-input-skeleton.d.ts +17 -0
- package/es/components/fluid-number-input/fluid-number-input-skeleton.js +38 -0
- package/es/components/fluid-number-input/fluid-number-input-skeleton.js.map +1 -0
- package/es/components/fluid-number-input/fluid-number-input.d.ts +19 -0
- package/es/components/fluid-number-input/fluid-number-input.js +53 -0
- package/es/components/fluid-number-input/fluid-number-input.js.map +1 -0
- package/es/components/fluid-number-input/fluid-number-input.scss.js +13 -0
- package/es/components/fluid-number-input/fluid-number-input.scss.js.map +1 -0
- package/es/components/fluid-number-input/index.d.ts +8 -0
- package/es/components/fluid-number-input/index.js +10 -0
- package/es/components/fluid-number-input/index.js.map +1 -0
- package/es/components/fluid-search/fluid-search.scss.js +1 -1
- package/es/components/fluid-text-input/fluid-text-input.scss.js +1 -1
- package/es/components/icon-button/icon-button.scss.js +1 -1
- package/es/components/menu/menu-item.d.ts +1 -0
- package/es/components/menu/menu-item.js +12 -2
- package/es/components/menu/menu-item.js.map +1 -1
- package/es/components/menu/menu.d.ts +4 -1
- package/es/components/menu/menu.js +28 -3
- package/es/components/menu/menu.js.map +1 -1
- package/es/components/menu/menu.scss.js +1 -1
- package/es/components/menu-button/menu-button.d.ts +5 -2
- package/es/components/menu-button/menu-button.js +77 -7
- package/es/components/menu-button/menu-button.js.map +1 -1
- package/es/components/multi-select/multi-select.scss.js +1 -1
- package/es/components/notification/callout-notification.d.ts +1 -1
- package/es/components/notification/callout-notification.js +8 -9
- package/es/components/notification/callout-notification.js.map +1 -1
- package/es/components/number-input/number-input.d.ts +4 -0
- package/es/components/number-input/number-input.js +28 -12
- package/es/components/number-input/number-input.js.map +1 -1
- package/es/components/number-input/number-input.scss.js +1 -1
- package/es/components/password-input/password-input.d.ts +5 -0
- package/es/components/password-input/password-input.js +14 -5
- package/es/components/password-input/password-input.js.map +1 -1
- package/es/components/password-input/password-input.scss.js +1 -1
- package/es/components/popover/popover.js.map +1 -1
- package/es/components/search/search.scss.js +1 -1
- package/es/components/slider/slider-input.js +14 -18
- package/es/components/slider/slider-input.js.map +1 -1
- package/es/components/slider/slider.d.ts +7 -0
- package/es/components/slider/slider.js +226 -83
- package/es/components/slider/slider.js.map +1 -1
- package/es/components/slider/slider.scss.js +1 -1
- package/es/components/text-input/text-input-skeleton.d.ts +1 -1
- package/es/components/text-input/text-input-skeleton.js +4 -3
- package/es/components/text-input/text-input-skeleton.js.map +1 -1
- package/es/components/text-input/text-input.scss.js +1 -1
- package/es/components/textarea/textarea-skeleton.d.ts +5 -1
- package/es/components/textarea/textarea-skeleton.js +16 -2
- package/es/components/textarea/textarea-skeleton.js.map +1 -1
- package/es/components/time-picker/time-picker.scss.js +1 -1
- package/es/components/toggle-tip/toggletip.js.map +1 -1
- package/es-custom/components/button/button.scss.js +1 -1
- package/es-custom/components/chat-button/chat-button.scss.js +1 -1
- package/es-custom/components/code-snippet/code-snippet.scss.js +1 -1
- package/es-custom/components/combo-box/combo-box.d.ts +10 -3
- package/es-custom/components/combo-box/combo-box.js +58 -7
- package/es-custom/components/combo-box/combo-box.js.map +1 -1
- package/es-custom/components/combo-box/combo-box.scss.js +1 -1
- package/es-custom/components/contained-list/contained-list-description.d.ts +18 -0
- package/es-custom/components/contained-list/contained-list-description.js +38 -0
- package/es-custom/components/contained-list/contained-list-description.js.map +1 -0
- package/es-custom/components/contained-list/contained-list-item.d.ts +43 -0
- package/es-custom/components/contained-list/contained-list-item.js +135 -0
- package/es-custom/components/contained-list/contained-list-item.js.map +1 -0
- package/es-custom/components/contained-list/contained-list.d.ts +37 -0
- package/es-custom/components/contained-list/contained-list.js +95 -0
- package/es-custom/components/contained-list/contained-list.js.map +1 -0
- package/es-custom/components/contained-list/contained-list.scss.js +13 -0
- package/es-custom/components/contained-list/contained-list.scss.js.map +1 -0
- package/es-custom/components/contained-list/index.d.ts +9 -0
- package/es-custom/components/contained-list/index.js +11 -0
- package/es-custom/components/contained-list/index.js.map +1 -0
- package/es-custom/components/copy-button/copy-button.scss.js +1 -1
- package/es-custom/components/data-table/data-table.scss.js +1 -1
- package/es-custom/components/dropdown/dropdown.d.ts +25 -1
- package/es-custom/components/dropdown/dropdown.js +72 -3
- package/es-custom/components/dropdown/dropdown.js.map +1 -1
- package/es-custom/components/dropdown/dropdown.scss.js +1 -1
- package/es-custom/components/fluid-number-input/fluid-number-input-skeleton.d.ts +17 -0
- package/es-custom/components/fluid-number-input/fluid-number-input-skeleton.js +38 -0
- package/es-custom/components/fluid-number-input/fluid-number-input-skeleton.js.map +1 -0
- package/es-custom/components/fluid-number-input/fluid-number-input.d.ts +19 -0
- package/es-custom/components/fluid-number-input/fluid-number-input.js +53 -0
- package/es-custom/components/fluid-number-input/fluid-number-input.js.map +1 -0
- package/es-custom/components/fluid-number-input/fluid-number-input.scss.js +13 -0
- package/es-custom/components/fluid-number-input/fluid-number-input.scss.js.map +1 -0
- package/es-custom/components/fluid-number-input/index.d.ts +8 -0
- package/es-custom/components/fluid-number-input/index.js +10 -0
- package/es-custom/components/fluid-number-input/index.js.map +1 -0
- package/es-custom/components/fluid-search/fluid-search.scss.js +1 -1
- package/es-custom/components/fluid-text-input/fluid-text-input.scss.js +1 -1
- package/es-custom/components/icon-button/icon-button.scss.js +1 -1
- package/es-custom/components/menu/menu-item.d.ts +1 -0
- package/es-custom/components/menu/menu-item.js +12 -2
- package/es-custom/components/menu/menu-item.js.map +1 -1
- package/es-custom/components/menu/menu.d.ts +4 -1
- package/es-custom/components/menu/menu.js +28 -3
- package/es-custom/components/menu/menu.js.map +1 -1
- package/es-custom/components/menu/menu.scss.js +1 -1
- package/es-custom/components/menu-button/menu-button.d.ts +5 -2
- package/es-custom/components/menu-button/menu-button.js +77 -7
- package/es-custom/components/menu-button/menu-button.js.map +1 -1
- package/es-custom/components/multi-select/multi-select.scss.js +1 -1
- package/es-custom/components/notification/callout-notification.d.ts +1 -1
- package/es-custom/components/notification/callout-notification.js +8 -9
- package/es-custom/components/notification/callout-notification.js.map +1 -1
- package/es-custom/components/number-input/number-input.d.ts +4 -0
- package/es-custom/components/number-input/number-input.js +28 -12
- package/es-custom/components/number-input/number-input.js.map +1 -1
- package/es-custom/components/number-input/number-input.scss.js +1 -1
- package/es-custom/components/password-input/password-input.d.ts +5 -0
- package/es-custom/components/password-input/password-input.js +14 -5
- package/es-custom/components/password-input/password-input.js.map +1 -1
- package/es-custom/components/password-input/password-input.scss.js +1 -1
- package/es-custom/components/popover/popover.js.map +1 -1
- package/es-custom/components/search/search.scss.js +1 -1
- package/es-custom/components/slider/slider-input.js +14 -18
- package/es-custom/components/slider/slider-input.js.map +1 -1
- package/es-custom/components/slider/slider.d.ts +7 -0
- package/es-custom/components/slider/slider.js +226 -83
- package/es-custom/components/slider/slider.js.map +1 -1
- package/es-custom/components/slider/slider.scss.js +1 -1
- package/es-custom/components/text-input/text-input-skeleton.d.ts +1 -1
- package/es-custom/components/text-input/text-input-skeleton.js +4 -3
- package/es-custom/components/text-input/text-input-skeleton.js.map +1 -1
- package/es-custom/components/text-input/text-input.scss.js +1 -1
- package/es-custom/components/textarea/textarea-skeleton.d.ts +5 -1
- package/es-custom/components/textarea/textarea-skeleton.js +16 -2
- package/es-custom/components/textarea/textarea-skeleton.js.map +1 -1
- package/es-custom/components/time-picker/time-picker.scss.js +1 -1
- package/es-custom/components/toggle-tip/toggletip.js.map +1 -1
- package/lib/components/combo-box/combo-box.d.ts +10 -3
- package/lib/components/contained-list/contained-list-description.d.ts +18 -0
- package/lib/components/contained-list/contained-list-item.d.ts +43 -0
- package/lib/components/contained-list/contained-list.d.ts +37 -0
- package/lib/components/contained-list/index.d.ts +9 -0
- package/lib/components/dropdown/dropdown.d.ts +25 -1
- package/lib/components/fluid-number-input/fluid-number-input-skeleton.d.ts +17 -0
- package/lib/components/fluid-number-input/fluid-number-input.d.ts +19 -0
- package/lib/components/fluid-number-input/index.d.ts +8 -0
- package/lib/components/menu/menu-item.d.ts +1 -0
- package/lib/components/menu/menu.d.ts +4 -1
- package/lib/components/menu-button/menu-button.d.ts +5 -2
- package/lib/components/notification/callout-notification.d.ts +1 -1
- package/lib/components/number-input/number-input.d.ts +4 -0
- package/lib/components/password-input/password-input.d.ts +5 -0
- package/lib/components/slider/slider.d.ts +7 -0
- package/lib/components/text-input/text-input-skeleton.d.ts +1 -1
- package/lib/components/textarea/textarea-skeleton.d.ts +5 -1
- package/package.json +5 -6
- package/scss/components/combo-box/combo-box.scss +21 -0
- package/scss/components/contained-list/contained-list.scss +48 -0
- package/scss/components/fluid-number-input/fluid-number-input.scss +27 -0
- package/scss/components/menu/menu.scss +2 -0
- package/scss/components/number-input/number-input.scss +13 -0
- package/scss/components/password-input/password-input.scss +21 -17
- package/scss/components/search/search.scss +6 -0
- package/scss/components/slider/slider.scss +33 -5
- package/scss/components/text-input/text-input.scss +5 -2
- package/telemetry.yml +14 -8
- package/dist/16-BFl-qNrl.js +0 -28
- package/dist/dropdown-item-ALZ34_OA.js +0 -100
- package/dist/floating-controller-BO48DFk2.js +0 -28
- package/dist/search-DNdS00wP.js +0 -58
- package/dist/text-input-B9VDpl4N.js +0 -95
- package/dist/{16-Co6aAEol.js → 16-BcPXq4VE.js} +2 -2
- package/dist/{16-B7pwVoJF.js → 16-CCrV-EKs.js} +2 -2
- package/dist/{16-CGBcKyTF.js → 16-CsHohlYG.js} +2 -2
- package/dist/{16-CE0vhrU3.js → 16-D9rqeJJl.js} +2 -2
- package/dist/{16-Di-633li.js → 16-DEZ8LNs3.js} +2 -2
- package/dist/{20-BkqtasS4.js → 20-ZHgmfbqd.js} +2 -2
- package/dist/{carbon-element-C1z5CnbR.js → carbon-element-tFMTVffV.js} +2 -2
- package/dist/{collection-helpers-CpMBYTSn.js → collection-helpers-C8K_t6zj.js} +2 -2
- package/dist/{consume-CJ68u14F.js → consume-DNv3sWri.js} +2 -2
- package/dist/{directive-D38JskT2.js → directive-CwpJ03IP.js} +2 -2
- package/dist/{host-listener-C5X2a6BU.js → host-listener-BFnrKETa.js} +2 -2
- package/dist/{on-CHmODq20.js → on-Bh72-1o0.js} +2 -2
- package/dist/{query-ClymL-mj.js → query-DZZk85FD.js} +2 -2
- package/dist/{radio-group-manager-Cd-2cWQY.js → radio-group-manager-BbeUxJeN.js} +2 -2
- package/dist/{settings--npNF0B7.js → settings-CVGvqY8T.js} +2 -2
- package/dist/{shared-enums-DNTUOzm5.js → shared-enums-D2BNx9-N.js} +2 -2
- package/dist/{validity-WwpJqqG9.js → validity-CzCNnEZK.js} +2 -2
|
@@ -15,6 +15,9 @@ import FocusMixin from '../../globals/mixins/focus.js';
|
|
|
15
15
|
import FormMixin from '../../globals/mixins/form.js';
|
|
16
16
|
import HostListenerMixin from '../../globals/mixins/host-listener.js';
|
|
17
17
|
import HostListener from '../../globals/decorators/host-listener.js';
|
|
18
|
+
import '../tooltip/tooltip.js';
|
|
19
|
+
import '../tooltip/tooltip-content.js';
|
|
20
|
+
import '../tooltip/definition-tooltip.js';
|
|
18
21
|
import styles from './slider.scss.js';
|
|
19
22
|
import { carbonElement } from '../../globals/decorators/carbon-element.js';
|
|
20
23
|
|
|
@@ -111,6 +114,9 @@ let CDSSlider = class CDSSlider extends HostListenerMixin(FormMixin(FocusMixin(L
|
|
|
111
114
|
* Handles `pointerup` and `pointerleave` event to finishing dragging.
|
|
112
115
|
*/
|
|
113
116
|
this._endDrag = () => {
|
|
117
|
+
var _a, _b, _c, _d;
|
|
118
|
+
const wasDragging = this._dragging;
|
|
119
|
+
const wasDraggingUpper = this._draggingUpper;
|
|
114
120
|
if (this._dragging || this._draggingUpper) {
|
|
115
121
|
this.dragCoolDown = true;
|
|
116
122
|
}
|
|
@@ -139,6 +145,20 @@ let CDSSlider = class CDSSlider extends HostListenerMixin(FormMixin(FocusMixin(L
|
|
|
139
145
|
this._draggingUpper = false;
|
|
140
146
|
this._thumbNodeUpper.style.touchAction = '';
|
|
141
147
|
}
|
|
148
|
+
if (wasDragging) {
|
|
149
|
+
const shouldKeepOpen = ((_a = this._thumbNode) === null || _a === void 0 ? void 0 : _a.matches(':hover')) ||
|
|
150
|
+
((_b = this.shadowRoot) === null || _b === void 0 ? void 0 : _b.activeElement) === this._thumbNode;
|
|
151
|
+
if (!shouldKeepOpen) {
|
|
152
|
+
this._setThumbTooltipOpen(this._thumbNode, false);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
else if (wasDraggingUpper) {
|
|
156
|
+
const shouldKeepOpen = ((_c = this._thumbNodeUpper) === null || _c === void 0 ? void 0 : _c.matches(':hover')) ||
|
|
157
|
+
((_d = this.shadowRoot) === null || _d === void 0 ? void 0 : _d.activeElement) === this._thumbNodeUpper;
|
|
158
|
+
if (!shouldKeepOpen) {
|
|
159
|
+
this._setThumbTooltipOpen(this._thumbNodeUpper, false);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
142
162
|
if (this._dragging || this._draggingUpper) {
|
|
143
163
|
this.dragCooldownTimeout = window.setTimeout(() => {
|
|
144
164
|
this.dragCoolDown = false;
|
|
@@ -211,16 +231,21 @@ let CDSSlider = class CDSSlider extends HostListenerMixin(FormMixin(FocusMixin(L
|
|
|
211
231
|
* Specify whether you want the underlying label to be visually hidden
|
|
212
232
|
*/
|
|
213
233
|
this.hideLabel = false;
|
|
234
|
+
/**
|
|
235
|
+
* The callback to format the label associated with the minimum/maximum value
|
|
236
|
+
* and the value tooltip when hideTextInput is true.
|
|
237
|
+
*/
|
|
238
|
+
this.formatLabel = (value, label) => `${value}${label !== null && label !== void 0 ? label : ''}`;
|
|
214
239
|
/**
|
|
215
240
|
* The formatter for the text for maximum value.
|
|
216
241
|
* Should be changed upon the locale the UI is rendered with.
|
|
217
242
|
*/
|
|
218
|
-
this.formatMaxText = (max, maxLabel) =>
|
|
243
|
+
this.formatMaxText = (max, maxLabel) => this.formatLabel(Number(max), maxLabel);
|
|
219
244
|
/**
|
|
220
245
|
* The formatter for the text for min/max value.
|
|
221
246
|
* Should be changed upon the locale the UI is rendered with.
|
|
222
247
|
*/
|
|
223
|
-
this.formatMinText = (min, minLabel) =>
|
|
248
|
+
this.formatMinText = (min, minLabel) => this.formatLabel(Number(min), minLabel);
|
|
224
249
|
/**
|
|
225
250
|
* true to specify if the control is invalid.
|
|
226
251
|
*/
|
|
@@ -300,6 +325,15 @@ let CDSSlider = class CDSSlider extends HostListenerMixin(FormMixin(FocusMixin(L
|
|
|
300
325
|
var _a;
|
|
301
326
|
(_a = this._thumbNode) === null || _a === void 0 ? void 0 : _a.focus();
|
|
302
327
|
}
|
|
328
|
+
_setThumbTooltipOpen(thumb, open) {
|
|
329
|
+
if (!this.hideTextInput || !thumb) {
|
|
330
|
+
return;
|
|
331
|
+
}
|
|
332
|
+
const tooltip = thumb.closest(`${prefix}-tooltip`);
|
|
333
|
+
if (tooltip) {
|
|
334
|
+
tooltip.open = open;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
303
337
|
_handleFormdata(event) {
|
|
304
338
|
const { formData } = event;
|
|
305
339
|
const { disabled, name, value } = this;
|
|
@@ -361,21 +395,22 @@ let CDSSlider = class CDSSlider extends HostListenerMixin(FormMixin(FocusMixin(L
|
|
|
361
395
|
* Handles `pointerdown` event on the thumb to start dragging.
|
|
362
396
|
*/
|
|
363
397
|
_startDrag(event) {
|
|
398
|
+
var _a;
|
|
364
399
|
if (!this.readonly && !this.disabled) {
|
|
365
400
|
let eventContainer = event.target.id;
|
|
366
401
|
if (!eventContainer) {
|
|
367
|
-
const
|
|
368
|
-
|
|
369
|
-
eventContainer = event.target.parentElement.closest('.cds--slider__thumb-wrapper').id;
|
|
370
|
-
}
|
|
402
|
+
const thumb = event.target.closest(`.${prefix}--slider__thumb`);
|
|
403
|
+
eventContainer = (_a = thumb === null || thumb === void 0 ? void 0 : thumb.id) !== null && _a !== void 0 ? _a : '';
|
|
371
404
|
}
|
|
372
405
|
if (eventContainer === 'thumb') {
|
|
373
406
|
this._dragging = true;
|
|
374
407
|
this._thumbNode.style.touchAction = 'none';
|
|
408
|
+
this._setThumbTooltipOpen(this._thumbNode, true);
|
|
375
409
|
}
|
|
376
|
-
else {
|
|
410
|
+
else if (eventContainer === 'thumb-upper') {
|
|
377
411
|
this._draggingUpper = true;
|
|
378
412
|
this._thumbNodeUpper.style.touchAction = 'none';
|
|
413
|
+
this._setThumbTooltipOpen(this._thumbNodeUpper, true);
|
|
379
414
|
}
|
|
380
415
|
}
|
|
381
416
|
}
|
|
@@ -383,12 +418,11 @@ let CDSSlider = class CDSSlider extends HostListenerMixin(FormMixin(FocusMixin(L
|
|
|
383
418
|
* Handles `pointerdown` event on the track to update the thumb position and the value as necessary.
|
|
384
419
|
*/
|
|
385
420
|
_handleClick(event) {
|
|
421
|
+
var _a;
|
|
386
422
|
let eventContainer = event.target.id;
|
|
387
423
|
if (!eventContainer) {
|
|
388
|
-
const
|
|
389
|
-
|
|
390
|
-
eventContainer = event.target.parentElement.closest('.cds--slider__thumb-wrapper').id;
|
|
391
|
-
}
|
|
424
|
+
const thumb = event.target.closest(`.${prefix}--slider__thumb`);
|
|
425
|
+
eventContainer = (_a = thumb === null || thumb === void 0 ? void 0 : thumb.id) !== null && _a !== void 0 ? _a : '';
|
|
392
426
|
}
|
|
393
427
|
if (!this.disabled && !this.readonly) {
|
|
394
428
|
const { _trackNode: trackNode } = this;
|
|
@@ -481,6 +515,7 @@ let CDSSlider = class CDSSlider extends HostListenerMixin(FormMixin(FocusMixin(L
|
|
|
481
515
|
const thumbPosition = event.clientX;
|
|
482
516
|
const { left: trackLeft, width: trackWidth } = this._trackNode.getBoundingClientRect();
|
|
483
517
|
if (dragging) {
|
|
518
|
+
this._setThumbTooltipOpen(this._thumbNode, true);
|
|
484
519
|
const position = (isRtl
|
|
485
520
|
? trackLeft + trackWidth - thumbPosition
|
|
486
521
|
: thumbPosition - trackLeft) / trackWidth;
|
|
@@ -498,6 +533,7 @@ let CDSSlider = class CDSSlider extends HostListenerMixin(FormMixin(FocusMixin(L
|
|
|
498
533
|
}
|
|
499
534
|
}
|
|
500
535
|
else if (draggingUpper) {
|
|
536
|
+
this._setThumbTooltipOpen(this._thumbNodeUpper, true);
|
|
501
537
|
const position = (isRtl
|
|
502
538
|
? trackLeft + trackWidth - thumbPosition
|
|
503
539
|
: thumbPosition - trackLeft) / trackWidth;
|
|
@@ -634,6 +670,9 @@ let CDSSlider = class CDSSlider extends HostListenerMixin(FormMixin(FocusMixin(L
|
|
|
634
670
|
if (changedProperties.has('invalid')) {
|
|
635
671
|
input.invalid = this.invalid;
|
|
636
672
|
}
|
|
673
|
+
if (changedProperties.has('warn')) {
|
|
674
|
+
input.warn = this.warn;
|
|
675
|
+
}
|
|
637
676
|
if (changedProperties.has('hideTextInput')) {
|
|
638
677
|
input.hideTextInput = this.hideTextInput;
|
|
639
678
|
}
|
|
@@ -679,7 +718,7 @@ let CDSSlider = class CDSSlider extends HostListenerMixin(FormMixin(FocusMixin(L
|
|
|
679
718
|
return true;
|
|
680
719
|
}
|
|
681
720
|
render() {
|
|
682
|
-
const { disabled, formatMaxText, formatMinText, labelText, hideLabel, max, min, maxLabel, minLabel, readonly, invalidText, isValid, warn, warnText, value, unstable_valueUpper, _rate: rate, _rateUpper: rateUpper, _handleClickLabel: handleClickLabel, _handleKeydown: handleKeydown, _handleClick: handleClick, onDrag, _endDrag: endDrag, } = this;
|
|
721
|
+
const { disabled, formatLabel, formatMaxText, formatMinText, labelText, hideLabel, hideTextInput, max, min, maxLabel, minLabel, readonly, invalidText, isValid, warn, warnText, value, unstable_valueUpper, _rate: rate, _rateUpper: rateUpper, _handleClickLabel: handleClickLabel, _handleKeydown: handleKeydown, _handleClick: handleClick, onDrag, _endDrag: endDrag, } = this;
|
|
683
722
|
const isInteractive = !readonly && !disabled;
|
|
684
723
|
const normalizedProps = {
|
|
685
724
|
invalid: isInteractive && !isValid,
|
|
@@ -695,17 +734,24 @@ let CDSSlider = class CDSSlider extends HostListenerMixin(FormMixin(FocusMixin(L
|
|
|
695
734
|
[`${prefix}--slider--disabled`]: disabled,
|
|
696
735
|
[`${prefix}--slider--readonly`]: readonly,
|
|
697
736
|
});
|
|
698
|
-
const
|
|
699
|
-
[`${prefix}--icon-tooltip`]:
|
|
700
|
-
[`${prefix}--slider__thumb-wrapper`]:
|
|
737
|
+
const thumbLowerWrapperClasses = classMap({
|
|
738
|
+
[`${prefix}--icon-tooltip`]: true,
|
|
739
|
+
[`${prefix}--slider__thumb-wrapper`]: true,
|
|
701
740
|
[`${prefix}--slider__thumb-wrapper--lower`]: unstable_valueUpper || unstable_valueUpper === '',
|
|
702
|
-
|
|
741
|
+
});
|
|
742
|
+
const thumbLowerClasses = classMap({
|
|
743
|
+
[`${prefix}--slider__thumb`]: true,
|
|
744
|
+
[`${prefix}--slider__thumb--lower`]: unstable_valueUpper || unstable_valueUpper === '',
|
|
703
745
|
[`${prefix}--slider__thumb-disabled`]: disabled,
|
|
704
746
|
});
|
|
705
|
-
const
|
|
747
|
+
const thumbUpperWrapperClasses = classMap({
|
|
706
748
|
[`${prefix}--icon-tooltip`]: true,
|
|
707
749
|
[`${prefix}--slider__thumb-wrapper`]: true,
|
|
708
750
|
[`${prefix}--slider__thumb-wrapper--upper`]: true,
|
|
751
|
+
});
|
|
752
|
+
const thumbUpperClasses = classMap({
|
|
753
|
+
[`${prefix}--slider__thumb`]: true,
|
|
754
|
+
[`${prefix}--slider__thumb--upper`]: true,
|
|
709
755
|
[`${prefix}--slider__thumb-disabled`]: disabled,
|
|
710
756
|
});
|
|
711
757
|
return html `
|
|
@@ -727,77 +773,171 @@ let CDSSlider = class CDSSlider extends HostListenerMixin(FormMixin(FocusMixin(L
|
|
|
727
773
|
class="${sliderClasses}"
|
|
728
774
|
tabindex="-1"
|
|
729
775
|
role="presentation">
|
|
730
|
-
|
|
731
|
-
id="thumb"
|
|
732
|
-
class="${thumbLowerClasses}"
|
|
733
|
-
role="slider"
|
|
734
|
-
tabindex="${!readonly ? 0 : -1}"
|
|
735
|
-
aria-valuemax="${max}"
|
|
736
|
-
aria-valuemin="${min}"
|
|
737
|
-
aria-valuenow="${value}"
|
|
738
|
-
style="left: ${rate * 100}%"
|
|
739
|
-
@pointerdown="${onDrag}">
|
|
740
|
-
${(unstable_valueUpper || unstable_valueUpper === '') && !readonly
|
|
776
|
+
${hideTextInput
|
|
741
777
|
? html `
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
778
|
+
<cds-tooltip
|
|
779
|
+
class="${thumbLowerWrapperClasses}"
|
|
780
|
+
style="left: ${rate * 100}%"
|
|
781
|
+
align="top"
|
|
782
|
+
.dropShadow=${false}>
|
|
783
|
+
<div
|
|
784
|
+
id="thumb"
|
|
785
|
+
class="${thumbLowerClasses}"
|
|
786
|
+
role="slider"
|
|
787
|
+
tabindex="${!readonly ? 0 : -1}"
|
|
788
|
+
aria-valuemax="${max}"
|
|
789
|
+
aria-valuemin="${min}"
|
|
790
|
+
aria-valuenow="${value}"
|
|
791
|
+
aria-valuetext="${formatLabel(Number(value), undefined)}"
|
|
792
|
+
@pointerdown="${onDrag}">
|
|
793
|
+
${unstable_valueUpper || unstable_valueUpper === ''
|
|
794
|
+
? html `
|
|
795
|
+
<svg
|
|
796
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
797
|
+
viewBox="0 0 16 24"
|
|
798
|
+
class="${prefix}--slider__thumb-icon ${prefix}--slider__thumb-icon--lower">
|
|
799
|
+
<path
|
|
800
|
+
d="M15.08 6.46H16v11.08h-.92zM4.46 17.54c-.25 0-.46-.21-.46-.46V6.92a.465.465 0 0 1 .69-.4l8.77 5.08a.46.46 0 0 1 0 .8l-8.77 5.08c-.07.04-.15.06-.23.06Z"></path>
|
|
801
|
+
<path fill="none" d="M-4 0h24v24H-4z"></path>
|
|
802
|
+
</svg>
|
|
803
|
+
<svg
|
|
804
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
805
|
+
viewBox="0 0 16 24"
|
|
806
|
+
class="${prefix}--slider__thumb-icon ${prefix}--slider__thumb-icon--lower cds--slider__thumb-icon--focus">
|
|
807
|
+
<path
|
|
808
|
+
d="M15.08 6.46H16v11.08h-.92zM4.46 17.54c-.25 0-.46-.21-.46-.46V6.92a.465.465 0 0 1 .69-.4l8.77 5.08a.46.46 0 0 1 0 .8l-8.77 5.08c-.07.04-.15.06-.23.06Z"></path>
|
|
809
|
+
<path fill="none" d="M-4 0h24v24H-4z"></path>
|
|
810
|
+
<path d="M15.08 0H16v6.46h-.92z"></path>
|
|
811
|
+
<path d="M0 0h.92v24H0zM15.08 0H16v24h-.92z"></path>
|
|
812
|
+
<path d="M0 .92V0h16v.92zM0 24v-.92h16V24z"></path>
|
|
813
|
+
</svg>
|
|
814
|
+
`
|
|
815
|
+
: ``}
|
|
762
816
|
</div>
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
817
|
+
<cds-tooltip-content>
|
|
818
|
+
${formatLabel(Number(value), undefined)}
|
|
819
|
+
</cds-tooltip-content>
|
|
820
|
+
</cds-tooltip>
|
|
821
|
+
`
|
|
822
|
+
: html `
|
|
768
823
|
<div
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
824
|
+
class="${thumbLowerWrapperClasses}"
|
|
825
|
+
style="left: ${rate * 100}%">
|
|
826
|
+
<div
|
|
827
|
+
id="thumb"
|
|
828
|
+
class="${thumbLowerClasses}"
|
|
829
|
+
role="slider"
|
|
830
|
+
tabindex="${!readonly ? 0 : -1}"
|
|
831
|
+
aria-valuemax="${max}"
|
|
832
|
+
aria-valuemin="${min}"
|
|
833
|
+
aria-valuenow="${value}"
|
|
834
|
+
aria-valuetext="${formatLabel(Number(value), undefined)}"
|
|
835
|
+
@pointerdown="${onDrag}">
|
|
836
|
+
${unstable_valueUpper || unstable_valueUpper === ''
|
|
837
|
+
? html `
|
|
838
|
+
<svg
|
|
839
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
840
|
+
viewBox="0 0 16 24"
|
|
841
|
+
class="${prefix}--slider__thumb-icon ${prefix}--slider__thumb-icon--lower">
|
|
842
|
+
<path
|
|
843
|
+
d="M15.08 6.46H16v11.08h-.92zM4.46 17.54c-.25 0-.46-.21-.46-.46V6.92a.465.465 0 0 1 .69-.4l8.77 5.08a.46.46 0 0 1 0 .8l-8.77 5.08c-.07.04-.15.06-.23.06Z"></path>
|
|
844
|
+
<path fill="none" d="M-4 0h24v24H-4z"></path>
|
|
845
|
+
</svg>
|
|
846
|
+
<svg
|
|
847
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
848
|
+
viewBox="0 0 16 24"
|
|
849
|
+
class="${prefix}--slider__thumb-icon ${prefix}--slider__thumb-icon--lower cds--slider__thumb-icon--focus">
|
|
850
|
+
<path
|
|
851
|
+
d="M15.08 6.46H16v11.08h-.92zM4.46 17.54c-.25 0-.46-.21-.46-.46V6.92a.465.465 0 0 1 .69-.4l8.77 5.08a.46.46 0 0 1 0 .8l-8.77 5.08c-.07.04-.15.06-.23.06Z"></path>
|
|
852
|
+
<path fill="none" d="M-4 0h24v24H-4z"></path>
|
|
853
|
+
<path d="M15.08 0H16v6.46h-.92z"></path>
|
|
854
|
+
<path d="M0 0h.92v24H0zM15.08 0H16v24h-.92z"></path>
|
|
855
|
+
<path d="M0 .92V0h16v.92zM0 24v-.92h16V24z"></path>
|
|
856
|
+
</svg>
|
|
857
|
+
`
|
|
858
|
+
: ``}
|
|
798
859
|
</div>
|
|
799
860
|
</div>
|
|
800
|
-
`
|
|
861
|
+
`}
|
|
862
|
+
${unstable_valueUpper || unstable_valueUpper === ''
|
|
863
|
+
? hideTextInput
|
|
864
|
+
? html `
|
|
865
|
+
<cds-tooltip
|
|
866
|
+
class="${thumbUpperWrapperClasses}"
|
|
867
|
+
style="left: ${rateUpper * 100}%"
|
|
868
|
+
align="top"
|
|
869
|
+
.dropShadow=${false}>
|
|
870
|
+
<div
|
|
871
|
+
id="thumb-upper"
|
|
872
|
+
class="${thumbUpperClasses}"
|
|
873
|
+
role="slider"
|
|
874
|
+
tabindex="${!readonly ? 0 : -1}"
|
|
875
|
+
aria-valuemax="${max}"
|
|
876
|
+
aria-valuemin="${min}"
|
|
877
|
+
aria-valuenow="${unstable_valueUpper}"
|
|
878
|
+
aria-valuetext="${formatLabel(Number(unstable_valueUpper), undefined)}"
|
|
879
|
+
@pointerdown="${onDrag}">
|
|
880
|
+
<svg
|
|
881
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
882
|
+
viewBox="0 0 16 24"
|
|
883
|
+
class="${prefix}--slider__thumb-icon ${prefix}--slider__thumb-icon--upper">
|
|
884
|
+
<path
|
|
885
|
+
d="M0 6.46h.92v11.08H0zM11.54 6.46c.25 0 .46.21.46.46v10.15a.465.465 0 0 1-.69.4L2.54 12.4a.46.46 0 0 1 0-.8l8.77-5.08c.07-.04.15-.06.23-.06Z"></path>
|
|
886
|
+
<path fill="none" d="M-4 0h24v24H-4z"></path>
|
|
887
|
+
</svg>
|
|
888
|
+
<svg
|
|
889
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
890
|
+
viewBox="0 0 16 24"
|
|
891
|
+
class="${prefix}--slider__thumb-icon ${prefix}--slider__thumb-icon--upper cds--slider__thumb-icon--focus">
|
|
892
|
+
<path
|
|
893
|
+
d="M0 6.46h.92v11.08H0zM11.54 6.46c.25 0 .46.21.46.46v10.15a.465.465 0 0 1-.69.4L2.54 12.4a.46.46 0 0 1 0-.8l8.77-5.08c.07-.04.15-.06.23-.06Z"></path>
|
|
894
|
+
<path fill="none" d="M-4 0h24v24H-4z"></path>
|
|
895
|
+
<path d="M.92 24H0v-6.46h.92z"></path>
|
|
896
|
+
<path d="M16 24h-.92V0H16zM.92 24H0V0h.92z"></path>
|
|
897
|
+
<path d="M16 23.08V24H0v-.92zM16 0v.92H0V0z"></path>
|
|
898
|
+
</svg>
|
|
899
|
+
</div>
|
|
900
|
+
<cds-tooltip-content>
|
|
901
|
+
${formatLabel(Number(unstable_valueUpper), undefined)}
|
|
902
|
+
</cds-tooltip-content>
|
|
903
|
+
</cds-tooltip>
|
|
904
|
+
`
|
|
905
|
+
: html `
|
|
906
|
+
<div
|
|
907
|
+
class="${thumbUpperWrapperClasses}"
|
|
908
|
+
style="left: ${rateUpper * 100}%">
|
|
909
|
+
<div
|
|
910
|
+
id="thumb-upper"
|
|
911
|
+
class="${thumbUpperClasses}"
|
|
912
|
+
role="slider"
|
|
913
|
+
tabindex="${!readonly ? 0 : -1}"
|
|
914
|
+
aria-valuemax="${max}"
|
|
915
|
+
aria-valuemin="${min}"
|
|
916
|
+
aria-valuenow="${unstable_valueUpper}"
|
|
917
|
+
aria-valuetext="${formatLabel(Number(unstable_valueUpper), undefined)}"
|
|
918
|
+
@pointerdown="${onDrag}">
|
|
919
|
+
<svg
|
|
920
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
921
|
+
viewBox="0 0 16 24"
|
|
922
|
+
class="${prefix}--slider__thumb-icon ${prefix}--slider__thumb-icon--upper">
|
|
923
|
+
<path
|
|
924
|
+
d="M0 6.46h.92v11.08H0zM11.54 6.46c.25 0 .46.21.46.46v10.15a.465.465 0 0 1-.69.4L2.54 12.4a.46.46 0 0 1 0-.8l8.77-5.08c.07-.04.15-.06.23-.06Z"></path>
|
|
925
|
+
<path fill="none" d="M-4 0h24v24H-4z"></path>
|
|
926
|
+
</svg>
|
|
927
|
+
<svg
|
|
928
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
929
|
+
viewBox="0 0 16 24"
|
|
930
|
+
class="${prefix}--slider__thumb-icon ${prefix}--slider__thumb-icon--upper cds--slider__thumb-icon--focus">
|
|
931
|
+
<path
|
|
932
|
+
d="M0 6.46h.92v11.08H0zM11.54 6.46c.25 0 .46.21.46.46v10.15a.465.465 0 0 1-.69.4L2.54 12.4a.46.46 0 0 1 0-.8l8.77-5.08c.07-.04.15-.06.23-.06Z"></path>
|
|
933
|
+
<path fill="none" d="M-4 0h24v24H-4z"></path>
|
|
934
|
+
<path d="M.92 24H0v-6.46h.92z"></path>
|
|
935
|
+
<path d="M16 24h-.92V0H16zM.92 24H0V0h.92z"></path>
|
|
936
|
+
<path d="M16 23.08V24H0v-.92zM16 0v.92H0V0z"></path>
|
|
937
|
+
</svg>
|
|
938
|
+
</div>
|
|
939
|
+
</div>
|
|
940
|
+
`
|
|
801
941
|
: html ``}
|
|
802
942
|
<div id="track" class="${prefix}--slider__track"></div>
|
|
803
943
|
${unstable_valueUpper || unstable_valueUpper === ''
|
|
@@ -892,6 +1032,9 @@ __decorate([
|
|
|
892
1032
|
__decorate([
|
|
893
1033
|
property({ attribute: 'hide-label', type: Boolean, reflect: true })
|
|
894
1034
|
], CDSSlider.prototype, "hideLabel", void 0);
|
|
1035
|
+
__decorate([
|
|
1036
|
+
property({ attribute: false })
|
|
1037
|
+
], CDSSlider.prototype, "formatLabel", void 0);
|
|
895
1038
|
__decorate([
|
|
896
1039
|
property({ attribute: false })
|
|
897
1040
|
], CDSSlider.prototype, "formatMaxText", void 0);
|