@taiga-ui/legacy 4.52.0-canary.34c26c6 → 4.52.0-canary.36b5af3

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 (140) hide show
  1. package/components/color-selector/color-selector.module.d.ts +11 -12
  2. package/components/index.d.ts +0 -7
  3. package/components/input-phone/input-phone.component.d.ts +3 -0
  4. package/components/input-phone/input-phone.directive.d.ts +3 -0
  5. package/components/input-phone/input-phone.module.d.ts +3 -0
  6. package/components/input-phone/input-phone.options.d.ts +10 -1
  7. package/fesm2022/taiga-ui-legacy-classes.mjs +21 -21
  8. package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -1
  9. package/fesm2022/taiga-ui-legacy-components-arrow.mjs +5 -5
  10. package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
  11. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +68 -72
  12. package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +1 -1
  13. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +19 -20
  14. package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +1 -1
  15. package/fesm2022/taiga-ui-legacy-components-input-color.mjs +7 -7
  16. package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +1 -1
  17. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +22 -22
  18. package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -1
  19. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +24 -24
  20. package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -1
  21. package/fesm2022/taiga-ui-legacy-components-input-date.mjs +26 -26
  22. package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +1 -1
  23. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +10 -10
  24. package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-legacy-components-input-number.mjs +19 -19
  26. package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
  27. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +6 -6
  28. package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +26 -11
  30. package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-legacy-components-input-range.mjs +18 -18
  32. package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -1
  33. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +15 -16
  34. package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -1
  35. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +19 -19
  36. package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-legacy-components-input-time.mjs +38 -42
  38. package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-legacy-components-input-year.mjs +10 -10
  40. package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-legacy-components-input.mjs +10 -10
  42. package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +7 -7
  44. package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +45 -45
  46. package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +26 -26
  48. package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-legacy-components-select-option.mjs +8 -8
  50. package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-legacy-components-select.mjs +31 -31
  52. package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-legacy-components-svg.mjs +7 -7
  54. package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-legacy-components-tag.mjs +13 -14
  56. package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-legacy-components-textarea.mjs +21 -21
  58. package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +7 -7
  60. package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-legacy-components.mjs +0 -7
  62. package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
  63. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +3 -3
  64. package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +34 -34
  66. package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +3 -3
  68. package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +7 -7
  70. package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +7 -7
  72. package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +3 -3
  74. package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +3 -3
  76. package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +3 -3
  78. package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-legacy-services.mjs +3 -3
  80. package/fesm2022/taiga-ui-legacy-services.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -1
  83. package/package.json +28 -56
  84. package/styles/mixins/textfield.less +3 -1
  85. package/utils/icons-path-factory.d.ts +1 -1
  86. package/components/input-copy/index.d.ts +0 -4
  87. package/components/input-copy/input-copy.component.d.ts +0 -33
  88. package/components/input-copy/input-copy.directive.d.ts +0 -11
  89. package/components/input-copy/input-copy.module.d.ts +0 -18
  90. package/components/input-copy/input-copy.options.d.ts +0 -26
  91. package/components/input-date-multi/index.d.ts +0 -2
  92. package/components/input-date-multi/input-date-multi.component.d.ts +0 -66
  93. package/components/input-date-multi/input-date-multi.module.d.ts +0 -20
  94. package/components/input-month/index.d.ts +0 -3
  95. package/components/input-month/input-month.component.d.ts +0 -44
  96. package/components/input-month/input-month.directive.d.ts +0 -19
  97. package/components/input-month/input-month.module.d.ts +0 -19
  98. package/components/input-password/index.d.ts +0 -4
  99. package/components/input-password/input-password.component.d.ts +0 -33
  100. package/components/input-password/input-password.directive.d.ts +0 -15
  101. package/components/input-password/input-password.module.d.ts +0 -19
  102. package/components/input-password/input-password.options.d.ts +0 -25
  103. package/components/island/index.d.ts +0 -1
  104. package/components/island/island.directive.d.ts +0 -20
  105. package/components/sheet/components/sheet/sheet.component.d.ts +0 -31
  106. package/components/sheet/components/sheet/sheet.providers.d.ts +0 -2
  107. package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +0 -11
  108. package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +0 -14
  109. package/components/sheet/components/sheets-host/sheets-host.component.d.ts +0 -15
  110. package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +0 -14
  111. package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +0 -9
  112. package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +0 -14
  113. package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +0 -17
  114. package/components/sheet/index.d.ts +0 -14
  115. package/components/sheet/sheet-options.d.ts +0 -27
  116. package/components/sheet/sheet-tokens.d.ts +0 -18
  117. package/components/sheet/sheet.d.ts +0 -21
  118. package/components/sheet/sheet.directive.d.ts +0 -17
  119. package/components/sheet/sheet.module.d.ts +0 -24
  120. package/components/sheet/sheet.service.d.ts +0 -17
  121. package/components/table-bar/index.d.ts +0 -4
  122. package/components/table-bar/table-bar.component.d.ts +0 -17
  123. package/components/table-bar/table-bar.directive.d.ts +0 -11
  124. package/components/table-bar/table-bar.options.d.ts +0 -31
  125. package/components/table-bar/table-bars-host.component.d.ts +0 -10
  126. package/components/table-bar/table-bars.service.d.ts +0 -11
  127. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +0 -197
  128. package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +0 -1
  129. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +0 -272
  130. package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +0 -1
  131. package/fesm2022/taiga-ui-legacy-components-input-month.mjs +0 -231
  132. package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +0 -1
  133. package/fesm2022/taiga-ui-legacy-components-input-password.mjs +0 -187
  134. package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +0 -1
  135. package/fesm2022/taiga-ui-legacy-components-island.mjs +0 -68
  136. package/fesm2022/taiga-ui-legacy-components-island.mjs.map +0 -1
  137. package/fesm2022/taiga-ui-legacy-components-sheet.mjs +0 -577
  138. package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +0 -1
  139. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +0 -145
  140. package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +0 -1
@@ -1,17 +0,0 @@
1
- import { type TuiPopover } from '@taiga-ui/cdk/services';
2
- import { type TuiTableBarOptions } from './table-bar.options';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @deprecated drop in v5.0 use {@link TuiActionBar}
6
- * https://taiga-ui.dev/components/actions-bar
7
- */
8
- export declare class TuiTableBarComponent {
9
- protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
10
- protected readonly closeWord$: import("rxjs").Observable<string>;
11
- protected readonly context: TuiPopover<TuiTableBarOptions, void>;
12
- protected readonly animation: import("@angular/animations").AnimationOptions;
13
- protected getTheme(appearance: string): string | null;
14
- protected close(): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiTableBarComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiTableBarComponent, "tui-table-bar", never, {}, {}, never, never, true, never>;
17
- }
@@ -1,11 +0,0 @@
1
- import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
2
- import { type TuiTableBarOptions } from './table-bar.options';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @deprecated drop in v5.0 use {@link TuiActionBar}
6
- * https://taiga-ui.dev/components/actions-bar
7
- */
8
- export declare class TuiTableBarDirective extends TuiPopoverDirective<TuiTableBarOptions> {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiTableBarDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTableBarDirective, "ng-template[tuiTableBar]", never, { "open": { "alias": "tuiTableBar"; "required": false; }; "options": { "alias": "tuiTableBarOptions"; "required": false; }; }, { "openChange": "tuiTableBarChange"; }, never, never, true, never>;
11
- }
@@ -1,31 +0,0 @@
1
- import { InjectionToken, type Provider } from '@angular/core';
2
- import { BehaviorSubject } from 'rxjs';
3
- /**
4
- * @deprecated drop in v5.0 use {@link TuiActionBar}
5
- * https://taiga-ui.dev/components/actions-bar
6
- */
7
- export interface TuiTableBarOptions {
8
- readonly adaptive?: boolean;
9
- readonly hasCloseButton?: boolean;
10
- readonly mode?: 'onDark' | 'onLight';
11
- }
12
- /**
13
- * @deprecated drop in v5.0 use {@link TuiActionBar}
14
- * https://taiga-ui.dev/components/actions-bar
15
- */
16
- export declare const TUI_TABLE_BARS: InjectionToken<BehaviorSubject<readonly any[]>>;
17
- /**
18
- * @deprecated drop in v5.0 use {@link TuiActionBar}
19
- * https://taiga-ui.dev/components/actions-bar
20
- */
21
- export declare const TUI_TABLE_BAR_DEFAULT_OPTIONS: TuiTableBarOptions;
22
- /**
23
- * @deprecated drop in v5.0 use {@link TuiActionBar}
24
- * https://taiga-ui.dev/components/actions-bar
25
- */
26
- export declare const TUI_TABLE_BAR_OPTIONS: InjectionToken<TuiTableBarOptions>;
27
- /**
28
- * @deprecated drop in v5.0 use {@link TuiActionBar}
29
- * https://taiga-ui.dev/components/actions-bar
30
- */
31
- export declare function tuiTableBarOptionsProvider(options: Partial<TuiTableBarOptions>): Provider;
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * @deprecated drop in v5.0 use {@link TuiActionBar}
4
- * https://taiga-ui.dev/components/actions-bar
5
- */
6
- export declare class TuiTableBarsHostComponent {
7
- protected bars$: import("rxjs").BehaviorSubject<readonly any[]>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiTableBarsHostComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiTableBarsHostComponent, "tui-table-bars-host", never, {}, {}, never, never, true, never>;
10
- }
@@ -1,11 +0,0 @@
1
- import { TuiPopoverService } from '@taiga-ui/cdk/services';
2
- import { type TuiTableBarOptions } from './table-bar.options';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @deprecated drop in v5.0 use {@link TuiActionBar}
6
- * https://taiga-ui.dev/components/actions-bar
7
- */
8
- export declare class TuiTableBarsService extends TuiPopoverService<TuiTableBarOptions> {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiTableBarsService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<TuiTableBarsService>;
11
- }
@@ -1,197 +0,0 @@
1
- import { __decorate } from 'tslib';
2
- import * as i7 from '@angular/common';
3
- import { DOCUMENT, CommonModule } from '@angular/common';
4
- import * as i0 from '@angular/core';
5
- import { InjectionToken, inject, Input, ViewChild, ChangeDetectionStrategy, Component, Directive, NgModule } from '@angular/core';
6
- import { tuiProvideOptions, tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
7
- import { TUI_COPY_TEXTS } from '@taiga-ui/kit/tokens';
8
- import { AbstractTuiControl, tuiAsControl, AbstractTuiTextfieldHost } from '@taiga-ui/legacy/classes';
9
- import * as i2 from '@taiga-ui/legacy/components/primitive-textfield';
10
- import { TuiPrimitiveTextfieldComponent, TuiTextfieldComponent, TuiPrimitiveTextfieldModule } from '@taiga-ui/legacy/components/primitive-textfield';
11
- import * as i3 from '@taiga-ui/legacy/directives';
12
- import { TUI_TEXTFIELD_SIZE, TUI_VALUE_ACCESSOR_PROVIDER, TuiTextfieldControllerModule } from '@taiga-ui/legacy/directives';
13
- import { tuiAsFocusableItemAccessor, tuiAsTextfieldHost } from '@taiga-ui/legacy/tokens';
14
- import { BehaviorSubject, switchMap, of, merge, timer, map } from 'rxjs';
15
- import * as i1 from '@taiga-ui/polymorpheus';
16
- import { PolymorpheusOutlet, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
17
- import * as i4 from '@taiga-ui/core/directives/appearance';
18
- import { TuiAppearance } from '@taiga-ui/core/directives/appearance';
19
- import * as i5 from '@taiga-ui/core/components/icon';
20
- import { TuiIcon } from '@taiga-ui/core/components/icon';
21
- import * as i1$1 from '@taiga-ui/core/directives/hint';
22
- import { TuiHint } from '@taiga-ui/core/directives/hint';
23
-
24
- /**
25
- * @deprecated use {@link TuiCopy} with {@link TuiTextfield}
26
- */
27
- const TUI_INPUT_COPY_DEFAULT_OPTIONS = {
28
- successMessage: '',
29
- messageDirection: 'bottom-left',
30
- messageAppearance: '',
31
- icon: () => '@tui.copy',
32
- };
33
- /**
34
- * @deprecated use {@link TuiCopy} with {@link TuiTextfield}
35
- */
36
- const TUI_INPUT_COPY_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_INPUT_COPY_OPTIONS' : '', {
37
- factory: () => TUI_INPUT_COPY_DEFAULT_OPTIONS,
38
- });
39
- /**
40
- * @deprecated use {@link TuiCopy} with {@link TuiTextfield}
41
- */
42
- function tuiInputCopyOptionsProvider(options) {
43
- return tuiProvideOptions(TUI_INPUT_COPY_OPTIONS, options, TUI_INPUT_COPY_DEFAULT_OPTIONS);
44
- }
45
-
46
- /**
47
- * @deprecated use {@link TuiCopy} with {@link TuiTextfield}
48
- */
49
- class TuiInputCopyComponent extends AbstractTuiControl {
50
- constructor() {
51
- super(...arguments);
52
- this.copied$ = new BehaviorSubject(false);
53
- this.doc = inject(DOCUMENT);
54
- this.copyTexts$ = inject(TUI_COPY_TEXTS);
55
- this.options = inject(TUI_INPUT_COPY_OPTIONS);
56
- this.textfieldSize = inject(TUI_TEXTFIELD_SIZE);
57
- this.successMessage = this.options.successMessage;
58
- this.messageDirection = this.options.messageDirection;
59
- this.messageAppearance = this.options.messageAppearance;
60
- }
61
- get nativeFocusableElement() {
62
- return this.computedDisabled || !this.textfield
63
- ? null
64
- : this.textfield.nativeFocusableElement;
65
- }
66
- get focused() {
67
- return !!this.textfield?.focused;
68
- }
69
- onValueChange(value) {
70
- this.value = value;
71
- }
72
- get hintText$() {
73
- return this.copyTexts$.pipe(switchMap((texts) => this.copied$.pipe(switchMap((copied) => {
74
- if (!copied) {
75
- return of(texts[0]);
76
- }
77
- this.copied$.next(false);
78
- return merge(of(this.successMessage || texts[1]), timer(3000).pipe(map(() => texts[0])));
79
- }))));
80
- }
81
- get size() {
82
- return this.textfieldSize.size;
83
- }
84
- get icon() {
85
- return this.options.icon;
86
- }
87
- onFocused(focused) {
88
- this.updateFocused(focused);
89
- }
90
- copy() {
91
- if (!this.textfield?.nativeFocusableElement) {
92
- return;
93
- }
94
- this.textfield.nativeFocusableElement.select();
95
- this.doc.execCommand('copy');
96
- this.copied$.next(true);
97
- }
98
- getFallbackValue() {
99
- return '';
100
- }
101
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
102
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputCopyComponent, isStandalone: false, selector: "tui-input-copy", inputs: { successMessage: "successMessage", messageDirection: "messageDirection", messageAppearance: "messageAppearance" }, host: { properties: { "attr.data-size": "size" } }, providers: [
103
- TUI_VALUE_ACCESSOR_PROVIDER,
104
- tuiAsFocusableItemAccessor(TuiInputCopyComponent),
105
- tuiAsControl(TuiInputCopyComponent),
106
- ], viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"!disabled ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template #iconContent>\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n automation-id=\"tui-copy__icon\"\n tuiAppearance=\"icon\"\n class=\"t-icon\"\n [class.t-icon_small]=\"size === 's'\"\n [icon]=\"src.toString()\"\n [tuiAppearanceState]=\"!value ? 'disabled' : null\"\n [tuiHint]=\"hint\"\n [tuiHintAppearance]=\"messageAppearance\"\n [tuiHintDirection]=\"messageDirection\"\n (click)=\"copy()\"\n />\n</ng-template>\n\n<ng-template #hint>\n <ng-container *polymorpheusOutlet=\"hintText$ | async as text\">\n {{ text }}\n </ng-container>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-icon{position:relative;cursor:pointer;pointer-events:auto}.t-icon_small{border-width:.25rem}.t-textfield{border-radius:inherit;text-align:inherit}\n"], dependencies: [{ kind: "directive", type: i1.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i2.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i2.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i3.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { kind: "directive", type: i4.TuiAppearance, selector: "[tuiAppearance]", inputs: ["tuiAppearance", "tuiAppearanceState", "tuiAppearanceFocus", "tuiAppearanceMode"] }, { kind: "component", type: i5.TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }, { kind: "directive", type: i1$1.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHintContext", "tuiHintAppearance", "tuiHint"], outputs: ["tuiHintVisible"] }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
107
- }
108
- __decorate([
109
- tuiPure
110
- ], TuiInputCopyComponent.prototype, "hintText$", null);
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyComponent, decorators: [{
112
- type: Component,
113
- args: [{ standalone: false, selector: 'tui-input-copy', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
114
- TUI_VALUE_ACCESSOR_PROVIDER,
115
- tuiAsFocusableItemAccessor(TuiInputCopyComponent),
116
- tuiAsControl(TuiInputCopyComponent),
117
- ], host: {
118
- '[attr.data-size]': 'size',
119
- }, template: "<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"!disabled ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template #iconContent>\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n automation-id=\"tui-copy__icon\"\n tuiAppearance=\"icon\"\n class=\"t-icon\"\n [class.t-icon_small]=\"size === 's'\"\n [icon]=\"src.toString()\"\n [tuiAppearanceState]=\"!value ? 'disabled' : null\"\n [tuiHint]=\"hint\"\n [tuiHintAppearance]=\"messageAppearance\"\n [tuiHintDirection]=\"messageDirection\"\n (click)=\"copy()\"\n />\n</ng-template>\n\n<ng-template #hint>\n <ng-container *polymorpheusOutlet=\"hintText$ | async as text\">\n {{ text }}\n </ng-container>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-icon{position:relative;cursor:pointer;pointer-events:auto}.t-icon_small{border-width:.25rem}.t-textfield{border-radius:inherit;text-align:inherit}\n"] }]
120
- }], propDecorators: { textfield: [{
121
- type: ViewChild,
122
- args: [TuiPrimitiveTextfieldComponent]
123
- }], successMessage: [{
124
- type: Input
125
- }], messageDirection: [{
126
- type: Input
127
- }], messageAppearance: [{
128
- type: Input
129
- }], hintText$: [] } });
130
-
131
- /**
132
- * @deprecated use {@link TuiCopy} with {@link TuiTextfield}
133
- */
134
- class TuiInputCopyDirective extends AbstractTuiTextfieldHost {
135
- onValueChange(value) {
136
- this.host.onValueChange(value);
137
- }
138
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
139
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputCopyDirective, isStandalone: false, selector: "tui-input-copy", providers: [tuiAsTextfieldHost(TuiInputCopyDirective)], usesInheritance: true, ngImport: i0 }); }
140
- }
141
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyDirective, decorators: [{
142
- type: Directive,
143
- args: [{
144
- standalone: false,
145
- selector: 'tui-input-copy',
146
- providers: [tuiAsTextfieldHost(TuiInputCopyDirective)],
147
- }]
148
- }] });
149
-
150
- /**
151
- * @deprecated use {@link TuiCopy} with {@link TuiTextfield}
152
- */
153
- class TuiInputCopyModule {
154
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
155
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyModule, declarations: [TuiInputCopyComponent, TuiInputCopyDirective], imports: [CommonModule,
156
- PolymorpheusOutlet,
157
- PolymorpheusTemplate,
158
- TuiPrimitiveTextfieldModule,
159
- TuiTextfieldControllerModule,
160
- TuiAppearance,
161
- TuiIcon, i1$1.TuiHintComponent, i1$1.TuiHintDirective, i1$1.TuiHintOptionsDirective, i1$1.TuiHintUnstyled, i1$1.TuiHintDriver, i1$1.TuiHintPosition, i1$1.TuiHintHover, i1$1.TuiHintOverflow, i1$1.TuiHintDescribe, i1$1.TuiHintHost, i1$1.TuiHintManual, i1$1.TuiHintPointer], exports: [TuiInputCopyComponent,
162
- TuiInputCopyDirective,
163
- TuiTextfieldComponent, i1$1.TuiHintComponent, i1$1.TuiHintDirective, i1$1.TuiHintOptionsDirective, i1$1.TuiHintUnstyled, i1$1.TuiHintDriver, i1$1.TuiHintPosition, i1$1.TuiHintHover, i1$1.TuiHintOverflow, i1$1.TuiHintDescribe, i1$1.TuiHintHost, i1$1.TuiHintManual, i1$1.TuiHintPointer] }); }
164
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyModule, imports: [CommonModule,
165
- TuiPrimitiveTextfieldModule,
166
- TuiTextfieldControllerModule,
167
- TuiIcon, i1$1.TuiHintComponent] }); }
168
- }
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputCopyModule, decorators: [{
170
- type: NgModule,
171
- args: [{
172
- imports: [
173
- CommonModule,
174
- PolymorpheusOutlet,
175
- PolymorpheusTemplate,
176
- TuiPrimitiveTextfieldModule,
177
- TuiTextfieldControllerModule,
178
- TuiAppearance,
179
- TuiIcon,
180
- ...TuiHint,
181
- ],
182
- declarations: [TuiInputCopyComponent, TuiInputCopyDirective],
183
- exports: [
184
- TuiInputCopyComponent,
185
- TuiInputCopyDirective,
186
- TuiTextfieldComponent,
187
- ...TuiHint,
188
- ],
189
- }]
190
- }] });
191
-
192
- /**
193
- * Generated bundle index. Do not edit.
194
- */
195
-
196
- export { TUI_INPUT_COPY_DEFAULT_OPTIONS, TUI_INPUT_COPY_OPTIONS, TuiInputCopyComponent, TuiInputCopyDirective, TuiInputCopyModule, tuiInputCopyOptionsProvider };
197
- //# sourceMappingURL=taiga-ui-legacy-components-input-copy.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-legacy-components-input-copy.mjs","sources":["../../../projects/legacy/components/input-copy/input-copy.options.ts","../../../projects/legacy/components/input-copy/input-copy.component.ts","../../../projects/legacy/components/input-copy/input-copy.template.html","../../../projects/legacy/components/input-copy/input-copy.directive.ts","../../../projects/legacy/components/input-copy/input-copy.module.ts","../../../projects/legacy/components/input-copy/taiga-ui-legacy-components-input-copy.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiHintDirection} from '@taiga-ui/core/directives/hint';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\n/**\n * @deprecated use {@link TuiCopy} with {@link TuiTextfield}\n */\nexport interface TuiInputCopyOptions {\n readonly icon: PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>>;\n readonly messageAppearance: string;\n readonly messageDirection: TuiHintDirection;\n readonly successMessage: PolymorpheusContent;\n}\n\n/**\n * @deprecated use {@link TuiCopy} with {@link TuiTextfield}\n */\nexport const TUI_INPUT_COPY_DEFAULT_OPTIONS: TuiInputCopyOptions = {\n successMessage: '',\n messageDirection: 'bottom-left',\n messageAppearance: '',\n icon: () => '@tui.copy',\n};\n\n/**\n * @deprecated use {@link TuiCopy} with {@link TuiTextfield}\n */\nexport const TUI_INPUT_COPY_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_INPUT_COPY_OPTIONS' : '',\n {\n factory: () => TUI_INPUT_COPY_DEFAULT_OPTIONS,\n },\n);\n\n/**\n * @deprecated use {@link TuiCopy} with {@link TuiTextfield}\n */\nexport function tuiInputCopyOptionsProvider(\n options: Partial<TuiInputCopyOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_COPY_OPTIONS,\n options,\n TUI_INPUT_COPY_DEFAULT_OPTIONS,\n );\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n ViewChild,\n} from '@angular/core';\nimport {tuiPure} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiHintDirection} from '@taiga-ui/core/directives/hint';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {TUI_COPY_TEXTS} from '@taiga-ui/kit/tokens';\nimport {AbstractTuiControl, tuiAsControl} from '@taiga-ui/legacy/classes';\nimport {TuiPrimitiveTextfieldComponent} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {\n TUI_TEXTFIELD_SIZE,\n TUI_VALUE_ACCESSOR_PROVIDER,\n} from '@taiga-ui/legacy/directives';\nimport {\n tuiAsFocusableItemAccessor,\n type TuiFocusableElementAccessor,\n type TuiNativeFocusableElement,\n} from '@taiga-ui/legacy/tokens';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\nimport {BehaviorSubject, map, merge, type Observable, of, switchMap, timer} from 'rxjs';\n\nimport {TUI_INPUT_COPY_OPTIONS, type TuiInputCopyOptions} from './input-copy.options';\n\n/**\n * @deprecated use {@link TuiCopy} with {@link TuiTextfield}\n */\n@Component({\n standalone: false,\n selector: 'tui-input-copy',\n templateUrl: './input-copy.template.html',\n styleUrls: ['./input-copy.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TUI_VALUE_ACCESSOR_PROVIDER,\n tuiAsFocusableItemAccessor(TuiInputCopyComponent),\n tuiAsControl(TuiInputCopyComponent),\n ],\n host: {\n '[attr.data-size]': 'size',\n },\n})\nexport class TuiInputCopyComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly copied$ = new BehaviorSubject<boolean>(false);\n private readonly doc = inject(DOCUMENT);\n private readonly copyTexts$ = inject(TUI_COPY_TEXTS);\n private readonly options = inject(TUI_INPUT_COPY_OPTIONS);\n private readonly textfieldSize = inject(TUI_TEXTFIELD_SIZE);\n\n @Input()\n public successMessage = this.options.successMessage;\n\n @Input()\n public messageDirection: TuiHintDirection = this.options.messageDirection;\n\n @Input()\n public messageAppearance = this.options.messageAppearance;\n\n public get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.computedDisabled || !this.textfield\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n public get focused(): boolean {\n return !!this.textfield?.focused;\n }\n\n public onValueChange(value: string): void {\n this.value = value;\n }\n\n @tuiPure\n protected get hintText$(): Observable<PolymorpheusContent> {\n return this.copyTexts$.pipe(\n switchMap((texts) =>\n this.copied$.pipe(\n switchMap((copied) => {\n if (!copied) {\n return of(texts[0]);\n }\n\n this.copied$.next(false);\n\n return merge(\n of(this.successMessage || texts[1]),\n timer(3000).pipe(map(() => texts[0])),\n );\n }),\n ),\n ),\n );\n }\n\n protected get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n protected get icon(): TuiInputCopyOptions['icon'] {\n return this.options.icon;\n }\n\n protected onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n protected copy(): void {\n if (!this.textfield?.nativeFocusableElement) {\n return;\n }\n\n this.textfield.nativeFocusableElement.select();\n this.doc.execCommand('copy');\n this.copied$.next(true);\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"!disabled ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template #iconContent>\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n automation-id=\"tui-copy__icon\"\n tuiAppearance=\"icon\"\n class=\"t-icon\"\n [class.t-icon_small]=\"size === 's'\"\n [icon]=\"src.toString()\"\n [tuiAppearanceState]=\"!value ? 'disabled' : null\"\n [tuiHint]=\"hint\"\n [tuiHintAppearance]=\"messageAppearance\"\n [tuiHintDirection]=\"messageDirection\"\n (click)=\"copy()\"\n />\n</ng-template>\n\n<ng-template #hint>\n <ng-container *polymorpheusOutlet=\"hintText$ | async as text\">\n {{ text }}\n </ng-container>\n</ng-template>\n","import {Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost} from '@taiga-ui/legacy/classes';\nimport {tuiAsTextfieldHost} from '@taiga-ui/legacy/tokens';\n\nimport {type TuiInputCopyComponent} from './input-copy.component';\n\n/**\n * @deprecated use {@link TuiCopy} with {@link TuiTextfield}\n */\n@Directive({\n standalone: false,\n selector: 'tui-input-copy',\n providers: [tuiAsTextfieldHost(TuiInputCopyDirective)],\n})\nexport class TuiInputCopyDirective extends AbstractTuiTextfieldHost<TuiInputCopyComponent> {\n public onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {TuiHint} from '@taiga-ui/core/directives/hint';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TuiTextfieldControllerModule} from '@taiga-ui/legacy/directives';\nimport {PolymorpheusOutlet, PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\nimport {TuiInputCopyDirective} from './input-copy.directive';\n\n/**\n * @deprecated use {@link TuiCopy} with {@link TuiTextfield}\n */\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusOutlet,\n PolymorpheusTemplate,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiAppearance,\n TuiIcon,\n ...TuiHint,\n ],\n declarations: [TuiInputCopyComponent, TuiInputCopyDirective],\n exports: [\n TuiInputCopyComponent,\n TuiInputCopyDirective,\n TuiTextfieldComponent,\n ...TuiHint,\n ],\n})\nexport class TuiInputCopyModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i6","i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAiBA;;AAEG;AACI,MAAM,8BAA8B,GAAwB;AAC/D,IAAA,cAAc,EAAE,EAAE;AAClB,IAAA,gBAAgB,EAAE,aAAa;AAC/B,IAAA,iBAAiB,EAAE,EAAE;AACrB,IAAA,IAAI,EAAE,MAAM,WAAW;;AAG3B;;AAEG;AACI,MAAM,sBAAsB,GAAG,IAAI,cAAc,CACpD,SAAS,GAAG,wBAAwB,GAAG,EAAE,EACzC;AACI,IAAA,OAAO,EAAE,MAAM,8BAA8B;AAChD,CAAA;AAGL;;AAEG;AACG,SAAU,2BAA2B,CACvC,OAAqC,EAAA;IAErC,OAAO,iBAAiB,CACpB,sBAAsB,EACtB,OAAO,EACP,8BAA8B,CACjC;AACL;;ACpBA;;AAEG;AAgBG,MAAO,qBACT,SAAQ,kBAA0B,CAAA;AAhBtC,IAAA,WAAA,GAAA;;AAsBqB,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,eAAe,CAAU,KAAK,CAAC;AAC7C,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;AACtB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,cAAc,CAAC;AACnC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,sBAAsB,CAAC;AACxC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAGpD,QAAA,IAAA,CAAA,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc;AAG5C,QAAA,IAAA,CAAA,gBAAgB,GAAqB,IAAI,CAAC,OAAO,CAAC,gBAAgB;AAGlE,QAAA,IAAA,CAAA,iBAAiB,GAAG,IAAI,CAAC,OAAO,CAA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CAAA,CAAA;;2FAWF,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAnB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,kBAAkB;wBAClB,oBAAoB;wBACpB,2BAA2B;wBAC3B,4BAA4B;wBAC5B,aAAa;wBACb,OAAO;AACP,wBAAA,GAAG,OAAO;AACb,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;AAC5D,oBAAA,OAAO,EAAE;wBACL,qBAAqB;wBACrB,qBAAqB;wBACrB,qBAAqB;AACrB,wBAAA,GAAG,OAAO;AACb,qBAAA;AACJ,iBAAA;;;ACpCD;;AAEG;;;;"}
@@ -1,272 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, Input, ViewChild, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
- import { maskitoDateOptionsGenerator } from '@maskito/kit';
5
- import { tuiAsControl } from '@taiga-ui/cdk/classes';
6
- import { TUI_FALSE_HANDLER } from '@taiga-ui/cdk/constants';
7
- import { TuiMonth, TuiDay, tuiDateClamp } from '@taiga-ui/cdk/date-time';
8
- import { tuiWatch } from '@taiga-ui/cdk/observables';
9
- import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
10
- import { changeDateSeparator, tuiIsString } from '@taiga-ui/cdk/utils/miscellaneous';
11
- import { TUI_DEFAULT_DATE_FORMAT, TUI_DATE_FORMAT } from '@taiga-ui/core/tokens';
12
- import { TUI_MOBILE_CALENDAR, TUI_INPUT_DATE_OPTIONS, TUI_DATE_TEXTS, TUI_DATE_VALUE_TRANSFORMER, TUI_DONE_WORD, tuiDateStreamWithTransformer, TUI_MOBILE_CALENDAR_PROVIDER } from '@taiga-ui/kit/tokens';
13
- import { tuiToggleDay } from '@taiga-ui/kit/utils';
14
- import { AbstractTuiMultipleControl, TuiStringifiableItem, tuiAsControl as tuiAsControl$1 } from '@taiga-ui/legacy/classes';
15
- import * as i5 from '@taiga-ui/legacy/components/input-tag';
16
- import { TuiInputTagComponent, TuiInputTagModule } from '@taiga-ui/legacy/components/input-tag';
17
- import { TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule } from '@taiga-ui/legacy/components/primitive-textfield';
18
- import * as i8 from '@taiga-ui/legacy/directives';
19
- import { TUI_TEXTFIELD_SIZE, TuiTextfieldControllerModule, TuiLegacyDropdownOpenMonitorDirective } from '@taiga-ui/legacy/directives';
20
- import { tuiAsFocusableItemAccessor } from '@taiga-ui/legacy/tokens';
21
- import { map } from 'rxjs';
22
- import * as i1 from '@maskito/angular';
23
- import { MaskitoDirective } from '@maskito/angular';
24
- import * as i2 from '@taiga-ui/polymorpheus';
25
- import { PolymorpheusOutlet, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
26
- import * as i3 from '@taiga-ui/core/components/calendar';
27
- import { TuiCalendar } from '@taiga-ui/core/components/calendar';
28
- import * as i4 from '@taiga-ui/core/components/link';
29
- import { TuiLink } from '@taiga-ui/core/components/link';
30
- import * as i1$1 from '@taiga-ui/core/directives/dropdown';
31
- import { TuiDropdown } from '@taiga-ui/core/directives/dropdown';
32
- import * as i7 from '@angular/forms';
33
- import { FormsModule } from '@angular/forms';
34
- import * as i9 from '@taiga-ui/core/components/icon';
35
- import { TuiIcon } from '@taiga-ui/core/components/icon';
36
- import * as i10 from '@taiga-ui/core/directives/appearance';
37
- import { TuiAppearance } from '@taiga-ui/core/directives/appearance';
38
- import * as i11 from '@angular/common';
39
- import { CommonModule } from '@angular/common';
40
- import * as i12 from '@taiga-ui/cdk/pipes/mapper';
41
- import { TuiMapperPipe } from '@taiga-ui/cdk/pipes/mapper';
42
-
43
- class TuiInputDateMultiComponent extends AbstractTuiMultipleControl {
44
- constructor() {
45
- super(...arguments);
46
- this.month = null;
47
- this.mobileCalendar = inject(TUI_MOBILE_CALENDAR, { optional: true });
48
- this.options = inject(TUI_INPUT_DATE_OPTIONS);
49
- this.textfieldSize = inject(TUI_TEXTFIELD_SIZE);
50
- this.dateTexts$ = inject(TUI_DATE_TEXTS);
51
- this.valueTransformer = inject(TUI_DATE_VALUE_TRANSFORMER, { optional: true });
52
- this.open = false;
53
- this.dateFormat = TUI_DEFAULT_DATE_FORMAT;
54
- this.isMobile = inject(TUI_IS_MOBILE);
55
- this.doneWord$ = inject(TUI_DONE_WORD);
56
- this.filler$ = this.dateTexts$.pipe(map((dateTexts) => changeDateSeparator(dateTexts[this.dateFormat.mode], this.dateFormat.separator)));
57
- this.dateFormat$ = inject(TUI_DATE_FORMAT)
58
- .pipe(tuiWatch(this.cdr), takeUntilDestroyed())
59
- .subscribe((format) => {
60
- this.dateFormat = format;
61
- });
62
- this.min = this.options.min;
63
- this.max = this.options.max;
64
- this.disabledItemHandler = TUI_FALSE_HANDLER;
65
- this.markerHandler = null;
66
- this.defaultActiveYearMonth = TuiMonth.currentLocal();
67
- this.inputHidden = false;
68
- this.editable = true;
69
- this.search = '';
70
- this.placeholder = '';
71
- this.rows = 1;
72
- this.maskitoOptions = maskitoDateOptionsGenerator({
73
- mode: 'dd/mm/yyyy',
74
- separator: '.',
75
- min: this.min?.toLocalNativeDate(),
76
- max: this.max?.toLocalNativeDate(),
77
- });
78
- this.tagValidator = (tag) => {
79
- const { year, month, day } = tuiIsString(tag)
80
- ? TuiDay.parseRawDateString(tag)
81
- : tag;
82
- const date = new TuiDay(year, month, day);
83
- return ((TuiDay.isValidDay(year, month, day) &&
84
- this.min?.daySameOrBefore(date) &&
85
- this.max?.daySameOrAfter(date)) ??
86
- false);
87
- };
88
- this.disabledItemHandlerWrapper = (handler) => (stringifiable) => tuiIsString(stringifiable) || handler(stringifiable.item);
89
- this.valueMapper = (value) => value.map((item) => new TuiStringifiableItem(item, (item) => String(item)));
90
- }
91
- get nativeFocusableElement() {
92
- return this.textfield?.nativeFocusableElement || null;
93
- }
94
- get focused() {
95
- return !!this.textfield?.focused;
96
- }
97
- setDisabledState() {
98
- super.setDisabledState();
99
- this.open = false;
100
- }
101
- get size() {
102
- return this.textfieldSize.size;
103
- }
104
- get nativeDropdownMode() {
105
- return this.isMobile && !this.editable;
106
- }
107
- get computedMin() {
108
- return this.min ?? this.options.min;
109
- }
110
- get computedMax() {
111
- return this.max ?? this.options.max;
112
- }
113
- get computedMobile() {
114
- return this.isMobile && !!this.mobileCalendar;
115
- }
116
- get calendarIcon() {
117
- return this.options.icon;
118
- }
119
- get computedActiveYearMonth() {
120
- return (this.month ||
121
- this.value[this.value.length - 1] ||
122
- tuiDateClamp(this.defaultActiveYearMonth, this.computedMin, this.computedMax));
123
- }
124
- onClick() {
125
- if (!this.isMobile && this.interactive) {
126
- this.open = !this.open;
127
- }
128
- }
129
- onIconClick() {
130
- if (this.isMobile && this.interactive) {
131
- this.open = true;
132
- }
133
- }
134
- onEnter(search) {
135
- if (!this.tagValidator(search)) {
136
- return;
137
- }
138
- this.value = tuiToggleDay(this.value, TuiDay.normalizeParse(search));
139
- if (this.inputTag) {
140
- this.inputTag.search = '';
141
- }
142
- this.done();
143
- }
144
- onValueChange(value) {
145
- this.control?.updateValueAndValidity({ emitEvent: false });
146
- if (!value.length && !this.mobileCalendar) {
147
- this.onOpenChange(true);
148
- }
149
- this.value = value.map(({ item }) => item);
150
- }
151
- onDayClick(value) {
152
- this.value = tuiToggleDay(this.value, value);
153
- }
154
- done() {
155
- this.open = false;
156
- }
157
- onMonthChange(month) {
158
- this.month = month;
159
- }
160
- onOpenChange(open) {
161
- this.open = open;
162
- }
163
- onFocused(focused) {
164
- this.updateFocused(focused);
165
- }
166
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateMultiComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
167
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputDateMultiComponent, isStandalone: false, selector: "tui-input-date[multiple]", inputs: { min: "min", max: "max", disabledItemHandler: "disabledItemHandler", markerHandler: "markerHandler", defaultActiveYearMonth: "defaultActiveYearMonth", inputHidden: "inputHidden", editable: "editable", search: "search", placeholder: "placeholder", rows: "rows", tagValidator: "tagValidator" }, host: { listeners: { "click": "onClick()" }, properties: { "class._editable": "editable", "attr.data-size": "size" } }, providers: [
168
- tuiAsFocusableItemAccessor(TuiInputDateMultiComponent),
169
- tuiAsControl(TuiInputDateMultiComponent),
170
- tuiAsControl$1(TuiInputDateMultiComponent),
171
- tuiDateStreamWithTransformer(TUI_DATE_VALUE_TRANSFORMER),
172
- TUI_MOBILE_CALENDAR_PROVIDER,
173
- ], viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }, { propertyName: "inputTag", first: true, predicate: TuiInputTagComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"dropdown\"\n [tuiDropdownEnabled]=\"interactive\"\n [tuiDropdownOpen]=\"open && interactive\"\n (tuiDropdownOpenChange)=\"onOpenChange($event)\"\n>\n <tui-input-tag\n #inputTag\n class=\"t-input\"\n [disabled]=\"disabled\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerWrapper\"\n [editable]=\"editable\"\n [inputHidden]=\"inputHidden\"\n [maskito]=\"maskitoOptions\"\n [nativeId]=\"nativeId\"\n [ngModel]=\"value | tuiMapper: valueMapper\"\n [ngModelOptions]=\"{standalone: true}\"\n [placeholder]=\"placeholder\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n [removable]=\"!nativeDropdownMode\"\n [rows]=\"rows\"\n [tagValidator]=\"tagValidator | tuiMapper: disabledItemHandlerWrapper\"\n [tuiTextfieldFiller]=\"(filler$ | async) || ''\"\n [tuiTextfieldIcon]=\"calendarIcon && iconContent\"\n (keydown.enter)=\"onEnter(inputTag.search || '')\"\n (ngModelChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n </tui-input-tag>\n\n <ng-template #iconContent>\n <tui-icon\n *polymorpheusOutlet=\"calendarIcon as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [class.t-icon_small]=\"size === 's'\"\n [class.t-icon]=\"!computedDisabled\"\n [icon]=\"src.toString()\"\n (click)=\"onIconClick()\"\n />\n </ng-template>\n\n <ng-template #dropdown>\n <tui-calendar\n [disabledItemHandler]=\"disabledItemHandler\"\n [markerHandler]=\"markerHandler\"\n [max]=\"computedMax\"\n [min]=\"computedMin\"\n [month]=\"computedActiveYearMonth\"\n [value]=\"value\"\n (dayClick)=\"onDayClick($event)\"\n (monthChange)=\"onMonthChange($event)\"\n (mousedown.zoneless.prevent)=\"(0)\"\n />\n <div\n class=\"t-button\"\n (mousedown.zoneless.prevent)=\"(0)\"\n >\n <button\n tuiLink\n type=\"button\"\n (click)=\"done()\"\n >\n {{ doneWord$ | async }}\n </button>\n </div>\n </ng-template>\n</div>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-icon{pointer-events:auto}.t-icon_small{border-width:.25rem}.t-button{display:flex;block-size:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-border-normal)}.t-button button{flex:1;text-align:center}.t-native-input{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;opacity:0;pointer-events:auto;font-size:2rem}\n"], dependencies: [{ kind: "directive", type: i1.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { kind: "directive", type: i2.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i3.TuiCalendar, selector: "tui-calendar", inputs: ["month", "disabledItemHandler", "min", "max", "minViewedMonth", "maxViewedMonth", "hoveredItem", "showAdjacent", "markerHandler", "value", "initialView"], outputs: ["dayClick", "monthChange", "hoveredItemChange"] }, { kind: "directive", type: i4.TuiLink, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo"] }, { kind: "component", type: i5.TuiInputTagComponent, selector: "tui-input-tag", inputs: ["separator", "search", "editable", "tagValidator", "rows", "inputHidden", "uniqueTags", "autoColor", "maxLength", "placeholder", "removable", "disabledItemHandler", "pseudoFocused", "pseudoOpen"], outputs: ["searchChange"] }, { kind: "directive", type: i1$1.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container):not(ng-template)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { kind: "directive", type: i1$1.TuiDropdownOpen, selector: "[tuiDropdown][tuiDropdownOpen],[tuiDropdown][tuiDropdownOpenChange]", inputs: ["tuiDropdownEnabled", "tuiDropdownOpen"], outputs: ["tuiDropdownOpenChange"] }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i8.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { kind: "directive", type: i8.TuiTextfieldFillerDirective, selector: "[tuiTextfieldFiller]", inputs: ["tuiTextfieldFiller"] }, { kind: "directive", type: i8.TuiLegacyDropdownOpenMonitorDirective, selector: "[tuiDropdownOpenMonitor]" }, { kind: "component", type: i9.TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }, { kind: "directive", type: i10.TuiAppearance, selector: "[tuiAppearance]", inputs: ["tuiAppearance", "tuiAppearanceState", "tuiAppearanceFocus", "tuiAppearanceMode"] }, { kind: "pipe", type: i11.AsyncPipe, name: "async" }, { kind: "pipe", type: i12.TuiMapperPipe, name: "tuiMapper" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
174
- }
175
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateMultiComponent, decorators: [{
176
- type: Component,
177
- args: [{ standalone: false, selector: 'tui-input-date[multiple]', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
178
- tuiAsFocusableItemAccessor(TuiInputDateMultiComponent),
179
- tuiAsControl(TuiInputDateMultiComponent),
180
- tuiAsControl$1(TuiInputDateMultiComponent),
181
- tuiDateStreamWithTransformer(TUI_DATE_VALUE_TRANSFORMER),
182
- TUI_MOBILE_CALENDAR_PROVIDER,
183
- ], host: {
184
- '[class._editable]': 'editable',
185
- '[attr.data-size]': 'size',
186
- '(click)': 'onClick()',
187
- }, template: "<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"dropdown\"\n [tuiDropdownEnabled]=\"interactive\"\n [tuiDropdownOpen]=\"open && interactive\"\n (tuiDropdownOpenChange)=\"onOpenChange($event)\"\n>\n <tui-input-tag\n #inputTag\n class=\"t-input\"\n [disabled]=\"disabled\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerWrapper\"\n [editable]=\"editable\"\n [inputHidden]=\"inputHidden\"\n [maskito]=\"maskitoOptions\"\n [nativeId]=\"nativeId\"\n [ngModel]=\"value | tuiMapper: valueMapper\"\n [ngModelOptions]=\"{standalone: true}\"\n [placeholder]=\"placeholder\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n [removable]=\"!nativeDropdownMode\"\n [rows]=\"rows\"\n [tagValidator]=\"tagValidator | tuiMapper: disabledItemHandlerWrapper\"\n [tuiTextfieldFiller]=\"(filler$ | async) || ''\"\n [tuiTextfieldIcon]=\"calendarIcon && iconContent\"\n (keydown.enter)=\"onEnter(inputTag.search || '')\"\n (ngModelChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n </tui-input-tag>\n\n <ng-template #iconContent>\n <tui-icon\n *polymorpheusOutlet=\"calendarIcon as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [class.t-icon_small]=\"size === 's'\"\n [class.t-icon]=\"!computedDisabled\"\n [icon]=\"src.toString()\"\n (click)=\"onIconClick()\"\n />\n </ng-template>\n\n <ng-template #dropdown>\n <tui-calendar\n [disabledItemHandler]=\"disabledItemHandler\"\n [markerHandler]=\"markerHandler\"\n [max]=\"computedMax\"\n [min]=\"computedMin\"\n [month]=\"computedActiveYearMonth\"\n [value]=\"value\"\n (dayClick)=\"onDayClick($event)\"\n (monthChange)=\"onMonthChange($event)\"\n (mousedown.zoneless.prevent)=\"(0)\"\n />\n <div\n class=\"t-button\"\n (mousedown.zoneless.prevent)=\"(0)\"\n >\n <button\n tuiLink\n type=\"button\"\n (click)=\"done()\"\n >\n {{ doneWord$ | async }}\n </button>\n </div>\n </ng-template>\n</div>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-icon{pointer-events:auto}.t-icon_small{border-width:.25rem}.t-button{display:flex;block-size:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-border-normal)}.t-button button{flex:1;text-align:center}.t-native-input{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;opacity:0;pointer-events:auto;font-size:2rem}\n"] }]
188
- }], propDecorators: { textfield: [{
189
- type: ViewChild,
190
- args: [TuiPrimitiveTextfieldComponent]
191
- }], inputTag: [{
192
- type: ViewChild,
193
- args: [TuiInputTagComponent]
194
- }], min: [{
195
- type: Input
196
- }], max: [{
197
- type: Input
198
- }], disabledItemHandler: [{
199
- type: Input
200
- }], markerHandler: [{
201
- type: Input
202
- }], defaultActiveYearMonth: [{
203
- type: Input
204
- }], inputHidden: [{
205
- type: Input
206
- }], editable: [{
207
- type: Input
208
- }], search: [{
209
- type: Input
210
- }], placeholder: [{
211
- type: Input
212
- }], rows: [{
213
- type: Input
214
- }], tagValidator: [{
215
- type: Input
216
- }] } });
217
-
218
- class TuiInputDateMultiModule {
219
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateMultiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
220
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateMultiModule, declarations: [TuiInputDateMultiComponent], imports: [CommonModule,
221
- MaskitoDirective,
222
- PolymorpheusOutlet,
223
- PolymorpheusTemplate,
224
- TuiCalendar,
225
- TuiLink,
226
- TuiInputTagModule,
227
- FormsModule,
228
- TuiMapperPipe,
229
- TuiTextfieldControllerModule,
230
- TuiPrimitiveTextfieldModule,
231
- TuiLegacyDropdownOpenMonitorDirective,
232
- TuiIcon,
233
- TuiAppearance, i1$1.TuiDropdownOptionsDirective, i1$1.TuiDropdownDriverDirective, i1$1.TuiDropdownDirective, i1$1.TuiDropdownComponent, i1$1.TuiDropdownOpen, i1$1.TuiDropdownOpenLegacy, i1$1.TuiDropdownPortal, i1$1.TuiDropdownManual, i1$1.TuiDropdownHover, i1$1.TuiDropdownContext, i1$1.TuiDropdownPosition, i1$1.TuiDropdownPositionSided, i1$1.TuiDropdownSelection], exports: [TuiInputDateMultiComponent, i1$1.TuiDropdownOptionsDirective, i1$1.TuiDropdownDriverDirective, i1$1.TuiDropdownDirective, i1$1.TuiDropdownComponent, i1$1.TuiDropdownOpen, i1$1.TuiDropdownOpenLegacy, i1$1.TuiDropdownPortal, i1$1.TuiDropdownManual, i1$1.TuiDropdownHover, i1$1.TuiDropdownContext, i1$1.TuiDropdownPosition, i1$1.TuiDropdownPositionSided, i1$1.TuiDropdownSelection] }); }
234
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateMultiModule, imports: [CommonModule,
235
- TuiCalendar,
236
- TuiInputTagModule,
237
- FormsModule,
238
- TuiTextfieldControllerModule,
239
- TuiPrimitiveTextfieldModule,
240
- TuiIcon, i1$1.TuiDropdownComponent] }); }
241
- }
242
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateMultiModule, decorators: [{
243
- type: NgModule,
244
- args: [{
245
- imports: [
246
- CommonModule,
247
- MaskitoDirective,
248
- PolymorpheusOutlet,
249
- PolymorpheusTemplate,
250
- TuiCalendar,
251
- TuiLink,
252
- TuiInputTagModule,
253
- FormsModule,
254
- TuiMapperPipe,
255
- TuiTextfieldControllerModule,
256
- TuiPrimitiveTextfieldModule,
257
- TuiLegacyDropdownOpenMonitorDirective,
258
- TuiIcon,
259
- TuiAppearance,
260
- ...TuiDropdown,
261
- ],
262
- declarations: [TuiInputDateMultiComponent],
263
- exports: [TuiInputDateMultiComponent, ...TuiDropdown],
264
- }]
265
- }] });
266
-
267
- /**
268
- * Generated bundle index. Do not edit.
269
- */
270
-
271
- export { TuiInputDateMultiComponent, TuiInputDateMultiModule };
272
- //# sourceMappingURL=taiga-ui-legacy-components-input-date-multi.mjs.map