@taiga-ui/kit 2.34.0 → 2.37.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 +22 -3
- package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
- package/bundles/taiga-ui-kit-abstract.umd.js +65 -17
- 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.js.map +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-arrow.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +4 -4
- 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 +2 -2
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.js +504 -0
- package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-components-files.umd.min.js +16 -0
- package/bundles/taiga-ui-kit-components-files.umd.min.js.map +1 -0
- package/bundles/taiga-ui-kit-components-input-count.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js +3 -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-time.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.js +4 -2
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.min.js +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 +43 -45
- package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-file.umd.min.js +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 +490 -0
- package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-components-input-files.umd.min.js +16 -0
- package/bundles/taiga-ui-kit-components-input-files.umd.min.js.map +1 -0
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js +64 -41
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.js +57 -32
- package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.js +24 -16
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +20 -8
- 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 +13 -6
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.js +16 -4
- package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +61 -14
- 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 +16 -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 +2 -2
- 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-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js +27 -16
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js +23 -9
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.js +140 -73
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +205 -30
- 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-text-area.umd.js +50 -13
- 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.umd.js +20 -4
- package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +22 -5
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +1 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-enums.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js +46 -6
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-providers.umd.js +29 -12
- package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-providers.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-providers.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.js +11 -0
- package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-files.umd.js +8 -0
- package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-files.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-utils-files.umd.min.js.map +1 -1
- package/components/arrow/arrow-options.d.ts +4 -2
- package/components/arrow/taiga-ui-kit-components-arrow.metadata.json +1 -1
- package/components/badge/badge.component.d.ts +2 -1
- package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
- package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
- package/components/combo-box/combo-box.component.d.ts +4 -4
- package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
- package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
- package/components/files/file/file.component.d.ts +42 -0
- package/components/files/files.component.d.ts +12 -0
- package/components/files/files.module.d.ts +2 -0
- package/components/files/index.d.ts +2 -0
- package/components/files/package.json +13 -0
- package/components/files/taiga-ui-kit-components-files.d.ts +5 -0
- package/components/files/taiga-ui-kit-components-files.metadata.json +1 -0
- package/components/index.d.ts +2 -0
- package/components/input/input.component.d.ts +2 -2
- package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
- package/components/input-count/input-count.component.d.ts +3 -2
- package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
- package/components/input-date/input-date.component.d.ts +5 -3
- package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
- package/components/input-date-range/input-date-range.component.d.ts +3 -2
- package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
- package/components/input-date-time/input-date-time.component.d.ts +7 -5
- package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
- package/components/input-file/file/file.component.d.ts +1 -1
- package/components/input-file/taiga-ui-kit-components-input-file.metadata.json +1 -1
- package/components/input-files/index.d.ts +2 -0
- package/components/input-files/input-files.component.d.ts +41 -0
- package/components/input-files/input-files.module.d.ts +2 -0
- package/components/input-files/package.json +13 -0
- package/components/input-files/taiga-ui-kit-components-input-files.d.ts +4 -0
- package/components/input-files/taiga-ui-kit-components-input-files.metadata.json +1 -0
- package/components/input-month/index.d.ts +1 -0
- package/components/input-month/input-month.component.d.ts +6 -4
- package/components/input-month/input-month.directive.d.ts +8 -1
- package/components/input-month/input-month.providers.d.ts +2 -0
- package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
- package/components/input-month-range/index.d.ts +1 -0
- package/components/input-month-range/input-month-range.component.d.ts +6 -7
- package/components/input-month-range/input-month-range.directive.d.ts +8 -1
- package/components/input-month-range/input-month-range.providers.d.ts +2 -0
- package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
- package/components/input-number/input-number.component.d.ts +3 -2
- package/components/input-number/input-number.directive.d.ts +4 -1
- package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
- package/components/input-password/input-password.component.d.ts +4 -3
- package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
- package/components/input-phone/input-phone.component.d.ts +5 -6
- package/components/input-phone/input-phone.directive.d.ts +4 -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 +4 -2
- 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 -0
- package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
- package/components/input-slider/input-slider.component.d.ts +19 -3
- package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
- package/components/input-tag/input-tag.component.d.ts +6 -4
- 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/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
- package/components/line-clamp/line-clamp.component.d.ts +7 -3
- package/components/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
- package/components/multi-select/hide-selected.pipe.d.ts +1 -1
- package/components/multi-select/multi-select.component.d.ts +8 -6
- package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
- package/components/multi-select-option/taiga-ui-kit-components-multi-select-option.metadata.json +1 -1
- package/components/pagination/taiga-ui-kit-components-pagination.metadata.json +1 -1
- package/components/progress/index.d.ts +4 -3
- package/components/progress/progress-bar/progress-color-segments.directive.d.ts +11 -0
- package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -1
- package/components/progress/{pipes → utils}/abstract-color-segments.d.ts +0 -0
- package/components/progress/utils/calculate-color-segments.d.ts +1 -0
- package/components/progress/{pipes → utils}/progress-color-segments-async.pipe.d.ts +5 -0
- package/components/progress/utils/progress-color-segments.pipe.d.ts +9 -0
- package/components/radio/radio.component.d.ts +1 -1
- package/components/select/select.component.d.ts +4 -4
- package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
- package/components/slider/index.d.ts +2 -0
- package/components/slider/slider-key-steps.directive.d.ts +27 -0
- package/components/slider/slider-options.d.ts +9 -0
- package/components/slider/slider.component.d.ts +8 -6
- package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
- package/components/taiga-ui-kit-components.metadata.json +1 -1
- package/components/text-area/index.d.ts +1 -0
- package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
- package/components/text-area/text-area.component.d.ts +2 -1
- package/components/text-area/text-area.directive.d.ts +5 -0
- package/directives/dropdown-selection/dropdown-selection.directive.d.ts +2 -2
- package/directives/dropdown-selection/taiga-ui-kit-directives-dropdown-selection.metadata.json +1 -1
- package/directives/lazy-loading/index.d.ts +1 -0
- package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.d.ts +0 -1
- package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.metadata.json +1 -1
- package/enums/file-state.d.ts +1 -0
- package/enums/taiga-ui-kit-enums.metadata.json +1 -1
- package/esm2015/abstract/input-slider.js +43 -4
- package/esm2015/components/accordion/accordion.component.js +2 -2
- package/esm2015/components/arrow/arrow-options.js +1 -1
- package/esm2015/components/badge/badge.component.js +1 -1
- package/esm2015/components/badged-content/badged-content.component.js +3 -3
- package/esm2015/components/calendar-month/calendar-month.component.js +3 -3
- package/esm2015/components/combo-box/combo-box.component.js +2 -2
- package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +3 -3
- package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +3 -3
- package/esm2015/components/files/file/file.component.js +164 -0
- package/esm2015/components/files/files.component.js +45 -0
- package/esm2015/components/files/files.module.js +29 -0
- package/esm2015/components/files/index.js +3 -0
- package/esm2015/components/files/taiga-ui-kit-components-files.js +6 -0
- package/esm2015/components/index.js +3 -1
- package/esm2015/components/input/input.component.js +1 -1
- package/esm2015/components/input-count/input-count.component.js +3 -3
- package/esm2015/components/input-date/input-date.component.js +5 -3
- package/esm2015/components/input-date-range/input-date-range.component.js +4 -2
- package/esm2015/components/input-date-time/input-date-time.component.js +2 -2
- package/esm2015/components/input-file/file/file.component.js +19 -19
- package/esm2015/components/input-file/input-file.component.js +7 -7
- package/esm2015/components/input-file/input-file.module.js +3 -3
- package/esm2015/components/input-files/index.js +3 -0
- package/esm2015/components/input-files/input-files.component.js +208 -0
- package/esm2015/components/input-files/input-files.module.js +34 -0
- package/esm2015/components/input-files/taiga-ui-kit-components-input-files.js +5 -0
- package/esm2015/components/input-month/index.js +2 -1
- package/esm2015/components/input-month/input-month.component.js +19 -25
- package/esm2015/components/input-month/input-month.directive.js +32 -7
- package/esm2015/components/input-month/input-month.module.js +4 -4
- package/esm2015/components/input-month/input-month.providers.js +19 -0
- package/esm2015/components/input-month-range/index.js +2 -1
- package/esm2015/components/input-month-range/input-month-range.component.js +21 -37
- package/esm2015/components/input-month-range/input-month-range.directive.js +37 -7
- package/esm2015/components/input-month-range/input-month-range.module.js +3 -2
- package/esm2015/components/input-month-range/input-month-range.providers.js +19 -0
- package/esm2015/components/input-number/input-number.component.js +5 -5
- package/esm2015/components/input-number/input-number.directive.js +9 -3
- package/esm2015/components/input-password/input-password.component.js +3 -3
- package/esm2015/components/input-phone/input-phone.component.js +6 -5
- package/esm2015/components/input-phone/input-phone.directive.js +9 -3
- package/esm2015/components/input-phone-international/input-phone-international.component.js +20 -6
- package/esm2015/components/input-range/input-range.component.js +18 -6
- package/esm2015/components/input-slider/input-slider.component.js +55 -11
- package/esm2015/components/input-slider/input-slider.module.js +10 -6
- package/esm2015/components/input-tag/input-tag.component.js +17 -10
- package/esm2015/components/input-time/input-time.component.js +1 -1
- package/esm2015/components/line-clamp/line-clamp.component.js +25 -15
- package/esm2015/components/line-clamp/line-clamp.directive.js +5 -4
- package/esm2015/components/multi-select/hide-selected.pipe.js +4 -3
- package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +3 -3
- package/esm2015/components/multi-select/multi-select.component.js +16 -6
- package/esm2015/components/multi-select-option/multi-select-option.component.js +3 -3
- package/esm2015/components/pagination/pagination.component.js +2 -2
- package/esm2015/components/progress/index.js +5 -4
- package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +48 -0
- package/esm2015/components/progress/progress.module.js +6 -3
- package/esm2015/components/progress/utils/abstract-color-segments.js +32 -0
- package/esm2015/components/progress/utils/calculate-color-segments.js +11 -0
- package/esm2015/components/progress/utils/progress-color-segments-async.pipe.js +21 -0
- package/esm2015/components/progress/utils/progress-color-segments.pipe.js +19 -0
- package/esm2015/components/radio/radio.component.js +1 -1
- package/esm2015/components/select/select.component.js +2 -2
- package/esm2015/components/slider/index.js +3 -1
- package/esm2015/components/slider/slider-key-steps.directive.js +106 -0
- package/esm2015/components/slider/slider-options.js +13 -0
- package/esm2015/components/slider/slider.component.js +48 -26
- package/esm2015/components/slider/slider.module.js +14 -3
- package/esm2015/components/text-area/index.js +2 -1
- package/esm2015/components/text-area/text-area.component.js +21 -13
- package/esm2015/components/text-area/text-area.directive.js +22 -0
- package/esm2015/components/text-area/text-area.module.js +7 -6
- package/esm2015/components/text-area/text-area.providers.js +6 -2
- package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +23 -6
- package/esm2015/directives/lazy-loading/index.js +2 -1
- package/esm2015/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.js +1 -2
- package/esm2015/enums/file-state.js +1 -1
- package/esm2015/pipes/field-error/field-error-content-pipe.js +43 -0
- package/esm2015/pipes/field-error/field-error.module.js +4 -3
- package/esm2015/pipes/field-error/index.js +2 -1
- package/esm2015/providers/index.js +2 -1
- package/esm2015/providers/month-formatter.provider.js +17 -0
- package/esm2015/providers/value-accessor.provider.js +2 -2
- package/esm2015/tokens/i18n.js +7 -1
- package/esm2015/tokens/index.js +2 -1
- package/esm2015/tokens/month-formatter.js +3 -0
- package/esm2015/utils/files/get-accept-array.js +7 -0
- package/esm2015/utils/files/index.js +2 -1
- package/esm5/abstract/input-slider.js +65 -16
- package/esm5/components/accordion/accordion.component.js +2 -2
- package/esm5/components/arrow/arrow-options.js +1 -1
- package/esm5/components/badge/badge.component.js +1 -1
- package/esm5/components/badged-content/badged-content.component.js +3 -3
- package/esm5/components/calendar-month/calendar-month.component.js +3 -3
- package/esm5/components/combo-box/combo-box.component.js +2 -2
- package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +3 -3
- package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +3 -3
- package/esm5/components/files/file/file.component.js +213 -0
- package/esm5/components/files/files.component.js +50 -0
- package/esm5/components/files/files.module.js +32 -0
- package/esm5/components/files/index.js +3 -0
- package/esm5/components/files/taiga-ui-kit-components-files.js +6 -0
- package/esm5/components/index.js +3 -1
- package/esm5/components/input/input.component.js +1 -1
- package/esm5/components/input-count/input-count.component.js +3 -3
- package/esm5/components/input-date/input-date.component.js +5 -3
- package/esm5/components/input-date-range/input-date-range.component.js +4 -2
- package/esm5/components/input-date-time/input-date-time.component.js +2 -2
- package/esm5/components/input-file/file/file.component.js +37 -37
- package/esm5/components/input-file/input-file.component.js +7 -9
- package/esm5/components/input-file/input-file.module.js +3 -3
- package/esm5/components/input-files/index.js +3 -0
- package/esm5/components/input-files/input-files.component.js +239 -0
- package/esm5/components/input-files/input-files.module.js +37 -0
- package/esm5/components/input-files/taiga-ui-kit-components-input-files.js +5 -0
- package/esm5/components/input-month/index.js +2 -1
- package/esm5/components/input-month/input-month.component.js +18 -25
- package/esm5/components/input-month/input-month.directive.js +32 -9
- package/esm5/components/input-month/input-month.module.js +4 -4
- package/esm5/components/input-month/input-month.providers.js +19 -0
- package/esm5/components/input-month-range/index.js +2 -1
- package/esm5/components/input-month-range/input-month-range.component.js +20 -38
- package/esm5/components/input-month-range/input-month-range.directive.js +38 -8
- package/esm5/components/input-month-range/input-month-range.module.js +3 -2
- package/esm5/components/input-month-range/input-month-range.providers.js +19 -0
- package/esm5/components/input-number/input-number.component.js +18 -16
- package/esm5/components/input-number/input-number.directive.js +9 -3
- package/esm5/components/input-password/input-password.component.js +3 -3
- package/esm5/components/input-phone/input-phone.component.js +6 -5
- package/esm5/components/input-phone/input-phone.directive.js +9 -3
- package/esm5/components/input-phone-international/input-phone-international.component.js +21 -9
- package/esm5/components/input-range/input-range.component.js +18 -6
- package/esm5/components/input-slider/input-slider.component.js +58 -11
- package/esm5/components/input-slider/input-slider.module.js +10 -6
- package/esm5/components/input-tag/input-tag.component.js +17 -10
- package/esm5/components/input-time/input-time.component.js +1 -1
- package/esm5/components/line-clamp/line-clamp.component.js +26 -16
- package/esm5/components/line-clamp/line-clamp.directive.js +5 -4
- package/esm5/components/multi-select/hide-selected.pipe.js +4 -4
- package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +3 -3
- package/esm5/components/multi-select/multi-select.component.js +20 -6
- package/esm5/components/multi-select-option/multi-select-option.component.js +3 -3
- package/esm5/components/pagination/pagination.component.js +2 -2
- package/esm5/components/progress/index.js +5 -4
- package/esm5/components/progress/progress-bar/progress-color-segments.directive.js +56 -0
- package/esm5/components/progress/progress.module.js +6 -3
- package/esm5/components/progress/utils/abstract-color-segments.js +33 -0
- package/esm5/components/progress/utils/calculate-color-segments.js +13 -0
- package/esm5/components/progress/utils/progress-color-segments-async.pipe.js +27 -0
- package/esm5/components/progress/utils/progress-color-segments.pipe.js +24 -0
- package/esm5/components/radio/radio.component.js +1 -1
- package/esm5/components/select/select.component.js +2 -2
- package/esm5/components/slider/index.js +3 -1
- package/esm5/components/slider/slider-key-steps.directive.js +137 -0
- package/esm5/components/slider/slider-options.js +14 -0
- package/esm5/components/slider/slider.component.js +49 -27
- package/esm5/components/slider/slider.module.js +14 -3
- package/esm5/components/text-area/index.js +2 -1
- package/esm5/components/text-area/text-area.component.js +21 -13
- package/esm5/components/text-area/text-area.directive.js +28 -0
- package/esm5/components/text-area/text-area.module.js +7 -6
- package/esm5/components/text-area/text-area.providers.js +6 -2
- package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +23 -6
- package/esm5/directives/lazy-loading/index.js +2 -1
- package/esm5/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.js +1 -2
- package/esm5/enums/file-state.js +1 -1
- package/esm5/pipes/field-error/field-error-content-pipe.js +44 -0
- package/esm5/pipes/field-error/field-error.module.js +4 -3
- package/esm5/pipes/field-error/index.js +2 -1
- package/esm5/providers/index.js +2 -1
- package/esm5/providers/month-formatter.provider.js +19 -0
- package/esm5/providers/value-accessor.provider.js +2 -2
- package/esm5/tokens/i18n.js +7 -1
- package/esm5/tokens/index.js +2 -1
- package/esm5/tokens/month-formatter.js +3 -0
- package/esm5/utils/files/get-accept-array.js +7 -0
- package/esm5/utils/files/index.js +2 -1
- package/fesm2015/taiga-ui-kit-abstract.js +42 -3
- 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-accordion.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badged-content.js +2 -2
- package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-month.js +2 -2
- package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-combo-box.js +1 -1
- package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +4 -4
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-files.js +232 -0
- package/fesm2015/taiga-ui-kit-components-files.js.map +1 -0
- package/fesm2015/taiga-ui-kit-components-input-count.js +2 -2
- package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-range.js +3 -1
- package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-time.js +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date.js +4 -2
- package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-file.js +25 -25
- package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-files.js +242 -0
- package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -0
- package/fesm2015/taiga-ui-kit-components-input-month-range.js +67 -41
- package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month.js +61 -31
- package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-number.js +12 -6
- package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-password.js +3 -3
- package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +19 -5
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone.js +13 -6
- package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-range.js +17 -5
- package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-slider.js +61 -15
- package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +16 -9
- 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-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-line-clamp.js +28 -17
- package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js +2 -2
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select.js +20 -9
- package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pagination.js +1 -1
- package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-progress.js +113 -55
- package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-slider.js +169 -28
- package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-text-area.js +47 -17
- package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components.js +2 -0
- package/fesm2015/taiga-ui-kit-components.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +22 -5
- package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +1 -1
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
- package/fesm2015/taiga-ui-kit-enums.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-field-error.js +43 -4
- package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
- package/fesm2015/taiga-ui-kit-providers.js +18 -4
- package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
- package/fesm2015/taiga-ui-kit-tokens.js +9 -1
- package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-files.js +8 -1
- package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
- package/fesm5/taiga-ui-kit-abstract.js +64 -15
- 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-accordion.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-badged-content.js +2 -2
- package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-month.js +2 -2
- package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-combo-box.js +1 -1
- package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +4 -4
- package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-files.js +289 -0
- package/fesm5/taiga-ui-kit-components-files.js.map +1 -0
- package/fesm5/taiga-ui-kit-components-input-count.js +2 -2
- package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-range.js +3 -1
- package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-time.js +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date.js +4 -2
- package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-file.js +43 -45
- package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-files.js +276 -0
- package/fesm5/taiga-ui-kit-components-input-files.js.map +1 -0
- package/fesm5/taiga-ui-kit-components-input-month-range.js +68 -44
- package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-month.js +60 -33
- package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-number.js +25 -17
- package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-password.js +3 -3
- package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone-international.js +20 -8
- package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone.js +13 -6
- package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-range.js +17 -5
- package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-slider.js +65 -16
- package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-tag.js +16 -9
- 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-input.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-line-clamp.js +29 -18
- package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-multi-select-option.js +2 -2
- package/fesm5/taiga-ui-kit-components-multi-select-option.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-multi-select.js +24 -10
- package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-pagination.js +1 -1
- package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-progress.js +135 -69
- package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-slider.js +202 -30
- package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-text-area.js +53 -17
- package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm5/taiga-ui-kit-components.js +2 -0
- package/fesm5/taiga-ui-kit-components.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +22 -5
- package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-lazy-loading.js +1 -1
- package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
- package/fesm5/taiga-ui-kit-enums.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-field-error.js +44 -4
- package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -1
- package/fesm5/taiga-ui-kit-providers.js +20 -4
- package/fesm5/taiga-ui-kit-providers.js.map +1 -1
- package/fesm5/taiga-ui-kit-tokens.js +9 -1
- package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm5/taiga-ui-kit-utils-files.js +8 -1
- package/fesm5/taiga-ui-kit-utils-files.js.map +1 -1
- package/package.json +4 -4
- package/pipes/field-error/field-error-content-pipe.d.ts +12 -0
- package/pipes/field-error/index.d.ts +1 -0
- package/pipes/field-error/taiga-ui-kit-pipes-field-error.metadata.json +1 -1
- package/providers/index.d.ts +1 -0
- package/providers/month-formatter.provider.d.ts +6 -0
- package/providers/taiga-ui-kit-providers.metadata.json +1 -1
- package/tokens/i18n.d.ts +2 -0
- package/tokens/index.d.ts +1 -0
- package/tokens/month-formatter.d.ts +4 -0
- package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
- package/utils/files/get-accept-array.d.ts +1 -0
- package/utils/files/index.d.ts +1 -0
- package/utils/files/taiga-ui-kit-utils-files.metadata.json +1 -1
- package/components/progress/pipes/progress-color-segments.pipe.d.ts +0 -9
- package/esm2015/components/progress/pipes/abstract-color-segments.js +0 -32
- package/esm2015/components/progress/pipes/progress-color-segments-async.pipe.js +0 -15
- package/esm2015/components/progress/pipes/progress-color-segments.pipe.js +0 -18
- package/esm5/components/progress/pipes/abstract-color-segments.js +0 -35
- package/esm5/components/progress/pipes/progress-color-segments-async.pipe.js +0 -21
- package/esm5/components/progress/pipes/progress-color-segments.pipe.js +0 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.37.0",
|
|
4
4
|
"description": "Taiga UI Angular main components kit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@ng-web-apis/common": ">=1.12.1 < 2",
|
|
26
26
|
"@ng-web-apis/mutation-observer": ">=1.1.0",
|
|
27
27
|
"@tinkoff/ng-polymorpheus": ">=3.1.12 < 4",
|
|
28
|
-
"@taiga-ui/cdk": ">=2.
|
|
29
|
-
"@taiga-ui/core": ">=2.
|
|
30
|
-
"@taiga-ui/i18n": ">=2.
|
|
28
|
+
"@taiga-ui/cdk": ">=2.37.0",
|
|
29
|
+
"@taiga-ui/core": ">=2.37.0",
|
|
30
|
+
"@taiga-ui/i18n": ">=2.37.0",
|
|
31
31
|
"rxjs": ">=6.0.0"
|
|
32
32
|
},
|
|
33
33
|
"main": "bundles/taiga-ui-kit.umd.js",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Injector, OnDestroy, PipeTransform } from '@angular/core';
|
|
2
|
+
import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
|
|
3
|
+
export declare class TuiFieldErrorContentPipe implements PipeTransform, OnDestroy {
|
|
4
|
+
private readonly injector;
|
|
5
|
+
private readonly localInjector;
|
|
6
|
+
private readonly asyncPipe;
|
|
7
|
+
private readonly fieldErrorPipe;
|
|
8
|
+
constructor(injector: Injector);
|
|
9
|
+
transform(order: ReadonlyArray<string>): PolymorpheusContent;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
private getErrorContent;
|
|
12
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"TuiFieldErrorPipeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"TuiFieldErrorPipeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"TuiFieldErrorPipe"},{"__symbolic":"reference","name":"TuiFieldErrorContentPipe"}],"exports":[{"__symbolic":"reference","name":"TuiFieldErrorPipe"},{"__symbolic":"reference","name":"TuiFieldErrorContentPipe"}]}]}],"members":{}},"TuiFieldErrorContentPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":7,"character":1},"arguments":[{"name":"tuiFieldErrorContent","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":20,"character":17},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":20,"character":24}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":20,"character":61}]}],"transform":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"getErrorContent":[{"__symbolic":"method"}]}},"TuiFieldErrorPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":17,"character":1},"arguments":[{"name":"tuiFieldError","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":25,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":26,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":27,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/forms","name":"NgControl","line":27,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":29,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":30,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":31,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/forms","name":"FormArrayName","line":31,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":33,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":34,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":35,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/forms","name":"FormGroupName","line":35,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":37,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":38,"character":9}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":39,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/forms","name":"FormGroupDirective","line":39,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":41,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/kit/tokens","name":"TUI_VALIDATION_ERRORS","line":41,"character":16}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/forms","name":"NgControl","line":28,"character":36},{"__symbolic":"reference","module":"@angular/forms","name":"FormArrayName","line":32,"character":40},{"__symbolic":"reference","module":"@angular/forms","name":"FormGroupName","line":36,"character":40},{"__symbolic":"reference","module":"@angular/forms","name":"FormGroupDirective","line":40,"character":36},{"__symbolic":"error","message":"Could not resolve type","line":42,"character":43,"context":{"typeName":"Record"},"module":"./field-error-pipe"}]}],"transform":[{"__symbolic":"method"}],"change$":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":58,"character":5}]}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"getErrorId":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":117,"character":5}]}],"getError":[{"__symbolic":"method","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":128,"character":5}]}]}}},"origins":{"TuiFieldErrorPipeModule":"./field-error.module","TuiFieldErrorContentPipe":"./field-error-content-pipe","TuiFieldErrorPipe":"./field-error-pipe"},"importAs":"@taiga-ui/kit/pipes/field-error"}
|
package/providers/index.d.ts
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FactoryProvider } from '@angular/core';
|
|
2
|
+
import { TuiHandler, TuiMonth } from '@taiga-ui/cdk';
|
|
3
|
+
import { TuiMonthPipe } from '@taiga-ui/core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
export declare const TUI_MONTH_FORMATTER_PROVIDER: FactoryProvider;
|
|
6
|
+
export declare function monthFormatterFactory(pipe: TuiMonthPipe): TuiHandler<TuiMonth | null, Observable<string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"fixedDropdownControllerFactory":{"__symbolic":"function"},"FIXED_DROPDOWN_CONTROLLER_PROVIDER":[{"provide":{"__symbolic":"reference","module":"@taiga-ui/core","name":"TUI_DROPDOWN_CONTROLLER","line":14,"character":17},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":15,"character":20}},{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiDropdownControllerDirective","line":15,"character":32}]],"useFactory":{"__symbolic":"reference","name":"fixedDropdownControllerFactory"}}],"leftAlignedDropdownControllerFactory":{"__symbolic":"function"},"LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER":[{"provide":{"__symbolic":"reference","module":"@taiga-ui/core","name":"TUI_DROPDOWN_CONTROLLER","line":31,"character":17},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":32,"character":20}},{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiDropdownControllerDirective","line":32,"character":32}]],"useFactory":{"__symbolic":"reference","name":"leftAlignedDropdownControllerFactory"}}],"TUI_VALUE_ACCESSOR_PROVIDER":{"provide":{"__symbolic":"reference","module":"@taiga-ui/core
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"TUI_MONTH_FORMATTER_PROVIDER":{"provide":{"__symbolic":"reference","module":"@taiga-ui/kit/tokens","name":"TUI_MONTH_FORMATTER","line":8,"character":13},"deps":[{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiMonthPipe","line":9,"character":11}],"useFactory":{"__symbolic":"reference","name":"monthFormatterFactory"}},"monthFormatterFactory":{"__symbolic":"function","parameters":["pipe"],"value":{"__symbolic":"error","message":"Lambda not supported","line":16,"character":11,"module":"./month-formatter.provider"}},"fixedDropdownControllerFactory":{"__symbolic":"function"},"FIXED_DROPDOWN_CONTROLLER_PROVIDER":[{"provide":{"__symbolic":"reference","module":"@taiga-ui/core","name":"TUI_DROPDOWN_CONTROLLER","line":14,"character":17},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":15,"character":20}},{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiDropdownControllerDirective","line":15,"character":32}]],"useFactory":{"__symbolic":"reference","name":"fixedDropdownControllerFactory"}}],"leftAlignedDropdownControllerFactory":{"__symbolic":"function"},"LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER":[{"provide":{"__symbolic":"reference","module":"@taiga-ui/core","name":"TUI_DROPDOWN_CONTROLLER","line":31,"character":17},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":32,"character":20}},{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiDropdownControllerDirective","line":32,"character":32}]],"useFactory":{"__symbolic":"reference","name":"leftAlignedDropdownControllerFactory"}}],"TUI_VALUE_ACCESSOR_PROVIDER":{"provide":{"__symbolic":"reference","module":"@taiga-ui/core","name":"TUI_VALUE_ACCESSOR","line":9,"character":13},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":10,"character":16}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":10,"character":32}},{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":10,"character":40}]],"useFactory":{"__symbolic":"reference","name":"identity","module":"rxjs"}}},"origins":{"TUI_MONTH_FORMATTER_PROVIDER":"./month-formatter.provider","monthFormatterFactory":"./month-formatter.provider","fixedDropdownControllerFactory":"./specific-dropdown-controllers","FIXED_DROPDOWN_CONTROLLER_PROVIDER":"./specific-dropdown-controllers","leftAlignedDropdownControllerFactory":"./specific-dropdown-controllers","LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER":"./specific-dropdown-controllers","IDENTITY":"rxjs","TUI_VALUE_ACCESSOR_PROVIDER":"./value-accessor.provider"},"importAs":"@taiga-ui/kit/providers"}
|
package/tokens/i18n.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import { Observable } from 'rxjs';
|
|
|
5
5
|
export declare const TUI_CANCEL_WORD: InjectionToken<Observable<string>>;
|
|
6
6
|
export declare const TUI_DONE_WORD: InjectionToken<Observable<string>>;
|
|
7
7
|
export declare const TUI_MORE_WORD: InjectionToken<Observable<string>>;
|
|
8
|
+
export declare const TUI_HIDE_TEXT: InjectionToken<Observable<string>>;
|
|
9
|
+
export declare const TUI_SHOW_ALL_TEXT: InjectionToken<Observable<string>>;
|
|
8
10
|
export declare const TUI_OTHER_DATE_TEXT: InjectionToken<Observable<string>>;
|
|
9
11
|
export declare const TUI_CHOOSE_DAY_OR_RANGE_TEXTS: InjectionToken<Observable<[string, string]>>;
|
|
10
12
|
export declare const TUI_FROM_TO_TEXTS: InjectionToken<Observable<[string, string]>>;
|
package/tokens/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"TUI_CALENDAR_DATA_STREAM":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":44},"arguments":["Stream that emits calendar data change"]},"TUI_DATE_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":46},"arguments":["Control value transformer of TuiDay to custom value format for InputDate* components"]},"TUI_DATE_RANGE_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":7,"character":52},"arguments":["Control value transformer for InputDateRange component"]},"TUI_DATE_TIME_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":11,"character":51},"arguments":["Control value transformer for InputDateTime component"]},"TUI_CANCEL_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":35},"arguments":["i18n 'cancel' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":6,"character":13},"arguments":["cancel"]}}]},"TUI_DONE_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":33},"arguments":["i18n 'done' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":10,"character":13},"arguments":["done"]}}]},"TUI_MORE_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":13,"character":33},"arguments":["i18n 'more' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":14,"character":13},"arguments":["more"]}}]},"TUI_OTHER_DATE_TEXT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":17,"character":39},"arguments":["i18n 'Other date' text",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":18,"character":13},"arguments":["otherDate"]}}]},"TUI_CHOOSE_DAY_OR_RANGE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":21,"character":49},"arguments":["choose day or range i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":24,"character":17},"arguments":["mobileCalendarTexts"]}}]},"TUI_FROM_TO_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":28,"character":37},"arguments":["from and to i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":29,"character":13},"arguments":["range"]}}]},"TUI_PLUS_MINUS_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":32,"character":40},"arguments":["plus and minus i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":33,"character":13},"arguments":["countTexts"]}}]},"TUI_TIME_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":36,"character":34},"arguments":["time i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":37,"character":13},"arguments":["time"]}}]},"TUI_DATE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":40,"character":34},"arguments":["date format i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":43,"character":17},"arguments":["dateTexts"]}}]},"TUI_DIGITAL_INFORMATION_UNITS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":47,"character":49},"arguments":["short bytes, kilobytes and megabytes i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":50,"character":17},"arguments":["digitalInformationUnits"]}}]},"TUI_COPY_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":54,"character":34},"arguments":["copy i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":55,"character":13},"arguments":["copyTexts"]}}]},"TUI_PASSWORD_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":58,"character":38},"arguments":["password i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":59,"character":13},"arguments":["passwordTexts"]}}]},"TUI_CALENDAR_MONTHS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":62,"character":39},"arguments":["short calendar months i18n",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":63,"character":13},"arguments":["shortCalendarMonths"]}}]},"TUI_FILE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":66,"character":34},"arguments":["file i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":67,"character":13},"arguments":["fileTexts"]}}]},"TUI_PAGINATION_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":70,"character":40},"arguments":["pagination i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":71,"character":13},"arguments":["paginationTexts"]}}]},"TUI_INPUT_FILE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":74,"character":40},"arguments":["tui-input-file i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":75,"character":13},"arguments":["inputFileTexts"]}}]},"TUI_COUNTRIES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":80,"character":8},"arguments":["Localized countries names",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":81,"character":13},"arguments":["countries"]}}]},"TuiItemsHandlers":{"__symbolic":"interface"},"TUI_DEFAULT_ITEMS_HANDLERS":{"stringify":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_DEFAULT_STRINGIFY","line":17,"character":15},"identityMatcher":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_DEFAULT_IDENTITY_MATCHER","line":18,"character":21},"disabledItemHandler":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"ALWAYS_FALSE_HANDLER","line":19,"character":25}},"TUI_ITEMS_HANDLERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":22,"character":38},"arguments":["Default items handlers for components",{"__symbolic":"error","message":"Lambda not supported","line":25,"character":17,"module":"./items-handlers"}]},"tuiItemsHandlersProvider":{"__symbolic":"error","message":"Lambda not supported","line":31,"character":21,"module":"./items-handlers"},"TUI_MOBILE_AWARE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":36},"arguments":["A flag enabling mobile-specific behavior for supporting components",{"__symbolic":"error","message":"Lambda not supported","line":5,"character":17,"module":"./mobile-aware"}]},"TUI_MOBILE_CALENDAR":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":39},"arguments":["A component for mobile data picker"]},"TUI_TAG_STATUS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":34},"arguments":["Status for tags inside InputTag component",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tag-status"}]},"TUI_VALIDATION_ERRORS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":41},"arguments":["Validation errors",{"__symbolic":"error","message":"Lambda not supported","line":7,"character":13,"module":"./validation-errors"}]}},"origins":{"TUI_CALENDAR_DATA_STREAM":"./calendar-data-stream","TUI_DATE_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_DATE_RANGE_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_DATE_TIME_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_CANCEL_WORD":"./i18n","TUI_DONE_WORD":"./i18n","TUI_MORE_WORD":"./i18n","TUI_OTHER_DATE_TEXT":"./i18n","TUI_CHOOSE_DAY_OR_RANGE_TEXTS":"./i18n","TUI_FROM_TO_TEXTS":"./i18n","TUI_PLUS_MINUS_TEXTS":"./i18n","TUI_TIME_TEXTS":"./i18n","TUI_DATE_TEXTS":"./i18n","TUI_DIGITAL_INFORMATION_UNITS":"./i18n","TUI_COPY_TEXTS":"./i18n","TUI_PASSWORD_TEXTS":"./i18n","TUI_CALENDAR_MONTHS":"./i18n","TUI_FILE_TEXTS":"./i18n","TUI_PAGINATION_TEXTS":"./i18n","TUI_INPUT_FILE_TEXTS":"./i18n","TUI_COUNTRIES":"./i18n","TuiItemsHandlers":"./items-handlers","TUI_DEFAULT_ITEMS_HANDLERS":"./items-handlers","TUI_ITEMS_HANDLERS":"./items-handlers","tuiItemsHandlersProvider":"./items-handlers","TUI_MOBILE_AWARE":"./mobile-aware","TUI_MOBILE_CALENDAR":"./mobile-calendar","TUI_TAG_STATUS":"./tag-status","TUI_VALIDATION_ERRORS":"./validation-errors"},"importAs":"@taiga-ui/kit/tokens"}
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"TUI_CALENDAR_DATA_STREAM":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":44},"arguments":["Stream that emits calendar data change"]},"TUI_DATE_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":46},"arguments":["Control value transformer of TuiDay to custom value format for InputDate* components"]},"TUI_DATE_RANGE_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":7,"character":52},"arguments":["Control value transformer for InputDateRange component"]},"TUI_DATE_TIME_VALUE_TRANSFORMER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":11,"character":51},"arguments":["Control value transformer for InputDateTime component"]},"TUI_CANCEL_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":35},"arguments":["i18n 'cancel' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":6,"character":13},"arguments":["cancel"]}}]},"TUI_DONE_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":33},"arguments":["i18n 'done' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":10,"character":13},"arguments":["done"]}}]},"TUI_MORE_WORD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":13,"character":33},"arguments":["i18n 'more' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":14,"character":13},"arguments":["more"]}}]},"TUI_HIDE_TEXT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":17,"character":33},"arguments":["i18n 'hide' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":18,"character":13},"arguments":["hide"]}}]},"TUI_SHOW_ALL_TEXT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":21,"character":37},"arguments":["i18n 'show all' word",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":22,"character":13},"arguments":["showAll"]}}]},"TUI_OTHER_DATE_TEXT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":25,"character":39},"arguments":["i18n 'Other date' text",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":26,"character":13},"arguments":["otherDate"]}}]},"TUI_CHOOSE_DAY_OR_RANGE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":29,"character":49},"arguments":["choose day or range i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":32,"character":17},"arguments":["mobileCalendarTexts"]}}]},"TUI_FROM_TO_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":36,"character":37},"arguments":["from and to i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":37,"character":13},"arguments":["range"]}}]},"TUI_PLUS_MINUS_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":40,"character":40},"arguments":["plus and minus i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":41,"character":13},"arguments":["countTexts"]}}]},"TUI_TIME_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":44,"character":34},"arguments":["time i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":45,"character":13},"arguments":["time"]}}]},"TUI_DATE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":48,"character":34},"arguments":["date format i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":51,"character":17},"arguments":["dateTexts"]}}]},"TUI_DIGITAL_INFORMATION_UNITS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":55,"character":49},"arguments":["short bytes, kilobytes and megabytes i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":58,"character":17},"arguments":["digitalInformationUnits"]}}]},"TUI_COPY_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":62,"character":34},"arguments":["copy i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":63,"character":13},"arguments":["copyTexts"]}}]},"TUI_PASSWORD_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":66,"character":38},"arguments":["password i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":67,"character":13},"arguments":["passwordTexts"]}}]},"TUI_CALENDAR_MONTHS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":70,"character":39},"arguments":["short calendar months i18n",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":71,"character":13},"arguments":["shortCalendarMonths"]}}]},"TUI_FILE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":74,"character":34},"arguments":["file i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":75,"character":13},"arguments":["fileTexts"]}}]},"TUI_PAGINATION_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":78,"character":40},"arguments":["pagination i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":79,"character":13},"arguments":["paginationTexts"]}}]},"TUI_INPUT_FILE_TEXTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":82,"character":40},"arguments":["tui-input-file i18n texts",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":83,"character":13},"arguments":["inputFileTexts"]}}]},"TUI_COUNTRIES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":88,"character":8},"arguments":["Localized countries names",{"factory":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/i18n","name":"extractI18n","line":89,"character":13},"arguments":["countries"]}}]},"TuiItemsHandlers":{"__symbolic":"interface"},"TUI_DEFAULT_ITEMS_HANDLERS":{"stringify":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_DEFAULT_STRINGIFY","line":17,"character":15},"identityMatcher":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_DEFAULT_IDENTITY_MATCHER","line":18,"character":21},"disabledItemHandler":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"ALWAYS_FALSE_HANDLER","line":19,"character":25}},"TUI_ITEMS_HANDLERS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":22,"character":38},"arguments":["Default items handlers for components",{"__symbolic":"error","message":"Lambda not supported","line":25,"character":17,"module":"./items-handlers"}]},"tuiItemsHandlersProvider":{"__symbolic":"error","message":"Lambda not supported","line":31,"character":21,"module":"./items-handlers"},"TUI_MOBILE_AWARE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":36},"arguments":["A flag enabling mobile-specific behavior for supporting components",{"__symbolic":"error","message":"Lambda not supported","line":5,"character":17,"module":"./mobile-aware"}]},"TUI_MOBILE_CALENDAR":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":39},"arguments":["A component for mobile data picker"]},"TUI_MONTH_FORMATTER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":39},"arguments":["A function to get localized formatted month"]},"TUI_TAG_STATUS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":34},"arguments":["Status for tags inside InputTag component",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tag-status"}]},"TUI_VALIDATION_ERRORS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":41},"arguments":["Validation errors",{"__symbolic":"error","message":"Lambda not supported","line":7,"character":13,"module":"./validation-errors"}]}},"origins":{"TUI_CALENDAR_DATA_STREAM":"./calendar-data-stream","TUI_DATE_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_DATE_RANGE_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_DATE_TIME_VALUE_TRANSFORMER":"./date-inputs-value-transformers","TUI_CANCEL_WORD":"./i18n","TUI_DONE_WORD":"./i18n","TUI_MORE_WORD":"./i18n","TUI_HIDE_TEXT":"./i18n","TUI_SHOW_ALL_TEXT":"./i18n","TUI_OTHER_DATE_TEXT":"./i18n","TUI_CHOOSE_DAY_OR_RANGE_TEXTS":"./i18n","TUI_FROM_TO_TEXTS":"./i18n","TUI_PLUS_MINUS_TEXTS":"./i18n","TUI_TIME_TEXTS":"./i18n","TUI_DATE_TEXTS":"./i18n","TUI_DIGITAL_INFORMATION_UNITS":"./i18n","TUI_COPY_TEXTS":"./i18n","TUI_PASSWORD_TEXTS":"./i18n","TUI_CALENDAR_MONTHS":"./i18n","TUI_FILE_TEXTS":"./i18n","TUI_PAGINATION_TEXTS":"./i18n","TUI_INPUT_FILE_TEXTS":"./i18n","TUI_COUNTRIES":"./i18n","TuiItemsHandlers":"./items-handlers","TUI_DEFAULT_ITEMS_HANDLERS":"./items-handlers","TUI_ITEMS_HANDLERS":"./items-handlers","tuiItemsHandlersProvider":"./items-handlers","TUI_MOBILE_AWARE":"./mobile-aware","TUI_MOBILE_CALENDAR":"./mobile-calendar","TUI_MONTH_FORMATTER":"./month-formatter","TUI_TAG_STATUS":"./tag-status","TUI_VALIDATION_ERRORS":"./validation-errors"},"importAs":"@taiga-ui/kit/tokens"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getAcceptArray(accept: string): readonly string[];
|
package/utils/files/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"formatSize":{"__symbolic":"function"}},"origins":{"formatSize":"./format-size"},"importAs":"@taiga-ui/kit/utils/files"}
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"formatSize":{"__symbolic":"function"},"getAcceptArray":{"__symbolic":"function","parameters":["accept"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"accept"},"member":"toLowerCase"}},"member":"split"},"arguments":[","]},"member":"map"},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":4,"character":13,"module":"./get-accept-array"}]}}},"origins":{"formatSize":"./format-size","getAcceptArray":"./get-accept-array"},"importAs":"@taiga-ui/kit/utils/files"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AbstractTuiColorSegments } from './abstract-color-segments';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated use tuiProgressColorSegmentsAsync instead
|
|
4
|
-
* {@link TuiProgressColorSegmentsAsyncPipe}
|
|
5
|
-
* example: `<progress [color]="colors | tuiProgressColorSegmentsAsync | async">`
|
|
6
|
-
*/
|
|
7
|
-
export declare class TuiProgressColorSegmentsPipe extends AbstractTuiColorSegments<string> {
|
|
8
|
-
transform(colors: string[]): string;
|
|
9
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from "tslib";
|
|
2
|
-
import { ElementRef, Inject, Injectable, PipeTransform } from '@angular/core';
|
|
3
|
-
import { USER_AGENT } from '@ng-web-apis/common';
|
|
4
|
-
import { CHROMIUM_EDGE_START_VERSION, isEdgeOlderThan, isIE } from '@taiga-ui/cdk';
|
|
5
|
-
let AbstractTuiColorSegments = class AbstractTuiColorSegments {
|
|
6
|
-
constructor(userAgent, elementRef) {
|
|
7
|
-
this.userAgent = userAgent;
|
|
8
|
-
this.elementRef = elementRef;
|
|
9
|
-
this.isOldBrowsers = isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent) ||
|
|
10
|
-
isIE(this.userAgent);
|
|
11
|
-
}
|
|
12
|
-
calculate(colors) {
|
|
13
|
-
if (this.isOldBrowsers) {
|
|
14
|
-
return colors[0];
|
|
15
|
-
}
|
|
16
|
-
const elementWidth = this.elementRef.nativeElement.offsetWidth;
|
|
17
|
-
const segmentWidth = Math.ceil(elementWidth / colors.length);
|
|
18
|
-
const colorsString = colors.reduce((acc, color, i) => `${acc}, ${color} ${i * segmentWidth}px ${(i + 1) * segmentWidth}px`, '');
|
|
19
|
-
return `linear-gradient(to right ${colorsString})`;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
AbstractTuiColorSegments.ctorParameters = () => [
|
|
23
|
-
{ type: String, decorators: [{ type: Inject, args: [USER_AGENT,] }] },
|
|
24
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
|
|
25
|
-
];
|
|
26
|
-
AbstractTuiColorSegments = __decorate([
|
|
27
|
-
Injectable(),
|
|
28
|
-
__param(0, Inject(USER_AGENT)),
|
|
29
|
-
__param(1, Inject(ElementRef))
|
|
30
|
-
], AbstractTuiColorSegments);
|
|
31
|
-
export { AbstractTuiColorSegments };
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QtY29sb3Itc2VnbWVudHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGFpZ2EtdWkva2l0L2NvbXBvbmVudHMvcHJvZ3Jlc3MvIiwic291cmNlcyI6WyJwaXBlcy9hYnN0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QWdlbnQpO1xuXG4gICAgY29uc3RydWN0b3IoXG4gICAgICAgIEBJbmplY3QoVVNFUl9BR0VOVCkgcHJpdmF0ZSByZWFkb25seSB1c2VyQWdlbnQ6IHN0cmluZyxcbiAgICAgICAgQEluamVjdChFbGVtZW50UmVmKSBwcml2YXRlIHJlYWRvbmx5IGVsZW1lbnRSZWY6IEVsZW1lbnRSZWY8SFRNTEVsZW1lbnQ+LFxuICAgICkge31cblxuICAgIGFic3RyYWN0IHRyYW5zZm9ybShjb2xvcnM6IHN0cmluZ1tdKTogVDtcblxuICAgIHByb3RlY3RlZCBjYWxjdWxhdGUoY29sb3JzOiBzdHJpbmdbXSk6IHN0cmluZyB7XG4gICAgICAgIGlmICh0aGlzLmlzT2xkQnJvd3NlcnMpIHtcbiAgICAgICAgICAgIHJldHVybiBjb2xvcnNbMF07XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBlbGVtZW50V2lkdGggPSB0aGlzLmVsZW1lbnRSZWYubmF0aXZlRWxlbWVudC5vZmZzZXRXaWR0aDtcbiAgICAgICAgY29uc3Qgc2VnbWVudFdpZHRoID0gTWF0aC5jZWlsKGVsZW1lbnRXaWR0aCAvIGNvbG9ycy5sZW5ndGgpO1xuICAgICAgICBjb25zdCBjb2xvcnNTdHJpbmcgPSBjb2xvcnMucmVkdWNlKFxuICAgICAgICAgICAgKGFjYywgY29sb3IsIGkpID0+XG4gICAgICAgICAgICAgICAgYCR7YWNjfSwgJHtjb2xvcn0gJHtpICogc2VnbWVudFdpZHRofXB4ICR7KGkgKyAxKSAqIHNlZ21lbnRXaWR0aH1weGAsXG4gICAgICAgICAgICAnJyxcbiAgICAgICAgKTtcblxuICAgICAgICByZXR1cm4gYGxpbmVhci1ncmFkaWVudCh0byByaWdodCAke2NvbG9yc1N0cmluZ30pYDtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Pipe } from '@angular/core';
|
|
3
|
-
import { timer } from 'rxjs';
|
|
4
|
-
import { map } from 'rxjs/operators';
|
|
5
|
-
import { AbstractTuiColorSegments } from './abstract-color-segments';
|
|
6
|
-
let TuiProgressColorSegmentsAsyncPipe = class TuiProgressColorSegmentsAsyncPipe extends AbstractTuiColorSegments {
|
|
7
|
-
transform(colors) {
|
|
8
|
-
return timer(0).pipe(map(() => this.calculate(colors)));
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
TuiProgressColorSegmentsAsyncPipe = __decorate([
|
|
12
|
-
Pipe({ name: 'tuiProgressColorSegmentsAsync' })
|
|
13
|
-
], TuiProgressColorSegmentsAsyncPipe);
|
|
14
|
-
export { TuiProgressColorSegmentsAsyncPipe };
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3MtY29sb3Itc2VnbWVudHMtYXN5bmMucGlwZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YWlnYS11aS9raXQvY29tcG9uZW50cy9wcm9ncmVzcy8iLCJzb3VyY2VzIjpbInBpcGVzL3Byb2dyZXNzLWNvbG9yLXNlZ21lbnRzLWFzeW5jLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyxJQUFJLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDbkMsT0FBTyxFQUFhLEtBQUssRUFBQyxNQUFNLE1BQU0sQ0FBQztBQUN2QyxPQUFPLEVBQUMsR0FBRyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFFbkMsT0FBTyxFQUFDLHdCQUF3QixFQUFDLE1BQU0sMkJBQTJCLENBQUM7QUFHbkUsSUFBYSxpQ0FBaUMsR0FBOUMsTUFBYSxpQ0FBa0MsU0FBUSx3QkFFdEQ7SUFDRyxTQUFTLENBQUMsTUFBZ0I7UUFDdEIsT0FBTyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUM1RCxDQUFDO0NBQ0osQ0FBQTtBQU5ZLGlDQUFpQztJQUQ3QyxJQUFJLENBQUMsRUFBQyxJQUFJLEVBQUUsK0JBQStCLEVBQUMsQ0FBQztHQUNqQyxpQ0FBaUMsQ0FNN0M7U0FOWSxpQ0FBaUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1BpcGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtPYnNlcnZhYmxlLCB0aW1lcn0gZnJvbSAncnhqcyc7XG5pbXBvcnQge21hcH0gZnJvbSAncnhqcy9vcGVyYXRvcnMnO1xuXG5pbXBvcnQge0Fic3RyYWN0VHVpQ29sb3JTZWdtZW50c30gZnJvbSAnLi9hYnN0cmFjdC1jb2xvci1zZWdtZW50cyc7XG5cbkBQaXBlKHtuYW1lOiAndHVpUHJvZ3Jlc3NDb2xvclNlZ21lbnRzQXN5bmMnfSlcbmV4cG9ydCBjbGFzcyBUdWlQcm9ncmVzc0NvbG9yU2VnbWVudHNBc3luY1BpcGUgZXh0ZW5kcyBBYnN0cmFjdFR1aUNvbG9yU2VnbWVudHM8XG4gICAgT2JzZXJ2YWJsZTxzdHJpbmc+XG4+IHtcbiAgICB0cmFuc2Zvcm0oY29sb3JzOiBzdHJpbmdbXSk6IE9ic2VydmFibGU8c3RyaW5nPiB7XG4gICAgICAgIHJldHVybiB0aW1lcigwKS5waXBlKG1hcCgoKSA9PiB0aGlzLmNhbGN1bGF0ZShjb2xvcnMpKSk7XG4gICAgfVxufVxuIl19
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Pipe } from '@angular/core';
|
|
3
|
-
import { AbstractTuiColorSegments } from './abstract-color-segments';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated use tuiProgressColorSegmentsAsync instead
|
|
6
|
-
* {@link TuiProgressColorSegmentsAsyncPipe}
|
|
7
|
-
* example: `<progress [color]="colors | tuiProgressColorSegmentsAsync | async">`
|
|
8
|
-
*/
|
|
9
|
-
let TuiProgressColorSegmentsPipe = class TuiProgressColorSegmentsPipe extends AbstractTuiColorSegments {
|
|
10
|
-
transform(colors) {
|
|
11
|
-
return this.calculate(colors);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
TuiProgressColorSegmentsPipe = __decorate([
|
|
15
|
-
Pipe({ name: 'tuiProgressColorSegments' })
|
|
16
|
-
], TuiProgressColorSegmentsPipe);
|
|
17
|
-
export { TuiProgressColorSegmentsPipe };
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3MtY29sb3Itc2VnbWVudHMucGlwZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YWlnYS11aS9raXQvY29tcG9uZW50cy9wcm9ncmVzcy8iLCJzb3VyY2VzIjpbInBpcGVzL3Byb2dyZXNzLWNvbG9yLXNlZ21lbnRzLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyxJQUFJLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFbkMsT0FBTyxFQUFDLHdCQUF3QixFQUFDLE1BQU0sMkJBQTJCLENBQUM7QUFFbkU7Ozs7R0FJRztBQUVILElBQWEsNEJBQTRCLEdBQXpDLE1BQWEsNEJBQTZCLFNBQVEsd0JBQWdDO0lBQzlFLFNBQVMsQ0FBQyxNQUFnQjtRQUN0QixPQUFPLElBQUksQ0FBQyxTQUFTLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDbEMsQ0FBQztDQUNKLENBQUE7QUFKWSw0QkFBNEI7SUFEeEMsSUFBSSxDQUFDLEVBQUMsSUFBSSxFQUFFLDBCQUEwQixFQUFDLENBQUM7R0FDNUIsNEJBQTRCLENBSXhDO1NBSlksNEJBQTRCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtQaXBlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuaW1wb3J0IHtBYnN0cmFjdFR1aUNvbG9yU2VnbWVudHN9IGZyb20gJy4vYWJzdHJhY3QtY29sb3Itc2VnbWVudHMnO1xuXG4vKipcbiAqIEBkZXByZWNhdGVkIHVzZSB0dWlQcm9ncmVzc0NvbG9yU2VnbWVudHNBc3luYyBpbnN0ZWFkXG4gKiB7QGxpbmsgVHVpUHJvZ3Jlc3NDb2xvclNlZ21lbnRzQXN5bmNQaXBlfVxuICogZXhhbXBsZTogYDxwcm9ncmVzcyBbY29sb3JdPVwiY29sb3JzIHwgdHVpUHJvZ3Jlc3NDb2xvclNlZ21lbnRzQXN5bmMgfCBhc3luY1wiPmBcbiAqL1xuQFBpcGUoe25hbWU6ICd0dWlQcm9ncmVzc0NvbG9yU2VnbWVudHMnfSlcbmV4cG9ydCBjbGFzcyBUdWlQcm9ncmVzc0NvbG9yU2VnbWVudHNQaXBlIGV4dGVuZHMgQWJzdHJhY3RUdWlDb2xvclNlZ21lbnRzPHN0cmluZz4ge1xuICAgIHRyYW5zZm9ybShjb2xvcnM6IHN0cmluZ1tdKTogc3RyaW5nIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuY2FsY3VsYXRlKGNvbG9ycyk7XG4gICAgfVxufVxuIl19
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from "tslib";
|
|
2
|
-
import { ElementRef, Inject, Injectable, PipeTransform } from '@angular/core';
|
|
3
|
-
import { USER_AGENT } from '@ng-web-apis/common';
|
|
4
|
-
import { CHROMIUM_EDGE_START_VERSION, isEdgeOlderThan, isIE } from '@taiga-ui/cdk';
|
|
5
|
-
var AbstractTuiColorSegments = /** @class */ (function () {
|
|
6
|
-
function AbstractTuiColorSegments(userAgent, elementRef) {
|
|
7
|
-
this.userAgent = userAgent;
|
|
8
|
-
this.elementRef = elementRef;
|
|
9
|
-
this.isOldBrowsers = isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent) ||
|
|
10
|
-
isIE(this.userAgent);
|
|
11
|
-
}
|
|
12
|
-
AbstractTuiColorSegments.prototype.calculate = function (colors) {
|
|
13
|
-
if (this.isOldBrowsers) {
|
|
14
|
-
return colors[0];
|
|
15
|
-
}
|
|
16
|
-
var elementWidth = this.elementRef.nativeElement.offsetWidth;
|
|
17
|
-
var segmentWidth = Math.ceil(elementWidth / colors.length);
|
|
18
|
-
var colorsString = colors.reduce(function (acc, color, i) {
|
|
19
|
-
return acc + ", " + color + " " + i * segmentWidth + "px " + (i + 1) * segmentWidth + "px";
|
|
20
|
-
}, '');
|
|
21
|
-
return "linear-gradient(to right " + colorsString + ")";
|
|
22
|
-
};
|
|
23
|
-
AbstractTuiColorSegments.ctorParameters = function () { return [
|
|
24
|
-
{ type: String, decorators: [{ type: Inject, args: [USER_AGENT,] }] },
|
|
25
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
|
|
26
|
-
]; };
|
|
27
|
-
AbstractTuiColorSegments = __decorate([
|
|
28
|
-
Injectable(),
|
|
29
|
-
__param(0, Inject(USER_AGENT)),
|
|
30
|
-
__param(1, Inject(ElementRef))
|
|
31
|
-
], AbstractTuiColorSegments);
|
|
32
|
-
return AbstractTuiColorSegments;
|
|
33
|
-
}());
|
|
34
|
-
export { AbstractTuiColorSegments };
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QtY29sb3Itc2VnbWVudHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGFpZ2EtdWkva2l0L2NvbXBvbmVudHMvcHJvZ3Jlc3MvIiwic291cmNlcyI6WyJwaXBlcy9hYnN0cmFjdC1jb2xvci1zZWdtZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIj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9BR0VOVCkgcHJpdmF0ZSByZWFkb25seSB1c2VyQWdlbnQ6IHN0cmluZyxcbiAgICAgICAgQEluamVjdChFbGVtZW50UmVmKSBwcml2YXRlIHJlYWRvbmx5IGVsZW1lbnRSZWY6IEVsZW1lbnRSZWY8SFRNTEVsZW1lbnQ+LFxuICAgICkge31cblxuICAgIGFic3RyYWN0IHRyYW5zZm9ybShjb2xvcnM6IHN0cmluZ1tdKTogVDtcblxuICAgIHByb3RlY3RlZCBjYWxjdWxhdGUoY29sb3JzOiBzdHJpbmdbXSk6IHN0cmluZyB7XG4gICAgICAgIGlmICh0aGlzLmlzT2xkQnJvd3NlcnMpIHtcbiAgICAgICAgICAgIHJldHVybiBjb2xvcnNbMF07XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBlbGVtZW50V2lkdGggPSB0aGlzLmVsZW1lbnRSZWYubmF0aXZlRWxlbWVudC5vZmZzZXRXaWR0aDtcbiAgICAgICAgY29uc3Qgc2VnbWVudFdpZHRoID0gTWF0aC5jZWlsKGVsZW1lbnRXaWR0aCAvIGNvbG9ycy5sZW5ndGgpO1xuICAgICAgICBjb25zdCBjb2xvcnNTdHJpbmcgPSBjb2xvcnMucmVkdWNlKFxuICAgICAgICAgICAgKGFjYywgY29sb3IsIGkpID0+XG4gICAgICAgICAgICAgICAgYCR7YWNjfSwgJHtjb2xvcn0gJHtpICogc2VnbWVudFdpZHRofXB4ICR7KGkgKyAxKSAqIHNlZ21lbnRXaWR0aH1weGAsXG4gICAgICAgICAgICAnJyxcbiAgICAgICAgKTtcblxuICAgICAgICByZXR1cm4gYGxpbmVhci1ncmFkaWVudCh0byByaWdodCAke2NvbG9yc1N0cmluZ30pYDtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { __decorate, __extends } from "tslib";
|
|
2
|
-
import { Pipe } from '@angular/core';
|
|
3
|
-
import { timer } from 'rxjs';
|
|
4
|
-
import { map } from 'rxjs/operators';
|
|
5
|
-
import { AbstractTuiColorSegments } from './abstract-color-segments';
|
|
6
|
-
var TuiProgressColorSegmentsAsyncPipe = /** @class */ (function (_super) {
|
|
7
|
-
__extends(TuiProgressColorSegmentsAsyncPipe, _super);
|
|
8
|
-
function TuiProgressColorSegmentsAsyncPipe() {
|
|
9
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
10
|
-
}
|
|
11
|
-
TuiProgressColorSegmentsAsyncPipe.prototype.transform = function (colors) {
|
|
12
|
-
var _this = this;
|
|
13
|
-
return timer(0).pipe(map(function () { return _this.calculate(colors); }));
|
|
14
|
-
};
|
|
15
|
-
TuiProgressColorSegmentsAsyncPipe = __decorate([
|
|
16
|
-
Pipe({ name: 'tuiProgressColorSegmentsAsync' })
|
|
17
|
-
], TuiProgressColorSegmentsAsyncPipe);
|
|
18
|
-
return TuiProgressColorSegmentsAsyncPipe;
|
|
19
|
-
}(AbstractTuiColorSegments));
|
|
20
|
-
export { TuiProgressColorSegmentsAsyncPipe };
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3MtY29sb3Itc2VnbWVudHMtYXN5bmMucGlwZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YWlnYS11aS9raXQvY29tcG9uZW50cy9wcm9ncmVzcy8iLCJzb3VyY2VzIjpbInBpcGVzL3Byb2dyZXNzLWNvbG9yLXNlZ21lbnRzLWFzeW5jLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyxJQUFJLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDbkMsT0FBTyxFQUFhLEtBQUssRUFBQyxNQUFNLE1BQU0sQ0FBQztBQUN2QyxPQUFPLEVBQUMsR0FBRyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFFbkMsT0FBTyxFQUFDLHdCQUF3QixFQUFDLE1BQU0sMkJBQTJCLENBQUM7QUFHbkU7SUFB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ycykpKTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { __decorate, __extends } from "tslib";
|
|
2
|
-
import { Pipe } from '@angular/core';
|
|
3
|
-
import { AbstractTuiColorSegments } from './abstract-color-segments';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated use tuiProgressColorSegmentsAsync instead
|
|
6
|
-
* {@link TuiProgressColorSegmentsAsyncPipe}
|
|
7
|
-
* example: `<progress [color]="colors | tuiProgressColorSegmentsAsync | async">`
|
|
8
|
-
*/
|
|
9
|
-
var TuiProgressColorSegmentsPipe = /** @class */ (function (_super) {
|
|
10
|
-
__extends(TuiProgressColorSegmentsPipe, _super);
|
|
11
|
-
function TuiProgressColorSegmentsPipe() {
|
|
12
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
-
}
|
|
14
|
-
TuiProgressColorSegmentsPipe.prototype.transform = function (colors) {
|
|
15
|
-
return this.calculate(colors);
|
|
16
|
-
};
|
|
17
|
-
TuiProgressColorSegmentsPipe = __decorate([
|
|
18
|
-
Pipe({ name: 'tuiProgressColorSegments' })
|
|
19
|
-
], TuiProgressColorSegmentsPipe);
|
|
20
|
-
return TuiProgressColorSegmentsPipe;
|
|
21
|
-
}(AbstractTuiColorSegments));
|
|
22
|
-
export { TuiProgressColorSegmentsPipe };
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3MtY29sb3Itc2VnbWVudHMucGlwZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YWlnYS11aS9raXQvY29tcG9uZW50cy9wcm9ncmVzcy8iLCJzb3VyY2VzIjpbInBpcGVzL3Byb2dyZXNzLWNvbG9yLXNlZ21lbnRzLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyxJQUFJLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFbkMsT0FBTyxF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