@taiga-ui/kit 2.13.0 → 2.16.0-fixed
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 +4 -3
- package/abstract/slider/slider.d.ts +2 -2
- package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
- package/bundles/taiga-ui-kit-abstract.umd.js +28 -12
- 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-breadcrumbs.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-field-error.umd.js +17 -6
- package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-field-error.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.js +86 -30
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.min.js +2 -2
- 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 +24 -24
- 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 +2 -2
- 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 +61 -32
- 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 +2 -2
- 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 +18 -17
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-file.umd.js +1 -0
- 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-number.umd.js +28 -14
- 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 +23 -7
- 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 +15 -4
- 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 +20 -15
- 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 +15 -10
- package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +5 -3
- 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 +1 -0
- 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 +20 -6
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +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 +325 -0
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-components-progress.umd.min.js +16 -0
- package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -0
- package/bundles/taiga-ui-kit-components-radio.umd.js +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-range.umd.js +1 -2
- package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +1 -2
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js +17 -9
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.js +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 +16 -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 +2 -2
- package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.js +52 -26
- package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components.umd.js +12 -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-context.umd.js +390 -0
- package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js +16 -0
- package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -0
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +1 -0
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives.umd.js +12 -4
- package/bundles/taiga-ui-kit-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.js +4 -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-mask.umd.js +7 -7
- package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-validators.umd.js +1 -0
- package/bundles/taiga-ui-kit-validators.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-validators.umd.min.js.map +1 -1
- package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.metadata.json +1 -1
- package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
- package/components/field-error/field-error.component.d.ts +2 -0
- package/components/field-error/taiga-ui-kit-components-field-error.metadata.json +1 -1
- package/components/index.d.ts +1 -0
- package/components/input-count/index.d.ts +1 -0
- package/components/input-count/input-count-options.d.ts +19 -0
- package/components/input-count/input-count.component.d.ts +10 -3
- package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
- package/components/input-date/input-date.component.d.ts +7 -4
- 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 +8 -5
- 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 +10 -5
- package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
- package/components/input-number/input-number.component.d.ts +4 -2
- package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
- package/components/input-phone/input-phone.component.d.ts +4 -2
- 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 +5 -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 +4 -2
- package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
- package/components/input-slider/input-slider.component.d.ts +4 -2
- package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
- package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
- package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
- package/components/multi-select/multi-select.component.d.ts +4 -2
- package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
- package/components/progress/index.d.ts +4 -0
- package/components/progress/package.json +13 -0
- package/components/progress/pipes/progress-color-segments.pipe.d.ts +8 -0
- package/components/progress/progress-bar/progress-bar.component.d.ts +5 -0
- package/components/progress/progress-label/progress-label.component.d.ts +2 -0
- package/components/progress/progress.module.d.ts +2 -0
- package/components/progress/taiga-ui-kit-components-progress.d.ts +4 -0
- package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -0
- package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
- package/components/range/taiga-ui-kit-components-range.metadata.json +1 -1
- package/components/select-option/taiga-ui-kit-components-select-option.metadata.json +1 -1
- package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
- package/components/tabs/tab/tab.component.d.ts +5 -2
- package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
- package/components/tag/taiga-ui-kit-components-tag.metadata.json +1 -1
- package/components/taiga-ui-kit-components.metadata.json +1 -1
- package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
- package/components/text-area/text-area.component.d.ts +2 -0
- package/components/toggle/index.d.ts +1 -0
- package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
- package/components/toggle/toggle-options.d.ts +16 -0
- package/components/toggle/toggle.component.d.ts +7 -4
- package/directives/dropdown-context/dropdown-context.directive.d.ts +28 -0
- package/directives/dropdown-context/dropdown-context.module.d.ts +2 -0
- package/directives/dropdown-context/index.d.ts +2 -0
- package/directives/dropdown-context/package.json +13 -0
- package/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.d.ts +4 -0
- package/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.metadata.json +1 -0
- package/directives/index.d.ts +1 -0
- package/directives/taiga-ui-kit-directives.metadata.json +1 -1
- package/esm2015/abstract/input-slider.js +14 -9
- package/esm2015/abstract/slider/slider.js +10 -6
- package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +2 -2
- package/esm2015/components/checkbox/checkbox.component.js +1 -1
- package/esm2015/components/field-error/field-error.component.js +10 -2
- package/esm2015/components/field-error/field-error.module.js +2 -3
- package/esm2015/components/index.js +2 -1
- package/esm2015/components/input-count/index.js +2 -1
- package/esm2015/components/input-count/input-count-options.js +21 -0
- package/esm2015/components/input-count/input-count.component.js +49 -25
- package/esm2015/components/input-count/input-count.module.js +3 -1
- package/esm2015/components/input-date/input-date.component.js +18 -13
- package/esm2015/components/input-date/input-date.module.js +3 -2
- package/esm2015/components/input-date-range/input-date-range.component.js +25 -20
- package/esm2015/components/input-date-time/input-date-time.component.js +58 -38
- package/esm2015/components/input-file/file/file.component.js +2 -1
- package/esm2015/components/input-number/input-number.component.js +26 -16
- package/esm2015/components/input-phone/input-phone.component.js +13 -6
- package/esm2015/components/input-phone-international/input-phone-international.component.js +23 -8
- package/esm2015/components/input-phone-international/input-phone-international.module.js +5 -4
- package/esm2015/components/input-range/input-range.component.js +22 -16
- package/esm2015/components/input-range/input-range.module.js +2 -3
- package/esm2015/components/input-slider/input-slider.component.js +17 -11
- package/esm2015/components/input-slider/input-slider.module.js +2 -3
- package/esm2015/components/input-tag/input-tag.component.js +6 -4
- package/esm2015/components/input-time/input-time.component.js +2 -1
- package/esm2015/components/multi-select/multi-select.component.js +18 -8
- package/esm2015/components/progress/index.js +5 -0
- package/esm2015/components/progress/pipes/progress-color-segments.pipe.js +34 -0
- package/esm2015/components/progress/progress-bar/progress-bar.component.js +27 -0
- package/esm2015/components/progress/progress-label/progress-label.component.js +14 -0
- package/esm2015/components/progress/progress.module.js +25 -0
- package/esm2015/components/progress/taiga-ui-kit-components-progress.js +5 -0
- package/esm2015/components/radio/radio.component.js +1 -1
- package/esm2015/components/range/range.component.js +2 -2
- package/esm2015/components/range/range.module.js +2 -3
- package/esm2015/components/select-option/select-option.component.js +1 -1
- package/esm2015/components/slider/slider.component.js +2 -2
- package/esm2015/components/slider/slider.module.js +2 -3
- package/esm2015/components/tabs/tab/tab.component.js +19 -11
- package/esm2015/components/tabs/underline/underline.component.js +1 -1
- package/esm2015/components/tag/tag.component.js +1 -1
- package/esm2015/components/text-area/text-area.component.js +9 -3
- package/esm2015/components/toggle/index.js +2 -1
- package/esm2015/components/toggle/toggle-options.js +19 -0
- package/esm2015/components/toggle/toggle.component.js +19 -15
- package/esm2015/components/toggle/toggle.module.js +3 -1
- package/esm2015/directives/dropdown-context/dropdown-context.directive.js +137 -0
- package/esm2015/directives/dropdown-context/dropdown-context.module.js +15 -0
- package/esm2015/directives/dropdown-context/index.js +3 -0
- package/esm2015/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.js +5 -0
- package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +2 -1
- package/esm2015/directives/index.js +2 -1
- package/esm2015/interfaces/with-date-mask-pipe-config.js +1 -1
- package/esm2015/tokens/i18n.js +4 -1
- package/esm2015/utils/mask/create-auto-corrected-date-pipe.js +3 -3
- package/esm2015/utils/mask/create-auto-corrected-date-range-pipe.js +7 -7
- package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +3 -2
- package/esm2015/validators/unfinished.validator.js +2 -1
- package/esm5/abstract/input-slider.js +18 -9
- package/esm5/abstract/slider/slider.js +14 -6
- package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +2 -2
- package/esm5/components/checkbox/checkbox.component.js +1 -1
- package/esm5/components/field-error/field-error.component.js +14 -2
- package/esm5/components/field-error/field-error.module.js +2 -3
- package/esm5/components/index.js +2 -1
- package/esm5/components/input-count/index.js +2 -1
- package/esm5/components/input-count/input-count-options.js +21 -0
- package/esm5/components/input-count/input-count.component.js +61 -29
- package/esm5/components/input-count/input-count.module.js +3 -1
- package/esm5/components/input-date/input-date.component.js +18 -17
- package/esm5/components/input-date/input-date.module.js +3 -2
- package/esm5/components/input-date-range/input-date-range.component.js +25 -24
- package/esm5/components/input-date-time/input-date-time.component.js +66 -37
- package/esm5/components/input-file/file/file.component.js +2 -1
- package/esm5/components/input-number/input-number.component.js +30 -16
- package/esm5/components/input-phone/input-phone.component.js +17 -6
- package/esm5/components/input-phone-international/input-phone-international.component.js +23 -8
- package/esm5/components/input-phone-international/input-phone-international.module.js +5 -4
- package/esm5/components/input-range/input-range.component.js +22 -16
- package/esm5/components/input-range/input-range.module.js +2 -3
- package/esm5/components/input-slider/input-slider.component.js +17 -11
- package/esm5/components/input-slider/input-slider.module.js +2 -3
- package/esm5/components/input-tag/input-tag.component.js +6 -4
- package/esm5/components/input-time/input-time.component.js +2 -1
- package/esm5/components/multi-select/multi-select.component.js +22 -8
- package/esm5/components/progress/index.js +5 -0
- package/esm5/components/progress/pipes/progress-color-segments.pipe.js +37 -0
- package/esm5/components/progress/progress-bar/progress-bar.component.js +28 -0
- package/esm5/components/progress/progress-label/progress-label.component.js +17 -0
- package/esm5/components/progress/progress.module.js +28 -0
- package/esm5/components/progress/taiga-ui-kit-components-progress.js +5 -0
- package/esm5/components/radio/radio.component.js +1 -1
- package/esm5/components/range/range.component.js +2 -2
- package/esm5/components/range/range.module.js +2 -3
- package/esm5/components/select-option/select-option.component.js +1 -1
- package/esm5/components/slider/slider.component.js +2 -2
- package/esm5/components/slider/slider.module.js +2 -3
- package/esm5/components/tabs/tab/tab.component.js +19 -11
- package/esm5/components/tabs/underline/underline.component.js +1 -1
- package/esm5/components/tag/tag.component.js +1 -1
- package/esm5/components/text-area/text-area.component.js +17 -3
- package/esm5/components/toggle/index.js +2 -1
- package/esm5/components/toggle/toggle-options.js +21 -0
- package/esm5/components/toggle/toggle.component.js +27 -23
- package/esm5/components/toggle/toggle.module.js +3 -1
- package/esm5/directives/dropdown-context/dropdown-context.directive.js +153 -0
- package/esm5/directives/dropdown-context/dropdown-context.module.js +18 -0
- package/esm5/directives/dropdown-context/index.js +3 -0
- package/esm5/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.js +5 -0
- package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +2 -1
- package/esm5/directives/index.js +2 -1
- package/esm5/interfaces/with-date-mask-pipe-config.js +1 -1
- package/esm5/tokens/i18n.js +4 -1
- package/esm5/utils/mask/create-auto-corrected-date-pipe.js +3 -3
- package/esm5/utils/mask/create-auto-corrected-date-range-pipe.js +7 -7
- package/esm5/utils/mask/create-auto-corrected-date-time-pipe.js +3 -2
- package/esm5/validators/unfinished.validator.js +2 -1
- package/fesm2015/taiga-ui-kit-abstract.js +21 -13
- package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +1 -1
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox.js +1 -1
- package/fesm2015/taiga-ui-kit-components-field-error.js +11 -3
- package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-count.js +71 -26
- package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-range.js +24 -19
- package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-time.js +56 -36
- package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date.js +18 -12
- package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-file.js +1 -0
- package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-number.js +25 -15
- package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +26 -10
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone.js +12 -5
- package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-range.js +21 -16
- package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-slider.js +16 -11
- package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +5 -3
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-time.js +1 -0
- package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select.js +17 -7
- package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-progress.js +93 -0
- package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -0
- package/fesm2015/taiga-ui-kit-components-radio.js +1 -1
- package/fesm2015/taiga-ui-kit-components-range.js +2 -3
- package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select-option.js +1 -1
- package/fesm2015/taiga-ui-kit-components-slider.js +2 -3
- package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js +18 -10
- package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tag.js +1 -1
- package/fesm2015/taiga-ui-kit-components-text-area.js +8 -2
- package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-toggle.js +39 -16
- package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components.js +1 -0
- package/fesm2015/taiga-ui-kit-components.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-dropdown-context.js +153 -0
- package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -0
- package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +1 -0
- package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives.js +1 -0
- package/fesm2015/taiga-ui-kit-directives.js.map +1 -1
- package/fesm2015/taiga-ui-kit-tokens.js +4 -1
- package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-mask.js +8 -8
- package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
- package/fesm2015/taiga-ui-kit-validators.js +1 -0
- package/fesm2015/taiga-ui-kit-validators.js.map +1 -1
- package/fesm5/taiga-ui-kit-abstract.js +29 -13
- package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-breadcrumbs.js +1 -1
- package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-checkbox.js +1 -1
- package/fesm5/taiga-ui-kit-components-field-error.js +15 -3
- package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-count.js +83 -30
- package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-range.js +24 -23
- package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-time.js +66 -37
- package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date.js +18 -16
- package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-file.js +1 -0
- package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-number.js +29 -15
- package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone-international.js +26 -10
- package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone.js +16 -5
- package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-range.js +21 -16
- package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-slider.js +16 -11
- package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-tag.js +5 -3
- package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-time.js +1 -0
- package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-multi-select.js +21 -7
- package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-progress.js +103 -0
- package/fesm5/taiga-ui-kit-components-progress.js.map +1 -0
- package/fesm5/taiga-ui-kit-components-radio.js +1 -1
- package/fesm5/taiga-ui-kit-components-range.js +2 -3
- package/fesm5/taiga-ui-kit-components-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-select-option.js +1 -1
- package/fesm5/taiga-ui-kit-components-slider.js +2 -3
- package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tabs.js +18 -10
- package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tag.js +1 -1
- package/fesm5/taiga-ui-kit-components-text-area.js +16 -2
- package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-toggle.js +49 -24
- package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm5/taiga-ui-kit-components.js +1 -0
- package/fesm5/taiga-ui-kit-components.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-dropdown-context.js +172 -0
- package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -0
- package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +1 -0
- package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives.js +1 -0
- package/fesm5/taiga-ui-kit-directives.js.map +1 -1
- package/fesm5/taiga-ui-kit-tokens.js +4 -1
- package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm5/taiga-ui-kit-utils-mask.js +8 -8
- package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
- package/fesm5/taiga-ui-kit-validators.js +1 -0
- package/fesm5/taiga-ui-kit-validators.js.map +1 -1
- package/interfaces/with-date-mask-pipe-config.d.ts +4 -1
- package/package.json +4 -4
- package/tokens/i18n.d.ts +2 -0
- package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
- package/utils/mask/create-auto-corrected-date-pipe.d.ts +3 -4
- package/utils/mask/create-auto-corrected-date-range-pipe.d.ts +2 -3
- package/utils/mask/create-auto-corrected-date-time-pipe.d.ts +2 -3
- package/utils/mask/taiga-ui-kit-utils-mask.metadata.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@taiga-ui/cdk"),require("@taiga-ui/core"),require("@taiga-ui/kit/constants"),require("@taiga-ui/kit/providers"),require("@taiga-ui/kit/tokens"),require("@taiga-ui/kit/utils/mask"),require("@taiga-ui/kit/utils/miscellaneous"),require("@tinkoff/ng-polymorpheus"),require("rxjs/operators"),require("@angular/common"),require("@taiga-ui/kit/components/calendar-range"),require("@taiga-ui/kit/directives"),require("angular2-text-mask")):"function"==typeof define&&define.amd?define("@taiga-ui/kit/components/input-date-range",["exports","@angular/core","@angular/forms","@taiga-ui/cdk","@taiga-ui/core","@taiga-ui/kit/constants","@taiga-ui/kit/providers","@taiga-ui/kit/tokens","@taiga-ui/kit/utils/mask","@taiga-ui/kit/utils/miscellaneous","@tinkoff/ng-polymorpheus","rxjs/operators","@angular/common","@taiga-ui/kit/components/calendar-range","@taiga-ui/kit/directives","angular2-text-mask"],t):t(((e=e||self)["taiga-ui"]=e["taiga-ui"]||{},e["taiga-ui"].kit=e["taiga-ui"].kit||{},e["taiga-ui"].kit.components=e["taiga-ui"].kit.components||{},e["taiga-ui"].kit.components["input-date-range"]={}),e.ng.core,e.ng.forms,e.cdk,e.core$1,e["taiga-ui"].kit.constants,e["taiga-ui"].kit.providers,e["taiga-ui"].kit.tokens,e["taiga-ui"].kit.utils.mask,e["taiga-ui"].kit.utils.miscellaneous,e.ngPolymorpheus,e.rxjs.operators,e.ng.common,e["taiga-ui"].kit.components["calendar-range"],e["taiga-ui"].kit.directives,e.angular2TextMask)}(this,(function(e,t,n,i,o,a,r,u,l,s,p,c,
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@taiga-ui/cdk"),require("@taiga-ui/core"),require("@taiga-ui/kit/constants"),require("@taiga-ui/kit/providers"),require("@taiga-ui/kit/tokens"),require("@taiga-ui/kit/utils/mask"),require("@taiga-ui/kit/utils/miscellaneous"),require("@tinkoff/ng-polymorpheus"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@taiga-ui/kit/components/calendar-range"),require("@taiga-ui/kit/directives"),require("angular2-text-mask")):"function"==typeof define&&define.amd?define("@taiga-ui/kit/components/input-date-range",["exports","@angular/core","@angular/forms","@taiga-ui/cdk","@taiga-ui/core","@taiga-ui/kit/constants","@taiga-ui/kit/providers","@taiga-ui/kit/tokens","@taiga-ui/kit/utils/mask","@taiga-ui/kit/utils/miscellaneous","@tinkoff/ng-polymorpheus","rxjs","rxjs/operators","@angular/common","@taiga-ui/kit/components/calendar-range","@taiga-ui/kit/directives","angular2-text-mask"],t):t(((e=e||self)["taiga-ui"]=e["taiga-ui"]||{},e["taiga-ui"].kit=e["taiga-ui"].kit||{},e["taiga-ui"].kit.components=e["taiga-ui"].kit.components||{},e["taiga-ui"].kit.components["input-date-range"]={}),e.ng.core,e.ng.forms,e.cdk,e.core$1,e["taiga-ui"].kit.constants,e["taiga-ui"].kit.providers,e["taiga-ui"].kit.tokens,e["taiga-ui"].kit.utils.mask,e["taiga-ui"].kit.utils.miscellaneous,e.ngPolymorpheus,e.rxjs,e.rxjs.operators,e.ng.common,e["taiga-ui"].kit.components["calendar-range"],e["taiga-ui"].kit.directives,e.angular2TextMask)}(this,(function(e,t,n,i,o,a,r,u,l,s,p,d,c,g,m,f,h){"use strict";
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var h=function(e,t){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function y(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r}function v(e,t){return function(n,i){t(n,i,e)}}var I=s.TuiReplayControlValueChangesFactory,b=function(e){function s(t,n,r,u,s,p,c,d,g,m){var f=e.call(this,t,n)||this;return f.injector=r,f.isMobile=u,f.dialogService=s,f.mobileCalendar=p,f.textfieldSize=c,f.textfieldExampleText=d,f.filler=g,f.rangeFiller=m,f.disabledItemHandler=i.ALWAYS_FALSE_HANDLER,f.markerHandler=o.TUI_DEFAULT_MARKER_HANDLER,f.defaultViewedMonth=i.TuiMonth.currentLocal(),f.items=[],f.min=i.TUI_FIRST_DAY,f.max=i.TUI_LAST_DAY,f.minLength=null,f.maxLength=null,f.open=!1,f.maxLengthMapper=a.MAX_DAY_RANGE_LENGTH_MAPPER,f.textMaskOptions={mask:a.TUI_DATE_RANGE_MASK,pipe:l.tuiCreateAutoCorrectedDateRangePipe(f),guide:!1},f}var d;return function(e,t){function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(s,e),d=s,Object.defineProperty(s.prototype,"nativeFocusableElement",{get:function(){return this.textfield?this.textfield.nativeFocusableElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"focused",{get:function(){return!!this.textfield&&this.textfield.focused},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"computedMobile",{get:function(){return this.isMobile&&!!this.mobileCalendar},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"calendarIcon",{get:function(){return o.sizeBigger(this.textfieldSize.size)?"tuiIconCalendarLarge":"tuiIconCalendar"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"canOpen",{get:function(){return!this.computedDisabled&&!this.readOnly&&!this.computedMobile},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"computedExampleText",{get:function(){return this.items.length?this.textfieldExampleText.exampleText:""},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"computedFiller",{get:function(){return this.activePeriod?"":this.rangeFiller},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"computedMask",{get:function(){return this.activePeriod?a.EMPTY_MASK:this.textMaskOptions},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"activePeriod",{get:function(){var e=this;return this.items.find((function(t){return i.nullableSame(e.value,t.range,(function(t,n){return t.from.daySame(n.from.dayLimit(e.min,e.max))&&t.to.daySame(n.to.dayLimit(e.min,e.max))}))}))||null},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"computedValue",{get:function(){var e=this.value,t=this.nativeValue,n=this.activePeriod;return n?String(n):e?e.formattedDayRange:t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"innerPseudoFocused",{get:function(){return!1!==this.pseudoFocused&&(!(!this.open&&!this.computedFocused)||null)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"nativeValue",{get:function(){return this.nativeFocusableElement?this.nativeFocusableElement.value:""},set:function(e){this.nativeFocusableElement&&(this.nativeFocusableElement.value=e)},enumerable:!0,configurable:!0}),s.prototype.onMobileClick=function(){var e=this;this.mobileCalendar?this.dialogService.open(new p.PolymorpheusComponent(this.mobileCalendar,this.injector),{size:"fullscreen",closeable:!1,data:{single:!1,min:this.maxLengthMapper(this.min,this.value,this.maxLength,!0),max:this.maxLengthMapper(this.max,this.value,this.maxLength,!1),disabledItemHandler:this.disabledItemHandler}}).pipe(c.takeUntil(this.destroy$)).subscribe((function(t){e.updateValue(t)})):this.toggle()},s.prototype.onClick=function(){this.isMobile||this.toggle()},s.prototype.onOpenChange=function(e){this.open=e},s.prototype.onValueChange=function(e){if(this.control&&this.control.updateValueAndValidity({emitEvent:!1}),e.length===this.rangeFiller.length){var t=i.TuiDayRange.normalizeParse(e,this.filler,this.rangeFiller);this.updateValue(this.minLength||this.maxLength?this.clampValue(t):t)}else this.updateValue(null)},s.prototype.onRangeChange=function(e){this.toggle(),this.focusInput(),i.nullableSame(this.value,e,(function(e,t){return e.daySame(t)}))||this.updateValue(e)},s.prototype.onItemSelect=function(e){this.toggle(),this.focusInput(),"string"==typeof e?null!==this.activePeriod&&(this.updateValue(null),this.nativeValue=""):this.updateValue(e.range.dayLimit(this.min,this.max))},s.prototype.onHovered=function(e){this.updateHovered(e)},s.prototype.onPressed=function(e){this.updatePressed(e)},s.prototype.onActiveZone=function(e){this.updateFocused(e),e||this.itemSelected||this.nativeValue.length!==this.filler.length&&this.nativeValue.length!==this.filler.length+i.RANGE_SEPARATOR_CHAR.length||this.updateValue(i.TuiDayRange.normalizeParse(this.nativeValue,this.filler,this.rangeFiller))},s.prototype.writeValue=function(t){e.prototype.writeValue.call(this,t),this.nativeValue=t?this.computedValue:""},Object.defineProperty(s.prototype,"itemSelected",{get:function(){var e=this;return-1!==this.items.findIndex((function(t){return String(t)===e.nativeValue}))},enumerable:!0,configurable:!0}),s.prototype.toggle=function(){this.open=!this.open},s.prototype.focusInput=function(e){void 0===e&&(e=!1),this.nativeFocusableElement&&i.setNativeFocused(this.nativeFocusableElement,!0,e)},s.prototype.clampValue=function(e){var t=this.minLength&&e.from.append(this.minLength).dayAfter(e.to)?new i.TuiDayRange(e.from,e.from.append(this.minLength).append({day:-1})):e,n=this.maxLength?t.from.append(this.maxLength).append({day:-1}):this.max;return t.to.dayAfter(n)?new i.TuiDayRange(t.from,n):t},s.ctorParameters=function(){return[{type:n.NgControl,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[n.NgControl]}]},{type:t.ChangeDetectorRef,decorators:[{type:t.Inject,args:[t.ChangeDetectorRef]}]},{type:t.Injector,decorators:[{type:t.Inject,args:[t.Injector]}]},{type:Boolean,decorators:[{type:t.Inject,args:[i.TUI_IS_MOBILE]}]},{type:o.TuiDialogService,decorators:[{type:t.Inject,args:[o.TuiDialogService]}]},{type:t.Type,decorators:[{type:t.Optional},{type:t.Inject,args:[u.TUI_MOBILE_CALENDAR]}]},{type:o.TuiTextfieldSizeDirective,decorators:[{type:t.Inject,args:[o.TUI_TEXTFIELD_SIZE]}]},{type:o.TuiTextfieldExampleTextDirective,decorators:[{type:t.Inject,args:[o.TUI_TEXTFIELD_EXAMPLE_TEXT]}]},{type:String,decorators:[{type:t.Inject,args:[i.TUI_DATE_FILLER]}]},{type:String,decorators:[{type:t.Inject,args:[i.TUI_DATE_RANGE_FILLER]}]}]},y([t.Input(),i.tuiDefaultProp()],s.prototype,"disabledItemHandler",void 0),y([t.Input(),i.tuiDefaultProp()],s.prototype,"markerHandler",void 0),y([t.Input(),i.tuiDefaultProp()],s.prototype,"defaultViewedMonth",void 0),y([t.Input(),i.tuiDefaultProp()],s.prototype,"items",void 0),y([t.Input(),i.tuiDefaultProp()],s.prototype,"min",void 0),y([t.Input(),i.tuiDefaultProp()],s.prototype,"max",void 0),y([t.Input(),i.tuiDefaultProp()],s.prototype,"minLength",void 0),y([t.Input(),i.tuiDefaultProp()],s.prototype,"maxLength",void 0),y([t.ViewChild(o.TuiPrimitiveTextfieldComponent)],s.prototype,"textfield",void 0),y([t.HostListener("click")],s.prototype,"onClick",null),s=d=y([t.Component({selector:"tui-input-date-range",template:'<tui-hosted-dropdown\n class="hosted"\n [canOpen]="canOpen"\n [content]="dropdown"\n [open]="open && canOpen"\n (openChange)="onOpenChange($event)"\n (tuiActiveZoneChange)="onActiveZone($event)"\n>\n <tui-primitive-textfield\n automation-id="tui-input-date-range__textfield"\n class="textfield"\n tuiValueAccessor\n [pseudoFocused]="innerPseudoFocused"\n [pseudoHovered]="pseudoHovered"\n [pseudoPressed]="pseudoPressed"\n [invalid]="computedInvalid"\n [tuiTextfieldExampleText]="computedExampleText"\n [nativeId]="nativeId"\n [filler]="computedFiller"\n [readOnly]="readOnly"\n [iconContent]="computedMobile ? iconContent : calendarIcon"\n [disabled]="computedDisabled"\n [textMask]="computedMask"\n [value]="computedValue"\n (valueChange)="onValueChange($event)"\n (hoveredChange)="onHovered($event)"\n (pressedChange)="onPressed($event)"\n >\n <ng-content></ng-content>\n </tui-primitive-textfield>\n\n <ng-template #iconContent>\n <tui-svg\n automation-id="tui-input-date-range__icon"\n [class.icon]="!computedDisabled"\n [src]="calendarIcon"\n (click)="onMobileClick()"\n ></tui-svg>\n </ng-template>\n\n <ng-template #dropdown>\n <tui-calendar-range\n [defaultViewedMonth]="defaultViewedMonth"\n [disabledItemHandler]="disabledItemHandler"\n [items]="items"\n [min]="min"\n [max]="max"\n [markerHandler]="markerHandler"\n [minLength]="minLength"\n [maxLength]="maxLength"\n [value]="value"\n (valueChange)="onRangeChange($event)"\n ></tui-calendar-range>\n </ng-template>\n</tui-hosted-dropdown>\n',providers:[{provide:i.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:t.forwardRef((function(){return d}))},{provide:u.TUI_CALENDAR_DATA_STREAM,deps:[[new t.Optional,new t.Self,n.NgControl]],useFactory:I},r.LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER],styles:[":host{display:block;border-radius:var(--tui-radius-m)}:host._disabled{pointer-events:none}.hosted{display:block;border-radius:inherit}.textfield{border-radius:inherit}.icon{pointer-events:auto}"]}),v(0,t.Optional()),v(0,t.Self()),v(0,t.Inject(n.NgControl)),v(1,t.Inject(t.ChangeDetectorRef)),v(2,t.Inject(t.Injector)),v(3,t.Inject(i.TUI_IS_MOBILE)),v(4,t.Inject(o.TuiDialogService)),v(5,t.Optional()),v(5,t.Inject(u.TUI_MOBILE_CALENDAR)),v(6,t.Inject(o.TUI_TEXTFIELD_SIZE)),v(7,t.Inject(o.TUI_TEXTFIELD_EXAMPLE_TEXT)),v(8,t.Inject(i.TUI_DATE_FILLER)),v(9,t.Inject(i.TUI_DATE_RANGE_FILLER))],s)}(i.AbstractTuiNullableControl),T=function(){function e(){}return e=y([t.NgModule({imports:[d.CommonModule,f.TextMaskModule,i.TuiActiveZoneModule,i.TuiLetModule,p.PolymorpheusModule,o.TuiPrimitiveTextfieldModule,o.TuiTextfieldControllerModule,o.TuiHostedDropdownModule,o.TuiSvgModule,g.TuiCalendarRangeModule,m.TuiValueAccessorModule],declarations:[b],exports:[b]})],e)}();e.RANGE_STREAM_FACTORY=I,e.TuiInputDateRangeComponent=b,e.TuiInputDateRangeModule=T,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
15
|
+
***************************************************************************** */var y=function(e,t){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function v(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r}function T(e,t){return function(n,i){t(n,i,e)}}var I=s.TuiReplayControlValueChangesFactory,b=function(e){function s(t,n,r,u,s,p,d,g,m,f){var h=e.call(this,t,n)||this;return h.injector=r,h.isMobile=u,h.dialogService=s,h.mobileCalendar=p,h.textfieldSize=d,h.textfieldExampleText=g,h.dateFormat=m,h.dateTexts$=f,h.disabledItemHandler=i.ALWAYS_FALSE_HANDLER,h.markerHandler=o.TUI_DEFAULT_MARKER_HANDLER,h.defaultViewedMonth=i.TuiMonth.currentLocal(),h.items=[],h.min=i.TUI_FIRST_DAY,h.max=i.TUI_LAST_DAY,h.minLength=null,h.maxLength=null,h.open=!1,h.maxLengthMapper=a.MAX_DAY_RANGE_LENGTH_MAPPER,h.dateFiller$=h.dateTexts$.pipe(c.pluck(h.dateFormat)),h.textMaskOptions={mask:a.TUI_DATE_RANGE_MASK,pipe:l.tuiCreateAutoCorrectedDateRangePipe(h),guide:!1},h}var g;return function(e,t){function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(s,e),g=s,Object.defineProperty(s.prototype,"nativeFocusableElement",{get:function(){return this.textfield?this.textfield.nativeFocusableElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"focused",{get:function(){return!!this.textfield&&this.textfield.focused},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"computedMobile",{get:function(){return this.isMobile&&!!this.mobileCalendar},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"calendarIcon",{get:function(){return o.sizeBigger(this.textfieldSize.size)?"tuiIconCalendarLarge":"tuiIconCalendar"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"canOpen",{get:function(){return!this.computedDisabled&&!this.readOnly&&!this.computedMobile},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"computedExampleText",{get:function(){return this.items.length?this.textfieldExampleText.exampleText:""},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"computedMask",{get:function(){return this.activePeriod?a.EMPTY_MASK:this.textMaskOptions},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"activePeriod",{get:function(){var e=this;return this.items.find((function(t){return i.nullableSame(e.value,t.range,(function(t,n){return t.from.daySame(n.from.dayLimit(e.min,e.max))&&t.to.daySame(n.to.dayLimit(e.min,e.max))}))}))||null},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"computedValue",{get:function(){var e=this.value,t=this.nativeValue,n=this.activePeriod;return n?String(n):e?e.formattedDayRange:t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"innerPseudoFocused",{get:function(){return!1!==this.pseudoFocused&&(!(!this.open&&!this.computedFocused)||null)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"nativeValue",{get:function(){return this.nativeFocusableElement?this.nativeFocusableElement.value:""},set:function(e){this.nativeFocusableElement&&(this.nativeFocusableElement.value=e)},enumerable:!0,configurable:!0}),s.prototype.getComputedRangeFiller=function(e){return this.activePeriod?"":this.getDateRangeFiller(e)},s.prototype.onMobileClick=function(){var e=this;this.mobileCalendar?this.dialogService.open(new p.PolymorpheusComponent(this.mobileCalendar,this.injector),{size:"fullscreen",closeable:!1,data:{single:!1,min:this.maxLengthMapper(this.min,this.value,this.maxLength,!0),max:this.maxLengthMapper(this.max,this.value,this.maxLength,!1),disabledItemHandler:this.disabledItemHandler}}).pipe(c.takeUntil(this.destroy$)).subscribe((function(t){e.updateValue(t)})):this.toggle()},s.prototype.onClick=function(){this.isMobile||this.toggle()},s.prototype.onOpenChange=function(e){this.open=e},s.prototype.onValueChange=function(e){if(this.control&&this.control.updateValueAndValidity({emitEvent:!1}),e.length===i.DATE_RANGE_FILLER_LENGTH){var t=i.TuiDayRange.normalizeParse(e);this.updateValue(this.minLength||this.maxLength?this.clampValue(t):t)}else this.updateValue(null)},s.prototype.onRangeChange=function(e){this.toggle(),this.focusInput(),i.nullableSame(this.value,e,(function(e,t){return e.daySame(t)}))||this.updateValue(e)},s.prototype.onItemSelect=function(e){this.toggle(),this.focusInput(),"string"==typeof e?null!==this.activePeriod&&(this.updateValue(null),this.nativeValue=""):this.updateValue(e.range.dayLimit(this.min,this.max))},s.prototype.onHovered=function(e){this.updateHovered(e)},s.prototype.onPressed=function(e){this.updatePressed(e)},s.prototype.onActiveZone=function(e){this.updateFocused(e),e||this.itemSelected||this.nativeValue.length!==i.DATE_FILLER_LENGTH&&this.nativeValue.length!==i.DATE_FILLER_LENGTH+i.RANGE_SEPARATOR_CHAR.length||this.updateValue(i.TuiDayRange.normalizeParse(this.nativeValue))},s.prototype.writeValue=function(t){e.prototype.writeValue.call(this,t),this.nativeValue=t?this.computedValue:""},Object.defineProperty(s.prototype,"itemSelected",{get:function(){var e=this;return-1!==this.items.findIndex((function(t){return String(t)===e.nativeValue}))},enumerable:!0,configurable:!0}),s.prototype.toggle=function(){this.open=!this.open},s.prototype.focusInput=function(e){void 0===e&&(e=!1),this.nativeFocusableElement&&i.setNativeFocused(this.nativeFocusableElement,!0,e)},s.prototype.clampValue=function(e){var t=this.minLength&&e.from.append(this.minLength).dayAfter(e.to)?new i.TuiDayRange(e.from,e.from.append(this.minLength).append({day:-1})):e,n=this.maxLength?t.from.append(this.maxLength).append({day:-1}):this.max;return t.to.dayAfter(n)?new i.TuiDayRange(t.from,n):t},s.prototype.getDateRangeFiller=function(e){return""+e+i.RANGE_SEPARATOR_CHAR+e},s.ctorParameters=function(){return[{type:n.NgControl,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[n.NgControl]}]},{type:t.ChangeDetectorRef,decorators:[{type:t.Inject,args:[t.ChangeDetectorRef]}]},{type:t.Injector,decorators:[{type:t.Inject,args:[t.Injector]}]},{type:Boolean,decorators:[{type:t.Inject,args:[i.TUI_IS_MOBILE]}]},{type:o.TuiDialogService,decorators:[{type:t.Inject,args:[o.TuiDialogService]}]},{type:t.Type,decorators:[{type:t.Optional},{type:t.Inject,args:[u.TUI_MOBILE_CALENDAR]}]},{type:o.TuiTextfieldSizeDirective,decorators:[{type:t.Inject,args:[o.TUI_TEXTFIELD_SIZE]}]},{type:o.TuiTextfieldExampleTextDirective,decorators:[{type:t.Inject,args:[o.TUI_TEXTFIELD_EXAMPLE_TEXT]}]},{type:void 0,decorators:[{type:t.Inject,args:[i.TUI_DATE_FORMAT]}]},{type:d.Observable,decorators:[{type:t.Inject,args:[u.TUI_DATE_TEXTS]}]}]},v([t.Input(),i.tuiDefaultProp()],s.prototype,"disabledItemHandler",void 0),v([t.Input(),i.tuiDefaultProp()],s.prototype,"markerHandler",void 0),v([t.Input(),i.tuiDefaultProp()],s.prototype,"defaultViewedMonth",void 0),v([t.Input(),i.tuiDefaultProp()],s.prototype,"items",void 0),v([t.Input(),i.tuiDefaultProp()],s.prototype,"min",void 0),v([t.Input(),i.tuiDefaultProp()],s.prototype,"max",void 0),v([t.Input(),i.tuiDefaultProp()],s.prototype,"minLength",void 0),v([t.Input(),i.tuiDefaultProp()],s.prototype,"maxLength",void 0),v([t.ViewChild(o.TuiPrimitiveTextfieldComponent)],s.prototype,"textfield",void 0),v([t.HostListener("click")],s.prototype,"onClick",null),s=g=v([t.Component({selector:"tui-input-date-range",template:'<tui-hosted-dropdown\n class="hosted"\n [canOpen]="canOpen"\n [content]="dropdown"\n [open]="open && canOpen"\n (openChange)="onOpenChange($event)"\n (tuiActiveZoneChange)="onActiveZone($event)"\n>\n <tui-primitive-textfield\n *tuiLet="dateFiller$ | async as dateFiller"\n automation-id="tui-input-date-range__textfield"\n class="textfield"\n tuiValueAccessor\n [pseudoFocused]="innerPseudoFocused"\n [pseudoHovered]="pseudoHovered"\n [pseudoPressed]="pseudoPressed"\n [invalid]="computedInvalid"\n [tuiTextfieldExampleText]="computedExampleText"\n [nativeId]="nativeId"\n [filler]="getComputedRangeFiller(dateFiller)"\n [readOnly]="readOnly"\n [iconContent]="computedMobile ? iconContent : calendarIcon"\n [disabled]="computedDisabled"\n [textMask]="computedMask"\n [value]="computedValue"\n (valueChange)="onValueChange($event)"\n (hoveredChange)="onHovered($event)"\n (pressedChange)="onPressed($event)"\n >\n <ng-content></ng-content>\n </tui-primitive-textfield>\n\n <ng-template #iconContent>\n <tui-svg\n automation-id="tui-input-date-range__icon"\n [class.icon]="!computedDisabled"\n [src]="calendarIcon"\n (click)="onMobileClick()"\n ></tui-svg>\n </ng-template>\n\n <ng-template #dropdown>\n <tui-calendar-range\n [defaultViewedMonth]="defaultViewedMonth"\n [disabledItemHandler]="disabledItemHandler"\n [items]="items"\n [min]="min"\n [max]="max"\n [markerHandler]="markerHandler"\n [minLength]="minLength"\n [maxLength]="maxLength"\n [value]="value"\n (valueChange)="onRangeChange($event)"\n ></tui-calendar-range>\n </ng-template>\n</tui-hosted-dropdown>\n',providers:[{provide:i.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:t.forwardRef((function(){return g}))},{provide:u.TUI_CALENDAR_DATA_STREAM,deps:[[new t.Optional,new t.Self,n.NgControl]],useFactory:I},r.LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER],styles:[":host{display:block;border-radius:var(--tui-radius-m)}:host._disabled{pointer-events:none}.hosted{display:block;border-radius:inherit}.textfield{border-radius:inherit}.icon{pointer-events:auto}"]}),T(0,t.Optional()),T(0,t.Self()),T(0,t.Inject(n.NgControl)),T(1,t.Inject(t.ChangeDetectorRef)),T(2,t.Inject(t.Injector)),T(3,t.Inject(i.TUI_IS_MOBILE)),T(4,t.Inject(o.TuiDialogService)),T(5,t.Optional()),T(5,t.Inject(u.TUI_MOBILE_CALENDAR)),T(6,t.Inject(o.TUI_TEXTFIELD_SIZE)),T(7,t.Inject(o.TUI_TEXTFIELD_EXAMPLE_TEXT)),T(8,t.Inject(i.TUI_DATE_FORMAT)),T(9,t.Inject(u.TUI_DATE_TEXTS))],s)}(i.AbstractTuiNullableControl),_=function(){function e(){}return e=v([t.NgModule({imports:[g.CommonModule,h.TextMaskModule,i.TuiActiveZoneModule,i.TuiLetModule,p.PolymorpheusModule,o.TuiPrimitiveTextfieldModule,o.TuiTextfieldControllerModule,o.TuiHostedDropdownModule,o.TuiSvgModule,m.TuiCalendarRangeModule,f.TuiValueAccessorModule],declarations:[b],exports:[b]})],e)}();e.RANGE_STREAM_FACTORY=I,e.TuiInputDateRangeComponent=b,e.TuiInputDateRangeModule=_,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=taiga-ui-kit-components-input-date-range.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/input-date-range/input-date-range.component.ts","ng://@taiga-ui/kit/components/input-date-range/input-date-range.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","RANGE_STREAM_FACTORY","TuiReplayControlValueChangesFactory","TuiInputDateRangeComponent","control","changeDetectorRef","injector","isMobile","dialogService","mobileCalendar","textfieldSize","textfieldExampleText","filler","rangeFiller","_this","_super","call","this","disabledItemHandler","ALWAYS_FALSE_HANDLER","markerHandler","TUI_DEFAULT_MARKER_HANDLER","defaultViewedMonth","TuiMonth","currentLocal","items","min","TUI_FIRST_DAY","max","TUI_LAST_DAY","minLength","maxLength","open","maxLengthMapper","MAX_DAY_RANGE_LENGTH_MAPPER","textMaskOptions","mask","TUI_DATE_RANGE_MASK","pipe","tuiCreateAutoCorrectedDateRangePipe","guide","__","constructor","prototype","create","__extends","textfield","nativeFocusableElement","focused","sizeBigger","size","computedDisabled","readOnly","computedMobile","exampleText","activePeriod","EMPTY_MASK","find","item","nullableSame","value","range","a","from","daySame","dayLimit","to","nativeValue","String","formattedDayRange","pseudoFocused","computedFocused","onMobileClick","PolymorpheusComponent","closeable","data","single","takeUntil","destroy$","subscribe","updateValue","toggle","onClick","onOpenChange","onValueChange","updateValueAndValidity","emitEvent","parsedValue","TuiDayRange","normalizeParse","clampValue","onRangeChange","focusInput","onItemSelect","onHovered","hovered","updateHovered","onPressed","pressed","updatePressed","onActiveZone","updateFocused","itemSelected","RANGE_SEPARATOR_CHAR","writeValue","computedValue","findIndex","preventScroll","setNativeFocused","clampedBottom","append","dayAfter","day","availableMax","NgControl","type","Optional","Self","Inject","args","ChangeDetectorRef","Injector","TUI_IS_MOBILE","TuiDialogService","Type","TUI_MOBILE_CALENDAR","TuiTextfieldSizeDirective","TUI_TEXTFIELD_SIZE","TuiTextfieldExampleTextDirective","TUI_TEXTFIELD_EXAMPLE_TEXT","TUI_DATE_FILLER","TUI_DATE_RANGE_FILLER","Input","tuiDefaultProp","ViewChild","TuiPrimitiveTextfieldComponent","HostListener","TuiInputDateRangeComponent_1","Component","selector","template","providers","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","TUI_CALENDAR_DATA_STREAM","deps","useFactory","LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER","AbstractTuiNullableControl","TuiInputDateRangeModule","NgModule","imports","CommonModule","TextMaskModule","TuiActiveZoneModule","TuiLetModule","PolymorpheusModule","TuiPrimitiveTextfieldModule","TuiTextfieldControllerModule","TuiHostedDropdownModule","TuiSvgModule","TuiCalendarRangeModule","TuiValueAccessorModule","declarations","exports"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,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U,uBACVC,SAAA,o0DAEAC,UAAW,CACP,CACIC,QAASC,EAAAA,4BACTC,YAAaC,EAAAA,YAAW,WAAM,OAAAR,MAElC,CACIK,QAASI,EAAAA,yBACTC,KAAM,CAAC,CAAC,IAAI/B,EAAAA,SAAY,IAAIC,EAAAA,KAAQH,EAAAA,YACpCkC,WAAYnJ,GAEhBoJ,EAAAA,0PAoDCvJ,EAAA,EAAAsH,EAAAA,YACAtH,EAAA,EAAAuH,EAAAA,QACAvH,EAAA,EAAAwH,EAAAA,OAAOJ,EAAAA,YAEPpH,EAAA,EAAAwH,EAAAA,OAAOE,EAAAA,oBACP1H,EAAA,EAAAwH,EAAAA,OAAOG,EAAAA,WACP3H,EAAA,EAAAwH,EAAAA,OAAOI,EAAAA,gBACP5H,EAAA,EAAAwH,EAAAA,OAAOK,EAAAA,mBACP7H,EAAA,EAAAsH,EAAAA,YACAtH,EAAA,EAAAwH,EAAAA,OAAOO,EAAAA,sBAEP/H,EAAA,EAAAwH,EAAAA,OAAOS,EAAAA,qBAEPjI,EAAA,EAAAwH,EAAAA,OAAOW,EAAAA,6BAEPnI,EAAA,EAAAwH,EAAAA,OAAOY,EAAAA,kBACPpI,EAAA,EAAAwH,EAAAA,OAAOa,EAAAA,yBAjEHhI,IACDmJ,EAAAA,yCClDZ,SAAAC,KAAsC,OAAzBA,EAAuBvK,EAAA,CAjBnCwK,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,eACAC,EAAAA,oBACAC,EAAAA,aACAC,EAAAA,mBACAC,EAAAA,4BACAC,EAAAA,6BACAC,EAAAA,wBACAC,EAAAA,aACAC,EAAAA,uBACAC,EAAAA,wBAEJC,aAAc,CAAClK,GACfmK,QAAS,CAACnK,MAEDoJ","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostListener,\n Inject,\n Injector,\n Input,\n Optional,\n Self,\n Type,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n nullableSame,\n RANGE_SEPARATOR_CHAR,\n setNativeFocused,\n TUI_DATE_FILLER,\n TUI_DATE_RANGE_FILLER,\n TUI_FIRST_DAY,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_IS_MOBILE,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n TuiDay,\n TuiDayLike,\n TuiDayRange,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiMapper,\n TuiMonth,\n} from '@taiga-ui/cdk';\nimport {\n sizeBigger,\n TUI_DEFAULT_MARKER_HANDLER,\n TUI_TEXTFIELD_EXAMPLE_TEXT,\n TUI_TEXTFIELD_SIZE,\n TuiDialogService,\n TuiMarkerHandler,\n TuiPrimitiveTextfieldComponent,\n TuiTextfieldExampleTextDirective,\n TuiTextfieldSizeDirective,\n TuiTextMaskOptions,\n TuiWithOptionalMinMax,\n} from '@taiga-ui/core';\nimport {TuiDayRangePeriod} from '@taiga-ui/kit/classes';\nimport {\n EMPTY_MASK,\n MAX_DAY_RANGE_LENGTH_MAPPER,\n TUI_DATE_RANGE_MASK,\n} from '@taiga-ui/kit/constants';\nimport {LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TUI_CALENDAR_DATA_STREAM, TUI_MOBILE_CALENDAR} from '@taiga-ui/kit/tokens';\nimport {tuiCreateAutoCorrectedDateRangePipe} from '@taiga-ui/kit/utils/mask';\nimport {TuiReplayControlValueChangesFactory} from '@taiga-ui/kit/utils/miscellaneous';\nimport {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus';\nimport {takeUntil} from 'rxjs/operators';\n\n// TODO: remove in ivy compilation\nexport const RANGE_STREAM_FACTORY = TuiReplayControlValueChangesFactory;\n\n@Component({\n selector: 'tui-input-date-range',\n templateUrl: './input-date-range.template.html',\n styleUrls: ['./input-date-range.style.less'],\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputDateRangeComponent),\n },\n {\n provide: TUI_CALENDAR_DATA_STREAM,\n deps: [[new Optional(), new Self(), NgControl]],\n useFactory: RANGE_STREAM_FACTORY,\n },\n LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputDateRangeComponent\n extends AbstractTuiNullableControl<TuiDayRange>\n implements TuiWithOptionalMinMax<TuiDay>, TuiFocusableElementAccessor {\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<TuiDay> = ALWAYS_FALSE_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n markerHandler: TuiMarkerHandler = TUI_DEFAULT_MARKER_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n defaultViewedMonth = TuiMonth.currentLocal();\n\n @Input()\n @tuiDefaultProp()\n items: ReadonlyArray<TuiDayRangePeriod> = [];\n\n @Input()\n @tuiDefaultProp()\n min = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max = TUI_LAST_DAY;\n\n @Input()\n @tuiDefaultProp()\n minLength: TuiDayLike | null = null;\n\n @Input()\n @tuiDefaultProp()\n maxLength: TuiDayLike | null = null;\n\n open = false;\n\n readonly maxLengthMapper: TuiMapper<TuiDay, TuiDay> = MAX_DAY_RANGE_LENGTH_MAPPER;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly textMaskOptions: TuiTextMaskOptions = {\n mask: TUI_DATE_RANGE_MASK,\n pipe: tuiCreateAutoCorrectedDateRangePipe(this),\n guide: false,\n };\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(Injector) private readonly injector: Injector,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TuiDialogService) private readonly dialogService: TuiDialogService,\n @Optional()\n @Inject(TUI_MOBILE_CALENDAR)\n private readonly mobileCalendar: Type<any> | null,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n @Inject(TUI_TEXTFIELD_EXAMPLE_TEXT)\n private readonly textfieldExampleText: TuiTextfieldExampleTextDirective,\n @Inject(TUI_DATE_FILLER) readonly filler: string,\n @Inject(TUI_DATE_RANGE_FILLER) readonly rangeFiller: string,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield ? this.textfield.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.textfield && this.textfield.focused;\n }\n\n get computedMobile(): boolean {\n return this.isMobile && !!this.mobileCalendar;\n }\n\n get calendarIcon(): string {\n return sizeBigger(this.textfieldSize.size)\n ? 'tuiIconCalendarLarge'\n : 'tuiIconCalendar';\n }\n\n get canOpen(): boolean {\n return !this.computedDisabled && !this.readOnly && !this.computedMobile;\n }\n\n get computedExampleText(): string {\n return this.items.length ? this.textfieldExampleText.exampleText : '';\n }\n\n get computedFiller(): string {\n return this.activePeriod ? '' : this.rangeFiller;\n }\n\n get computedMask(): TuiTextMaskOptions {\n return this.activePeriod ? EMPTY_MASK : this.textMaskOptions;\n }\n\n get activePeriod(): TuiDayRangePeriod | null {\n return (\n this.items.find(item =>\n nullableSame(\n this.value,\n item.range,\n (a, b) =>\n a.from.daySame(b.from.dayLimit(this.min, this.max)) &&\n a.to.daySame(b.to.dayLimit(this.min, this.max)),\n ),\n ) || null\n );\n }\n\n get computedValue(): string {\n const {value, nativeValue, activePeriod} = this;\n\n if (activePeriod) {\n return String(activePeriod);\n }\n\n return value ? value.formattedDayRange : nativeValue;\n }\n\n get innerPseudoFocused(): boolean | null {\n if (this.pseudoFocused === false) {\n return false;\n }\n\n if (this.open || this.computedFocused) {\n return true;\n }\n\n return null;\n }\n\n get nativeValue(): string {\n return this.nativeFocusableElement ? this.nativeFocusableElement.value : '';\n }\n\n set nativeValue(value: string) {\n if (!this.nativeFocusableElement) {\n return;\n }\n\n this.nativeFocusableElement.value = value;\n }\n\n onMobileClick() {\n if (!this.mobileCalendar) {\n this.toggle();\n\n return;\n }\n\n this.dialogService\n .open<TuiDayRange>(\n new PolymorpheusComponent(this.mobileCalendar, this.injector),\n {\n size: 'fullscreen',\n closeable: false,\n data: {\n single: false,\n min: this.maxLengthMapper(\n this.min,\n this.value,\n this.maxLength,\n true,\n ),\n max: this.maxLengthMapper(\n this.max,\n this.value,\n this.maxLength,\n false,\n ),\n disabledItemHandler: this.disabledItemHandler,\n },\n },\n )\n .pipe(takeUntil(this.destroy$))\n .subscribe(value => {\n this.updateValue(value);\n });\n }\n\n @HostListener('click')\n onClick() {\n if (!this.isMobile) {\n this.toggle();\n }\n }\n\n onOpenChange(open: boolean) {\n this.open = open;\n }\n\n onValueChange(value: string) {\n if (this.control) {\n this.control.updateValueAndValidity({emitEvent: false});\n }\n\n if (value.length !== this.rangeFiller.length) {\n this.updateValue(null);\n\n return;\n }\n\n const parsedValue = TuiDayRange.normalizeParse(\n value,\n this.filler,\n this.rangeFiller,\n );\n\n this.updateValue(\n !this.minLength && !this.maxLength\n ? parsedValue\n : this.clampValue(parsedValue),\n );\n }\n\n onRangeChange(range: TuiDayRange) {\n this.toggle();\n this.focusInput();\n\n if (!nullableSame<TuiDayRange>(this.value, range, (a, b) => a.daySame(b))) {\n this.updateValue(range);\n }\n }\n\n onItemSelect(item: string | TuiDayRangePeriod) {\n this.toggle();\n this.focusInput();\n\n if (typeof item !== 'string') {\n this.updateValue(item.range.dayLimit(this.min, this.max));\n\n return;\n }\n\n if (this.activePeriod !== null) {\n this.updateValue(null);\n this.nativeValue = '';\n }\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onActiveZone(focused: boolean) {\n this.updateFocused(focused);\n\n if (\n !focused &&\n !this.itemSelected &&\n (this.nativeValue.length === this.filler.length ||\n this.nativeValue.length ===\n this.filler.length + RANGE_SEPARATOR_CHAR.length)\n ) {\n this.updateValue(\n TuiDayRange.normalizeParse(\n this.nativeValue,\n this.filler,\n this.rangeFiller,\n ),\n );\n }\n }\n\n writeValue(value: TuiDayRange | null) {\n super.writeValue(value);\n this.nativeValue = value ? this.computedValue : '';\n }\n\n private get itemSelected(): boolean {\n return this.items.findIndex(item => String(item) === this.nativeValue) !== -1;\n }\n\n private toggle() {\n this.open = !this.open;\n }\n\n private focusInput(preventScroll: boolean = false) {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n }\n }\n\n private clampValue(value: TuiDayRange): TuiDayRange {\n const clampedBottom =\n this.minLength && value.from.append(this.minLength).dayAfter(value.to)\n ? new TuiDayRange(\n value.from,\n value.from.append(this.minLength).append({day: -1}),\n )\n : value;\n\n const availableMax = this.maxLength\n ? clampedBottom.from.append(this.maxLength).append({day: -1})\n : this.max;\n\n return clampedBottom.to.dayAfter(availableMax)\n ? new TuiDayRange(clampedBottom.from, availableMax)\n : clampedBottom;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule, TuiLetModule} from '@taiga-ui/cdk';\nimport {\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiCalendarRangeModule} from '@taiga-ui/kit/components/calendar-range';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\nimport {TextMaskModule} from 'angular2-text-mask';\nimport {TuiInputDateRangeComponent} from './input-date-range.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TextMaskModule,\n TuiActiveZoneModule,\n TuiLetModule,\n PolymorpheusModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiHostedDropdownModule,\n TuiSvgModule,\n TuiCalendarRangeModule,\n TuiValueAccessorModule,\n ],\n declarations: [TuiInputDateRangeComponent],\n exports: [TuiInputDateRangeComponent],\n})\nexport class TuiInputDateRangeModule {}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/input-date-range/input-date-range.component.ts","ng://@taiga-ui/kit/components/input-date-range/input-date-range.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","RANGE_STREAM_FACTORY","TuiReplayControlValueChangesFactory","TuiInputDateRangeComponent","control","changeDetectorRef","injector","isMobile","dialogService","mobileCalendar","textfieldSize","textfieldExampleText","dateFormat","dateTexts$","_this","_super","call","this","disabledItemHandler","ALWAYS_FALSE_HANDLER","markerHandler","TUI_DEFAULT_MARKER_HANDLER","defaultViewedMonth","TuiMonth","currentLocal","items","min","TUI_FIRST_DAY","max","TUI_LAST_DAY","minLength","maxLength","open","maxLengthMapper","MAX_DAY_RANGE_LENGTH_MAPPER","dateFiller$","pipe","pluck","textMaskOptions","mask","TUI_DATE_RANGE_MASK","tuiCreateAutoCorrectedDateRangePipe","guide","__","constructor","prototype","create","__extends","textfield","nativeFocusableElement","focused","sizeBigger","size","computedDisabled","readOnly","computedMobile","exampleText","activePeriod","EMPTY_MASK","find","item","nullableSame","value","range","a","from","daySame","dayLimit","to","nativeValue","String","formattedDayRange","pseudoFocused","computedFocused","getComputedRangeFiller","dateFiller","getDateRangeFiller","onMobileClick","PolymorpheusComponent","closeable","data","single","takeUntil","destroy$","subscribe","updateValue","toggle","onClick","onOpenChange","onValueChange","updateValueAndValidity","emitEvent","DATE_RANGE_FILLER_LENGTH","parsedValue","TuiDayRange","normalizeParse","clampValue","onRangeChange","focusInput","onItemSelect","onHovered","hovered","updateHovered","onPressed","pressed","updatePressed","onActiveZone","updateFocused","itemSelected","DATE_FILLER_LENGTH","RANGE_SEPARATOR_CHAR","writeValue","computedValue","findIndex","preventScroll","setNativeFocused","clampedBottom","append","dayAfter","day","availableMax","NgControl","type","Optional","Self","Inject","args","ChangeDetectorRef","Injector","TUI_IS_MOBILE","TuiDialogService","Type","TUI_MOBILE_CALENDAR","TuiTextfieldSizeDirective","TUI_TEXTFIELD_SIZE","TuiTextfieldExampleTextDirective","TUI_TEXTFIELD_EXAMPLE_TEXT","TUI_DATE_FORMAT","Observable","TUI_DATE_TEXTS","Input","tuiDefaultProp","ViewChild","TuiPrimitiveTextfieldComponent","HostListener","TuiInputDateRangeComponent_1","Component","selector","template","providers","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","TUI_CALENDAR_DATA_STREAM","deps","useFactory","LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER","AbstractTuiNullableControl","TuiInputDateRangeModule","NgModule","imports","CommonModule","TextMaskModule","TuiActiveZoneModule","TuiLetModule","PolymorpheusModule","TuiPrimitiveTextfieldModule","TuiTextfieldControllerModule","TuiHostedDropdownModule","TuiSvgModule","TuiCalendarRangeModule","TuiValueAccessorModule","declarations","exports"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAgCrB,SAASO,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HZ,EAAvHa,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOV,OAAOe,yBAAyBP,EAAQC,GAAOC,EACrH,GAAuB,iBAAZM,SAAoD,mBAArBA,QAAQC,SAAyBH,EAAIE,QAAQC,SAASV,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIQ,EAAIX,EAAWM,OAAS,EAAGK,GAAK,EAAGA,KAASpB,EAAIS,EAAWW,MAAIJ,GAAKH,EAAI,EAAIb,EAAEg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AA,OAAOE,EAAAA,oBACPjI,EAAA,EAAA+H,EAAAA,OAAOG,EAAAA,WACPlI,EAAA,EAAA+H,EAAAA,OAAOI,EAAAA,gBACPnI,EAAA,EAAA+H,EAAAA,OAAOK,EAAAA,mBACPpI,EAAA,EAAA6H,EAAAA,YACA7H,EAAA,EAAA+H,EAAAA,OAAOO,EAAAA,sBAEPtI,EAAA,EAAA+H,EAAAA,OAAOS,EAAAA,qBAEPxI,EAAA,EAAA+H,EAAAA,OAAOW,EAAAA,6BAEP1I,EAAA,EAAA+H,EAAAA,OAAOY,EAAAA,kBACP3I,EAAA,EAAA+H,EAAAA,OAAOc,EAAAA,kBAnEHxI,IACD2J,EAAAA,yCCzDZ,SAAAC,KAAsC,OAAzBA,EAAuB/K,EAAA,CAjBnCgL,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,eACAC,EAAAA,oBACAC,EAAAA,aACAC,EAAAA,mBACAC,EAAAA,4BACAC,EAAAA,6BACAC,EAAAA,wBACAC,EAAAA,aACAC,EAAAA,uBACAC,EAAAA,wBAEJC,aAAc,CAAC1K,GACf2K,QAAS,CAAC3K,MAED4J","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostListener,\n Inject,\n Injector,\n Input,\n Optional,\n Self,\n Type,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n DATE_FILLER_LENGTH,\n DATE_RANGE_FILLER_LENGTH,\n nullableSame,\n RANGE_SEPARATOR_CHAR,\n setNativeFocused,\n TUI_DATE_FORMAT,\n TUI_FIRST_DAY,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_IS_MOBILE,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n TuiDateMode,\n TuiDay,\n TuiDayLike,\n TuiDayRange,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiMapper,\n TuiMonth,\n} from '@taiga-ui/cdk';\nimport {\n sizeBigger,\n TUI_DEFAULT_MARKER_HANDLER,\n TUI_TEXTFIELD_EXAMPLE_TEXT,\n TUI_TEXTFIELD_SIZE,\n TuiDialogService,\n TuiMarkerHandler,\n TuiPrimitiveTextfieldComponent,\n TuiTextfieldExampleTextDirective,\n TuiTextfieldSizeDirective,\n TuiTextMaskOptions,\n TuiWithOptionalMinMax,\n} from '@taiga-ui/core';\nimport {TuiDayRangePeriod} from '@taiga-ui/kit/classes';\nimport {\n EMPTY_MASK,\n MAX_DAY_RANGE_LENGTH_MAPPER,\n TUI_DATE_RANGE_MASK,\n} from '@taiga-ui/kit/constants';\nimport {LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {\n TUI_CALENDAR_DATA_STREAM,\n TUI_DATE_TEXTS,\n TUI_MOBILE_CALENDAR,\n} from '@taiga-ui/kit/tokens';\nimport {tuiCreateAutoCorrectedDateRangePipe} from '@taiga-ui/kit/utils/mask';\nimport {TuiReplayControlValueChangesFactory} from '@taiga-ui/kit/utils/miscellaneous';\nimport {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {pluck, takeUntil} from 'rxjs/operators';\n\n// TODO: remove in ivy compilation\nexport const RANGE_STREAM_FACTORY = TuiReplayControlValueChangesFactory;\n\n@Component({\n selector: 'tui-input-date-range',\n templateUrl: './input-date-range.template.html',\n styleUrls: ['./input-date-range.style.less'],\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputDateRangeComponent),\n },\n {\n provide: TUI_CALENDAR_DATA_STREAM,\n deps: [[new Optional(), new Self(), NgControl]],\n useFactory: RANGE_STREAM_FACTORY,\n },\n LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputDateRangeComponent\n extends AbstractTuiNullableControl<TuiDayRange>\n implements TuiWithOptionalMinMax<TuiDay>, TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<TuiDay> = ALWAYS_FALSE_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n markerHandler: TuiMarkerHandler = TUI_DEFAULT_MARKER_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n defaultViewedMonth = TuiMonth.currentLocal();\n\n @Input()\n @tuiDefaultProp()\n items: ReadonlyArray<TuiDayRangePeriod> = [];\n\n @Input()\n @tuiDefaultProp()\n min = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max = TUI_LAST_DAY;\n\n @Input()\n @tuiDefaultProp()\n minLength: TuiDayLike | null = null;\n\n @Input()\n @tuiDefaultProp()\n maxLength: TuiDayLike | null = null;\n\n open = false;\n\n readonly maxLengthMapper: TuiMapper<TuiDay, TuiDay> = MAX_DAY_RANGE_LENGTH_MAPPER;\n readonly dateFiller$ = this.dateTexts$.pipe(pluck(this.dateFormat));\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly textMaskOptions: TuiTextMaskOptions = {\n mask: TUI_DATE_RANGE_MASK,\n pipe: tuiCreateAutoCorrectedDateRangePipe(this),\n guide: false,\n };\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(Injector) private readonly injector: Injector,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TuiDialogService) private readonly dialogService: TuiDialogService,\n @Optional()\n @Inject(TUI_MOBILE_CALENDAR)\n private readonly mobileCalendar: Type<any> | null,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n @Inject(TUI_TEXTFIELD_EXAMPLE_TEXT)\n private readonly textfieldExampleText: TuiTextfieldExampleTextDirective,\n @Inject(TUI_DATE_FORMAT) readonly dateFormat: TuiDateMode,\n @Inject(TUI_DATE_TEXTS)\n readonly dateTexts$: Observable<Record<TuiDateMode, string>>,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield ? this.textfield.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.textfield && this.textfield.focused;\n }\n\n get computedMobile(): boolean {\n return this.isMobile && !!this.mobileCalendar;\n }\n\n get calendarIcon(): string {\n return sizeBigger(this.textfieldSize.size)\n ? 'tuiIconCalendarLarge'\n : 'tuiIconCalendar';\n }\n\n get canOpen(): boolean {\n return !this.computedDisabled && !this.readOnly && !this.computedMobile;\n }\n\n get computedExampleText(): string {\n return this.items.length ? this.textfieldExampleText.exampleText : '';\n }\n\n get computedMask(): TuiTextMaskOptions {\n return this.activePeriod ? EMPTY_MASK : this.textMaskOptions;\n }\n\n get activePeriod(): TuiDayRangePeriod | null {\n return (\n this.items.find(item =>\n nullableSame(\n this.value,\n item.range,\n (a, b) =>\n a.from.daySame(b.from.dayLimit(this.min, this.max)) &&\n a.to.daySame(b.to.dayLimit(this.min, this.max)),\n ),\n ) || null\n );\n }\n\n get computedValue(): string {\n const {value, nativeValue, activePeriod} = this;\n\n if (activePeriod) {\n return String(activePeriod);\n }\n\n return value ? value.formattedDayRange : nativeValue;\n }\n\n get innerPseudoFocused(): boolean | null {\n if (this.pseudoFocused === false) {\n return false;\n }\n\n if (this.open || this.computedFocused) {\n return true;\n }\n\n return null;\n }\n\n get nativeValue(): string {\n return this.nativeFocusableElement ? this.nativeFocusableElement.value : '';\n }\n\n set nativeValue(value: string) {\n if (!this.nativeFocusableElement) {\n return;\n }\n\n this.nativeFocusableElement.value = value;\n }\n\n getComputedRangeFiller(dateFiller: string): string {\n return this.activePeriod ? '' : this.getDateRangeFiller(dateFiller);\n }\n\n onMobileClick() {\n if (!this.mobileCalendar) {\n this.toggle();\n\n return;\n }\n\n this.dialogService\n .open<TuiDayRange>(\n new PolymorpheusComponent(this.mobileCalendar, this.injector),\n {\n size: 'fullscreen',\n closeable: false,\n data: {\n single: false,\n min: this.maxLengthMapper(\n this.min,\n this.value,\n this.maxLength,\n true,\n ),\n max: this.maxLengthMapper(\n this.max,\n this.value,\n this.maxLength,\n false,\n ),\n disabledItemHandler: this.disabledItemHandler,\n },\n },\n )\n .pipe(takeUntil(this.destroy$))\n .subscribe(value => {\n this.updateValue(value);\n });\n }\n\n @HostListener('click')\n onClick() {\n if (!this.isMobile) {\n this.toggle();\n }\n }\n\n onOpenChange(open: boolean) {\n this.open = open;\n }\n\n onValueChange(value: string) {\n if (this.control) {\n this.control.updateValueAndValidity({emitEvent: false});\n }\n\n if (value.length !== DATE_RANGE_FILLER_LENGTH) {\n this.updateValue(null);\n\n return;\n }\n\n const parsedValue = TuiDayRange.normalizeParse(value);\n\n this.updateValue(\n !this.minLength && !this.maxLength\n ? parsedValue\n : this.clampValue(parsedValue),\n );\n }\n\n onRangeChange(range: TuiDayRange) {\n this.toggle();\n this.focusInput();\n\n if (!nullableSame<TuiDayRange>(this.value, range, (a, b) => a.daySame(b))) {\n this.updateValue(range);\n }\n }\n\n onItemSelect(item: string | TuiDayRangePeriod) {\n this.toggle();\n this.focusInput();\n\n if (typeof item !== 'string') {\n this.updateValue(item.range.dayLimit(this.min, this.max));\n\n return;\n }\n\n if (this.activePeriod !== null) {\n this.updateValue(null);\n this.nativeValue = '';\n }\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onActiveZone(focused: boolean) {\n this.updateFocused(focused);\n\n if (\n !focused &&\n !this.itemSelected &&\n (this.nativeValue.length === DATE_FILLER_LENGTH ||\n this.nativeValue.length ===\n DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length)\n ) {\n this.updateValue(TuiDayRange.normalizeParse(this.nativeValue));\n }\n }\n\n writeValue(value: TuiDayRange | null) {\n super.writeValue(value);\n this.nativeValue = value ? this.computedValue : '';\n }\n\n private get itemSelected(): boolean {\n return this.items.findIndex(item => String(item) === this.nativeValue) !== -1;\n }\n\n private toggle() {\n this.open = !this.open;\n }\n\n private focusInput(preventScroll: boolean = false) {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n }\n }\n\n private clampValue(value: TuiDayRange): TuiDayRange {\n const clampedBottom =\n this.minLength && value.from.append(this.minLength).dayAfter(value.to)\n ? new TuiDayRange(\n value.from,\n value.from.append(this.minLength).append({day: -1}),\n )\n : value;\n\n const availableMax = this.maxLength\n ? clampedBottom.from.append(this.maxLength).append({day: -1})\n : this.max;\n\n return clampedBottom.to.dayAfter(availableMax)\n ? new TuiDayRange(clampedBottom.from, availableMax)\n : clampedBottom;\n }\n\n private getDateRangeFiller(dateFiller: string): string {\n return `${dateFiller}${RANGE_SEPARATOR_CHAR}${dateFiller}`;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule, TuiLetModule} from '@taiga-ui/cdk';\nimport {\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiCalendarRangeModule} from '@taiga-ui/kit/components/calendar-range';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\nimport {TextMaskModule} from 'angular2-text-mask';\nimport {TuiInputDateRangeComponent} from './input-date-range.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TextMaskModule,\n TuiActiveZoneModule,\n TuiLetModule,\n PolymorpheusModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiHostedDropdownModule,\n TuiSvgModule,\n TuiCalendarRangeModule,\n TuiValueAccessorModule,\n ],\n declarations: [TuiInputDateRangeComponent],\n exports: [TuiInputDateRangeComponent],\n})\nexport class TuiInputDateRangeModule {}\n"]}
|
|
@@ -228,31 +228,36 @@
|
|
|
228
228
|
// @dynamic
|
|
229
229
|
var TuiInputDateTimeComponent = /** @class */ (function (_super) {
|
|
230
230
|
__extends(TuiInputDateTimeComponent, _super);
|
|
231
|
-
function TuiInputDateTimeComponent(control, changeDetectorRef, textfieldSize,
|
|
231
|
+
function TuiInputDateTimeComponent(control, changeDetectorRef, textfieldSize, dateFormat, timeTexts$, dateTexts$) {
|
|
232
232
|
var _this = _super.call(this, control, changeDetectorRef) || this;
|
|
233
233
|
_this.textfieldSize = textfieldSize;
|
|
234
|
-
_this.
|
|
234
|
+
_this.dateFormat = dateFormat;
|
|
235
235
|
_this.timeTexts$ = timeTexts$;
|
|
236
|
+
_this.dateTexts$ = dateTexts$;
|
|
236
237
|
_this.min = cdk.TUI_FIRST_DAY;
|
|
237
238
|
_this.max = cdk.TUI_LAST_DAY;
|
|
238
239
|
_this.disabledItemHandler = cdk.ALWAYS_FALSE_HANDLER;
|
|
239
240
|
_this.defaultActiveYearMonth = cdk.TuiMonth.currentLocal();
|
|
240
241
|
_this.timeMode = 'HH:MM';
|
|
241
242
|
_this.open = false;
|
|
243
|
+
_this.filler$ = rxjs.combineLatest([
|
|
244
|
+
_this.dateTexts$.pipe(operators.pluck(_this.dateFormat)),
|
|
245
|
+
_this.timeTexts$.pipe(operators.pluck(_this.timeMode)),
|
|
246
|
+
]).pipe(operators.map(function (fillers) { return _this.getDateTimeString.apply(_this, __spread(fillers)); }));
|
|
242
247
|
_this.month = null;
|
|
243
248
|
return _this;
|
|
244
249
|
}
|
|
245
250
|
TuiInputDateTimeComponent_1 = TuiInputDateTimeComponent;
|
|
246
251
|
Object.defineProperty(TuiInputDateTimeComponent.prototype, "fillerLength", {
|
|
247
252
|
get: function () {
|
|
248
|
-
return
|
|
253
|
+
return cdk.DATE_FILLER_LENGTH + constants.DATE_TIME_SEPARATOR.length + this.timeMode.length;
|
|
249
254
|
},
|
|
250
255
|
enumerable: true,
|
|
251
256
|
configurable: true
|
|
252
257
|
});
|
|
253
258
|
Object.defineProperty(TuiInputDateTimeComponent.prototype, "textMaskOptions", {
|
|
254
259
|
get: function () {
|
|
255
|
-
return this.calculateMask(this.value[0], this.
|
|
260
|
+
return this.calculateMask(this.value[0], this.calendarMinDay, this.calendarMaxDay, this.timeMode);
|
|
256
261
|
},
|
|
257
262
|
enumerable: true,
|
|
258
263
|
configurable: true
|
|
@@ -282,17 +287,13 @@
|
|
|
282
287
|
});
|
|
283
288
|
Object.defineProperty(TuiInputDateTimeComponent.prototype, "computedValue", {
|
|
284
289
|
get: function () {
|
|
285
|
-
var _a = this, value = _a.value, nativeValue = _a.nativeValue,
|
|
290
|
+
var _a = this, value = _a.value, nativeValue = _a.nativeValue, timeMode = _a.timeMode;
|
|
286
291
|
var _b = __read(value, 2), date = _b[0], time = _b[1];
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
(date && time)) {
|
|
290
|
-
return "" + date.toString() + constants.DATE_TIME_SEPARATOR + (time ? time.toString(this.timeMode) : '');
|
|
291
|
-
}
|
|
292
|
-
if (touched || focused) {
|
|
292
|
+
var hasTimeInputChars = nativeValue.length > cdk.DATE_FILLER_LENGTH;
|
|
293
|
+
if (!date || (!time && hasTimeInputChars)) {
|
|
293
294
|
return nativeValue;
|
|
294
295
|
}
|
|
295
|
-
return date
|
|
296
|
+
return this.getDateTimeString(date, time, timeMode);
|
|
296
297
|
},
|
|
297
298
|
enumerable: true,
|
|
298
299
|
configurable: true
|
|
@@ -304,6 +305,20 @@
|
|
|
304
305
|
enumerable: true,
|
|
305
306
|
configurable: true
|
|
306
307
|
});
|
|
308
|
+
Object.defineProperty(TuiInputDateTimeComponent.prototype, "calendarMinDay", {
|
|
309
|
+
get: function () {
|
|
310
|
+
return Array.isArray(this.min) ? this.min[0] : this.min;
|
|
311
|
+
},
|
|
312
|
+
enumerable: true,
|
|
313
|
+
configurable: true
|
|
314
|
+
});
|
|
315
|
+
Object.defineProperty(TuiInputDateTimeComponent.prototype, "calendarMaxDay", {
|
|
316
|
+
get: function () {
|
|
317
|
+
return Array.isArray(this.max) ? this.max[0] : this.max;
|
|
318
|
+
},
|
|
319
|
+
enumerable: true,
|
|
320
|
+
configurable: true
|
|
321
|
+
});
|
|
307
322
|
Object.defineProperty(TuiInputDateTimeComponent.prototype, "computedActiveYearMonth", {
|
|
308
323
|
get: function () {
|
|
309
324
|
return this.month || this.value[0] || this.defaultActiveYearMonth;
|
|
@@ -331,29 +346,25 @@
|
|
|
331
346
|
enumerable: true,
|
|
332
347
|
configurable: true
|
|
333
348
|
});
|
|
334
|
-
TuiInputDateTimeComponent.prototype.getFiller$ = function (dateFiller, timeMode) {
|
|
335
|
-
return this.timeTexts$.pipe(operators.map(function (texts) { return "" + dateFiller + constants.DATE_TIME_SEPARATOR + texts[timeMode]; }));
|
|
336
|
-
};
|
|
337
349
|
TuiInputDateTimeComponent.prototype.onClick = function () {
|
|
338
350
|
this.open = !this.open;
|
|
339
351
|
};
|
|
340
352
|
TuiInputDateTimeComponent.prototype.onValueChange = function (value) {
|
|
341
|
-
if (value.length <
|
|
353
|
+
if (value.length < cdk.DATE_FILLER_LENGTH) {
|
|
342
354
|
this.updateValue([null, null]);
|
|
343
355
|
return;
|
|
344
356
|
}
|
|
345
357
|
var _a = __read(value.split(constants.DATE_TIME_SEPARATOR), 2), date = _a[0], time = _a[1];
|
|
346
358
|
var parsedDate = cdk.TuiDay.normalizeParse(date);
|
|
347
359
|
var parsedTime = time && time.length === this.timeMode.length
|
|
348
|
-
? cdk.TuiTime.fromString(time)
|
|
360
|
+
? this.clampTime(cdk.TuiTime.fromString(time), parsedDate)
|
|
349
361
|
: null;
|
|
350
|
-
|
|
351
|
-
this.open = false;
|
|
352
|
-
}
|
|
362
|
+
this.open = false;
|
|
353
363
|
this.updateValue([parsedDate, parsedTime]);
|
|
354
364
|
};
|
|
355
365
|
TuiInputDateTimeComponent.prototype.onDayClick = function (day) {
|
|
356
|
-
this.
|
|
366
|
+
var modifiedTime = this.value[1] && this.clampTime(this.value[1], day);
|
|
367
|
+
this.updateValue([day, modifiedTime]);
|
|
357
368
|
this.updateNativeValue(day);
|
|
358
369
|
this.open = false;
|
|
359
370
|
};
|
|
@@ -405,22 +416,39 @@
|
|
|
405
416
|
};
|
|
406
417
|
TuiInputDateTimeComponent.prototype.updateNativeValue = function (day) {
|
|
407
418
|
var time = this.nativeValue.split(constants.DATE_TIME_SEPARATOR)[1] || '';
|
|
408
|
-
this.nativeValue =
|
|
419
|
+
this.nativeValue = this.getDateTimeString(day, time);
|
|
420
|
+
};
|
|
421
|
+
TuiInputDateTimeComponent.prototype.clampTime = function (time, day) {
|
|
422
|
+
var ms = time.toAbsoluteMilliseconds();
|
|
423
|
+
var min = Array.isArray(this.min) && day.daySame(this.calendarMinDay)
|
|
424
|
+
? this.min[1].toAbsoluteMilliseconds()
|
|
425
|
+
: -Infinity;
|
|
426
|
+
var max = Array.isArray(this.max) && day.daySame(this.calendarMaxDay)
|
|
427
|
+
? this.max[1].toAbsoluteMilliseconds()
|
|
428
|
+
: Infinity;
|
|
429
|
+
return cdk.TuiTime.fromAbsoluteMilliseconds(cdk.clamp(ms, min, max));
|
|
409
430
|
};
|
|
410
|
-
TuiInputDateTimeComponent.prototype.calculateMask = function (day, min, max, timeMode
|
|
431
|
+
TuiInputDateTimeComponent.prototype.calculateMask = function (day, min, max, timeMode) {
|
|
411
432
|
return {
|
|
412
433
|
mask: __spread(constants.TUI_DATE_MASK, [',', ' '], mask.tuiCreateTimeMask(timeMode)),
|
|
413
|
-
pipe: mask.tuiCreateAutoCorrectedDateTimePipe({ value: day, min: min, max: max
|
|
434
|
+
pipe: mask.tuiCreateAutoCorrectedDateTimePipe({ value: day, min: min, max: max }, timeMode),
|
|
414
435
|
guide: false,
|
|
415
436
|
};
|
|
416
437
|
};
|
|
438
|
+
TuiInputDateTimeComponent.prototype.getDateTimeString = function (date, time, timeMode) {
|
|
439
|
+
if (timeMode === void 0) { timeMode = 'HH:MM'; }
|
|
440
|
+
var dateString = date instanceof cdk.TuiDay ? date.toString() : date;
|
|
441
|
+
var timeString = time instanceof cdk.TuiTime ? time.toString(timeMode) : time || '';
|
|
442
|
+
return "" + dateString + constants.DATE_TIME_SEPARATOR + timeString;
|
|
443
|
+
};
|
|
417
444
|
var TuiInputDateTimeComponent_1;
|
|
418
445
|
TuiInputDateTimeComponent.ctorParameters = function () { return [
|
|
419
446
|
{ type: forms.NgControl, decorators: [{ type: core.Optional }, { type: core.Self }, { type: core.Inject, args: [forms.NgControl,] }] },
|
|
420
447
|
{ type: core.ChangeDetectorRef, decorators: [{ type: core.Inject, args: [core.ChangeDetectorRef,] }] },
|
|
421
448
|
{ type: core$1.TuiTextfieldSizeDirective, decorators: [{ type: core.Inject, args: [core$1.TUI_TEXTFIELD_SIZE,] }] },
|
|
422
|
-
{ type:
|
|
423
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [tokens.TUI_TIME_TEXTS,] }] }
|
|
449
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [cdk.TUI_DATE_FORMAT,] }] },
|
|
450
|
+
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [tokens.TUI_TIME_TEXTS,] }] },
|
|
451
|
+
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [tokens.TUI_DATE_TEXTS,] }] }
|
|
424
452
|
]; };
|
|
425
453
|
__decorate([
|
|
426
454
|
core.Input(),
|
|
@@ -445,19 +473,19 @@
|
|
|
445
473
|
__decorate([
|
|
446
474
|
core.ViewChild(core$1.TuiPrimitiveTextfieldComponent)
|
|
447
475
|
], TuiInputDateTimeComponent.prototype, "textfield", void 0);
|
|
448
|
-
__decorate([
|
|
449
|
-
cdk.tuiPure
|
|
450
|
-
], TuiInputDateTimeComponent.prototype, "getFiller$", null);
|
|
451
476
|
__decorate([
|
|
452
477
|
core.HostListener('click')
|
|
453
478
|
], TuiInputDateTimeComponent.prototype, "onClick", null);
|
|
454
479
|
__decorate([
|
|
455
480
|
cdk.tuiPure
|
|
456
481
|
], TuiInputDateTimeComponent.prototype, "calculateMask", null);
|
|
482
|
+
__decorate([
|
|
483
|
+
cdk.tuiPure
|
|
484
|
+
], TuiInputDateTimeComponent.prototype, "getDateTimeString", null);
|
|
457
485
|
TuiInputDateTimeComponent = TuiInputDateTimeComponent_1 = __decorate([
|
|
458
486
|
core.Component({
|
|
459
487
|
selector: 'tui-input-date-time',
|
|
460
|
-
template: "<tui-hosted-dropdown\n class=\"hosted\"\n [canOpen]=\"canOpen\"\n [content]=\"dropdown\"\n [open]=\"open && canOpen\"\n (openChange)=\"onOpenChange($event)\"\n>\n <tui-primitive-textfield\n class=\"textfield\"\n tuiValueAccessor\n [pseudoFocused]=\"pseudoFocused\"\n [pseudoHovered]=\"pseudoHovered\"\n [invalid]=\"computedInvalid\"\n [filler]=\"
|
|
488
|
+
template: "<tui-hosted-dropdown\n class=\"hosted\"\n [canOpen]=\"canOpen\"\n [content]=\"dropdown\"\n [open]=\"open && canOpen\"\n (openChange)=\"onOpenChange($event)\"\n>\n <tui-primitive-textfield\n class=\"textfield\"\n automation-id=\"tui-input-date-time__textfield\"\n tuiValueAccessor\n [pseudoFocused]=\"pseudoFocused\"\n [pseudoHovered]=\"pseudoHovered\"\n [invalid]=\"computedInvalid\"\n [filler]=\"filler$ | async\"\n [nativeId]=\"nativeId\"\n [readOnly]=\"readOnly\"\n [iconContent]=\"calendarIcon\"\n [disabled]=\"disabled\"\n [textMask]=\"textMaskOptions\"\n [value]=\"computedValue\"\n (valueChange)=\"onValueChange($event)\"\n (hoveredChange)=\"onHovered($event)\"\n (focusedChange)=\"onFocused($event)\"\n >\n <ng-content></ng-content>\n </tui-primitive-textfield>\n\n <ng-template #dropdown=\"polymorpheus\" polymorpheus>\n <tui-calendar\n tuiPreventDefault=\"mousedown\"\n automation-id=\"tui-input-date-time__calendar\"\n [min]=\"calendarMinDay\"\n [max]=\"calendarMaxDay\"\n [disabledItemHandler]=\"disabledItemHandler\"\n [month]=\"computedActiveYearMonth\"\n [value]=\"calendarValue\"\n (dayClick)=\"onDayClick($event)\"\n (monthChange)=\"onMonthChange($event)\"\n ></tui-calendar>\n </ng-template>\n</tui-hosted-dropdown>\n",
|
|
461
489
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
462
490
|
providers: [
|
|
463
491
|
{
|
|
@@ -478,8 +506,9 @@
|
|
|
478
506
|
__param(0, core.Inject(forms.NgControl)),
|
|
479
507
|
__param(1, core.Inject(core.ChangeDetectorRef)),
|
|
480
508
|
__param(2, core.Inject(core$1.TUI_TEXTFIELD_SIZE)),
|
|
481
|
-
__param(3, core.Inject(cdk.
|
|
482
|
-
__param(4, core.Inject(tokens.TUI_TIME_TEXTS))
|
|
509
|
+
__param(3, core.Inject(cdk.TUI_DATE_FORMAT)),
|
|
510
|
+
__param(4, core.Inject(tokens.TUI_TIME_TEXTS)),
|
|
511
|
+
__param(5, core.Inject(tokens.TUI_DATE_TEXTS))
|
|
483
512
|
], TuiInputDateTimeComponent);
|
|
484
513
|
return TuiInputDateTimeComponent;
|
|
485
514
|
}(cdk.AbstractTuiControl));
|