@taiga-ui/kit 2.37.1 → 2.40.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/abstract/input-slider.d.ts +9 -5
- package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
- package/bundles/taiga-ui-kit-abstract.umd.js +8 -10
- package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-abstract.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.js +8 -0
- package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.js +28 -18
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +5 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.js +5 -8
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.js +12 -2
- package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +153 -125
- package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +18 -9
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +25 -4
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.js +26 -6
- package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-text-area.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-text-area.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +25 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.js +1 -0
- package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
- package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
- package/components/breadcrumbs/breadcrumbs.component.d.ts +1 -1
- package/components/calendar-range/calendar-range.component.d.ts +2 -2
- package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
- package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +1 -1
- package/components/data-list-wrapper/data-list-wrapper.component.d.ts +2 -2
- package/components/filter/filter.component.d.ts +1 -1
- package/components/input-date/input-date.component.d.ts +1 -1
- package/components/input-date-range/input-date-range.component.d.ts +1 -1
- package/components/input-file/input-file.component.d.ts +6 -6
- package/components/input-files/input-files.component.d.ts +3 -2
- package/components/input-files/taiga-ui-kit-components-input-files.metadata.json +1 -1
- package/components/input-number/input-number.component.d.ts +6 -3
- package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
- package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
- package/components/input-phone-international/input-phone-international.component.d.ts +1 -1
- package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
- package/components/input-range/input-range.component.d.ts +2 -1
- package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
- package/components/input-slider/input-slider.component.d.ts +39 -22
- package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
- package/components/input-tag/input-tag.component.d.ts +10 -3
- package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
- package/components/input-time/input-time.component.d.ts +2 -2
- package/components/multi-select/multi-select-options.d.ts +1 -1
- package/components/multi-select/multi-select.component.d.ts +3 -3
- package/components/progress/progress-segmented/progress-segmented.component.d.ts +1 -1
- package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
- package/components/radio-list/radio-list.component.d.ts +1 -1
- package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
- package/components/slider/slider-key-steps.directive.d.ts +3 -1
- package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
- package/components/tabs/tabs/tabs.component.d.ts +1 -1
- package/components/tabs/tabs-with-more/tabs-with-more.component.d.ts +1 -1
- package/components/tag/index.d.ts +1 -0
- package/components/tag/tag-options.d.ts +12 -0
- package/components/tag/tag.component.d.ts +3 -1
- package/components/tag/taiga-ui-kit-components-tag.metadata.json +1 -1
- package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
- package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
- package/esm2015/abstract/input-slider.js +9 -7
- package/esm2015/components/accordion/accordion-item/accordion-item.component.js +1 -1
- package/esm2015/components/breadcrumbs/breadcrumbs.component.js +1 -1
- package/esm2015/components/calendar-range/calendar-range.component.js +1 -1
- package/esm2015/components/checkbox/checkbox.component.js +3 -3
- package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +1 -1
- package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +1 -1
- package/esm2015/components/filter/filter.component.js +1 -1
- package/esm2015/components/input-date/input-date.component.js +1 -1
- package/esm2015/components/input-date-range/input-date-range.component.js +1 -1
- package/esm2015/components/input-file/input-file.component.js +1 -1
- package/esm2015/components/input-files/input-files.component.js +5 -1
- package/esm2015/components/input-number/input-number.component.js +29 -20
- package/esm2015/components/input-number/input-number.module.js +5 -1
- package/esm2015/components/input-phone/input-phone.component.js +7 -10
- package/esm2015/components/input-phone-international/input-phone-international.component.js +7 -3
- package/esm2015/components/input-range/input-range.component.js +10 -4
- package/esm2015/components/input-slider/input-slider.component.js +155 -108
- package/esm2015/components/input-slider/input-slider.module.js +6 -12
- package/esm2015/components/input-tag/input-tag.component.js +21 -12
- package/esm2015/components/input-time/input-time.component.js +1 -1
- package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +1 -1
- package/esm2015/components/multi-select/multi-select-options.js +1 -1
- package/esm2015/components/multi-select/multi-select.component.js +1 -1
- package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +1 -1
- package/esm2015/components/radio/radio.component.js +2 -2
- package/esm2015/components/radio-list/radio-list.component.js +1 -1
- package/esm2015/components/select/select.component.js +2 -2
- package/esm2015/components/slider/slider-key-steps.directive.js +14 -1
- package/esm2015/components/slider/slider.component.js +5 -5
- package/esm2015/components/tabs/tabs/tabs.component.js +1 -1
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +1 -1
- package/esm2015/components/tag/index.js +2 -1
- package/esm2015/components/tag/tag-options.js +15 -0
- package/esm2015/components/tag/tag.component.js +11 -7
- package/esm2015/components/text-area/text-area.component.js +3 -3
- package/esm2015/components/toggle/toggle.component.js +3 -3
- package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +26 -2
- package/esm2015/pipes/field-error/field-error-content-pipe.js +1 -1
- package/esm2015/pipes/field-error/field-error-pipe.js +1 -1
- package/esm2015/pipes/filter-by-input/filter-by-input.base.js +1 -1
- package/esm2015/tokens/tag-status.js +2 -1
- package/esm2015/types/key-steps.js +1 -1
- package/esm2015/utils/mask/create-time-mask.js +1 -1
- package/esm2015/utils/miscellaneous/create-default-day-range-periods.js +1 -1
- package/esm2015/utils/miscellaneous/create-time-periods.js +1 -1
- package/esm5/abstract/input-slider.js +9 -11
- package/esm5/components/accordion/accordion-item/accordion-item.component.js +1 -1
- package/esm5/components/breadcrumbs/breadcrumbs.component.js +1 -1
- package/esm5/components/calendar-range/calendar-range.component.js +1 -1
- package/esm5/components/checkbox/checkbox.component.js +3 -3
- package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +1 -1
- package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +1 -1
- package/esm5/components/filter/filter.component.js +1 -1
- package/esm5/components/input-date/input-date.component.js +1 -1
- package/esm5/components/input-date-range/input-date-range.component.js +1 -1
- package/esm5/components/input-file/input-file.component.js +1 -1
- package/esm5/components/input-files/input-files.component.js +9 -1
- package/esm5/components/input-number/input-number.component.js +26 -17
- package/esm5/components/input-number/input-number.module.js +5 -1
- package/esm5/components/input-phone/input-phone.component.js +7 -10
- package/esm5/components/input-phone-international/input-phone-international.component.js +7 -3
- package/esm5/components/input-range/input-range.component.js +14 -4
- package/esm5/components/input-slider/input-slider.component.js +153 -117
- package/esm5/components/input-slider/input-slider.module.js +6 -12
- package/esm5/components/input-tag/input-tag.component.js +21 -12
- package/esm5/components/input-time/input-time.component.js +1 -1
- package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +1 -1
- package/esm5/components/multi-select/multi-select-options.js +1 -1
- package/esm5/components/multi-select/multi-select.component.js +1 -1
- package/esm5/components/progress/progress-segmented/progress-segmented.component.js +1 -1
- package/esm5/components/radio/radio.component.js +2 -2
- package/esm5/components/radio-list/radio-list.component.js +1 -1
- package/esm5/components/select/select.component.js +2 -2
- package/esm5/components/slider/slider-key-steps.directive.js +22 -1
- package/esm5/components/slider/slider.component.js +5 -5
- package/esm5/components/tabs/tabs/tabs.component.js +1 -1
- package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +1 -1
- package/esm5/components/tag/index.js +2 -1
- package/esm5/components/tag/tag-options.js +16 -0
- package/esm5/components/tag/tag.component.js +11 -7
- package/esm5/components/text-area/text-area.component.js +3 -3
- package/esm5/components/toggle/toggle.component.js +3 -3
- package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +26 -2
- package/esm5/pipes/field-error/field-error-content-pipe.js +1 -1
- package/esm5/pipes/field-error/field-error-pipe.js +1 -1
- package/esm5/pipes/filter-by-input/filter-by-input.base.js +1 -1
- package/esm5/tokens/tag-status.js +2 -1
- package/esm5/types/key-steps.js +1 -1
- package/esm5/utils/mask/create-time-mask.js +1 -1
- package/esm5/utils/miscellaneous/create-default-day-range-periods.js +1 -1
- package/esm5/utils/miscellaneous/create-time-periods.js +1 -1
- package/fesm2015/taiga-ui-kit-abstract.js +8 -6
- package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-accordion.js +1 -1
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox.js +2 -2
- package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-files.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-number.js +32 -20
- package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +6 -2
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone.js +6 -9
- package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-range.js +8 -2
- package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-slider.js +156 -116
- package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +21 -12
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio.js +1 -1
- package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select.js +1 -1
- package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-slider.js +17 -4
- package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tag.js +25 -8
- package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-text-area.js +2 -2
- package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-toggle.js +2 -2
- package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +25 -1
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-tokens.js +1 -0
- package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
- package/fesm5/taiga-ui-kit-abstract.js +8 -10
- package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-accordion.js +1 -1
- package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-checkbox.js +2 -2
- package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-files.js +8 -0
- package/fesm5/taiga-ui-kit-components-input-files.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-number.js +29 -17
- package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone-international.js +6 -2
- package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone.js +6 -9
- package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-range.js +12 -2
- package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-slider.js +154 -125
- package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-tag.js +21 -12
- package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio.js +1 -1
- package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-select.js +1 -1
- package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-slider.js +25 -4
- package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tag.js +26 -9
- package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-text-area.js +2 -2
- package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-toggle.js +2 -2
- package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +25 -1
- package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
- package/fesm5/taiga-ui-kit-tokens.js +1 -0
- package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
- package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
- package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +3 -0
- package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.metadata.json +1 -1
- package/package.json +4 -4
- package/pipes/field-error/field-error-content-pipe.d.ts +1 -1
- package/pipes/field-error/field-error-pipe.d.ts +1 -1
- package/pipes/filter-by-input/filter-by-input.base.d.ts +1 -1
- package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
- package/types/key-steps.d.ts +1 -1
- package/utils/miscellaneous/create-default-day-range-periods.d.ts +1 -1
- package/utils/miscellaneous/create-time-periods.d.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/abstract'), require('@taiga-ui/kit/components/slider'), require('@taiga-ui/kit/tokens'), require('rxjs'), require('@angular/common'), require('@tinkoff/ng-polymorpheus')
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-slider', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/abstract', '@taiga-ui/kit/components/slider', '@taiga-ui/kit/tokens', 'rxjs', '@angular/common', '@tinkoff/ng-polymorpheus'
|
|
4
|
-
(global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui'].kit = global['taiga-ui'].kit || {}, global['taiga-ui'].kit.components = global['taiga-ui'].kit.components || {}, global['taiga-ui'].kit.components['input-slider'] = {}), global.ng.core, global.ng.forms, global.cdk, global.core$1, global['taiga-ui'].kit.abstract, global['taiga-ui'].kit.components.slider, global['taiga-ui'].kit.tokens, global.rxjs, global.ng.common, global.ngPolymorpheus
|
|
5
|
-
}(this, (function (exports, core, forms, cdk, core$1, abstract, slider, tokens, rxjs, common, ngPolymorpheus
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/abstract'), require('@taiga-ui/kit/components/input-number'), require('@taiga-ui/kit/components/slider'), require('@taiga-ui/kit/constants'), require('@taiga-ui/kit/tokens'), require('rxjs'), require('@angular/common'), require('@tinkoff/ng-polymorpheus')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-slider', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/abstract', '@taiga-ui/kit/components/input-number', '@taiga-ui/kit/components/slider', '@taiga-ui/kit/constants', '@taiga-ui/kit/tokens', 'rxjs', '@angular/common', '@tinkoff/ng-polymorpheus'], factory) :
|
|
4
|
+
(global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui'].kit = global['taiga-ui'].kit || {}, global['taiga-ui'].kit.components = global['taiga-ui'].kit.components || {}, global['taiga-ui'].kit.components['input-slider'] = {}), global.ng.core, global.ng.forms, global.cdk, global.core$1, global['taiga-ui'].kit.abstract, global['taiga-ui'].kit.components['input-number'], global['taiga-ui'].kit.components.slider, global['taiga-ui'].kit.constants, global['taiga-ui'].kit.tokens, global.rxjs, global.ng.common, global.ngPolymorpheus));
|
|
5
|
+
}(this, (function (exports, core, forms, cdk, core$1, abstract, inputNumber, slider, constants, tokens, rxjs, common, ngPolymorpheus) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -241,15 +241,26 @@
|
|
|
241
241
|
// @dynamic
|
|
242
242
|
var TuiInputSliderComponent = /** @class */ (function (_super) {
|
|
243
243
|
__extends(TuiInputSliderComponent, _super);
|
|
244
|
-
function TuiInputSliderComponent(control, changeDetectorRef,
|
|
244
|
+
function TuiInputSliderComponent(control, changeDetectorRef, controller, numberFormat, fromToTexts$, isNew) {
|
|
245
245
|
var _this = _super.call(this, control, changeDetectorRef) || this;
|
|
246
|
-
_this.modeDirective = modeDirective;
|
|
247
|
-
_this.hintController = hintController;
|
|
248
246
|
_this.controller = controller;
|
|
249
247
|
_this.numberFormat = numberFormat;
|
|
250
|
-
_this.appearance = appearance;
|
|
251
248
|
_this.fromToTexts$ = fromToTexts$;
|
|
252
249
|
_this.isNew = isNew;
|
|
250
|
+
_this.min = 0;
|
|
251
|
+
_this.max = Infinity;
|
|
252
|
+
_this.quantum = 1;
|
|
253
|
+
_this.steps = 0;
|
|
254
|
+
_this.segments = 0;
|
|
255
|
+
_this.keySteps = null;
|
|
256
|
+
_this.valueContent = '';
|
|
257
|
+
_this.prefix = '';
|
|
258
|
+
_this.postfix = '';
|
|
259
|
+
/**
|
|
260
|
+
* @deprecated use `tuiTextfieldSize` instead
|
|
261
|
+
* TODO delete in v3.0
|
|
262
|
+
*/
|
|
263
|
+
_this.size = 'l';
|
|
253
264
|
/**
|
|
254
265
|
* @deprecated use `tuiTextfieldCustomContent` instead
|
|
255
266
|
* TODO delete in v3.0
|
|
@@ -260,9 +271,10 @@
|
|
|
260
271
|
TuiInputSliderComponent_1 = TuiInputSliderComponent;
|
|
261
272
|
Object.defineProperty(TuiInputSliderComponent.prototype, "nativeFocusableElement", {
|
|
262
273
|
get: function () {
|
|
263
|
-
|
|
274
|
+
var _a;
|
|
275
|
+
return !((_a = this.inputNumberRef) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) || this.computedDisabled
|
|
264
276
|
? null
|
|
265
|
-
: this.
|
|
277
|
+
: this.inputNumberRef.nativeFocusableElement;
|
|
266
278
|
},
|
|
267
279
|
enumerable: true,
|
|
268
280
|
configurable: true
|
|
@@ -276,170 +288,170 @@
|
|
|
276
288
|
enumerable: true,
|
|
277
289
|
configurable: true
|
|
278
290
|
});
|
|
279
|
-
Object.defineProperty(TuiInputSliderComponent.prototype, "
|
|
291
|
+
Object.defineProperty(TuiInputSliderComponent.prototype, "computedSteps", {
|
|
280
292
|
get: function () {
|
|
281
|
-
return
|
|
293
|
+
return this.steps || (this.max - this.min) / this.quantum;
|
|
282
294
|
},
|
|
283
295
|
enumerable: true,
|
|
284
296
|
configurable: true
|
|
285
297
|
});
|
|
286
|
-
Object.defineProperty(TuiInputSliderComponent.prototype, "
|
|
298
|
+
Object.defineProperty(TuiInputSliderComponent.prototype, "precision", {
|
|
287
299
|
get: function () {
|
|
288
|
-
return
|
|
300
|
+
return core$1.getFractionPartPadded(this.quantum).length;
|
|
289
301
|
},
|
|
290
302
|
enumerable: true,
|
|
291
303
|
configurable: true
|
|
292
304
|
});
|
|
293
|
-
Object.defineProperty(TuiInputSliderComponent.prototype, "
|
|
305
|
+
Object.defineProperty(TuiInputSliderComponent.prototype, "decimal", {
|
|
294
306
|
get: function () {
|
|
295
|
-
return
|
|
307
|
+
return this.precision ? 'not-zero' : 'never';
|
|
296
308
|
},
|
|
297
309
|
enumerable: true,
|
|
298
310
|
configurable: true
|
|
299
311
|
});
|
|
300
|
-
Object.defineProperty(TuiInputSliderComponent.prototype, "
|
|
312
|
+
Object.defineProperty(TuiInputSliderComponent.prototype, "computedSize", {
|
|
313
|
+
/**
|
|
314
|
+
* TODO remove old property `size` in v3.0
|
|
315
|
+
*/
|
|
301
316
|
get: function () {
|
|
302
|
-
if (this.
|
|
303
|
-
|
|
317
|
+
if (this.isNew) {
|
|
318
|
+
cdk.tuiAssert.assert(this.controller.size !== 's', "Size 's' is not supported by this input.");
|
|
319
|
+
return this.controller.size === 'l' ? 'l' : 'm';
|
|
304
320
|
}
|
|
305
|
-
return this.
|
|
306
|
-
},
|
|
307
|
-
enumerable: true,
|
|
308
|
-
configurable: true
|
|
309
|
-
});
|
|
310
|
-
Object.defineProperty(TuiInputSliderComponent.prototype, "showValue", {
|
|
311
|
-
get: function () {
|
|
312
|
-
return !this.showMinLabel && !this.showMaxLabel;
|
|
321
|
+
return this.size;
|
|
313
322
|
},
|
|
314
323
|
enumerable: true,
|
|
315
324
|
configurable: true
|
|
316
325
|
});
|
|
317
|
-
Object.defineProperty(TuiInputSliderComponent.prototype, "
|
|
326
|
+
Object.defineProperty(TuiInputSliderComponent.prototype, "computedValueContent", {
|
|
327
|
+
/**
|
|
328
|
+
* @deprecated for backward compatibility
|
|
329
|
+
* TODO replace by just `this.valueContent` in v3.0
|
|
330
|
+
*/
|
|
318
331
|
get: function () {
|
|
319
|
-
return this.
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
if (this.focusableElement) {
|
|
323
|
-
this.focusableElement.nativeElement.value = value;
|
|
324
|
-
}
|
|
332
|
+
return this.minLabel || this.maxLabel
|
|
333
|
+
? legacyMinMaxLabel(this)
|
|
334
|
+
: this.valueContent;
|
|
325
335
|
},
|
|
326
336
|
enumerable: true,
|
|
327
337
|
configurable: true
|
|
328
338
|
});
|
|
329
339
|
TuiInputSliderComponent.prototype.focusTextInput = function () {
|
|
330
|
-
|
|
331
|
-
|
|
340
|
+
var _a;
|
|
341
|
+
var focusableElement = (_a = this.inputNumberRef) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement;
|
|
342
|
+
if (focusableElement) {
|
|
343
|
+
cdk.setNativeFocused(focusableElement);
|
|
332
344
|
}
|
|
333
345
|
};
|
|
334
|
-
TuiInputSliderComponent.prototype.
|
|
335
|
-
|
|
336
|
-
return;
|
|
337
|
-
}
|
|
338
|
-
event.preventDefault();
|
|
339
|
-
this.processStep(true);
|
|
340
|
-
this.inputValue = this.formattedValue;
|
|
346
|
+
TuiInputSliderComponent.prototype.safelyUpdateValue = function (value) {
|
|
347
|
+
this.updateValue(this.valueGuard(value !== null && value !== void 0 ? value : this.safeCurrentValue));
|
|
341
348
|
};
|
|
342
|
-
TuiInputSliderComponent.prototype.
|
|
349
|
+
TuiInputSliderComponent.prototype.onVerticalArrowKeyDown = function (coefficient) {
|
|
343
350
|
if (this.readOnly) {
|
|
344
351
|
return;
|
|
345
352
|
}
|
|
346
|
-
|
|
347
|
-
this.
|
|
348
|
-
|
|
349
|
-
};
|
|
350
|
-
TuiInputSliderComponent.prototype.onFocused = function (focused) {
|
|
351
|
-
this.updateFocused(focused);
|
|
352
|
-
if (focused) {
|
|
353
|
-
return;
|
|
353
|
+
var value = this.value + coefficient * this.step;
|
|
354
|
+
if (value !== this.value) {
|
|
355
|
+
this.safelyUpdateValue(value);
|
|
354
356
|
}
|
|
355
|
-
|
|
356
|
-
var value = isNaN(inputValue) ? this.min : this.valueGuard(inputValue);
|
|
357
|
-
this.updateValue(value);
|
|
358
|
-
this.inputValue = this.formattedValue;
|
|
357
|
+
this.updateTextInputValue(this.valueGuard(value));
|
|
359
358
|
};
|
|
360
|
-
TuiInputSliderComponent.prototype.
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
if (core$1.maskedMoneyValueIsEmpty(value) || capped === null) {
|
|
364
|
-
return;
|
|
365
|
-
}
|
|
366
|
-
var newValue = this.formatNumber(capped) + postfix;
|
|
367
|
-
if (value !== newValue) {
|
|
368
|
-
this.inputValue = newValue;
|
|
359
|
+
TuiInputSliderComponent.prototype.onFocused = function (focused) {
|
|
360
|
+
if (!focused && !this.textInputValue) {
|
|
361
|
+
this.updateTextInputValue(this.safeCurrentValue);
|
|
369
362
|
}
|
|
370
|
-
this.
|
|
363
|
+
this.updateFocused(focused);
|
|
371
364
|
};
|
|
372
|
-
TuiInputSliderComponent.prototype.
|
|
373
|
-
this.
|
|
374
|
-
this.inputValue = this.formattedValue;
|
|
365
|
+
TuiInputSliderComponent.prototype.onPressed = function (pressed) {
|
|
366
|
+
this.updatePressed(pressed);
|
|
375
367
|
};
|
|
376
|
-
TuiInputSliderComponent.prototype.
|
|
377
|
-
|
|
368
|
+
TuiInputSliderComponent.prototype.onHovered = function (hovered) {
|
|
369
|
+
this.updateHovered(hovered);
|
|
378
370
|
};
|
|
379
|
-
Object.defineProperty(TuiInputSliderComponent.prototype, "
|
|
380
|
-
get: function () {
|
|
381
|
-
return this.formatNumber(this.value);
|
|
382
|
-
},
|
|
383
|
-
enumerable: true,
|
|
384
|
-
configurable: true
|
|
385
|
-
});
|
|
386
|
-
Object.defineProperty(TuiInputSliderComponent.prototype, "isInputValueNotFinished", {
|
|
371
|
+
Object.defineProperty(TuiInputSliderComponent.prototype, "textInputValue", {
|
|
387
372
|
get: function () {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
}
|
|
391
|
-
var nativeNumberValue = core$1.maskedNumberStringToNumber(this.inputValue, this.numberFormat.decimalSeparator, this.numberFormat.thousandSeparator);
|
|
392
|
-
return nativeNumberValue < 0
|
|
393
|
-
? nativeNumberValue > this.max
|
|
394
|
-
: nativeNumberValue < this.min;
|
|
373
|
+
var _a;
|
|
374
|
+
return ((_a = this.inputNumberRef) === null || _a === void 0 ? void 0 : _a.nativeValue) || '';
|
|
395
375
|
},
|
|
396
376
|
enumerable: true,
|
|
397
377
|
configurable: true
|
|
398
378
|
});
|
|
399
|
-
TuiInputSliderComponent.prototype.
|
|
400
|
-
|
|
401
|
-
if (value !== this.value) {
|
|
402
|
-
this.updateValue(value);
|
|
403
|
-
}
|
|
379
|
+
TuiInputSliderComponent.prototype.getFallbackValue = function () {
|
|
380
|
+
return 0;
|
|
404
381
|
};
|
|
405
|
-
TuiInputSliderComponent.prototype.
|
|
406
|
-
|
|
382
|
+
TuiInputSliderComponent.prototype.valueGuard = function (value) {
|
|
383
|
+
var roundedValue = cdk.round(Math.round(value / this.quantum) * this.quantum, constants.TUI_FLOATING_PRECISION);
|
|
384
|
+
return cdk.clamp(roundedValue, this.min, this.max);
|
|
385
|
+
};
|
|
386
|
+
TuiInputSliderComponent.prototype.updateTextInputValue = function (value) {
|
|
387
|
+
if (this.inputNumberRef) {
|
|
388
|
+
this.inputNumberRef.nativeValue =
|
|
389
|
+
this.inputNumberRef.getFormattedValue(value);
|
|
390
|
+
}
|
|
407
391
|
};
|
|
408
392
|
var TuiInputSliderComponent_1;
|
|
409
393
|
TuiInputSliderComponent.ctorParameters = function () { return [
|
|
410
394
|
{ type: forms.NgControl, decorators: [{ type: core.Optional }, { type: core.Self }, { type: core.Inject, args: [forms.NgControl,] }] },
|
|
411
395
|
{ type: core.ChangeDetectorRef, decorators: [{ type: core.Inject, args: [core.ChangeDetectorRef,] }] },
|
|
412
|
-
{ type: core$1.TuiModeDirective, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core$1.TuiModeDirective,] }] },
|
|
413
|
-
{ type: core$1.TuiHintControllerDirective, decorators: [{ type: core.Inject, args: [core$1.TUI_HINT_WATCHED_CONTROLLER,] }] },
|
|
414
396
|
{ type: core$1.TuiTextfieldController, decorators: [{ type: core.Inject, args: [core$1.TUI_TEXTFIELD_WATCHED_CONTROLLER,] }] },
|
|
415
397
|
{ type: undefined, decorators: [{ type: core.Inject, args: [core$1.TUI_NUMBER_FORMAT,] }] },
|
|
416
|
-
{ type: String, decorators: [{ type: core.Inject, args: [core$1.TUI_TEXTFIELD_APPEARANCE,] }] },
|
|
417
398
|
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [tokens.TUI_FROM_TO_TEXTS,] }] },
|
|
418
399
|
{ type: TuiNewInputSliderDirective, decorators: [{ type: core.Optional }, { type: core.Inject, args: [TuiNewInputSliderDirective,] }] }
|
|
419
400
|
]; };
|
|
420
401
|
__decorate([
|
|
421
|
-
core.ViewChild(
|
|
422
|
-
], TuiInputSliderComponent.prototype, "
|
|
402
|
+
core.ViewChild(inputNumber.TuiInputNumberComponent)
|
|
403
|
+
], TuiInputSliderComponent.prototype, "inputNumberRef", void 0);
|
|
423
404
|
__decorate([
|
|
424
405
|
core.ViewChild(slider.TuiSliderComponent, { read: core.ElementRef })
|
|
425
406
|
], TuiInputSliderComponent.prototype, "sliderRef", void 0);
|
|
426
407
|
__decorate([
|
|
427
408
|
core.Input(),
|
|
428
409
|
cdk.tuiDefaultProp()
|
|
429
|
-
], TuiInputSliderComponent.prototype, "
|
|
410
|
+
], TuiInputSliderComponent.prototype, "min", void 0);
|
|
411
|
+
__decorate([
|
|
412
|
+
core.Input(),
|
|
413
|
+
cdk.tuiDefaultProp()
|
|
414
|
+
], TuiInputSliderComponent.prototype, "max", void 0);
|
|
415
|
+
__decorate([
|
|
416
|
+
core.Input(),
|
|
417
|
+
cdk.tuiDefaultProp(quantumAssertion, 'Quantum must be positive')
|
|
418
|
+
], TuiInputSliderComponent.prototype, "quantum", void 0);
|
|
419
|
+
__decorate([
|
|
420
|
+
core.Input(),
|
|
421
|
+
cdk.tuiDefaultProp()
|
|
422
|
+
], TuiInputSliderComponent.prototype, "steps", void 0);
|
|
430
423
|
__decorate([
|
|
431
|
-
core.
|
|
432
|
-
|
|
424
|
+
core.Input(),
|
|
425
|
+
cdk.tuiDefaultProp()
|
|
426
|
+
], TuiInputSliderComponent.prototype, "segments", void 0);
|
|
427
|
+
__decorate([
|
|
428
|
+
core.Input(),
|
|
429
|
+
cdk.tuiDefaultProp()
|
|
430
|
+
], TuiInputSliderComponent.prototype, "keySteps", void 0);
|
|
433
431
|
__decorate([
|
|
434
|
-
core.
|
|
435
|
-
|
|
432
|
+
core.Input(),
|
|
433
|
+
cdk.tuiDefaultProp()
|
|
434
|
+
], TuiInputSliderComponent.prototype, "valueContent", void 0);
|
|
436
435
|
__decorate([
|
|
437
|
-
core.
|
|
438
|
-
|
|
436
|
+
core.Input(),
|
|
437
|
+
cdk.tuiDefaultProp()
|
|
438
|
+
], TuiInputSliderComponent.prototype, "prefix", void 0);
|
|
439
|
+
__decorate([
|
|
440
|
+
core.Input(),
|
|
441
|
+
cdk.tuiDefaultProp()
|
|
442
|
+
], TuiInputSliderComponent.prototype, "postfix", void 0);
|
|
443
|
+
__decorate([
|
|
444
|
+
core.Input(),
|
|
445
|
+
cdk.tuiDefaultProp()
|
|
446
|
+
], TuiInputSliderComponent.prototype, "size", void 0);
|
|
447
|
+
__decorate([
|
|
448
|
+
core.Input(),
|
|
449
|
+
cdk.tuiDefaultProp()
|
|
450
|
+
], TuiInputSliderComponent.prototype, "secondary", void 0);
|
|
439
451
|
TuiInputSliderComponent = TuiInputSliderComponent_1 = __decorate([
|
|
440
452
|
core.Component({
|
|
441
453
|
selector: 'tui-input-slider',
|
|
442
|
-
template: "<tui-
|
|
454
|
+
template: "<tui-input-number\n [min]=\"min\"\n [max]=\"max\"\n [precision]=\"precision\"\n [decimal]=\"decimal\"\n [prefix]=\"prefix\"\n [postfix]=\"postfix || (value | i18nPlural: pluralizeMap || pluralizeMapFallback)\"\n [tuiTextfieldCustomContent]=\"controller.customContent || deprecatedSecondary\"\n [tuiTextfieldSize]=\"computedSize\"\n [tuiTextfieldLabelOutside]=\"computedSize !== 'l'\"\n [readOnly]=\"readOnly\"\n [pseudoFocused]=\"computedFocused\"\n [pseudoHovered]=\"computedHovered\"\n [pseudoPressed]=\"computedPressed\"\n [pseudoInvalid]=\"pseudoInvalid\"\n [ngModel]=\"value\"\n (ngModelChange)=\"safelyUpdateValue($event)\"\n (focusedChange)=\"onFocused($event)\"\n (hoveredChange)=\"onHovered($event)\"\n (pressedChange)=\"onPressed($event)\"\n (keydown.arrowUp.prevent)=\"onVerticalArrowKeyDown(1)\"\n (keydown.arrowDown.prevent)=\"onVerticalArrowKeyDown(-1)\"\n>\n <ng-content></ng-content>\n <div\n *ngIf=\"computedValueContent && !focused\"\n polymorpheus-outlet\n automation-id=\"tui-input-slider__value-content\"\n [content]=\"computedValueContent\"\n [context]=\"{$implicit: value}\"\n ></div>\n</tui-input-number>\n\n<!--TODO: remove in v3.0-->\n<ng-template #deprecatedSecondary>{{secondary}}</ng-template>\n\n<!--TODO: remove wrapper + ticks labels (leave only slider) in v3.0-->\n<div class=\"t-slider-wrapper\">\n <input\n tuiSlider\n type=\"range\"\n [tuiFocusable]=\"false\"\n [max]=\"computedSteps\"\n [segments]=\"segments\"\n [keySteps]=\"computedKeySteps\"\n [attr.disabled]=\"readOnly || disabled || null\"\n [ngModel]=\"value\"\n (keyStepsInput)=\"safelyUpdateValue($event)\"\n (click)=\"focusTextInput()\"\n />\n\n <!--TODO delete ticks labels in v3.0-->\n <div *ngIf=\"segments && !isNew\" class=\"t-ticks-labels\">\n <span\n *tuiRepeatTimes=\"let tickIndex of segments + 1\"\n automation-id=\"tui-slider__segment\"\n >\n <span *ngIf=\"fromToTexts$ | async as fromToText\">\n {{ getTickPrefix(tickIndex, segments, fromToText) }} {{\n tickIndex | tuiSliderTickLabel:segments:computedKeySteps |\n tuiFormatNumber}}\n <span *ngIf=\"segmentsPluralizeMap\">\n {{ tickIndex | tuiSliderTickLabel:segments:computedKeySteps\n | i18nPlural: segmentsPluralizeMap }}\n </span>\n </span>\n </span>\n </div>\n</div>\n",
|
|
443
455
|
host: {
|
|
444
456
|
/**
|
|
445
457
|
* TODO delete it in v3.0
|
|
@@ -457,24 +469,46 @@
|
|
|
457
469
|
core$1.HINT_CONTROLLER_PROVIDER,
|
|
458
470
|
core$1.TEXTFIELD_CONTROLLER_PROVIDER,
|
|
459
471
|
],
|
|
460
|
-
styles: [":host{position:relative;z-index:0;display:block
|
|
461
|
-
})
|
|
472
|
+
styles: [":host{position:relative;z-index:0;display:block}:host._segmented._show-ticks-labels{border-bottom:26px solid transparent}.t-slider-wrapper{position:absolute;top:100%;left:calc(var(--tui-radius-m)/ 2);right:0;margin:-.5625rem 0 0}input[type=range]{border-top-left-radius:0;border-bottom-left-radius:calc(var(--tui-radius-m) * 5) calc(var(--tui-radius-m) * 1.5)}.t-ticks-labels{display:flex;margin:0 .5rem;font:var(--tui-font-text-s);color:var(--tui-text-02)}.t-ticks-labels>*{position:relative;flex:2;text-align:center}.t-ticks-labels>:first-child{left:-.5rem;flex:1;text-align:left}.t-ticks-labels>:last-child{right:-.5rem;flex:1;text-align:right}tui-input-slider+.t-ticks-labels{margin-left:calc(var(--tui-radius-m)/ 2 + .5rem)}"]
|
|
473
|
+
})
|
|
474
|
+
/**
|
|
475
|
+
* TODO replace `extends AbstractTuiInputSlider<number>` by `extends AbstractTuiControl<number> implements TuiWithOptionalMinMax<number>`
|
|
476
|
+
* in v3.0
|
|
477
|
+
*/
|
|
478
|
+
,
|
|
462
479
|
__param(0, core.Optional()),
|
|
463
480
|
__param(0, core.Self()),
|
|
464
481
|
__param(0, core.Inject(forms.NgControl)),
|
|
465
482
|
__param(1, core.Inject(core.ChangeDetectorRef)),
|
|
466
|
-
__param(2, core.
|
|
467
|
-
__param(
|
|
468
|
-
__param(
|
|
469
|
-
__param(
|
|
470
|
-
__param(5, core.Inject(
|
|
471
|
-
__param(6, core.Inject(core$1.TUI_TEXTFIELD_APPEARANCE)),
|
|
472
|
-
__param(7, core.Inject(tokens.TUI_FROM_TO_TEXTS)),
|
|
473
|
-
__param(8, core.Optional()),
|
|
474
|
-
__param(8, core.Inject(TuiNewInputSliderDirective))
|
|
483
|
+
__param(2, core.Inject(core$1.TUI_TEXTFIELD_WATCHED_CONTROLLER)),
|
|
484
|
+
__param(3, core.Inject(core$1.TUI_NUMBER_FORMAT)),
|
|
485
|
+
__param(4, core.Inject(tokens.TUI_FROM_TO_TEXTS)),
|
|
486
|
+
__param(5, core.Optional()),
|
|
487
|
+
__param(5, core.Inject(TuiNewInputSliderDirective))
|
|
475
488
|
], TuiInputSliderComponent);
|
|
476
489
|
return TuiInputSliderComponent;
|
|
477
490
|
}(abstract.AbstractTuiInputSlider));
|
|
491
|
+
function quantumAssertion(quantum) {
|
|
492
|
+
return quantum > 0;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* @deprecated helper for backward compatibility.
|
|
496
|
+
* TODO remove in v3.0
|
|
497
|
+
*/
|
|
498
|
+
function legacyMinMaxLabel(_a) {
|
|
499
|
+
var min = _a.min, max = _a.max, minLabel = _a.minLabel, maxLabel = _a.maxLabel;
|
|
500
|
+
return function (_a) {
|
|
501
|
+
var value = _a.$implicit;
|
|
502
|
+
switch (value) {
|
|
503
|
+
case min:
|
|
504
|
+
return minLabel || value;
|
|
505
|
+
case max:
|
|
506
|
+
return maxLabel || value;
|
|
507
|
+
default:
|
|
508
|
+
return value;
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
}
|
|
478
512
|
|
|
479
513
|
var TuiInputSliderModule = /** @class */ (function () {
|
|
480
514
|
function TuiInputSliderModule() {
|
|
@@ -485,19 +519,13 @@
|
|
|
485
519
|
common.CommonModule,
|
|
486
520
|
forms.FormsModule,
|
|
487
521
|
forms.ReactiveFormsModule,
|
|
488
|
-
angular2TextMask.TextMaskModule,
|
|
489
522
|
cdk.TuiFocusableModule,
|
|
490
|
-
cdk.TuiFocusedModule,
|
|
491
|
-
cdk.TuiHoveredModule,
|
|
492
|
-
cdk.TuiPressedModule,
|
|
493
|
-
cdk.TuiMapperPipeModule,
|
|
494
|
-
cdk.TuiInputModeModule,
|
|
495
|
-
core$1.TuiTooltipModule,
|
|
496
523
|
slider.TuiSliderModule,
|
|
497
|
-
core$1.TuiWrapperModule,
|
|
498
524
|
core$1.TuiFormatNumberPipeModule,
|
|
499
525
|
cdk.TuiRepeatTimesModule,
|
|
500
526
|
ngPolymorpheus.PolymorpheusModule,
|
|
527
|
+
inputNumber.TuiInputNumberModule,
|
|
528
|
+
core$1.TuiTextfieldControllerModule,
|
|
501
529
|
],
|
|
502
530
|
declarations: [TuiInputSliderComponent, TuiNewInputSliderDirective],
|
|
503
531
|
exports: [TuiInputSliderComponent, TuiNewInputSliderDirective],
|