@taiga-ui/kit 3.28.0 → 3.29.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.
Files changed (90) hide show
  1. package/abstract/abstract-native-select.d.ts +7 -7
  2. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +90 -85
  4. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-components-input-date.umd.js +31 -1
  6. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-input-files.umd.js +1 -1
  8. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-input-slider.umd.js +1 -1
  10. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-input-tag.umd.js +1 -1
  12. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-range.umd.js +1 -1
  14. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-select.umd.js +64 -24
  16. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-slider.umd.js +2 -1
  18. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-text-area.umd.js +1 -1
  20. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  21. package/bundles/taiga-ui-kit-constants.umd.js +8 -0
  22. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  23. package/bundles/taiga-ui-kit-directives-mask.umd.js +1 -1
  24. package/bundles/taiga-ui-kit-directives-mask.umd.js.map +1 -1
  25. package/bundles/taiga-ui-kit-utils-mask.umd.js +9 -0
  26. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  27. package/components/input-date/input-date.directive.d.ts +3 -0
  28. package/components/input-date/native-date/native-date.component.d.ts +5 -3
  29. package/components/input-date-time/input-date-time.component.d.ts +5 -2
  30. package/components/input-date-time/input-date-time.module.d.ts +3 -2
  31. package/components/select/native-select/native-select-group.component.d.ts +9 -4
  32. package/components/select/native-select/native-select.component.d.ts +9 -4
  33. package/components/select/select.directive.d.ts +3 -1
  34. package/components/select/select.module.d.ts +2 -1
  35. package/constants/empty-mask.d.ts +4 -0
  36. package/constants/masks.d.ts +4 -0
  37. package/esm2015/abstract/abstract-native-select.js +1 -1
  38. package/esm2015/components/input-date/input-date.directive.js +7 -1
  39. package/esm2015/components/input-date/native-date/native-date.component.js +10 -2
  40. package/esm2015/components/input-date-time/input-date-time.component.js +46 -43
  41. package/esm2015/components/input-date-time/input-date-time.module.js +6 -5
  42. package/esm2015/components/input-files/input-files.component.js +2 -2
  43. package/esm2015/components/input-slider/input-slider.component.js +2 -2
  44. package/esm2015/components/input-tag/input-tag.component.js +2 -2
  45. package/esm2015/components/range/range.component.js +2 -2
  46. package/esm2015/components/select/native-select/native-select-group.component.js +16 -4
  47. package/esm2015/components/select/native-select/native-select.component.js +15 -4
  48. package/esm2015/components/select/select.directive.js +4 -1
  49. package/esm2015/components/select/select.module.js +6 -2
  50. package/esm2015/components/slider/helpers/slider-key-steps.directive.js +3 -2
  51. package/esm2015/components/text-area/text-area.component.js +1 -1
  52. package/esm2015/constants/empty-mask.js +5 -1
  53. package/esm2015/constants/masks.js +5 -1
  54. package/esm2015/directives/mask/legacy-mask.js +2 -2
  55. package/esm2015/utils/mask/create-auto-corrected-date-pipe.js +3 -1
  56. package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +5 -1
  57. package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +2 -1
  58. package/esm2015/utils/mask/create-date-mask.js +2 -1
  59. package/esm2015/utils/mask/create-time-mask.js +2 -1
  60. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  61. package/fesm2015/taiga-ui-kit-components-input-date-time.js +49 -45
  62. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  63. package/fesm2015/taiga-ui-kit-components-input-date.js +15 -1
  64. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  65. package/fesm2015/taiga-ui-kit-components-input-files.js +1 -1
  66. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  67. package/fesm2015/taiga-ui-kit-components-input-slider.js +1 -1
  68. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  69. package/fesm2015/taiga-ui-kit-components-input-tag.js +1 -1
  70. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  71. package/fesm2015/taiga-ui-kit-components-range.js +1 -1
  72. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  73. package/fesm2015/taiga-ui-kit-components-select.js +38 -9
  74. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  75. package/fesm2015/taiga-ui-kit-components-slider.js +2 -1
  76. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  77. package/fesm2015/taiga-ui-kit-components-text-area.js +1 -1
  78. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  79. package/fesm2015/taiga-ui-kit-constants.js +8 -0
  80. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  81. package/fesm2015/taiga-ui-kit-directives-mask.js +1 -1
  82. package/fesm2015/taiga-ui-kit-directives-mask.js.map +1 -1
  83. package/fesm2015/taiga-ui-kit-utils-mask.js +9 -0
  84. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  85. package/package.json +8 -8
  86. package/utils/mask/create-auto-corrected-date-pipe.d.ts +3 -0
  87. package/utils/mask/create-auto-corrected-date-time-pipe.d.ts +4 -0
  88. package/utils/mask/create-auto-corrected-time-pipe.d.ts +1 -0
  89. package/utils/mask/create-date-mask.d.ts +1 -0
  90. package/utils/mask/create-time-mask.d.ts +1 -0
@@ -3,16 +3,16 @@ import { AbstractTuiControl, TuiBooleanHandler, TuiIdService } from '@taiga-ui/c
3
3
  import { TuiTextfieldHost } from '@taiga-ui/core';
4
4
  import { TuiItemsHandlers } from '@taiga-ui/kit/tokens';
5
5
  import * as i0 from "@angular/core";
6
- export declare abstract class AbstractTuiNativeSelect<T = TuiTextfieldHost> {
7
- readonly host: T;
6
+ export declare abstract class AbstractTuiNativeSelect<H = TuiTextfieldHost, T = string> {
7
+ readonly host: H;
8
8
  readonly control: AbstractTuiControl<unknown>;
9
9
  protected readonly el: ElementRef<HTMLSelectElement>;
10
10
  private readonly idService;
11
- readonly itemsHandlers: TuiItemsHandlers<string>;
12
- disabledItemHandler: TuiBooleanHandler<string> | null;
11
+ readonly itemsHandlers: TuiItemsHandlers<T>;
12
+ disabledItemHandler: TuiBooleanHandler<T> | null;
13
13
  readonly datalist: TemplateRef<any> | null;
14
- constructor(host: T, control: AbstractTuiControl<unknown>, el: ElementRef<HTMLSelectElement>, idService: TuiIdService, itemsHandlers: TuiItemsHandlers<string>);
14
+ constructor(host: H, control: AbstractTuiControl<unknown>, el: ElementRef<HTMLSelectElement>, idService: TuiIdService, itemsHandlers: TuiItemsHandlers<T>);
15
15
  get id(): string;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractTuiNativeSelect<any>, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractTuiNativeSelect<any>, never, never, { "disabledItemHandler": "disabledItemHandler"; }, {}, never>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractTuiNativeSelect<any, any>, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractTuiNativeSelect<any, any>, never, never, { "disabledItemHandler": "disabledItemHandler"; }, {}, never>;
18
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-abstract.umd.js","sources":["../../../projects/kit/abstract/abstract-native-select.ts","../../../projects/kit/abstract/taiga-ui-kit-abstract.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {AbstractTuiControl, TuiBooleanHandler, TuiIdService} from '@taiga-ui/cdk';\nimport {TUI_TEXTFIELD_HOST, TuiDataListDirective, TuiTextfieldHost} from '@taiga-ui/core';\nimport {TUI_ITEMS_HANDLERS, TuiItemsHandlers} from '@taiga-ui/kit/tokens';\n\n@Directive()\nexport abstract class AbstractTuiNativeSelect<T = TuiTextfieldHost> {\n @Input()\n disabledItemHandler: TuiBooleanHandler<string> | null = null;\n\n @ViewChild(TuiDataListDirective, {read: TemplateRef, static: true})\n readonly datalist: TemplateRef<any> | null = null;\n\n constructor(\n @Inject(TUI_TEXTFIELD_HOST) readonly host: T,\n @Inject(AbstractTuiControl) readonly control: AbstractTuiControl<unknown>,\n @Inject(ElementRef) protected readonly el: ElementRef<HTMLSelectElement>,\n @Inject(TuiIdService)\n private readonly idService: TuiIdService,\n @Inject(TUI_ITEMS_HANDLERS)\n readonly itemsHandlers: TuiItemsHandlers<string>,\n ) {}\n\n @HostBinding(`id`)\n get id(): string {\n return this.el.nativeElement.id || this.idService.generate();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["TUI_TEXTFIELD_HOST","AbstractTuiControl","ElementRef","TuiIdService","TUI_ITEMS_HANDLERS","i0","TuiDataListDirective","TemplateRef","Directive","Inject","Input","ViewChild","HostBinding"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,QAAA,uBAAA,kBAAA,YAAA;QAOI,SACyC,uBAAA,CAAA,IAAO,EACP,OAAoC,EAClC,EAAiC,EAEvD,SAAuB,EAE/B,aAAuC,EAAA;IANX,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAG;IACP,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAA6B;IAClC,QAAA,IAAE,CAAA,EAAA,GAAF,EAAE,CAA+B;IAEvD,QAAA,IAAS,CAAA,SAAA,GAAT,SAAS,CAAc;IAE/B,QAAA,IAAa,CAAA,aAAA,GAAb,aAAa,CAA0B;IAZpD,QAAA,IAAmB,CAAA,mBAAA,GAAqC,IAAI,CAAC;IAGpD,QAAA,IAAQ,CAAA,QAAA,GAA4B,IAAI,CAAC;SAU9C;IAEJ,IAAA,MAAA,CAAA,cAAA,CACI,uBAAE,CAAA,SAAA,EAAA,IAAA,EAAA;IADN,QAAA,GAAA,EAAA,YAAA;IAEI,YAAA,OAAO,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;aAChE;;;IAAA,KAAA,CAAA,CAAA;;;+IApBiB,uBAAuB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAQ7BA,uBAAkB,EAClB,EAAA,EAAA,KAAA,EAAAC,qBAAkB,aAClBC,aAAU,EAAA,EAAA,EAAA,KAAA,EACVC,eAAY,EAAA,EAAA,EAAA,KAAA,EAEZC,yBAAkB,EAAA,CAAA,EAAA,MAAA,EAAAC,aAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;wHAbZ,uBAAuB,EAAA,MAAA,EAAA,EAAA,mBAAA,EAAA,qBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,IAAA,EAAA,SAAA,EAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAI9BC,yBAAoB,EAAA,WAAA,EAAA,IAAA,EAAA,IAAA,EAASC,cAAW,EAAA,MAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAAF,aAAA,EAAA,CAAA,CAAA;sHAJjC,uBAAuB,EAAA,UAAA,EAAA,CAAA;sBAD5CG,YAAS;;;kCASDC,SAAM;mCAACT,uBAAkB,CAAA;;kCACzBS,SAAM;mCAACR,qBAAkB,CAAA;;kCACzBQ,SAAM;mCAACP,aAAU,CAAA;;kCACjBO,SAAM;mCAACN,eAAY,CAAA;;kCAEnBM,SAAM;mCAACL,yBAAkB,CAAA;;6BAX9B,mBAAmB,EAAA,CAAA;0BADlBM,QAAK;oBAIG,QAAQ,EAAA,CAAA;0BADhBC,YAAS;2BAACL,yBAAoB,EAAE,EAAC,IAAI,EAAEC,cAAW,EAAE,MAAM,EAAE,IAAI,EAAC,CAAA;oBAc9D,EAAE,EAAA,CAAA;0BADLK,cAAW;2BAAC,IAAI,CAAA;;;IC/BrB;;IAEG;;;;;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-abstract.umd.js","sources":["../../../projects/kit/abstract/abstract-native-select.ts","../../../projects/kit/abstract/taiga-ui-kit-abstract.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {AbstractTuiControl, TuiBooleanHandler, TuiIdService} from '@taiga-ui/cdk';\nimport {TUI_TEXTFIELD_HOST, TuiDataListDirective, TuiTextfieldHost} from '@taiga-ui/core';\nimport {TUI_ITEMS_HANDLERS, TuiItemsHandlers} from '@taiga-ui/kit/tokens';\n\n@Directive()\nexport abstract class AbstractTuiNativeSelect<H = TuiTextfieldHost, T = string> {\n @Input()\n disabledItemHandler: TuiBooleanHandler<T> | null = null;\n\n @ViewChild(TuiDataListDirective, {read: TemplateRef, static: true})\n readonly datalist: TemplateRef<any> | null = null;\n\n constructor(\n @Inject(TUI_TEXTFIELD_HOST) readonly host: H,\n @Inject(AbstractTuiControl) readonly control: AbstractTuiControl<unknown>,\n @Inject(ElementRef) protected readonly el: ElementRef<HTMLSelectElement>,\n @Inject(TuiIdService)\n private readonly idService: TuiIdService,\n @Inject(TUI_ITEMS_HANDLERS)\n readonly itemsHandlers: TuiItemsHandlers<T>,\n ) {}\n\n @HostBinding(`id`)\n get id(): string {\n return this.el.nativeElement.id || this.idService.generate();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["TUI_TEXTFIELD_HOST","AbstractTuiControl","ElementRef","TuiIdService","TUI_ITEMS_HANDLERS","i0","TuiDataListDirective","TemplateRef","Directive","Inject","Input","ViewChild","HostBinding"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,QAAA,uBAAA,kBAAA,YAAA;QAOI,SACyC,uBAAA,CAAA,IAAO,EACP,OAAoC,EAClC,EAAiC,EAEvD,SAAuB,EAE/B,aAAkC,EAAA;IANN,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAG;IACP,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAA6B;IAClC,QAAA,IAAE,CAAA,EAAA,GAAF,EAAE,CAA+B;IAEvD,QAAA,IAAS,CAAA,SAAA,GAAT,SAAS,CAAc;IAE/B,QAAA,IAAa,CAAA,aAAA,GAAb,aAAa,CAAqB;IAZ/C,QAAA,IAAmB,CAAA,mBAAA,GAAgC,IAAI,CAAC;IAG/C,QAAA,IAAQ,CAAA,QAAA,GAA4B,IAAI,CAAC;SAU9C;IAEJ,IAAA,MAAA,CAAA,cAAA,CACI,uBAAE,CAAA,SAAA,EAAA,IAAA,EAAA;IADN,QAAA,GAAA,EAAA,YAAA;IAEI,YAAA,OAAO,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;aAChE;;;IAAA,KAAA,CAAA,CAAA;;;+IApBiB,uBAAuB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAQ7BA,uBAAkB,EAClB,EAAA,EAAA,KAAA,EAAAC,qBAAkB,aAClBC,aAAU,EAAA,EAAA,EAAA,KAAA,EACVC,eAAY,EAAA,EAAA,EAAA,KAAA,EAEZC,yBAAkB,EAAA,CAAA,EAAA,MAAA,EAAAC,aAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;wHAbZ,uBAAuB,EAAA,MAAA,EAAA,EAAA,mBAAA,EAAA,qBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,IAAA,EAAA,SAAA,EAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAI9BC,yBAAoB,EAAA,WAAA,EAAA,IAAA,EAAA,IAAA,EAASC,cAAW,EAAA,MAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAAF,aAAA,EAAA,CAAA,CAAA;sHAJjC,uBAAuB,EAAA,UAAA,EAAA,CAAA;sBAD5CG,YAAS;;;kCASDC,SAAM;mCAACT,uBAAkB,CAAA;;kCACzBS,SAAM;mCAACR,qBAAkB,CAAA;;kCACzBQ,SAAM;mCAACP,aAAU,CAAA;;kCACjBO,SAAM;mCAACN,eAAY,CAAA;;kCAEnBM,SAAM;mCAACL,yBAAkB,CAAA;;6BAX9B,mBAAmB,EAAA,CAAA;0BADlBM,QAAK;oBAIG,QAAQ,EAAA,CAAA;0BADhBC,YAAS;2BAACL,yBAAoB,EAAE,EAAC,IAAI,EAAEC,cAAW,EAAE,MAAM,EAAE,IAAI,EAAC,CAAA;oBAc9D,EAAE,EAAA,CAAA;0BADLK,cAAW;2BAAC,IAAI,CAAA;;;IC/BrB;;IAEG;;;;;;;;;;"}
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/constants'), require('@taiga-ui/kit/tokens'), require('@taiga-ui/kit/utils/mask'), require('rxjs'), require('rxjs/operators'), require('@taiga-ui/kit/directives'), require('@tinkoff/ng-polymorpheus'), require('@angular/common')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-date-time', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/constants', '@taiga-ui/kit/tokens', '@taiga-ui/kit/utils/mask', 'rxjs', 'rxjs/operators', '@taiga-ui/kit/directives', '@tinkoff/ng-polymorpheus', '@angular/common'], 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-date-time"] = {}), global.ng.core, global.ng.forms, global.i6, global.i1, global["taiga-ui"].kit.constants, global["taiga-ui"].kit.tokens, global["taiga-ui"].kit.utils.mask, global.rxjs, global.rxjs.operators, global["taiga-ui"].kit.directives, global.i3, global.ng.common));
5
- })(this, (function (exports, i0, i7, i6, i1, constants, tokens, mask, i8, operators, i2, i3, i4) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@maskito/kit'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/constants'), require('@taiga-ui/kit/tokens'), require('rxjs'), require('rxjs/operators'), require('@taiga-ui/kit/directives'), require('@maskito/angular'), require('@tinkoff/ng-polymorpheus'), require('@angular/common')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-date-time', ['exports', '@angular/core', '@angular/forms', '@maskito/kit', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/constants', '@taiga-ui/kit/tokens', 'rxjs', 'rxjs/operators', '@taiga-ui/kit/directives', '@maskito/angular', '@tinkoff/ng-polymorpheus', '@angular/common'], 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-date-time"] = {}), global.ng.core, global.ng.forms, global.kit, global.i7, global.i1, global["taiga-ui"].kit.constants, global["taiga-ui"].kit.tokens, global.rxjs, global.rxjs.operators, global["taiga-ui"].kit.directives, global.i3, global.i4, global.ng.common));
5
+ })(this, (function (exports, i0, i8, kit, i7, i1, constants, tokens, i9, operators, i2, i3, i4, i5) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -23,13 +23,14 @@
23
23
  }
24
24
 
25
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
26
27
  var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
27
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
28
28
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
29
+ var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
30
30
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
31
31
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
32
32
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
33
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
33
34
 
34
35
  /*! *****************************************************************************
35
36
  Copyright (c) Microsoft Corporation.
@@ -370,8 +371,8 @@
370
371
  return;
371
372
  }
372
373
  var date = new Date(value);
373
- var day = i6.TuiDay.fromLocalNativeDate(date);
374
- var time = i6.TuiTime.fromLocalNativeDate(date);
374
+ var day = i7.TuiDay.fromLocalNativeDate(date);
375
+ var time = i7.TuiTime.fromLocalNativeDate(date);
375
376
  this.host.writeValue([day, time]);
376
377
  };
377
378
  return TuiNativeDateTimeDirective;
@@ -415,26 +416,26 @@
415
416
  _this.month = null;
416
417
  _this.min = _this.options.min;
417
418
  _this.max = _this.options.max;
418
- _this.disabledItemHandler = i6.ALWAYS_FALSE_HANDLER;
419
- _this.defaultActiveYearMonth = i6.TuiMonth.currentLocal();
419
+ _this.disabledItemHandler = i7.ALWAYS_FALSE_HANDLER;
420
+ _this.defaultActiveYearMonth = i7.TuiMonth.currentLocal();
420
421
  _this.timeMode = 'HH:MM';
421
422
  _this.open = false;
422
- _this.filler$ = i8.combineLatest([
423
- _this.dateTexts$.pipe(operators.map(function (dateTexts) { return i6.changeDateSeparator(dateTexts[_this.dateFormat], _this.dateSeparator); })),
423
+ _this.filler$ = i9.combineLatest([
424
+ _this.dateTexts$.pipe(operators.map(function (dateTexts) { return i7.changeDateSeparator(dateTexts[_this.dateFormat], _this.dateSeparator); })),
424
425
  _this.timeTexts$.pipe(operators.map(function (texts) { return texts[_this.timeMode]; })),
425
426
  ]).pipe(operators.map(function (fillers) { return _this.getDateTimeString.apply(_this, __spreadArray([], __read(fillers))); }));
426
427
  return _this;
427
428
  }
428
429
  Object.defineProperty(TuiInputDateTimeComponent.prototype, "fillerLength", {
429
430
  get: function () {
430
- return i6.DATE_FILLER_LENGTH + constants.DATE_TIME_SEPARATOR.length + this.timeMode.length;
431
+ return i7.DATE_FILLER_LENGTH + constants.DATE_TIME_SEPARATOR.length + this.timeMode.length;
431
432
  },
432
433
  enumerable: false,
433
434
  configurable: true
434
435
  });
435
- Object.defineProperty(TuiInputDateTimeComponent.prototype, "textMaskOptions", {
436
+ Object.defineProperty(TuiInputDateTimeComponent.prototype, "maskOptions", {
436
437
  get: function () {
437
- return this.calculateMask(this.value[0], this.calendarMinDay, this.calendarMaxDay, this.timeMode, this.dateFormat, this.dateSeparator);
438
+ return this.calculateMask(this.min, this.max, this.timeMode, this.dateFormat, this.dateSeparator);
438
439
  },
439
440
  enumerable: false,
440
441
  configurable: true
@@ -478,7 +479,7 @@
478
479
  get: function () {
479
480
  var _a = this, value = _a.value, nativeValue = _a.nativeValue, timeMode = _a.timeMode;
480
481
  var _b = __read(value, 2), date = _b[0], time = _b[1];
481
- var hasTimeInputChars = nativeValue.length > i6.DATE_FILLER_LENGTH;
482
+ var hasTimeInputChars = nativeValue.length > i7.DATE_FILLER_LENGTH;
482
483
  if (!date || (!time && hasTimeInputChars)) {
483
484
  return nativeValue;
484
485
  }
@@ -512,7 +513,7 @@
512
513
  get: function () {
513
514
  return (this.month ||
514
515
  this.value[0] ||
515
- i6.tuiDateClamp(this.defaultActiveYearMonth, Array.isArray(this.min) ? this.min[0] : this.min, Array.isArray(this.max) ? this.max[0] : this.max));
516
+ i7.tuiDateClamp(this.defaultActiveYearMonth, Array.isArray(this.min) ? this.min[0] : this.min, Array.isArray(this.max) ? this.max[0] : this.max));
516
517
  },
517
518
  enumerable: false,
518
519
  configurable: true
@@ -544,14 +545,14 @@
544
545
  if (!value) {
545
546
  this.onOpenChange(true);
546
547
  }
547
- if (value.length < i6.DATE_FILLER_LENGTH) {
548
+ if (value.length < i7.DATE_FILLER_LENGTH) {
548
549
  this.value = [null, null];
549
550
  return;
550
551
  }
551
552
  var _a = __read(value.split(constants.DATE_TIME_SEPARATOR), 2), date = _a[0], time = _a[1];
552
- var parsedDate = i6.TuiDay.normalizeParse(date, this.dateFormat);
553
+ var parsedDate = i7.TuiDay.normalizeParse(date, this.dateFormat);
553
554
  var parsedTime = time && time.length === this.timeMode.length
554
- ? this.clampTime(i6.TuiTime.fromString(time), parsedDate)
555
+ ? i7.TuiTime.fromString(time)
555
556
  : null;
556
557
  this.open = false;
557
558
  this.value = [parsedDate, parsedTime];
@@ -571,8 +572,13 @@
571
572
  TuiInputDateTimeComponent.prototype.onFocused = function (focused) {
572
573
  var _this = this;
573
574
  this.updateFocused(focused);
574
- if (focused ||
575
- this.value[0] === null ||
575
+ if (focused) {
576
+ return;
577
+ }
578
+ setTimeout(function () {
579
+ _this.nativeValue = _this.trimTrailingSeparator(_this.nativeValue);
580
+ });
581
+ if (this.value[0] === null ||
576
582
  this.value[1] !== null ||
577
583
  this.nativeValue.length <= this.fillerLength + constants.DATE_TIME_SEPARATOR.length ||
578
584
  this.timeMode === 'HH:MM') {
@@ -582,13 +588,8 @@
582
588
  if (!time) {
583
589
  return;
584
590
  }
585
- var parsedTime = i6.TuiTime.fromString(time);
591
+ var parsedTime = i7.TuiTime.fromString(time);
586
592
  this.value = [this.value[0], parsedTime];
587
- setTimeout(function () {
588
- if (_this.nativeValue.endsWith('.') || _this.nativeValue.endsWith(':')) {
589
- _this.nativeValue = _this.nativeValue.slice(0, -1);
590
- }
591
- });
592
593
  };
593
594
  TuiInputDateTimeComponent.prototype.setDisabledState = function () {
594
595
  _super.prototype.setDisabledState.call(this);
@@ -603,33 +604,27 @@
603
604
  return [null, null];
604
605
  };
605
606
  TuiInputDateTimeComponent.prototype.valueIdenticalComparator = function (oldValue, newValue) {
606
- return (i6.tuiNullableSame(oldValue[0], newValue[0], function (a, b) { return a.daySame(b); }) &&
607
- i6.tuiNullableSame(oldValue[1], newValue[1], function (a, b) { return String(a) === String(b); }));
607
+ return (i7.tuiNullableSame(oldValue[0], newValue[0], function (a, b) { return a.daySame(b); }) &&
608
+ i7.tuiNullableSame(oldValue[1], newValue[1], function (a, b) { return String(a) === String(b); }));
608
609
  };
609
- TuiInputDateTimeComponent.prototype.calculateMask = function (day, min, max, timeMode, dateFormat, dateSeparator) {
610
- return {
611
- mask: __spreadArray(__spreadArray(__spreadArray([], __read(mask.tuiCreateDateMask(dateFormat, dateSeparator))), [
612
- ',',
613
- ' '
614
- ]), __read(mask.tuiCreateTimeMask(timeMode))),
615
- pipe: mask.tuiCreateAutoCorrectedDateTimePipe({
616
- value: day,
617
- min: min,
618
- max: max,
619
- dateFormat: dateFormat,
620
- dateSeparator: dateSeparator,
621
- timeMode: timeMode,
622
- }),
623
- guide: false,
624
- };
610
+ TuiInputDateTimeComponent.prototype.calculateMask = function (min, max, timeMode, dateFormat, dateSeparator) {
611
+ return kit.maskitoDateTimeOptionsGenerator({
612
+ timeMode: timeMode,
613
+ dateSeparator: dateSeparator,
614
+ dateMode: constants.TUI_DATE_MODE_MASKITO_ADAPTER[dateFormat],
615
+ min: this.toNativeDate(min),
616
+ max: this.toNativeDate(max),
617
+ });
625
618
  };
626
619
  TuiInputDateTimeComponent.prototype.getDateTimeString = function (date, time, timeMode) {
627
620
  if (timeMode === void 0) { timeMode = 'HH:MM'; }
628
- var dateString = date instanceof i6.TuiDay
621
+ var dateString = date instanceof i7.TuiDay
629
622
  ? date.toString(this.dateFormat, this.dateSeparator)
630
623
  : date;
631
- var timeString = time instanceof i6.TuiTime ? time.toString(timeMode) : time || '';
632
- return "" + dateString + constants.DATE_TIME_SEPARATOR + timeString;
624
+ var timeString = time instanceof i7.TuiTime ? time.toString(timeMode) : time || '';
625
+ return timeString
626
+ ? "" + dateString + constants.DATE_TIME_SEPARATOR + timeString
627
+ : dateString;
633
628
  };
634
629
  TuiInputDateTimeComponent.prototype.updateNativeValue = function (day) {
635
630
  var time = this.nativeValue.split(constants.DATE_TIME_SEPARATOR)[1] || '';
@@ -643,36 +638,46 @@
643
638
  var max = Array.isArray(this.max) && day.daySame(this.calendarMaxDay)
644
639
  ? this.max[1].toAbsoluteMilliseconds()
645
640
  : Infinity;
646
- return i6.TuiTime.fromAbsoluteMilliseconds(i6.tuiClamp(ms, min, max));
641
+ return i7.TuiTime.fromAbsoluteMilliseconds(i7.tuiClamp(ms, min, max));
642
+ };
643
+ TuiInputDateTimeComponent.prototype.trimTrailingSeparator = function (value) {
644
+ return value.replace(new RegExp("(\\" + this.dateSeparator + "|" + constants.DATE_TIME_SEPARATOR + "|\\.)$"), '');
645
+ };
646
+ TuiInputDateTimeComponent.prototype.toNativeDate = function (value) {
647
+ if (!Array.isArray(value)) {
648
+ return value.toLocalNativeDate();
649
+ }
650
+ var _a = __read(value, 2), _b = _a[0], year = _b.year, month = _b.month, day = _b.day, _c = _a[1], hours = _c.hours, minutes = _c.minutes, seconds = _c.seconds, ms = _c.ms;
651
+ return new Date(year, month, day, hours, minutes, seconds, ms);
647
652
  };
648
653
  return TuiInputDateTimeComponent;
649
- }(i6.AbstractTuiControl));
650
- TuiInputDateTimeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateTimeComponent, deps: [{ token: i7.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i1.TUI_TEXTFIELD_SIZE }, { token: i6.TUI_DATE_FORMAT }, { token: i6.TUI_DATE_SEPARATOR }, { token: tokens.TUI_TIME_TEXTS }, { token: tokens.TUI_DATE_TEXTS }, { token: tokens.TUI_DATE_TIME_VALUE_TRANSFORMER, optional: true }, { token: tokens.TUI_INPUT_DATE_OPTIONS }, { token: i6.TUI_IS_MOBILE }, { token: i6.TUI_IS_IOS }], target: i0__namespace.ɵɵFactoryTarget.Component });
654
+ }(i7.AbstractTuiControl));
655
+ TuiInputDateTimeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateTimeComponent, deps: [{ token: i8.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i1.TUI_TEXTFIELD_SIZE }, { token: i7.TUI_DATE_FORMAT }, { token: i7.TUI_DATE_SEPARATOR }, { token: tokens.TUI_TIME_TEXTS }, { token: tokens.TUI_DATE_TEXTS }, { token: tokens.TUI_DATE_TIME_VALUE_TRANSFORMER, optional: true }, { token: tokens.TUI_INPUT_DATE_OPTIONS }, { token: i7.TUI_IS_MOBILE }, { token: i7.TUI_IS_IOS }], target: i0__namespace.ɵɵFactoryTarget.Component });
651
656
  TuiInputDateTimeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputDateTimeComponent, selector: "tui-input-date-time", inputs: { min: "min", max: "max", disabledItemHandler: "disabledItemHandler", defaultActiveYearMonth: "defaultActiveYearMonth", timeMode: "timeMode" }, host: { listeners: { "click": "onClick()" } }, providers: [
652
- i6.tuiAsFocusableItemAccessor(TuiInputDateTimeComponent),
653
- i6.tuiAsControl(TuiInputDateTimeComponent),
657
+ i7.tuiAsFocusableItemAccessor(TuiInputDateTimeComponent),
658
+ i7.tuiAsControl(TuiInputDateTimeComponent),
654
659
  tokens.tuiDateStreamWithTransformer(tokens.TUI_DATE_TIME_VALUE_TRANSFORMER),
655
- ], 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 && !showNativePicker\"\n [content]=\"dropdown\"\n [open]=\"open && interactive\"\n (openChange)=\"onOpenChange($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-input-date-time__textfield\"\n tuiValueAccessor\n class=\"t-textfield\"\n [tuiTextfieldIcon]=\"calendarIcon && iconContent\"\n [tuiTextfieldFiller]=\"(filler$ | async) || ''\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [readOnly]=\"readOnly\"\n [disabled]=\"computedDisabled\"\n [textMask]=\"textMaskOptions\"\n [value]=\"computedValue\"\n (valueChange)=\"onValueChange($event)\"\n (focusedChange)=\"onFocused($event)\"\n >\n <ng-content></ng-content>\n <ng-content\n select=\"input\"\n ngProjectAs=\"input\"\n ></ng-content>\n </tui-primitive-textfield>\n\n <ng-template #iconContent>\n <tui-svg\n *polymorpheusOutlet=\"calendarIcon as src; context: {$implicit: size}\"\n tuiWrapper\n appearance=\"icon\"\n [class.t-icon]=\"!computedDisabled\"\n [src]=\"src\"\n ></tui-svg>\n <input\n *ngIf=\"showNativePicker\"\n tuiDateTime\n class=\"t-native-input\"\n />\n </ng-template>\n\n <ng-template\n #dropdown=\"polymorpheus\"\n [polymorpheus]=\"type\"\n >\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", 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}.t-icon{pointer-events:auto}.t-button{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-base-03)}.t-native-input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}\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: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i1__namespace.TuiCalendarComponent, selector: "tui-calendar", inputs: ["month", "disabledItemHandler", "min", "max", "minViewedMonth", "maxViewedMonth", "hoveredItem", "showAdjacent", "markerHandler", "value"], outputs: ["dayClick", "monthChange", "hoveredItemChange"] }], directives: [{ type: i1__namespace.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i2__namespace.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }, { type: i1__namespace.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i1__namespace.TuiTextfieldFillerDirective, selector: "[tuiTextfieldFiller]", inputs: ["tuiTextfieldFiller"] }, { type: i2__namespace.MaskedInputDirective, selector: "[textMask]", inputs: ["textMask"], exportAs: ["textMask"] }, { type: i3__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TuiNativeDateTimeDirective, selector: "input[tuiDateTime]" }, { type: i3__namespace.PolymorpheusTemplate, selector: "ng-template[polymorpheus]", inputs: ["polymorpheus"], exportAs: ["polymorpheus"] }, { type: i6__namespace.TuiPreventDefaultDirective, selector: "[tuiPreventDefault]", inputs: ["tuiPreventDefault"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
660
+ ], 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 && !showNativePicker\"\n [content]=\"dropdown\"\n [open]=\"open && interactive\"\n (openChange)=\"onOpenChange($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-input-date-time__textfield\"\n tuiValueAccessor\n class=\"t-textfield\"\n [tuiTextfieldIcon]=\"calendarIcon && iconContent\"\n [tuiTextfieldFiller]=\"(filler$ | async) || ''\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [readOnly]=\"readOnly\"\n [disabled]=\"computedDisabled\"\n [maskito]=\"maskOptions\"\n [value]=\"computedValue\"\n (valueChange)=\"onValueChange($event)\"\n (focusedChange)=\"onFocused($event)\"\n >\n <ng-content></ng-content>\n <ng-content\n select=\"input\"\n ngProjectAs=\"input\"\n ></ng-content>\n </tui-primitive-textfield>\n\n <ng-template #iconContent>\n <tui-svg\n *polymorpheusOutlet=\"calendarIcon as src; context: {$implicit: size}\"\n tuiWrapper\n appearance=\"icon\"\n [class.t-icon]=\"!computedDisabled\"\n [src]=\"src\"\n ></tui-svg>\n <input\n *ngIf=\"showNativePicker\"\n tuiDateTime\n class=\"t-native-input\"\n />\n </ng-template>\n\n <ng-template\n #dropdown=\"polymorpheus\"\n [polymorpheus]=\"type\"\n >\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", 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}.t-icon{pointer-events:auto}.t-button{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-base-03)}.t-native-input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}\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: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i1__namespace.TuiCalendarComponent, selector: "tui-calendar", inputs: ["month", "disabledItemHandler", "min", "max", "minViewedMonth", "maxViewedMonth", "hoveredItem", "showAdjacent", "markerHandler", "value"], outputs: ["dayClick", "monthChange", "hoveredItemChange"] }], directives: [{ type: i1__namespace.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i2__namespace.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }, { type: i1__namespace.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i1__namespace.TuiTextfieldFillerDirective, selector: "[tuiTextfieldFiller]", inputs: ["tuiTextfieldFiller"] }, { type: i3__namespace.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { type: i4__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TuiNativeDateTimeDirective, selector: "input[tuiDateTime]" }, { type: i4__namespace.PolymorpheusTemplate, selector: "ng-template[polymorpheus]", inputs: ["polymorpheus"], exportAs: ["polymorpheus"] }, { type: i7__namespace.TuiPreventDefaultDirective, selector: "[tuiPreventDefault]", inputs: ["tuiPreventDefault"] }], pipes: { "async": i5__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
656
661
  __decorate([
657
- i6.tuiDefaultProp()
662
+ i7.tuiDefaultProp()
658
663
  ], TuiInputDateTimeComponent.prototype, "min", void 0);
659
664
  __decorate([
660
- i6.tuiDefaultProp()
665
+ i7.tuiDefaultProp()
661
666
  ], TuiInputDateTimeComponent.prototype, "max", void 0);
662
667
  __decorate([
663
- i6.tuiDefaultProp()
668
+ i7.tuiDefaultProp()
664
669
  ], TuiInputDateTimeComponent.prototype, "disabledItemHandler", void 0);
665
670
  __decorate([
666
- i6.tuiDefaultProp()
671
+ i7.tuiDefaultProp()
667
672
  ], TuiInputDateTimeComponent.prototype, "defaultActiveYearMonth", void 0);
668
673
  __decorate([
669
- i6.tuiDefaultProp()
674
+ i7.tuiDefaultProp()
670
675
  ], TuiInputDateTimeComponent.prototype, "timeMode", void 0);
671
676
  __decorate([
672
- i6.tuiPure
677
+ i7.tuiPure
673
678
  ], TuiInputDateTimeComponent.prototype, "calculateMask", null);
674
679
  __decorate([
675
- i6.tuiPure
680
+ i7.tuiPure
676
681
  ], TuiInputDateTimeComponent.prototype, "getDateTimeString", null);
677
682
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateTimeComponent, decorators: [{
678
683
  type: i0.Component,
@@ -682,19 +687,19 @@
682
687
  styleUrls: ['./input-date-time.style.less'],
683
688
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
684
689
  providers: [
685
- i6.tuiAsFocusableItemAccessor(TuiInputDateTimeComponent),
686
- i6.tuiAsControl(TuiInputDateTimeComponent),
690
+ i7.tuiAsFocusableItemAccessor(TuiInputDateTimeComponent),
691
+ i7.tuiAsControl(TuiInputDateTimeComponent),
687
692
  tokens.tuiDateStreamWithTransformer(tokens.TUI_DATE_TIME_VALUE_TRANSFORMER),
688
693
  ],
689
694
  }]
690
695
  }], ctorParameters: function () {
691
- return [{ type: i7__namespace.NgControl, decorators: [{
696
+ return [{ type: i8__namespace.NgControl, decorators: [{
692
697
  type: i0.Optional
693
698
  }, {
694
699
  type: i0.Self
695
700
  }, {
696
701
  type: i0.Inject,
697
- args: [i7.NgControl]
702
+ args: [i8.NgControl]
698
703
  }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
699
704
  type: i0.Inject,
700
705
  args: [i0.ChangeDetectorRef]
@@ -703,17 +708,17 @@
703
708
  args: [i1.TUI_TEXTFIELD_SIZE]
704
709
  }] }, { type: undefined, decorators: [{
705
710
  type: i0.Inject,
706
- args: [i6.TUI_DATE_FORMAT]
711
+ args: [i7.TUI_DATE_FORMAT]
707
712
  }] }, { type: undefined, decorators: [{
708
713
  type: i0.Inject,
709
- args: [i6.TUI_DATE_SEPARATOR]
710
- }] }, { type: i8__namespace.Observable, decorators: [{
714
+ args: [i7.TUI_DATE_SEPARATOR]
715
+ }] }, { type: i9__namespace.Observable, decorators: [{
711
716
  type: i0.Inject,
712
717
  args: [tokens.TUI_TIME_TEXTS]
713
- }] }, { type: i8__namespace.Observable, decorators: [{
718
+ }] }, { type: i9__namespace.Observable, decorators: [{
714
719
  type: i0.Inject,
715
720
  args: [tokens.TUI_DATE_TEXTS]
716
- }] }, { type: i6__namespace.AbstractTuiValueTransformer, decorators: [{
721
+ }] }, { type: i7__namespace.AbstractTuiValueTransformer, decorators: [{
717
722
  type: i0.Optional
718
723
  }, {
719
724
  type: i0.Inject,
@@ -723,10 +728,10 @@
723
728
  args: [tokens.TUI_INPUT_DATE_OPTIONS]
724
729
  }] }, { type: undefined, decorators: [{
725
730
  type: i0.Inject,
726
- args: [i6.TUI_IS_MOBILE]
731
+ args: [i7.TUI_IS_MOBILE]
727
732
  }] }, { type: undefined, decorators: [{
728
733
  type: i0.Inject,
729
- args: [i6.TUI_IS_IOS]
734
+ args: [i7.TUI_IS_IOS]
730
735
  }] }];
731
736
  }, propDecorators: { textfield: [{
732
737
  type: i0.ViewChild,
@@ -794,11 +799,11 @@
794
799
  TuiInputDateTimeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateTimeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
795
800
  TuiInputDateTimeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateTimeModule, declarations: [TuiInputDateTimeComponent,
796
801
  TuiInputDateTimeDirective,
797
- TuiNativeDateTimeDirective], imports: [i4.CommonModule,
798
- i2.TextMaskModule,
799
- i3.PolymorpheusModule,
802
+ TuiNativeDateTimeDirective], imports: [i5.CommonModule,
803
+ i3.MaskitoModule,
804
+ i4.PolymorpheusModule,
800
805
  i1.TuiWrapperModule,
801
- i6.TuiPreventDefaultModule,
806
+ i7.TuiPreventDefaultModule,
802
807
  i1.TuiCalendarModule,
803
808
  i1.TuiSvgModule,
804
809
  i1.TuiLinkModule,
@@ -809,11 +814,11 @@
809
814
  TuiInputDateTimeDirective,
810
815
  i1.TuiTextfieldComponent] });
811
816
  TuiInputDateTimeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiInputDateTimeModule, imports: [[
812
- i4.CommonModule,
813
- i2.TextMaskModule,
814
- i3.PolymorpheusModule,
817
+ i5.CommonModule,
818
+ i3.MaskitoModule,
819
+ i4.PolymorpheusModule,
815
820
  i1.TuiWrapperModule,
816
- i6.TuiPreventDefaultModule,
821
+ i7.TuiPreventDefaultModule,
817
822
  i1.TuiCalendarModule,
818
823
  i1.TuiSvgModule,
819
824
  i1.TuiLinkModule,
@@ -826,11 +831,11 @@
826
831
  type: i0.NgModule,
827
832
  args: [{
828
833
  imports: [
829
- i4.CommonModule,
830
- i2.TextMaskModule,
831
- i3.PolymorpheusModule,
834
+ i5.CommonModule,
835
+ i3.MaskitoModule,
836
+ i4.PolymorpheusModule,
832
837
  i1.TuiWrapperModule,
833
- i6.TuiPreventDefaultModule,
838
+ i7.TuiPreventDefaultModule,
834
839
  i1.TuiCalendarModule,
835
840
  i1.TuiSvgModule,
836
841
  i1.TuiLinkModule,