@taiga-ui/kit 3.60.0 → 3.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taiga-ui-kit-abstract.umd.js +1 -1
- package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.js +628 -774
- package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.js +452 -598
- package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-arrow.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.js +494 -640
- package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +417 -563
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js +601 -747
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js +572 -718
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-carousel.umd.js +675 -821
- package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +499 -645
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +439 -585
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.js +462 -608
- package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.js +688 -834
- package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +510 -656
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js +441 -587
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.js +662 -808
- package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.js +461 -607
- package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.js +554 -700
- package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.js +663 -809
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-multi.umd.js +703 -849
- package/bundles/taiga-ui-kit-components-input-date-multi.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js +827 -973
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js +880 -1026
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.js +830 -976
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.js +829 -975
- package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js +466 -612
- package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js +609 -755
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.js +642 -788
- package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.js +795 -941
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.js +574 -720
- package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +665 -811
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.js +767 -913
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.js +650 -796
- package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +591 -737
- package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +956 -1102
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js +875 -1021
- package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-year.umd.js +560 -706
- package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.js +515 -661
- package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js +543 -689
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js +596 -742
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +398 -544
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js +1191 -1337
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js +664 -810
- package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +10 -156
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.js +6 -152
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-push.umd.js +14 -160
- package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-block.umd.js +499 -645
- package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +470 -616
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-list.umd.js +482 -628
- package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js +543 -689
- package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.js +665 -811
- package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-rating.umd.js +500 -646
- package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +434 -580
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +787 -933
- package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +797 -943
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.js +623 -769
- package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js +12 -158
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-textarea.umd.js +820 -966
- package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tiles.umd.js +693 -839
- package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.js +565 -711
- package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tree.umd.js +4 -4
- package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-constants.umd.js +24 -170
- package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +491 -637
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +459 -605
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js +394 -540
- package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js +547 -693
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +470 -616
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js +1 -1
- package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js +378 -524
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify.umd.js +2 -2
- package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js +2 -2
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-to-year.umd.js +1 -1
- package/bundles/taiga-ui-kit-pipes-to-year.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-providers.umd.js +3 -3
- package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-services.umd.js +1 -1
- package/bundles/taiga-ui-kit-services.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.js +243 -243
- package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-files.umd.js +2 -2
- package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-format.umd.js +2 -2
- package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.js +17 -163
- package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-math.umd.js +8 -154
- package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +13 -159
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-phone.umd.js +2 -2
- package/bundles/taiga-ui-kit-utils-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-validators.umd.js +1 -1
- package/bundles/taiga-ui-kit-validators.umd.js.map +1 -1
- package/esm2015/abstract/abstract-native-select.js +2 -2
- package/esm2015/components/arrow/arrow.options.js +3 -3
- package/esm2015/components/avatar/avatar.options.js +2 -2
- package/esm2015/components/breadcrumbs/breadcrumbs.options.js +4 -4
- package/esm2015/components/combo-box/combo-box.component.js +2 -2
- package/esm2015/components/input-copy/input-copy.options.js +5 -5
- package/esm2015/components/input-count/input-count.options.js +5 -5
- package/esm2015/components/input-files/input-files.options.js +3 -3
- package/esm2015/components/input-files/max-size-rejection-error.pipe.js +2 -2
- package/esm2015/components/input-number/input-number.options.js +4 -4
- package/esm2015/components/input-password/input-password.options.js +3 -3
- package/esm2015/components/input-phone/input-phone.options.js +3 -3
- package/esm2015/components/input-phone/utils/complete-phone-insertion-preprocessor.js +6 -6
- package/esm2015/components/input-phone/utils/create-phone-mask-expression.js +6 -6
- package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +3 -3
- package/esm2015/components/input-tag/input-tag.options.js +3 -3
- package/esm2015/components/input-time/input-time.options.js +5 -5
- package/esm2015/components/items-with-more/items-with-more.service.js +2 -2
- package/esm2015/components/multi-select/hide-selected.pipe.js +2 -2
- package/esm2015/components/multi-select/multi-select.options.js +2 -2
- package/esm2015/components/pdf-viewer/pdf-viewer.options.js +3 -3
- package/esm2015/components/pdf-viewer/pdf-viewer.service.js +3 -3
- package/esm2015/components/push/push.options.js +7 -7
- package/esm2015/components/push/push.service.js +3 -3
- package/esm2015/components/radio/radio.options.js +2 -2
- package/esm2015/components/rating/rating.options.js +3 -3
- package/esm2015/components/routable-dialog/generate-dialogable-route.js +6 -6
- package/esm2015/components/select/select.options.js +2 -2
- package/esm2015/components/slider/slider.options.js +3 -3
- package/esm2015/components/tabs/tab/tab.providers.js +5 -5
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.providers.js +3 -3
- package/esm2015/components/tag/tag.options.js +3 -3
- package/esm2015/components/textarea/deprecated.js +7 -7
- package/esm2015/components/tiles/tile.service.js +3 -3
- package/esm2015/components/toggle/toggle.options.js +4 -4
- package/esm2015/components/tree/misc/tree.tokens.js +5 -5
- package/esm2015/constants/date-mode-maskito-adapter.js +4 -4
- package/esm2015/constants/date-time-separator.js +2 -2
- package/esm2015/constants/group-class-names.js +10 -10
- package/esm2015/constants/masks.js +5 -5
- package/esm2015/constants/router-link-options.js +2 -2
- package/esm2015/pipes/field-error/field-error-content-pipe.js +4 -4
- package/esm2015/pipes/field-error/field-error-pipe.js +5 -5
- package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +2 -2
- package/esm2015/pipes/filter-by-input/filter-by-input.base.js +3 -3
- package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +2 -2
- package/esm2015/pipes/iso-to-country-code/iso-to-country-code.pipe.js +2 -2
- package/esm2015/pipes/sort-countries/sort-countries.pipe.js +2 -2
- package/esm2015/pipes/stringify/stringify.pipe.js +3 -3
- package/esm2015/pipes/stringify-content/stringify-content.pipe.js +2 -2
- package/esm2015/pipes/to-country-code/to-country-code.pipe.js +3 -3
- package/esm2015/pipes/to-year/to-year.pipe.js +2 -2
- package/esm2015/providers/month-formatter.provider.js +2 -2
- package/esm2015/providers/specific-dropdown-controllers.js +3 -3
- package/esm2015/services/dialog-form.service.js +2 -2
- package/esm2015/tokens/calendar-date-stream.js +2 -2
- package/esm2015/tokens/countries-masks.js +216 -216
- package/esm2015/tokens/date-inputs-value-transformers.js +4 -4
- package/esm2015/tokens/i18n.js +22 -22
- package/esm2015/tokens/input-date-options.js +2 -2
- package/esm2015/tokens/mobile-calendar.js +2 -2
- package/esm2015/tokens/month-formatter.js +2 -2
- package/esm2015/utils/files/format-size.js +2 -2
- package/esm2015/utils/files/get-accept-array.js +2 -2
- package/esm2015/utils/format/string-hash-to-hsl.js +3 -3
- package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +6 -6
- package/esm2015/utils/mask/create-date-mask.js +5 -5
- package/esm2015/utils/mask/create-date-range-mask.js +2 -2
- package/esm2015/utils/mask/create-time-mask.js +4 -4
- package/esm2015/utils/math/horizontal-direction-to-number.js +3 -3
- package/esm2015/utils/miscellaneous/create-default-day-range-periods.js +7 -7
- package/esm2015/utils/miscellaneous/get-precision.js +2 -2
- package/esm2015/utils/phone/get-max-allowed-phone-length.js +2 -2
- package/esm2015/utils/phone/iso-to-country-code.js +2 -2
- package/esm2015/validators/unfinished.validator.js +2 -2
- package/fesm2015/taiga-ui-kit-abstract.js +1 -1
- package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-arrow.js +2 -2
- package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-avatar.js +1 -1
- package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +3 -3
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-combo-box.js +1 -1
- package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-copy.js +4 -4
- package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-count.js +4 -4
- package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-files.js +3 -3
- package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-number.js +3 -3
- package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-password.js +2 -2
- package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +2 -2
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone.js +12 -12
- package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +2 -2
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-time.js +4 -4
- package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-items-with-more.js +1 -1
- package/fesm2015/taiga-ui-kit-components-items-with-more.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select.js +2 -2
- package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +4 -4
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-push.js +8 -8
- package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio.js +1 -1
- package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-rating.js +2 -2
- package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-routable-dialog.js +5 -5
- package/fesm2015/taiga-ui-kit-components-routable-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select.js +1 -1
- package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-slider.js +2 -2
- package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js +6 -6
- package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tag.js +2 -2
- package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-textarea.js +6 -6
- package/fesm2015/taiga-ui-kit-components-textarea.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tiles.js +2 -2
- package/fesm2015/taiga-ui-kit-components-tiles.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-toggle.js +3 -3
- package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tree.js +4 -4
- package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
- package/fesm2015/taiga-ui-kit-constants.js +18 -18
- package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-field-error.js +7 -7
- package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +4 -4
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js +1 -1
- package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-sort-countries.js +1 -1
- package/fesm2015/taiga-ui-kit-pipes-sort-countries.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify-content.js +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify.js +2 -2
- package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-to-country-code.js +2 -2
- package/fesm2015/taiga-ui-kit-pipes-to-country-code.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-to-year.js +1 -1
- package/fesm2015/taiga-ui-kit-pipes-to-year.js.map +1 -1
- package/fesm2015/taiga-ui-kit-providers.js +3 -3
- package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
- package/fesm2015/taiga-ui-kit-services.js +1 -1
- package/fesm2015/taiga-ui-kit-services.js.map +1 -1
- package/fesm2015/taiga-ui-kit-tokens.js +243 -243
- package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-files.js +2 -2
- package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-format.js +2 -2
- package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-mask.js +13 -13
- package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-math.js +2 -2
- package/fesm2015/taiga-ui-kit-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +7 -7
- package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-phone.js +2 -2
- package/fesm2015/taiga-ui-kit-utils-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-validators.js +1 -1
- package/fesm2015/taiga-ui-kit-validators.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,773 +1,627 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/providers'), require('@taiga-ui/kit/tokens'), require('@taiga-ui/kit/components/calendar-month'), require('@angular/common'), require('rxjs'), require('rxjs/operators')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-month-range', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/providers', '@taiga-ui/kit/tokens', '@taiga-ui/kit/components/calendar-month', '@angular/common', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].kit = global["taiga-ui"].kit || {}, global["taiga-ui"].kit.components = global["taiga-ui"].kit.components || {}, global["taiga-ui"].kit.components["input-month-range"] = {}), global.ng.core, global.ng.forms, global.i3, global.i1, global["taiga-ui"].kit.providers, global["taiga-ui"].kit.tokens, global["taiga-ui"].kit.components["calendar-month"], global.ng.common, global.rxjs, global.rxjs.operators));
|
|
5
5
|
})(this, (function (exports, i0, i5, i3, i1, providers, tokens, i2, i4, i2$1, operators) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
18
20
|
}
|
|
19
|
-
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
20
23
|
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
27
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
28
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
29
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
30
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
31
|
+
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
/*! *****************************************************************************
|
|
34
|
+
Copyright (c) Microsoft Corporation.
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
37
|
+
purpose with or without fee is hereby granted.
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
function reject(value) { resume("throw", value); }
|
|
351
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
352
|
-
resume(q[0][0], q[0][1]); }
|
|
353
|
-
}
|
|
354
|
-
function __asyncDelegator(o) {
|
|
355
|
-
var i, p;
|
|
356
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
357
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
358
|
-
}
|
|
359
|
-
function __asyncValues(o) {
|
|
360
|
-
if (!Symbol.asyncIterator)
|
|
361
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
362
|
-
var m = o[Symbol.asyncIterator], i;
|
|
363
|
-
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);
|
|
364
|
-
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); }); }; }
|
|
365
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
366
|
-
}
|
|
367
|
-
function __makeTemplateObject(cooked, raw) {
|
|
368
|
-
if (Object.defineProperty) {
|
|
369
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
370
|
-
}
|
|
371
|
-
else {
|
|
372
|
-
cooked.raw = raw;
|
|
373
|
-
}
|
|
374
|
-
return cooked;
|
|
375
|
-
}
|
|
376
|
-
;
|
|
377
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
378
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
379
|
-
}) : function (o, v) {
|
|
380
|
-
o["default"] = v;
|
|
381
|
-
};
|
|
382
|
-
function __importStar(mod) {
|
|
383
|
-
if (mod && mod.__esModule)
|
|
384
|
-
return mod;
|
|
385
|
-
var result = {};
|
|
386
|
-
if (mod != null)
|
|
387
|
-
for (var k in mod)
|
|
388
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
389
|
-
__createBinding(result, mod, k);
|
|
390
|
-
__setModuleDefault(result, mod);
|
|
391
|
-
return result;
|
|
392
|
-
}
|
|
393
|
-
function __importDefault(mod) {
|
|
394
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
395
|
-
}
|
|
396
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
397
|
-
if (kind === "a" && !f)
|
|
398
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
399
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
400
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
401
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
402
|
-
}
|
|
403
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
404
|
-
if (kind === "m")
|
|
405
|
-
throw new TypeError("Private method is not writable");
|
|
406
|
-
if (kind === "a" && !f)
|
|
407
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
408
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
409
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
410
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
411
|
-
}
|
|
412
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
413
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
414
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
415
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
416
|
-
}
|
|
417
|
-
function __addDisposableResource(env, value, async) {
|
|
418
|
-
if (value !== null && value !== void 0) {
|
|
419
|
-
if (typeof value !== "object" && typeof value !== "function")
|
|
420
|
-
throw new TypeError("Object expected.");
|
|
421
|
-
var dispose;
|
|
422
|
-
if (async) {
|
|
423
|
-
if (!Symbol.asyncDispose)
|
|
424
|
-
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
425
|
-
dispose = value[Symbol.asyncDispose];
|
|
426
|
-
}
|
|
427
|
-
if (dispose === void 0) {
|
|
428
|
-
if (!Symbol.dispose)
|
|
429
|
-
throw new TypeError("Symbol.dispose is not defined.");
|
|
430
|
-
dispose = value[Symbol.dispose];
|
|
431
|
-
}
|
|
432
|
-
if (typeof dispose !== "function")
|
|
433
|
-
throw new TypeError("Object not disposable.");
|
|
434
|
-
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
435
|
-
}
|
|
436
|
-
else if (async) {
|
|
437
|
-
env.stack.push({ async: true });
|
|
438
|
-
}
|
|
439
|
-
return value;
|
|
440
|
-
}
|
|
441
|
-
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
442
|
-
var e = new Error(message);
|
|
443
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
444
|
-
};
|
|
445
|
-
function __disposeResources(env) {
|
|
446
|
-
function fail(e) {
|
|
447
|
-
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
448
|
-
env.hasError = true;
|
|
449
|
-
}
|
|
450
|
-
function next() {
|
|
451
|
-
while (env.stack.length) {
|
|
452
|
-
var rec = env.stack.pop();
|
|
453
|
-
try {
|
|
454
|
-
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
455
|
-
if (rec.async)
|
|
456
|
-
return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
|
|
457
|
-
}
|
|
458
|
-
catch (e) {
|
|
459
|
-
fail(e);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
if (env.hasError)
|
|
463
|
-
throw env.error;
|
|
464
|
-
}
|
|
465
|
-
return next();
|
|
466
|
-
}
|
|
467
|
-
var tslib_es6 = {
|
|
468
|
-
__extends: __extends,
|
|
469
|
-
__assign: __assign,
|
|
470
|
-
__rest: __rest,
|
|
471
|
-
__decorate: __decorate,
|
|
472
|
-
__param: __param,
|
|
473
|
-
__metadata: __metadata,
|
|
474
|
-
__awaiter: __awaiter,
|
|
475
|
-
__generator: __generator,
|
|
476
|
-
__createBinding: __createBinding,
|
|
477
|
-
__exportStar: __exportStar,
|
|
478
|
-
__values: __values,
|
|
479
|
-
__read: __read,
|
|
480
|
-
__spread: __spread,
|
|
481
|
-
__spreadArrays: __spreadArrays,
|
|
482
|
-
__spreadArray: __spreadArray,
|
|
483
|
-
__await: __await,
|
|
484
|
-
__asyncGenerator: __asyncGenerator,
|
|
485
|
-
__asyncDelegator: __asyncDelegator,
|
|
486
|
-
__asyncValues: __asyncValues,
|
|
487
|
-
__makeTemplateObject: __makeTemplateObject,
|
|
488
|
-
__importStar: __importStar,
|
|
489
|
-
__importDefault: __importDefault,
|
|
490
|
-
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
491
|
-
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
492
|
-
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
493
|
-
__addDisposableResource: __addDisposableResource,
|
|
494
|
-
__disposeResources: __disposeResources,
|
|
495
|
-
};
|
|
39
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
40
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
41
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
42
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
43
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
44
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
45
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
46
|
+
***************************************************************************** */
|
|
47
|
+
/* global Reflect, Promise */
|
|
48
|
+
var extendStatics = function (d, b) {
|
|
49
|
+
extendStatics = Object.setPrototypeOf ||
|
|
50
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
51
|
+
function (d, b) { for (var p in b)
|
|
52
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
53
|
+
d[p] = b[p]; };
|
|
54
|
+
return extendStatics(d, b);
|
|
55
|
+
};
|
|
56
|
+
function __extends(d, b) {
|
|
57
|
+
if (typeof b !== "function" && b !== null)
|
|
58
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
59
|
+
extendStatics(d, b);
|
|
60
|
+
function __() { this.constructor = d; }
|
|
61
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
62
|
+
}
|
|
63
|
+
var __assign = function () {
|
|
64
|
+
__assign = Object.assign || function __assign(t) {
|
|
65
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
66
|
+
s = arguments[i];
|
|
67
|
+
for (var p in s)
|
|
68
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
69
|
+
t[p] = s[p];
|
|
70
|
+
}
|
|
71
|
+
return t;
|
|
72
|
+
};
|
|
73
|
+
return __assign.apply(this, arguments);
|
|
74
|
+
};
|
|
75
|
+
function __rest(s, e) {
|
|
76
|
+
var t = {};
|
|
77
|
+
for (var p in s)
|
|
78
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
79
|
+
t[p] = s[p];
|
|
80
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
81
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
82
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
83
|
+
t[p[i]] = s[p[i]];
|
|
84
|
+
}
|
|
85
|
+
return t;
|
|
86
|
+
}
|
|
87
|
+
function __decorate(decorators, target, key, desc) {
|
|
88
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
89
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
90
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
91
|
+
else
|
|
92
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
93
|
+
if (d = decorators[i])
|
|
94
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
95
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
96
|
+
}
|
|
97
|
+
function __param(paramIndex, decorator) {
|
|
98
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
99
|
+
}
|
|
100
|
+
function __metadata(metadataKey, metadataValue) {
|
|
101
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
102
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
103
|
+
}
|
|
104
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
105
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
106
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
107
|
+
function fulfilled(value) { try {
|
|
108
|
+
step(generator.next(value));
|
|
109
|
+
}
|
|
110
|
+
catch (e) {
|
|
111
|
+
reject(e);
|
|
112
|
+
} }
|
|
113
|
+
function rejected(value) { try {
|
|
114
|
+
step(generator["throw"](value));
|
|
115
|
+
}
|
|
116
|
+
catch (e) {
|
|
117
|
+
reject(e);
|
|
118
|
+
} }
|
|
119
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
120
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function __generator(thisArg, body) {
|
|
124
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
125
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
126
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
127
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
128
|
+
function step(op) {
|
|
129
|
+
if (f)
|
|
130
|
+
throw new TypeError("Generator is already executing.");
|
|
131
|
+
while (_)
|
|
132
|
+
try {
|
|
133
|
+
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)
|
|
134
|
+
return t;
|
|
135
|
+
if (y = 0, t)
|
|
136
|
+
op = [op[0] & 2, t.value];
|
|
137
|
+
switch (op[0]) {
|
|
138
|
+
case 0:
|
|
139
|
+
case 1:
|
|
140
|
+
t = op;
|
|
141
|
+
break;
|
|
142
|
+
case 4:
|
|
143
|
+
_.label++;
|
|
144
|
+
return { value: op[1], done: false };
|
|
145
|
+
case 5:
|
|
146
|
+
_.label++;
|
|
147
|
+
y = op[1];
|
|
148
|
+
op = [0];
|
|
149
|
+
continue;
|
|
150
|
+
case 7:
|
|
151
|
+
op = _.ops.pop();
|
|
152
|
+
_.trys.pop();
|
|
153
|
+
continue;
|
|
154
|
+
default:
|
|
155
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
156
|
+
_ = 0;
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
160
|
+
_.label = op[1];
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
164
|
+
_.label = t[1];
|
|
165
|
+
t = op;
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
if (t && _.label < t[2]) {
|
|
169
|
+
_.label = t[2];
|
|
170
|
+
_.ops.push(op);
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
if (t[2])
|
|
174
|
+
_.ops.pop();
|
|
175
|
+
_.trys.pop();
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
op = body.call(thisArg, _);
|
|
179
|
+
}
|
|
180
|
+
catch (e) {
|
|
181
|
+
op = [6, e];
|
|
182
|
+
y = 0;
|
|
183
|
+
}
|
|
184
|
+
finally {
|
|
185
|
+
f = t = 0;
|
|
186
|
+
}
|
|
187
|
+
if (op[0] & 5)
|
|
188
|
+
throw op[1];
|
|
189
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
193
|
+
if (k2 === undefined)
|
|
194
|
+
k2 = k;
|
|
195
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
196
|
+
}) : (function (o, m, k, k2) {
|
|
197
|
+
if (k2 === undefined)
|
|
198
|
+
k2 = k;
|
|
199
|
+
o[k2] = m[k];
|
|
200
|
+
});
|
|
201
|
+
function __exportStar(m, o) {
|
|
202
|
+
for (var p in m)
|
|
203
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
204
|
+
__createBinding(o, m, p);
|
|
205
|
+
}
|
|
206
|
+
function __values(o) {
|
|
207
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
208
|
+
if (m)
|
|
209
|
+
return m.call(o);
|
|
210
|
+
if (o && typeof o.length === "number")
|
|
211
|
+
return {
|
|
212
|
+
next: function () {
|
|
213
|
+
if (o && i >= o.length)
|
|
214
|
+
o = void 0;
|
|
215
|
+
return { value: o && o[i++], done: !o };
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
219
|
+
}
|
|
220
|
+
function __read(o, n) {
|
|
221
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
222
|
+
if (!m)
|
|
223
|
+
return o;
|
|
224
|
+
var i = m.call(o), r, ar = [], e;
|
|
225
|
+
try {
|
|
226
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
227
|
+
ar.push(r.value);
|
|
228
|
+
}
|
|
229
|
+
catch (error) {
|
|
230
|
+
e = { error: error };
|
|
231
|
+
}
|
|
232
|
+
finally {
|
|
233
|
+
try {
|
|
234
|
+
if (r && !r.done && (m = i["return"]))
|
|
235
|
+
m.call(i);
|
|
236
|
+
}
|
|
237
|
+
finally {
|
|
238
|
+
if (e)
|
|
239
|
+
throw e.error;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return ar;
|
|
243
|
+
}
|
|
244
|
+
/** @deprecated */
|
|
245
|
+
function __spread() {
|
|
246
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
247
|
+
ar = ar.concat(__read(arguments[i]));
|
|
248
|
+
return ar;
|
|
249
|
+
}
|
|
250
|
+
/** @deprecated */
|
|
251
|
+
function __spreadArrays() {
|
|
252
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
253
|
+
s += arguments[i].length;
|
|
254
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
255
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
256
|
+
r[k] = a[j];
|
|
257
|
+
return r;
|
|
258
|
+
}
|
|
259
|
+
function __spreadArray(to, from, pack) {
|
|
260
|
+
if (pack || arguments.length === 2)
|
|
261
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
262
|
+
if (ar || !(i in from)) {
|
|
263
|
+
if (!ar)
|
|
264
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
265
|
+
ar[i] = from[i];
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return to.concat(ar || from);
|
|
269
|
+
}
|
|
270
|
+
function __await(v) {
|
|
271
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
272
|
+
}
|
|
273
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
274
|
+
if (!Symbol.asyncIterator)
|
|
275
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
276
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
277
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
278
|
+
function verb(n) { if (g[n])
|
|
279
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
280
|
+
function resume(n, v) { try {
|
|
281
|
+
step(g[n](v));
|
|
282
|
+
}
|
|
283
|
+
catch (e) {
|
|
284
|
+
settle(q[0][3], e);
|
|
285
|
+
} }
|
|
286
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
287
|
+
function fulfill(value) { resume("next", value); }
|
|
288
|
+
function reject(value) { resume("throw", value); }
|
|
289
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
290
|
+
resume(q[0][0], q[0][1]); }
|
|
291
|
+
}
|
|
292
|
+
function __asyncDelegator(o) {
|
|
293
|
+
var i, p;
|
|
294
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
295
|
+
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; }
|
|
296
|
+
}
|
|
297
|
+
function __asyncValues(o) {
|
|
298
|
+
if (!Symbol.asyncIterator)
|
|
299
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
300
|
+
var m = o[Symbol.asyncIterator], i;
|
|
301
|
+
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);
|
|
302
|
+
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); }); }; }
|
|
303
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
304
|
+
}
|
|
305
|
+
function __makeTemplateObject(cooked, raw) {
|
|
306
|
+
if (Object.defineProperty) {
|
|
307
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
cooked.raw = raw;
|
|
311
|
+
}
|
|
312
|
+
return cooked;
|
|
313
|
+
}
|
|
314
|
+
;
|
|
315
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
316
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
317
|
+
}) : function (o, v) {
|
|
318
|
+
o["default"] = v;
|
|
319
|
+
};
|
|
320
|
+
function __importStar(mod) {
|
|
321
|
+
if (mod && mod.__esModule)
|
|
322
|
+
return mod;
|
|
323
|
+
var result = {};
|
|
324
|
+
if (mod != null)
|
|
325
|
+
for (var k in mod)
|
|
326
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
327
|
+
__createBinding(result, mod, k);
|
|
328
|
+
__setModuleDefault(result, mod);
|
|
329
|
+
return result;
|
|
330
|
+
}
|
|
331
|
+
function __importDefault(mod) {
|
|
332
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
333
|
+
}
|
|
334
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
335
|
+
if (kind === "a" && !f)
|
|
336
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
337
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
338
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
339
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
340
|
+
}
|
|
341
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
342
|
+
if (kind === "m")
|
|
343
|
+
throw new TypeError("Private method is not writable");
|
|
344
|
+
if (kind === "a" && !f)
|
|
345
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
346
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
347
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
348
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
349
|
+
}
|
|
496
350
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
351
|
+
var TuiInputMonthRangeComponent = /** @class */ (function (_super) {
|
|
352
|
+
__extends(TuiInputMonthRangeComponent, _super);
|
|
353
|
+
function TuiInputMonthRangeComponent(control, cdr, formatter, options, textfieldSize) {
|
|
354
|
+
var _this = _super.call(this, control, cdr) || this;
|
|
355
|
+
_this.formatter = formatter;
|
|
356
|
+
_this.options = options;
|
|
357
|
+
_this.textfieldSize = textfieldSize;
|
|
358
|
+
_this.min = _this.options.min;
|
|
359
|
+
_this.max = _this.options.max;
|
|
360
|
+
_this.disabledItemHandler = i3.ALWAYS_FALSE_HANDLER;
|
|
361
|
+
_this.defaultActiveYear = i3.TuiDay.currentLocal();
|
|
362
|
+
_this.open = false;
|
|
363
|
+
return _this;
|
|
364
|
+
}
|
|
365
|
+
Object.defineProperty(TuiInputMonthRangeComponent.prototype, "size", {
|
|
366
|
+
get: function () {
|
|
367
|
+
return this.textfieldSize.size;
|
|
368
|
+
},
|
|
369
|
+
enumerable: false,
|
|
370
|
+
configurable: true
|
|
371
|
+
});
|
|
372
|
+
Object.defineProperty(TuiInputMonthRangeComponent.prototype, "nativeFocusableElement", {
|
|
373
|
+
get: function () {
|
|
374
|
+
var _a, _b;
|
|
375
|
+
return (_b = (_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
|
|
376
|
+
},
|
|
377
|
+
enumerable: false,
|
|
378
|
+
configurable: true
|
|
379
|
+
});
|
|
380
|
+
Object.defineProperty(TuiInputMonthRangeComponent.prototype, "computedDefaultActiveYear", {
|
|
381
|
+
get: function () {
|
|
382
|
+
var _a;
|
|
383
|
+
return (((_a = this.value) === null || _a === void 0 ? void 0 : _a.from) || i3.tuiDateClamp(this.defaultActiveYear, this.min, this.max));
|
|
384
|
+
},
|
|
385
|
+
enumerable: false,
|
|
386
|
+
configurable: true
|
|
387
|
+
});
|
|
388
|
+
Object.defineProperty(TuiInputMonthRangeComponent.prototype, "focused", {
|
|
389
|
+
get: function () {
|
|
390
|
+
var _a;
|
|
391
|
+
return !!((_a = this.textfield) === null || _a === void 0 ? void 0 : _a.focused);
|
|
392
|
+
},
|
|
393
|
+
enumerable: false,
|
|
394
|
+
configurable: true
|
|
395
|
+
});
|
|
396
|
+
Object.defineProperty(TuiInputMonthRangeComponent.prototype, "calendarIcon", {
|
|
397
|
+
get: function () {
|
|
398
|
+
return this.options.icon;
|
|
399
|
+
},
|
|
400
|
+
enumerable: false,
|
|
401
|
+
configurable: true
|
|
402
|
+
});
|
|
403
|
+
TuiInputMonthRangeComponent.prototype.computeValue = function (from, to) {
|
|
404
|
+
var formattedTo = from === to && this.focused && !this.readOnly ? '' : to;
|
|
405
|
+
return from + " " + i3.CHAR_EN_DASH + " " + formattedTo;
|
|
406
|
+
};
|
|
407
|
+
TuiInputMonthRangeComponent.prototype.onValueChange = function (value) {
|
|
408
|
+
if (value) {
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
this.value = null;
|
|
412
|
+
this.onOpenChange(true);
|
|
413
|
+
};
|
|
414
|
+
TuiInputMonthRangeComponent.prototype.onMonthClick = function (month) {
|
|
415
|
+
if (this.value === null || !this.value.isSingleMonth) {
|
|
416
|
+
this.writeValue(new i3.TuiMonthRange(month, month));
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
this.value = i3.TuiMonthRange.sort(this.value.from, month);
|
|
420
|
+
this.close();
|
|
421
|
+
};
|
|
422
|
+
TuiInputMonthRangeComponent.prototype.onOpenChange = function (open) {
|
|
423
|
+
this.open = open;
|
|
424
|
+
};
|
|
425
|
+
TuiInputMonthRangeComponent.prototype.onActiveZone = function (focused) {
|
|
426
|
+
var _a;
|
|
427
|
+
this.updateFocused(focused);
|
|
428
|
+
if (focused) {
|
|
429
|
+
return;
|
|
430
|
+
}
|
|
431
|
+
if ((_a = this.value) === null || _a === void 0 ? void 0 : _a.isSingleMonth) {
|
|
432
|
+
this.value = new i3.TuiMonthRange(this.value.from, this.value.from);
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
TuiInputMonthRangeComponent.prototype.setDisabledState = function () {
|
|
436
|
+
_super.prototype.setDisabledState.call(this);
|
|
437
|
+
this.close();
|
|
438
|
+
};
|
|
439
|
+
TuiInputMonthRangeComponent.prototype.close = function () {
|
|
440
|
+
this.open = false;
|
|
441
|
+
};
|
|
442
|
+
return TuiInputMonthRangeComponent;
|
|
443
|
+
}(i3.AbstractTuiNullableControl));
|
|
444
|
+
TuiInputMonthRangeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputMonthRangeComponent, deps: [{ token: i5.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: tokens.TUI_MONTH_FORMATTER }, { token: tokens.TUI_INPUT_DATE_OPTIONS }, { token: i1.TUI_TEXTFIELD_SIZE }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
445
|
+
TuiInputMonthRangeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputMonthRangeComponent, selector: "tui-input-month-range", inputs: { min: "min", max: "max", disabledItemHandler: "disabledItemHandler", defaultActiveYear: "defaultActiveYear" }, host: { properties: { "attr.data-size": "this.size" } }, providers: [
|
|
446
|
+
i3.tuiAsFocusableItemAccessor(TuiInputMonthRangeComponent),
|
|
447
|
+
i3.tuiAsControl(TuiInputMonthRangeComponent),
|
|
448
|
+
providers.TUI_MONTH_FORMATTER_PROVIDER,
|
|
449
|
+
i1.TuiMonthPipe,
|
|
450
|
+
], viewQueries: [{ propertyName: "textfield", first: true, predicate: i1.TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"interactive\"\n [content]=\"dropdown\"\n [open]=\"open && interactive\"\n (openChange)=\"onOpenChange($event)\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [editable]=\"false\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"calendarIcon\"\n [value]=\"\n value\n ? computeValue(value.from | tuiMapper: formatter | async, value.to | tuiMapper: formatter | async)\n : ''\n \"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n </tui-primitive-textfield>\n\n <ng-template #dropdown>\n <tui-calendar-month\n tuiPreventDefault=\"mousedown\"\n [disabledItemHandler]=\"disabledItemHandler\"\n [max]=\"max\"\n [min]=\"min\"\n [value]=\"value\"\n [year]=\"computedDefaultActiveYear\"\n (monthClick)=\"onMonthClick($event)\"\n ></tui-calendar-month>\n </ng-template>\n</tui-hosted-dropdown>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}\n"], components: [{ type: i1__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i1__namespace.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i2__namespace.TuiCalendarMonthComponent, selector: "tui-calendar-month", inputs: ["value", "year", "disabledItemHandler", "min", "max"], outputs: ["monthClick", "hoveredItemChange", "yearChange"] }], directives: [{ type: i3__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i1__namespace.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i1__namespace.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i3__namespace.TuiPreventDefaultDirective, selector: "[tuiPreventDefault]", inputs: ["tuiPreventDefault"] }], pipes: { "async": i4__namespace.AsyncPipe, "tuiMapper": i3__namespace.TuiMapperPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
451
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputMonthRangeComponent, decorators: [{
|
|
452
|
+
type: i0.Component,
|
|
453
|
+
args: [{
|
|
454
|
+
selector: 'tui-input-month-range',
|
|
455
|
+
templateUrl: './input-month-range.template.html',
|
|
456
|
+
styleUrls: ['./input-month-range.style.less'],
|
|
457
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
458
|
+
providers: [
|
|
459
|
+
i3.tuiAsFocusableItemAccessor(TuiInputMonthRangeComponent),
|
|
460
|
+
i3.tuiAsControl(TuiInputMonthRangeComponent),
|
|
461
|
+
providers.TUI_MONTH_FORMATTER_PROVIDER,
|
|
462
|
+
i1.TuiMonthPipe,
|
|
463
|
+
],
|
|
464
|
+
}]
|
|
465
|
+
}], ctorParameters: function () {
|
|
466
|
+
return [{ type: i5__namespace.NgControl, decorators: [{
|
|
467
|
+
type: i0.Optional
|
|
468
|
+
}, {
|
|
469
|
+
type: i0.Self
|
|
470
|
+
}, {
|
|
471
|
+
type: i0.Inject,
|
|
472
|
+
args: [i5.NgControl]
|
|
473
|
+
}] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
|
|
474
|
+
type: i0.Inject,
|
|
475
|
+
args: [i0.ChangeDetectorRef]
|
|
476
|
+
}] }, { type: undefined, decorators: [{
|
|
477
|
+
type: i0.Inject,
|
|
478
|
+
args: [tokens.TUI_MONTH_FORMATTER]
|
|
479
|
+
}] }, { type: undefined, decorators: [{
|
|
480
|
+
type: i0.Inject,
|
|
481
|
+
args: [tokens.TUI_INPUT_DATE_OPTIONS]
|
|
482
|
+
}] }, { type: i1__namespace.TuiTextfieldSizeDirective, decorators: [{
|
|
483
|
+
type: i0.Inject,
|
|
484
|
+
args: [i1.TUI_TEXTFIELD_SIZE]
|
|
485
|
+
}] }];
|
|
486
|
+
}, propDecorators: { textfield: [{
|
|
487
|
+
type: i0.ViewChild,
|
|
488
|
+
args: [i1.TuiPrimitiveTextfieldComponent]
|
|
489
|
+
}], min: [{
|
|
490
|
+
type: i0.Input
|
|
491
|
+
}], max: [{
|
|
492
|
+
type: i0.Input
|
|
493
|
+
}], disabledItemHandler: [{
|
|
494
|
+
type: i0.Input
|
|
495
|
+
}], defaultActiveYear: [{
|
|
496
|
+
type: i0.Input
|
|
497
|
+
}], size: [{
|
|
498
|
+
type: i0.HostBinding,
|
|
499
|
+
args: ['attr.data-size']
|
|
500
|
+
}] } });
|
|
647
501
|
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
502
|
+
var TuiInputMonthRangeDirective = /** @class */ (function (_super) {
|
|
503
|
+
__extends(TuiInputMonthRangeDirective, _super);
|
|
504
|
+
function TuiInputMonthRangeDirective(host, formatter, destroy$) {
|
|
505
|
+
var _this = _super.call(this, host) || this;
|
|
506
|
+
_this.value$ = new i2$1.Subject();
|
|
507
|
+
_this.localizedValue = ['', ''];
|
|
508
|
+
_this.value$
|
|
509
|
+
.pipe(operators.distinctUntilChanged(), operators.switchMap(function (value) { return i2$1.combineLatest([
|
|
510
|
+
formatter((value === null || value === void 0 ? void 0 : value.from) || null),
|
|
511
|
+
formatter((value === null || value === void 0 ? void 0 : value.to) || null),
|
|
512
|
+
]); }), operators.takeUntil(destroy$))
|
|
513
|
+
.subscribe(function (localizedValue) {
|
|
514
|
+
_this.localizedValue = localizedValue;
|
|
515
|
+
});
|
|
516
|
+
return _this;
|
|
517
|
+
}
|
|
518
|
+
Object.defineProperty(TuiInputMonthRangeDirective.prototype, "readOnly", {
|
|
519
|
+
get: function () {
|
|
520
|
+
return true;
|
|
521
|
+
},
|
|
522
|
+
enumerable: false,
|
|
523
|
+
configurable: true
|
|
524
|
+
});
|
|
525
|
+
Object.defineProperty(TuiInputMonthRangeDirective.prototype, "value", {
|
|
526
|
+
get: function () {
|
|
527
|
+
var _a;
|
|
528
|
+
return this.localizedValue[0]
|
|
529
|
+
? (_a = this.host).computeValue.apply(_a, __spreadArray([], __read(this.localizedValue))) : '';
|
|
530
|
+
},
|
|
531
|
+
enumerable: false,
|
|
532
|
+
configurable: true
|
|
533
|
+
});
|
|
534
|
+
TuiInputMonthRangeDirective.prototype.ngDoCheck = function () {
|
|
535
|
+
this.value$.next(this.host.value);
|
|
536
|
+
};
|
|
537
|
+
TuiInputMonthRangeDirective.prototype.onValueChange = function (value) {
|
|
538
|
+
this.host.onValueChange(value);
|
|
539
|
+
};
|
|
540
|
+
return TuiInputMonthRangeDirective;
|
|
541
|
+
}(i1.AbstractTuiTextfieldHost));
|
|
542
|
+
TuiInputMonthRangeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputMonthRangeDirective, deps: [{ token: i3.AbstractTuiControl }, { token: tokens.TUI_MONTH_FORMATTER }, { token: i3.TuiDestroyService, self: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
543
|
+
TuiInputMonthRangeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputMonthRangeDirective, selector: "tui-input-month-range", providers: [i1.tuiAsTextfieldHost(TuiInputMonthRangeDirective), i3.TuiDestroyService], usesInheritance: true, ngImport: i0__namespace });
|
|
544
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputMonthRangeDirective, decorators: [{
|
|
545
|
+
type: i0.Directive,
|
|
546
|
+
args: [{
|
|
547
|
+
selector: 'tui-input-month-range',
|
|
548
|
+
providers: [i1.tuiAsTextfieldHost(TuiInputMonthRangeDirective), i3.TuiDestroyService],
|
|
549
|
+
}]
|
|
550
|
+
}], ctorParameters: function () {
|
|
551
|
+
return [{ type: TuiInputMonthRangeComponent, decorators: [{
|
|
552
|
+
type: i0.Inject,
|
|
553
|
+
args: [i3.AbstractTuiControl]
|
|
554
|
+
}] }, { type: undefined, decorators: [{
|
|
555
|
+
type: i0.Inject,
|
|
556
|
+
args: [tokens.TUI_MONTH_FORMATTER]
|
|
557
|
+
}] }, { type: i2__namespace$1.Observable, decorators: [{
|
|
558
|
+
type: i0.Self
|
|
559
|
+
}, {
|
|
560
|
+
type: i0.Inject,
|
|
561
|
+
args: [i3.TuiDestroyService]
|
|
562
|
+
}] }];
|
|
563
|
+
} });
|
|
710
564
|
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
565
|
+
var TuiInputMonthRangeModule = /** @class */ (function () {
|
|
566
|
+
function TuiInputMonthRangeModule() {
|
|
567
|
+
}
|
|
568
|
+
return TuiInputMonthRangeModule;
|
|
569
|
+
}());
|
|
570
|
+
TuiInputMonthRangeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputMonthRangeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
571
|
+
TuiInputMonthRangeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputMonthRangeModule, declarations: [TuiInputMonthRangeComponent, TuiInputMonthRangeDirective], imports: [i4.CommonModule,
|
|
572
|
+
i2.TuiCalendarMonthModule,
|
|
573
|
+
i1.TuiHostedDropdownModule,
|
|
574
|
+
i1.TuiPrimitiveTextfieldModule,
|
|
575
|
+
i1.TuiSvgModule,
|
|
576
|
+
i3.TuiPreventDefaultModule,
|
|
577
|
+
i3.TuiActiveZoneModule,
|
|
578
|
+
i3.TuiMapperPipeModule,
|
|
579
|
+
i1.TuiTextfieldControllerModule], exports: [TuiInputMonthRangeComponent,
|
|
580
|
+
TuiInputMonthRangeDirective,
|
|
581
|
+
i1.TuiTextfieldComponent] });
|
|
582
|
+
TuiInputMonthRangeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputMonthRangeModule, imports: [[
|
|
583
|
+
i4.CommonModule,
|
|
584
|
+
i2.TuiCalendarMonthModule,
|
|
585
|
+
i1.TuiHostedDropdownModule,
|
|
586
|
+
i1.TuiPrimitiveTextfieldModule,
|
|
587
|
+
i1.TuiSvgModule,
|
|
588
|
+
i3.TuiPreventDefaultModule,
|
|
589
|
+
i3.TuiActiveZoneModule,
|
|
590
|
+
i3.TuiMapperPipeModule,
|
|
591
|
+
i1.TuiTextfieldControllerModule,
|
|
592
|
+
]] });
|
|
593
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputMonthRangeModule, decorators: [{
|
|
594
|
+
type: i0.NgModule,
|
|
595
|
+
args: [{
|
|
596
|
+
imports: [
|
|
597
|
+
i4.CommonModule,
|
|
598
|
+
i2.TuiCalendarMonthModule,
|
|
599
|
+
i1.TuiHostedDropdownModule,
|
|
600
|
+
i1.TuiPrimitiveTextfieldModule,
|
|
601
|
+
i1.TuiSvgModule,
|
|
602
|
+
i3.TuiPreventDefaultModule,
|
|
603
|
+
i3.TuiActiveZoneModule,
|
|
604
|
+
i3.TuiMapperPipeModule,
|
|
605
|
+
i1.TuiTextfieldControllerModule,
|
|
606
|
+
],
|
|
607
|
+
declarations: [TuiInputMonthRangeComponent, TuiInputMonthRangeDirective],
|
|
608
|
+
exports: [
|
|
609
|
+
TuiInputMonthRangeComponent,
|
|
610
|
+
TuiInputMonthRangeDirective,
|
|
611
|
+
i1.TuiTextfieldComponent,
|
|
612
|
+
],
|
|
613
|
+
}]
|
|
614
|
+
}] });
|
|
761
615
|
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
616
|
+
/**
|
|
617
|
+
* Generated bundle index. Do not edit.
|
|
618
|
+
*/
|
|
765
619
|
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
620
|
+
exports.TuiInputMonthRangeComponent = TuiInputMonthRangeComponent;
|
|
621
|
+
exports.TuiInputMonthRangeDirective = TuiInputMonthRangeDirective;
|
|
622
|
+
exports.TuiInputMonthRangeModule = TuiInputMonthRangeModule;
|
|
769
623
|
|
|
770
|
-
|
|
624
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
771
625
|
|
|
772
626
|
}));
|
|
773
627
|
//# sourceMappingURL=taiga-ui-kit-components-input-month-range.umd.js.map
|